OSDN Git Service

29aff028fb08d64232b9ac3332fe8d137edabf13
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-11-03  Richard Guenther  <rguenther@suse.de>
2
3         * c-common.c (fold_offsetof_1): Use HOST_WIDE_INT_PRINT_DEC.
4
5 2009-11-03  Dodji Seketeli  <dodji@redhat.com>
6
7         PR c++/38699
8         * c-common.c (fold_offsetof_1): Issue errors when the member designator
9         of the offsetoff expression is not legitimate.
10
11 2009-11-03  Uros Bizjak  <ubizjak@gmail.com>
12
13         * config/i386/i386.md (*call_value_1_rex64_ms_sysv): Use register
14         names instead of numerical constants.
15         (sse_prologue_save): Ditto.
16         (*sse_prologue_save_insn): Ditto.
17
18 2009-11-03  Uros Bizjak  <ubizjak@gmail.com>
19
20         PR target/41900
21         * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
22         (TARGET_CALL_ESP): New define.
23         * config/i386/i386.c (initial_ix86_tune_features): Initialize
24         X86_ARCH_CALL_ESP.
25         * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
26         *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
27         *call_1, *call_value_pop_1 and *call_value_1.  Depend on
28         TARGET_CALL_ESP.
29         (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
30         New patterns, use "lsm" as operand 1 constraint.
31         * config/i386/predicates.md (call_insn_operand): Depend on 
32         index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
33
34 2009-11-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35
36         PR tree-optimization/41857
37         * tree-flow.h (rewrite_use_address): Add BASE_HINT argument.
38         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass base hint
39         to create_mem_ref.
40         * tree-ssa-address.c (move_hint_to_base): New function.
41         (most_expensive_mult_to_index): Add TYPE argument.  Use mode and
42         address space associated with TYPE.
43         (addr_to_parts): Add TYPE and BASE_HINT arguments.  Pass TYPE to
44         most_expensive_mult_to_index.  Call move_hint_to_base.
45         (create_mem_ref): Add BASE_HINT argument.  Pass BASE_HINT and
46         TYPE to addr_to_parts.
47
48 2009-11-02  Martin Jambor  <mjambor@suse.cz>
49
50         PR tree-optimization/41750
51         * tree-sra.c (analyze_modified_params): Loop over all
52         representatives of components of a parameter.
53
54 2009-11-02  Jakub Jelinek  <jakub@redhat.com>
55
56         PR tree-optimization/41841
57         * ipa-struct-reorg.c (build_data_structure): Don't attempt to look at
58         local variables of not yet materialized clones.
59
60         PR debug/41893
61         * cfgexpand.c (expand_debug_expr): Don't attempt to create DECL_RTL
62         for a VOIDmode variable.
63
64         PR c++/41774
65         * c-pragma.c (visstack): Change into vector of ints rather than
66         enum symbol_visibility.
67         (push_visibility): Add kind argument, push default_visibility together
68         with kind.
69         (pop_visibility): Add kind argument, return true if successful, fail
70         if visibility stack is empty or if stack top is of different kind.
71         (handle_pragma_visibility): Don't check length of visstack, instead
72         call pop_visibility and issue diagnostics if it failed.  Pass 0
73         as last argument to push_visibility and pop_visibility.
74         * c-pragma.h (push_visibility): Add kind argument.
75         (pop_visibility): Likewise.  Return bool instead of void.
76
77 2009-11-01  Eric Botcazou  <ebotcazou@adacore.com>
78
79         * tree.def (TARGET_MEM_REF): Update comment.
80         * alias.c (get_alias_set): Retrieve the original memory reference for
81         a TARGET_MEM_REF before proceeding.
82
83 2009-10-31  Anatoly Sokolov  <aesok@post.ru>
84
85         * config/frv/frv.c (frv_function_value, frv_libcall_value,
86         frv_function_value_regno_p): New functions.
87         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
88         * config/frv/frv.h: (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
89         (FUNCTION_VALUE_REGNO_P): Redefine, use frv_function_value_regno_p.
90         * config/frv/frv-protos.h (frv_function_value_regno_p): Declare.
91
92 2009-10-31  Anatoly Sokolov  <aesok@post.ru>
93
94         * config/mn10300/mn10300.c (mn10300_function_value): Make static, add
95         new 'outgoing' argument.
96         (mn10300_libcall_value, mn10300_function_value_regno_p): New
97         functions.
98         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
99         * config/mn10300/mn10300.h: (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
100         LIBCALL_VALUE): Remove.
101         (FUNCTION_VALUE_REGNO_P): Redefine, use mn10300_function_value_regno_p.
102         * config/mn10300/mn10300-protos.h (mn10300_function_value): Remove.
103         (mh10300_function_value_regno_p): Declare.
104
105 2009-10-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
106
107         * config/arm/cortex-a9.md: New - integer pipeline description.
108
109 2009-10-31  Eric Botcazou  <ebotcazou@adacore.com>
110
111         * tree-ssa-sccvn.c (vn_reference_lookup_3): Bail out instead of
112         aborting if the sizes of the two references don't match.
113
114 2009-10-31  Toon Moene  <toon@moene.org>
115
116         * ipa-inline.c (cgraph_decide_inlining):
117         Include reason for not inlining called-once functions in dump file.
118
119 2009-10-30  Daniel Gutson  <dgutson@codesourcery.com>
120
121         * config/arm/linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added.
122         * config/arm/bpapi.h (BE8_LINK_SPEC): New define.
123         (LINK_SPEC): BE_LINK_SPEC added.
124
125 2009-10-30  Richard Guenther  <rguenther@suse.de>
126
127         PR lto/41858
128         * lto-streamer.h (struct lto_file_decl_data): Remove fd member.
129
130 2009-10-30  Nathan Sidwell  <nathan@codesourcery.com>
131
132         * target-def.h (TARGET_ASM_TTYPE): Correct typo of TARGET_ARM_TTYPE.
133         * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): Remove unused
134         label.
135
136 2009-10-30  Martin Jambor  <mjambor@suse.cz>
137
138         * tree-sra.c (build_ref_for_offset_1): Remove a comment.
139
140 2009-10-30  H.J. Lu  <hongjiu.lu@intel.com>
141
142         PR target/40838
143         * cfgexpand.c (expand_stack_alignment): Call update_stack_boundary
144         first.  Move assert on stack_alignment_estimated just before
145         setting stack_realign_needed.
146         (gimple_expand_cfg): Initialize stack_alignment_estimated to 0.
147         Don't call update_stack_boundary.
148
149         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): New.
150         (verride_options): Don't check ix86_force_align_arg_pointer here.
151         (ix86_function_ok_for_sibcall): Use it.
152         (ix86_update_stack_boundary): Likewise.
153
154         * config/i386/i386.h (STACK_REALIGN_DEFAULT): Update comments.
155
156 2009-10-30  Richard Earnshaw  <rearnsha@arm.com>
157
158         * arm.md (QHSI): New mode iterator.
159         (movqi): If generating for thumb, then truncate any immediate to
160         8 bits.
161         * thumb2.md (thumb2_movsi_shortim and peephole2 generator): Replace
162         with...
163         (thumb2_mov<mode>_shortim and peephole2 generator): ... iterator based
164         version.
165
166 2009-10-29  Cary Coutant  <ccoutant@google.com>
167
168         PR debug/41700
169         * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hook (two
170         locations in the source).
171         (store_vcall_insn): New function.
172         (lookup_vcall_insn): New function.
173         (dwarf2out_virtual_call_token): Use store_vcall_insn.
174         (dwarf2out_copy_call_info): New function.
175         (dwarf2out_virtual_call): Use lookup_vcall_insn.
176         * emit-rtl.c (try_split): Call copy_call_info debug hook.
177         * debug.h (struct gcc_debug_hooks): Add copy_call_info hook.
178         * debug.c (do_nothing_debug_hooks): Add dummy entry for new hook.
179         (debug_nothing_rtx_rtx): New dummy hook.
180         * dbxout.c (dbx_debug_hooks): Add dummy entry for new hook.
181         (xcoff_debug_hooks): Likewise.
182         * sdbout.c (sdb_debug_hooks): Likewise.
183         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
184
185 2009-10-29  David Daney  <ddaney@caviumnetworks.com>
186
187         * doc/invoke.texi (mmcount-ra-address): Document new command line
188         option.
189         * config/mips/mips.opt (mmcount-ra-address): New option.
190         * config/mips/mips-protos.h (mips_function_profiler): Declare new
191         function.
192         * config/mips/mips.c (struct mips_frame_info): Add ra_fp_offset
193         member.
194         (mips_for_each_saved_gpr_and_fpr): Set ra_fp_offset.
195         (mips_function_profiler): Moved from FUNCTION_PROFILER, and
196         rewritten.
197         * config/mips/mips.h (FUNCTION_PROFILER): Body of macro moved to
198         mips_function_profiler.
199
200 2009-10-29  Steve Ellcey  <sje@cup.hp.com>
201
202         PR middle-end/37565
203         PR target/38018
204         * doc/tm.texi (OVERRIDE_OPTIONS): Update.
205         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
206         * optc-gen.awk (cl_target_option_restore): Include call to 
207         targetm.override_options_after_change.
208         * target-def.h (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
209         * target.h (override_options_after_change): New.
210         * c-common.c (parse_optimize_options): Call
211         targetm.override_options_after_change.
212         * config/ia64/ia64.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
213         (ia64_override_options_after_change): New.
214         (ia64_override_options) Add call to above.
215
216 2009-10-29  Michael Matz  <matz@suse.de>
217
218         * tree-ssa-math-opts.c (execute_convert_to_rsqrt): Remove.
219         (gate_convert_to_rsqrt): Ditto.
220         (pass_convert_to_rsqrt): Ditto.
221         * tree-pass.h (pass_convert_to_rsqrt): Don't declare.
222         * passes.c (init_optimization_passes): Don't add pass_convert_to_rsqrt
223         to pass list.
224
225         * config/i386/i386.c (ix86_emit_swdivsf): Change evaluation order.
226
227 2009-10-29  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
228
229         * config/arm/arm.c (find_best_start): Fix type of remainder to be
230         unsigned .
231
232 2009-10-29  Martin Jambor  <mjambor@suse.cz>
233
234         PR tree-optimization/41775
235         * tree-sra.c (build_ref_for_offset): Unshare *expr if not NULL.
236         (generate_subtree_copies): Do not unshare agg.
237         (load_assign_lhs_subreplacements): Do not unshare rhs.
238         (sra_modify_assign): Do not unshare exprs.
239         (propagate_subacesses_accross_link): Renamed to
240         propagate_subaccesses_across_link.
241
242 2009-10-29  Richard Earnshaw  <rearnsha@arm.com>
243
244         * arm.c (count_insns_for_constant): Rework to support counting for
245         thumb2 immediates as well.
246         (find_best_start): Split out from arm_gen_constant.
247         (arm_gen_constant): Rework to support XOR with immediate.
248
249 2009-10-29  Chao-ying Fu  <fu@mips.com>
250
251         * config/mips/mips.c (mips_emit_unary, mips_force_unary): New
252         functions.
253         (mips_expand_synci_loop):  Use the length rtx to control the
254         synci loop from the begin rtx that points to the first byte of
255         the cache line.
256
257 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
258
259         * doc/invoke.texi: Rename -use-linker-plugin -fuse-linker-plugin.
260
261 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
262
263         * dbxout.c (dbxout_common_check): Accept non public trees.
264         * dwarf2out.c (fortran_common): Accept non public trees.
265
266 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
267
268         * common.opt (fuse-linker-plugin): New option.
269         * gcc.c (LINK_COMMAND_SPEC, main): Rename use-linker-plugin to
270         fuse-linker-plugin.
271         * opts.c (common_handle_option): Ignore OPT_fuse_linker_plugin.
272
273 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
274
275         PR rtl-optimization/39715
276         * config/arm/arm.md (cstoresi4): Use gen_cstoresi_ltu_thumb1.
277         (gen_cstoresi_ltu_thumb1): New splitter.
278
279 2009-10-28  Richard Guenther  <rguenther@suse.de>
280
281         PR lto/41808
282         PR lto/41839
283         * tree-ssa.c (useless_type_conversion_p): Do not treat
284         conversions to pointers to incomplete types as useless.
285         * gimple.c (gimple_types_compatible_p): Compare struct tags,
286         not typedef names.
287
288 2009-10-28  Jakub Jelinek  <jakub@redhat.com>
289
290         * var-tracking.c (emit_note_insn_var_location): Don't call the second
291         vt_expand_loc unnecessarily when location is not a register nor
292         memory.
293
294         PR middle-end/41837
295         * ipa-struct-reorg.c (find_field_in_struct_1): Return NULL if
296         fields don't have DECL_NAME.
297
298         PR debug/41801
299         * builtins.c (get_builtin_sync_mem): Expand loc in ptr_mode,
300         call convert_memory_address on addr.
301
302         PR target/41762
303         * config/i386/i386.c (ix86_pic_register_p): Don't call
304         rtx_equal_for_cselib_p for VALUEs discarded as useless.
305
306 2009-10-28  Richard Sandiford  <rdsandiford@googlemail.com>
307
308         * var-tracking.c (emit_note_insn_var_location): Get the mode of
309         a variable part from its REG, MEM or VALUE.
310
311 2009-10-28  Richard Guenther  <rguenther@suse.de>
312
313         * gimple.c (gimple_get_alias_set): Fix comment typo.
314
315 2009-10-28  Richard Guenther  <rguenther@suse.de>
316
317         * tree.c (free_lang_data_in_type): Do not call get_alias_set.
318         (free_lang_data): Unconditionally compute alias sets for all
319         standard integer types.  Bail out if gate bailed out previously.
320         Do not reset the types_compatible_p langhook.
321         (gate_free_lang_data): Remove.
322         (struct pass_ipa_free_lang_data): Enable unconditionally.
323         * gimple.c (gimple_get_alias_set): Use the same alias-set for
324         all pointer types.
325
326 2009-10-28  Richard Guenther  <rguenther@suse.de>
327
328         PR middle-end/41855
329         * tree-ssa-alias.c (refs_may_alias_p_1): Deal with CONST_DECLs
330         (ref_maybe_used_by_call_p_1): Fix bcopy handling.
331         (call_may_clobber_ref_p_1): Likewise.
332         * tree-ssa-structalias.c (find_func_aliases): Likewise.
333         * alias.c (nonoverlapping_memrefs_p): Deal with CONST_DECLs.
334
335 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
336
337         PR rtl-optimization/41812
338
339         Revert:
340         2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
341
342         * df-problems.c (df_md_scratch): New.
343         (df_md_alloc, df_md_free): Allocate/free it.
344         (df_md_local_compute): Only include live registers in init.
345         (df_md_transfer_function): Prune the in-set computed by
346         the confluence function, and the gen-set too.
347
348 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
349
350         PR rtl-optimization/39715
351         * combine.c (simplify_comparison): Use extensions to
352         widen comparisons.  Try an ANDing first.
353
354 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
355
356         PR rtl-optimization/40741
357         * config/arm/arm.c (thumb1_rtx_costs): IOR or XOR with
358         a small constant is cheap.
359         * config/arm/arm.md (andsi3, iorsi3): Try to place the result of
360         force_reg on the LHS.
361         (xorsi3): Likewise, and split the XOR if the constant is complex
362         and not in Thumb mode.
363
364 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
365
366         * expmed.c (emit_store_flag): Check costs before
367         transforming to the opposite representation.
368
369 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
370
371         * config/sh/sh.md (cbranchfp4_media): Remove hack extending
372         cstore result to DImode.
373
374 2009-10-28  Kaz Kojima  <kkojima@gcc.gnu.org>
375
376         * config/sh/sh.md (stuff_delay_slot): Move const_int pattern
377         inside the unspec vector.
378
379 2009-10-27  Richard Henderson  <rth@redhat.com>
380
381         * cgraphunit.c (cgraph_optimize): Maintain timevar stack properly.
382
383 2009-10-27  Richard Henderson  <rth@redhat.com>
384
385         PR c++/41819
386         * tree-eh.c (eh_region_may_contain_throw_map): Rename from
387         eh_region_may_contain_throw; update users.
388         (eh_region_may_contain_throw): New function.
389         (lower_catch): Check flag_exceptions before creating exception region.
390         (lower_eh_filter, lower_eh_must_not_throw): Likewise.
391         (lower_cleanup): Tidy existing flag_exceptions check to match.
392
393 2009-10-27  Kai Tietz <kai.tietz@onevision.com>
394
395         PR/41799
396         * config/i386/mingw32.h (CHECK_EXECUTE_STACK_ENABLED): New macro.
397         * config/i386/mingw.opt: Add fset-stack-executable.
398         * config/i386/i386.c (ix86_trampoline_init): Make call to
399         emit_library_call conditional, if CHECK_EXECUTE_STACK_ENABLED is
400         defined and its value is not zero.
401         * doc/invoke.texi
402
403 2009-10-27  Richard Guenther  <rguenther@suse.de>
404
405         * tree-ssa-structalias.c (find_func_aliases): In IPA mode
406         handle calls to externally visible functions like in regular mode.
407         (create_variable_info_for): Do not create function infos here.
408         (have_alias_info): Remove write-only variable.
409         (solve_constraints): New function split out from common code
410         in compute_points_to_sets and ipa_pta_execute.
411         (compute_points_to_sets): Adjust.
412         (ipa_pta_execute): Likewise.  Handle clones and externally visible
413         functions like in non-IPA mode.
414
415 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
416
417         PR c/41842
418         * c-typeck.c (convert_arguments): Return -1 if any of the arguments is
419         error_mark_node.
420
421 2009-10-27  Richard Guenther  <rguenther@suse.de>
422
423         * tree-complex.c (expand_complex_div_wide): Check for
424         INTEGER_CST, not TREE_CONSTANT on comparison folding result.
425
426 2009-10-27  Revital Eres  <eres@il.ibm.com>
427
428         PR tree-optimization/40648
429         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
430         Change decision of when to peel for alignment.
431
432 2009-10-27  Richard Guenther  <rguenther@suse.de>
433
434         PR lto/41821
435         * gimple.c (gimple_types_compatible_p): Handle OFFSET_TYPE.
436
437 2009-10-27  Aldy Hernandez  <aldyh@redhat.com>
438
439         PR bootstrap/41451
440         * fold-const.c (fold_binary_loc): Do not call
441         protected_set_expr_location.
442
443 2009-10-27  Wei Guozhi  <carrot@google.com>
444
445         PR target/41705
446         * target.h (have_conditional_execution): Add a new target hook
447         function.
448         * target-def.h (TARGET_HAVE_CONDITIONAL_EXECUTION): Likewise.
449         * targhooks.h (default_have_conditional_execution): Likewise.
450         * targhooks.c (default_have_conditional_execution): Likewise.
451         * doc/tm.texi (TARGET_HAVE_CONDITIONAL_EXECUTION): Document it.
452         * config/arm/arm.c (TARGET_HAVE_CONDITIONAL_EXECUTION): Define it.
453         (arm_have_conditional_execution): New function.
454         * ifcvt.c (noce_process_if_block, find_if_header,
455         cond_exec_find_if_block, dead_or_predicable): Change the usage of
456         macro HAVE_conditional_execution to a target hook call.
457         * recog.c (peephole2_optimize): Likewise.
458         * sched-rgn.c (add_branch_dependences): Likewise.
459         * final.c (asm_insn_count, final_scan_insn): Likewise.
460         * bb-reorder.c (HAVE_conditional_execution): Remove it.
461
462 2009-10-26  Ben Elliston  <bje@au.ibm.com>
463             Michael Meissner  <meissner@linux.vnet.ibm.com>
464             Ulrich Weigand  <uweigand@de.ibm.com>
465
466         * config.gcc (spu-*-elf*): Add spu_cache.h to extra_headers.
467         * config/spu/spu_cache.h: New file.
468
469         * config/spu/cachemgr.c: New file.
470         * config/spu/cache.S: New file.
471
472         * config/spu/spu.h (ASM_OUTPUT_SYMBOL_REF): Define.
473         (ADDR_SPACE_EA): Define.
474         (TARGET_ADDR_SPACE_KEYWORDS): Define.
475         * config/spu/spu.c (EAmode): New macro.
476         (TARGET_ADDR_SPACE_POINTER_MODE): Define.
477         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
478         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
479         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
480         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
481         (TARGET_ADDR_SPACE_CONVERT): Likewise.
482         (TARGET_ASM_SELECT_SECTION): Likewise.
483         (TARGET_ASM_UNIQUE_SECTION): Likewise.
484         (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
485         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
486         (ea_symbol_ref): New function.
487         (spu_legitimate_constant_p): Handle __ea qualified addresses.
488         (spu_addr_space_legitimate_address_p): New function.
489         (spu_addr_space_legitimize_address): Likewise.
490         (cache_fetch): New global.
491         (cache_fetch_dirty): Likewise.
492         (ea_alias_set): Likewise.
493         (ea_load_store): New function.
494         (ea_load_store_inline): Likewise.
495         (expand_ea_mem): Likewise.
496         (spu_expand_mov): Handle __ea qualified memory references.
497         (spu_addr_space_pointer_mode): New function.
498         (spu_addr_space_address_mode): Likewise.
499         (spu_addr_space_subset_p): Likewise.
500         (spu_addr_space_convert): Likewise.
501         (spu_section_type_flags): Handle "._ea" section.
502         (spu_select_section): New function.
503         (spu_unique_section): Likewise.
504         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Support __EA32__
505         and __EA64__ predefined macros.
506         * config/spu/spu-elf.h (LIB_SPEC): Handle -mcache-size= and
507         -matomic-updates switches.
508
509         * config/spu/t-spu-elf (MULTILIB_OPTIONS): Define.
510         (EXTRA_MULTILIB_PARTS): Add libgcc_cachemgr.a,
511         libgcc_cachemgr_nonatomic.a, libgcc_cache8k.a, libgcc_cache16k.a,
512         libgcc_cache32k.a, libgcc_cache64k.a, libgcc_cache128k.a.
513         ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o): New target.
514         ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache64k.o,
515         $(T)cache128k.o): Likewise.
516         ($(T)libgcc_%.a): Likewise.
517
518         * config/spu/spu.h (TARGET_DEFAULT): Add MASK_ADDRESS_SPACE_CONVERSION.
519         * config/spu/spu.opt (-mea32/-mea64): Add switches.
520         (-maddress-space-conversion): Likewise.
521         (-mcache-size=): Likewise.
522         (-matomic-updates): Likewise.
523         * doc/invoke.texi (-mea32/-mea64): Document.
524         (-maddress-space-conversion): Likewise.
525         (-mcache-size=): Likewise.
526         (-matomic-updates): Likewise.
527
528 2009-10-26  Ben Elliston  <bje@au.ibm.com>
529             Michael Meissner  <meissner@linux.vnet.ibm.com>
530             Ulrich Weigand  <uweigand@de.ibm.com>
531
532         * doc/tm.texi (TARGET_ADDR_SPACE_KEYWORDS): Document.
533
534         * c-common.c (c_common_reswords): If TARGET_ADDR_SPACE_KEYWORDS is
535         defined, add the named address space keywords.
536         (c_addr_space_name): New function.
537         (complete_array_type): Preserve named address space.
538         (handle_mode_attribute): Use targetm.addr_space.valid_pointer_mode
539         instead of targetm.valid_pointer_mode.
540
541         * c-common.h (enum rid): Add RID_ADDR_SPACE_0 .. RID_ADDR_SPACE_15,
542         RID_FIRST_ADDR_SPACE and RID_LAST_ADDR_SPACE.
543         (ADDR_SPACE_KEYWORD): New macro.
544         (c_addr_space_name): Add prototype.
545
546         * c-tree.h (struct c_declspecs): Add address_space member.
547         (declspecs_add_addrspace): Add prototype.
548
549         * c-pretty-print.c (pp_c_type_qualifier_list): Handle address spaces.
550
551         * c-parser.c (c_parse_init): Add assertion.
552         (typedef enum c_id_kind): Add C_ID_ADDRSPACE.
553         (c_lex_one_token): Handle address space keywords.
554         (c_token_starts_typename): Likewise.
555         (c_token_starts_declspecs): Likewise.
556         (c_parser_declspecs): Likewise.
557         (c_parser_postfix_expression_after_paren_type): Diagnose compound
558         literal within function qualified with named address space.
559
560         * c-decl.c (diagnose_mismatched_decls): Diagnose conflicting named
561         address space qualifiers.
562         (shadow_tag_warned): Warn about useless address space qualifiers.
563         (quals_from_declspecs): Handle address space qualifiers.
564         (grokdeclarator): Likewise.
565         (build_null_declspecs): Likewise.
566         (declspecs_add_addrspace): New function.
567
568         * c-typeck.c (addr_space_superset): New function.
569         (qualify_type): Handle named address spaces.
570         (composite_type): Likewise.
571         (common_pointer_type): Likewise.
572         (comp_target_types): Likewise.
573         (build_conditional_expr): Likewise.
574         (handle_warn_cast_qual): Likewise.
575         (build_c_cast): Likewise.
576         (convert_for_assignment): Likewise.
577         (build_binary_op): Likewise.
578         (pointer_diff): Handle named address spaces.  Use intermediate
579         integer type of sufficient size if required.
580
581 2009-10-26  Ben Elliston  <bje@au.ibm.com>
582             Michael Meissner  <meissner@linux.vnet.ibm.com>
583             Ulrich Weigand  <uweigand@de.ibm.com>
584
585         * doc/tm.texi (TARGET_ADDR_SPACE_POINTER_MODE): Document.
586         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
587         (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
588
589         * target.h (struct target_def): Add pointer_mode, address_mode,
590         and valid_pointer_mode to addr_space substructure.
591         * target-def.h (TARGET_ADDR_SPACE_POINTER_MODE): Define.
592         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
593         (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
594         (TARGET_ADDR_SPACE_HOOKS): Add them.
595         * targhooks.c (target_default_pointer_address_modes_p): New function.
596         * target.h (target_default_pointer_address_modes_p): Add prototype.
597         * targhooks.c (default_addr_space_pointer_mode): New function.
598         (default_addr_space_address_mode): Likewise.
599         (default_addr_space_valid_pointer_mode): Likewise.
600         * targhooks.h (default_addr_space_pointer_mode): Add prototype.
601         (default_addr_space_address_mode): Likewise.
602         (default_addr_space_valid_pointer_mode): Likewise.
603         * output.h (default_valid_pointer_mode): Move to ...
604         * targhooks.h (default_valid_pointer_mode): ... here.
605         * varasm.c (default_valid_pointer_mode): Move to ...
606         * targhooks.c (default_valid_pointer_mode): ... here.
607
608         * varasm.c (output_constant): Use targetm.addr_space.valid_pointer_mode
609         instead of targetm.valid_pointer_mode.
610
611         * fold-const.c (fit_double_type): Use int_or_pointer_precision.
612         * tree.c (integer_pow2p): Likewise.
613         (tree_log2): Likewise.
614         (tree_floor_log2): Likewise.
615         (signed_or_unsigned_type_for): Support pointer type of different size.
616         (int_or_pointer_precision): New function.
617         * tree.h (int_or_pointer_precision): Add prototype.
618         * stor-layout.c (layout_type): Set TYPE_PRECISION for offset types.
619         * varasm.c (initializer_constant_valid_p): Use TYPE_PRECISION of
620         incoming pointer type instead of POINTER_SIZE.
621
622         * tree.c (build_pointer_type): Use appropriate pointer mode
623         instead of ptr_mode.
624         (build_reference_type): Likewise.
625         * expr.c (store_expr): Likewise.
626         (expand_expr_addr_expr): Likewise.
627         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
628         * cfgexpand.c (expand_debug_expr): Likewise.
629
630         * auto-inc-dec.c: Include "target.h".
631         (try_merge): Use appropriate address mode instead of Pmode.
632         (find_inc): Likewise.
633         * combine.c (find_split_point): Likewise.
634         * cselib.c (cselib_record_sets): Likewise.
635         * dse.c (replace_inc_dec): Likewise.
636         (canon_address): Likewise.
637         * var-tracking.c (replace_expr_with_values): Likewise.
638         (count_uses): Likewise.
639         (add_uses): Likewise.
640         (add_stores): Likewise.
641         * emit-rtl.c: Include "target.h".
642         (adjust_address_1): Use appropriate address mode instead of Pmode.
643         (offset_address): Likewise.
644         * explow.c (break_out_memory_refs): Likewise.
645         (memory_address_addr_space): Likewise.
646         (promote_mode): Likewise.
647         * expr.c (move_by_pieces): Likewise.
648         (emit_block_move_via_loop): Likewise.
649         (store_by_pieces): Likewise.
650         (store_by_pieces_1): Likewise.
651         (expand_assignment): Likewise.
652         (store_constructor): Likewise.
653         (expand_expr_addr_expr): Likewise.
654         (expand_expr_real_1): Likewise.
655         * cfgexpand.c (expand_debug_expr): Likewise.
656         * ifcvt.c (noce_try_cmove_arith): Likewise.
657         * regcprop.c (kill_autoinc_value): Likewise.
658         * regmove.c (try_auto_increment): Likewise.
659         * reload.c (find_reloads): Likewise.
660         (find_reloads_address): Likewise.
661         (find_reloads_address_1): Likewise.
662         * sched-deps.c: Include "target.h".
663         (sched_analyze_1): Use appropriate address mode instead of Pmode.
664         (sched_analyze_2): Likewise.
665         * sel-sched-dump.c: Include "target.h".
666         (debug_mem_addr_value): Use appropriate address mode instead of Pmode.
667         * stor-layout.c (layout_type): Likewise.
668         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
669         (multiplier_allowed_in_address_p): Likewise.
670         (get_address_cost): Likewise.
671         * varasm.c (make_decl_rtl): Likewise.
672
673         * expr.c (expand_assignment): Always convert offsets to appropriate
674         address mode.
675         (store_expr): Likewise.
676         (store_constructor): Likewise.
677         (expand_expr_real_1): Likewise.
678
679         * reload.h (form_sum): Add MODE argument.
680         * reload.c (form_sum): Add MODE argument, use it instead of Pmode.
681         Update recursive calls.
682         (subst_indexed_address): Update calls to form_sum.
683
684         * tree-flow.h (addr_for_mem_ref): Add ADDRSPACE argument.
685         * tree-ssa-address.c: Include "target.h".
686         (templates): Replace by ...
687         (mem_addr_template_list): ... this new vector.
688         (TEMPL_IDX): Handle address space numbers.
689         (gen_addr_rtx): Add address mode argument, use it instead of Pmode.
690         (addr_for_mem_ref): Add ADDRSPACE argument.  Use per-address-space
691         instead of global cache.  Update call to gen_addr_rtx.
692         (valid_mem_ref_p): Update call to addr_for_mem_ref.
693         * expr.c (expand_expr_real_1): Update call to addr_for_mem_ref.
694
695         * rtl.h (convert_memory_address_addr_space): Add prototype.
696         (convert_memory_address): Define as macro.
697         * explow.c (convert_memory_address): Rename to ...
698         (convert_memory_address_addr_space): ... this.  Add ADDRSPACE argument.
699         Use appropriate pointer and address modes instead of ptr_mode / Pmode.
700         Update recursive calls.
701         (memory_address_addr_space): Call convert_memory_address_addr_space.
702         * expmed.c (make_tree): Likewise.
703         * expr.c (expand_assignment): Likewise.
704         (expand_expr_addr_expr_1): Likewise.  Also, add ADDRSPACE argument.
705         (expand_expr_addr_expr): Likewise.  Also, update call.
706
707         * alias.c (find_base_value): Guard pointer size optimizations.
708         (find_base_term): Likewise.
709         * rtlanal.c (nonzero_bits1): Likewise.
710         (num_sign_bit_copies1): Likewise.
711         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
712
713         * Makefile.in (tree-ssa-address.o): Add $(TARGET_H) dependency.
714         (emit-rtl.o): Likewise.
715         (auto-inc-dec.o): Likewise.
716         (sched-deps.o): Likewise.
717
718 2009-10-26  Ben Elliston  <bje@au.ibm.com>
719             Michael Meissner  <meissner@linux.vnet.ibm.com>
720             Ulrich Weigand  <uweigand@de.ibm.com>
721
722         * doc/extend.texi (Named Address Spaces): New section.
723         * coretypes.h (addr_space_t): New type.
724         (ADDR_SPACE_GENERIC): New define.
725         (ADDR_SPACE_GENERIC_P): New macro.
726
727         * doc/tm.texi (Named Address Spaces): New section.
728         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Document.
729         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Document.
730         (TARGET_ADDR_SPACE_SUBSET_P): Document.
731         (TARGET_ADDR_SPACE_CONVERT): Document.
732         * target.h (struct gcc_target): Add addr_space substructure.
733         * target-def.h (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
734         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
735         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
736         (TARGET_ADDR_SPACE_CONVERT): Likewise.
737         (TARGET_ADDR_SPACE_HOOKS): Likewise.
738         (TARGET_INITIALIZER): Initialize addr_space hooks.
739         * targhooks.c (default_addr_space_legitimate_address_p): New function.
740         (default_addr_space_legitimize_address): Likewise.
741         (default_addr_space_subset_p): Likewise.
742         (default_addr_space_convert): Likewise.
743         * targhooks.h (default_addr_space_legitimate_address_p): Add prototype.
744         (default_addr_space_legitimize_address): Likewise.
745         (default_addr_space_subset_p): Likewise.
746         (default_addr_space_convert): Likewise.
747
748         * doc/rtl.texi (MEM_ADDR_SPACE): Document.
749         * rtl.h (mem_attrs): Add ADDRSPACE memory attribute.
750         (MEM_ADDR_SPACE): New macro.
751         * emit-rtl.c (get_mem_attrs): Add ADDRSPACE argument and set
752         address space memory attribute.
753         (mem_attrs_htab_hash): Handle address space memory attribute.
754         (mem_attrs_htab_eq): Likewise.
755         (set_mem_attributes_minus_bitpos): Likewise.
756         (set_mem_alias_set): Likewise.
757         (set_mem_align): Likewise.
758         (set_mem_expr): Likewise.
759         (set_mem_offset): Likewise.
760         (set_mem_size): Likewise.
761         (adjust_address_1): Likewise.
762         (offset_address): Likewise.
763         (widen_memoy_address): Likewise.
764         (get_spill_slot_decl): Likewise.
765         (set_mem_attrs_for_spill): Likewise.
766         (set_mem_addr_space): New function.
767         * emit-rtl.h (set_mem_addr_space): Add prototype.
768         * print-rtl.c (print_rtx): Print address space memory attribute.
769         * expr.c (expand_assignment): Set address space memory attribute
770         of generated MEM RTXes as appropriate.
771         (expand_expr_real_1): Likewise.
772         * cfgexpand.c (expand_debug_expr): Likewise.
773         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
774
775         * tree.h (struct tree_base): Add address_space bitfield.  Reduce
776         size of "spare" bitfield.
777         (TYPE_ADDR_SPACE): New macro.
778         (ENCODE_QUAL_ADDR_SPACE): Likewise.
779         (DECODE_QUAL_ADDR_SPACE): Likewise.
780         (CLEAR_QUAL_ADDR_SPACE): Likewise.
781         (KEEP_QUAL_ADDR_SPACE): Likewise.
782         (TYPE_QUALS): Encode type address space.
783         (TYPE_QUALS_NO_ADDR_SPACE): New macro.
784         * tree.c (set_type_quals): Set type address space.
785         (build_array_type): Inherit array address space from element type.
786         * print-tree.c (print_node_brief): Print type address space.
787         (print_node): Likewise.
788         * tree-pretty-print.c (dump_generic_node): Likewise.
789
790         * explow.c (memory_address): Rename to ...
791         (memory_address_addr_space): ... this.  Add ADDRSPACE argument.
792         Use address-space aware variants of memory address routines.
793         * recog.c (memory_address_p): Rename to ...
794         (memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
795         Use address-space aware variants of memory address routines.
796         (offsettable_address_p): Rename to ...
797         (offsettable_address_addr_space_p): ... this.  Add ADDRSPACE argument.
798         Use address-space aware variants of memory address routines.
799         * reload.c (strict_memory_address_p): Rename to ...
800         (strict_memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
801         Use address-space aware variants of memory address routines.
802         (maybe_memory_address_p): Rename to ...
803         (maybe_memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
804         Use address-space aware variants of memory address routines.
805         * expr.h (memory_address_addr_space): Add prototype.
806         (memory_address): Define as macro.
807         * recog.h (memory_address_addr_space_p): Add prototype.
808         (memory_address_p): Define as macro.
809         (offsettable_address_addr_space_p): Add prototype.
810         (offsettable_address_p): Define as macro.
811         (strict_memory_address_addr_space_p): Add prototype.
812         (strict_memory_address_p): Define as macro.
813
814         * combine.c (find_split_point): Use address-space aware variants
815         of memory address routines.
816         * emit-rtl.c (operand_subword): Likewise.
817         (change_address_1): Likewise.
818         (adjust_address_1): Likewise.
819         (offset_address): Likewise.
820         * expr.c (emit_move_insn): Likewise.
821         (expand_assignment): Likewise.
822         (expand_expr_real_1): Likewise.
823         * recog.c (verify_changes): Likewise.
824         (general_operand): Likewise.
825         (offsettable_memref_p): Likewise.
826         (offsettable_nonstrict_memref_p): Likewise.
827         (constrain_operands): Likewise.
828         * reload.c (get_secondary_mem): Likewise.
829         (find_reloads_toplev): Likewise.
830         (find_reloads_address): Likewise.
831         (find_reloads_subreg_address): Likewise.
832         * reload1.c (reload): Likewise.
833         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
834         * rtl.h (address_cost): Add ADDRSPACE argument.
835         * rtlanal.c (address_cost): Add ADDRSPACE argument.  Use address-space
836         aware variant of memory address routines.
837         * loop-invariant.c (create_new_invariant): Update address_cost call.
838         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
839         * fwprop.c (should_replace_address): Add ADDRSPACE argument.
840         Use address-space aware variant of memory address routines.
841         (propagate_rtx_1): Update call to should_replace_address.
842         * tree-flow.h (multiplier_allowed_in_address_p): Add ADDRSPACE
843         argument.
844         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Add
845         ADDRSPACE argument.  Use per-address-space instead of global cache.
846         Use address-space aware variant of memory address routines.
847         (get_address_cost): Likewise.
848         (get_computation_cost_at): Update calls.
849         * tree-ssa-address.c (valid_mem_ref_p): Add ADDRSPACE argument.
850         Use address-space aware variant of memory address routines.
851         (create_mem_ref_raw): Update call to valid_mem_ref_p.
852         (most_expensive_mult_to_index): Update call to
853         multiplier_allowed_in_address_p.
854
855         * dwarf2out.c (modified_type_die): Output DW_AT_address_class
856         attribute to indicate named address spaces.
857
858         * varasm.c (get_variable_section): DECLs in named address spaces
859         cannot be "common".
860
861         * reload.c (find_reloads_address): Do not use LEGITIMIZE_RELOAD_ADDRESS
862         for addresses in a non-generic address space.
863
864         * expr.c (emit_block_move_hints): Do not use libcalls for
865         memory in non-generic address spaces.
866         (clear_storage_hints): Likewise.
867         (expand_assignment): Likewise.
868
869         * fold-const.c (operand_equal_p): Expressions refering to different
870         address spaces are not equivalent.
871
872         * rtl.c (rtx_equal_p_cb): MEMs refering to different address
873         spaces are not equivalent.
874         (rtx_equal_p): Likewise.
875         * cse.c (exp_equiv_p): Likewise.
876         * jump.c (rtx_renumbered_equal_p): Likewise.
877         * reload.c (operands_match_p): Likewise.
878
879         * alias.c (nonoverlapping_memrefs_p): MEMs refering to different
880         address spaces may alias.
881         (true_dependence): Likewise.
882         (canon_true_dependence): Likewise.
883         (write_dependence_p): Likewise.
884
885         * dse.c (canon_address): Handle named address spaces.
886         * ifcvt.c (noce_try_cmove_arith): Likewise.
887
888         * tree.def (ADDR_SPACE_CONVERT_EXPR): New tree code.
889         * expr.c (expand_expr_real_2): Expand ADDR_SPACE_CONVERT_EXPR.
890         * convert.c (convert_to_pointer): Generate ADDR_SPACE_CONVERT_EXPR
891         to handle conversions between different address spaces.
892         * fold-const.c (fold_convert_loc): Likewise.
893         (fold_unary_loc): Handle ADDR_SPACE_CONVERT_EXPR.
894         * tree-pretty-print.c (dump_generic_node): Likewise.
895         * gimple-pretty-print.c (dump_unary_rhs): Likewise.
896         * tree-cfg.c (verify_gimple_assign_unary): Likewise.
897         * tree-inline.c (estimate_operator_cost): Likewise.
898         * tree-ssa.c (useless_type_conversion_p): Conversions between pointers
899         to different address spaces are not useless.
900
901 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
902
903         PR bootstrap/41345
904         * cfgcleanup.c (trivially_empty_bb_p): New function.
905         (try_optimize_bb): Use it instead of checking BB_HEAD == BB_END.
906
907         PR debug/41828
908         * dwarf2out.c (add_pubname, add_pubtype, generic_parameter_die,
909         add_name_and_src_coords_attributes, gen_namespace_die,
910         dwarf2out_set_name): Handle dwarf2_name returning NULL.
911
912 2009-10-26  Nick Clifton  <nickc@redhat.com>
913
914         * config.gcc: Add support for RX target.
915         * config/rx: New directory.
916         * config/rx/constraints.md: New file.
917         * config/rx/predicates.md: New file.
918         * config/rx/rx.c: New file.
919         * config/rx/rx.h: New file.
920         * config/rx/rx.md: New file.
921         * config/rx/rx.opt: New file.
922         * config/rx/rx-protos.h: New file.
923         * config/rx/t-rx: New file.
924         * doc/extend.texi: Document RX function attributes.
925         * doc/invoke.texi: Document RX specific command line options.
926         * doc/contrib.texi: Document RX contribution.
927         * doc/md.texi: Document RX constraints.
928         * doc/install.texi: Document RX support.
929
930 2009-10-26  Michael Matz  <matz@suse.de>
931
932         PR tree-optimization/41783
933         * tree-ssa-alias.c (get_continuation_for_phi): Export, add a special
934         case for simple diamonds.
935         * tree-ssa-alias.h (get_continuation_for_phi): Declare.
936         * tree-ssa-pre.c (translate_vuse_through_block): Add same_valid
937         argument, use alias oracle to skip some vdefs.
938         (phi_translate_1): Change call to above, don't allocate new
939         value ids if they can stay the same.
940         (compute_avail): Allow vuse walking when looking up references.
941
942 2009-10-26  Richard Guenther  <rguenther@suse.de>
943
944         PR tree-optimization/41826
945         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Avoid
946         access to re-allocated vector fields.
947
948 2009-10-26  Richard Guenther  <rguenther@suse.de>
949
950         * graphite-sese-to-poly.c (check_poly_representation): Fix
951         compile without checking.
952
953 2009-10-26  Janus Weil  <janus@gcc.gnu.org>
954
955         PR fortran/41714
956         * gimple.h (tree_annotate_all_with_location): Remove prototype.
957         * gimplify.c (tree_should_carry_location_p,
958         tree_annotate_one_with_location,tree_annotate_all_with_location):
959         Remove obsolete functions.
960
961 2009-10-25  Kaz Kojima  <kkojima@gcc.gnu.org>
962
963         PR target/41813
964         * config/sh/sh.md (stuff_delay_slot): Don't set T_REG in pattern.
965
966 2009-10-25  Richard Guenther  <rguenther@suse.de>
967
968         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
969         Stream DECL_RESTRICTED_P.
970         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
971
972 2009-10-25  Richard Sandiford  <rdsandiford@googlemail.com>
973
974         * config/mips/mips.c (mips_restore_gp_from_cprestore_slot): Emit
975         a note when expanding to nothing.
976
977 2009-10-25  Richard Guenther  <rguenther@suse.de>
978
979         PR middle-end/41814
980         * tree.c (find_decls_types_r): Deal with Java overloading
981         BINFO_VIRTUALS for its own purpose.
982
983 2009-10-24  Adam Nemet  <anemet@caviumnetworks.com>
984
985         * config/mips/predicates.md (hilo_operand): New predicate.
986         * config/mips/mips.md (<u>mulsidi3_64bit): Change it to a
987         define_insn.  Correct !ISA_HAS_EXT_INS length from 24 to 28.  Move
988         splitter part from here ...:
989         (<u>mulsidi3_64bit splitter for !ISA_HAS_EXT_INS): ... to here.  Swap
990         op0 and op4 to match the DINS case.
991         (<u>mulsidi3_64bit splitter for ISA_HAS_EXT_INS): New splitter.
992
993 2009-10-24  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
994
995         PR middle-end/19154
996         * avr.md (QIDI): Add new mode iterator.
997         (sbrx_branch<mode>): Create new zero extract bit, test and jump
998         patterns for all QI thru DI modes combinations.
999         (sbrx_and_branch<mode>): Create new and based bit test and jump
1000         patterns for QI thru SI modes.
1001         avr.c (avr_out_sbxx_branch): Use only bit number.
1002
1003 2009-10-24  Jan Hubicka  <jh@suse.cz>
1004
1005         * ipa-reference.c (check_call): Noreturn notrhow calls do not write
1006         to memory.
1007         (analyze_function): When analyzing noreturn nothrow call, do not
1008         compute written stats; free bitmaps of vars early if possible.
1009         (generate_summary): Only update bitmaps if computed.
1010         (propagate): Only dump bitmaps if computed.
1011         (ipa_reference_read_summary): Fix pasto.
1012
1013 2009-10-24  Eric Botcazou  <ebotcazou@adacore.com>
1014
1015         * tree-ssa-alias.c (nonaliasing_component_refs_p): Rename into...
1016         (aliasing_component_refs_p): ...this.  Return true if there is no
1017         common base and the base access types have the same alias set.
1018         (indirect_ref_may_alias_decl_p): Adjust for above renaming.
1019         (indirect_refs_may_alias_p): Likewise.
1020
1021 2009-10-23  Joseph Myers  <joseph@codesourcery.com>
1022
1023         PR c/40033
1024         * c-typeck.c (c_finish_stmt_expr): Do not wrap error_mark_node in
1025         a C_MAYBE_CONST_EXPR.
1026
1027 2009-10-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
1028
1029         PR target/41787
1030         * config/rs6000/rs6000.c (struct machine_function): Add
1031         vsx_or_altivec_used_p to record if vector types are used.
1032         (rs6000_expand_to_rtl_hook): Rename from
1033         rs6000_alloc_sdmode_stack_slot.  If VSX, check to see if there are
1034         any vector operations, so if there are, we can set VRSAVE to
1035         non-zero when only floating point vector registers are used.
1036         (TARGET_EXPAND_TO_RTL_HOOK): Use rs6000_expand_to_rtl_hook.
1037         (rs6000_check_vector_mode): Inner function to check if vector
1038         types are used in the code.
1039         (compute_vrsave_mask): If VSX, make sure VRSAVE is non-zero if
1040         vector instructions are used.
1041
1042         * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED):
1043         Indicate that VSX registers which overlap floating point
1044         registers, can't be used across a call, since the ABI only states
1045         the scalar part of the register will be saved and restored.
1046
1047 2009-10-23  Joseph Myers  <joseph@codesourcery.com>
1048
1049         PR c/41673
1050         * alias.c (get_alias_set): Call langhook before returning 0 for
1051         types with structural equality.
1052         * c-common.c (c_common_get_alias_set): Use alias set of element
1053         type for arrays with structural comparison.
1054
1055 2009-10-23  Richard Guenther  <rguenther@suse.de>
1056
1057         PR middle-end/41805
1058         * cfgexpand.c (expand_call_stmt): Use gimple_has_side_effects and
1059         gimple_call_nothrow_p.
1060
1061 2009-10-23  Richard Guenther  <rguenther@suse.de>
1062
1063         PR tree-optimization/41778
1064         * tree-ssa-pre.c (do_regular_insertion): Only insert if a
1065         redundancy along a path in the CFG we want to optimize for speed
1066         is going to be removed.
1067         (execute_pre): Do partial-PRE only if the function is to be
1068         optimized for speed.
1069         (gate_pre): Do not turn off all of PRE when not optimizing a
1070         function for speed.
1071
1072 2009-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1073
1074         * builtins.c (fold_builtin_cabs): Use validate_arg().
1075         (fold_builtin_cexp): Fix if-logic.
1076         (fold_builtin_1): Check subtype for BUILT_IN_CIMAG.
1077
1078 2009-10-22  Jeff Law  <law@redhat.com>
1079
1080         * ira-lives.c (process_single_reg_class_operands): Update the
1081         hard reg costs for all the hard registers desired by the
1082         single reg class operand.
1083
1084 2009-10-22  Richard Sandiford  <rdsandiford@googlemail.com>
1085
1086         * simplify-rtx.c (simplify_replace_fn_rtx): Add a fallback case
1087         for rtxes that aren't handled specially.
1088
1089 2009-10-22  Richard Sandiford  <rdsandiford@googlemail.com>
1090
1091         * rtl.h (shallow_copy_rtvec): Declare.
1092         * rtl.c (shallow_copy_rtvec): New function.
1093         * cselib.c (cselib_subst_to_values): Use it.  Only modify an
1094         rtx field if the subrtx has changed.
1095
1096 2009-10-22  Anatoly Sokolov  <aesok@post.ru>
1097
1098         * config/m32c/m32c.c (m32c_function_value_regno_p): New function.
1099         (m32c_function_value): Make static, add new 'outgoing' argument.
1100         (m32c_libcall_value): Make static, add new 'fun' argument.
1101         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
1102         * config/m32c/m32c.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
1103         (FUNCTION_VALUE_REGNO_P): Redefine, use m32c_function_value_regno_p.
1104         * config/m32c/m32c-protos.h (m32c_function_value_regno_p): Declare.
1105         (m32c_function_value, m32c_libcall_value): Delete declaration.
1106
1107 2009-10-22  Diego Novillo  <dnovillo@google.com>
1108
1109         * Makefile.in (PLUGIN_HEADERS): Add output.h and IPA_UTILS_H.
1110
1111 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
1112
1113         * tree-cfg.c (gimple_duplicate_sese_tail): Fix typos/indentation/white
1114         space.
1115
1116 2009-10-22  Richard Guenther  <rguenther@suse.de>
1117
1118         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Declare.
1119         * lto-symtab.c (struct lto_symtab_entry_def): Add node member.
1120         (lto_symtab_merge): Do not merge cgraph nodes here.
1121         (lto_symtab_resolve_can_prevail_p): Simplify.
1122         (lto_symtab_resolve_symbols): Store cgraph node.
1123         (lto_symtab_merge_decls_1): Simplify.  Do not drop non-prevailing
1124         functions from the symtab.
1125         (lto_symtab_merge_cgraph_nodes_1): New function.
1126         (lto_symtab_merge_cgraph_nodes): Likewise.
1127
1128 2009-10-22  Richard Guenther  <rguenther@suse.de>
1129
1130         PR lto/41791
1131         * lto-streamer-out.c (lto_output_location): Stream the
1132         system header flag.
1133         * lto-streamer-in.c (lto_input_location): Likewise.
1134
1135 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
1136
1137         * cfgloopmanip.c (duplicate_subloops): Export.
1138         * tree-parloops.c (loop_parallel_p): Dump if loop is innermost.
1139         (transform_to_exit_first_loop): Duplicate bbs starting from
1140         header up to loop->latch instead of exit->src.
1141         Initialize control variable to the correct number of iterations.
1142         (gather_scalar_reductions): Do not register double reductions.
1143         (parallelize_loops): Dump which loop is tested.
1144         Indicate whether the parallelized loop is inner or not.
1145         Remove the innermost-loop requirement.
1146         * cfgloop.h (duplicate_subloops): Export.
1147         * tree-cfg.c (add_phi_args_after_redirect): New function.
1148         (gimple_duplicate_sese_tail): Remove the no-subloops constraint.
1149         Call duplicate_subloops.
1150         Update number of iterations at the exit condition.
1151         Don't redirect nexits always to the loop exit.
1152         Redirect copied edges from latch to the loop exit.
1153
1154 2009-10-22  Jan Hubicka  <jh@suse.cz>
1155
1156         * ipa-cp.c (ipcp_read_summary): Remove now invalid FIXME and
1157         flag_ltrans check.
1158         * ipa-inline.c (cgraph_mark_inline_edge,
1159         cgraph_decide_inlining_of_small_function,
1160         cgraph_decide_inlining, inline_read_summary): Disable indirect
1161         inlining for WPA for time being.
1162
1163         PR tree-optimize/40556
1164         * ipa-inline.c (cgraph_early_inlining): Fix iterations condition.
1165
1166 2009-10-22  Richard Guenther  <rguenther@suse.de>
1167
1168         * lto-streamer.h (lto_symtab_clear_resolution): Remove.
1169         * lto-symtab.c (lto_symtab_clear_resolution): Likewise.
1170
1171 2009-10-22  Jan Hubicka  <jh@suse.cz>
1172
1173         PR lto/41730
1174         * ipa-reference.c (has_proper_scope_for_analysis): Add fixme about
1175         global vars.
1176         (check_call): Handle only indirect calls.
1177         (propagate_bits): Update comment.
1178         (write_node_summary_p): Turn bogus check to assert.
1179         (ipa_reference_write_summary): Stream calls_read_all properly.
1180         (ipa_reference_read_summary): Stream in calls_read_all properly.
1181         (read_write_all_from_decl): New function.
1182         (propagate): Handle OVERWRITABLE nodes and external calls here.
1183         * ipa-pre-const.c (check_call): In IPA mode handle indirect
1184         calls only.
1185         (analyze_function): Do not check visibility here.
1186         (add_new_function): We summary OVERWRITABLE too.
1187         (generate_summary): Stream OVERWRITABLE nodes too.
1188         (propagate): Handle external calls and OVERWRITABLE nodes here.
1189         (local_pure_const): Check visibility here.
1190
1191 2009-10-22  Jan Hubicka  <jh@suse.cz>
1192
1193         * ipa-cp.c (ipcp_write_summary, ipcp_read_summary): New functions.
1194         (pass_ipa_cp): Register them.
1195         (ipcp_init_stage): Analyze all functions for whopr/lto.
1196         (ipcp_propagate_stage): Skip external calls.
1197         (ipcp_iterate_stage): Call ipa_update_after_lto_read if needed.
1198         * ipa-reference.c (write_node_summary_p): Fix thinko about
1199         availability.
1200         * cgraphunit.c (ipa_passes): When in lto, ne er produce new summaries;
1201         when in ltrans, skip executing of ipa passes since everything
1202         should've been done.
1203         * ipa-inline.c (cgraph_decide_inlining): Remove FIXMEs.
1204         (inline_generate_summary): Likewise.
1205         (inline_read_summary): New function.
1206         (inline_write_summary): New function.
1207         (pass_ipa_inline): Register new hooks.
1208         * ipa-prop.c: Inlcude lto-streamer.h
1209         (ipa_edge_args_vector): Update declaration.
1210         (ipa_count_arguments, ipa_compute_jump_functions,
1211         ipa_free_edge_args_substructures): Move ipa_edge_args_vector into ggc.
1212         (ipa_write_jump_function, ipa_read_jump_function, ipa_write_node_info,
1213         ipa_read_node_info): New static functions.
1214         (ipa_prop_write_jump_functions, ipa_prop_read_jump_functions): Update.
1215         (duplicate_array): Use xmalloc.
1216         (duplicate_ggc_array): New.
1217         (ipa_edge_duplication_hook): Use it.
1218         (ipa_update_after_lto_read): New function.
1219         * ipa-prop.h (ipa_prop_write_jump_functions,
1220         ipa_prop_read_jump_functions): Declare.
1221         (ipa_pass_through_data, ipa_ancestor_jf_data, ipa_member_ptr_cst,
1222         jump_func_value, ipa_member_ptr_cst, ipa_edge_args): Add GTY markers.
1223         (ipa_edge_args_vector): Move into GGC.
1224         (ipa_check_create_edge_args): Update.
1225         (ipa_update_after_lto_read): New.
1226         * passes.c (ipa_write_summaries_1): When in wpa, do not write
1227         summaries.
1228         (ipa_read_summaries): When in ltrans, so not read summaries.
1229         * lto-streamer.c (lto_get_section_name): Add
1230         LTO_section_jump_functions.
1231         * lto-streamer.h (LTO_section_jump_functions): New section.
1232         (produce_asm): Declare.
1233         * lto-cgraph.c (output_cgraph): Output edges in reverse order.
1234         * lto-streamer-out.c (produce_asm): Export.
1235         * lto-streamer-in.c: Include tree-pass.h
1236         (input_function): Free dominance info when done.
1237         (lto_read_body): Push ipa_inline in ltrans stage.
1238         * gengtype.c (open_base_files): Add ipa-prop.h into includes.
1239         * Makefile.in (GTFILES): Add ipa-prop.h
1240
1241 2009-10-22  Matthias Klose  <doko@ubuntu.com>
1242
1243         * doc/install.texi: Document --enable-browser-plugin.
1244
1245 2009-10-21  Vladimir Makarov  <vmakarov@redhat.com>
1246
1247         * doc/invoke.texi (fira-loop-pressure): Update default value.
1248         * opts.c (decode_options): Remove default value setting for
1249         flag_ira_loop_pressure.
1250         * config/ia64/ia64.c (ia64_override_options): Set
1251         flag_ira_loop_pressure up for -O3.
1252         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
1253
1254 2009-10-21  Sebastian Pop  <sebastian.pop@amd.com>
1255
1256         PR tree-optimization/41497
1257         * tree-scalar-evolution.c (analyze_evolution_in_loop): Return
1258         chrec_dont_know if the evolution function returned by follow_ssa_edge
1259         is constant in the analyzed loop and is not compatible with the
1260         initial value before the loop.
1261         * tree-chrec.h (no_evolution_in_loop_p): Call STRIP_NOPS.
1262
1263 2009-10-21  Joseph Myers  <joseph@codesourcery.com>
1264
1265         * config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
1266
1267 2009-10-21  Jakub Jelinek  <jakub@redhat.com>
1268
1269         PR other/25507
1270         * doc/invoke.texi: Document -print-multi-os-directory.
1271
1272 2009-10-21  Jack Howarth  <howarth@bromo.med.uc.edu>
1273
1274         PR c++/41313
1275         * gcc/config/darwin10.h: Use default_emit_unwind_label.
1276         * gcc/config/darwin.c: Disable -freorder-blocks-and-partition
1277         when darwin_emit_unwind_label is used.
1278
1279 2009-10-21  Eric Botcazou  <ebotcazou@adacore.com>
1280
1281         * tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak
1282         order of checks.
1283
1284 2009-10-20  Richard Henderson  <rth@redhat.com>
1285
1286         * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1
1287         before emit_post_landing_pad.
1288
1289 2009-10-20  Adam Nemet  <anemet@caviumnetworks.com>
1290
1291         * config/mips/mips.c (mips_binary_cost): Add new argument speed.
1292         Use when calling rtx_costs.
1293         (mips_rtx_costs): Fix formatting.  Use argument speed rather than the
1294         global optimize_size.  Pass speed to mips_binary_cost.
1295
1296 2009-10-20  Jakub Jelinek  <jakub@redhat.com>
1297
1298         * config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
1299         of TREE_CONSTANT.
1300
1301 2009-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
1302
1303         * rtl.h (simplify_replace_fn_rtx): Declare.
1304         (wrap_constant, unwrap_constant): Delete.
1305         * cfgexpand.c (unwrap_constant, wrap_constant): Delete.
1306         (expand_debug_expr): Don't call wrap_constant.
1307         * combine.c (rtx_subst_pair): Only define for AUTO_INC_DEC.
1308         (auto_adjust_pair): Fold into...
1309         (propagate_for_debug_subst): ...here.  Only define for AUTO_INC_DEC.
1310         Just return a new value.
1311         (propagate_for_debug): Use simplify_replace_fn_rtx for AUTO_INC_DEC,
1312         otherwise use simplify_replace_rtx.
1313         * cselib.c (wrap_constant): Reinstate old definition.
1314         (cselib_expand_value_rtx_1): Don't wrap constants.
1315         * gcse.c (try_replace_reg): Don't use copy_rtx in the call to
1316         simplify_replace_rtx.
1317         (bypass_block): Fix formatting in calls to simplify_replace_rtx.
1318         * reload1.c (reload): Skip all uses for an insn before adjusting it.
1319         Use simplify_replace_rtx.
1320         * simplify-rtx.c (simplify_replace_fn_rtx): New function,
1321         adapted from...
1322         (simplify_replace_rtx): ...here.  Turn into a wrapper for
1323         simplify_replace_fn_rtx.
1324         (simplify_unary_operation): Don't unwrap CONSTs.
1325         * var-tracking.c (check_wrap_constant): Delete.
1326         (vt_expand_loc_callback): Don't call it.
1327         (vt_expand_loc): Likewise.
1328
1329 2009-10-20  Pascal Obry  <obry@adacore.com>
1330             Eric Botcazou  <ebotcazou@adacore.com>
1331
1332         * config/i386/cygming.h (DWARF_FRAME_REGNUM): Add enclosing parens.
1333
1334 2009-10-20  Michael Matz  <matz@suse.de>
1335
1336         * loop-invariant.c (create_new_invariant): Use different magic number.
1337
1338 2009-10-20  Richard Earnshaw  <rearnsha@arm.com>
1339
1340         PR target/39247
1341         * arm.c (arm_override_options): Forcibly disable hot/cold block
1342         partitioning.
1343
1344 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
1345
1346         PR debug/41739
1347         * haifa-sched.c (try_ready): Skip debug deps updating speculation
1348         status.
1349
1350 2009-10-20  Richard Guenther  <rguenther@suse.de>
1351
1352         * ggc-page.c: Include cfgloop.h.
1353         (struct max_alignment): Drop long double, add void *.
1354         (extra_order_size_table): Add low non-power-of-two multiples
1355         of MAX_ALIGNMENT.  Drop small type-based entries, add
1356         tree_type, cgraph_node and loop.
1357         * alloc-pool.c (struct allocation_object_def): Drop long double
1358         aligning element.
1359
1360 2009-10-20  Jakub Jelinek  <jakub@redhat.com>
1361
1362         PR debug/41340
1363         * loop-invariant.c (calculate_loop_reg_pressure): Don't count regs
1364         referenced just in DEBUG_INSNs.
1365
1366 2009-10-20  Richard Guenther  <rguenther@suse.de>
1367
1368         PR lto/41761
1369         * gimple.c (gimple_register_type): Make sure we register
1370         the types main variant first.
1371
1372 2009-10-20  Richard Guenther  <rguenther@suse.de>
1373
1374         * gimple.c (gimple_types_compatible_p): Simplify.  Move
1375         cheap checks before hashtable queries.  Add checks for
1376         TYPE_NONALIASED_COMPONENT and DECL_NONADDRESSABLE_P.
1377
1378 2009-10-20  Eric Botcazou  <ebotcazou@adacore.com>
1379
1380         * tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
1381         without size or with size that can't be represented as a host integer.
1382
1383 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
1384
1385         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
1386         the removal of a debug stmt as a significant change.
1387
1388 2009-10-20  Wolfgang Gellerich  <gellerich@de.ibm.com>
1389
1390         * config/s390/s390.md: Added agen condition to operand
1391         forwarding bypasses.  Added bypass for early address generation
1392         use of int results.  Updated comments.
1393
1394 2009-10-20  Stefan Dösinger  <stefan@codeweavers.com>
1395
1396         * config/i386/i386.c: Remove signal.h #include.
1397
1398 2009-10-20  Jie Zhang  <jie.zhang@analog.com>
1399
1400         * simplify-rtx.c (simplify_const_unary_operation): Handle SS_ABS.
1401         * doc/rtl.texi: Document ss_abs.
1402
1403 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
1404
1405         * c-common.c (c_parse_error): Handle CPP_UTF8STRING.
1406         * c-lex.c (c_lex_with_flags): Likewise.  Test C_LEX_STRING_NO_JOIN
1407         instead of C_LEX_RAW_STRINGS.
1408         (lex_string): Handle CPP_UTF8STRING.
1409         * c-parser.c (c_parser_postfix_expression): Likewise.
1410         * c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
1411         (C_LEX_STRING_NO_JOIN): ... this.
1412
1413 2009-10-19  Anatoly Sokolov  <aesok@post.ru>
1414
1415         * config/cris/cris.c (cris_function_value, cris_libcall_value,
1416         cris_function_value_regno_p): New functions.
1417         (cris_promote_function_mode): Update comment.
1418         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
1419         * config/cris/cris.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
1420         (FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
1421         * config/cris/cris-protos.h (cris_function_value_regno_p): Declare.
1422
1423 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
1424
1425         * unwind-dw2.c (execute_stack_op): Fix operand order for
1426         DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
1427
1428 2009-10-19  Eric Botcazou  <ebotcazou@adacore.com>
1429
1430         * gimple-low.c (struct lower_data): Add cannot_fallthru field.
1431         (lower_stmt) <GIMPLE_BIND>: Add comment.
1432         <GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
1433         and return.
1434         <GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
1435         Otherwise lower it and set cannot_fallthru to true.
1436         <GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
1437         <GIMPLE_CATCH, GIMPLE_EH_FILTER>: Set cannot_fallthru to false.
1438         <GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
1439         to true for a noreturn call.  Do not remove statements.
1440         <GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
1441         Set cannot_fallthru to false on function exit.
1442         (gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
1443         <GIMPLE_ASSIGN>: Remove.
1444
1445 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1446
1447         * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
1448
1449 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1450
1451         * config/s390/s390.c (s390_z10_optimize_cmp): Use
1452         next/prev_active_insn to skip DEBUG_INSNs as well.
1453
1454 2009-10-19  Joseph Myers  <joseph@codesourcery.com>
1455
1456         * config/arm/arm.c (output_move_neon): Use DImode in call to
1457         adjust_address.
1458
1459 2009-10-19  Matthias Klose  <doko@ubuntu.com>
1460
1461         PR target/40134
1462         * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
1463
1464 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
1465
1466         * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM op0.
1467
1468 2009-10-17  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
1469
1470         PR middle-end/41738
1471         * optabs.c (expand_binop): Make mode of shift count expression mode
1472         of shift count not target.
1473         Remove indent nit.
1474
1475 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1476
1477         * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
1478         case.  Force using values to replace references within the statement.
1479         (convert_local_reference_stmt): Likewise.
1480
1481 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1482
1483         * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
1484         remove a subsequent GOTO or RETURN statement.
1485
1486 2009-10-17  Andy Hutchinson  <hutchinsonandy@aim.com>
1487
1488         * config/avr.md (*movqi): Add zero as equally preferable constraint
1489         as general register.
1490         (*movhi): Ditto.
1491
1492 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1493
1494         * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
1495
1496 2009-10-17  Richard Guenther  <rguenther@suse.de>
1497
1498         * lto-streamer-in.c (lto_input_location): Try to reuse previous maps.
1499
1500 2009-10-17  Richard Guenther  <rguenther@suse.de>
1501
1502         * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
1503         operands in COMPONENT_REFs.
1504
1505 2009-10-17  Anatoly Sokolov  <aesok@post.ru>
1506
1507         * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
1508         if not defined. Change type of second argument to const_rtx.
1509         (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
1510         macro not defined.
1511         * targhooks.h (default_libcall_value): Update prototype.
1512         * target.h (struct gcc_target): Change type of second argument of
1513         libcall_value to const_rtx.
1514         * config/arm/arm.c (arm_libcall_value): Change type of second argument
1515         to const_rtx.
1516         (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
1517         * doc/tm.texi (TARGET_LIBCALL_VALUE):  Revise documentation.
1518
1519 2009-10-17  Jakub Jelinek  <jakub@redhat.com>
1520
1521         PR debug/40521
1522         * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
1523         * cgraphunit.c (cgraph_optimize): Call it.
1524         * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
1525         (dwarf2out_assembly_start): ... here.  New hook.
1526         (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
1527         * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
1528         hook.
1529         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
1530         * sdbout.c (sdb_debug_hooks): Likewise.
1531         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
1532         (vmsdbgout_assembly_start): New hook.
1533
1534 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
1535
1536         * rtl.h (RTL_LOCATION): Fix typo.
1537
1538 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
1539
1540         * print-rtl.c (print_rtx): Print locators in asm_operands
1541         and asm_input.
1542
1543 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
1544
1545         PR debug/41535
1546         * sched-deps.c (depl_on_debug_p): New.
1547         (attach_dep_link): Reject debug deps before nondebug deps.
1548         (add_to_deps_list): Insert debug deps after nondebug deps.
1549         (sd_lists_empty_p): Stop at first nonempty list.  Disregard debug
1550         deps.
1551         (sd_add_dep): Do not reject debug deps.
1552         (add_insn_mem_dependence): Don't count debug deps.
1553         (remove_from_deps): Likewise.
1554         (sched_analyze_2): Set up mem deps on debug insns.
1555         (sched_analyze_insn): Record reg uses for deps on debug insns.
1556         * haifa-sched.c (schedule_insn): Reset deferred debug insn.  Don't
1557         try_ready nondebug insn after debug insn.
1558         * ddg.c (create_ddg_dep_from_intra_loop_link,
1559         create_ddg_dep_no_link): Don't reject debug deps.
1560
1561 2009-10-16  Richard Guenther  <rguenther@suse.de>
1562
1563         * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
1564         (maybe_merge_incomplete_and_complete_type): Likewise.
1565         (lto_symtab_merge): Do not call them.  Do not warn for
1566         complete vs. incomplete compatible types.
1567         (lto_symtab_merge_decls_2): Simplify.
1568         * gimple.c (gimple_force_type_merge): Remove.
1569         (gimple_types_compatible_p): Make it static.
1570         * gimple.h (gimple_force_type_merge): Remove.
1571         (gimple_types_compatible_p): Likewise.
1572
1573 2009-10-16  Jakub Jelinek  <jakub@redhat.com>
1574
1575         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
1576         DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
1577
1578 2009-10-16  Richard Guenther  <rguenther@suse.de>
1579
1580         PR tree-optimization/41728
1581         * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
1582         if fold_stmt did anything.
1583
1584 2009-10-16  Richard Guenther  <rguenther@suse.de>
1585
1586         PR lto/41715
1587         * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
1588         (maybe_fixup_handled_component): New function.
1589         (input_gimple_stmt): Fixup mismatched decl replacements.
1590
1591 2009-10-16  Richard Guenther  <rguenther@suse.de>
1592
1593         PR lto/41713
1594         * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
1595         the same as VAR_DECL.
1596
1597 2009-10-16  Richard Guenther  <rguenther@suse.de>
1598
1599         * gimple.c (iterative_hash_gimple_type): For integer types
1600         also hash their minimum and maximum values and the string flag.
1601         For array types hash their domain and the string flag.
1602
1603 2009-10-16  Richard Guenther  <rguenther@suse.de>
1604
1605         * gimple.c (gimple_types_compatible_p): Restrict completing
1606         types to record or unions.  Simplify completion.
1607         Do not merge records or unions with different
1608         TYPE_STRUCTURAL_EQUALITY_P tag.
1609         (iterative_hash_gimple_type): Restrict non-recursing into
1610         pointer targets for records and unions.
1611
1612 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
1613
1614         PR debug/41717
1615         * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
1616         * dwarf2out.c (mem_loc_descriptor): Don't handle
1617         POST_INT/POST_DEC/POST_MODIFY like SUBREG.  For SUBREG
1618         punt if it is not lowpart subreg or if inner mode isn't
1619         MODE_INT.
1620
1621 2009-10-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1622
1623         * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
1624         investigating previous or next insns.
1625
1626 2009-10-16  Eric Botcazou  <ebotcazou@adacore.com>
1627
1628         * tree-sra.c (build_ref_for_offset_1): Update comment.
1629
1630 2009-10-16  Wolfgang Gellerich  <gellerich@de.ibm.com>
1631
1632         * config/s390/s390.md (atype): Added missing values.
1633
1634 2009-10-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1635
1636         PR target/41702
1637         * pa.md (casesi): Use sign extended index in call to gen_casesi64p.
1638         (casesi64p): Update pattern to reflect above.
1639
1640 2009-10-15  Steve Ellcey  <sje@cup.hp.com>
1641
1642         PR rtl-optimization/41697
1643         * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
1644
1645 2009-10-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
1646
1647         PR target/23983
1648         * config/rs6000/predicates.md: Update copyright year.
1649         * config/rs6000/altivec.md: Ditto.
1650
1651         * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
1652         (MD_INCLUDES): Add a2.md.
1653
1654         * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
1655         RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
1656         (builtin_classify): New static vector to classify various builtins
1657         to get the tree attributes correct.
1658         (def_builtin): Set the attributes of builtins based on what the
1659         builtin does (i.e. memory operation, floating point, saturation
1660         need special attributes, others are pure functions).
1661
1662         * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
1663         the builtins.
1664         (enum rs6000_builtins): Include rs6000-builtin.def to define the
1665         builtins.  Change the end marker to MAX_RS6000_BUILTINS from
1666         RS6000_BUILTIN_COUNT.
1667         (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
1668         MAX_RS6000_BUILTINS.
1669
1670         * config/rs6000/rs6000-builtin.def: New file that combines the
1671         builtin enumeration name and attributes.
1672
1673 2009-10-15  H.J. Lu  <hongjiu.lu@intel.com>
1674
1675         * config/i386/linux.h (ASM_SPEC): Add --32.
1676
1677 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
1678
1679         * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
1680         and DW_TAG_template_alias.
1681         (dwarf_attr_name): Handle DW_AT_main_subprogram,
1682         DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
1683         DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
1684         DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
1685         DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
1686         and DW_AT_GNU_odr_signature.
1687         (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
1688         DW_FORM_flag_present and DW_FORM_ref_sig8.
1689         (output_signature): Only print name on the first byte.
1690         (output_die): Likewise for dw_val_class_data8.
1691
1692 2009-10-15  Alexander Monakov  <amonakov@ispras.ru>
1693
1694         * doc/invoke.texi: Clarify that most optimizations are not enabled
1695         without -O.
1696
1697 2009-10-15  Richard Guenther  <rguenther@suse.de>
1698
1699         PR lto/41668
1700         * gimple.c (compare_type_names_p): Handle anonymous names
1701         differently based on new mode argument.
1702         (gimple_types_compatible_p): For structs also compare the tags.
1703         (iterative_hash_type_name): Rename to ...
1704         (iterative_hash_name): ... this.  Hash all names.
1705         (iterative_hash_gimple_type): Fix hashing the struct tag of
1706         pointer targets.  Hash field decl names.
1707
1708 2009-10-15  Richard Guenther  <rguenther@suse.de>
1709
1710         PR lto/41669
1711         * gimple.c (gimple_get_alias_set): Avoid recursing on
1712         invalid type topology.
1713
1714 2009-10-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1715
1716         * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
1717
1718 2009-10-15  Richard Guenther  <rguenther@suse.de>
1719
1720         * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
1721
1722 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
1723
1724         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
1725         add --with-tune{,-32,-64} configured default for -mtune if explicit
1726         -mcpu is used.
1727
1728 2009-10-14  Daniel Gutson  <dgutson@codesourcery.com>
1729
1730         * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
1731
1732 2009-10-14  DJ Delorie  <dj@redhat.com>
1733
1734         * config/h8300/h8300.c (F): New.
1735         (Fpa): New.
1736         (h8300_emit_stack_adjustment): Call them.
1737         (push): Likewise.
1738         (h8300_push_pop): Likewise.
1739         (h8300_expand_prologue): Likewise.
1740         * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
1741         (MUST_USE_SJLJ_EXCEPTIONS): Define.
1742         (INCOMING_RETURN_ADDR_RTX): Define.
1743         (INCOMING_FRAME_SP_OFFSET): Define.
1744         (DWARF_CIE_DATA_ALIGNMENT): Define.
1745
1746 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
1747
1748         * stor-layout.c (place_field): Don't emit -Wpadded warnings for
1749         fields in builtin structs.
1750         (finalize_record_size): Likewise.
1751
1752 2009-10-14  Richard Guenther  <rguenther@suse.de>
1753
1754         * gimple.c (gtc_ob): New global.
1755         (struct type_pair_d): Replace pointers with type UIDs.
1756         (type_pair_hash): Adjust.
1757         (type_pair_eq): Likewise.
1758         (lookup_type_pair): Likewise.  Allocate from an obstack.
1759         (gimple_force_type_merge): Adjust.
1760         (gimple_types_compatible_p): Likewise.
1761         (free_gimple_type_tables): Free the obstack.
1762
1763 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
1764
1765         * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
1766         stmts setting DEBUG_EXPR_DECLs.
1767
1768         * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
1769         Don't crash if mode1 is VOIDmode.
1770
1771 2009-09-26  Vladimir Makarov  <vmakarov@redhat.com>
1772
1773         * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
1774         * params.h (IRA_LOOP_RESERVED_REGS): New.
1775         * tree-pass.h (pass_subregs_of_mode_init,
1776         pass_subregs_of_mode_finish): Remove.
1777         * passes.c (pass_subregs_of_mode_init,
1778         pass_subregs_of_mode_finish): Remove.
1779         (pass_reginfo_init): Move before loop optimizations.
1780         * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
1781         * common.opt (fira-loop-pressure): New.
1782         * toplev.h (flag_ira_loop_pressure): New.
1783         * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New externals.
1784         * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
1785         Make external and void type functions.
1786         (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
1787         pass_subregs_of_mode_finish): Remove.
1788         * ira-costs.c (init_costs): Call init_subregs_of_mode.
1789         * regmove.c: Include ira.h.
1790         (regmove_optimize): Call ira_set_pseudo_classes after IRA based
1791         register pressure calculation in loops.
1792         * loop-invariant.c: Include REGS_H and ira.h.
1793         (struct loop_data): New members max_reg_pressure, regs_ref, and
1794         regs_live.
1795         (struct invariant): New member orig_regno.
1796         (curr_loop): New variable.
1797         (find_exits): Initialize regs_ref and regs_live.
1798         (create_new_invariant): Initialize orig_regno.
1799         (get_cover_class_and_nregs): New.
1800         (get_inv_cost): Make aregs_needed an array.  Use regs_needed as an
1801         array.  Add code for flag_ira_loop_pressure.
1802         (gain_for_invariant): Make new_regs an array.  Add code for
1803         flag_ira_loop_pressure.
1804         (best_gain_for_invariant): Ditto.
1805         (set_move_mark): New parameter gain.  Use it for debugging output.
1806         (find_invariants_to_move): Make regs_needed and new_regs an array.
1807         Add code for flag_ira_loop_pressure.
1808         (move_invariant_reg): Set up orig_regno.
1809         (move_invariants): Set up reg classes for pseudos for
1810         flag_ira_loop_pressure.
1811         (free_loop_data): Clear regs_ref and regs_live.
1812         (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
1813         get_regno_cover_class, change_pressure, mark_regno_live,
1814         mark_regno_death, mark_reg_store, mark_reg_clobber,
1815         mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
1816         (move_loop_invariants): Calculate pressure.  Initialize curr_loop.
1817         * ira.c (ira): Call ira_set_pseudo_classes after IRA based
1818         register pressure calculation in loops if new regs were added.
1819         Call finish_subregs_of_mode.
1820         * opts.c (decode_options): Set up flag_ira_loop_pressure.
1821         * Makefile.in (loop-invariant.o): Add ira.h.
1822         (regmove.o): Ditto.
1823         * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
1824         Describe.
1825         * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
1826
1827 2009-10-14  Richard Guenther  <rguenther@suse.de>
1828
1829         * lto-symtab.c (lto_symtab_compatible): Fold in ...
1830         (lto_symtab_merge): ... here.  Rewrite both to take the
1831         prevailing and a to-be-merged entry and to queue diagnostics properly.
1832         (lto_symtab_resolve_replaceable_p): New predicate for
1833         symbol resolution.
1834         (lto_symtab_resolve_can_prevail_p): Likewise.
1835         (lto_symtab_resolve_symbols): Rewrite.  Fold in code that
1836         handles merging commons by choosing the largest decl.  Fold
1837         in code that gives ODR errors.
1838         (lto_symtab_merge_decls_2): Simplify a lot.  Emit queued
1839         diagnostics here.
1840         (lto_symtab_merge_decls_1): Re-structure.  Deal with the
1841         case of no prevailing decl here.  Diagnose mismatches
1842         in object types here.  Drop all but the prevailing decls.
1843         (lto_symtab_prevailing_decl): Return the single prevailing decl.
1844         * lto-streamer-in.c (lto_input_tree_ref): Deal with
1845         VIEW_CONVERT_EXPRs in decl slots.  Unshare the tree in this case.
1846
1847 2009-10-14  Richard Guenther  <rguenther@suse.de>
1848
1849         PR lto/41521
1850         * lto-streamer-in.c (input_bb): Replace debug stmts with
1851         nops instead of dropping them.
1852
1853 2009-10-14  Nick Clifton  <nickc@redhat.com>
1854
1855         * gcc/doc/extended.texi: Replace the dash character with @minus{}
1856         in situations where it is being used as a minus symbol.
1857         * gcc/doc/tm.texi: Likewise.
1858         * gcc/doc/md.texi: Likewise.
1859
1860 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
1861
1862         PR preprocessor/41543
1863         * input.h (BUILTINS_LOCATION): Change to 1 from 2.
1864         Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
1865         * tree.c: Include intl.h.
1866         (expand_location): Handle BUILTINS_LOCATION.
1867         * Makefile.in (tree.o): Depend on intl.h.
1868
1869         PR debug/41695
1870         * dwarf2out.c (dwarf2out_var_location): Always clear
1871         last_postcall_label when changing last_label.
1872
1873 2009-10-14  Pascal Obry  <obry@adacore.com>
1874
1875         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
1876         (process_command): Handle -E as done with -c and -S.  Do not add
1877         the target executable suffix to the output file when -E is used.
1878         (main): Adjust error message accordingly.
1879
1880 2009-10-14  Alexandre Oliva  <aoliva@redhat.com>
1881
1882         PR debug/41343
1883         PR debug/41447
1884         PR debug/41264
1885         PR debug/41338
1886         * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
1887         decl with rtl.
1888         (tree_code_size): Likewise.
1889
1890 2009-10-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1891
1892         * builtins.c (fold_builtin_1): Support complex "arc" functions.
1893         * real.h (HAVE_mpc_arc): Define.
1894
1895 2009-10-14  Kaz Kojima  <kkojima@gcc.gnu.org>
1896
1897         * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
1898         (struct builtin_description): Add fndecl field.
1899         (bdesc): Remove const qualifier.  Update initializer.
1900         (sh_media_init_builtins): Remove const qualifier for d.  Record
1901         the result of add_builtin_function to the fndecl field.
1902         (sh_builtin_decl): New.
1903         (sh_media_builtin_decl): New.
1904
1905 2009-10-14  Hans-Peter Nilsson  <hp@axis.com>
1906
1907         PR target/38948
1908         * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
1909         requests between special registers.
1910
1911 2009-10-13  Eric Botcazou  <ebotcazou@adacore.com>
1912
1913         * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
1914
1915 2009-10-13  Richard Henderson  <rth@redhat.com>
1916
1917         PR tree-optimization/41377
1918         * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
1919         (cleanup_empty_eh_merge_phis): New change_region parameter;
1920         pass it on to redirect_eh_edge_1.  Update callers.
1921         (cleanup_empty_eh_unsplit): Don't require an existing EH label
1922         at the destination block.
1923
1924 2009-10-13  Basile Starynkevitch  <basile@starynkevitch.net>
1925
1926         * passes.c (register_pass): Replaced gcc_unreachable by
1927         fatal_error on failure. Mentions plugins in comments & messages.
1928
1929 2009-10-13  Jakub Jelinek  <jakub@redhat.com>
1930
1931         PR target/41693
1932         * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
1933         * sched-vis.c (print_value): Use it.
1934         * cselib.c (cselib_hash_rtx): Likewise.
1935         * print-rtl.c (print_rtx): Likewise.
1936         * cfgexpand.c (expand_debug_rtx): Likewise.
1937         * var-tracking.c (vt_expand_loc_callback): Likewise.
1938
1939 2009-10-13  Richard Guenther  <rguenther@suse.de>
1940
1941         PR lto/41565
1942         * opts.c (handle_option): Split out code to handle setting
1943         the options flag var ...
1944         (set_option): ... here.
1945         * opts.h (set_option): Declare.
1946         * lto-opts.c (register_user_option_p): Include -fexceptions
1947         and all position independent code variants.
1948         (handle_common_option): Remove.
1949         (lto_reissue_options): Use set_option.
1950
1951 2009-10-13  Martin Jambor  <mjambor@suse.cz>
1952
1953         PR tree-optimization/41661
1954         * ipa-prop.c (compute_complex_pass_through): Allow only operations
1955         that are tcc_comparisons or do not change the type in any
1956         un-usleless way.
1957         * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
1958         folding tcc_comparison operations.
1959
1960 2009-10-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1961
1962         * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
1963         properly.
1964
1965 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
1966
1967         PR debug/41343
1968         PR debug/41447
1969         PR debug/41264
1970         PR debug/41338
1971         * tree.def (DEBUG_EXPR_DECL): New.
1972         * rtl.def (DEBUG_EXPR): New.
1973         * gengtype.c (adjust_field_rtx_def): Handle it.
1974         * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
1975         (insert_debug_temp_for_var_def): ... this.  Drop support for
1976         moving.  Take iterator for def stmt; insert debug stmt before it.
1977         Scan early for use count and kind in debug stmts.
1978         (propagate_defs_into_debug_stmts): Rename to...
1979         (insert_debug_temps_for_defs): ... this.  Likewise.
1980         * tree.h (DEBUG_TEMP_UID): New.
1981         * tree.c (next_debug_decl_uid): New.
1982         (make_node_stat): Count debug decls separately.
1983         (copy_node_stat): Likewise.
1984         * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
1985         * var-tracking.c (dv_is_decl_p): Recognize it.
1986         (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
1987         (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
1988         (vt_expand_loc_callback): Expand DEBUG_EXPRs.
1989         (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
1990         * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
1991         (cselib_hash_rtx): Likewise.
1992         (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
1993         * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
1994         debug bind stmts.
1995         * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
1996         (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
1997         * rtl.c (copy_rtx): Likewise.
1998         (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
1999         * print-rtl.c (print_rtx): Likewise.
2000         * sched-vis.c (print_value): Likewise.
2001         (print_insn): Handle DEBUG_EXPR_DECL.
2002         * tree-dump.c (dequeue_and_dump): Likewise.
2003         * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
2004         * gimple-iterator (gsi_replace): Check for same lhs.
2005         (gsi_remove): Insert debug temps.
2006         * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
2007         (move_computations_stmt): Drop explicit propagation into debug stmts.
2008         (rewrite_bittest): Likewise.  Use gsi_remove for propagation.
2009         * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
2010         * tree-ssa-sink.c (statement_sink_location): Likewise.
2011         * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
2012         * tree-ssanames.c (release_ssa_name): Adjust for rename.
2013         * tree-flow.h: Likewise.
2014         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
2015         debug temps without values.
2016         (eliminate_unnecessary_stmts): Don't discard just-inserted
2017         debug stmts.
2018
2019 2009-10-12  Hans-Peter Nilsson  <hp@axis.com>
2020
2021         PR target/26515
2022         * config/cris/cris.md (andu): Check that operand 1 is one of the
2023         general registers.  Fix typo in head comment.
2024
2025 2009-10-12  Stefan Dösinger  <stefan@codeweavers.com>
2026
2027         * config/i386/i386.md (vswapmov): New.
2028         * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
2029         (ix86_function_ms_hook_prologue): New.
2030         (ix86_expand_prologue): Handle ms_hook_prologue attribute.
2031         * configure.ac: Test for swap suffix support in as.
2032         * configure: Rebuild.
2033
2034 2009-10-12  Jakub Jelinek  <jakub@redhat.com>
2035
2036         PR target/41680
2037         * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
2038         paradoxical subregs to prevent partial register stalls if the inner
2039         mode is integer mode.
2040
2041 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
2042
2043         * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
2044
2045 2009-10-12  Dodji Seketeli  <dodji@redhat.com>
2046
2047         PR c++/41570
2048         * gcc/dwarf2out.c (template_parameter_pack_die,
2049         gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
2050
2051 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
2052
2053         PR debug/41616
2054         * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
2055         on updates too.
2056         (maybe_register_def): Likewise.  Take stmt iterator.
2057         (rewrite_update_stmt): Take stmt iterator and pass it on.
2058         (rewrite_update_enter_block): Pass stmt iterator.
2059
2060 2009-10-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2061
2062         * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
2063         (spu_builtin_decl): New function.
2064
2065 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
2066
2067         * config/i386/i386.md (SWIM): New mode iterator.
2068         (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
2069         using SWIM mode iterator.
2070         (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
2071         patterns using SWI48 mode iterator.
2072         (*x86_mov<mode>cc_0_m1_se):  Macroize insn from
2073         *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
2074         (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
2075         (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
2076         patterns using SWI248 mode iterator.
2077         * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
2078         gen_x86_movdicc_0_m1_rex64 for renamed function
2079
2080 2009-10-11  Jose Ruiz  <ruiz@adacore.com>
2081             Eric Botcazou  <ebotcazou@adacore.com>
2082
2083         PR target/33743
2084         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
2085         * config/sparc/sol2-unwind.h: New file.
2086
2087 2009-10-11  Olivier Hainque  <hainque@adacore.com>
2088             Eric Botcazou  <ebotcazou@adacore.com>
2089
2090         PR target/33743
2091         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
2092         * config/i386/sol2-unwind.h: New file.
2093
2094 2009-10-11  H.J. Lu  <hongjiu.lu@intel.com>
2095
2096         PR target/41665
2097         * config/i386/i386.md (addsi_1_zext): Get the proper second
2098         operand for lea.
2099
2100 2009-10-11  Richard Sandiford  <rdsandiford@googlemail.com>
2101
2102         * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
2103         all OLD_RTXes, not just REGs.  Use copy_rtx to create the
2104         replacement value.
2105
2106 2009-10-11  Richard Guenther  <rguenther@suse.de>
2107
2108         * gimple.c (iterative_hash_type_name): Do not handle special
2109         anonymous names.
2110
2111 2009-10-11  Uros Bizjak  <ubizjak@gmail.com>
2112
2113         * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
2114         (*setcc_si_1_and): Ditto.
2115         (*setcc_si_1_movzbl): Ditto.
2116         (*setcc_<mode>_2): Ditto.
2117         (*setcc_qi): Rename from *setcc_1.
2118         (*setcc_qi_slp): Rename from *setcc_2.
2119
2120         (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
2121         (*zero_extendqisi2_movzbw_and splitter): Ditto.
2122
2123         * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
2124         "if" condition, there is already assert with reload_completed present.
2125
2126 2009-10-11  Gerald Pfeifer  <gerald@pfeifer.com>
2127
2128         * plugin.c (try_init_one_plugin): Improve constness of variable err.
2129
2130 2009-10-10  Gerald Pfeifer  <gerald@pfeifer.com>
2131
2132         * doc/install.texi (Final install): Refer to
2133         http://gcc.gnu.org/bugs/ for bug reporting.
2134
2135 2009-10-10  Peter Bergner  <bergner@vnet.ibm.com>
2136
2137         * configure.ac: Add test for dci instruction.
2138         * configure: Regenerate.
2139         * config.in: Likewise.
2140         * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
2141         * doc/invoke.texi: Add cpu_type 476 and 476fp.
2142         (-mmulhw): Add 476 to description.
2143         (-mdlmzb): Likewise.
2144         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
2145         * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
2146         (processor_target_table): Add 476 and 476fp entries.
2147         (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
2148         (rs6000_issue_rate): Add CPU_PPC476.
2149         * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
2150         (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
2151         (processor_type): Add PROCESSOR_PPC476.
2152         (EXTRA_SPECS): Add asm_cpu_476 string.
2153         * config/rs6000/rs6000.md (define_attr "type"): Add isel attribute.
2154         (define_attr "cpu"): Add ppc476.
2155         Include 476.md.
2156         Update comments for 476.
2157         (isel_signed, isel_unsigned): Change to use "isel" type attribute.
2158         * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
2159         Update copyright year.
2160         * config/rs6000/476.md: New file.
2161         * config/rs6000/40x.md: Add description for "isel" attribute.
2162         Update copyright year.
2163         * config/rs6000/440.md: Likewise.
2164         * config/rs6000/603.md: Likewise.
2165         * config/rs6000/6xx.md: Likewise.
2166         * config/rs6000/7450.md: Likewise.
2167         * config/rs6000/7xx.md: Likewise.
2168         * config/rs6000/8540.md: Likewise.
2169         * config/rs6000/cell.md: Likewise.
2170         * config/rs6000/e300c2c3.md: Likewise.
2171         * config/rs6000/e500mc.md: Likewise.
2172         * config/rs6000/mpc.md: Likewise.
2173         * config/rs6000/power4.md: Likewise.
2174         * config/rs6000/power5.md: Likewise.
2175         * config/rs6000/power6.md: Likewise.
2176         * config/rs6000/power7.md: Likewise.
2177         * config/rs6000/rios1.md: Likewise.
2178         * config/rs6000/rios2.md: Likewise.
2179         * config/rs6000/rs64.md: Likewise.
2180
2181 2009-10-10  Richard Guenther  <rguenther@suse.de>
2182
2183         PR tree-optimization/41654
2184         * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
2185         a cond expr before calling gimple_cond_set_condition_from_tree.
2186         (ifcombine_iforif): Likewise.
2187
2188 2009-10-09  Ian Lance Taylor  <iant@google.com>
2189
2190         * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
2191         * configure: Rebuild.
2192
2193 2009-10-09  Neil Vachharajani <nvachhar@google.com>
2194
2195         * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
2196         deprecated.
2197
2198 2009-10-09  Richard Guenther  <rguenther@suse.de>
2199
2200         PR lto/41638
2201         * target-def.h (TARGET_BUILTIN_DECL): Define.
2202         (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
2203         * target.h (struct gcc_target): Add builtin_decl target hook.
2204         * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
2205         * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
2206         target builtins.
2207         * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
2208         not gcc_unreachable.
2209         (lto_output_builtin_tree): Sorry if the target does not support
2210         streaming target builtins.
2211         * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
2212         (rs6000_builtin_decl): New function.
2213         * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
2214         (ix86_builtin_decl): New function.
2215
2216 2009-10-09  Jakub Jelinek  <jakub@redhat.com>
2217
2218         PR preprocessor/41445
2219         * c-ppoutput.c (do_line_change): New function.
2220         (cb_line_change): Use it.
2221         (scan_translation_unit): Call do_line_change if
2222         avoid_paste or PREV_WHITE and token location is on a different line
2223         than print.src_line.
2224
2225         PR debug/40521
2226         * dwarf2out.c (dwarf2out_init): Test whether
2227         HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
2228         it is defined.
2229
2230         PR rtl-optimization/41646
2231         * calls.c (expand_call): For BLKmode types returned in registers
2232         avoid likely spilled hard regs in copy_blkmode_from_reg generated
2233         insns.
2234
2235 2009-10-09  Richard Guenther  <rguenther@suse.de>
2236
2237         PR tree-optimization/41634
2238         * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
2239         we remove the correct elements.
2240         (optimize_stmt): Make sure to update stmt operands before
2241         optimizing redundancies.
2242
2243 2009-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2244
2245         * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
2246
2247 2009-10-09  Richard Guenther  <rguenther@suse.de>
2248
2249         PR driver/41637
2250         * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
2251         globals.
2252         (lto_wrapper_exit): New function.
2253         (fatal): Use it.
2254         (fatal_perror): Likewise.
2255         (fork_execute): Use global args_name, do not free it.
2256         (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
2257         * lto-streamer.h: Remove duplicate prototypes.
2258
2259 2009-10-09  Richard Guenther  <rguenther@suse.de>
2260
2261         * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
2262         before calling stmt_can_throw_external.
2263
2264 2009-10-09  Eric Botcazou  <ebotcazou@adacore.com>
2265
2266         PR tree-optimization/40071
2267         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
2268         pointer if the original data reference doesn't conflict with the
2269         created vector data reference.  Fix long line.
2270
2271 2009-10-09  Uros Bizjak  <ubizjak@gmail.com>
2272
2273         * config/i386/i386.md (any_div): New code iterator.
2274         (u): Handle div and udiv.
2275         (sgnprefix): Ditto.
2276         (<u>divqi3): Macroize insn from {,u}divqi3  using any_div
2277         code iterator.
2278         (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
2279         lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
2280         (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
2281         lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
2282
2283 2009-10-08  Joseph Myers  <joseph@codesourcery.com>
2284
2285         * gcc.c (main): Remove trailing "." from diagnostics.
2286
2287 2009-10-08  Cary Coutant  <ccoutant@google.com>
2288
2289         Add support for debugging with ICF (Identical Code Folding).
2290         * calls.c (debug.h): New #include.
2291         (emit_call_1): Call virtual_call_token debug hook.
2292         * common.opt (-fenable-icf-debug): New option.
2293         * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
2294         locations in the source).
2295         (poc_label_num): New variable.
2296         (dcall_entry, vcall_entry): New typedefs.
2297         (dcall_table, vcall_table): New variables.
2298         (struct vcall_insn): New type.
2299         (vcall_insn_table): New variable.
2300         (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
2301         (size_of_dcall_table): New function.
2302         (output_dcall_table): New function.
2303         (size_of_vcall_table): New function.
2304         (output_vcall_table): New function.
2305         (dwarf2out_direct_call): New function.
2306         (vcall_insn_table_hash): New function.
2307         (vcall_insn_table_eq): New function.
2308         (dwarf2out_virtual_call_token): New function.
2309         (dwarf2out_virtual_call): New function.
2310         (dwarf2out_init): Allocate new tables and sections.
2311         (prune_unused_types): Mark DIEs referenced from direct call table.
2312         (dwarf2out_finish): Output direct and virtual call tables.
2313         * final.c (final_scan_insn): Call direct_call and virtual_call
2314         debug hooks.
2315         * debug.h (struct gcc_debug_hooks): Add direct_call,
2316         virtual_call_token, virtual_call hooks.
2317         (debug_nothing_uid): New function.
2318         * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
2319         (debug_nothing_uid): New function.
2320         * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
2321         (xcoff_debug_hooks): Likewise.
2322         * sdbout.c (sdb_debug_hooks): Likewise.
2323         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2324         * doc/invoke.texi (-fenable-icf-debug): New option.
2325
2326 2009-10-08  Alexandre Oliva  <aoliva@redhat.com>
2327
2328         PR debug/41353
2329         * regmove.c (regmove_backward_pass): Replace src with dst in the
2330         debug insn, and check for dst before rather than after.
2331
2332 2009-10-08  Janis Johnson <janis187@us.ibm.com>
2333
2334         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
2335         (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
2336
2337 2009-10-08  Jan Hubicka  <jh@suse.cz>
2338
2339         PR middle-end/41626
2340         * cgraphbuild.c (record_reference): When parameter DATA is NULL,
2341         do not mark cgraph nodes as needed.
2342         (record_references_in_initializer): Add new only_vars parameter.
2343         * cgraph.h (record_references_in_initializer): New parameter.
2344         * varasm.c (assemble_variable): Update call.
2345         * varpool.c (varpool_analyze_pending_decls): Always look for
2346         referenced vars.
2347
2348 2009-10-08  Anatoly Sokolov  <aesok@post.ru>
2349
2350         * config/avr/avr.c (last_insn_address) Remove variable.
2351         (expand_prologue): Don't initialise last_insn_address variable.
2352         (final_prescan_insn): Don't output insn size.
2353         * config/avr/avr.opt (msize): Remove switch.
2354         * doc/invoke.texi (AVR Options): Remove documentation of -msize
2355         switch.
2356
2357 2009-10-08  Adam Nemet  <anemet@caviumnetworks.com>
2358
2359         * combine.c (label_tick_ebb_start): Fix comment.
2360         (combine_instructions): Set label_tick and label_tick_ebb_start before
2361         calling setup_incoming_promotions.  Start them from 1.  Increment
2362         label_tick instead of deriving it from the BB index.  Rather than
2363         comparing ticks use the block from the previous iteration to decide
2364         whether to start a new EBB.  Remove empty lines before function.
2365
2366 2009-10-08  Michael Matz  <matz@suse.de>
2367
2368         PR middle-end/41573
2369         * builtins.c (fold_builtin_isascii): Use fold_build2.
2370         (fold_builtin_isdigit): Ditto.
2371         * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
2372         * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
2373         remove_useless_stmts_cond, remove_useless_stmts_tf,
2374         remove_useless_stmts_tc, remove_useless_stmts_bind,
2375         remove_useless_stmts_goto, remove_useless_stmts_label,
2376         remove_useless_stmts_1, remove_useless_stmts,
2377         pass_remove_useless_stmts): Remove.
2378         * tree-pass.h (pass_remove_useless_stmts): Don't declare.
2379         * passes.c (init_optimization_passes): Don't add
2380         pass_remove_useless_stmts.
2381         * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
2382         * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
2383         static constants.
2384         * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
2385         for static constants.
2386         * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
2387         * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
2388
2389 2009-10-08  Richard Guenther  <rguenther@suse.de>
2390
2391         * gimple.c (free_gimple_type_tables): New function.
2392         * gimple.h (free_gimple_type_tables): Declare.
2393
2394 2009-10-07  Mark Heffernan  <meheff@google.com>
2395
2396         * ipa-prop.c (ipa_print_node_params) Only print
2397         names of named arguments.
2398
2399 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
2400
2401         * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
2402         being statically linked.
2403
2404 2009-10-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2405
2406         * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
2407
2408 2009-10-08  Jan Hubicka  <jh@suse.cz>
2409
2410         PR bootstrap/41620
2411         * ipa.c (cgraph_externally_visible_p,
2412         function_and_variable_visibility,
2413         whole_program_function_and_variable_visibility): Skip non-finalized
2414         nodes.
2415
2416 2009-10-08  Nick Clifton  <nickc@redhat.com>
2417
2418         * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
2419         CONST_DOUBLEs.
2420
2421 2009-10-08  Andreas Tobler  <a.tobler@schweiz.org>
2422
2423         PR bootstrap/37739
2424         * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
2425
2426 2009-10-07  Joseph Myers  <joseph@codesourcery.com>
2427
2428         PR c/41182
2429         * c-common.c (c_fully_fold_internal): Strip nops from the result
2430         of recursive calls to c_fully_fold_internal.
2431         (c_wrap_maybe_const): New.
2432         (c_save_expr): Use c_wrap_maybe_const.
2433         * c-common.h (c_wrap_maybe_const): Declare.
2434         * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
2435         build_binary_op): Use c_wrap_maybe_const.
2436
2437 2009-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2438
2439         * real.c: Fix comment to reflect actual exponent size.
2440
2441 2009-10-08  Ben Elliston  <bje@au.ibm.com>
2442
2443         * config/rs6000/a2.md: Add FSF comment header.
2444
2445 2009-10-07  Uros Bizjak  <ubizjak@gmail.com>
2446
2447         * config/i386/i386.md (any_extend): New code iterator.
2448         (u, s): New code attributes.
2449         (sgnprefix): Ditto.
2450         (DWIH): Rewrite as code iterator for SI and DI modes.
2451         (DWI): Rewrite as mode attribute.
2452         (dwi): New mode attribute.
2453         (di): Depend on SI mode and DI mode.
2454         (doubleint_general_operand): Remove mode attribute.
2455
2456         (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
2457         DWIH mode iterator.
2458
2459         (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
2460         (*sub<mode>3_doubleword): Ditto.
2461
2462         (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
2463         using SWIM248 mode iterator.
2464         (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
2465         using SWI48 mode iterator.
2466         (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
2467         patterns using DWIH mode iterator and any_extend code iterator.
2468         (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
2469         using any_extend code iterator.
2470         (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
2471         patterns using DWIH mode iterator and any_extend code iterator.
2472         (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
2473         using any_extend code iterator.
2474         (<s>mul<mode>3_highpart): Macroize expander from
2475         {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
2476         and any_extend code iterator.
2477         (*<s>muldi3_highpart_1): Macroize insn from
2478         *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
2479         (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
2480         patterns using any_extend code iterator.
2481         (*<s>mulsi3_highpart_zext): Macroize insn from
2482         *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
2483
2484 2009-10-07  Jakub Jelinek  <jakub@redhat.com>
2485
2486         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
2487         DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
2488         refering to a DIE with DW_AT_const_value.
2489
2490 2009-10-07  Vladimir Makarov  <vmakarov@redhat.com>
2491
2492         PR middle-end/22072
2493         * ira-lives.c (check_and_make_def_conflict): Process all operands.
2494
2495 2009-10-06  Jan Hubicka  <jh@suse.cz>
2496
2497         * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
2498         correctly.
2499
2500 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
2501
2502         * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
2503         *lea_2_rex64): Move before *add<mode>_1 pattern.
2504
2505 2009-10-07  Jan Hubicka  <jh@suse.cz>
2506
2507         * collect2.c (main): Add -fno-whole-program.
2508         * gcc.c (set_collect_gcc_options): Do not remove whole program here.
2509
2510 2009-10-07  Jan Hubicka  <jh@suse.cz>
2511
2512         * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
2513         has no address taken.
2514         * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
2515         never needed.
2516         (cgraph_clone_node): Clear externally_visible flag for clones.
2517         * cgraph.h (cgraph_only_called_directly_p,
2518         cgraph_can_remove_if_no_direct_calls_p): New predicates.
2519         * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
2520         * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
2521         (ipcp_initialize_node_lattices, ipcp_estimate_growth,
2522         ipcp_insert_stage): Likwise.
2523         * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
2524         externally_visible flag.
2525         (verify_cgraph_node): Verify that inline clones look right.
2526         (process_function_and_variable_attributes): Do not set
2527         externally_visible flags.
2528         (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
2529         been already run.
2530         * lto-cgraph.c (lto_output_node): Assert that inline clones are not
2531         boundaries.
2532         * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
2533         clear externally_visible when turning into inline clones
2534         (cgraph_mark_inline_edge): Use new predicates.
2535         (cgraph_estimate_growth): Likewise.
2536         (cgraph_decide_inlining): Likewise.
2537         * ipa.c (cgraph_postorder): Likewise.
2538         (cgraph_remove_unreachable_nodes): Likewise; sanity check
2539         that inline clones are not needed.
2540         (cgraph_externally_visible_p): New predicate.
2541         (function_and_variable_visibility): Add whole_program parameter;
2542         always set externally_visible flag; handle COMDAT function
2543         privatization.
2544         (local_function_and_variable_visibility): New function.
2545         (gate_whole_program_function_and_variable_visibility): New function.
2546         (whole_program_function_and_variable_visibility): New function.
2547         (pass_ipa_whole_program_visibility): New function.
2548         * passes.c  (init_optimization_passes): Add whole program visibility
2549         pass.
2550         (do_per_function_toporder, function_called_by_processed_nodes_p): Do
2551         not care about needed/reachable flags.
2552         * varpool.c: Include flags.h
2553         (decide_is_variable_needed): When doing LTO assume whole-program mode.
2554         (varpool_finalize_decl): When we are in LTO read-back, all variables
2555         are analyzed.
2556         (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
2557
2558 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2559
2560         * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
2561         add MASK_HARD_DFP.
2562
2563 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2564
2565         * config.gcc: Don't include the makefile fragments intended for
2566         libgcc.
2567         * config/s390/fixdfdi.h: File removed.
2568         * config/s390/libgcc-glibc.ver: File removed.
2569         * config/s390/s390.h: Remove the fixdfdi.h hack.
2570         * config/s390/t-crtstuff: File moved to libgcc dir.
2571         * config/s390/t-linux: Likewise.
2572         * config/s390/t-tpf: libgcc specific parts removed.
2573         * config/s390/t-linux64: Likewise.
2574
2575 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
2576
2577         * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
2578         (lto-compress.o): Likewise.
2579
2580 2009-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
2581
2582         PR target/41512
2583         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
2584         dllexport to class members here.
2585         (i386_pe_determine_dllimport_p): Only check static class data for
2586         definition.
2587         (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
2588         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
2589         functions for vague linkage.
2590         (i386_pe_type_dllexport_p): Fix formatting.
2591         (maybe_add_dllexport) New function.
2592         (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
2593         to class members.
2594
2595 2009-10-07  Ben Elliston  <bje@au.ibm.com>
2596
2597         * config/rs6000/a2.md: Remove duplicated lines.
2598
2599 2009-10-07  Ben Elliston  <bje@au.ibm.com>
2600
2601         * config.gcc (powerpc*-*-*): Handle a2.
2602         * config/rs6000/rs6000.md (cpu): Add ppca2.  Include "a2.md".
2603         * config/rs6000/a2.md: New file.
2604         * config/rs6000/rs6000.opt (mno-update): New.
2605         (mupdate): Return to using a mask, not a var.
2606         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
2607         (enum processor_type): Add PROCESSOR_PPCA2.
2608         * config/rs6000/rs6000.c (ppca2_cost): New costs.
2609         (rs6000_override_options): Add "a2" to processor_target_table.
2610         Update rs6000_always_hint logic.  Correctly set rs6000_cost for a2.
2611         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
2612
2613 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
2614
2615         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
2616         Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
2617         reference to nonexistent gen_truncxfxf2 function.
2618
2619 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
2620
2621         * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
2622         (DWIH, g, di, doubleint_general_operand): New mode attributes.
2623         (general_operand): Handle TI mode.
2624         (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
2625         using SDWIM mode iterator.
2626         (*add<mode>3_doubleword): New insn_and_split pattern.  Macroize
2627         pattern from *add{di,ti}3_1 patterns and corresponding splitters
2628         using DWI mode iterator.
2629         (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
2630         patterns using SWI mode iterator.
2631         (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
2632         using SWI48 mode iterator.
2633         (*add<mode>_1): Ditto from add{si,di}_1 patterns.
2634         (*add<mode>_2): Ditto from add{si,di}_2 patterns.
2635         (*add<mode>_3): Ditto from add{si,di}_3 patterns.
2636         (*add<mode>_5): Ditto from add{si,di}_5 patterns.
2637         (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
2638         using SDWIM mode iterator.
2639         (*sub<mode>3_doubleword): New insn_and_split pattern.  Macroize
2640         pattern from *sub{di,ti}3_1 patterns and corresponding splitters
2641         using DWI mode iterator.
2642         (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
2643         patterns using SWI mode iterator.
2644         (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
2645         (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
2646         (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
2647         (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
2648         patterns using plusminus code iterator.
2649         (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
2650         sub<mode>3 patterns using plusminus code iterator.
2651         * config/i386/i386.c (override_options): Update the call to
2652         gen_subdi_carry_rex64 for renamed function.
2653         (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
2654         and gen_adddi3_carry_rex64 for renamed functions.  Use indirect
2655         calls to instruction expanders.
2656
2657 2009-10-06  Martin Jambor  <mjambor@suse.cz>
2658
2659         PR bootstrap/41395
2660         * opts.c (decode_options): Run IPA-SRA at -O2.
2661
2662 2009-10-06  Richard Guenther  <rguenther@suse.de>
2663
2664         * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
2665
2666 2009-10-06  Tobias Burnus  <burnus@net-b.de>
2667
2668         PR lto/41591
2669         * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
2670         -flto and -fwhole-program flags can be combined.
2671
2672 2009-10-06  Ryan Mansfield  <rmansfield@qnx.com>
2673
2674         PR driver/41217
2675         * gcc.c (process_command): Check that -o argument was specified.
2676
2677 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
2678
2679         * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
2680
2681 2009-10-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2682
2683         * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
2684         * doc/invoke.texi (Warning Options): Annotate allowed languages
2685         for -Wunsuffixed-float-constants.
2686
2687 2009-10-05  Jakub Jelinek  <jakub@redhat.com>
2688
2689         * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
2690         DW_TAG_{const,volatile}_type if its DW_AT_type already has the
2691         same name and isn't the main variant.
2692
2693         PR debug/41558
2694         * dwarf2out.c (loc_by_reference): Removed.
2695         (dw_loc_list_1): New function.
2696         (dw_loc_list): Remove toplev argument, add want_address argument.
2697         Don't look at decl_by_reference_p at all.  Use dw_loc_list_1.
2698         (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
2699         want_address == 2 to dw_loc_list.  For successful dw_loc_list
2700         set have_address to 1 only if want_address is not 0.
2701
2702 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
2703
2704         * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
2705         * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
2706         a code block followed by two pointers.
2707         (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
2708         * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
2709         (MIPS_MOVE): Likewise.
2710         (MIPS_LUI): Likewise.
2711         (MIPS_JR): Likewise.
2712         (MIPS_BAL): Likewise.
2713         (MIPS_NOP): Likewise.
2714         (mips_asm_trampoline_template): Delete.
2715         (mips_trampoline_code_size): New function.
2716         (mips_trampoline_init): Add shorter sequences for all cases
2717         except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
2718         Calculate the opcodes directly, rather than copying from a template.
2719         Only flush the code part of the trampoline.
2720         (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
2721
2722 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
2723
2724         * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
2725         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
2726         (INCOMING_RETURN_ADDR_RTX): Likewise.
2727         (FUNCTION_PROFILER): Likewise.  Replace GP_REG_FIRST + 1
2728         with AT_REGNUM.
2729         * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
2730         with RETURN_ADDR_REGNUM.
2731         (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
2732         * config/mips/mips.c (mips16_build_call_stub): Replace
2733         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
2734         with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
2735         (mips_print_operand_punctuation): Likewise.
2736         (mips_frame_set): Likewise.
2737         (mips16e_output_save_restore): Likewise.
2738         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
2739         (mips_save_reg_p): Likewise.
2740         (mips_return_addr): Likewise.
2741         (mips_set_return_address): Likewise.
2742         (mips_direct_save_slot_move_p): Likewise.
2743         (mips_output_function_prologue): Likewise.
2744         (mips_restore_reg): Likewise.
2745         (mips_expand_epilogue): Likewise.
2746         (mips_epilogue_uses): Likewise.
2747         * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
2748         (*mov<mode>_ra): Use it instead of a hard-coded 31.
2749         (clear_hazard_<mode>): Likewise.
2750         (call_internal): Likewise.
2751         (call_internal_direct): Likewise.
2752         (call_direct_split): Likewise.
2753         (call_value_internal): Likewise.
2754         (call_value_split): Likewise.
2755         (call_value_internal_direct): Likewise.
2756         (call_value_direct_split): Likewise.
2757         (call_value_multiple_internal): Likewise.
2758         (call_value_multiple_split): Likewise.
2759
2760 2009-10-05  Eric Botcazou  <ebotcazou@adacore.com>
2761             Jakub Jelinek  <jakub@redhat.com>
2762
2763         PR rtl-optimization/41511
2764         * combine.c (record_value_for_reg): Pass explicit values as argument
2765         to get_last_value_validate.
2766         (get_last_value_validate): Document INSN parameter.
2767         For non-readonly MEMs, assume they might have been modified if INSN
2768         was in another basic block.
2769         (get_last_value): Minor reformatting.
2770
2771 2009-10-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2772
2773         PR tree-opt/40992
2774         * final.c (asm_str_count): Split out from asm_insn_count.
2775         * rtl.h (asm_str_count): New prototype.
2776         * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
2777         asm_str_count.
2778
2779 2009-10-05  Sriraman Tallam  <tmsriram@google.com>
2780
2781         * doc/plugins.texi: Change plugin_pass to register_pass_info.
2782
2783 2009-10-05  Basile Starynkevitch  <basile@starynkevitch.net>
2784             Rafael Espindola  <espindola@google.com>
2785
2786         * gengtype.c (write_types): Moved call to write_func_for_structure
2787         into seperate loops.
2788
2789 2009-10-05  Richard Guenther  <rguenther@suse.de>
2790
2791         PR lto/41281
2792         * lto-cgraph.c (output_cgraph): Output toplevel asms.
2793         (input_cgraph_1): Input toplevel asms.
2794
2795 2009-10-05  Richard Guenther  <rguenther@suse.de>
2796
2797         PR lto/40902
2798         * lto-symtab.c (lto_compatible_attributes_p): Remove.
2799         (external_aggregate_decl_p): Likewise.
2800         (lto_symtab_compatible): Re-structure.  Remove dead code.
2801         For variables ignore toplevel qualifiers when comparing types.
2802         Issue warnings, not errors for mismatched user-alignment.
2803
2804 2009-10-05  Richard Guenther  <rguenther@suse.de>
2805
2806         PR lto/41552
2807         PR lto/41487
2808         * lto-symtab.c (struct lto_symtab_base_def): Remove.
2809         (struct lto_symtab_identifier_def): Likewise.
2810         (struct lto_symtab_decl_def): Likewise.
2811         (struct lto_symtab_entry_def): New.
2812         (lto_symtab_identifier_t): Rename to ...
2813         (lto_symtab_entry_t): ... this.
2814         (lto_symtab_decls): Remove.
2815         (lto_symtab_base_hash): Rename to ...
2816         (lto_symtab_entry_hash): ... this.
2817         (lto_symtab_base_eq): Rename to ...
2818         (lto_symtab_entry_eq): ... this.
2819         (lto_symtab_base_marked_p): Rename to ...
2820         (lto_symtab_entry_marked_p): ... this.
2821         (lto_symtab_identifier_marked_p): Remove.
2822         (lto_symtab_decl_marked_p): Likewise.
2823         (lto_symtab_maybe_init_hash_tables): Rename to ...
2824         (lto_symtab_maybe_init_hash_table): ... this.
2825         (lto_symtab_set_resolution_and_file_data): Remove.
2826         (lto_symtab_register_decl): New function.
2827         (lto_symtab_get_identifier): Remove.
2828         (lto_symtab_get): New function.
2829         (lto_symtab_get_resolution): Adjust.
2830         (lto_symtab_get_identifier_decl): Remove.
2831         (lto_symtab_set_identifier_decl): Likewise.
2832         (lto_symtab_merge_decl): Rename to ...
2833         (lto_symtab_merge): ... this.  Rewrite.
2834         (lto_symtab_merge_var): Remove.
2835         (lto_symtab_merge_fn): Likewise.
2836         (lto_symtab_prevailing_decl): Adjust.
2837         (lto_cgraph_replace_node): New function.
2838         (lto_symtab_merge_decls_2): Likewise.
2839         (lto_symtab_merge_decls_1): Likewise.
2840         (lto_symtab_fixup_var_decls): Likewise.
2841         (lto_symtab_resolve_symbols): Likewise.
2842         (lto_symtab_merge_decls): Likewise.
2843         (lto_symtab_prevailing_decl): Adjust.
2844         (lto_symtab_get_symtab_def): Remove.
2845         (lto_symtab_get_file_data): Likewise.
2846         (lto_symtab_clear_resolution): Adjust.
2847         (lto_symtab_clear_resolution): Likewise.
2848         * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
2849         (input_cgraph_1): Likewise.
2850         * lto-streamer-in.c (get_resolution): Do not provide fake
2851         symbol resolutions here.
2852         (deferred_global_decls): Remove.
2853         (lto_register_deferred_decls_in_symtab): Likewise.
2854         (lto_register_var_decl_in_symtab): Change signature, register
2855         variable via lto_symtab_register_decl.
2856         (lto_register_function_decl_in_symtab): Likewise.
2857         (lto_read_tree): Adjust.
2858         * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
2859         (lto_symtab_merge_var): Likewise.
2860         (lto_symtab_merge_fn): Likewise.
2861         (lto_symtab_register_decl): Declare.
2862         (lto_symtab_merge_decls): Likewise.
2863
2864 2009-10-05  Richard Guenther  <rguenther@suse.de>
2865
2866         PR tree-optimization/23821
2867         * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
2868         * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
2869         simple IV increments.
2870
2871 2009-10-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2872
2873         * config/arm/arm.c (arm_override_options): Really initialize
2874         flag_dwarf2_cfi_asm to 0.
2875
2876 2009-10-05  Doug Kwan  <dougkwan@google.com>
2877
2878         PR rtl-optimization/41574
2879         * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
2880         floating point and we are not doing unsafe math optimizations.
2881
2882 2009-10-03  Simon Baldwin  <simonb@google.com>
2883             Cary Coutant  <ccoutant@google.com>
2884             Rafael Espindola  <espindola@google.com>
2885             Richard Guenther  <rguenther@suse.de>
2886             Jan Hubicka  <jh@suse.cz>
2887             Doug Kwan <dougkwan@google.com>
2888             H.J. Lu  <hongjiu.lu@intel.com>
2889             Bill Maddox  <maddox@google.com>
2890             Ryan Mansfield  <rmansfield@qnx.com>
2891             Diego Novillo  <dnovillo@google.com>
2892             Ollie Wild  <aaw@google.com>
2893             Kenneth Zadeck <zadeck@naturalbridge.com>
2894
2895         * lto-cgraph.c: New file.
2896         * lto-compress.c: New file.
2897         * lto-compress.h: New file.
2898         * lto-opts.c: New file.
2899         * lto-section-in.c: New file.
2900         * lto-section-out.c: New file.
2901         * lto-streamer-in.c: New file.
2902         * lto-streamer-out.c: New file.
2903         * lto-streamer.c: New file.
2904         * lto-streamer.h: New file.
2905         * lto-symtab.c: New file.
2906         * lto-wpa-fixup.c: New file.
2907         * lto-wrapper.c: New file.
2908
2909 2009-10-03  Simon Baldwin  <baldwin@google.com>
2910             Ben Elliston  <bje@au.ibm.com>
2911             Rafael Espindola  <espindola@google.com>
2912             Nathan Froyd  <froydnj@codesourcery.com>
2913             Jan Hubicka  <jh@suse.cz>
2914             Doug Kwan  <dougkwan@google.com>
2915             Diego Novillo  <dnovillo@google.com>
2916             Kenneth Zadeck  <zadeck@naturalbridge.com>
2917
2918         * Makefile.in (enable_lto): New.
2919         (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
2920         (LINKER_PLUGIN_API_H): Define.
2921         (LTO_SYMTAB_H): Define.
2922         (LTO_STREAMER_H): Define.
2923         (TREE_VECTORIZER_H): Define.
2924         (INCLUDES): Add LIBELFINC.
2925         (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
2926         lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
2927         lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
2928         (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
2929         (native): Add lto-wrapper$(exeext)
2930         (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
2931         lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
2932         lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
2933         (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
2934         (varasm.o): Add dependency on tree-iterator.h.
2935         (cgraph.o): Add dependency on cif-code.def.
2936         (ipa-reference.o): Add dependency on LTO_STREAMER_H.
2937         (ipa-pure-const.o): Likewise.
2938         (GTFILES): Add lto-symtab.c.
2939         (install-lto-wrapper): New.
2940         * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
2941         and enable_lto.  If LIBELFLIBS is set, define HAVE_libelf.
2942         * config.in: Regenerate.
2943
2944 2009-10-03  Rafael Espindola  <espindola@google.com>
2945             Diego Novillo  <dnovillo@google.com>
2946
2947         * cgraphunit.c (ipa_passes): Prevent lto1 from calling
2948         ipa_write_summaries.
2949         Call execute_ipa_summary_passes for all_regular_ipa_passes and
2950         all_lto_gen_passes.
2951         (cgraph_optimize): Make extern.
2952
2953 2009-10-03  Nathan Froyd  <froydnj@codesourcery.com>
2954             Kenneth Zadeck <zadeck@naturalbridge.com>
2955
2956         * toplev.c (in_lto_p): Declare.
2957         * collect2.c (scan_prog_file): Read all the output when reading
2958         information for LTO.
2959         (enum lto_mode_d): Declare.
2960
2961 2009-10-03  Richard Guenther  <rguenther@suse.de>
2962             Diego Novillo  <dnovillo@google.com>
2963
2964         * gimple.c: Include target.h and alias.h.
2965         (gimple_types): Declare.
2966         (type_hash_cache): Declare.
2967         (gimple_alloc_stat): Make extern.
2968         (gimple_build_eh_must_not_throw): Call
2969         gimple_eh_must_not_throw_set_fndecl.
2970         (struct type_pair_d): Declare.
2971         (type_pair_t): Declare.
2972         (type_pair_hash): New.
2973         (type_pair_eq): New.
2974         (lookup_type_pair): New.
2975         (gimple_force_type_merge): New.
2976         (compare_type_names_p): New.
2977         (compare_field_offset): New.
2978         (gimple_types_compatible_p): New.
2979         (struct sccs): Declare.
2980         (next_dfs_num): Declare.
2981         (iterative_hash_gimple_type): New.
2982         (visit): New.
2983         (iterative_hash_type_name): New.
2984         (iterative_hash_gimple_type): New.
2985         (gimple_type_hash): New.
2986         (gimple_type_eq): New.
2987         (gimple_register_type): New.
2988         (print_gimple_types_stats): New.
2989         (gimple_signed_or_unsigned_type): New.
2990         (gimple_unsigned_type): New.
2991         (gimple_signed_type): New.
2992         (gimple_get_alias_set): New.
2993         (gimple_decl_printable_name): Do not use DMGL_TYPES.
2994         * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
2995         (gimple_force_type_merge): Declare.
2996         (gimple_types_compatible_p): Declare.
2997         (gimple_register_type): Declare.
2998         (print_gimple_types_stats): Declare.
2999         (gimple_unsigned_type): Declare.
3000         (gimple_signed_type): Declare.
3001         (gimple_get_alias_set): Declare.
3002         (gimple_eh_must_not_throw_set_fndecl): New.
3003
3004 2009-10-03  Jan Hubicka  <jh@suse.cz>
3005             Kenneth Zadeck <zadeck@naturalbridge.com>
3006
3007         * ipa-pure-const.c: Include lto-streamer.h.
3008         (register_hooks): Factor out of ...
3009         (generate_summary): ... here.
3010         (pure_const_write_summary): New.
3011         (pure_const_read_summary): New.
3012         (pass_ipa_pure_const): Add pure_const_write_summary and
3013         pure_const_read_summary.
3014         * ipa-reference.c: Include lto-streamer.h.
3015         (add_new_function): New.
3016         (remove_node_data): New.
3017         (duplicate_node_data): New.
3018         (ipa_init): Guard against multiple calls.
3019         Move hook setup from analyze_function.
3020         (write_node_summary_p): New.
3021         (ipa_reference_write_summary): New.
3022         (ipa_reference_read_summary): New.
3023         (pass_ipa_reference): Add ipa_reference_write_summary and
3024         ipa_reference_read_summary.
3025         * cgraph.h (cgraph_local_info): Add field lto_file_data.
3026         (struct cgraph_edge): Add fields lto_stmt_uid and
3027         call_stmt_cannot_inline_p.
3028         (cgraph_optimize): Declare.
3029         (cgraph_decide_is_function_needed): Declare.
3030         (reset_inline_failed): Declare.
3031         (enum LTO_cgraph_tags): Declare.
3032         (LTO_cgraph_tag_names): Declare.
3033         (LCC_NOT_FOUND): Define.
3034
3035 2009-10-03  Doug Kwan  <dougkwan@google.com>
3036             Rafael Espindola  <espindola@google.com>
3037             Jan Hubicka  <jh@suse.cz>
3038             Diego Novillo  <dnovillo@google.com>
3039             Kenneth Zadeck  <zadeck@naturalbridge.com>
3040
3041         * passes.c (all_regular_ipa_passes): New.
3042         (all_ipa_passes): Rename to all_small_ipa_passes.
3043         (init_optimization_passes): Init all_regular_ipa_passes.
3044         * tree-pass.h (all_regular_ipa_passes): New.
3045         (all_ipa_passes): Rename to all_small_ipa_passes.
3046         * passes.c (all_lto_gen_passes): New.
3047         (init_optimization_passes): Initialize all_lto_gen_passes.
3048         (execute_ipa_summary_passes): Make non-static.
3049         (ipa_write_summaries_1): New.
3050         (ipa_write_summaries_2): New.
3051         (ipa_write_summaries): New.
3052         (ipa_write_summaries_of_cgraph_node_set): New.
3053         (ipa_read_summaries_1): New.
3054         (ipa_read_summaries): New.
3055         (execute_ipa_pass_list): Call cgraph_process_new_functions.
3056         (execute_regular_ipa_pass_list): Remove.
3057         (init_optimization_passes): Schedule
3058         pass_rebuild_cgraph_edges and pass_early_inline outside
3059         of pass_all_early_optimizations.  Document reason.
3060         (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
3061         pass_ipa_lto_finish_out): New pass.
3062         (pass_ipa_summary_passes): Start and stop timers if the pass has them.
3063         (execute_all_ipa_transforms): New.
3064         (execute_one_pass): Don't call execute_one_ipa_transform_pass.
3065         (dump_properties, debug_properties): New.
3066         * tree-optimize.c (gate_all_early_local_passes): Return
3067         false if we are in lto1.
3068         (tree_rest_of_compilation): Call execute_all_ipa_transforms.
3069         * tree-pass.h (execute_all_ipa_transforms): Declare.
3070         (pass_ipa_function_and_variable_visibility): Declare.
3071         (pass_ipa_early_inline): Declare.
3072         (pass_ipa_lto_gimple_out): Declare.
3073         (pass_ipa_lto_wpa_fixup): Declare.
3074         (pass_ipa_lto_finish_out): Declare.
3075         (all_small_ipa_passes, all_regular_ipa_passes,
3076         all_lto_gen_passes): Declare.
3077         (execute_ipa_summary_passes): Declare.
3078         (execute_all_ipa_transforms): Declare.
3079         (ipa_write_summaries): Declare
3080         (ipa_write_summaries_of_cgraph_node_set): Declare.
3081         (ipa_read_summaries): Declare.
3082
3083 2009-10-03  Doug Kwan  <dougkwan@google.com>
3084             Ollie Wild  <aaw@google.com>
3085
3086         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
3087
3088         * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
3089         (lto_mode): New variable.
3090         (maybe_run_lto_and_relink): Handle the -fwpa option.
3091         (main): Handle the -fwpa option.
3092         (maybe_unlink_list): New function.
3093         * gcc.c (link_lto_options): Replace -flto with -fwpa.
3094         * common.opt (flto): New flag.
3095         * toplev.c (flag_generate_lto): Declare.
3096
3097 2009-10-03  Simon Baldwin  <simonb@google.com>
3098
3099         * common.opt (flto-compression-level): New flag.
3100
3101         * opts.c: Include lto-opts.h.
3102         (handle_option): Call lto_register_user_option for each
3103         valid option handled.
3104         (decode_options): Clear registered options before the options
3105         handling loop.
3106
3107 2009-10-03  Cary Coutant  <ccoutant@google.com>
3108
3109         * collect2.c (is_elf): New function.
3110         (scan_prog_file): Require LTO object to be in ELF format.
3111
3112 2009-10-03  Rafael Espindola  <espindola@google.com>
3113
3114         * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
3115         libgcc to the linker.
3116
3117         * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
3118
3119         * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
3120         (collect_execute): Add flags argument. Pass flags to pex_run. Update
3121         all callers.
3122         * collect2.h (collect_execute): Add flags argument.
3123         * tlink.c (tlink_execute): Update call to collect_execute.
3124         * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
3125         (use_linker_plugin): New.
3126         (use_linker_plugin_spec_function): New.
3127         (LINK_COMMAND_SPEC): Pass plugin options to the linker.
3128         (linker_plugin_file_spec): New.
3129         (lto_wrapper_spec): New.
3130         (lto_gcc_spec): New.
3131         (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
3132         (static_spec_functions): Add use-linker-plugin.
3133         (process_command): Handle -use-linker-plugin.
3134         (main): Use lto_wrapper_spec instead of lto_wrapper. Set
3135         linker_plugin_file_spec and lto_gcc_spec.
3136         (use_linker_plugin_spec_function): New.
3137
3138 2009-10-03  Richard Guenther  <rguenther@suse.de>
3139
3140         PR lto/41547
3141         PR lto/41548
3142         * tree.h (is_lang_specific): Include LANG_TYPE.
3143         * tree.c (find_decls_types_r): Manually add interesting parts
3144         of TYPE_FIELDS.  Walk BINFO_VIRTUALS.  Do not walk TYPE_METHODS.
3145
3146         * gimple.c (type_pair_hash): Make symmetric.
3147         (type_pair_eq): Likewise.
3148         (lookup_type_pair): Increase initial hashtable size.
3149         (gimple_force_type_merge): Rely on type-pair symmetry.
3150         (visit): Remove excessive checking code.
3151         (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
3152         (gimple_register_type): Remove getenv calls, shrink initial
3153         hashtable size.
3154
3155         PR middle-end/41502
3156         * cgraphunit.c (ipa_passes): Do not remove bodies of extern
3157         inline functions if not generating lto output.
3158
3159         PR lto/41379
3160         * toplev.c (finalize): In WPA mode remove the asm file.
3161
3162 2009-10-03  Doug Kwan  <dougkwan@google.com>
3163
3164         * ipa-inline.c (cgraph_mark_inline): Check
3165         edge->call_stmt_cannot_inline_p instead of calling
3166         gimple_call_cannot_inline_p.
3167         (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
3168         (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
3169         (inline_generate_summary): Do nothing in LTRANS.
3170         * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
3171         exists before calling gimple_call_cannot_inline_p.
3172         (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
3173         (cgraph_clone_edge): Add argument STMT_UID.  Modify all callers.
3174         Update new_edge->lto_stmt_uid.
3175         * cgraphbuild.c (reset_inline_failed): New.
3176
3177         * common.opt (fwpa): New flag.
3178         (fltrans): New option.
3179         * gcc.c (gcc_lto_option_t): New type.
3180         (current_lto_option): New variable.
3181         (lto_single_spec_function): Remove and is replaced by ..
3182         (lto_option_spec_function): New function.
3183         (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
3184         passing the -flto flag.
3185         (cc1_options): Separate non-LTO related parts into ..
3186         (cc1_non_lto_options): Non-LTO related options shared by all FEs.
3187         (lto1_options): New spec for lto FE.
3188         (link_lto_options): New spec for handling LTO flags in linker.
3189         (invoke_lto_single): Re-format to fit in 80 column.  Replace
3190         lto-single with lto-option.
3191         (static_specs): Add cc1_non_lto_options, lto1_options and
3192         link_lto_options.
3193         (static_spec_function): Replace lto-single with lto-option.
3194         (process_command): Handle -flto, -fwpa and -fltran by setting
3195         current_lto_option and not passing it to subprocess unconditionally.
3196
3197 2009-10-03  Bill Maddox  <maddox@google.com>
3198
3199         Add `gcc' driver support for link-time code generation (LTO).
3200
3201         * collect2.c (enum pass): Add new literal PASS_LTOINFO.
3202         (lto_flag, lto_objects, lto_o_file): New variables.
3203         (struct lto_object, struct lto_object_list): New structures.
3204         (collect_exit, handler): Remove LTO temporary output file on exit.
3205         (add_lto_object): New function.
3206         (maybe_run_lto_and_relink): New function. Perform link time code
3207         generation and relinking for object files containing LTO information.
3208         (main): Invoke maybe_run_lto_and_relink().
3209         (dump_argv): New function.  For debugging, currently disabled.
3210         (scan_prog_file): Add LTO information pass.
3211         * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
3212         collect2.
3213         * toplev.c (compile_file): Emit assembler directive to create
3214         the `gnu_lto_v1' marker symbol when compiling with `-flto'.
3215
3216 2009-10-03  Diego Novillo  <dnovillo@google.com>
3217
3218         * c.opt: Add LTO to warn_abi and warn_psabi.
3219
3220         * tree.c (fld_worklist_push): Rename from PUSH.  Convert to static
3221         inline function.  Ignore language-specific nodes.  Update all users.
3222         (find_decls_types_r): Do not traverse the subtrees of
3223         language-specific nodes.  Do not traverse DECL_INITIAL for TYPE_DECLs.
3224         * tree.h (is_lang_specific): New.
3225         * langhooks.h (struct lang_hooks_for_decls): Remove
3226         may_need_assembler_name_p.  Update all users.
3227
3228         * c-common.c (set_builtin_user_assembler_name): Move ...
3229         * builtins.c (set_builtin_user_assembler_name): ... here.
3230         (is_builtin_name): Add comment
3231         (is_builtin_fn): New.
3232         * except.c (output_ttype): Only call
3233         lookup_type_for_runtime if TYPE is not a runtime type.
3234
3235         * passes.c (register_pass): Call position_pass on
3236         all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
3237         * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
3238         (TV_IPA_LTO_DECL_IO): Define.
3239         (TV_IPA_LTO_CGRAPH_IO): Define.
3240         (TV_LTO): Define.
3241         (TV_WHOPR_WPA): Define.
3242         (TV_WHOPR_WPA_IO): Define.
3243         (TV_WHOPR_LTRANS): Define.
3244         (TV_WHOPR_WPA_FIXUP): Define.
3245         (TV_WHOPR_WPA_LTRANS_EXEC): Define.
3246         * tree-cfg.c (tree_node_can_be_shared): Make extern.
3247         * tree-flow.h (tree_node_can_be_shared): Declare.
3248         * tree-inline.c (tree_can_inline_p): Check that E has a
3249         statement associated with it.
3250         * tree.c (free_lang_data_in_binf): Factor out of ...
3251         (free_lang_data_in_type): ... here.
3252         Call RECORD_OR_UNION_TYPE_P.
3253         (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
3254         set.  Call lang_hooks.decls.may_need_assembler_name_p if set.
3255         (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
3256         (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE.  Set
3257         write_symbols to NO_DEBUG.  Set debug_hooks to do_nothing_debug_hooks.
3258         (gate_free_lang_data): Return true if flag_generate_lto is set.
3259         (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
3260         * c-common.h (set_builtin_user_assembler_name): Move ...
3261         * tree.h (set_builtin_user_assembler_name): ... here.
3262
3263         * common.opt (flto-report): New flag.
3264         * opts.c (complain_wrong_lang): Do not complain if running lto1.
3265         * collect2.c (scan_prog_file): Send the error output of
3266         'nm' to HOST_BIT_BUCKET.
3267
3268 2009-10-03  Ollie Wild  <aaw@google.com>
3269
3270         * langhooks-def.h (lhd_begin_section): New function declaration.
3271         (lhd_write_section): New function declaration.
3272         (lhd_end_section): New function declaration.
3273         (LANG_HOOKS_BEGIN_SECTION): New macro.
3274         (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
3275         (LANG_HOOKS_END_SECTION): New macro.
3276         (LANG_HOOKS_LTO): New macro.
3277         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
3278         * langhooks.c (output.h): Add include.
3279         (saved_section): New static variable.
3280         (lhd_begin_section): New function.
3281         (lhd_write_section_data): New function.
3282         (lhd_end_section): New function.
3283         * langhooks.h (struct lang_hooks_for_lto): New structure.
3284         (struct lang_hooks): Add member lto.
3285         * Makefile.in (langhooks.o): Add dependency on output.h.
3286
3287         * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
3288
3289 2009-10-03  Richard Guenther  <rguenther@suse.de>
3290
3291         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
3292         Handle LTO.
3293
3294 2009-10-03  Simon Baldwin  <simonb@google.com>
3295             Richard Guenther  <rguenther@suse.de>
3296             Janis Johnson  <janis187@us.ibm.com>
3297             Doug Kwan  <dougkwan@google.com>
3298             Diego Novillo  <dnovillo@google.com>
3299             Ramana Radhakrishnan  <ramana.r@gmail.com>
3300             Ollie Wild  <aaw@google.com>
3301
3302         * doc/install.texi: Add documentation for libelf and --enable-lto.
3303         * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
3304         -flto-report, -flto-compression-level and -use-linker-plugin.
3305         * doc/sourcebuild.texi: Document use of zlib.  Document lto-plugin.
3306         Add section for LTO Testing.
3307
3308 2009-10-02  Cary Coutant  <ccoutant@google.com>
3309
3310         Add support for comdat type sections for DWARF v4.
3311         Merge from dwarf4 branch.
3312
3313         * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
3314         (dw_die_ref): Define vector type.
3315         (enum dw_val_class): Add dw_val_class_data8.
3316         (struct dw_val_struct): Add v.val_data8.
3317         (comdat_type_node_ref): New type.
3318         (struct die_struct): Move die_symbol into a union; add new field
3319         die_type_node.  Change all uses.
3320         (comdat_type_node): New type.
3321         (skeleton_chain_node): New type.
3322         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
3323         (comdat_type_list): New variable.
3324         (dwarf_tag_name): Add DW_TAG_type_unit.
3325         (dwarf_attr_name): Add DW_AT_signature.
3326         (add_AT_data8): New function.
3327         (replace_child): New function.
3328         (move_all_children): New function.
3329         (print_signature): New function.
3330         (print_die): Print signature information; add dw_val_class_data8.
3331         (attr_checksum): Support dw_val_class_data8.
3332         (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
3333         (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
3334         (checksum_sleb128, checksum_uleb128): New functions.
3335         (checksum_die_context): New function.
3336         (loc_checksum_ordered): New function.
3337         (attr_checksum_ordered): New function.
3338         (struct checksum_attributes): New structure.
3339         (collect_checksum_attributes): New function.
3340         (die_checksum_ordered): New function.
3341         (generate_type_signature): New function.
3342         (same_dw_val_p): Add dw_val_class_data8.
3343         (is_symbol_die): Use new is_declaration_die function.
3344         (is_declaration_die): New function.
3345         (should_move_die_to_comdat): New function.
3346         (clone_die): New function.
3347         (clone_tree): New function.
3348         (clone_as_declaration): New function.
3349         (copy_declaration_context): New function.
3350         (generate_skeleton_ancestor_tree): New function.
3351         (generate_skeleton_bottom_up): New function.
3352         (generate_skeleton): New function.
3353         (remove_child_or_replace_with_skeleton): New function.
3354         (break_out_comdat_types): New function.
3355         (struct decl_table_entry): New type.
3356         (htab_decl_hash): New function.
3357         (htab_decl_eq): New function.
3358         (htab_decl_del): New function.
3359         (copy_ancestor_tree): New function.
3360         (copy_decls_walk): New function.
3361         (copy_decls_for_unworthy_types): New function.
3362         (build_abbrev_table): Don't assert on missing die_symbol when doing
3363         comdat type sections.
3364         (size_of_die): Use DW_FORM_sig8 for external references.  Add
3365         dw_val_class_data8.
3366         (unmark_dies): Don't assert for unmarked dies when doing comdat
3367         type sections.
3368         (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
3369         (output_signature): New function.
3370         (output_die): Likewise.
3371         (output_compilation_unit_header): Mark output as DWARF version 3
3372         even if generating DWARF 4.
3373         (output_comdat_type_unit): New function.
3374         (output_line_info): Mark output as DWARF version 3 even if generating
3375         DWARF 4.
3376         (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
3377         DWARF-4.
3378         (dwarf2out_end_source_file): Likewise.
3379         (prune_unused_types_walk_attribs): Don't follow references into
3380         comdat type sections.
3381         (prune_unused_types_mark): When generating type units, do not mark
3382         children of non-defining declarations of types; do mark children of
3383         type entries.
3384         (prune_unused_types): Process comdat type sections.
3385         (htab_ct_hash): New function.
3386         (htab_ct_eq): New function.
3387         (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
3388         Add a pointer to the line table from type unit entries so
3389         DW_AT_decl_file has meaning.
3390         * varasm.c (default_elf_asm_named_section): Use identifier name as
3391         comdat key instead of lang hook.
3392
3393 2009-10-02  Neil Vachharajani  <nvachhar@google.com>
3394
3395         * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
3396
3397 2009-10-02  Uros Bizjak  <ubizjak@gmail.com>
3398
3399         * config/i386/i386.md (SWIM248): New mode iterator.
3400         (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
3401         divmodhi4 patterns using SWIM248 macro.
3402         (*divmod<mode>4): Macroize insn_and_split pattern from
3403         *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
3404         and their corresponding splitters usign SWIM248 macro.  Split SImode
3405         insn to generate cltd and DImode insn to generate cqto instead of
3406         move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
3407         (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
3408         (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
3409         *divmodsi_noext patterns using SWIM248 macro.
3410         (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
3411         udivmodhi4 patterns using SWIM248 macro.
3412         (*udivmod<mode>4): Macroize insn_and_split pattern from
3413         *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
3414         corresponding splitters using SWIM248 macro.
3415         (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
3416         *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
3417
3418 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
3419
3420         * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
3421         of zero-sized element is zero-sized regardless of its extent.
3422
3423 2009-10-02  Jakub Jelinek  <jakub@redhat.com>
3424
3425         PR debug/40521
3426         * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
3427         * configure: Regenerated.
3428         * config.in: Regenerated.
3429         * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
3430         !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
3431         (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
3432         not emitting .eh_frame, emit .cfi_sections .debug_frame
3433         directive.
3434
3435         PR debug/41404
3436         PR debug/41353
3437         * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
3438         CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
3439         with '\0'.
3440         (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
3441         vars use DECL_RTL with resetting it back to NULL afterwards.
3442         * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
3443         rtx_equal_p instead of asserting it is a SYMBOL_REF.
3444         (value_format): For dw_val_class_addr only use DW_FORM_addr if
3445         the attribute type allows it, otherwise use DW_FORM_dataN.
3446         (mem_loc_descriptor): Handle CONST_STRING.
3447         (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
3448         Handle MEM with CONST_STRING address using add_AT_string.
3449         (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
3450         CONST_STRING for const arrays initialized with a string literal.
3451         (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
3452         (dwarf2out_finish): Call resolve_addr.
3453
3454 2009-10-02  Andreas Schwab  <schwab@linux-m68k.org>
3455             Maxim Kuvyrkov  <maxim@codesourcery.com>
3456
3457         * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
3458
3459 2009-10-02  Nick Clifton  <nickc@redhat.com>
3460
3461         * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
3462         (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
3463
3464 2009-10-01  Jan Hubicka  <jh@suse.cz>
3465
3466         * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
3467         (cgraph_create_virtual_clone): Just pass redirect_callers
3468         around.
3469         * cgraph.h (cgraph_clone_node): Update prototype.
3470         * ipa-pure-const.c (self_recursive_p): New function.
3471         (propagate): Use it.
3472         * ipa-inline.c (cgraph_clone_inlined_nodes,
3473         cgraph_decide_recursive_inlining): Update.
3474
3475 2009-10-01  David Daney  <ddaney@caviumnetworks.com>
3476
3477         * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
3478         instructions for TARGET_OCTEON.
3479
3480 2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3481
3482         * config/arm/arm.c (arm_override_options): Turn off
3483         flag_dwarf2_cfi_asm for AAPCS variants.
3484
3485 2009-10-01  Martin Jambor  <mjambor@suse.cz>
3486
3487         PR middle-end/12392
3488         * tree-sra.c (convert_callers): Do not call
3489         compute_inline_parameters on one caller more than once.
3490
3491 2009-10-01  Nick Clifton  <nickc@redhat.com>
3492
3493         * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
3494         an empty string if not already defined.
3495
3496 2009-10-01  Martin Jambor  <mjambor@suse.cz>
3497
3498         PR bootstrap/41395
3499         * tree-sra.c (is_va_list_type): New function.
3500         (find_var_candidates): Call is_va_list_type.
3501         (find_param_candidates): Check that the type or the type pointed
3502         to are not va_list types.
3503
3504 2009-10-01  Martin Jambor  <mjambor@suse.cz>
3505
3506         PR c++/41503
3507         * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
3508         DECL_ARTIFICIAL (param_decl) is true.
3509
3510 2009-09-30  Gabriel Dos Reis  <gdr@cs.tamu.edu>
3511
3512         * tree.h (tree_decl_common::lang_flag_8): New.
3513         * c-common.c (c_common_reswords): Include "constexpr" as C++0x
3514         keyword.
3515         * c-common.h (RID_CONSTEXPR): New.
3516
3517 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
3518
3519         * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
3520         Use ref-all pointers.
3521         (alpha_gimplify_va_arg): Ditto.
3522
3523 2009-09-30  Jakub Jelinek  <jakub@redhat.com>
3524
3525         PR target/41279
3526         * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
3527         before insn counting loop now that BB_END (bb) is counted.  Ensure
3528         the return value isn't zero.
3529
3530 2009-09-30  Nick Clifton  <nickc@redhat.com>
3531
3532         * config.gcc (sh-symbianelf): Replace definition of extra_objs
3533         with separate definitions of c_target_objs and cxx_target_objs.
3534         * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
3535         and symbian-base.o.
3536         * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
3537         sh_symbian_import_export_class.
3538         * config/sh/sh-protos.h: Fix names of exported symbian functions.
3539         * config/sh/symbian.c: Delete, moving code into...
3540         * config/sh/symbian-base.c: ... here
3541         * config/sh/symbian-c.c: ... and here
3542         * config/sh/symbian-cxx.c: ... and here.
3543
3544 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
3545
3546         PR target/22093
3547         * config/alpha/alpha.md (unaligned_storehi_be): Force operand
3548         of plus RTX into register.
3549
3550 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3551
3552         * doc/install.texi: Linguistic and markup fixes.
3553         (Configuration) <--disable-cpp>: Remove description.
3554         <--enable-maintainer-mode>: Autotools files are affected, too.
3555         <--with-sysroot>: Improve description.
3556         (Building): Bump required GNU make version.
3557
3558 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
3559
3560         * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
3561         (x86_64-*-*): Ditto.
3562
3563         * config/i386/fma4intrin.h: New file, provide common x86 compiler
3564         intrinisics for FMA4.
3565         * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
3566         * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
3567         Add FMA4 check and fma4intrin.h.
3568         * config/i386/i386-c.c(ix86_target_macros_internal): Check
3569         ISA_FLAG for FMA4.
3570         * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
3571         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
3572         constant for FMA4 support.
3573         (UNSPEC_FMA4_FMADDSUB): Ditto.
3574         (UNSPEC_FMA4_FMSUBADD): Ditto.
3575         * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
3576         * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
3577         (ix86_expand_fma4_multiple_memory): Ditto.
3578         * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
3579         (OPTION_MASK_ISA_FMA4_UNSET): New.
3580         (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
3581         (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
3582         (ix86_handle_option): Handle -mfma4.
3583         (isa_opts): Handle -mfma4.
3584         (enum pta_flags): Add PTA_FMA4.
3585         (override_options): Add FMA4 support.
3586         (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
3587         (IX86_BUILTIN_VFMADDSD): Ditto.
3588         (IX86_BUILTIN_VFMADDPS): Ditto.
3589         (IX86_BUILTIN_VFMADDPD): Ditto.
3590         (IX86_BUILTIN_VFMSUBSS): Ditto.
3591         (IX86_BUILTIN_VFMSUBSD): Ditto.
3592         (IX86_BUILTIN_VFMSUBPS): Ditto.
3593         (IX86_BUILTIN_VFMSUBPD): Ditto.
3594         (IX86_BUILTIN_VFMADDSUBPS): Ditto.
3595         (IX86_BUILTIN_VFMADDSUBPD): Ditto.
3596         (IX86_BUILTIN_VFMSUBADDPS): Ditto.
3597         (IX86_BUILTIN_VFMSUBADDPD): Ditto.
3598         (IX86_BUILTIN_VFNMADDSS): Ditto.
3599         (IX86_BUILTIN_VFNMADDSD): Ditto.
3600         (IX86_BUILTIN_VFNMADDPS): Ditto.
3601         (IX86_BUILTIN_VFNMADDPD): Ditto.
3602         (IX86_BUILTIN_VFNMSUBSS): Ditto.
3603         (IX86_BUILTIN_VFNMSUBSD): Ditto.
3604         (IX86_BUILTIN_VFNMSUBPS): Ditto.
3605         (IX86_BUILTIN_VFNMSUBPD): Ditto.
3606         (IX86_BUILTIN_VFMADDPS256): Ditto.
3607         (IX86_BUILTIN_VFMADDPD256): Ditto.
3608         (IX86_BUILTIN_VFMSUBPS256): Ditto.
3609         (IX86_BUILTIN_VFMSUBPD256): Ditto.
3610         (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
3611         (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
3612         (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
3613         (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
3614         (IX86_BUILTIN_VFNMADDPS256): Ditto.
3615         (IX86_BUILTIN_VFNMADDPD256): Ditto.
3616         (IX86_BUILTIN_VFNMSUBPS256): Ditto.
3617         (IX86_BUILTIN_VFNMSUBPD256): Ditto.
3618         (enum multi_arg_type): New enum for describing the various FMA4
3619         intrinsic argument types.
3620         (bdesc_multi_arg): New table for FMA4 intrinsics.
3621         (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
3622         (ix86_expand_multi_arg_builtin): New function for creating FMA4
3623         intrinsics.
3624         (ix86_expand_builtin): Add FMA4 intrinsic support.
3625         (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
3626         operand instructions.
3627         (ix86_expand_fma4_multiple_memory): New function to split the
3628         second memory reference from FMA4 instructions.
3629         * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
3630         (ssemodesuffixf2s): Ditto.
3631         (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
3632         instructions.
3633         (fma4_fmsub<mode>4): Ditto.
3634         (fma4_fnmadd<mode>4): Ditto.
3635         (fma4_fnmsub<mode>4): Ditto.
3636         (fma4_vmfmadd<mode>4): Ditto.
3637         (fma4_vmfmsub<mode>4): Ditto.
3638         (fma4_vmfnmadd<mode>4): Ditto.
3639         (fma4_vmfnmsub<mode>4): Ditto.
3640         (fma4_fmadd<mode>4256): Ditto.
3641         (fma4_fmsub<mode>4256): Ditto.
3642         (fma4_fnmadd<mode>4256): Ditto.
3643         (fma4_fnmsub<mode>4256): Ditto.
3644         (fma4_fmaddsubv8sf4): Ditto.
3645         (fma4_fmaddsubv4sf4): Ditto.
3646         (fma4_fmaddsubv4df4): Ditto.
3647         (fma4_fmaddsubv2df4): Ditto.
3648         (fma4_fmsubaddv8sf4): Ditto.
3649         (fma4_fmsubaddv4sf4): Ditto.
3650         (fma4_fmsubaddv4df4): Ditto.
3651         (fma4_fmsubaddv2df4): Ditto.
3652         (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
3653         instructions for intrinsics.
3654         (fma4i_fmsub<mode>4): Ditto.
3655         (fma4i_fnmadd<mode>4): Ditto.
3656         (fma4i_fnmsub<mode>4): Ditto.
3657         (fma4i_vmfmadd<mode>4): Ditto.
3658         (fma4i_vmfmsub<mode>4): Ditto.
3659         (fma4i_vmfnmadd<mode>4): Ditto.
3660         (fma4i_vmfnmsub<mode>4): Ditto.
3661         (fma4i_fmadd<mode>4256): Ditto.
3662         (fma4i_fmsub<mode>4256): Ditto.
3663         (fma4i_fnmadd<mode>4256): Ditto.
3664         (fma4i_fnmsub<mode>4256): Ditto.
3665         (fma4i_fmaddsubv8sf4): Ditto.
3666         (fma4i_fmaddsubv4sf4): Ditto.
3667         (fma4i_fmaddsubv4df4): Ditto.
3668         (fma4i_fmaddsubv2df4): Ditto.
3669         (fma4i_fmsubaddv8sf4): Ditto.
3670         (fma4i_fmsubaddv4sf4): Ditto.
3671         (fma4i_fmsubaddv4df4): Ditto.
3672         (fma4i_fmsubaddv2df4): Ditto.
3673
3674         * doc/invoke.texi (-mfma4): Add documentation.
3675         * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
3676
3677 2009-09-29  Richard Henderson  <rth@redhat.com>
3678
3679         * tree-eh.c (unsplit_eh): Do not unsplit if there's already
3680         an edge to the new destination block.
3681
3682 2009-09-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3683
3684         PR target/41393
3685         * pa.c (hppa_profile_hook): Use
3686         make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
3687
3688 2009-09-29  Steve Ellcey  <sje@cup.hp.com>
3689             Alexander Monakov  <amonakov@ispras.ru>
3690
3691         PR target/41365
3692         * config/ia64/predicates.md (not_postinc_destination_operand): New.
3693         (not_postinc_memory_operand): New.
3694         (not_postinc_move_operand): New.
3695         * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
3696         (*cmovsi_internal): Ditto.
3697
3698 2009-09-29  Pat Haugen  <pthaugen@us.ibm.com>
3699
3700         * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
3701         restrict issue_rate in first pass when scheduling for register
3702         pressure.
3703
3704 2009-09-29  Basile Starynkevitch  <basile@starynkevitch.net>
3705             Rafael Avila de Espindola  <espindola@google.com>
3706
3707         * gengtype.c (plugin_output): New.
3708         (get_output_file_with_visibility): Return plugin_output for plugins.
3709         (main): Parse and use the -P option.
3710         * gty.texi: Update the command line format.
3711
3712 2009-09-29  Jakub Jelinek  <jakub@redhat.com>
3713
3714         PR debug/41438
3715         * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
3716         functions.
3717         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
3718         out if !const_ok_for_output.
3719
3720         PR debug/41474
3721         * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
3722         case VAR_LOCATION>: Remove gcc_unreachable ().
3723
3724 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
3725
3726         * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
3727         (x86_64-*-*): Ditto.
3728         * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
3729         back to smmintrin.h.
3730         * config/i386/cpuid.h (bit_SSE5): Remove SSE5 bit.
3731         * config/i386/x86intrin.h: Remove SSE5.
3732         * config/i386/mmintrin-common.h: Delete file.
3733         * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
3734
3735 2009-09-29  Richard Guenther  <rguenther@suse.de>
3736
3737         * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
3738         resulting from stack temporaries on STRICT_ALIGNMENT targets.
3739
3740 2009-09-29  Nick Clifton  <nickc@redhat.com>
3741
3742         * function.c (current_function_name): If there is no current
3743         function just return "<none>".
3744
3745 2009-09-28  Sriraman Tallam  <tmsriram@google.com>
3746
3747         * tree-pass.h (register_pass_info): New structure.
3748         (pass_positioning_ops): Move enum from gcc-plugin.h.
3749         (register_pass): New function.
3750         * gcc-plugin.h (plugin_pass): Delete structure.
3751         (pass_positioning_ops): Delete enum.
3752         * plugin.c (regsiter_pass): Delete function.
3753         (position_pass): Delete function.
3754         (added_pass_nodes): Delete variable.
3755         (prev_added_pass_nodes): Delete variable.
3756         (pass_list_node): Delete structure.
3757         * passes.c (make_pass_instance): New function.
3758         (next_pass_1): Change to call make_pass_instance.
3759         (pass_list_node): Move structure from gcc-plugin.h.
3760         (added_pass_nodes): Move variable from plugin.c.
3761         (prev_added_pass_nodes): Move variable from plugin.c.
3762         (position_pass): New function.
3763         (register_pass): New function.
3764
3765 2009-09-28  Easwaran Raman  <eraman@google.com>
3766
3767         * ifcvt.c (noce_try_abs): Recognize pattern and call
3768         expand_one_cmpl_abs_nojump.
3769         * optabs.c (expand_one_cmpl_abs_nojump): New function.
3770         * optabs.h (expand_one_cmpl_abs_nojump): Declare.
3771
3772 2009-09-28  Ian Lance Taylor  <iant@google.com>
3773
3774         PR middle-end/40500
3775         * c-opts.c (c_common_handle_option): Don't set
3776         warn_jump_misses_init for -Wall.
3777         * doc/invoke.texi (Warning Options): Update documentation.
3778
3779 2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3780
3781         * Makefile.in ($(out_object_file)): Depend on
3782         gt-$(basename $(notdir $(out_file))).h.
3783
3784 2009-09-28  Richard Henderson  <rth@redhat.com>
3785
3786         * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
3787         * except.c (gen_eh_region): Set it.
3788         (duplicate_eh_regions_1): Copy it.
3789         * tree-eh.c (lower_resx): Use it to determine which function
3790         to call to resume.
3791
3792         * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
3793         * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
3794         * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
3795         * tree.c (build_common_builtin_nodes): Remove parameter.  Build
3796         BUILT_IN_CXA_END_CLEANUP if necessary.
3797
3798         * c-common.c (c_define_builtins): Update call to
3799         build_common_builtin_nodes.
3800
3801 2009-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3802
3803         * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
3804
3805 2009-09-28  Michael Matz  <matz@suse.de>
3806
3807         * builtins.c (interclass_mathfn_icode): New helper.
3808         (expand_builtin_interclass_mathfn): Use it here, and split folding
3809         into ...
3810         (fold_builtin_interclass_mathfn): ... this new folder.
3811         (build_call_nofold_loc): New static helper.
3812         (build_call_nofold): New wrapper macro for above.
3813         (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
3814         (expand_builtin_pow): Ditto.
3815         (expand_builtin_memset_args): Ditto.
3816         (expand_builtin_printf): Ditto.
3817         (expand_builtin_fprintf): Ditto.
3818         (expand_builtin_sprintf): Ditto.
3819         (expand_builtin_memory_chk): Ditto.
3820         (expand_builtin_mempcpy_args): Ditto and don't call folders.
3821         (expand_builtin_stpcpy): Ditto.
3822         (expand_builtin_strcmp): Ditto.
3823         (expand_builtin_strncmp): Ditto.
3824         (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
3825         (expand_builtin_strcpy_args): Don't call folders.
3826         (expand_builtin_memcmp): Ditto.
3827         (expand_builtin_strncpy): Ditto, and use target.
3828         (expand_builtin_memcpy): Ditto.
3829         (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
3830         expand_builtin_strpbrk, expand_builtin_memmove,
3831         expand_builtin_memmove_args, expand_builtin_bcopy,
3832         expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
3833         expand_builtin_strspn, expand_builtin_strcspn,
3834         expand_builtin_fputs): Remove these.
3835         (expand_builtin): Don't call the above, change calls to other
3836         expanders that changed prototype.
3837         (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
3838         (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
3839         fold_builtin_interclass_mathfn.
3840         (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
3841         (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
3842
3843         * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
3844         * passes.c (init_optimization_passes): Move pass_fold_builtins
3845         after last phiopt pass.
3846         * tree-inline.c (fold_marked_statements): When folding builtins
3847         iterate over all instruction potentially generated.
3848         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
3849         earlier.
3850         (fold_gimple_call): Use it to always fold calls (into potentially
3851         multiple instructions).
3852         * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
3853         calls into zero at this time.
3854         * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
3855         statements generated by builtin folding.
3856
3857 2009-09-28  Nick Clifton  <nickc@redhat.com>
3858
3859         * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
3860
3861 2009-09-28  Duncan Sands  <baldrick@free.fr>
3862
3863         * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
3864         * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
3865         (register_callback): Dispatch it.
3866         (invoke_plugin_callbacks): Incorporate in sanity check.
3867         * ggc.h (ggc_register_cache_tab): Add declaration.
3868         * ggc-common.c (ggc_register_root_tab): Simplify.
3869         (const_ggc_cache_tab_t): New typedef.
3870         (extra_cache_vec): New vector of dynamically added cache tables.
3871         (ggc_register_cache_tab): New function.
3872         (ggc_scan_cache_tab): New function.
3873         (ggc_mark_roots): Simplify dynamic roots.  Handle dynamic caches.
3874         * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
3875
3876 2009-09-27  Richard Henderson  <rth@redhat.com>
3877
3878         * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
3879         which we remove __builtin_stack_restore.
3880
3881 2009-09-27  Bernd Schmidt  <bernd.schmidt@analog.com>
3882
3883         * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
3884         to test for GRD_INVARIANT.
3885         (simple_rhs_p): Anything that's function_invariant_p is fine.
3886
3887 2009-09-27  Rafael Avila de Espindola  <espindola@google.com>
3888
3889         * gengtype.c (main): Use plunge_files instead of plugin_output.
3890
3891 2009-09-27  Basile Starynkevitch  <basile@starynkevitch.net>
3892             Rafael Avila de Espindola  <espindola@google.com>
3893
3894         * gengtype.c (write_root, write_roots): Add a emit_pch argument.
3895         Don't print pch related info if it is false.
3896         (main): Don't print pch info in plugin mode.
3897
3898 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
3899
3900         * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
3901         with dw_val_class_const_double.
3902         (struct dw_val_struct): Replace val_long_long with val_double and
3903         adjust for above change.
3904         (output_loc_operands): Likewise.
3905         (add_AT_long_long): Rename into...
3906         (add_AT_double): ...this.
3907         (print_die): Replace dw_val_class_long_long with
3908         dw_val_class_const_double and adjust.
3909         (attr_checksum): Likewise.
3910         (same_dw_val_p): Likewise.
3911         (size_of_die): Likewise.
3912         (value_format): Likewise.
3913         (output_die): Likewise.
3914         (loc_descriptor) <CONST_DOUBLE>: Likewise.
3915         (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
3916         instead of add_AT_long_long.
3917         (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
3918         value with the precision of its type.
3919
3920 2009-09-27  Andreas Schwab  <schwab@linux-m68k.org>
3921
3922         PR c/41476
3923         * c-typeck.c (build_conditional_expr): Use the readonly and
3924         volatile flags of the operand types, not of the operands itself.
3925
3926 2009-09-27  Peter O'Gorman  <pogma@thewrittenword.com>
3927
3928         * collect2.c (main): Look for -brtl before adding libraries.
3929
3930 2009-09-27  Jonathan Gray  <jsg@openbsd.org>
3931
3932         * config.gcc: Update OpenBSD targets.
3933         * config/openbsd-stdint.h: New file.
3934         * config/openbsd-libpthread.h: New file.
3935         * config/openbsd.h: Update and break out LIB_SPEC definition.
3936         * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
3937         * config/i386/openbsdelf.h: Correct types.
3938         * config/m68k/openbsd.h: Likewise.
3939         * config/mips/openbsd.h: Likewise.
3940         * config/vax/openbsd.h: Likewise.
3941
3942 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
3943
3944         * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
3945         (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
3946         * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
3947         of the length and zero.
3948
3949 2009-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3950
3951         * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
3952         (FLAGS_H): Add options.h $(REAL_H).
3953         (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
3954         (TREE_VECTORIZER_H): New.
3955         (EBITMAP_H): Renamed from EBIMAP_H.
3956         (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
3957         (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
3958         (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
3959         (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
3960         (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
3961         (graphite-clast-to-gimple.o, graphite-dependences.o)
3962         (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
3963         (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
3964         (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
3965         (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
3966         (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
3967         (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
3968         (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
3969         (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
3970         (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
3971         updated and fixed as per above changes and per
3972         check_makefile_deps.sh output.
3973
3974         PR bootstrap/40928
3975         * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
3976         * configure: Regenerate.
3977
3978 2009-09-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3979
3980         * doc/install.texi: Update minimum MPC version to 0.7.
3981
3982 2009-09-26  Gerald Pfeifer  <gerald@pfeifer.com>
3983
3984         * doc/install.texi (Binaries): Remove reference to the binary
3985         distribution CD-ROM from the FSF.
3986
3987 2009-09-26  Michael Matz  <matz@suse.de>
3988
3989         PR lto/40758
3990         PR middle-end/41470
3991         * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
3992         that are mentioned in the body.
3993
3994 2009-09-26  Michael Matz  <matz@suse.de>
3995
3996         PR tree-optimization/41454
3997         * tree-ssa-dom (stmts_to_rescan): Remove variable.
3998         (tree_ssa_dominator_optimize): Don't allocate and free it.
3999         (dom_opt_leave_block): Don't iterate over it.
4000         (eliminate_redundant_computations): Don't return a value.
4001         (cprop_operand, cprop_into_stmt): Ditto.
4002         (optimize_stmt): Don't defer updating stmts.
4003
4004 2009-09-25  Dodji Seketeli  <dodji@redhat.com>
4005
4006         * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
4007         generic_parameter_die, template_parameter_pack_die,
4008         gen_formal_parameter_die, gen_subprogram_die): Adjust after
4009         renaming DW_TAG_formal_parameter_pack and
4010         DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
4011         and DW_TAG_GNU_template_parameter_pack.
4012
4013 2009-09-25  Anatoly Sokolov  <aesok@post.ru>
4014
4015         * config/v850/v850.h (FUNCTION_VALUE): Remove.
4016         * config/v850/v850.c (v850_function_value): New function.
4017         (TARGET_FUNCTION_VALUE): Define.
4018
4019 2009-09-25  Jakub Jelinek  <jakub@redhat.com>
4020
4021         * tree-vect-stmts.c (vectorizable_call): Call
4022         mark_symbols_for_renaming after vect_finish_stmt_generation.
4023
4024         * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
4025         to loc_descriptor_from_tree.
4026         (add_location_or_const_value_attribute): Pass 0 instead of 2
4027         for decl_by_reference_p decls.
4028
4029 2009-09-25  Richard Guenther  <rguenther@suse.de>
4030
4031         PR middle-end/41463
4032         * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
4033         arrays again.
4034
4035 2009-09-25  Ben Elliston  <bje@au.ibm.com>
4036
4037         * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
4038         after `power7'.
4039
4040 2009-09-25  Alan Modra  <amodra@bigpond.net.au>
4041
4042         * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
4043         form of instruction.
4044
4045 2009-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4046
4047         PR middle-end/41435
4048         * fold-const.c (const_binop): Handle complex int division.
4049         * tree-complex.c (expand_complex_div_straight,
4050         expand_complex_div_wide): Update comments.
4051
4052 2009-09-24  DJ Delorie  <dj@redhat.com>
4053
4054         PR target/41456
4055         * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
4056         (reg_class): Likewise.
4057         (REG_CLASS_NAMES): Likewise.
4058         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
4059         (m32c_override_options): Disable -fivopts for M32C.
4060
4061 2009-09-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
4062
4063         * config/rs6000/predicates.md (indexed_or_indirect_operand):
4064         Delete VSX load/store with update support.
4065         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
4066         * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
4067         (vsx_movti): Ditto.
4068         (VSX_U): Delete.
4069         (VSbit): Ditto.
4070         (VStype_load_update): Ditto.
4071         (VStype_store_update): Ditto.
4072         (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
4073         (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
4074
4075         * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
4076         load/store with update builtins.
4077
4078 2009-09-24  Kai Tietz  <kai.tietz@onevision.com>
4079
4080         * libgcc2.c (L_trampoline): Prototype for getpagesize
4081         and mprotect in WINNT case.
4082
4083 2009-09-24  Anatoly Sokolov  <aesok@post.ru>
4084
4085         * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
4086         * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
4087         * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
4088         'outgoing' argument.
4089         (TARGET_FUNCTION_VALUE): Define.
4090
4091 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
4092
4093         * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
4094
4095 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
4096
4097         PR bootstrap/41405
4098         * common.opt: Initialize dwarf_strict to -1.
4099         * toplev.c (process_options): Catch unset dwarf_strict
4100         and set to 0 for all targets not overriding.
4101         * config/darwin.c (darwin_override_options): Catch unset
4102         dwarf_strict and override to 1.
4103
4104 2009-09-24  Jeff Law  <law@redhat.com>
4105
4106         * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
4107
4108 2009-09-24  Richard Guenther  <rguenther@suse.de>
4109
4110         PR tree-optimization/36143
4111         PR tree-optimization/38747
4112         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
4113         create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
4114
4115 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
4116
4117         PR bootstrap/41457
4118         * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
4119         return false instead of gcc_unreachable ().  For CONST return the
4120         value returned by recursive call instead of always returning true.
4121         (tree_add_const_value_attribute): Return the value returned by
4122         add_const_value_attribute instead of always returning true if rtl
4123         is non-NULL.
4124
4125 2009-09-23  Justin Seyster  <jrseys@gmail.com>
4126
4127         * Makefile.in (PLUGIN_HEADERS): Include real.h.
4128
4129 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
4130
4131         * cgraphunit.c (cgraph_lower_function): Revert last change.
4132         * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
4133         instead of DECL_NO_STATIC_CHAIN.
4134         * tree-cfg.c (verify_gimple_call): Likewise.
4135         * tree-nested.c (get_chain_decl, get_chain_field,
4136         convert_tramp_reference_op, convert_gimple_call): Likewise.
4137         (convert_all_function_calls): Likewise.  Always set or clear
4138         DECL_STATIC_CHAIN initially, for !n->outer clear it.
4139         (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
4140         * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
4141         if nested.
4142         * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
4143         DECL_NO_STATIC_CHAIN.
4144         * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
4145         instead of DECL_NO_STATIC_CHAIN.
4146         (ix86_function_regparm, find_drap_reg): Likewise.  Don't test
4147         decl_function_context.
4148         * varasm.c (initializer_constant_valid_p): Likewise.
4149         * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
4150         (DECL_STATIC_CHAIN): ... this.
4151         * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
4152         instead of DECL_NO_STATIC_CHAIN.
4153
4154 2009-09-23  Basile Starynkevitch  <basile@starynkevitch.net>
4155             Rafael Avila de Espindola  <espindola@google.com>
4156
4157         * gengtype.c (nb_plugin_files): Make it unsigned to match
4158         num_gt_files. Adjust other variables to avoid warnings.
4159         (main): Allocate an all zero lang_bitmap before each plugin file name
4160         to match regular file names.
4161
4162 2009-09-23  Richard Henderson  <rth@redhat.com>
4163
4164         * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
4165         (TARGET_STATIC_CHAIN): Mention that this hook must be used for
4166         static chain passed in memory.
4167         * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
4168         * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
4169         STATIC_CHAIN_INCOMING.  Issue a sorry if there's no
4170         STATIC_CHAIN_REGNUM defined.
4171
4172         * config/picochip/picochip-protos.h: s/class/klass/.
4173         * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
4174         (picochip_static_chain): New.
4175         * config/picochip/picochip.h (STATIC_CHAIN): Remove.
4176         (STATIC_CHAIN_INCOMING): Remove.
4177
4178         * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
4179         (xtensa_static_chain): New.
4180         * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
4181         (STATIC_CHAIN_INCOMING): Remove.
4182
4183 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
4184
4185         * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
4186         * config/pa/pa-protos.h (function_value): Remove.
4187         * config/pa/pa.c (pa_function_value): Rename from function_value.
4188         Make static, add 'outgoing' argument.
4189         (TARGET_FUNCTION_VALUE): Define.
4190
4191 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
4192
4193         * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
4194         instead of cfun->machine->is_leaf.
4195         * config/avr/avr.h (machine_function): Remove is_leaf field.
4196
4197 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
4198
4199         PR debug/41439
4200         * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
4201         DW_OP_piece after DW_OP_stack_value, adjust size calculations
4202         for it, when DW_OP_stack_value and DW_OP_implicit_value has
4203         the same size, prefer DW_OP_stack_value.
4204         (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
4205         loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
4206
4207 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
4208
4209         PR debug/41353
4210         * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
4211
4212 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
4213
4214         PR debug/41248
4215         * cfgexpand.c (convert_debug_memory_address): New.
4216         (expand_debug_expr): Convert base address and offset to the same
4217         mode.  Use it to convert addresses to other modes.  Accept
4218         ptr_mode addresses.
4219
4220 2009-09-23  Richard Guenther  <rguenther@suse.de>
4221
4222         * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
4223         produced for bigendian targets with promoted subregs.
4224
4225 2009-09-23  Richard Guenther  <rguenther@suse.de>
4226
4227         * value-prof.c (gimple_ic): Purge old EH edges only after building
4228         the new ones.
4229
4230 2009-09-23  Nick Clifton  <nickc@redhat.com>
4231
4232         * config/arc/arc.c (arc_trampoline_init): Fix typo.
4233
4234 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
4235
4236         PR bootstrap/41405
4237         * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
4238
4239         PR bootstrap/41436
4240         * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
4241         on non-nested functions.
4242
4243 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
4244             Jan Hubicka  <jh@suse.cz>
4245
4246         * dwarf2out.c (loc_list_plus_const): Only define if
4247         DWARF2_DEBUGGING_INFO.
4248         (address_of_int_loc_descriptor): Likewise.
4249
4250         PR debug/41411
4251         * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
4252
4253 2009-09-23  Uros Bizjak  <ubizjak@gmail.com>
4254
4255         PR c/39779
4256         * c-typeck.c (build_binary_op) <short_shift>: Check that integer
4257         constant is more than zero.
4258
4259 2009-09-23  Alan Modra  <amodra@bigpond.net.au>
4260
4261         PR target/40473
4262         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
4263         call final to emit non-scheduled prologue, instead insert at entry.
4264
4265 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
4266             Joseph S. Myers  <joseph@codesourcery.com>
4267
4268         * doc/install.texi (*-*-freebsd*): Add proper format codes.
4269
4270 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
4271             Rafael Avila de Espindola  <espindola@google.com>
4272
4273         * gengtype.c (is_file_equal): New function.
4274         (close_output_files): Use is_file_equal. Free of->buf.
4275
4276 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
4277             Rafael Avila de Espindola  <espindola@google.com>
4278
4279         * gengtype.c (write_types, write_local): Add the output_header
4280         argument. Update all callers.
4281
4282 2009-09-22  Dodji Seketeli  <dodji@redhat.com>
4283
4284         * dwarf2out.c (template_parameter_pack_die,
4285         gen_formal_parameter_pack_die ): New functions.
4286         (make_ith_pack_parameter_name): Remove this function.
4287         (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
4288         DW_TAG_formal_parameter_pack.
4289         (gen_generic_params_dies): Represent each template parameter pack
4290         by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
4291         represented by usual DW_TAG_template_*_parameter DIEs that are
4292         children of the DW_TAG_template_parameter_pack element DIE.
4293         (generic_parameter_die): This doesn't deal with parameter pack
4294         names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
4295         of parameter pack DIEs.
4296         (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
4297         in certain cases, e.g. for pack elements.
4298         (gen_formal_types_die, gen_decl_die): Adjust usage of
4299         gen_formal_parameter_die.
4300         (gen_subprogram_die): Represent each function parameter pack by a
4301         DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
4302         represented by usual DW_TAG_formal_parameter DIEs that are children
4303         of the DW_TAG_formal_parameter_pack DIE. Remove references to
4304         ____builtin_va_alist decls as no part of the compiler uses those
4305         anymore.
4306         * langhooks.h (struct lang_hooks_for_decls): Add
4307         function_parm_expanded_from_pack_p, get_generic_function_decl
4308         and function_parameter_pack_p hooks.  Fix comment for
4309         get_innermost_generic_parms hook.
4310         * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
4311         LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
4312         macros and use them to initialize lang_hook.
4313
4314 2009-09-22  Richard Henderson  <rth@redhat.com>
4315
4316         * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
4317         (TRAMPOLINE_ADJUST_ADDRESS): Poison.
4318         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
4319         on TRAMPOLINE_TEMPLATE.
4320         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
4321         TRAMPOLINE_ADJUST_ADDRESS.
4322         * targhooks.c (default_asm_trampoline_template): Remove.
4323         (default_trampoline_adjust_address): Remove.
4324         (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
4325         * targhooks.h: Update decls.
4326
4327 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
4328
4329         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
4330         * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
4331         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
4332
4333 2009-09-22  Alexandre Oliva  <aoliva@redhat.com>
4334
4335         PR debug/41295
4336         * reload1.c (reload): Reset debug insns with pseudos without
4337         equivalences.
4338
4339 2009-09-22  Janis Johnson  <janis187@us.ibm.com>
4340
4341         * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
4342         unconditional true for decimal float modes.
4343         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
4344         * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
4345
4346 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
4347
4348         * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
4349         Enable a new case for __FreeBSD__ >= 7.
4350         * crtstuff.c:  Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
4351         * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
4352         * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
4353         and USE_LD_AS_NEEDED.
4354
4355         * doc/install.texi (*-*-freebsd*): Update target information.
4356
4357 2009-09-22  Richard Guenther  <rguenther@suse.de>
4358
4359         PR middle-end/41395
4360         * tree-dfa.c (get_ref_base_and_extent): Handle trailing
4361         arrays really properly.
4362
4363 2009-09-22  Richard Henderson  <rth@redhat.com>
4364
4365         PR target/41246
4366         * target.h (struct gcc_target): Add asm_out.trampoline_template,
4367         calls.static_chain, calls.trampoline_init,
4368         calls.trampoline_adjust_address.
4369         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4370         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
4371         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
4372         * builtins.c (expand_builtin_setjmp_receiver): Use
4373         targetm.calls.static_chain; only clobber registers.
4374         (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
4375         set up memory attributes properly for the trampoline block.
4376         (expand_builtin_adjust_trampoline): Use
4377         targetm.calls.trampoline_adjust_address.
4378         * calls.c (prepare_call_address): Add fndecl argument.  Use
4379         targetm.calls.static_chain.
4380         * df-scan.c (df_need_static_chain_reg): Remove.
4381         (df_get_entry_block_def_set): Use targetm.calls.static_chain;
4382         consolodate static chain handling.
4383         * doc/tm.texi: Document new hooks.
4384         * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
4385         (init_emit_regs): Don't initialize them.
4386         * expr.h (prepare_call_address): Update decl.
4387         * final.c (profile_function): Use targetm.calls.static_chain.
4388         * function.c (expand_function_start): Likewise.
4389         * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
4390         * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
4391         only clobber registers.
4392         * targhooks.c (default_static_chain): New.
4393         (default_asm_trampoline_template, default_trampoline_init): New.
4394         (default_trampoline_adjust_address): New.
4395         * targhooks.h: Declare them.
4396         * varasm.c (assemble_trampoline_template): Use
4397         targetm.asm_out.trampoline_template.  Make the memory block const
4398         and set its size.
4399
4400         * config/alpha/alpha.c (alpha_trampoline_init): Rename from
4401         alpha_initialize_trampoline.  Make static.  Merge VMS parameter
4402         differences into the TARGET_ABI_OPEN_VMS code block.
4403         (TARGET_TRAMPOLINE_INIT): New.
4404         * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
4405         (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
4406         * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
4407         (INITIALIZE_TRAMPOLINE): Remove.
4408
4409         * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
4410         (TRAMPOLINE_TEMPLATE): Merge with ...
4411         (INITIALIZE_TRAMPOLINE): ... this and move ...
4412         * config/arc/arc.c (arc_trampoline_init): ... here.
4413         (TARGET_TRAMPOLINE_INIT): New.
4414
4415         * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4416         (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
4417         (arm_asm_trampoline_template): New.
4418         (arm_trampoline_init, arm_trampoline_adjust_address): New.
4419         * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
4420         THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
4421         code to arm_asm_trampoline_template.
4422         (TRAMPOLINE_ADJUST_ADDRESS): Move code to
4423         arm_trampoline_adjust_address.
4424         (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
4425         adjust for target hook parameters.
4426
4427         * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
4428         Remove.
4429
4430         * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
4431         * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
4432         (bfin_trampoline_init): Rename from initialize_trampoline;
4433         make static; update for target hook parameters.
4434         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
4435         * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
4436         bfin_asm_trampoline_template.
4437         (INITIALIZE_TRAMPOLINE): Remove.
4438
4439         * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4440         TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
4441         cris_trampoline_init): New.
4442         * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
4443         cris_asm_trampoline_template.
4444         (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
4445         adjust for target hook parameters.
4446
4447         * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
4448
4449         * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4450         TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
4451         fr30_trampoline_init): New.
4452         * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
4453         fr30_asm_trampoline_template.
4454         (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
4455         adjust for target hook parameters.
4456
4457         * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
4458         (frv_trampoline_init): Rename from frv_initialize_trampoline;
4459         make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
4460         * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
4461         * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
4462
4463         * config/h8300/h8300.c (h8300_trampoline_init): New.
4464         (TARGET_TRAMPOLINE_INIT): New.
4465         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
4466         to h8300_trampoline_init and adjust for hook parameters.
4467
4468         * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
4469         * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
4470         (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
4471         make static; adjust for hook parameters.
4472         * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
4473
4474         * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4475         (TARGET_TRAMPOLINE_INIT): New.
4476         (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
4477         * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
4478         iq2000_asm_trampoline_template.
4479         (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
4480         (TRAMPOLINE_CODE_SIZE): New.
4481         (TRAMPOLINE_SIZE): Use it.
4482         (TRAMPOLINE_ALIGNMENT): Follow Pmode.
4483
4484         * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
4485         * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
4486         (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
4487         adjust for hook parameters.
4488         * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
4489
4490         * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
4491         (m32r_trampoline_init): New.
4492         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
4493         m32r_trampoline_init.
4494
4495         * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
4496         (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
4497         make static; update for hook parameters.
4498         * config/m68hc11/m68hc11-protos.h: Update.
4499         * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
4500
4501         * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4502         (TARGET_TRAMPOLINE_INIT): New.
4503         (mcore_function_value): Fix typo.
4504         (mcore_asm_trampoline_template, mcore_trampoline_init): New.
4505         * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
4506         to mcore_asm_trampoline_template.
4507         (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
4508
4509         * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
4510         * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
4511         (mep_trampoline_init): Rename from mep_init_trampoline; make static;
4512         update for hook parameters.
4513         * config/mep/mep-protos.h (mep_init_trampoline): Remove.
4514
4515         * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4516         mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
4517         mips_trampoline_init): New.
4518         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
4519         mips_asm_trampoline_template.
4520         (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
4521         update for hook parameters.
4522
4523         * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4524         (TARGET_TRAMPOLINE_INIT): New.
4525         (mmix_trampoline_size): Remove.
4526         (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
4527         make static.  Remove out-of-date tetra vs octa comment.
4528         (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
4529         make static; update for hook parameters.
4530         * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
4531         (INITIALIZE_TRAMPOLINE): Remove.
4532         (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
4533         (TRAMPOLINE_ALIGNMENT): New.
4534         * gcc/config/mmix/mmix-protos.h: Update.
4535
4536         * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4537         mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
4538         mn10300_trampoline_init): New.
4539         * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
4540         mn10300_asm_trampoline_template.
4541         (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
4542
4543         * config/moxie/moxie.c (moxie_static_chain,
4544         moxie_asm_trampoline_template, moxie_trampoline_init,
4545         TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
4546         TARGET_TRAMPOLINE_INIT): New.
4547         * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
4548         moxie_trampoline_init.
4549         (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
4550         (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
4551
4552         * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4553         pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
4554         pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
4555         pa_trampoline_adjust_address): New.
4556         * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
4557         pa_asm_trampoline_template.
4558         (TRAMPOLINE_ALIGNMENT): New.
4559         (TRAMPOLINE_CODE_SIZE): Move to pa.c.
4560         (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
4561         adjust for hook parameters.
4562         (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
4563
4564         * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
4565         (TARGET_TRAMPOLINE_INIT): New.
4566         * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
4567         (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
4568
4569         * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
4570
4571         * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
4572         * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
4573         (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
4574         make static; adjust parameters for the hook.
4575         * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
4576
4577         * config/s390/s390.c (s390_asm_trampoline_template): Rename from
4578         s390_trampoline_template; make static.
4579         (s390_trampoline_init): Rename from s390_initialize_trampoline;
4580         make static; adjust for target hook.
4581         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
4582         * config/s390/s390-protos.h: Remove trampoline decls.
4583         * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
4584         (TRAMPOLINE_TEMPLATE): Remove.
4585         (TRAMPOLINE_ALIGNMENT): New.
4586
4587         * config/score/score-protos.h (score_initialize_trampoline): Remove.
4588         * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4589         (TARGET_TRAMPOLINE_INIT): New.
4590         (score_asm_trampoline_template): New.
4591         (score_trampoline_init): Rename from score_initialize_trampoline;
4592         make static; adjust for hook parameters.
4593         * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
4594         score[37]_asm_trampoline_template.
4595         (INITIALIZE_TRAMPOLINE): Remove.
4596         * config/score/score3.c (score3_asm_trampoline_template): New.
4597         (score3_trampoline_init): Rename from score3_initialize_trampoline;
4598         adjust for target hook.
4599         * config/score/score7.c (score7_asm_trampoline_template): New.
4600         (score7_trampoline_init): Rename from score7_initialize_trampoline;
4601         adjust for target hook.
4602         * config/score/score3.h, config/score/score7.h: Update.
4603
4604         * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
4605         * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
4606         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
4607         (sh_trampoline_init): Rename from sh_initialize_trampoline;
4608         make static; adjust for target hook parameters.
4609         (sh_trampoline_adjust_address): New.
4610         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
4611         (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
4612
4613         * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
4614         (sparc32_initialize_trampoline): Rename from
4615         sparc_initialize_trampoline; make static; replace tramp parameter
4616         with m_tramp and update memory accesses.
4617         (sparc64_initialize_trampoline): Similarly.
4618         (sparc_trampoline_init): New.
4619         * config/sparc/sparc-protos.h: Remove trampoline decls.
4620         * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
4621         * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
4622
4623         * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
4624         (array_to_constant): Make ARR parameter const.
4625         (spu_trampoline_init): Rename from spu_initialize_trampoline;
4626         make static; update for hook parameters.
4627         * config/spu/spu-protos.h: Update decls.
4628         * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
4629
4630         * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
4631         from xstormy16_initialize_trampoline; make static; update for
4632         hook parameters.
4633         (TARGET_TRAMPOLINE_INIT): New.
4634         * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
4635
4636         * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4637         (TARGET_TRAMPOLINE_INIT): New.
4638         (v850_can_eliminate): Make static.
4639         (v850_asm_trampoline_template, v850_trampoline_init): New.
4640         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
4641         v850_asm_trampoline_template.
4642         (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
4643         and adjust for target hook parameters.
4644
4645         * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4646         (TARGET_TRAMPOLINE_INIT): New.
4647         (vax_asm_trampoline_template, vax_trampoline_init): New.
4648         * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
4649         vax_asm_trampoline_template.
4650         (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
4651
4652         * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4653         (TARGET_TRAMPOLINE_INIT): New.
4654         (xtensa_asm_trampoline_template): Rename from
4655         xtensa_trampoline_template; make static.
4656         (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
4657         make static; update for hook parameters.
4658         * config/xtensa/xtensa-protos.h: Remove trampoline decls.
4659         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
4660         (INITIALIZE_TRAMPOLINE): Remove.
4661
4662         * config/i386/i386.c (ix86_function_regparm): Do not issue an
4663         error for nested functions with regparm=3.
4664         (ix86_compute_frame_layout): Adjust frame pointer offset for
4665         ix86_static_chain_on_stack.
4666         (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
4667         (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
4668         don't reset to UNITS_PER_WORD.
4669         (ix86_emit_leave): Adjust ix86_cfa_state.
4670         (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
4671         (ix86_static_chain): New.
4672         (ix86_trampoline_init): Rename from x86_initialize_trampoline;
4673         make static; update for target hook parameters; use ix86_static_chain.
4674         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
4675         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
4676         (INITIALIZE_TRAMPOLINE): Remove.
4677         (TRAMPOLINE_SIZE): Use 24 for 64-bit.
4678         (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
4679         to the end.  Add static_chain_on_stack.
4680         (ix86_static_chain_on_stack): New.
4681
4682         * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
4683         (m68k_output_mi_thunk): Don't use static_chain_rtx.
4684         (m68k_trampoline_init): New.
4685         * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
4686         m68k_trampoline_init and adjust for hook parameters.
4687         * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
4688         (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
4689
4690 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
4691
4692         * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
4693         for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
4694
4695         * reload1.c (reload): Call wrap_constant when substituting
4696         reg for equiv inside of DEBUG_INSNs.
4697
4698         PR bootstrap/41405
4699         * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
4700         add_call_src_coords_attributes, add_high_low_attributes,
4701         gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
4702         gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
4703         dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
4704         when -gdwarf-2 -gstrict-dwarf.
4705         (loc_list_from_tree): Likewise.  Avoid using DWARF4 additions when
4706         -gdwarf-[23] -gstrict-dwarf.
4707         (address_of_int_loc_descriptor, loc_descriptor,
4708         loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
4709         DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
4710         * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
4711
4712 2009-09-22  Richard Guenther  <rguenther@suse.de>
4713
4714         PR tree-optimization/41428
4715         * tree-ssa-ccp.c (ccp_fold_stmt): New function.
4716         (ccp_finalize): Pass it to substitute_and_fold.
4717
4718 2009-09-22  Richard Guenther  <rguenther@suse.de>
4719
4720         * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
4721         (substitute_and_fold): Adjust prototype.
4722         * tree-vrp.c (vrp_evaluate_conditional): Make static.
4723         (simplify_stmt_using_ranges): Likewise.
4724         (fold_predicate_in): Move here from tree-ssa-propagate.c.
4725         (vrp_fold_stmt): New function.
4726         (vrp_finalize): Pass it to substitute_and_fold.
4727         * tree-flow.h (vrp_evaluate_conditional): Remove.
4728         (simplify_stmt_using_ranges): Likewise.
4729         * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
4730         * tree-ssa-copy.c (fini_copy_prop): Likewise.
4731         * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
4732         member.
4733         (fold_predicate_in): Move to tree-vrp.c.
4734         (substitute_and_fold): Use the callback instead of calling into
4735         tree-vrp.c functions directly.
4736
4737 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
4738
4739         * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
4740         comparison warning on rs6000.
4741
4742         PR middle-end/41429
4743         * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
4744         GIMPLE_EH_MUST_NOT_THROW cleanup.
4745         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
4746
4747 2009-09-22  Jack Howarth  <howarth@bromo.med.uc.edu>
4748
4749         PR middle-end/41260
4750         * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
4751         * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
4752         LIB_SPEC for darwin10 and later since it always uses the unwinder in
4753         libSystem which is derived from the gcc 4.2.1 unwinder.
4754
4755 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
4756
4757         PR middle-end/41357
4758         * varasm.c (default_encode_section_info): Copy TLS model into
4759         sym_ref flags regardless of backend support for TLS, for all
4760         model types except TLS_MODEL_EMULATED.
4761
4762 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
4763
4764         PR bootstrap/41404
4765         * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
4766         we can handle it correctly.
4767
4768 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
4769
4770         * doc/install.texi (os2): Remove section.
4771
4772 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
4773
4774         * doc/standards.texi (Objective-C): Adjust two URLs.
4775
4776 2009-09-21  Giuseppe Scrivano <gscrivano@gnu.org>
4777
4778         * tree-tailcall.c (process_assignment): Don't check if a
4779         multiplication or an addition are already present.
4780         (find_tail_calls): Combine multiple additions and multiplications.
4781         (adjust_accumulator_values): Emit accumulators.
4782
4783 2009-09-21  Kai Tietz  <kai.tietz@onevision.com>
4784
4785         * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
4786         xmm register restore.
4787
4788 2009-09-21  Jan Hubicka  <jh@suse.cz>
4789
4790         * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
4791         (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
4792         restore at the end.
4793
4794 2009-09-21  Eric Botcazou  <ebotcazou@adacore.com>
4795
4796         * stor-layout.c (layout_type): Remove obsolete code.
4797
4798 2009-09-20  H.J. Lu  <hongjiu.lu@intel.com>
4799
4800         PR middle-end/41395
4801         * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
4802
4803 2009-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4804
4805         PR middle-end/30789
4806         * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
4807         (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
4808         (fold_builtin_2, do_mpc_arg1): Update accordingly.
4809         * fold-const.c (const_binop): Likewise.
4810         * real.h (do_mpc_arg2): Update prototype.
4811
4812 2009-09-20  Jan Hubicka  <jh@suse.cz>
4813
4814         * dwarf2out.c (add_const_value_attribute): Return true if successful.
4815         (add_location_or_const_value_attribute): Rewrite using
4816         loc_list_from_tree.
4817         (tree_add_const_value_attribute): Return true if successful.
4818         (tree_add_const_value_attribute_for_decl): Likewise.
4819
4820         * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
4821         (loc_descriptor): ... here;
4822         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
4823         (cst_pool_loc_descr): Break out from ...; do not reffer constant
4824         pool items that was not marked for output.
4825         (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
4826         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
4827         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
4828         handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
4829         IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
4830         CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
4831         DW_OP_stack_value to get address of items that are not available
4832         as addresses.
4833         (dw_loc_list): Handle single element lists correctly.
4834
4835 2009-09-20  Kai Tietz  <kai.tietz@onevision.com>
4836             Pascal Obry  <obry@adacore.com>
4837
4838         * unwind-dw2-fde.c (classify_object_over_fdes):
4839         Cast the constant 1 to _Unwind_Ptr.
4840         (add_fdes): Likewise.
4841         (linear_search_fdes): Likewise.
4842
4843 2009-09-20  Eric Botcazou  <ebotcazou@adacore.com>
4844
4845         * stor-layout.c (set_sizetype): Avoid useless type copy.
4846
4847 2009-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
4848
4849         * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
4850         feature check.
4851         (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
4852         * configure, config.in: Regenerate.
4853         * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
4854         DW_EH_PE_absptr.
4855         * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
4856         (ASM_PREFERRED_EH_DATA_FORMAT): Define.  Use MIPS_EH_INDIRECT
4857         for global data if the output could be used in a shared library.
4858         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
4859         to 0 if TARGET_WRITABLE_EH_FRAME.
4860
4861 2009-09-20  Paolo Bonzini <bonzini@gnu.org>
4862
4863         PR rtl-optimization/39886
4864         * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
4865         just when insn is equal to BB_END (bb).
4866
4867 2009-09-19  Adam Nemet  <anemet@caviumnetworks.com>
4868
4869         * config/mips/mips.opt (mrelax-pic-calls): New option.
4870         * config/mips/mips.c (mips_strip_unspec_address): Move it up in
4871         the file.
4872         (mips_unspec_call): Change "unspec_call" expander into this.
4873         (mips_strip_unspec_call): New function.
4874         (mips_got_load): Call mips_unspec_call instead of
4875         gen_unspec_call<mode>.
4876         (mips16_build_call_stub): Fix comment for fp_code.  Adjust call to
4877         MIPS_CALL.
4878         (mips_cfg_in_reorg): New function.
4879         (mips16_lay_out_constants): Use it to decide whether to call
4880         CFG-aware insn splitting.
4881         (r10k_insert_cache_barriers): Move CFG set-up code from here to
4882         mips_reorg.  Move DF set-up code from here ...
4883         (mips_df_reorg): ... to here.  Call r10k_insert_cache_barriers
4884         from here.
4885         (mips_reorg): Call mips_df_reorg instead of
4886         r10k_insert_cache_barriers.  Move CFG set-up code here from
4887         r10k_insert_cache_barriers.
4888         (mips_call_expr_from_insn): New function.
4889         (mips_pic_call_symbol_from_set): Likewise.
4890         (mips_find_pic_call_symbol): Likewise.
4891         (mips_annotate_pic_call_expr): Likewise.
4892         (mips_get_pic_call_symbol): Likewise.
4893         (mips_annotate_pic_calls): Likewise.
4894         (mips_override_options): Disable -mrelax-pic-calls unless PIC
4895         calls are used.
4896         (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
4897         * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
4898         * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
4899         directive.
4900         * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
4901         (unspec_call<mode>): Remove it.
4902         (sibcall_internal, sibcall_value_internal,
4903         sibcall_value_multiple_internal, call_internal, call_split,
4904         call_value_internal, call_value_split,
4905         call_value_multiple_internal, call_value_multiple_split): Pass
4906         SIZE_OPNO to MIPS_CALL.
4907         (call_internal_direct, call_direct_split,
4908         call_value_internal_direct, call_value_direct_split): Pass -1 as
4909         SIZE_OPNO to MIPS_CALL.
4910         * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
4911         * configure: Regenerate.
4912         * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
4913         and -mno-relax-pic-calls.
4914         (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
4915
4916 2009-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4917
4918         PR bootstrap/35619
4919         * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
4920         in the directory this rule is called from, rather than the
4921         toplevel 'gcc' directory, to fix in-tree build.
4922
4923 2009-09-19  Chris Demetriou  <cgd@google.com>
4924
4925         PR preprocessor/28435:
4926         * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
4927         to cpplib that the preprocessor output is needed.
4928
4929 2009-09-19  Jakub Jelinek  <jakub@redhat.com>
4930
4931         * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
4932         *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
4933         *return_and_restore_fpregs_<mode>,
4934         *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
4935
4936         PR bootstrap/41397
4937         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
4938         instead of assuming it has always a REG inside of it.
4939
4940 2009-09-18  Gerald Pfeifer  <gerald@pfeifer.com>
4941
4942         * config/freebsd.h: Update comment on types.
4943         (WINT_TYPE): Define.
4944
4945 2009-09-18  Jason Merrill  <jason@redhat.com>
4946
4947         * c.opt: Add -fno-deduce-init-list.
4948
4949 2009-09-18  Neil Vachharajani  <nvachhar@google.com>
4950
4951         * value-prof.c (interesting_stringop_to_profile_p): Added output
4952         argument to indicate which parameter is the size parameter.
4953         * value-prof.c (gimple_stringop_fixed_value): Use
4954         INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
4955         * value-prof.c (gimple_stringops_transform): Update call sites to
4956         INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
4957
4958 2009-09-18  Uros Bizjak  <ubizjak@gmail.com>
4959
4960         PR target/38288
4961         From David Binderman <dcb314@hotmail.com>:
4962         * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
4963         local variable f.  Remove stale comments.
4964         (ix86_compute_frame_layout): Remove useless local variable total_size.
4965         Remove #if 0'd code.
4966         (legitimate_address_p): Remove useless local variables
4967         reason_rtx and reason.
4968         (ix86_split_copysign_const): Remove useless local variable op1.
4969         (scale_counter): Remove useless local variable piece_size_mask.
4970
4971 2009-09-18  Jakub Jelinek  <jakub@redhat.com>
4972
4973         * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
4974         output decl.
4975
4976 2009-09-17  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
4977
4978         PR target/40913
4979         * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
4980
4981 2009-09-17  Jakub Jelinek  <jakub@redhat.com>
4982
4983         * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
4984         TYPE_STUB_DECL.
4985
4986 2009-09-17  Alexandre Oliva  <aoliva@redhat.com>
4987
4988         * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
4989         DW_OP_implicit_value even without dwarf_version 4.
4990
4991 2009-09-17  Jan Hubicka  <jh@suse.cz>
4992
4993         * dwarf2out.c: Include tree-pass.h and gimple.h.
4994         (loc_list_plus_const): New function.
4995         (loc_descriptor_from_tree_1): Rename to ...
4996         (loc_descriptor_from_tree): ... remove original.
4997         (loc_list_from_tree): New function.
4998         (add_AT_location_description): Accept location list.
4999         (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
5000         (concatn_mem_loc_descriptor): Remove.
5001         (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
5002         returning NULL.
5003         (secname_for_decl): Move up.
5004         (hidden_reference_p): New function; break out from ...
5005         (loc_by_refernece): ... here; move up.
5006         (dw_loc_list): New function.
5007         (single_element_loc_list): New function.
5008         (single_element_loc_list_p): New function.
5009         (add_loc_descr_to_each): New function.
5010         (add_loc_list): New function.
5011         (loc_descr_from_tree): Make wraper of loc_list_from_tree.
5012         (loc_list_from_tree): Reroganized from loc_descr_from_tree;
5013         add diagnostics why expansion failed.
5014         (add_location_or_const_value_attribute): Support location lists.
5015         (add_bound_info): Likewise.
5016         (descr_info_loc): Update call of loc_descriptor_from_tree.
5017         (gen_variable_die): Work on location lists.
5018         * final.c (pass_final): Add dump file.
5019         * Makefile.in (dwarf2out.o): Add new dependencies.
5020
5021 2009-09-17  Janis Johnson  <janis187@us.ibm.com>
5022
5023         PR c/41049
5024         * real.c decimal_from_integer, decimal_integer_string): New.
5025         (real_from_integer): Use them as special case for decimal float.
5026         * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
5027         (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
5028         Do not append zero after the decimal point in string to convert.
5029
5030 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
5031
5032         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
5033         for ARRAY_REFs.  Use array_ref_{low,up}_bound to determine bounds.
5034
5035 2009-09-17  Martin Jambor  <mjambor@suse.cz>
5036
5037         * common.opt (fipa-sra): New switch.
5038         * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
5039         * timevar.def (TV_IPA_SRA): New timevar.
5040         * params.def (ipa-sra-ptr-growth-factor): New parameter.
5041         * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
5042         * tree-sra.c: Include cgraph.c.
5043         (enum sra_mode): Added SRA_MODE_EARLY_IPA.
5044         (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
5045         and grp_not_necessarilly_dereferenced.
5046         (func_param_count): New variable.
5047         (encountered_apply_args): New variable.
5048         (bb_dereferences): New variable.
5049         (final_bbs): New variable.
5050         (no_accesses_representant): New variable.
5051         (no_accesses_p): New function.
5052         (dump_access): Dump the new fields.
5053         (sra_initialize): Set encountered_apply_args to false.
5054         (get_ssa_base_param): New function.
5055         (mark_parm_dereference): New function.
5056         (create_access): Caring for INIDRECT_REFs and different handling of
5057         varialble length accesses in early IPA SRA.  Store the stmt - a new
5058         parameter - to the new access.
5059         (build_access_from_expr_1): New parameter stmt, passed to
5060         create_access.  Handle INDIRECT_REFs.
5061         (build_access_from_expr): Pass the current statement to
5062         build_access_from_expr_1.
5063         (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
5064         passes.
5065         (build_accesses_from_assign): Pass the current statement to
5066         build_access_from_expr_1.  Do not create assign links in IPA-SRA.
5067         (scan_function): Call handle_ssa_defs on phi nodes.  Set bits in
5068         final_bbs when necessary.  Check for calls to __builtin_apply_args.
5069         Fixup EH info if anythng was changed.
5070         (is_unused_scalar_param): New function.
5071         (ptr_parm_has_direct_uses): New function.
5072         (find_param_candidates): New function.
5073         (mark_maybe_modified): New function.
5074         (analyze_modified_params): New function.
5075         (propagate_dereference_distances): New function.
5076         (dump_dereferences_table): New function.
5077         (analyze_caller_dereference_legality): New function.
5078         (unmodified_by_ref_scalar_representative): New function.
5079         (splice_param_accesses): New function.
5080         (decide_one_param_reduction): New function.
5081         (enum ipa_splicing_result): New type.
5082         (splice_all_param_accesses): New function.
5083         (get_param_index): New function.
5084         (turn_representatives_into_adjustments): New function.
5085         (analyze_all_param_acesses): New function.
5086         (get_replaced_param_substitute): New function.
5087         (get_adjustment_for_base): New function.
5088         (replace_removed_params_ssa_names): New function.
5089         (sra_ipa_reset_debug_stmts): New function.
5090         (sra_ipa_modify_expr): New function.
5091         (sra_ipa_modify_assign): New function.
5092         (convert_callers): New function.
5093         (modify_function): New function.
5094         (ipa_sra_preliminary_function_checks): New function.
5095         (ipa_early_sra): New function.
5096         (ipa_early_sra_gate): New function.
5097         (pass_early_ipa_sra): New variable.
5098         * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
5099
5100 2009-09-17  Michael Matz  <matz@suse.de>
5101
5102         PR middle-end/41347
5103         * tree.c (build_type_attribute_qual_variant): Export.
5104         * tree.h (build_type_attribute_qual_variant): Declare.
5105         * tree-inline.c (remap_type_1): Use it to build variants with
5106         the original qualifiers and attributes.
5107
5108 2009-09-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5109
5110         * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
5111         without a fallthrough edge.
5112
5113 2009-09-16  DJ Delorie  <dj@redhat.com>
5114
5115         * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
5116         chip and ignore the "fast_interrupt" attribute if so.
5117
5118 2009-09-16  Richard Henderson  <rth@redhat.com>
5119
5120         PR middle-end/41360
5121         * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
5122         barrier fix.
5123
5124 2009-09-16  Richard Henderson  <rth@redhat.com>
5125
5126         PR target/41246
5127         * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
5128         is set only if DECL_NO_STATIC_CHAIN is unset.
5129         * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
5130         (FOR_EACH_NEST_INFO): New.
5131         (walk_all_functions): Use it.
5132         (finalize_nesting_tree): Likewise.
5133         (unnest_nesting_tree): Likewise.
5134         (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
5135         (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
5136         (convert_gimple_call): Early out if gimple_call_chain already set.
5137         (convert_all_function_calls): Iterate until no new functions
5138         require a static chain.
5139         (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
5140         when building a trampoline.  Use dump_function_to_file instead
5141         of dump_function.
5142         (lower_nested_functions): Open dump_file.  Validate that decls
5143         that have DECL_NO_STATIC_CHAIN from the front end don't have that
5144         bit reset by this pass.
5145
5146 2009-09-16  Michael Matz  <matz@suse.de>
5147
5148         PR fortran/41212
5149         * tree.h (struct tree_decl_common): Add decl_restricted_flag,
5150         shorten decl_common_unused.
5151         (DECL_RESTRICTED_P): New accessor.
5152         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
5153         to disambiguate marked decls and restrict pointers.
5154
5155 2009-09-16  Richard Henderson  <rth@redhat.com>
5156
5157         PR middle-end/41360
5158         * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
5159
5160 2009-09-16  Jakub Jelinek  <jakub@redhat.com>
5161
5162         * integrate.c (set_block_abstract_flags): Call
5163         set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
5164
5165 2009-09-16  Richard Guenther  <rguenther@suse.de>
5166
5167         PR middle-end/34011
5168         * tree-flow-inline.h (may_be_aliased): Compute readonly variables
5169         as non-aliased.
5170
5171 2009-09-16  DJ Delorie  <dj@redhat.com>
5172             Kaz Kojima  <kkojima@gcc.gnu.org>
5173
5174         * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
5175         (sh_expand_prologue): Update calls to output_stack_adjust.
5176         (sh_expand_epilogue): Likewise.
5177
5178 2009-09-15  Adam Nemet  <anemet@caviumnetworks.com>
5179
5180         PR bootstrap/41349
5181         * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
5182         trying to limit the extent of searches in the insn stream.
5183
5184 2009-09-15  Nathan Froyd  <froydnj@codesourcery.com>
5185             Jakub Jelinek  <jakub@redhat.com>
5186
5187         PR target/41175
5188         PR target/40677
5189         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
5190         problem.
5191         (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
5192         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
5193         (rs6000_savres_strategy): Always save FP registers inline if the
5194         target doesn't support hardware double-precision.  Set the above
5195         bits in return value when needed.
5196         (rs6000_savres_routine_sym): Fix computation for cache selector.
5197         Mark the generated symbol as a function.  Rename exitp argument to
5198         lr.  Move code for determining the name of the symbol...
5199         (rs6000_savres_routine_name): ...here.  New function.  Add cases for
5200         getting the names right on AIX and 64-bit Linux.
5201         (savres_routine_name): New variable.
5202         (rs6000_make_savres_rtx): Rename exitp argument to lr.  Don't assert
5203         lr isn't set when savep.  Use r12 resp. r1 instead of r11 depending
5204         on what the target routine uses as a base register.  If savep && lr
5205         describe saving of r0 into memory slot.
5206         (rs6000_emit_prologue): Correct use of call_used_regs.  Fix out of
5207         line calls for AIX ABI.
5208         (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
5209         determine FP save/restore functions.
5210         (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
5211         frame_reg_rtx != sp_reg_rtx.  Use gen_add3_insn instead of
5212         gen_addsi3.
5213         (rs6000_emit_epilogue): Adjust computation of restore_lr.
5214         Duplicate restoration of LR and execute the appropriate one
5215         depending on whether GPRs are being restored inline.  Set r11 from
5216         offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
5217         r11, adjust sp_offset.  Use gen_add3_insn instead of gen_addsi3.
5218         Fix out of line calls for AIX ABI.
5219         * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
5220         New insn.
5221         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
5222         register 11.
5223         (*restore_gpregs_spe): Likewise.
5224         (*return_and_restore_gpregs_spe): Likewise.
5225         * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
5226         Define to empty string unconditionally.
5227         * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
5228         Define to empty string unconditionally.
5229         (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
5230         !TARGET_64BIT.
5231
5232 2009-09-15  Jan Hubicka  <jh@suse.cz>
5233
5234         * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
5235         * params.def (inline-insns-auto): Likewise.
5236
5237 2009-09-15  Martin Jambor  <mjambor@suse.cz>
5238
5239         * ipa-inline.c (estimate_function_body_sizes): Dump info about
5240         individual statements only at TDF_DETAILS dump level.  Format
5241         source for 80 characters per line.
5242
5243 2009-09-15  Christian Bruel  <christian.bruel@st.com>
5244
5245         * regrename.c (do_replace): Update REG_DEAD notes.
5246
5247 2009-09-15  Revital Eres  <eres@il.ibm.com>
5248
5249         * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
5250         * targhooks.c (default_builtin_support_vector_misalignment):
5251         New builtin function.
5252         * targhooks.h (default_builtin_support_vector_misalignment):
5253         Declare.
5254         * target.h (builtin_support_vector_misalignment):
5255         New field in struct gcc_target.
5256         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
5257         new builtin function.
5258         * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
5259         Define.
5260         * config/rs6000/rs6000.c
5261         (rs6000_builtin_support_vector_misalignment): New function.
5262         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
5263
5264 2009-09-15  Jie Zhang  <jie.zhang@analog.com>
5265
5266         * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
5267         instead of INSN_P.
5268         (bfin_optimize_loop): Likewise.
5269         (bfin_gen_bundles): Likewise.
5270         (workaround_speculation): Likewise.
5271         (find_load): Return NULL_RTX for debug_insn.
5272
5273 2009-09-15  Uros Bizjak  <ubizjak@gmail.com>
5274
5275         * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
5276         (sminsf3): Ditto.
5277
5278 2009-09-14  DJ Delorie  <dj@redhat.com>
5279
5280         * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
5281         * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
5282         VLIW mode.
5283
5284 2009-09-14  Richard Henderson  <rth@redhat.com>
5285             Jakub Jelinek  <jakub@redhat.com>
5286
5287         * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
5288         * cfgbuild.c (make_edges): Handle asm goto.
5289         * cfglayout.c (fixup_reorder_chain): Likewise.
5290         * cfgrtl.c (patch_jump_insn): Likewise.
5291         * gimple-pretty-print.c (dump_gimple_asm): Likewise.
5292         * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
5293         (gimple_build_asm_vec): Add and use labels parameter.
5294         (gimple_build_asm): Remove.
5295         (walk_gimple_asm): Walk labels too.
5296         * gimple.def (GIMPLE_ASM): Update docs.
5297         * gimple.h: Update decls.
5298         (struct gimple_statement_asm): Change nc to use unsigned char;
5299         add nl member.
5300         (gimple_asm_nlabels): New.
5301         (gimple_asm_label_op, gimple_asm_set_label_op): New.
5302         * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
5303         into gimple_build_asm_vec.
5304         * jump.c (mark_jump_label_asm): New.
5305         (mark_jump_label): Use it.
5306         (redirect_jump_1): Handle asm goto.
5307         (invert_jump_1): Soft fail if X is null.
5308         * recog.c (extract_asm_operands): New.
5309         (asm_noperands): Use it; handle asm labels.
5310         (decode_asm_operands): Use extract_asm_operands.
5311         (asm_operand_ok): Properly handle empty string.
5312         * reg-stack.c (get_asm_operands_in_out): Rename from
5313         get_asm_operand_n_inputs; use extract_asm_operands; return both
5314         inputs and outputs by reference; update all callers.
5315         * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
5316         * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
5317         (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
5318         (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
5319         (extract_asm_operands): Declare.
5320         * stmt.c (expand_asm_operands): Add and use labels parameter.
5321         (check_unique_operand_names): Likewise.
5322         (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
5323         (expand_asm_stmt): Handle asm labels.
5324         * tree-cfg.c (make_gimple_asm_edges): New.
5325         (make_edges): Use it.
5326         (cleanup_dead_labels): Handle asm labels.
5327         (is_ctrl_altering_stmt): Likewise.
5328         (gimple_redirect_edge_and_branch): Likewise.
5329         * tree.def (ASM_EXPR): Add 5th operand.
5330         * tree.h (ASM_LABELS): New.
5331         (resolve_asm_operand_names): Update decl.
5332
5333         * c-parser.c (c_parser_asm_statement): Parse asm goto.
5334         (c_parser_asm_goto_operands): New.
5335         * c-tree.h (build_asm_expr): Update decl.
5336         * c-typeck.c (build_asm_expr): Add and use labels parameter.
5337         * doc/extend.texi: Document asm goto.
5338
5339 2009-09-14  Richard Henderson  <rth@redhat.com>
5340
5341         * except.h: Update declarations.
5342         (struct pointer_map_t): Forward declare.
5343         (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
5344         (struct eh_landing_pad_d, eh_landing_pad): New.
5345         (struct eh_catch_d, eh_catch): New.
5346         (struct eh_region_d): Remove next_region_sharing_label, aka,
5347         label, tree_label, landing_pad, post_landing_pad, resume,
5348         may_contain_throw.  Rename region_number to index.  Remove
5349         u.eh_catch, u.eh_throw.  Rename u.eh_try.eh_catch to first_catch.
5350         Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
5351         (VEC(eh_landing_pad,gc)): New.
5352         (struct eh_status): Remove last_region_number.  Add lp_array,
5353         throw_stmt_table, ttype_data, ehspec_data.
5354         (ehr_next, FOR_ALL_EH_REGION_AT): New.
5355         (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
5356         * except.c (lang_protect_cleanup_actions): Return tree.
5357         (struct ehl_map_entry): Remove.
5358         (init_eh_for_function): Push zero entries for region and lp_array.
5359         (gen_eh_region): Add to region_array immediately.
5360         (gen_eh_region_catch): Operate on eh_catch objects.
5361         (gen_eh_landing_pad): New.
5362         (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
5363         (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
5364         (get_eh_region_from_number, get_eh_region_from_number_fn): New.
5365         (get_eh_landing_pad_from_number_fn): New.
5366         (get_eh_landing_pad_from_number): New.
5367         (get_eh_region_from_lp_number_fn): New.
5368         (get_eh_region_from_lp_number): New.
5369         (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
5370         (get_exception_pointer, get_exception_filter): Remove.
5371         (collect_eh_region_array, can_be_reached_by_runtime): Remove.
5372         (current_function_has_exception_handlers): Simplify.
5373         (bring_to_root, eh_region_replaceable_by_p): Remove.
5374         (replace_region, hash_type_list, hash_eh_region): Remove.
5375         (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
5376         (label_to_region_map, num_eh_regions): Remove.
5377         (get_next_region_sharing_label, must_not_throw_labels): Remove.
5378         (find_exception_handler_labels): Remove.
5379         (duplicate_eh_regions_0, find_prev_try): Remove.
5380         (struct duplicate_eh_regions_data): New.
5381         (duplicate_eh_regions_1): Rewrite.
5382         (duplicate_eh_regions): Return a pointer map instead of an
5383         integer offset.
5384         (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
5385         (redirect_eh_edge_to_label): Remove.
5386         (eh_region_outermost): Rewrite using eh_region pointers
5387         instead of integers.
5388         (add_ttypes_entry): Update for ttype_data move to eh_status.
5389         (add_ehspec_entry): Rewrite with VEC instead of varray.
5390         (assign_filter_values): Likewise.  Export.
5391         (build_post_landing_pads, connect_post_landing_pads): Remove.
5392         (dw2_build_landing_pads): Rewrite to use lp_array.
5393         (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
5394         (sjlj_assign_call_site_values): Rewrite to use lp_array.
5395         (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
5396         (sjlj_mark_call_sites): Update for landing pad numbers.
5397         (finish_eh_generation): Rewrite.
5398         (gate_handle_eh): Do nothing for no eh tree.
5399         (pass_rtl_eh): Move up near finish_eh_generation.
5400         (remove_eh_landing_pad): New.
5401         (remove_eh_handler): Export.
5402         (remove_eh_region, remove_eh_handler_and_replace): Remove.
5403         (for_each_eh_label): Rewrite to use lp_array.
5404         (make_reg_eh_region_note): New.
5405         (make_reg_eh_region_note_nothrow_nononlocal): New.
5406         (insn_could_throw_p): New.
5407         (copy_reg_eh_region_note_forward): New.
5408         (copy_reg_eh_region_note_backward): New.
5409         (check_handled, add_reachable_handler): Remove.
5410         (reachable_next_level, foreach_reachable_handler): Remove.
5411         (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
5412         (get_eh_region_and_lp_from_rtx): New.
5413         (get_eh_region_from_rtx): New.
5414         (can_throw_internal_1, can_throw_external_1): Remove.
5415         (can_throw_internal): Use get_eh_region_from_rtx.
5416         (can_throw_external): Use get_eh_region_and_lp_from_rtx.
5417         (insn_nothrow_p, can_nonlocal_goto): New.
5418         (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
5419         (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
5420         (add_action_record): Use VEC not varray.
5421         (collect_one_action_chain): Update for eh_region changes.
5422         (convert_to_eh_region_ranges): Make static.  Use VEC not varray.
5423         Use get_eh_region_and_lp_from_rtx.
5424         (gate_convert_to_eh_region_ranges): New.
5425         (pass_convert_to_eh_region_ranges): Use it.
5426         (push_uleb128, push_sleb128): Use VEC not varray.
5427         (output_one_function_exception_table): Likewise.
5428         (dump_eh_tree): Update for eh_region changes.
5429         (verify_eh_tree): Likewise.
5430         (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
5431         * tree-eh.c: Include target.h.
5432         (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
5433         Don't disallow GIMPLE_RESX; adjust argument check.
5434         (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
5435         (record_stmt_eh_region): Update for landing pad numbers;
5436         generate a landing pad if necessary.
5437         (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
5438         (remove_stmt_from_eh_lp_fn): Similarly.
5439         (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
5440         Update for lp numbers; don't special case missing throw_stmt_table.
5441         (lookup_expr_eh_lp): Similarly.
5442         (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
5443         (eh_seq, eh_region_may_contain_throw): New.
5444         (struct leh_state): Add ehp_region.
5445         (struct leh_tf_state): Remove eh_label.
5446         (emit_post_landing_pad): New.
5447         (emit_resx, emit_eh_dispatch): New.
5448         (note_eh_region_may_contain_throw): New.
5449         (frob_into_branch_around): Take eh_region not eh label;
5450         emit eh code into eh_seq.
5451         (honor_protect_cleanup_actions): Early exit for no actions.  Don't
5452         handle EXC_PTR_EXPR, FILTER_EXPR.  Use gimple_build_eh_must_not_throw,
5453         lower_eh_must_not_throw.  Emit code to eh_seq.
5454         (lower_try_finally_nofallthru): Emit eh code to eh_seq.
5455         (lower_try_finally_onedest): Likewise.
5456         (lower_try_finally_copy): Likewise.
5457         (lower_try_finally_switch): Likewise.
5458         (lower_try_finally): Initialize ehp_region.
5459         (lower_catch): Update for eh_catch objects.
5460         (lower_eh_filter): Don't handle must_not_throw.
5461         (lower_eh_must_not_throw): New.
5462         (lower_cleanup): Don't set eh_label.
5463         (lower_eh_constructs_2): Resolve eh builtins.
5464         Handle GIMPLE_EH_MUST_NOT_THROW.
5465         (lower_eh_constructs): Initialize eh_region_may_contain_throw.
5466         Add eh_seq to the end of the function body.
5467         (make_eh_dispatch_edges): New.
5468         (make_eh_edge): Remove.
5469         (make_eh_edges): Simplify for landing pads.
5470         (redirect_eh_edge_1): New.
5471         (redirect_eh_edge): Use it.
5472         (redirect_eh_dispatch_edge): New.
5473         (stmt_could_throw_p): Use a switch.  Allow RESX.
5474         (stmt_can_throw_external): Use lookup_stmt_eh_lp.
5475         (stmt_can_throw_internal): Likewise.
5476         (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
5477         (maybe_clean_or_replace_eh_stmt): Update for landing pads.
5478         (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
5479         (gate_refactor_eh): New.
5480         (pass_refactor_eh): Use it.
5481         (lower_resx, execute_lower_resx, pass_lower_resx): New.
5482         (lower_eh_dispatch, execute_lower_eh_dispatch): New.
5483         (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
5484         (remove_unreachable_handlers): Rename from
5485         tree_remove_unreachable_handlers; rewrite for landing pads;
5486         call remove_eh_handler directly.
5487         (remove_unreachable_handlers_no_lp): New.
5488         (unsplit_eh, unsplit_all_eh): New.
5489         (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
5490         (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
5491         (cleanup_empty_eh_unsplit): New.
5492         (cleanup_empty_eh): Rewrite.
5493         (cleanup_all_empty_eh): New.
5494         (execute_cleanup_eh): Rename from cleanup_eh.  Remove unreachable
5495         handlers first.  Use unsplit_all_eh, cleanup_all_empty_eh.
5496         (gate_cleanup_eh): New.
5497         (pass_cleanup_eh): Use it.
5498         (verify_eh_edges): Move later in file.  Expect one EH edge.
5499         (verify_eh_dispatch_edge): New.
5500
5501         * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
5502         (gtype-desc.o): Add TARGET_H.
5503         (tree.o): Use EXCEPT_H, not except.h.
5504         (cfgbuild.o): Add EXPR_H.
5505         (GTFILES): Add vecprim.h.
5506         * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
5507         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
5508         * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
5509         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
5510         * calls.c (emit_call_1): Use make_reg_eh_region_note.
5511         * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
5512         calls to can_throw_internal.
5513         (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
5514         (make_edges): Don't handle RESX; use can_nonlocal_goto.
5515         * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
5516         (expand_gimple_stmt): Use make_reg_eh_region_note.
5517         (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
5518         (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
5519         or find_exception_handler_labels.
5520         * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX.  Assert
5521         there is exacly one EH edge.  Use can_nonlocal_goto and
5522         can_throw_internal.
5523         * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
5524         (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
5525         * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
5526         * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
5527         * dce.c (deletable_insn_p_1): Don't test may_trap_p.
5528         (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
5529         * dse.c (scan_insn): Use insn_could_throw_p.
5530         * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
5531         * expr.c (expand_expr_real): Use make_reg_eh_region_note.
5532         (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
5533         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
5534         EXC_PTR_EXPR or FILTER_EXPR.
5535         (tree_expr_nonzero_warnv_p): Likewise.
5536         * function.h: Include vecprim.h, not varray.h
5537         (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
5538         move ttype_data and ehspec_data members to struct eh_status; change
5539         action_record_data member to a VEC.
5540         * gcse.c (hash_scan_set): Use can_throw_internal.
5541         * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
5542         * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
5543         * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
5544         (block_may_fallthru): Don't handle RESX_EXPR.
5545         * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
5546         (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
5547         (dump_gimple_stmt): Dump landing pad information with TDF_EH;
5548         handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
5549         * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
5550         GIMPLE_EH_DISPATCH, GIMPLE_RESX.
5551         (gimple_size): Likewise.
5552         (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
5553         (gimple_build_resx): Use gimple_build_with_ops.
5554         (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
5555         (is_gimple_val): Likewise.
5556         (is_gimple_stmt): Remove RESX_EXPR.
5557         * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
5558         (GIMPLE_RESX): Reorder with other EH constructs.
5559         * gimple.h (struct gimple_statement_eh_mnt): New.
5560         (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
5561         (gimple_eh_filter_must_not_throw): Remove.
5562         (gimple_eh_filter_set_must_not_throw): Remove.
5563         (gimple_eh_must_not_throw_fndecl): New.
5564         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
5565         (is_gimple_resx): New.
5566         * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
5567         Don't copy EH_FILTER_MUST_NOT_THROW.
5568         * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
5569         * ipa-inline.c (estimate_function_body_sizes): Don't try to
5570         handle must_not_throw_labels specially.
5571         * ipa-pure-const.c (check_call): Update debug statement for LP.
5572         * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
5573         * ipa-utils.c (get_base_var): Likewise.
5574         * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
5575         * lower-subreg.c (move_eh_region_note): Remove.
5576         (resolve_simple_move): Use copy_reg_eh_region_note_forward.
5577         * omp-low.c (new_omp_context): Update for eh_lp_nr.
5578         (create_task_copyfn): Likewise.
5579         (maybe_catch_exception): Use gimple_build_eh_filter.
5580         * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
5581         REG_EH_REGION.  Use make_reg_eh_region_note_nothrow_nononlocal.
5582         * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
5583         and pass_lower_resx.
5584         * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
5585         * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
5586         can_throw_internal, can_nonlocal_goto.
5587         * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
5588         copy_reg_eh_region_note_forward.
5589         (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
5590         (emit_output_reload_insns): Likewise.
5591         (copy_eh_notes): Remove.
5592         * rtl.def (RESX): Remove.
5593         * rtl.h: Update declarations.
5594         * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
5595         * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
5596         (update_eh_label): Remove.
5597         (cleanup_dead_labels_eh): New.
5598         (cleanup_deal_labels): Use it instead of update_eh_label.
5599         (gimple_merge_blocks): Update landing pad data structure when
5600         removing a landing pad label.
5601         (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
5602         test; handle GIMPLE_EH_MUST_NOT_THROW.
5603         (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
5604         (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
5605         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
5606         (verify_stmt): Likewise.  Verify landing pads.
5607         (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
5608         (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
5609         (struct move_stmt_d): Add eh_map.
5610         (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
5611         (move_stmt_r): Remap eh region numbers in builtin calls,
5612         resx and eh_dispatch.
5613         (move_block_to_fn): Remove eh_offset parameter.  Use
5614         maybe_duplicate_eh_stmt_fn.
5615         (find_outermost_region_in_block): Operate on eh_region pointers
5616         instead of region numbers.
5617         (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
5618         duplicate_eh_regions.
5619         * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
5620         test earlier.  Disallow EH landing pads.
5621         * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
5622         * tree-flow.h: Update declarations.
5623         (struct tree_ann_common_d): Replace rn with lp_nr.
5624         * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
5625         (remap_eh_region_nr, remap_eh_region_tree_nr): New.
5626         (remap_gimple_stmt): Remap eh region numbers in builtin calls,
5627         resx and eh_dispatch.
5628         (copy_bb): Use maybe_duplicate_eh_stmt_fn.
5629         (copy_edges_for_bb): Use make_eh_dispatch_edges.
5630         (copy_cfg_body): Expect eh_map instead of eh_region_offset
5631         from duplicate_eh_regions.
5632         (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
5633         update RESX; handle EH_DISPATCH.
5634         (expand_call_inline): Set eh_lp_nr, not eh_region.
5635         (maybe_inline_call_in_expr): Likewise.
5636         * tree-inline.h (struct copy_body_data): Replace eh_region with
5637         eh_lp_nr, eh_region_offset with eh_map.
5638         * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
5639         * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
5640         * tree-pretty-print.c (dump_generic_node): Don't handle
5641         EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
5642         * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
5643         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
5644         EXC_PTR_EXPR, FILTER_EXPR.
5645         * tree-ssa-operands.c (get_expr_operands): Likewise.
5646         * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
5647         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5648         (ao_ref_init_from_vn_reference): Likewise.
5649         * tree-ssa-sink.c (statement_sink_location): Likewise.
5650         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
5651         (mark_virtual_phi_result_for_renaming): Export.  Tidy.
5652         * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
5653         EXC_PTR_EXPR, FILTER_EXPR.
5654         (is_exception_related): Remove.
5655         (compute_avail): Don't call it.
5656         * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
5657         * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
5658         (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
5659         (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
5660         Build EH builtins.
5661         (build_resx): Remove.
5662         * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
5663         * tree.h: Update declarations.
5664         (EH_FILTER_MUST_NOT_THROW): Remove.
5665         (struct tree_label_decl): Add eh_landing_pad_nr.
5666         (EH_LANDING_PAD_NR): New.
5667         * value-prof.c (gimple_ic): Tidy variable names.  Update for
5668         landing pad numbers.
5669         (gimple_stringop_fixed_value): Tidy variable names.  Assert
5670         that neither call stmt can throw.
5671         * vecprim.h (uchar): New.
5672         (VEC(uchar,heap), VEC(uchar,gc)): New.
5673
5674         * c-common.c (c_define_builtins): Update call to
5675         build_common_builtin_nodes.
5676         * c-parser.c (c_parse_file): Don't call
5677         default_init_unwind_resume_libfunc.
5678
5679 2009-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
5680
5681         * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
5682         (mips_cprestore_address_p): Likewise.
5683         (mips_save_gp_to_cprestore_slot): Likewise.
5684         (mips_restore_gp): Rename to...
5685         (mips_restore_gp_from_cprestore_slot): ...this.
5686         (mips_must_initialize_gp_p): Declare.
5687         (mips_emit_save_slot_move): Likewise.
5688         (mips_output_load_label): Return nothing.
5689         (mips_eh_uses): Declare.
5690         * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
5691         (TARGET_CPRESTORE_DIRECTIVE): New macro.
5692         (TARGET_ABSOLUTE_JUMPS): Likewise.
5693         (EH_USES): Likewise.
5694         (FIRST_PSEUDO_REGISTER): Update comment.
5695         (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
5696         (MIPS_CALL): ...here.
5697         (REGISTER_NAMES): Add $cprestore.
5698         * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
5699         Add load_label_length, has_inflexible_gp_insn_p,
5700         has_flexible_gp_insn_p, must_initialize_gp_p and
5701         must_restore_gp_when_clobbered_p.
5702         (mips_expand_call): Don't generate split instructions here.
5703         (mips_split_call): Update the call to mips_restore_gp after
5704         the above name change.
5705         (mips16_cfun_returns_in_fpr_p): Move earlier in file.
5706         (mips_find_gp_ref): New function.
5707         (mips_insn_has_inflexible_gp_ref_p): Likewise.
5708         (mips_cfun_has_inflexible_gp_ref_p): Likewise.
5709         (mips_insn_has_flexible_gp_ref_p): Likewise.
5710         (mips_cfun_has_flexible_gp_ref_p): Likewise.
5711         (mips_function_has_gp_insn): Delete.
5712         (mips_global_pointer): Drop the df_regs_ever_live_p check.
5713         Use the new functions above.  Only return INVALID_REGNUM
5714         for TARGET_ABSOLUTE_JUMPS.
5715         (mips_must_initialize_gp_p): New function.
5716         (mips_get_cprestore_base_and_offset): New function, extracted from...
5717         (mips_cprestore_slot): ...here.  Take a bool parameter.
5718         (mips_cfun_has_cprestore_slot_p): New function.
5719         (mips_cprestore_address_p): Likewise.
5720         (mips_save_gp_to_cprestore_slot): Likewise.
5721         (mips_restore_gp): Rename to...
5722         (mips_restore_gp_from_cprestore_slot): ...this.  Assert
5723         epilogue_completed.  Update the call to mips_cprestore_slot.
5724         Test cfun->machine->must_restore_gp_when_clobbered_p.
5725         (mips_direct_save_slot_move_p): New function.
5726         (mips_emit_save_slot_move): Likewise.
5727         (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
5728         of cfun->machine->global_pointer.
5729         (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
5730         (mips_save_reg): Use mips_emit_save_slot_move.
5731         (mips_expand_prologue): Set must_initialize_gp_p.
5732         Use mips_cfun_has_cprestore_slot_p.  Use gen_potential_cprestore
5733         for all cprestore saves.  Emit a use_cprestore instruction after
5734         setting up the cprestore slot.
5735         (mips_restore_reg): Use mips_emit_save_slot_move.
5736         (mips_process_load_label): New function.
5737         (mips_load_label_length): Likewise.
5738         (mips_output_load_label): Don't return asm: output it here instead.
5739         Use mips_process_load_label.
5740         (mips_adjust_insn_length): Adjust the length of branch instructions
5741         that have length MAX_PIC_BRANCH_LENGTH.
5742         (mips_output_conditional_branch): Update the call to
5743         mips_output_load_label.  Assume the branch target is OPERANDS[0]
5744         rather than OPERANDS[1].  Use MIPS_ABSOLUTE_JUMP for absolute jumps.
5745         (mips_output_order_conditional_branch): Swap the meaning of
5746         OPERANDS[0] and OPERANDS[1].
5747         (mips_variable_issue): Don't count ghost instructions.
5748         (mips_expand_ghost_gp_insns): New function.
5749         (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
5750         (mips_output_mi_thunk): Set must_initialize_gp_p.
5751         (mips_eh_uses): New function.
5752         * config/mips/predicates.md (cprestore_save_slot_operand)
5753         (cprestore_load_slot_operand): New predicates.
5754         * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
5755         (UNSPEC_MOVE_GP): Likewise.
5756         (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
5757         (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
5758         (CPRESTORE_SLOT_REGNUM): New register.
5759         (MAX_PIC_BRANCH_LENGTH): New constant.
5760         (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
5761         (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
5762         branches.  Fix commentary.
5763         (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
5764         Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
5765         Change type to "ghost".
5766         (loadgp_absolute_<mode>): Likewise.
5767         (loadgp_rtp_<mode>): Likewise.
5768         (copygp_mips16): Likewise.
5769         (loadgp_blockage): Remove redundant mode attribute.
5770         (potential_cprestore): New instruction.
5771         (cprestore): Turn into an unspec set.
5772         (use_cprestore): New instruction.
5773         (*branch_fp): Swap operands 0 and 1.  Remove redundant mode attribute.
5774         (*branch_fp_inverted): Likewise.
5775         (*branch_order<mode>): Likewise.
5776         (*branch_order<mode>_inverted): Likewise.
5777         (*branch_equality<mode>): Likewise.
5778         (*branch_equality<mode>_inverted): Likewise.
5779         (*branch_bit<bbv><mode>): Likewise.
5780         (*branch_bit<bbv><mode>_inverted): Likewise.
5781         (*branch_equality<mode>_mips16): Remove redundant mode.
5782         (jump): Turn into a define_expand.
5783         (*jump_absolute): New instruction.
5784         (*jump_pic): Likewise.
5785         (*jump_mips16): Rename previously-unnamed pattern.  Remove
5786         redundant mode attribute.
5787         (restore_gp): Split on epilogue_completed rather than
5788         reload_completed.  Change type to "ghost".
5789         (move_gp<mode>): New instruction.
5790         * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
5791         Remove redundant mode attribute.
5792         * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
5793         (bc1any4f, bc1any2t, bc1any2f): Likewise.
5794         (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
5795
5796 2009-09-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
5797
5798         PR target/41210
5799         * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
5800         are returned in the same register (vs34 or v2) that Altivec vector
5801         types are returned in.
5802         (rs6000_libcall_value): Ditto.
5803
5804         PR target/41331
5805         * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
5806         instead of explicit addsi3/adddi3 calls.
5807         (rs6000_split_multireg_move): Ditto.
5808         (rs6000_emit_allocate_stack): Ditto.
5809         (rs6000_emit_prologue): Ditto.
5810         (rs6000_output_mi_thunk): Ditto.
5811
5812         * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
5813         size is 64 bits if we can use 64-bit registers.
5814
5815 2009-09-14  Bernd Schmidt  <bernd.schmidt@analog.com>
5816
5817         * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
5818         symbols.
5819
5820         From Jie Zhang <jie.zhang@analog.com>:
5821         * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
5822         save FP and RETS with saveall attribute.
5823         (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
5824         with saveall attribute.
5825
5826         * config/bfin/bfin.c (bfin_expand_builtin,
5827         case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
5828         operands.
5829
5830         From Jie Zhang <jie.zhang@analog.com>:
5831         * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
5832         before use in two places.
5833         * config/bfin/bfin.md (AREG): Define mode iterator.
5834         (reload_in, reload_out): Use mode iterator AREG.
5835
5836 2009-09-14  Richard Guenther  <rguenther@suse.de>
5837
5838         PR middle-end/41350
5839         * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
5840         EH personality path.
5841
5842 2009-09-13  Richard Guenther  <rguenther@suse.de>
5843             Rafael Avila de Espindola  <espindola@google.com>
5844
5845         * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
5846         (LANG_HOOKS_EH_PERSONALITY): Likewise.
5847         (LANG_HOOKS_INITIALIZER): Adjust.
5848         (lhd_pass_through_t): Declare.
5849         * langhooks.h (struct lang_hooks): Add eh_runtime_type and
5850         eh_personality.
5851         * langhooks.c (lhd_pass_through_t): New function.
5852         * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
5853         dwarf2out_begin_prologue): Use personality from current_function_decl.
5854         * expr.h (get_personality_function): Declare.
5855         * expr.c (get_personality_function): New function.
5856         (build_personality_function): Likewise.
5857         * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
5858         (eh_personality_libfunc): Remove.
5859         * optabs.c (build_libfunc_function): New function split out from ...
5860         (init_one_libfunc): ... here.
5861         * tree.h (DECL_FUNCTION_PERSONALITY): New.
5862         (tree_function_decl): Add personality.
5863         (lhd_gcc_personality): Declare.
5864         (build_personality_function): Likewise.
5865         * tree.c (gcc_eh_personality_decl): New.
5866         (lhd_gcc_personality): New function.
5867         * except.h (lang_eh_runtime_type): Remove.
5868         (enum eh_personality_kind): New.
5869         (build_personality_function): Declare.
5870         (function_needs_eh_personality): Declare.
5871         * except.c (lang_eh_runtime_type): Remove.
5872         (function_needs_eh_personality): New function.
5873         (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
5874         (sjlj_emit_function_enter, output_function_exception_table):
5875         Use personality from current_function_decl.
5876         * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
5877         * tree-inline.c (tree_can_inline_p): Do not inline across different
5878         EH personalities.
5879         (expand_call_inline): Likewise.  Adjust the callers EH personality.
5880         (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
5881         * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
5882         * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
5883         (c-parser.o): Likewise
5884         * c-tree.h (c_eh_initialized_p): Remove.
5885         (c_maybe_initialize_eh): Likewise.
5886         * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
5887         (finish_decl): Don't call c_maybe_initialize_eh.
5888         (c_eh_initialized_p): Remove.
5889         (c_maybe_initialize_eh): Likewise.
5890         * c-parser.c (c_parser_omp_construct): Likewise.
5891         (c_parse_file): Initialize exception handling.
5892
5893 2009-09-13  Kai Tietz  <kai.tietz@onevision.com>
5894
5895         * config.gcc (tm_file): Remove i386/biarch32.h
5896         for i?86-w64-mingw* case.
5897         (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
5898         support.
5899         * config.host: Set for x64 mingw the option
5900         use_long_long_for_widest_fast_int to yes.
5901
5902 2009-09-13  Eric Botcazou  <ebotcazou@adacore.com>
5903
5904         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
5905         * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
5906         (dbxout_begin_function): Likewise.
5907         * final.c (dwarf2_debug_info_emitted_p): New predicate.
5908         (final_start_function): Do not emit debug info if DECL_IGNORED_P is
5909         set on the function.
5910         (final_end_function): Likewise.
5911         (final_scan_insn): Likewise.
5912         (rest_of_handle_final): Likewise.
5913         * varasm.c (assemble_start_function): Likewise.
5914         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5915
5916 2009-09-12  Jason Merrill  <jason@redhat.com>
5917
5918         * dbgcnt.c (dbg_cnt_process_single_pair): constify.
5919         * opts.c (common_handle_option): constify.
5920
5921 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
5922
5923         * doc/install.texi (avr): Remove obsolete reference site.
5924
5925 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
5926
5927         * doc/install.texi (Binaries): Adjust AIX link.
5928
5929 2009-09-12  Akim Demaille  <demaille@gostai.com>
5930
5931         * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
5932         Use an imperative sentence.
5933
5934 2009-09-11  Richard Henderson  <rth@redhat.com>
5935
5936         * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
5937         structure-name and has-tree-operands arguments; update all entries.
5938         * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
5939         update all entries.
5940         * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
5941         (gsstruct_code_size): New.
5942         (gss_for_code_): New.
5943         (gss_for_code): Remove.
5944         (gimple_size): Rewrite using gsstruct_code_size.
5945         (gimple_statement_structure): Move to gimple.h.
5946         * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
5947         (gss_for_code, gimple_statement_structure): New.
5948         (gimple_ops): Use new arrays; tidy.
5949
5950 2009-09-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5951
5952         * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
5953         operand to be a PLUS expression.
5954         * config/pa/pa.c (pa_secondary_reload): Likewise.
5955
5956 2009-09-11  Jakub Jelinek  <jakub@redhat.com>
5957
5958         * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
5959
5960         * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
5961         XEXP (in_rtx, 8).
5962
5963 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
5964
5965         From Jie Zhang <jie.zhang@analog.com>:
5966         * doc/extend.texi (node Function Attributes): Document l2
5967         function attribute.
5968         (node Blackfin Variable Attributes): Document l2 variable attributes.
5969
5970 2009-09-11  Loren J. Rittle  <ljrittle@acm.org>
5971
5972         * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
5973         to match the system compiler's configuration at inflection point.
5974         Add comment to remark a remaining difference with system compiler.
5975
5976         * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
5977         * configure: Regenerate.
5978
5979 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
5980
5981         From Jie Zhang <jie.zhang@analog.com>:
5982         * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
5983         (bfin_handle_l2_attribute): New.
5984         (bfin_attribute_table): Add l2 attribute.
5985
5986 2009-09-11  Michael Matz  <matz@suse.de>
5987
5988         PR middle-end/41275
5989         * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
5990         on the local_decls list.
5991
5992 2009-09-11  Alexandre Oliva  <aoliva@redhat.com>
5993
5994         PR debug/41276
5995         PR debug/41307
5996         * cselib.c (cselib_expand_value_rtx_cb): Document callback
5997         interface.
5998         (cselib_expand_value_rtx_1): Use callback for SUBREGs.  Adjust
5999         for VALUEs, to implement the documented interface.
6000         * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
6001         Adjust for VALUEs and anything else, to implement the
6002         documented interface.
6003
6004 2009-09-10  Nathan Froyd  <froydnj@codesourcery.com>
6005
6006         * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
6007         with actual SPE/paired vector modes before using 64-bit alignment.
6008         Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
6009
6010 2009-09-10  DJ Delorie  <dj@redhat.com>
6011
6012         * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
6013         emitted.
6014
6015         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
6016         * config/mep/mep.c (mep_legitimate_constant_p): New.
6017         * config/mep/mep-protos.h: Prototype it.
6018
6019 2009-09-10  Richard Henderson  <rth@redhat.com>
6020
6021         * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
6022
6023 2009-09-10  Jason Merrill  <jason@redhat.com>
6024
6025         * tree.c (chain_index): New fn.
6026         * tree.h: Declare it.
6027
6028 2009-09-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6029
6030         * config/sol2-c.c (cmn_err_length_specs): Initialize
6031         scalar_identity_flag.
6032
6033 2009-09-10  Richard Henderson  <rth@redhat.com>
6034
6035         * tree.h (struct tree_decl_common): Move align member earlier;
6036         move label_decl_uid member ...
6037         (struct tree_label_decl): ... here.
6038         (LABEL_DECL_UID): Update to match.
6039
6040         * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
6041         not TDF_DETAILS.
6042
6043         * tree-cfg.c (gimple_redirect_edge_and_branch): Do
6044         gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
6045
6046         * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
6047         dest_prev if the edge is complex.
6048
6049         * tree-cfg.c (is_ctrl_stmt): Use a switch.
6050
6051         * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
6052         loop latch tests earlier.
6053
6054         * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
6055         before GIMPLE_RETURN, not after its predecessor; insert
6056         before GIMPLE_RESX.
6057
6058         * gimple-iterator.c (gimple_find_edge_insert_loc): Use
6059         gimple_seq_empty_p to test for no PHI nodes.
6060         * tree-cfg.c (split_critical_edges): Likewise.
6061
6062         * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
6063
6064 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
6065
6066         * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
6067         introduced by the VTA branch merge.
6068
6069 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
6070
6071         * ira-conflicts.c: Use fputs or putc instead of fprintf
6072         where appropriate.
6073         * cfg.c: Ditto.
6074         * toplev.c: Ditto.
6075         * tree-switch-conversion.c: Ditto.
6076
6077 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
6078
6079         * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
6080         introduced by the VTA branch merge.
6081
6082 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
6083
6084         Revert:
6085         2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
6086
6087         PR rtl-optimization/39779
6088         * expr.c (convert_modes): Return when mode == oldmode after
6089         CONST_INTs are processed.
6090
6091 2009-09-10  Nick Clifton  <nickc@redhat.com>
6092
6093         * config/mep/mep.c (mep_encode_section_info): Copy weakness
6094         attribute and referring decl when creating renamed symbol.
6095
6096 2009-09-10  Richard Guenther  <rguenther@suse.de>
6097
6098         PR middle-end/41257
6099         * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
6100         reachable nodes.
6101         (cgraph_finalize_compilation_unit): Compute reachability
6102         before emitting thunks.  Properly process aliases before
6103         possibly removing unreachable nodes.
6104
6105 2009-09-10  Richard Guenther  <rguenther@suse.de>
6106
6107         PR middle-end/41254
6108         * tree.c (struct free_lang_data_d): Add worklist member.
6109         (find_decls_types_r): Push onto the worklist instead of recursing.
6110         Handle TREE_BINFOs properly.
6111         (find_decls_types): New function wrapped around find_decls_types_r
6112         to process the worklist.
6113         (find_decls_types_in_eh_region): Use it.
6114         (find_decls_types_in_node): Likewise.
6115         (find_decls_types_in_var): Likewise.
6116         (free_lang_data_in_cgraph): Likewise.  Free the worklist.
6117         * tree.h (RECORD_OR_UNION_TYPE_P): New.
6118         (AGGREGATE_TYPE_P): Adjust.
6119
6120 2009-09-09  Jason Merrill  <jason@redhat.com>
6121
6122         * configure.ac: Check glibc version even if we have an in-tree
6123         assembler.
6124
6125 2009-09-09  Anthony Green  <green@moxielogic.com>
6126
6127         * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
6128         the constant 0 when appropriate.
6129         * config/moxie/constraints.md: Add constraint O.
6130
6131         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
6132         to pass up to 6 32-bit argument values in registers.
6133         (moxie_function_arg): Ditto.
6134         (moxie_arg_partial_bytes): Ditto.
6135         * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
6136         (REG_PARM_STACK_SPACE): Ditto.
6137         (FUNCTION_ARG_REGNO_P): Ditto.
6138
6139         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
6140         instruction to allocate stack space.
6141
6142 2009-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
6143
6144         * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
6145         unnecessarily stringent constraints.  Fix address
6146         calculation in the splitters.
6147
6148 2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
6149
6150         PR rtl-optimization/39779
6151         * expr.c (convert_modes): Return when mode == oldmode after
6152         CONST_INTs are processed.
6153
6154 2009-09-09  Kai Tietz  <kai.tietz@onevision.com>
6155
6156         PR/41315
6157         * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
6158         (ix86_expand_prologue): Take frame.padding0 into logic of
6159         to_allocate checks.
6160         (ix86_expand_epilogue): Likewise.
6161
6162 2009-09-09  Jakub Jelinek  <jakub@redhat.com>
6163
6164         * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
6165         New variables.
6166         (SHLIB_LINK, SHLIB_INSTALL): Use them.
6167         * config/t-slibgcc-libgcc: New file.
6168         * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
6169
6170 2009-09-09  Martin Jambor  <mjambor@suse.cz>
6171
6172         PR tree-optimization/41089
6173         * tree-sra.c (find_var_candidates): Do not consider va_lists in
6174         early SRA.
6175
6176 2009-09-09  Richard Henderson  <rth@redhat.com>
6177
6178         * gimple.h (CASE_GIMPLE_OMP): New.
6179         (is_gimple_omp): Use it.
6180         * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
6181         (verify_gimple_debug): Likewise.
6182
6183 2009-09-09  Richard Guenther  <rguenther@suse.de>
6184
6185         PR tree-optimization/41101
6186         * tree-ssa-pre.c (maximal_set): Remove.
6187         (compute_antic_aux): Treat the maximal set as implicitly all ones.
6188         Defer all blocks we didn't visit at least one successor.
6189         (add_to_exp_gen): Do not add to the maximal set.
6190         (make_values_for_phi): Likewise.
6191         (compute_avail): Likewise.
6192         (init_pre): Do not allocate the maximal set.
6193         (execute_pre): Do not dump it.
6194
6195 2009-09-09  Martin Jambor  <mjambor@suse.cz>
6196
6197         * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
6198         an SSA_NAME rather than a is_gimple_variable.
6199
6200 2009-09-09  Richard Guenther  <rguenther@suse.de>
6201
6202         PR middle-end/41317
6203         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
6204         code dealing with plain pointer bases.
6205         (maybe_fold_offset_to_reference): Likewise.
6206         (maybe_fold_stmt_addition): Adjust.
6207
6208 2009-09-09  Richard Guenther  <rguenther@suse.de>
6209
6210         * tree.c (free_lang_data_in_type): Do not free the type variant
6211         chains.
6212         (free_lang_data): Merge char_type_node with its properly signed
6213         variant.
6214         (pass_ipa_free): Collect after freeing language specific data.
6215
6216 2009-09-09  Michael Matz  <matz@suse.de>
6217
6218         PR middle-end/41268
6219         * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
6220         SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
6221         * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
6222         to reflect reality.
6223
6224 2009-09-08  DJ Delorie  <dj@redhat.com>
6225
6226         * config/mep/mep.c (conversions[]): Add "ml" pattern.
6227
6228 2009-09-04  Jason Merrill  <jason@redhat.com>
6229
6230         * tree.c (tree_find_value): Remove.
6231         * tree.h: Remove prototype.
6232         * varasm.c (assemble_external): Use value_member instead.
6233
6234 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
6235
6236         * toplev.c (process_options): Choose default debugging type when
6237         gtoggle enables debug info and type is unset.
6238
6239 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
6240
6241         PR debug/41276
6242         PR debug/41307
6243         * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
6244         invalid subreg.
6245
6246 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
6247
6248         * configure: Rebuilt with modified libtool.m4.
6249
6250 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
6251
6252         PR debug/41229
6253         PR debug/41291
6254         PR debug/41300
6255         * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
6256
6257 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
6258
6259         * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
6260         (remove_statement): Likewise.
6261         (rewrite_use_nonlinear_expr): Adjust.
6262         (remove_unused_ivs): Collect SSA NAMEs to remove and call...
6263         * tree-ssa.c (release_defs_bitset): ... this.  New.
6264         * tree-flow.h (release_defs_bitset): Declare.
6265
6266 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
6267
6268         PR debug/41232
6269         * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
6270         in the middle block.
6271
6272 2009-09-08  Kai Tietz  <kai.tietz@onevision.com>
6273
6274         * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
6275         via intptr_t to long type.
6276         (insert_operand_rank): Cast long type via intptr_t to
6277         pointer type.
6278         * genattrtab.c (RTL_HASH): Use intptr_t to cast from
6279         pointer to scalar.
6280         * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
6281         from pointer to unsigned via uintptr_t.
6282
6283         * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
6284         uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
6285         and HAVE_INTPTR_T.
6286         * configure: Regenerated.
6287         * config.in: Regenerated
6288         * system.h (stdint.h): Add include.
6289         (inttypes.h): Likewise.
6290         * Makefile.in (aclocal): Add config/stdint.m4.
6291         * aclocal.m4: Regenerated.
6292
6293 2009-09-08  Bernd Schmidt  <bernd.schmidt@analog.com>
6294
6295         * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
6296         variables.
6297         (note_np_check_stores): New function.
6298         (harmless_null_pointer_p): New function.
6299         (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH.  Callers
6300         changed.  Take into account whether we're in the shadow of a condjump
6301         that tested NP_REG for NULL.
6302         Lose all code that tested for SEQUENCEs.
6303         (workaround_speculation): Avoid inserting NOPs for loads that are
6304         either always executed or a NULL pointer.
6305
6306 2009-09-08  Jan Hubicka  <jh@suse.cz>
6307
6308         * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
6309         * params.def (early-inlining-insns): Likewise.
6310
6311 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
6312
6313         PR rtl-optimization/41239
6314         * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
6315         * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
6316         lists.
6317         * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
6318         across calls, as the calls might not always return normally.
6319         (call_may_noreturn_p): New function.
6320         (deps_analyze_insn): Update last_function_call_may_noreturn list.
6321         (init_deps): Initialize it.
6322         (remove_from_deps): Also remove calls from
6323         last_function_call_may_noreturn list.
6324
6325 2009-09-07  Richard Henderson  <rth@redhat.com>
6326
6327         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
6328         more VR->OPERANDS than LHS operands.  Free LHS before returning.
6329
6330 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
6331
6332         * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
6333         (attr "addrtype"): New member "spreg".
6334         Use it if mem_spfp_address_operand is true for the address.
6335         (attr "type"): New entry "stall".
6336         (cpu_unit "load"): New.
6337         (insn_reservations "load32", "loadp", "loadi"): Add reservation of
6338         "load".
6339         (insn_reservation "loadsp"): New.
6340         (insn_reservation "load_stall1"): New.
6341         (insn_reservation "load_stall3"): New.
6342         (stall): New insn.
6343         * config/bfin/predicates.md (const1_operand, const3_operand): New.
6344         (mem_p_address_operand): Exclude stack and frame pointer based
6345         addresses.
6346         (mem_spfp_address_operand): New; match them here.
6347         * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
6348         (bfin_reorg): Call it if scheduling insns.
6349         (bfin_gen_bundles): Remove dummy insns created by
6350         add_sched_insns_for_speculation.
6351
6352         From Jie Zhang <jie.zhang@analog.com>:
6353         * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
6354         bfin_si_revision, bfin_workarounds): Move these ...
6355         * config/bfin/bfin.h: ... here.
6356
6357         From Mike Frysinger  <michael.frysinger@analog.com>
6358         * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
6359         BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
6360         * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
6361         bf547m, bf548m, and bf549m.
6362         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
6363         for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
6364         __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
6365         BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
6366         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
6367         bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
6368         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
6369         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
6370         * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
6371         bf542m, bf544m, bf547m, bf548m, and bf549m.
6372
6373         From Jie Zhang <jie.zhang@analog.com>:
6374         * config/bfin/predicates.md (p_register_operand): New predicate.
6375         (dp_register_operand): New predicate.
6376         * config/bfin/bfin-protos.h (WA_05000074): Define.
6377         (ENABLE_WA_05000074): Define.
6378         * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
6379         (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
6380         * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
6381         (define_attr addrtype): Allow load/store register to be P register.
6382         (define_attr storereg): New.
6383         (define_cpu_unit anomaly_05000074): New.
6384         (define_insn_reservation dsp32shiftimm): New.
6385         (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
6386         (define_insn_reservation loadp): Cannot use slot2.
6387         (define_insn_reservation loadsp): Cannot use slot2.
6388         (define_insn_reservation storep): Cannot use slot2. Does not
6389         apply when working around 05000074.
6390         (define_insn_reservation storep_anomaly_05000074): New.
6391         (define_insn_reservation storei): Does not apply when working
6392         around 05000074.
6393         (define_insn_reservation storei_anomaly_05000074): New.
6394         (define_attr length): Add dsp32shiftimm case.
6395         (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
6396         ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
6397         movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
6398         ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
6399         Set type as dsp32shiftimm for dsp32shiftimm alternatives.
6400
6401 2009-09-07  Martin Jambor  <mjambor@suse.cz>
6402
6403         PR middle-end/41282
6404         * tree-sra.c (create_artificial_child_access): Return NULL if
6405         build_ref_for_offset fails.
6406         (propagate_subacesses_accross_link): Allow build_ref_for_offset
6407         and create_artificial_child_access to fail.
6408
6409 2009-09-06  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
6410
6411         PR c++/41214
6412         * unwind-dw2.c (uw_init_context_1): Mark noinline.
6413         * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
6414         * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
6415
6416 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
6417
6418         * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
6419         block, ensure it has an exit edge.  Emit a barrier after a jump.
6420
6421 2009-09-07  Nick Clifton  <nickc@redhat.com>
6422
6423         * gcc.c (this_is_linker_script): New variable.  Like
6424         this_is_library_file but for the %T constructor.
6425         (end_going_arg): If this_is_linker_script is set then locate the
6426         script and insert a --script switch before it
6427         (do_spec_2): Initialise this_is_linker_script.
6428         (do_spec_1): Likewise.  Handle %T construct.
6429         (eval_spec_function): Preserve this_is_linker_script.
6430         * doc/invoke.texi: Document %T construct in spec files.
6431         * config/m32c/m32c.h (LIB_SPEC): Use it.
6432
6433 2009-09-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6434
6435         * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
6436         * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
6437         when volatile flag is set.
6438         * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
6439
6440 2009-09-06  Eric Botcazou  <ebotcazou@adacore.com>
6441
6442         PR bootstrap/41241
6443         * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
6444         (combine_stack_adjustments_for_block): Allow insns between stack
6445         adjustments and stores with corresponding pre-(dec|inc)rement or
6446         pre-modify operation.
6447
6448 2009-09-06  Jakub Jelinek  <jakub@redhat.com>
6449
6450         PR bootstrap/41241
6451         * combine-stack-adj.c (struct csa_memlist): Rename to...
6452         (struct csa_reflist): ... this.  Rename mem field to ref.
6453         (free_csa_memlist): Rename to...
6454         (free_csa_reflist): ... this.
6455         (record_one_stack_memref): Rename to...
6456         (record_one_stack_ref): ... this.  Handle also REG_P.
6457         (try_apply_stack_adjustment): Handle also REG_P.
6458         (struct record_stack_memrefs_data): Rename to...
6459         (struct record_stack_refs_data): ... this.  Rename memlist field to
6460         reflist.
6461         (record_stack_memrefs): Rename to...
6462         (record_stack_refs): ... this.  For DEBUG_INSNs keep traversing
6463         subexpressions instead of failing when a MEM contains SP references.
6464         For SP itself in DEBUG_INSNs queue it also onto reflist chain.
6465         (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
6466
6467 2009-09-06  Richard Guenther  <rguenther@suse.de>
6468
6469         PR middle-end/41144
6470         * tree.c (build_array_type): Do not record types marked
6471         with structural equality in the canonical type hashtable.
6472
6473 2009-09-06  Richard Guenther  <rguenther@suse.de>
6474
6475         PR middle-end/41261
6476         * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
6477
6478 2009-09-05  Richard Guenther  <rguenther@suse.de>
6479
6480         PR middle-end/41181
6481         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
6482
6483 2009-09-05  Richard Guenther  <rguenther@suse.de>
6484
6485         PR debug/41273
6486         * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
6487
6488 2009-09-05  Richard Guenther  <rguenther@suse.de>
6489
6490         PR middle-end/41271
6491         * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
6492         before comparing function argument types.
6493
6494 2009-09-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6495
6496         PR target/41024
6497         * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
6498         the assembler.
6499
6500 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
6501
6502         Revert:
6503         2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
6504
6505         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
6506         locators before emit_insn is called.
6507
6508 2009-09-04  Vladimir Makarov  <vmakarov@redhat.com>
6509
6510         PR bootstrap/41241
6511         * ira.c (update_equiv_reg): Revert my previous patch for the PR.
6512         * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
6513         (reginfo_init): Don't call allocate_reg_info.
6514
6515 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
6516
6517         PR target/41262
6518         * config/alpha/alpha.c (alpha_does_function_need_gp): Use
6519         NONDEBUG_INSN_P instead of INSN_P.
6520
6521 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
6522
6523         PR debug/41225
6524         * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
6525
6526 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
6527
6528         PR target/41252
6529         * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
6530         pattern of the split.
6531
6532 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
6533
6534         * toplev.c (process_options): Move setter of flag_var_tracking
6535         before other tests that depend on it.  Move down setter of
6536         flag_rename_registers.  Don't enable var-tracking-assignments
6537         by default if selective scheduling is enabled.  Warn if both
6538         are enabled.
6539
6540 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
6541
6542         * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
6543         comment.  Use switch statement to catch overlaps between rtx
6544         and tree codes.  Accept FUNCTION_DECLs in addition to those in...
6545         (IS_DECL_CODE): ... here. Remove.
6546         (check_value_is_not_decl): Remove.
6547         (dv_from_decl, dv_from_value): Check after conversion.
6548
6549 2009-09-04  Richard Guenther  <rguenther@suse.de>
6550
6551         PR middle-end/41257
6552         * (cgraph_finalize_compilation_unit): Move finalizing aliases
6553         after emitting tunks.  Move emitting thunks and ctors from ...
6554         (cgraph_optimize): ... here.  Remove redundant
6555         cgraph_analyze_functions.
6556         * varasm.c (find_decl_and_mark_needed): Remove no longer
6557         necessary check.
6558         (finish_aliases_1): Adjust check for thunk aliases.
6559
6560 2009-09-04  Daniel Gutson  <dgutson@codesourcery.com>
6561
6562         * config/arm/arm.md (ctzsi2): Added braces
6563         to avoid warning that broke booststrap.
6564
6565 2009-09-04  Martin Jambor  <mjambor@suse.cz>
6566
6567         PR tree-optimization/41112
6568         * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
6569         handle variable-bounded arrays.
6570         (expr_with_var_bounded_array_refs_p): New function.
6571         (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
6572
6573 2009-09-04  Wolfgang Gellerich  <gellerich@de.ibm.com>
6574
6575         * config/s390/2097.md: Removed two incorrect bypasses.
6576         (z10_fsimpdf): Fixed latency.
6577         (z10_fhex): New insn_reservation.
6578         (z10_floaddf): Fixed latency.
6579         (z10_floadsf): Fixed latency.
6580         (z10_ftrunctf): Fixed latency.
6581         (z10_ftruncdf): Fixed latency.
6582         * config/s390/s390.c (z10_cost): Fixed values.
6583         (s390_adjust_priority): Added z10 path.
6584         * config/s390/s390.md (type): Added fhex.
6585         (*mov<mode>_64dfp): Updated type attribute.
6586         (*mov<mode>_64): Updated type attribute.
6587         (*mov<mode>_31): Updated type attribute.
6588         (*mov<mode>"): Likewise.
6589         * config/s390/2084.md (x_fsimpdf): Updated condition.
6590
6591 2009-09-04  Andreas Krebbel  <krebbel1@de.ibm.com>
6592
6593         * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
6594         RTXs in the predicate for operand 1.
6595
6596 2009-09-03  Daniel Gutson  <dgutson@codesourcery.com>
6597
6598         * config/arm/arm.md (UNSPEC_RBIT): New constant.
6599         (rbitsi2): New insn.
6600         (ctzsi2): New expand.
6601         * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
6602
6603 2009-09-03  Martin Jambor  <mjambor@suse.cz>
6604
6605         * tree-sra.c (duplicate_expr_for_different_base): Removed.
6606         (create_artificial_child_access): Use build_ref_for_offset instead
6607         of duplicate_expr_for_different_base.
6608         (propagate_subacesses_accross_link): Likewise.
6609
6610 2009-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
6611
6612         * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
6613         of INSN_P.
6614         (mips16e_collect_argument_saves): Skip debug instructions.
6615         (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
6616         (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
6617         (r10k_insert_cache_barriers): Likewise.
6618         (mips_reorg_process_insns): Likewise.
6619
6620 2009-09-03  Vladimir Makarov  <vmakarov@redhat.com>
6621
6622         PR bootstrap/41241
6623         * ira.c (update_equiv_reg): Remove check on class likely spill.
6624
6625 2009-09-03  Jakub Jelinek  <jakub@redhat.com>
6626
6627         PR debug/41236
6628         * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
6629         SIGN_EXTEND or ZERO_EXTEND.  Don't assume there is a REG inside of
6630         it or SUBREG.
6631
6632         PR debug/41238
6633         * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
6634         the stack slot if it is passed by invisible reference.
6635         * var-tracking.c (vt_add_function_parameters): Handle arguments passed
6636         by invisible reference.
6637
6638 2009-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
6639
6640         * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
6641         * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
6642         * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
6643         0.
6644         * config/bfin/sync.md: New file.
6645         * config/bfin/bfin.md: Include it.
6646         (UNSPEC_ATOMIC): New.
6647         (UNSPEC_ONES): Provide a unique number.
6648
6649         From Jie Zhang <jie.zhang@analog.com>:
6650         * config/bfin/bfin.c (ret_regs): New.
6651         (must_save_fp_p): Don't return true because of frame_pointer_needed.
6652         (must_save_rets_p): New.
6653         (n_regs_saved_by_prologue): Use must_save_rets_p instead of
6654         current_function_is_leaf.
6655         (do_link): Likewise.
6656         (do_unlink): Likewise.
6657         (expand_interrupt_handler_prologue): Use ret_regs array.
6658         (expand_interrupt_handler_epilogue): Use ret_regs array and
6659         pass return register to gen_return_internal.
6660         (bfin_expand_epilogue): Pass return register to
6661         gen_return_internal.
6662         (bfin_expand_call): Explicitly clobber RETS.
6663         * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
6664         * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
6665         call_insn_fdpic, call_value_insn_fdpic, call_symbol,
6666         call_value_symbol, call_insn, call_value_insn): Explicitly clobber
6667         RETS.
6668         (return_internal): Take a reg rtx rather than the register number.
6669
6670 2009-09-03  H.J. Lu  <hongjiu.lu@intel.com>
6671
6672         * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
6673         when comparing against estimated_loop_iterations_int return.
6674
6675 2009-09-03  Richard Guenther  <rguenther@suse.de>
6676
6677         * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
6678         eh_personality_libfunc.
6679
6680 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
6681
6682         * tree-parloops.c (separate_decls_in_region): Add space.
6683
6684 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
6685
6686         * tree-parloops.c (separate_decls_in_region): Change the condition
6687         checking if there are reductions in the loop.
6688
6689 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
6690
6691         PR tree-optimization/38275
6692         * tree-parloops.c (parallelize_loops): Replace profitability condition
6693         for expected number of iterations.
6694
6695 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
6696
6697         * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
6698         (bootstrap-debug): Explain conditions in which it becomes default.
6699         (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
6700         make it add to it.
6701
6702 2009-09-03  Namhyung Kim  <namhyung@gmail.com>
6703
6704         * doc/invoke.texi (Optimize Options): Move
6705         -finline-small-functions to the -O2 list.
6706
6707 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
6708
6709         * toplev.c (process_options): Enable var-tracking-assignments
6710         by default if var-tracking is enabled.
6711
6712 2009-09-02  David Daney  <ddaney@caviumnetworks.com>
6713
6714         * cfgbuild.c (find_bb_boundaries): Split blocks containing a
6715         barrier.
6716         * emit-rtl.c (prev_nonnote_insn_bb): New function.
6717         * rtl.h (prev_nonnote_insn_bb): Declare it.
6718
6719 2009-09-03  Diego Novillo  <dnovillo@google.com>
6720
6721         * cgraph.c (cgraph_node_for_decl): New.
6722         * cgraph.h (cgraph_node_for_decl): Declare.
6723         * tree.c (host_integerp): Return 0 if T is NULL.
6724
6725 2009-09-03  Diego Novillo  <dnovillo@google.com>
6726
6727         * tree.h (struct alias_pair): Move from varasm.c.
6728         (alias_pairs): Likewise.
6729         (TYPE_MAXVAL): Define.
6730         (TYPE_MINVAL): Define.
6731         (iterative_hash_host_wide_int): Declare.
6732         (remove_unreachable_alias_pairs): Declare.
6733         * tree-pass.h (pass_ipa_free_lang_data): Declare.
6734         * diagnostic.c (default_diagnostic_starter): Make extern.
6735         (default_diagnostic_finalizer): Make extern.
6736         * diagnostic.h (default_diagnostic_starter): Declare.
6737         (default_diagnostic_finalizer): Declare.
6738         (default_tree_printer): Declare.
6739         * toplev.c (default_tree_printer): Make extern.
6740
6741 2009-09-03  Richard Guenther  <rguenther@suse.de>
6742             Diego Novillo  <dnovillo@google.com>
6743
6744         * cgraph.c (cgraph_add_new_function): Remove gimplification.
6745         * cgraphunit.c (cgraph_expand_function): Do not emit
6746         associated thunks from here.
6747         (cgraph_emit_thunks): New.
6748         (cgraph_optimize): Call it.
6749         Return if any IPA pass finds an error.
6750         * varasm.c (finish_aliases_1): Ignore errorneous aliases used
6751         by thunks.
6752
6753 2009-09-03  Simon Baldwin  <simonb@google.com>
6754             Rafael Espindola  <espindola@google.com>
6755             Richard Guenther  <rguenther@suse.de>
6756             Doug Kwan  <dougkwan@google.com>
6757             Diego Novillo  <dnovillo@google.com>
6758
6759         * tree.c: Include tree-pass.h, langhooks-def.h,
6760         diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
6761         (free_lang_data_in_type): New.
6762         (need_assembler_name_p): New.
6763         (free_lang_data_in_block): New.
6764         (free_lang_data_in_decl): New.
6765         (struct free_lang_data_d): New.
6766         (add_tree_to_fld_list): New.
6767         (find_decls_types_r): New.
6768         (get_eh_types_for_runtime): New.
6769         (find_decls_types_in_eh_region): New.
6770         (find_decls_types_in_node): New.
6771         (find_decls_types_in_var): New.
6772         (free_lang_data_in_cgraph): New.
6773         (free_lang_data): New.
6774         (gate_free_lang_data): New.
6775         (pass_ipa_free_lang_data): New.
6776
6777 2009-09-03  Diego Novillo  <dnovillo@google.com>
6778
6779         * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
6780         * langhooks.h (struct lang_hooks): Add field free_lang_data.
6781         (lang_hooks): Remove const qualifier.
6782         * ipa.c (cgraph_remove_unreachable_nodes): Call
6783         remove_unreachable_alias_pairs.
6784         * except.c (add_type_for_runtime): Check if TYPE has
6785         already been converted.
6786         (lookup_type_for_runtime): Likewise.
6787         (check_handled): Handle converted types.
6788         * varasm.c (remove_unreachable_alias_pairs): New.
6789         * gimple.c: Include demangle.h.
6790         (gimple_decl_printable_name): New.
6791         (gimple_fold_obj_type_ref): New.
6792         * gimple.h (gimple_decl_printable_name): Declare.
6793         (gimple_fold_obj_type_ref): Declare.
6794         * passes.c (init_optimization_passes): Add pass
6795         pass_ipa_free_lang_data.
6796         * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
6797         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
6798
6799 2009-09-03  Diego Novillo  <dnovillo@google.com>
6800
6801         * c-lang.c (lang_hooks): Remove const qualifier.
6802
6803 2009-09-02  Loren James Rittle  <ljrittle@acm.org>
6804
6805         * doc/install.texi (*-*-freebsd*): Update target information.
6806
6807 2009-09-02  Anatoly Sokolov  <aesok@post.ru>
6808
6809         * hard-reg-set.h (call_fixed_regs): Remove.
6810         * reginfo.c (call_fixed_regs): Remove.
6811         (init_reg_sets_1): Remove initialization of call_fixed_regs.
6812         (globalize_reg): Don't use call_fixed_regs.
6813         * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
6814         call_fixed_regs.
6815
6816 2009-09-01  Michael Matz  <matz@suse.de>
6817
6818         * expr.h (emit_storent_insn, expand_expr_real_1,
6819         expand_expr_real_2): Declare.
6820         * expr.c (emit_storent_insn, expand_expr_real_1,
6821         expand_expr_real_2): Export.
6822         (store_expr): Setting and evaluating dont_return_target is useless.
6823         (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
6824         LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
6825         * except.c (expand_resx_expr): Rename to ...
6826         (expand_resx_stmt): ... this.  Rewrite to take gimple statement.
6827         * except.h (expand_resx_stmt): Declare.
6828         * stmt.c: Add include gimple.h
6829         (expand_asm_expr): Rename to ...
6830         (expand_asm_stmt): ... this. Rewrite to take gimple statement.
6831         (expand_case): Rewrite to take gimple statement.
6832         * tree.h (expand_asm_stmt): Declare.
6833         (expand_case): Change prototype.
6834         * Makefile.in (stmt.o): Depend on gimple.h.
6835         * builtins.c (expand_builtin_synchronize): Build gimple asm
6836         statement, not an ASM_EXPR.
6837         * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
6838         gimple_to_tree, release_stmt_tree): Remove.
6839         (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
6840         ggc_free, but hold comparison code and operands separately.
6841         Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
6842         (expand_call_stmt, expand_gimple_stmt_1,
6843         expand_gimple_stmt): New helpers.
6844         (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
6845         release_stmt_tree.  Call expand_gimple_stmt instead.
6846         (expand_gimple_basic_block): Ditto.
6847
6848         * calls.c (emit_call_1): Don't look at EH regions here, make
6849         fntree parameter useless.
6850         (expand_call): New local rettype for TREE_TYPE(exp), use it
6851         throughout.  Remove local p, use addr instead.
6852         Don't look at EH regions here.
6853
6854 2009-09-02  Vladimir Makarov  <vmakarov@redhat.com>
6855
6856         * doc/invoke.texi (-fsched-pressure): Document it.
6857         (-fsched-reg-pressure-heuristic): Remove it.
6858
6859         * reload.c (ira.h): Include.
6860         (find_reloads): Add choosing reload on number of small spilled
6861         classes.
6862
6863         * haifa-sched.c (ira.h): Include.
6864         (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
6865         saved_reg_pressure, curr_reg_live, saved_reg_live,
6866         region_ref_regs): New variables.
6867         (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
6868         initiate_reg_pressure_info, setup_ref_regs,
6869         initiate_bb_reg_pressure_info, save_reg_pressure,
6870         restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
6871         functions.
6872         (setup_insn_reg_pressure_info): New function.
6873         (rank_for_schedule): Add pressure checking and insn issue time.
6874         Remove comparison of insn reg weights.
6875         (ready_sort): Set insn reg pressure info.
6876         (update_register_pressure, setup_insn_max_reg_pressure,
6877         update_reg_and_insn_max_reg_pressure,
6878         sched_setup_bb_reg_pressure_info): New functions.
6879         (schedule_insn): Add code for printing and updating reg pressure info.
6880         (find_set_reg_weight, find_insn_reg_weight): Remove.
6881         (ok_for_early_queue_removal): Do nothing if pressure_only_p.
6882         (debug_ready_list): Print reg pressure info.
6883         (schedule_block): Ditto.  Check insn issue time.
6884         (sched_init): Set up sched_pressure_p.  Allocate and set up some
6885         reg pressure related info.
6886         (sched_finish): Free some reg pressure related info.
6887         (fix_tick_ready): Make insn always ready if pressure_p.
6888         (init_h_i_d): Don't call find_insn_reg_weight.
6889         (haifa_finish_h_i_d): Free insn reg pressure info.
6890
6891         * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
6892         ira_memory_move_cost, ira_class_hard_regs,
6893         ira_class_hard_regs_num, ira_no_alloc_regs,
6894         ira_available_class_regs, ira_reg_class_cover_size,
6895         ira_reg_class_cover, ira_class_translate): Move to ira.h.
6896
6897         * ira-lives.c (single_reg_class): Check mode to find how many
6898         registers are necessary for operand.
6899         (ira_implicitly_set_insn_hard_regs): New.
6900
6901         * common.opt (fsched-pressure): New options.
6902         (fsched-reg-pressure-heuristic): Remove.
6903
6904         * ira.c (setup_eliminable_regset): Rename to
6905         ira_setup_eliminable_regset.  Make it external.
6906         (expand_reg_info): Pass cover class to setup_reg_classes.
6907         (ira): Call resize_reg_info instead of allocate_reg_info.
6908
6909         * sched-deps.c: Include ira.h.
6910         (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
6911         (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
6912         reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
6913         mark_insn_hard_regno_birth, mark_insn_reg_birth,
6914         mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
6915         mark_insn_reg_store, mark_insn_reg_clobber,
6916         setup_insn_reg_pressure_info): New.
6917         (sched_analyze_1): Update implicit_reg_pending_uses.
6918         (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
6919         Use them to create dependencies.  Set insn reg uses and pressure
6920         info.  Process reg_pending_uses in one place.
6921         (free_deps): Free implicit sets.
6922         (remove_from_deps): Remove implicit sets if necessary.  Check
6923         implicit sets when clearing reg_last_in_use.
6924         (init_deps_global): Clear implicit_reg_pending_clobbers and
6925         implicit_reg_pending_uses.
6926
6927         * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
6928         ira_memory_move_cost, ira_class_hard_regs,
6929         ira_class_hard_regs_num, ira_no_alloc_regs,
6930         ira_available_class_regs, ira_reg_class_cover_size,
6931         ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
6932         (ira_setup_eliminable_regset, ira_set_pseudo_classes,
6933         ira_implicitly_set_insn_hard_regs): New prototypes.
6934
6935         * ira-costs.c (pseudo_classes_defined_p, allocno_p,
6936         cost_elements_num): New variables.
6937         (allocno_costs, total_costs): Rename to costs and
6938         total_allocno_costs.
6939         (COSTS_OF_ALLOCNO): Rename to COSTS.
6940         (allocno_pref): Rename to pref.
6941         (allocno_pref_buffer): Rename to pref_buffer.
6942         (common_classes): Rename to regno_cover_class.
6943         (COST_INDEX): New.
6944         (record_reg_classes): Set allocno attributes only if allocno_p.
6945         (record_address_regs): Ditto.  Use COST_INDEX instead of ALLOCNO_NUM.
6946         (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
6947         and COSTS_OF_ALLOCNO.
6948         (print_costs): Rename to print_allocno_costs.
6949         (print_pseudo_costs): New.
6950         (process_bb_node_for_costs): Split into 2 functions with new
6951         function process_bb_for_costs.  Pass BB to process_bb_for_costs.
6952         (find_allocno_class_costs): Rename to find_costs_and_classes.  Add
6953         new parameter dump_file.  Use cost_elements_num instead of
6954         ira_allocnos_num.  Make one iteration if preferred classes were
6955         already calculated for scheduler.  Make 2 versions of code
6956         depending on allocno_p.
6957         (setup_allocno_cover_class_and_costs): Check allocno_p.  Use
6958         regno_cover_class and COSTS instead of common_classes and
6959         COSTS_OF_ALLOCNO.
6960         (init_costs, finish_costs): New.
6961         (ira_costs): Set up allocno_p and cost_elements_num.  Call
6962         init_costs and finish_costs.
6963         (ira_set_pseudo_classes): New.
6964
6965         * rtl.h (allocate_reg_info): Remove.
6966         (resize_reg_info): Change return type.
6967         (reg_cover_class): New.
6968         (setup_reg_classes): Add new parameter.
6969
6970         * sched-int.h (struct deps_reg): New member implicit_sets.
6971         (sched_pressure_p, sched_regno_cover_class): New external definitions.
6972         (INCREASE_BITS): New macro.
6973         (struct reg_pressure_data, struct reg_use_data): New.
6974         (struct _haifa_insn_data): Remove reg_weight.  Add members
6975         reg_pressure, reg_use_list, reg_set_list, and
6976         reg_pressure_excess_cost_change.
6977         (struct deps): New member implicit_sets.
6978         (pressure_p): New variable.
6979         (COVER_CLASS_BITS, INCREASE_BITS): New macros.
6980         (struct reg_pressure_data, struct reg_use_data): New.
6981         (INSN_REG_WEIGHT): Remove.
6982         (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
6983         INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
6984         (sched_init_region_reg_pressure_info,
6985         sched_setup_bb_reg_pressure_info): New prototypes.
6986
6987         * reginfo.c (struct reg_pref): New member coverclass.
6988         (reg_cover_class): New function.
6989         (reginfo_init, pass_reginfo_init): Move after free_reg_info.
6990         (reg_info_size): New variable.
6991         (allocate_reg_info): Make static.  Setup reg_info_size.
6992         (resize_reg_info): Use reg_info_size.  Return flag of resizing.
6993         (setup_reg_classes): Add a new parameter.  Setup cover class too.
6994
6995         * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
6996         the dependencies.
6997
6998         * sched-rgn.c (deps_join): Set up implicit_sets.
6999         (schedule_region): Set up region and basic blocks pressure
7000         relative info.
7001
7002         * passes.c (init_optimization_passes): Move
7003         pass_subregs_of_mode_init before pass_sched.
7004
7005 2009-09-02  Martin Jambor  <mjambor@suse.cz>
7006
7007         * tree-sra.c (struct access): New field grp_hint.
7008         (dump_access): Dump grp_hint.
7009         (sort_and_splice_var_accesses): Set grp_hint if a group is read
7010         multiple times.
7011         (analyze_access_subtree): Only scalarize accesses with grp_hint set or
7012         those which have been specifically read and somehow written to.
7013         (propagate_subacesses_accross_link): Set grp_hint of right child and
7014         also possibly of the left child.
7015
7016 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
7017
7018         * tree-object-size.c (addr_object_size): Always use object_size_type
7019         0 or 2 when determining the pointer pointed object size.
7020
7021 2009-09-02  Richard Guenther  <rguenther@suse.de>
7022
7023         Revert
7024         2009-08-31  Richard Guenther  <rguenther@suse.de>
7025
7026         * builtins.c (fold_builtin_memory_op): Use the alias oracle
7027         to query if the memory regions for memmove overlap.
7028         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
7029         asserts on pointers, instead deal with odd trees.
7030         (ptr_derefs_may_alias_p): Likewise.
7031         (refs_may_alias_p_1): Constructor bases also never alias.
7032
7033 2009-08-01  Christian Bruel  <christian.bruel@st.com>
7034
7035         Revert:
7036         2009-07-31  Christian Bruel  <christian.bruel@st.com>
7037         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
7038
7039 2009-09-01  Alexandre Oliva  <aoliva@redhat.com>
7040
7041         * doc/invoke.texi (-fvar-tracking-assignments): New.
7042         (-fvar-tracking-assignments-toggle): New.
7043         (-fdump-final-insns=file): Mark filename as optional.
7044         (--param min-nondebug-insn-uid): New.
7045         (-gdwarf-@{version}): Mention version 4.
7046         * opts.c (common_handle_option): Accept it.
7047         * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
7048         * regrename.c (regrename_optimize): Drop last.  Don't count debug
7049         insns as uses.  Don't reject change because of debug insn.
7050         (do_replace): Reject DEBUG_INSN as chain starter.  Take base_regno
7051         from the chain starter, and check for inexact matches in DEBUG_INSNS.
7052         (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
7053         (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
7054         * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
7055         * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
7056         * doc/gimple.texi (is_gimple_debug): New.
7057         (gimple_debug_bind_p): New.
7058         (is_gimple_call, gimple_assign_cast_p): End sentence with period.
7059         * doc/install.texi (bootstrap-debug): More details.
7060         (bootstrap-debug-big, bootstrap-debug-lean): Document.
7061         (bootstrap-debug-lib): More details.
7062         (bootstrap-debug-ckovw): Update.
7063         (bootstrap-time): New.
7064         * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
7065         (insert_phi_nodes_for): Insert debug stmts.
7066         (rewrite_stmt): Take iterator.  Insert debug stmts.
7067         (rewrite_enter_block): Adjust.
7068         (maybe_replace_use_in_debug_stmt): New.
7069         (rewrite_update_stmt): Use it.
7070         (mark_use_interesting): Return early for debug stmts.
7071         * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
7072         stmts before replacing stmt.
7073         (move_computations_stmt): Likewise.
7074         * ira-conflicts.c (add_copies): Skip debug insns.
7075         * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
7076         (regstat_bb_compute_ri): Skip debug insns.
7077         * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
7078         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
7079         check_loop_closed_ssa_stmt): Skip debug stmts.
7080         * tree-tailcall.c (find_tail_calls): Likewise.
7081         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7082         * tree.h (MAY_HAVE_DEBUG_STMTS): New.
7083         (build_var_debug_value_stat): Declare.
7084         (build_var_debug_value): Define.
7085         (target_for_debug_bind): Declare.
7086         * reload.c (find_equiv_reg): Skip debug insns.
7087         * rtlanal.c (reg_used_between_p): Skip debug insns.
7088         (side_effects_p): Likewise.
7089         (canonicalize_condition): Likewise.
7090         * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
7091         insns never depend on debug insns.
7092         (create_ddg_dep_no_link): Likewise.
7093         (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
7094         Don't add inter-loop dependencies for debug insns.
7095         (build_intra_loop_deps): Likewise.
7096         (create_ddg): Count debug insns.
7097         * ddg.h (struct ddg::num_debug): New.
7098         (num_backargs): Pair up with previous int field.
7099         * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
7100         -fcompare-debug-second.
7101         * final.c (get_attr_length_1): Skip debug insns.
7102         (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
7103         * gcc.c (invoke_as): Call compare-debug-dump-opt.
7104         (driver_self_specs): Map -fdump-final-insns to
7105         -fdump-final-insns=..
7106         (get_local_tick): New.
7107         (compare_debug_dump_opt_spec_function): Test for . argument and
7108         compute output name.  Compute temp output spec without flag name.
7109         Compute -frandom-seed.
7110         (OPT): Undef after use.
7111         * cfgloopanal.c (num_loop_insns): Skip debug insns.
7112         (average_num_loop_insns): Likewise.
7113         * params.h (MIN_NONDEBUG_INSN_UID): New.
7114         * gimple.def (GIMPLE_DEBUG): New.
7115         * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
7116         * auto-inc-dec.c (merge_in_block): Skip debug insns.
7117         (merge_in_block): Fix whitespace.
7118         * toplev.c (flag_var_tracking): Update comment.
7119         (flag_var_tracking_assignments): New.
7120         (flag_var_tracking_assignments_toggle): New.
7121         (process_options): Don't open final insns dump file if we're not
7122         going to write to it.  Compute defaults for var_tracking.
7123         * df-scan.c (df_insn_rescan_debug_internal): New.
7124         (df_uses_record): Handle debug insns.
7125         * haifa-sched.c (ready): Initialize n_debug.
7126         (contributes_to_priority): Skip debug insns.
7127         (dep_list_size): New.
7128         (priority): Use it.
7129         (rank_for_schedule): Likewise.  Schedule debug insns as soon as
7130         they're ready.  Disregard previous debug insns to make decisions.
7131         (queue_insn): Never queue debug insns.
7132         (ready_add, ready_remove_first, ready_remove): Count debug insns.
7133         (schedule_insn): Don't reject debug insns because of issue rate.
7134         (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
7135         (queue_to_ready): Skip and discount debug insns.
7136         (choose_ready): Let debug insns through.
7137         (schedule_block): Check boundary debug insns.  Discount debug
7138         insns, schedule them early.  Adjust whitespace.
7139         (set_priorities): Check for boundary debug insns.
7140         (add_jump_dependencies): Use dep_list_size.
7141         (prev_non_location_insn): New.
7142         (check_cfg): Use it.
7143         * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
7144         stmts.
7145         (remove_unused_ivs): Reset debug stmts.
7146         * modulo-sched.c (const_iteration_count): Skip debug insns.
7147         (res_MII): Discount debug insns.
7148         (loop_single_full_bb_p): Skip debug insns.
7149         (sms_schedule): Likewise.
7150         (sms_schedule_by_order): Likewise.
7151         (ps_has_conflicts): Likewise.
7152         * caller-save.c (refmarker_fn): New.
7153         (save_call_clobbered_regs): Replace regs with saved mem in
7154         debug insns.
7155         (mark_referenced_regs): Take pointer, mark and arg.  Adjust.
7156         Call refmarker_fn mark for hardregnos.
7157         (mark_reg_as_referenced): New.
7158         (replace_reg_with_saved_mem): New.
7159         * ipa-pure-const.c (check_stmt): Skip debug stmts.
7160         * cse.c (cse_insn): Canonicalize debug insns.  Skip them when
7161         searching back.
7162         (cse_extended_basic_block): Skip debug insns.
7163         (count_reg_usage): Likewise.
7164         (is_dead_reg): New, split out of...
7165         (set_live_p): ... here.
7166         (insn_live_p): Use it for debug insns.
7167         * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
7168         (execute_optimize_stdarg): Likewise.
7169         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
7170         * tree-ssa-propagate.c (substitute_and_fold): Don't regard
7171         changes in debug stmts as changes.
7172         * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
7173         (moveup_expr): Don't move across debug insns.  Don't move
7174         debug insn if it would create a bookkeeping block.
7175         (moveup_expr_cached): Don't use cache for debug insns that
7176         are heads of blocks.
7177         (compute_av_set_inside_bb): Skip debug insns.
7178         (sel_rank_for_schedule): Schedule debug insns first.  Remove
7179         dead code.
7180         (block_valid_for_bookkeeping_p); Support lax searches.
7181         (create_block_for_bookkeeping): Adjust block numbers when
7182         encountering debug-only blocks.
7183         (find_place_for_bookkeeping): Deal with debug-only blocks.
7184         (generate_bookkeeping_insn): Accept no place to insert.
7185         (remove_temp_moveop_nops): New argument full_tidying.
7186         (prepare_place_to_insert): Deal with debug insns.
7187         (advance_state_on_fence): Debug insns don't start cycles.
7188         (update_boundaries): Take fence as argument.  Deal with
7189         debug insns.
7190         (schedule_expr_on_boundary): No full_tidying on debug insns.
7191         (fill_insns): Deal with debug insns.
7192         (track_scheduled_insns_and_blocks): Don't count debug insns.
7193         (need_nop_to_preserve_insn_bb): New, split out of...
7194         (remove_insn_from_stream): ... this.
7195         (fur_orig_expr_not_found): Skip debug insns.
7196         * rtl.def (VALUE): Move up.
7197         (DEBUG_INSN): New.
7198         * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
7199         (nearest_common_dominator_of_uses): Take debug_stmts argument.
7200         Set it if debug stmts are found.
7201         (statement_sink_location): Skip debug stmts.  Propagate
7202         moving defs into debug stmts.
7203         * ifcvt.c (first_active_insn): Skip debug insns.
7204         (last_active_insns): Likewise.
7205         (cond_exec_process_insns): Likewise.
7206         (noce_process_if_block): Likewise.
7207         (check_cond_move_block): Likewise.
7208         (cond_move_convert_if_block): Likewise.
7209         (block_jumps_and_fallthru_p): Likewise.
7210         (dead_or_predicable): Likewise.
7211         * dwarf2out.c (debug_str_hash_forced): New.
7212         (find_AT_string): Add comment.
7213         (gen_label_for_indirect_string): New.
7214         (get_debug_string_label): New.
7215         (AT_string_form): Use it.
7216         (mem_loc_descriptor): Handle non-TLS symbols.  Handle MINUS , DIV,
7217         MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING.  Accept but
7218         discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
7219         several operations that cannot be represented with DWARF opcodes.
7220         (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND.  Require
7221         dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
7222         (dwarf2out_var_location): Take during-call mark into account.
7223         (output_indirect_string): Update comment.  Output if there are
7224         label and references.
7225         (prune_indirect_string): New.
7226         (prune_unused_types): Call it if debug_str_hash_forced.
7227         More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
7228         (dw_long_long_const): Remove.
7229         (struct dw_val_struct): Change val_long_long type to rtx.
7230         (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
7231         val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
7232         (output_die): Likewise.  Use HOST_BITS_PER_WIDE_INT size of each
7233         component instead of HOST_BITS_PER_LONG.
7234         (output_loc_operands): Likewise.  For const8* assert
7235         HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
7236         (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
7237         rather than HOST_BITS_PER_LONG is >= 64.
7238         (add_AT_long_long): Remove val_hi and val_lo arguments, add
7239         val_const_double.
7240         (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
7241         HOST_BITS_PER_LONG for dw_val_class_long_long.
7242         (add_const_value_attribute): Adjust add_AT_long_long caller.  Don't
7243         handle TLS SYMBOL_REFs.  If CONST wraps a constant, tail recurse.
7244         (dwarf_stack_op_name): Handle DW_OP_implicit_value and
7245         DW_OP_stack_value.
7246         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
7247         Handle DW_OP_implicit_value.
7248         (extract_int): Move prototype earlier.
7249         (mem_loc_descriptor): For SUBREG punt if inner
7250         mode size is wider than DWARF2_ADDR_SIZE.  Handle SIGN_EXTEND
7251         and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}.  Handle
7252         EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
7253         UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
7254         (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
7255         instead of Pmode size.
7256         (loc_descriptor): Add MODE argument.  Handle CONST_INT, CONST_DOUBLE,
7257         CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
7258         attempt to handle other expressions.  Don't handle TLS SYMBOL_REFs.
7259         (concat_loc_descriptor, concatn_loc_descriptor,
7260         loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
7261         (add_location_or_const_value_attribute): Likewise.  For single
7262         location loc_lists attempt to use add_const_value_attribute
7263         for constant decls.  Add DW_AT_const_value even if
7264         NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
7265         in its expression.
7266         * cfgbuild.c (inside_basic_block_p): Handle debug insns.
7267         (control_flow_insn_p): Likewise.
7268         * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
7269         (separate_decls_in_region_debug_bind): New.
7270         (separate_decls_in_region): Process debug bind stmts afterwards.
7271         * recog.c (verify_changes): Handle debug insns.
7272         (extract_insn): Likewise.
7273         (peephole2_optimize): Skip debug insns.
7274         * dse.c (scan_insn): Skip debug insns.
7275         * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
7276         Pass it on.
7277         (setup_id_for_insn): Handle debug insns.
7278         (maybe_tidy_empty_bb): Adjust whitespace.
7279         (tidy_control_flow): Skip debug insns.
7280         (sel_remove_insn): Adjust for debug insns.
7281         (sel_estimate_number_of_insns): Skip debug insns.
7282         (create_insn_rtx_from_pattern): Handle debug insns.
7283         (create_copy_of_insn_rtx): Likewise.
7284         * sel-sched-.h (sel_bb_end): Declare.
7285         (sel_bb_empty_or_nop_p): New.
7286         (get_all_loop_exits): Use it.
7287         (_eligible_successor_edge_p): Likewise.
7288         (return_nop_to_pool): Adjust.
7289         * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
7290         * ira-lives.c (process_bb_node_lives): Skip debug insns.
7291         * gimple-pretty-print.c (dump_gimple_debug): New.
7292         (dump_gimple_stmt): Use it.
7293         (dump_bb_header): Skip gimple debug stmts.
7294         * regmove.c (optimize_reg_copy_1): Discount debug insns.
7295         (fixup_match_2): Likewise.
7296         (regmove_backward_pass): Likewise.  Simplify combined
7297         replacement.  Handle debug insns.
7298         * function.c (instantiate_virtual_regs): Handle debug insns.
7299         * function.h (struct emit_status): Add x_cur_debug_insn_uid.
7300         * print-rtl.h: Include cselib.h.
7301         (print_rtx): Print VALUEs.  Split out and recurse for VAR_LOCATIONs.
7302         * df.h (df_inns_rescan_debug_internal): Declare.
7303         * gcse.c (alloc_hash_table): Estimate n_insns.
7304         (cprop_insn): Don't regard debug insns as changes.
7305         (bypass_conditional_jumps): Skip debug insns.
7306         (one_pre_gcse_pass): Adjust.
7307         (one_code_hoisting_pass): Likewise.
7308         (compute_ld_motion_mems): Skip debug insns.
7309         (one_cprop_pass): Adjust.
7310         * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
7311         (if_convertible_stmt_p): Handle debug stmts.
7312         * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
7313         * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
7314         * ira-build.c (create_bb_allocnos): Skip debug insns.
7315         * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
7316         (has_single_use): Likewise.
7317         (single_imm_use): Likewise.
7318         (num_imm_uses): Likewise.
7319         * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
7320         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
7321         (create_outofssa_var_map): Likewise.
7322         * lower-subreg.c (adjust_decomposed_uses): New.
7323         (resolve_debug): New.
7324         (decompose_multiword_subregs): Use it.
7325         * tree-dfa.c (find_referenced_vars): Skip debug stmts.
7326         * emit-rtl.c: Include params.h.
7327         (cur_debug_insn_uid): Define.
7328         (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
7329         (copy_rtx_if_shared_1): Handle debug insns.
7330         (reset_used_flags): Likewise.
7331         (set_used_flags): LIkewise.
7332         (get_max_insn_count): New.
7333         (next_nondebug_insn): New.
7334         (prev_nondebug_insn): New.
7335         (make_debug_insn_raw): New.
7336         (emit_insn_before_noloc): Handle debug insns.
7337         (emit_jump_insn_before_noloc): Likewise.
7338         (emit_call_insn_before_noloc): Likewise.
7339         (emit_debug_insn_before_noloc): New.
7340         (emit_insn_after_noloc): Handle debug insns.
7341         (emit_jump_insn_after_noloc): Likewise.
7342         (emit_call_insn_after_noloc): Likewise.
7343         (emit_debug_insn_after_noloc): Likewise.
7344         (emit_insn_after): Take loc from earlier non-debug insn.
7345         (emit_jump_insn_after): Likewise.
7346         (emit_call_insn_after): Likewise.
7347         (emit_debug_insn_after_setloc): New.
7348         (emit_debug_insn_after): New.
7349         (emit_insn_before): Take loc from later non-debug insn.
7350         (emit_jump_insn_before): Likewise.
7351         (emit_call_insn_before): Likewise.
7352         (emit_debug_insn_before_setloc): New.
7353         (emit_debug_insn_before): New.
7354         (emit_insn): Handle debug insns.
7355         (emit_debug_insn): New.
7356         (emit_jump_insn): Handle debug insns.
7357         (emit_call_insn): Likewise.
7358         (emit): Likewise.
7359         (init_emit): Take min-nondebug-insn-uid into account.
7360         Initialize cur_debug_insn_uid.
7361         (emit_copy_of_insn_after): Handle debug insns.
7362         * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
7363         location of single rhs in place.
7364         (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
7365         (floor_sdiv_adjust): New.
7366         (cell_sdiv_adjust): New.
7367         (cell_udiv_adjust): New.
7368         (round_sdiv_adjust): New.
7369         (round_udiv_adjust): New.
7370         (wrap_constant): Moved from cselib.
7371         (unwrap_constant): New.
7372         (expand_debug_expr): New.
7373         (expand_debug_locations): New.
7374         (expand_gimple_basic_block): Drop hiding redeclaration.  Expand
7375         debug bind stmts.
7376         (gimple_expand_cfg): Expand debug locations.
7377         * cselib.c: Include tree-pass.h.
7378         (struct expand_value_data): New.
7379         (cselib_record_sets_hook): New.
7380         (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
7381         (cselib_clear_table): Move, and implemnet in terms of...
7382         (cselib_reset_table_with_next_value): ... this.
7383         (cselib_get_next_unknown_value): New.
7384         (discard_useless_locs): Don't discard preserved values.
7385         (cselib_preserve_value): New.
7386         (cselib_preserved_value_p): New.
7387         (cselib_preserve_definitely): New.
7388         (cselib_clear_preserve): New.
7389         (cselib_preserve_only_values): New.
7390         (new_cselib_val): Take rtx argument.  Dump it in details.
7391         (cselib_lookup_mem): Adjust.
7392         (expand_loc): Take regs_active in struct.  Adjust.  Silence
7393         dumps unless details are requested.
7394         (cselib_expand_value_rtx_cb): New.
7395         (cselib_expand_value_rtx): Rename and reimplment in terms of...
7396         (cselib_expand_value_rtx_1): ... this.  Adjust.  Silence dumps
7397         without details.  Copy more subregs.  Try to resolve values
7398         using a callback.  Wrap constants.
7399         (cselib_subst_to_values): Adjust.
7400         (cselib_log_lookup): New.
7401         (cselib_lookup): Call it.
7402         (cselib_invalidate_regno): Don't count preserved values as useless.
7403         (cselib_invalidate_mem): Likewise.
7404         (cselib_record_set): Likewise.
7405         (struct set): Renamed to cselib_set, moved to cselib.h.
7406         (cselib_record_sets): Adjust.  Call hook.
7407         (cselib_process_insn): Reset table when it would be cleared.
7408         (dump_cselib_val): New.
7409         (dump_cselib_table): New.
7410         * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
7411         (remove_forwarder_block): Support moving debug stmts.
7412         * cselib.h (cselib_record_sets_hook): Declare.
7413         (cselib_expand_callback): New type.
7414         (cselib_expand_value_rtx_cb): Declare.
7415         (cselib_reset_table_with_next_value): Declare.
7416         (cselib_get_next_unknown_value): Declare.
7417         (cselib_preserve_value): Declare.
7418         (cselib_preserved_value_p): Declare.
7419         (cselib_preserve_only_values): Declare.
7420         (dump_cselib_table): Declare.
7421         * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
7422         (try_crossjump_to_edge): Likewise.
7423         (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
7424         dominated blocks when debug stmts are present.
7425         * simplify-rtx.c (delegitimize_mem_from_attrs): New.
7426         * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
7427         (set_var_live_on_entry): Likewise.
7428         * loop-invariant.c (find_invariants_bb): Skip debug insns.
7429         * cfglayout.c (curr_location, last_location): Make static.
7430         (set_curr_insn_source_location): Don't avoid bouncing.
7431         (get_curr_insn_source_location): New.
7432         (get_curr_insn_block): New.
7433         (duplicate_insn_chain): Handle debug insns.
7434         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
7435         into debug stmts.
7436         * common.opt (fcompare-debug): Move to sort order.
7437         (fdump-unnumbered-links): Likewise.
7438         (fvar-tracking-assignments): New.
7439         (fvar-tracking-assignments-toggle): New.
7440         * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
7441         because of debug stmts.
7442         (mark_stmt_if_obviously_necessary): Mark debug stmts.
7443         (eliminate_unnecessary_stmts): Walk dominated blocks before
7444         dominators.
7445         * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
7446         * ira.c (memref_used_between_p): Skip debug insns.
7447         (update_equiv_regs): Likewise.
7448         * sched-deps.c (sd_lists_size): Accept empty list.
7449         (sd_init_insn): Mark debug insns.
7450         (sd_finish_insn): Unmark them.
7451         (sd_add_dep): Reject non-debug deps on debug insns.
7452         (fixup_sched_groups): Give debug insns group treatment.
7453         Skip debug insns.
7454         (sched_analyze_reg): Don't mark debug insns for sched before call.
7455         (sched_analyze_2): Handle debug insns.
7456         (sched_analyze_insn): Compute next non-debug insn.  Handle debug
7457         insns.
7458         (deps_analyze_insn): Handle debug insns.
7459         (deps_start_bb): Skip debug insns.
7460         (init_deps): Initialize last_debug_insn.
7461         * tree-ssa.c (target_for_debug_bind): New.
7462         (find_released_ssa_name): New.
7463         (propagate_var_def_into_debug_stmts): New.
7464         (propagate_defs_into_debug_stmts): New.
7465         (verify_ssa): Skip debug bind stmts without values.
7466         (warn_uninialized_vars): Skip debug stmts.
7467         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
7468         * rtl.c (rtx_equal_p_cb): Handle VALUEs.
7469         (rtx_equal_p): Likewise.
7470         * ira-costs.c (scan_one_insn): Skip debug insns.
7471         (process_bb_node_for_hard_reg_moves): Likewise.
7472         * rtl.h (DEBUG_INSN_P): New.
7473         (NONDEBUG_INSN_P): New.
7474         (MAY_HAVE_DEBUG_INSNS): New.
7475         (INSN_P): Accept debug insns.
7476         (RTX_FRAME_RELATED_P): Likewise.
7477         (INSN_DELETED_P): Likewise
7478         (PAT_VAR_LOCATION_DECL): New.
7479         (PAT_VAR_LOCATION_LOC): New.
7480         (PAT_VAR_OCATION_STATUS): New.
7481         (NOTE_VAR_LOCATION_DECL): Reimplement.
7482         (NOTE_VAR_LOCATION_LOC): Likewise.
7483         (NOTE_VAR_LOCATION_STATUS): Likewise.
7484         (INSN_VAR_LOCATION): New.
7485         (INSN_VAR_LOCATION_DECL): New.
7486         (INSN_VAR_LOCATION_LOC): New.
7487         (INSN_VAR_LOCATION_STATUS): New.
7488         (gen_rtx_UNKNOWN_VAR_LOC): New.
7489         (VAR_LOC_UNKNOWN_P): New.
7490         (NOTE_DURING_CALL_P): New.
7491         (SCHED_GROUP_P): Accept debug insns.
7492         (emit_debug_insn_before): Declare.
7493         (emit_debug_insn_before_noloc): Declare.
7494         (emit_debug_insn_beore_setloc): Declare.
7495         (emit_debug_insn_after): Declare.
7496         (emit_debug_insn_after_noloc): Declare.
7497         (emit_debug_insn_after_setloc): Declare.
7498         (emit_debug_insn): Declare.
7499         (make_debug_insn_raw): Declare.
7500         (prev_nondebug_insn): Declare.
7501         (next_nondebug_insn): Declare.
7502         (delegitimize_mem_from_attrs): Declare.
7503         (get_max_insn_count): Declare.
7504         (wrap_constant): Declare.
7505         (unwrap_constant): Declare.
7506         (get_curr_insn_source_location): Declare.
7507         (get_curr_insn_block): Declare.
7508         * tree-inline.c (insert_debug_decl_map): New.
7509         (processing_debug_stmt): New.
7510         (remap_decl): Don't create new mappings in debug stmts.
7511         (remap_gimple_op_r): Don't add references in debug stmts.
7512         (copy_tree_body_r): Likewise.
7513         (remap_gimple_stmt): Handle debug bind stmts.
7514         (copy_bb): Skip debug stmts.
7515         (copy_edges_for_bb): Likewise.
7516         (copy_debug_stmt): New.
7517         (copy_debug_stmts): New.
7518         (copy_body): Copy debug stmts at the end.
7519         (insert_init_debug_bind): New.
7520         (insert_init_stmt): Take id.  Skip and emit debug stmts.
7521         (setup_one_parameter): Remap variable earlier, register debug mapping.
7522         (estimate_num_insns): Skip debug stmts.
7523         (expand_call_inline): Preserve debug_map.
7524         (optimize_inline_calls): Check for no debug_stmts left-overs.
7525         (unsave_expr_now): Preserve debug_map.
7526         (copy_gimple_seq_and_replace_locals): Likewise.
7527         (tree_function_versioning): Check for no debug_stmts left-overs.
7528         Init and destroy debug_map as needed.  Split edges unconditionally.
7529         (build_duplicate_type): Init and destroy debug_map as needed.
7530         * tree-inline.h: Include gimple.h instead of pointer-set.h.
7531         (struct copy_body_data): Add debug_stmts and debug_map.
7532         * sched-int.h (struct ready_list): Add n_debug.
7533         (struct deps): Add last_debug_insn.
7534         (DEBUG_INSN_SCHED_P): New.
7535         (BOUNDARY_DEBUG_INSN_P): New.
7536         (SCHEDULE_DEBUG_INSN_P): New.
7537         (sd_iterator_cond): Accept empty list.
7538         * combine.c (create_log_links): Skip debug insns.
7539         (combine_instructions): Likewise.
7540         (cleanup_auto_inc_dec): New.  From Jakub Jelinek: Make sure the
7541         return value is always unshared.
7542         (struct rtx_subst_pair): New.
7543         (auto_adjust_pair): New.
7544         (propagate_for_debug_subst): New.
7545         (propagate_for_debug): New.
7546         (try_combine): Skip debug insns.  Propagate removed defs into
7547         debug insns.
7548         (next_nonnote_nondebug_insn): New.
7549         (distribute_notes): Use it.  Skip debug insns.
7550         (distribute_links): Skip debug insns.
7551         * tree-outof-ssa.c (set_location_for_edge): Likewise.
7552         * resource.c (mark_target_live_regs): Likewise.
7553         * var-tracking.c: Include cselib.h and target.h.
7554         (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
7555         MO_VAL_SET.
7556         (micro_operation_type_name): New.
7557         (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
7558         (struct micro_operation_def): Update comments.
7559         (decl_or_value): New type.  Use instead of decls.
7560         (struct emit_note_data_def): Add vars.
7561         (struct attrs_def): Use decl_or_value.
7562         (struct variable_tracking_info_def): Add permp, flooded.
7563         (struct location_chain_def): Update comment.
7564         (struct variable_part_def): Use decl_or_value.
7565         (struct variable_def): Make var_part a variable length array.
7566         (valvar_pool): New.
7567         (scratch_regs): New.
7568         (cselib_hook_called): New.
7569         (dv_is_decl_p): New.
7570         (dv_is_value_p): New.
7571         (dv_as_decl): New.
7572         (dv_as_value): New.
7573         (dv_as_opaque): New.
7574         (dv_onepart_p): New.
7575         (dv_pool): New.
7576         (IS_DECL_CODE): New.
7577         (check_value_is_not_decl): New.
7578         (dv_from_decl): New.
7579         (dv_from_value): New.
7580         (dv_htab_hash): New.
7581         (variable_htab_hash): Use it.
7582         (variable_htab_eq): Support values.
7583         (variable_htab_free): Free from the right pool.
7584         (attrs_list_member, attrs_list_insert): Use decl_or_value.
7585         (attrs_list_union): Adjust.
7586         (attrs_list_mpdv_union): New.
7587         (tie_break_pointers): New.
7588         (canon_value_cmp): New.
7589         (unshare_variable): Return possibly-modified slot.
7590         (vars_copy_1): Adjust.
7591         (var_reg_decl_set): Adjust.  Split out of...
7592         (var_reg_set): ... this.
7593         (get_init_value): Adjust.
7594         (var_reg_delete_and_set): Adjust.
7595         (var_reg_delete): Adjust.
7596         (var_regno_delete): Adjust.
7597         (var_mem_decl_set): Split out of...
7598         (var_mem_set): ... this.
7599         (var_mem_delete_and_set): Adjust.
7600         (var_mem_delete): Adjust.
7601         (val_store): New.
7602         (val_reset): New.
7603         (val_resolve): New.
7604         (variable_union): Adjust.  Speed up merge of 1-part vars.
7605         (variable_canonicalize): Use unshared slot.
7606         (VALUED_RECURSED_INTO): New.
7607         (find_loc_in_1pdv): New.
7608         (struct dfset_merge): New.
7609         (insert_into_intersection): New.
7610         (intersect_loc_chains): New.
7611         (loc_cmp): New.
7612         (canonicalize_loc_order_check): New.
7613         (canonicalize_values_mark): New.
7614         (canonicalize_values_star): New.
7615         (variable_merge_over_cur): New.
7616         (variable_merge_over_src): New.
7617         (dataflow_set_merge): New.
7618         (dataflow_set_equiv_regs): New.
7619         (remove_duplicate_values): New.
7620         (struct dfset_post_merge): New.
7621         (variable_post_merge_new_vals): New.
7622         (variable_post_merge_perm_vals): New.
7623         (dataflow_post_merge_adjust): New.
7624         (find_mem_expr_in_1pdv): New.
7625         (dataflow_set_preserve_mem_locs): New.
7626         (dataflow_set_remove_mem_locs): New.
7627         (dataflow_set_clear_at_call): New.
7628         (onepart_variable_different_p): New.
7629         (variable_different_p): Use it.
7630         (dataflow_set_different_1): Adjust.  Make detailed dump more verbose.
7631         (track_expr_p): Add need_rtl parameter.  Don't generate rtl
7632         if not needed.
7633         (track_loc_p): Pass it true.
7634         (struct count_use_info): New.
7635         (find_use_val): New.
7636         (replace_expr_with_values): New.
7637         (log_op_type): New.
7638         (use_type): New, partially split out of...
7639         (count_uses): ... this.  Count new micro-ops.
7640         (count_uses_1): Adjust.
7641         (count_stores): Adjust.
7642         (count_with_sets): New.
7643         (VAL_NEEDS_RESOLUTION): New.
7644         (VAL_HOLDS_TRACK_EXPR): New.
7645         (VAL_EXPR_IS_COPIED): New.
7646         (VAL_EXPR_IS_CLOBBERED): New.
7647         (add_uses): Adjust.  Generate new micro-ops.
7648         (add_uses_1): Adjust.
7649         (add_stores): Generate new micro-ops.
7650         (add_with_sets): New.
7651         (find_src_status): Adjust.
7652         (find_src_set_src): Adjust.
7653         (compute_bb_dataflow): Use dataflow_set_clear_at_call.
7654         Handle new micro-ops.  Canonicalize value equivalances.
7655         (vt_find_locations): Compute total size of hash tables for
7656         dumping.  Perform merge for var-tracking-assignments.  Don't
7657         disregard single-block loops.
7658         (dump_attrs_list): Handle decl_or_value.
7659         (dump_variable): Take variable.  Deal with decl_or_value.
7660         (dump_variable_slot): New.
7661         (dump_vars): Use it.
7662         (dump_dataflow_sets): Adjust.
7663         (set_slot_part): New, extended to support one-part variables
7664         after splitting out of...
7665         (set_variable_part): ... this.
7666         (clobber_slot_part): New, split out of...
7667         (clobber_variable_part): ... this.
7668         (delete_slot_part): New, split out of...
7669         (delete_variable_part): .... this.
7670         (check_wrap_constant): New.
7671         (vt_expand_loc_callback): New.
7672         (vt_expand_loc): New.
7673         (emit_note_insn_var_location): Adjust.  Handle values.  Handle
7674         EMIT_NOTE_AFTER_CALL_INSN.
7675         (emit_notes_for_differences_1): Adjust.  Handle values.
7676         (emit_notes_for_differences_2): Likewise.
7677         (emit_notes_for_differences): Adjust.
7678         (emit_notes_in_bb): Take pointer to set.  Emit AFTER_CALL_INSN notes.
7679         Adjust.  Handle new micro-ops.
7680         (vt_add_function_parameters): Adjust.  Create and bind values.
7681         (vt_initialize): Adjust.  Initialize scratch_regs and
7682         valvar_pool, flooded and perm..  Initialize and use cselib.  Log
7683         operations.  Move some code to count_with_sets and add_with_sets.
7684         (delete_debug_insns): New.
7685         (vt_debug_insns_local): New.
7686         (vt_finalize): Release permp, valvar_pool, scratch_regs.  Finish
7687         cselib.
7688         (var_tracking_main): If var-tracking-assignments is enabled
7689         but var-tracking isn't, delete debug insns and leave.  Likewise
7690         if we exceed limits or fail the stack adjustments tests, and
7691         after all var-tracking processing.
7692         More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
7693         (dataflow_set): Add traversed_vars.
7694         (value_chain, const_value_chain): New typedefs.
7695         (value_chain_pool, value_chains): New variables.
7696         (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
7697         add_value_chains, add_cselib_value_chains, remove_value_chain,
7698         remove_value_chains, remove_cselib_value_chains): New functions.
7699         (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
7700         shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
7701         static inlines.
7702         (shared_hash_find_slot_unshare, shared_hash_find_slot,
7703         shared_hash_find_slot_noinsert, shared_hash_find): Update.
7704         (dst_can_be_shared): New variable.
7705         (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
7706         Clear dst_can_be_shared.  If set->traversed_vars is non-NULL and
7707         different from set->vars, look up slot again instead of using the
7708         passed in slot.
7709         (dataflow_set_init): Initialize traversed_vars.
7710         (variable_union): Use shared_hash_*.  Use initially NO_INSERT
7711         lookup if set->vars is shared.  Don't keep slot cleared before
7712         calling unshare_variable.  Unshare set->vars if needed.  Adjust
7713         unshare_variable callers.  Clear dst_can_be_shared if needed.
7714         Even ->refcount == 1 vars must be unshared if set->vars is shared
7715         and var needs to be modified.
7716         (dataflow_set_union): Set traversed_vars during canonicalization.
7717         (VALUE_CHANGED, DECL_CHANGED): Define.
7718         (set_dv_changed, dv_changed_p): New static inlines.
7719         (track_expr_p): Clear DECL_CHANGED.
7720         (dump_dataflow_sets): Set it.
7721         (variable_was_changed): Call set_dv_changed.
7722         (emit_note_insn_var_location): Likewise.
7723         (changed_variables_stack): New variable.
7724         (check_changed_vars_1, check_changed_vars_2): New functions.
7725         (emit_notes_for_changes): Do nothing if changed_variables is
7726         empty.  Traverse changed_variables with check_changed_vars_1,
7727         call check_changed_vars_2 on each changed_variables_stack entry.
7728         (emit_notes_in_bb): Add SET argument.  Just clear it at the
7729         beginning, use it instead of local &set, don't destroy it at the end.
7730         (vt_emit_notes): Call dataflow_set_clear early on all
7731         VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
7732         computed set, dataflow_set_clear also VTI(bb)->in when we are
7733         done with the basic block.  Initialize changed_variables_stack,
7734         free it afterwards.  If ENABLE_CHECKING verify that after noting
7735         differences to an empty set value_chains hash table is empty.
7736         (vt_initialize): Initialize value_chains and value_chain_pool.
7737         (vt_finalize): Delete value_chains htab, free value_chain_pool.
7738         (variable_tracking_main): Call dump_dataflow_sets before calling
7739         vt_emit_notes, not after it.
7740         * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
7741         (propagate_var_def_into_debug_stmts): Declare.
7742         * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
7743         (df_set_note): Reject debug insns.
7744         (df_whole_mw_reg_dead_p): Take added_notes_p argument.  Don't
7745         add notes to debug insns.
7746         (df_note_bb_compute): Adjust.  Likewise.
7747         (df_simulate_uses): Skip debug insns.
7748         (df_simulate_initialize_backwards): Likewise.
7749         * reg-stack.c (subst_stack_regs_in_debug_insn): New.
7750         (subst_stack_regs_pat): Reject debug insns.
7751         (convert_regs_1): Handle debug insns.
7752         * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
7753         (print-rtl.o): Depend on cselib.h.
7754         (cselib.o): Depend on TREE_PASS_H.
7755         (var-tracking.o): Depend on cselib.h and TARGET_H.
7756         * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
7757         (init_ready_list): Skip boundary debug insns.
7758         (add_branch_dependences): Skip debug insns.
7759         (free_block_dependencies): Check for blocks with only debug insns.
7760         (compute_priorities): Likewise.
7761         * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
7762         (gimple_build_with_ops_stat): Take subcode as unsigned.  Adjust
7763         all callers.
7764         (gimple_build_debug_bind_stat): New.
7765         (empty_body_p): Skip debug stmts.
7766         (gimple_has_side_effects): Likewise.
7767         (gimple_rhs_has_side_effects): Likewise.
7768         * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
7769         (gimple_build_debug_bind_stat): Declare.
7770         (gimple_build_debug_bind): Define.
7771         (is_gimple_debug): New.
7772         (gimple_debug_bind_p): New.
7773         (gimple_debug_bind_get_var): New.
7774         (gimple_debug_bind_get_value): New.
7775         (gimple_debug_bind_get_value_ptr): New.
7776         (gimple_debug_bind_set_var): New.
7777         (gimple_debug_bind_set_value): New.
7778         (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
7779         (gimple_debug_bind_reset_value): New.
7780         (gimple_debug_bind_has_value_p): New.
7781         (gsi_next_nondebug): New.
7782         (gsi_prev_nondebug): New.
7783         (gsi_start_nondebug_bb): New.
7784         (gsi_last_nondebug_bb): New.
7785         * sched-vis.c (print_pattern): Handle VAR_LOCATION.
7786         (print_insn): Handle DEBUG_INSN.
7787         * tree-cfg.c (remove_bb): Walk stmts backwards.  Let loc
7788         of first insn prevail.
7789         (first_stmt): Skip debug stmts.
7790         (first_non_label_stmt): Likewise.
7791         (last_stmt): Likewise.
7792         (has_zero_uses_1): New.
7793         (single_imm_use_1): New.
7794         (verify_gimple_debug): New.
7795         (verify_types_in_gimple_stmt): Handle debug stmts.
7796         (verify_stmt): Likewise.
7797         (debug_loop_num): Skip debug stmts.
7798         (remove_edge_and_dominated_blocks): Remove dominators last.
7799         * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
7800         (linearize_expr): Likewise.
7801         * config/i386/i386.c (ix86_delegitimize_address): Call
7802         default implementation.
7803         * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
7804         (group_barrier_needed): Skip debug insns.
7805         (emit_insn_group_barriers): Likewise.
7806         (emit_all_insn_group_barriers): Likewise.
7807         (ia64_variable_issue): Handle debug insns.
7808         (ia64_dfa_new_cycle): Likewise.
7809         (final_emit_insn_group_barriers): Skip debug insns.
7810         (ia64_dwarf2out_def_steady_cfa): Take frame argument.  Don't
7811         def cfa without frame.
7812         (process_set): Likewise.
7813         (process_for_unwind_directive): Pass frame on.
7814         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
7815         (rs6000_delegitimize_address): New.
7816         (rs6000_debug_adjust_cost): Handle debug insns.
7817         (is_microcoded_insn): Likewise.
7818         (is_cracked_insn): Likewise.
7819         (is_nonpipeline_insn): Likewise.
7820         (insn_must_be_first_in_group): Likewise.
7821         (insn_must_be_last_in_group): Likewise.
7822         (force_new_group): Likewise.
7823         * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
7824         contains only debug insns.
7825         (rtl_merge_blocks): Skip debug insns.
7826         (purge_dead_edges): Likewise.
7827         (rtl_block_ends_with_call_p): Skip debug insns.
7828         * dce.c (deletable_insn_p): Handle VAR_LOCATION.
7829         (mark_reg_dependencies): Skip debug insns.
7830         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
7831         * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
7832         * tree-ssa-threadedge.c
7833         (record_temporary_equivalences_from_stmts): Skip debug stmts.
7834         * regcprop.c (replace_oldest_value_addr): Skip debug insns.
7835         (replace_oldest_value_mem): Use ALL_REGS for debug insns.
7836         (copyprop_hardreg_forward_1): Handle debug insns.
7837         * reload1.c (reload): Skip debug insns.  Replace unassigned
7838         pseudos in debug insns with their equivalences.
7839         (eliminate_regs_in_insn): Skip debug insns.
7840         (emit_input_reload_insns): Skip debug insns at first, adjust
7841         them later.
7842         * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
7843         (get_indirect_ref_operands): Pass opf_no_vops on.
7844         (get_expr_operands): Likewise.  Skip debug stmts.
7845         (parse_ssa_operands): Scan debug insns with opf_no_vops.
7846
7847 2009-09-01  Richard Henderson  <rth@redhat.com>
7848
7849         * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
7850         stmt_ends_pp_p statements at least once.
7851         * tree-vrp.c (vrp_initialize): Likewise.
7852         (vrp_visit_stmt): Be prepared for non-interesting stmts.
7853
7854 2009-09-01  Dodji Seketeli  <dodji@redhat.com>
7855
7856         PR bootstrap/41205
7857         Fix AIX bootstrap after PR debug/30161
7858         * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
7859         that is a GNU extension.
7860         (tmpl_value_parm_die_table): Move the definition of this global
7861         outside #ifdef DWARF2_DEBUGGING_INFO region.
7862
7863 2009-09-01  Richard Guenther  <rguenther@suse.de>
7864
7865         * tree.c (tree_expr_size): New function.
7866         * tree.h (tree_expr_size): Declare.
7867         * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
7868         * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
7869         * langhooks.c (lhd_expr_size): Remove.
7870         * langhooks.h (struct lang_hooks): Remove expr_size.
7871         * explow.c (expr_size): Use tree_expr_size.
7872         (int_expr_size): Likewise.
7873         * langhooks-def.h (lhd_expr_size): Remove.
7874         (LANG_HOOKS_EXPR_SIZE): Likewise.
7875         (LANG_HOOKS_INITIALIZER): Adjust.
7876
7877 2009-09-01  Richard Guenther  <rguenther@suse.de>
7878
7879         * tree-flow.h (mark_addressable): Move declaration ...
7880         * tree.h (mark_addressable): ... here.
7881         * stmt.c (expand_asm_operands): Use mark_addressable, not
7882         lang_hooks.mark_addressable.
7883         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
7884         LANG_HOOKS_MARK_ADDRESSABLE.
7885         * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
7886         * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
7887
7888 2009-08-31  Chris Demetriou  <cgd@google.com>
7889
7890         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
7891         vectorize if not TARGET_SSE2.
7892
7893 2009-08-31  DJ Delorie  <dj@redhat.com>
7894
7895         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
7896         registers if no coprocessor is enabled.
7897
7898 2009-08-31  Dodji Seketeli  <dodji@redhat.com>
7899
7900         PR debug/30161
7901         * cgraph.h (cgraph_get_node): Declare ...
7902         * cgraph.c (cgraph_get_node): ... new function.
7903         * dwarf2out.c (gen_generic_params_dies,
7904         generic_parameter_die, tree_add_const_value_attribute_for_decl,
7905         make_ith_pack_parameter_name,
7906         append_entry_to_tmpl_value_parm_die_table,
7907         gen_remaining_tmpl_value_param_die_attribute): New functions.
7908         (gen_subprogram_die): Generate debug info for template parameters
7909         if debug info level is higher than DINFO_LEVEL_TERSE.
7910         Use tree_add_const_value_attribute_for_decl instead of
7911         tree_add_const_value_attribute.
7912         (gen_const_die): Use tree_add_const_value_attribute_for_decl
7913         instead of tree_add_const_value_attribute.
7914         (gen_struct_or_union_type_die): Generate debug
7915         info for template parameters if debug info level is higher than
7916         DINFO_LEVEL_TERSE.
7917         (tree_add_const_value_attribute): Handle integral and pointer
7918         constants. Update comment.
7919         (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
7920         (dwarf_attr_name): Support DW_AT_GNU_template_name.
7921         (reference_to_unused): Fix thinko. Remove redundant predicates from
7922         tests.
7923         (tree_add_const_value_attribute): Make this work for constant
7924         expressions only.
7925         tree_add_const_value_attribute_for_decl is to be used for variable
7926         DECLs now.
7927         (add_location_or_const_value_attribute): Use
7928         tree_add_const_value_attribute_for_decl now.
7929         (dwarf2out_finish): Emit the DW_AT_const_value attribute of
7930         DW_TAG_template_value_param DIEs after function DIEs have been
7931         emitted.
7932         * langhooks.h (lang_hooks_for_types): Add
7933         get_argument_pack_elems.
7934         (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
7935         (lang_hooks): Added get_innermost_generic_parms,
7936         get_innermost_generic_args.
7937         * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
7938         LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
7939         LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
7940         LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
7941
7942 2009-08-31  DJ Delorie  <dj@redhat.com>
7943
7944         * config/mep/mep.c (machine_function): Add frame_locked flag.  Set
7945         it once we start generating the prologue or epilogue.
7946         (mep_call_saves_register): If the frame is locked, re-use
7947         cached values.
7948         (mep_assign_save_slots): New, broken out from mep_expand_prologue.
7949         (mep_expand_prologue): Call it.
7950         (mep_expand_epilogue): Likewise.
7951         (mep_start_function): Use the same logic as mep_expand_prologue.
7952         (mep_pass_by_reference): Make logic more readable.
7953         (mep_return_in_memory): Zero-sized objects are passed in memory.
7954         (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
7955
7956 2009-08-31  Richard Guenther  <rguenther@suse.de>
7957
7958         * builtins.c (fold_builtin_memory_op): Use the alias oracle
7959         to query if the memory regions for memmove overlap.
7960         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
7961         asserts on pointers, instead deal with odd trees.
7962         (ptr_derefs_may_alias_p): Likewise.
7963         (refs_may_alias_p_1): Constructor bases also never alias.
7964
7965 2009-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
7966
7967         * doc/install.texi (Final install): Adjust reference on where to
7968         order printed manuals.
7969
7970 2009-08-30  Olivier Hainque  <hainque@adacore.com>
7971
7972         * dwarf2out.c (switch_to_frame_table_section): Move
7973         definition prior to first use.
7974
7975 2009-08-30  Richard Guenther  <rguenther@suse.de>
7976
7977         PR tree-optimization/41186
7978         * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
7979         (ao_ref_init_from_ptr_and_size): New function.
7980         (ref_maybe_used_by_call_p_1): Be more precise tracking
7981         used ranges for builtin functions.
7982         (ref_maybe_used_by_call_p): Adjust.
7983         (call_may_clobber_ref_p_1): Be more precise tracking clobbered
7984         ranges for builtin functions.
7985         * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
7986
7987 2009-08-30  Alan Modra  <amodra@bigpond.net.au>
7988
7989         PR target/41081
7990         * fwprop.c (get_reg_use_in): Delete.
7991         (free_load_extend): New function.
7992         (forward_propagate_subreg): Use it.
7993
7994 2009-08-29  Kaz Kojima  <kkojima@gcc.gnu.org>
7995
7996         * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
7997
7998 2009-08-29  Kai Tietz<kai.tietz@onevision.com>
7999
8000         PR/41184
8001         * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
8002         padding.
8003
8004 2009-08-29  Douglas B Rupp  <rupp@gnat.com>
8005
8006         * crtstuff.c (__do_global_dtors_aux): Use atexit if no
8007         fini or fini_array section.
8008
8009 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8010
8011         * graphite-dependences.c (graphite_legal_transform_bb): Call
8012         pbb_remove_duplicate_pdrs.
8013         * graphite-poly.c (can_collapse_pdr): Removed.
8014         (pdr_find_duplicate): Removed.
8015         (can_collapse_pdrs): New.
8016         (pbb_remove_duplicate_pdrs): New.
8017         (new_poly_dr): Do not look for duplicates.
8018         * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
8019         (PBB_PDR_DUPLICATES_REMOVED): New.
8020         (pbb_remove_duplicate_pdrs): Declared.
8021
8022 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8023
8024         * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
8025         the strides by multiplying by PDR_NB_REFS.
8026         * graphite-poly.c (can_collapse_pdr): New.
8027         (pdr_find_duplicate): New.
8028         (new_poly_dr): Call pdr_find_duplicate.  Collapse duplicate PDRs.
8029         Initialize PDR_NB_REFS.
8030         * graphite-poly.h (struct poly_dr): Add field nb_refs.
8031         (PDR_NB_REFS): New.
8032         (new_poly_dr): Number of subscripts is a graphite_dim_t.
8033
8034 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8035
8036         PR middle-end/40965
8037         * graphite-poly.c (apply_poly_transforms): Remove legality test before
8038         any transform.
8039
8040 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8041
8042         * graphite-dependences.c (pddr_original_scattering): Return NULL
8043         for read-read dependence relations.
8044         * graphite-poly.h (enum poly_dr_type): Fix comment.
8045         (pdr_read_p): New.
8046         (pdr_write_p): New.
8047         (pdr_may_write_p): New.
8048
8049 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8050
8051         * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
8052         (struct poly_dr): Same.
8053         (new_poly_dr): Same.
8054         * graphite-poly.c (new_poly_dr): Same.
8055         * graphite-dependences.c (dot_deps): Disable call to system.
8056
8057 2009-08-28  Cary Coutant  <ccoutant@google.com>
8058
8059         PR debug/41063
8060         * dwarf2out.c (gen_type_die_with_usage): Use proper context for
8061         struct/union/enum types local to a function.
8062
8063 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
8064             Sebastian Pop  <sebastian.pop@amd.com>
8065
8066         * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
8067         pbb_strip_mine_time_depth.  Changed the implementation so that
8068         transformation is expressed as a transformation on
8069         time (scatttering) dimensions.  Also, ensures that the 2d+1
8070         scheduling format is preserved.
8071         (pbb_strip_mine_profitable_p): Profitability is based on the
8072         iteration number of a given time (scattering) dimension,
8073         and not on a original loop depth dimension.
8074         (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
8075         (pbb_do_strip_mine): Call psct_dynamic_dim.
8076         * graphite-poly.c (pbb_number_of_iterations_at_time): New.
8077         * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
8078         (pbb_nb_dynamic_scattering_transform): New.
8079         (psct_dynamic_dim): New.
8080
8081 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
8082
8083         * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
8084         * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
8085         * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
8086         * graphite-interchange.c (build_linearized_memory_access): Same.
8087         (memory_stride_in_loop): Same.
8088
8089 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8090
8091         * graphite-dependences.c (pddr_original_scattering): New.
8092         (graphite_legal_transform_dr): Call pddr_original_scattering.
8093         (dot_deps_1): New.
8094         (dot_deps): New.
8095         * graphite-dependences.h (dot_deps): Declared.
8096         * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
8097         (print_pdr): Print PDR_ID.
8098         * graphite-poly.h (struct poly_dr): Add field id.
8099         (PDR_ID): New.
8100         (pbb_index): New.
8101         * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
8102
8103 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8104
8105         * graphite-dependences.c (graphite_carried_dependence_level_k): Do
8106         not delete the original dependence relation.
8107
8108 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8109
8110         * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
8111         (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
8112         (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
8113         (free_poly_ddr): New.
8114         (pddr_is_empty): New.
8115         (dependence_polyhedron_1): Now returns a poly_ddr_p.
8116         (dependence_polyhedron): Same.  Remove useless gcc_assert.
8117         Remove fprintfs.
8118         (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
8119         (graphite_carried_dependence_level_k): Call pddr_is_empty.
8120         * graphite-dependences.h (enum poly_dependence_kind): New.
8121         (poly_dr_pair): Renamed poly_ddr.  Added a field kind.
8122         (PDRP_SOURCE): Renamed PDDR_SOURCE.
8123         (PDRP_SINK): Renamed PDDR_SINK.
8124         (PDRP_DDP): Renamed PDDR_DDP.
8125         (PDDR_KIND): New.
8126         (free_poly_ddr): Declared.
8127         * graphite-poly.c (new_scop): Use the new hash function names.
8128         * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
8129         into original_pddrs.
8130         (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
8131
8132 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8133
8134         * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
8135         bounds with LT_EXPR to make niter analysis more precise on code
8136         generated by Graphite.
8137
8138 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8139
8140         * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
8141         (graphite_legal_transform_bb): Same.
8142         (poly_drs_may_alias_p): Same.
8143
8144 2009-08-28  Richard Guenther  <rguenther@suse.de>
8145
8146         * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
8147
8148 2009-08-28  Jan Beulich  <jbeulich@novell.com>
8149
8150         * config/i386/netware.c: Include langhooks.h.
8151         (i386_nlm_encode_section_info): Simplify.
8152         (netware_override_options): Delete.
8153         * config/i386/netware.h (netware_override_options): Delete
8154         declaration.
8155         (OVERRIDE_OPTIONS): Delete definition.
8156         (SUBTARGET_OVERRIDE_OPTIONS): Define.
8157         (ASM_COMMENT_START): Define.
8158         * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
8159
8160 2009-08-28  Jan Beulich  <jbeulich@novell.com>
8161
8162         * configure.ac: For in-tree ld, do a plain version check to
8163         determine whether comdat groups are supported.
8164         * configure: Regenerate.
8165
8166 2009-08-28  Olivier Hainque  <hainque@adacore.com>
8167
8168         * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
8169         always defined.  Reflect definition or absence of such for
8170         COLLECT_EXPORT_LIST.  Readability helper.
8171         (scanfilter): New enum, to help control what symbols
8172         are to be considered or ignored by scan_prog_file.
8173         (enum pass): Rename as "scanpass", moved together with scanfilter
8174         prior to scan_prog_file's prototype.
8175         (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
8176         Group prototype with the scanpass/scanfilter definitions, factorize
8177         head comments for the several implementations at the prototype.
8178         (main): Reorganize the first pass link control to let AIX
8179         drag only the needed frame tables in executables.  Prevent
8180         frame tables collection during the scan aimed at static ctors.
8181         Pre-link and scan for frame tables later to compensate.
8182         * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
8183         A C statement to issue assembly directives that create a reference
8184         to the given DWARF table identifier label from the current function
8185         section.
8186         * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
8187         to differentiate first time section entry.  Only emit a .data
8188         tables start identifier label the first time around.
8189         (switch_to_frame_table_section): New function.  Helper for
8190         output_call_frame_info to switch possibly BACK into the eh_frame
8191         or the debug_frame section depending on FOR_EH.
8192         (output_call_frame_info): Use helper to first enter the proper
8193         frame section.
8194         (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
8195         emit a link to the frame table start label from each function
8196         section.
8197         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
8198         New function.  Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
8199         * config/rs6000/rs6000-protos.h: Declare it.
8200         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
8201
8202 2009-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
8203
8204         * config/sh/sh.c (split_branches): Check the result of
8205         next_active_insn.
8206
8207 2009-08-27  Steve Ellcey  <sje@cup.hp.com>
8208
8209         * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
8210         using -pthread -fopenmp
8211
8212 2009-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
8213
8214         * doc/service.texi (service directory): Update URL.
8215
8216 2009-08-27  Uros Bizjak  <ubizjak@gmail.com>
8217
8218         PR rtl-optimization/40861
8219         * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
8220         extract word from a multi-word subreg for negative byte positions.
8221
8222 2009-08-27  Tristan Gingold  <gingold@adacore.com>
8223             Douglas B Rupp  <rupp@gnat.com>
8224
8225         * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
8226         (SECTION_VMS_OVERLAY): Define.
8227         (ia64_vms_common_object_attribute): Added.  Handle the "common_object"
8228         attribute.
8229         (ia64_vms_elf_asm_named_section): Added.  Generate .section pseudo-op
8230         for common_object.
8231         (ia64_vms_output_aligned_decl_common): Added.  Generate pseudo-op for
8232         common_object declarations.
8233         (ia64_section_type_flags): Set section flag for common_object.
8234         * config/ia64/ia64-protos.h
8235         (ia64_vms_output_aligned_decl_common): Declare.
8236         (ia64_vms_elf_asm_named_section): Declare.
8237
8238 2009-08-27  Michael Matz  <matz@suse.de>
8239
8240         * expr.c (expand_expr_real_2): New function taking exploded
8241         unary or binary expression, split out from ...
8242         (expand_expr_real_1): ... here.  Move over all unary/binary
8243         switch parts to above function, in particular these codes:
8244         PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
8245         MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
8246         ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
8247         FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
8248         FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
8249         BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
8250         BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
8251         LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
8252         NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
8253         UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
8254         WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
8255         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
8256         VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
8257         VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
8258         VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
8259         VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
8260         VEC_PACK_FIX_TRUNC_EXPR.
8261         (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
8262         full expression.
8263
8264 2009-08-27  Richard Guenther  <rguenther@suse.de>
8265
8266         * gengtype.c (main): Handle uint64_t.
8267         * ipa-utils.c (get_base_var): Indent properly.
8268         * tree-ssa-live.c (debug_scope_block): New function.
8269         * tree-flow.h (debug_scope_block): Declare.
8270         * tree-ssa-copy.c (replace_exp_1): Add vertical space.
8271         * basic-block.h (enum profile_status): Rename to
8272         enum profile_status_d.
8273         (x_profile_status): Adjust type.
8274
8275 2009-08-27  Dodji Seketeli  <dodji@redhat.com>
8276
8277         PR debug/41170
8278         * dwarf2out.c (get_context_die): Declare this static function.
8279         (gen_type_die_with_usage): Make sure a DIE is a generated for
8280         the context of a typedef.
8281
8282 2009-08-26  Anatoly Sokolov  <aesok@post.ru>
8283
8284         * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
8285         switch.
8286
8287 2009-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
8288
8289         * config/mips/mips-protos.h (mips_output_sync): Declare.
8290         (mips_sync_loop_insns): Likewise.
8291         (mips_output_sync_loop): Replace first two parameters with an rtx.
8292         * config/mips/mips.c (mips_multi_member): New structure.
8293         (mips_multi_members): New variable.
8294         (mips_multi_start): New function.
8295         (mips_multi_add): Likewise.
8296         (mips_multi_add_insn): Likewise.
8297         (mips_multi_add_label): Likewise.
8298         (mips_multi_last_index): Likewise.
8299         (mips_multi_copy_insn): Likewise.
8300         (mips_multi_set_operand): Likewise.
8301         (mips_multi_write): Likewise.
8302         (mips_print_operand_punctuation): Remove '%|' and '%-'.
8303         (mips_init_print_operand_punct): Update accordingly.
8304         (mips_start_ll_sc_sync_block): New function.
8305         (mips_end_ll_sc_sync_block): Likewise.
8306         (mips_output_sync): Likewise.
8307         (mips_sync_insn1_template): Likewise.
8308         (mips_sync_insn2_template): Likewise.
8309         (mips_get_sync_operand): Likewise.
8310         (mips_process_sync_loop): Likewise.
8311         (mips_output_sync_loop): Use mips_process_sync_loop.
8312         (mips_sync_loop_insns): New function.
8313         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
8314         (MIPS_COMPARE_AND_SWAP_12): Likewise.
8315         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
8316         (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
8317         (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
8318         (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
8319         (MIPS_SYNC_OLD_OP_12): Likewise.
8320         (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
8321         (MIPS_SYNC_NEW_OP_12): Likewise.
8322         (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
8323         (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
8324         (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
8325         (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
8326         (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
8327         (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
8328         * config/mips/mips.md (sync_mem): New attribute.
8329         (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
8330         (sync_exclusive_mask, sync_required_oldval): Likewise.
8331         (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
8332         (sync_release_barrier): Likewise.
8333         (length): Handle sync loops.
8334         (sync): Use mips_output_sync.
8335         * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
8336         (sync_compare_and_swap<mode>): Set the new sync_* attributes
8337         and use mips_output_sync_loop.
8338         (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
8339         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
8340         (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
8341         (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
8342         (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
8343         (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
8344         (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
8345         (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
8346         (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
8347
8348 2009-08-26  Richard Guenther  <rguenther@suse.de>
8349
8350         PR middle-end/41163
8351         * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
8352         the types to not match.
8353         * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
8354         verification.
8355         * tree-ssa.c (useless_type_conversion_p): Conversions to
8356         pointers to unprototyped functions are useless.
8357
8358 2009-08-26  Richard Guenther  <rguenther@suse.de>
8359
8360         * tree-ssa-structalias.c (create_variable_info_for): Remove strange
8361         whole-program condition, prepare to be called for non-globals.
8362         (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
8363         params build a representative with known type and track its fields.
8364
8365 2009-08-26  Uros Bizjak  <ubizjak@gmail.com>
8366
8367         * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
8368         clearing by a taken branch.
8369         (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
8370         effectively after bbro pass.
8371         (sync_nand<mode>): Ditto.
8372         (sync_old_<fetchop_name><mode>): Ditto.
8373         (sync_old_nand<mode>): Ditto.
8374         (sync_new_<fetchop_name><mode>): Dito.
8375         (sync_new_nand<mode>): Ditto.
8376         (sync_compare_and_swap<mode>_1): Ditto.
8377         (*sync_compare_and_swap<mode>): Ditto.
8378         (sync_lock_test_and_set<mode>_1): Ditto.
8379         ("sync_lock_test_and_set<mode>): Ditto.
8380
8381 2009-08-25  Douglas B Rupp  <rupp@gnat.com>
8382
8383         * hwint.h (HOST_LONG_FORMAT): New macro
8384         * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
8385         Use HOST_PTR_PRINTF.
8386         * system.h (HOST_PTR_PRINTF): Resurrect old macro
8387         * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
8388         (HOST_PTR_PRINTF): Document.
8389
8390 2009-08-25 Jan Hubicka  <jh@suse.cz>
8391
8392         * config/i386/bmmintrin.h: Replace by #error.
8393
8394         Revert:
8395         Michael Meissner  <michael.meissner@amd.com>
8396         Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
8397         Tony Linthicum  <tony.linthicum@amd.com>
8398
8399         * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
8400         (TARGET_ROUND): New macro for the round/ptest instructions which
8401         are shared between SSE4.1 and SSE5.
8402         (OPTION_MASK_ISA_ROUND): Ditto.
8403         (OPTION_ISA_ROUND): Ditto.
8404         (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
8405         (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
8406
8407         * config/i386/i386.opt (-msse5): New switch for SSE5 support.
8408         (-mfused-madd): New switch to give users control over whether the
8409         compiler optimizes to use the multiply/add SSE5 instructions.
8410
8411         * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
8412         (ix86_handle_option): Turn off 3dnow if -msse5.
8413         (override_options): Add SSE5 support.
8414         (print_operand): %Y prints comparison codes for SSE5 com/pcom
8415         instructions.
8416         (ix86_expand_sse_movcc): Add SSE5 support.
8417         (ix86_expand_sse5_unpack): New function to use pperm to unpack a
8418         vector type to the next largest size.
8419         (ix86_expand_sse5_pack): New function to use pperm to pack a
8420         vector type to the next smallest size.
8421         (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
8422         (IX86_BUILTIN_FMADDSD): Ditto.
8423         (IX86_BUILTIN_FMADDPS): Ditto.
8424         (IX86_BUILTIN_FMADDPD): Ditto.
8425         (IX86_BUILTIN_FMSUBSS): Ditto.
8426         (IX86_BUILTIN_FMSUBSD): Ditto.
8427         (IX86_BUILTIN_FMSUBPS): Ditto.
8428         (IX86_BUILTIN_FMSUBPD): Ditto.
8429         (IX86_BUILTIN_FNMADDSS): Ditto.
8430         (IX86_BUILTIN_FNMADDSD): Ditto.
8431         (IX86_BUILTIN_FNMADDPS): Ditto.
8432         (IX86_BUILTIN_FNMADDPD): Ditto.
8433         (IX86_BUILTIN_FNMSUBSS): Ditto.
8434         (IX86_BUILTIN_FNMSUBSD): Ditto.
8435         (IX86_BUILTIN_FNMSUBPS): Ditto.
8436         (IX86_BUILTIN_FNMSUBPD): Ditto.
8437         (IX86_BUILTIN_PCMOV_V2DI): Ditto.
8438         (IX86_BUILTIN_PCMOV_V4SI): Ditto.
8439         (IX86_BUILTIN_PCMOV_V8HI): Ditto.
8440         (IX86_BUILTIN_PCMOV_V16QI): Ditto.
8441         (IX86_BUILTIN_PCMOV_V4SF): Ditto.
8442         (IX86_BUILTIN_PCMOV_V2DF): Ditto.
8443         (IX86_BUILTIN_PPERM): Ditto.
8444         (IX86_BUILTIN_PERMPS): Ditto.
8445         (IX86_BUILTIN_PERMPD): Ditto.
8446         (IX86_BUILTIN_PMACSSWW): Ditto.
8447         (IX86_BUILTIN_PMACSWW): Ditto.
8448         (IX86_BUILTIN_PMACSSWD): Ditto.
8449         (IX86_BUILTIN_PMACSWD): Ditto.
8450         (IX86_BUILTIN_PMACSSDD): Ditto.
8451         (IX86_BUILTIN_PMACSDD): Ditto.
8452         (IX86_BUILTIN_PMACSSDQL): Ditto.
8453         (IX86_BUILTIN_PMACSSDQH): Ditto.
8454         (IX86_BUILTIN_PMACSDQL): Ditto.
8455         (IX86_BUILTIN_PMACSDQH): Ditto.
8456         (IX86_BUILTIN_PMADCSSWD): Ditto.
8457         (IX86_BUILTIN_PMADCSWD): Ditto.
8458         (IX86_BUILTIN_PHADDBW): Ditto.
8459         (IX86_BUILTIN_PHADDBD): Ditto.
8460         (IX86_BUILTIN_PHADDBQ): Ditto.
8461         (IX86_BUILTIN_PHADDWD): Ditto.
8462         (IX86_BUILTIN_PHADDWQ): Ditto.
8463         (IX86_BUILTIN_PHADDDQ): Ditto.
8464         (IX86_BUILTIN_PHADDUBW): Ditto.
8465         (IX86_BUILTIN_PHADDUBD): Ditto.
8466         (IX86_BUILTIN_PHADDUBQ): Ditto.
8467         (IX86_BUILTIN_PHADDUWD): Ditto.
8468         (IX86_BUILTIN_PHADDUWQ): Ditto.
8469         (IX86_BUILTIN_PHADDUDQ): Ditto.
8470         (IX86_BUILTIN_PHSUBBW): Ditto.
8471         (IX86_BUILTIN_PHSUBWD): Ditto.
8472         (IX86_BUILTIN_PHSUBDQ): Ditto.
8473         (IX86_BUILTIN_PROTB): Ditto.
8474         (IX86_BUILTIN_PROTW): Ditto.
8475         (IX86_BUILTIN_PROTD): Ditto.
8476         (IX86_BUILTIN_PROTQ): Ditto.
8477         (IX86_BUILTIN_PROTB_IMM): Ditto.
8478         (IX86_BUILTIN_PROTW_IMM): Ditto.
8479         (IX86_BUILTIN_PROTD_IMM): Ditto.
8480         (IX86_BUILTIN_PROTQ_IMM): Ditto.
8481         (IX86_BUILTIN_PSHLB): Ditto.
8482         (IX86_BUILTIN_PSHLW): Ditto.
8483         (IX86_BUILTIN_PSHLD): Ditto.
8484         (IX86_BUILTIN_PSHLQ): Ditto.
8485         (IX86_BUILTIN_PSHAB): Ditto.
8486         (IX86_BUILTIN_PSHAW): Ditto.
8487         (IX86_BUILTIN_PSHAD): Ditto.
8488         (IX86_BUILTIN_PSHAQ): Ditto.
8489         (IX86_BUILTIN_FRCZSS): Ditto.
8490         (IX86_BUILTIN_FRCZSD): Ditto.
8491         (IX86_BUILTIN_FRCZPS): Ditto.
8492         (IX86_BUILTIN_FRCZPD): Ditto.
8493         (IX86_BUILTIN_CVTPH2PS): Ditto.
8494         (IX86_BUILTIN_CVTPS2PH): Ditto.
8495         (IX86_BUILTIN_COMEQSS): Ditto.
8496         (IX86_BUILTIN_COMNESS): Ditto.
8497         (IX86_BUILTIN_COMLTSS): Ditto.
8498         (IX86_BUILTIN_COMLESS): Ditto.
8499         (IX86_BUILTIN_COMGTSS): Ditto.
8500         (IX86_BUILTIN_COMGESS): Ditto.
8501         (IX86_BUILTIN_COMUEQSS): Ditto.
8502         (IX86_BUILTIN_COMUNESS): Ditto.
8503         (IX86_BUILTIN_COMULTSS): Ditto.
8504         (IX86_BUILTIN_COMULESS): Ditto.
8505         (IX86_BUILTIN_COMUGTSS): Ditto.
8506         (IX86_BUILTIN_COMUGESS): Ditto.
8507         (IX86_BUILTIN_COMORDSS): Ditto.
8508         (IX86_BUILTIN_COMUNORDSS): Ditto.
8509         (IX86_BUILTIN_COMFALSESS): Ditto.
8510         (IX86_BUILTIN_COMTRUESS): Ditto.
8511         (IX86_BUILTIN_COMEQSD): Ditto.
8512         (IX86_BUILTIN_COMNESD): Ditto.
8513         (IX86_BUILTIN_COMLTSD): Ditto.
8514         (IX86_BUILTIN_COMLESD): Ditto.
8515         (IX86_BUILTIN_COMGTSD): Ditto.
8516         (IX86_BUILTIN_COMGESD): Ditto.
8517         (IX86_BUILTIN_COMUEQSD): Ditto.
8518         (IX86_BUILTIN_COMUNESD): Ditto.
8519         (IX86_BUILTIN_COMULTSD): Ditto.
8520         (IX86_BUILTIN_COMULESD): Ditto.
8521         (IX86_BUILTIN_COMUGTSD): Ditto.
8522         (IX86_BUILTIN_COMUGESD): Ditto.
8523         (IX86_BUILTIN_COMORDSD): Ditto.
8524         (IX86_BUILTIN_COMUNORDSD): Ditto.
8525         (IX86_BUILTIN_COMFALSESD): Ditto.
8526         (IX86_BUILTIN_COMTRUESD): Ditto.
8527         (IX86_BUILTIN_COMEQPS): Ditto.
8528         (IX86_BUILTIN_COMNEPS): Ditto.
8529         (IX86_BUILTIN_COMLTPS): Ditto.
8530         (IX86_BUILTIN_COMLEPS): Ditto.
8531         (IX86_BUILTIN_COMGTPS): Ditto.
8532         (IX86_BUILTIN_COMGEPS): Ditto.
8533         (IX86_BUILTIN_COMUEQPS): Ditto.
8534         (IX86_BUILTIN_COMUNEPS): Ditto.
8535         (IX86_BUILTIN_COMULTPS): Ditto.
8536         (IX86_BUILTIN_COMULEPS): Ditto.
8537         (IX86_BUILTIN_COMUGTPS): Ditto.
8538         (IX86_BUILTIN_COMUGEPS): Ditto.
8539         (IX86_BUILTIN_COMORDPS): Ditto.
8540         (IX86_BUILTIN_COMUNORDPS): Ditto.
8541         (IX86_BUILTIN_COMFALSEPS): Ditto.
8542         (IX86_BUILTIN_COMTRUEPS): Ditto.
8543         (IX86_BUILTIN_COMEQPD): Ditto.
8544         (IX86_BUILTIN_COMNEPD): Ditto.
8545         (IX86_BUILTIN_COMLTPD): Ditto.
8546         (IX86_BUILTIN_COMLEPD): Ditto.
8547         (IX86_BUILTIN_COMGTPD): Ditto.
8548         (IX86_BUILTIN_COMGEPD): Ditto.
8549         (IX86_BUILTIN_COMUEQPD): Ditto.
8550         (IX86_BUILTIN_COMUNEPD): Ditto.
8551         (IX86_BUILTIN_COMULTPD): Ditto.
8552         (IX86_BUILTIN_COMULEPD): Ditto.
8553         (IX86_BUILTIN_COMUGTPD): Ditto.
8554         (IX86_BUILTIN_COMUGEPD): Ditto.
8555         (IX86_BUILTIN_COMORDPD): Ditto.
8556         (IX86_BUILTIN_COMUNORDPD): Ditto.
8557         (IX86_BUILTIN_COMFALSEPD): Ditto.
8558         (IX86_BUILTIN_COMTRUEPD): Ditto.
8559         (IX86_BUILTIN_PCOMEQUB): Ditto.
8560         (IX86_BUILTIN_PCOMNEUB): Ditto.
8561         (IX86_BUILTIN_PCOMLTUB): Ditto.
8562         (IX86_BUILTIN_PCOMLEUB): Ditto.
8563         (IX86_BUILTIN_PCOMGTUB): Ditto.
8564         (IX86_BUILTIN_PCOMGEUB): Ditto.
8565         (IX86_BUILTIN_PCOMFALSEUB): Ditto.
8566         (IX86_BUILTIN_PCOMTRUEUB): Ditto.
8567         (IX86_BUILTIN_PCOMEQUW): Ditto.
8568         (IX86_BUILTIN_PCOMNEUW): Ditto.
8569         (IX86_BUILTIN_PCOMLTUW): Ditto.
8570         (IX86_BUILTIN_PCOMLEUW): Ditto.
8571         (IX86_BUILTIN_PCOMGTUW): Ditto.
8572         (IX86_BUILTIN_PCOMGEUW): Ditto.
8573         (IX86_BUILTIN_PCOMFALSEUW): Ditto.
8574         (IX86_BUILTIN_PCOMTRUEUW): Ditto.
8575         (IX86_BUILTIN_PCOMEQUD): Ditto.
8576         (IX86_BUILTIN_PCOMNEUD): Ditto.
8577         (IX86_BUILTIN_PCOMLTUD): Ditto.
8578         (IX86_BUILTIN_PCOMLEUD): Ditto.
8579         (IX86_BUILTIN_PCOMGTUD): Ditto.
8580         (IX86_BUILTIN_PCOMGEUD): Ditto.
8581         (IX86_BUILTIN_PCOMFALSEUD): Ditto.
8582         (IX86_BUILTIN_PCOMTRUEUD): Ditto.
8583         (IX86_BUILTIN_PCOMEQUQ): Ditto.
8584         (IX86_BUILTIN_PCOMNEUQ): Ditto.
8585         (IX86_BUILTIN_PCOMLTUQ): Ditto.
8586         (IX86_BUILTIN_PCOMLEUQ): Ditto.
8587         (IX86_BUILTIN_PCOMGTUQ): Ditto.
8588         (IX86_BUILTIN_PCOMGEUQ): Ditto.
8589         (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
8590         (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
8591         (IX86_BUILTIN_PCOMEQB): Ditto.
8592         (IX86_BUILTIN_PCOMNEB): Ditto.
8593         (IX86_BUILTIN_PCOMLTB): Ditto.
8594         (IX86_BUILTIN_PCOMLEB): Ditto.
8595         (IX86_BUILTIN_PCOMGTB): Ditto.
8596         (IX86_BUILTIN_PCOMGEB): Ditto.
8597         (IX86_BUILTIN_PCOMFALSEB): Ditto.
8598         (IX86_BUILTIN_PCOMTRUEB): Ditto.
8599         (IX86_BUILTIN_PCOMEQW): Ditto.
8600         (IX86_BUILTIN_PCOMNEW): Ditto.
8601         (IX86_BUILTIN_PCOMLTW): Ditto.
8602         (IX86_BUILTIN_PCOMLEW): Ditto.
8603         (IX86_BUILTIN_PCOMGTW): Ditto.
8604         (IX86_BUILTIN_PCOMGEW): Ditto.
8605         (IX86_BUILTIN_PCOMFALSEW): Ditto.
8606         (IX86_BUILTIN_PCOMTRUEW): Ditto.
8607         (IX86_BUILTIN_PCOMEQD): Ditto.
8608         (IX86_BUILTIN_PCOMNED): Ditto.
8609         (IX86_BUILTIN_PCOMLTD): Ditto.
8610         (IX86_BUILTIN_PCOMLED): Ditto.
8611         (IX86_BUILTIN_PCOMGTD): Ditto.
8612         (IX86_BUILTIN_PCOMGED): Ditto.
8613         (IX86_BUILTIN_PCOMFALSED): Ditto.
8614         (IX86_BUILTIN_PCOMTRUED): Ditto.
8615         (IX86_BUILTIN_PCOMEQQ): Ditto.
8616         (IX86_BUILTIN_PCOMNEQ): Ditto.
8617         (IX86_BUILTIN_PCOMLTQ): Ditto.
8618         (IX86_BUILTIN_PCOMLEQ): Ditto.
8619         (IX86_BUILTIN_PCOMGTQ): Ditto.
8620         (IX86_BUILTIN_PCOMGEQ): Ditto.
8621         (IX86_BUILTIN_PCOMFALSEQ): Ditto.
8622         (IX86_BUILTIN_PCOMTRUEQ): Ditto.
8623         (enum multi_arg_type): New enum for describing the various SSE5
8624         intrinsic argument types.
8625         (bdesc_multi_arg): New table for SSE5 intrinsics.
8626         (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
8627         (ix86_expand_multi_arg_builtin): New function for creating SSE5
8628         intrinsics.
8629         (ix86_expand_builtin): Add SSE5 intrinsic support.
8630         (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
8631         operand instructions.
8632         (ix86_expand_sse5_multiple_memory): New function to split the
8633         second memory reference from SSE5 instructions.
8634         (type_has_variadic_args_p): Delete in favor of stdarg_p.
8635         (ix86_return_pops_args): Use stdarg_p to determine if the function
8636         has variable arguments.
8637         (ix86_setup_incoming_varargs): Ditto.
8638         (x86_this_parameter): Ditto.
8639
8640         * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
8641         declaration.
8642         (ix86_expand_sse5_pack): Ditto.
8643         (ix86_sse5_valid_op_p): Ditto.
8644         (ix86_expand_sse5_multiple_memory): Ditto.
8645
8646         * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
8647         constant for SSE5 support.
8648         (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
8649         (UNSPEC_SSE5_TRUEFALSE): Ditto.
8650         (UNSPEC_SSE5_PERMUTE): Ditto.
8651         (UNSPEC_SSE5_ASHIFT): Ditto.
8652         (UNSPEC_SSE5_LSHIFT): Ditto.
8653         (UNSPEC_FRCZ): Ditto.
8654         (UNSPEC_CVTPH2PS): Ditto.
8655         (UNSPEC_CVTPS2PH): Ditto.
8656         (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
8657         (PCOM_TRUE): Ditto.
8658         (COM_FALSE_S): Ditto.
8659         (COM_FALSE_P): Ditto.
8660         (COM_TRUE_S): Ditto.
8661         (COM_TRUE_P): Ditto.
8662         (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
8663         (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
8664         types.
8665         (memory attribute): Ditto.
8666         (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
8667         Use SSE4_1_ROUND_* constants instead of hard coded numbers.
8668         (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
8669         (floor<mode>2): Ditto.
8670         (ceil<mode>2): Ditto.
8671         (btrunc<mode>2): Ditto.
8672         (nearbyintdf2): Ditto.
8673         (nearbyintsf2): Ditto.
8674         (sse_setccsf): Disable if SSE5.
8675         (sse_setccdf): Ditto.
8676         (sse5_setcc<mode>): New support for SSE5 conditional move.
8677         (sse5_pcmov_<mode>): Ditto.
8678
8679         * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
8680         (SSEMODEF4): Ditto.
8681         (SSEMODEF2P): Ditto.
8682         (ssemodesuffixf4): New mode attribute for SSE5.
8683         (ssemodesuffixf2s): Ditto.
8684         (ssemodesuffixf2c): Ditto.
8685         (sserotatemax): Ditto.
8686         (ssescalarmode): Ditto.
8687         (sse_maskcmpv4sf3): Disable if SSE5.
8688         (sse_maskcmpv2df3): Ditto.
8689         (sse_vmmaskcmpv4sf3): Ditto.
8690         (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
8691         (sse5_vmfmadd<mode>4): Ditto.
8692         (sse5_fmsub<mode>4): Ditto.
8693         (sse5_vmfmsub<mode>4): Ditto.
8694         (sse5_fnmadd<mode>4): Ditto.
8695         (sse5_vmfnmadd<mode>4): Ditto.
8696         (sse5_fnmsub<mode>4): Ditto.
8697         (sse5_vmfnmsub<mode>4): Ditto.
8698         (sse5i_fmadd<mode>4): Ditto.
8699         (sse5i_fmsub<mode>4): Ditto.
8700         (sse5i_fnmadd<mode>4): Ditto.
8701         (sse5i_fnmsub<mode>4): Ditto.
8702         (sse5i_vmfmadd<mode>4): Ditto.
8703         (sse5i_vmfmsub<mode>4): Ditto.
8704         (sse5i_vmfnmadd<mode>4): Ditto.
8705         (sse5i_vmfnmsub<mode>4): Ditto.
8706         (mulv16qi3): Add SSE5 support.
8707         (mulv4si3): Ditto.
8708         (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
8709         (sse2_mulv4si3): Disable if SSE5.
8710         (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
8711         (sse4_1_roundps): Ditto.
8712         (sse4_1_roundsd): Ditto.
8713         (sse4_1_roundss): Ditto.
8714         (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
8715         be generated.
8716         (sse_maskcmpsf3): Ditto.
8717         (sse_vmmaskcmpv4sf3): Ditto.
8718         (sse2_maskcmpv2df3): Ditto.
8719         (sse2_maskcmpdf3): Ditto.
8720         (sse2_vmmaskcmpv2df3): Ditto.
8721         (sse2_eq<mode>3): Ditto.
8722         (sse2_gt<mode>3): Ditto.
8723         (sse5_pcmov_<mode>): Add SSE5 support.
8724         (vec_unpacku_hi_v16qi): Ditto.
8725         (vec_unpacks_hi_v16qi): Ditto.
8726         (vec_unpacku_lo_v16qi): Ditto.
8727         (vec_unpacks_lo_v16qi): Ditto.
8728         (vec_unpacku_hi_v8hi): Ditto.
8729         (vec_unpacks_hi_v8hi): Ditto.
8730         (vec_unpacku_lo_v8hi): Ditto.
8731         (vec_unpacks_lo_v8hi): Ditto.
8732         (vec_unpacku_hi_v4si): Ditto.
8733         (vec_unpacks_hi_v4si): Ditto.
8734         (vec_unpacku_lo_v4si): Ditto.
8735         (vec_unpacks_lo_v4si): Ditto.
8736         (sse5_pmacsww): New SSE5 intrinsic insn.
8737         (sse5_pmacssww): Ditto.
8738         (sse5_pmacsdd): Ditto.
8739         (sse5_pmacssdd): Ditto.
8740         (sse5_pmacssdql): Ditto.
8741         (sse5_pmacssdqh): Ditto.
8742         (sse5_pmacsdqh): Ditto.
8743         (sse5_pmacsswd): Ditto.
8744         (sse5_pmacswd): Ditto.
8745         (sse5_pmadcsswd): Ditto.
8746         (sse5_pmadcswd): Ditto.
8747         (sse5_pcmov_<move>): Conditional move support on SSE5.
8748         (sse5_phaddbw): New SSE5 intrinsic insn.
8749         (sse5_phaddbd): Ditto.
8750         (sse5_phaddbq): Ditto.
8751         (sse5_phaddwd): Ditto.
8752         (sse5_phaddwq): Ditto.
8753         (sse5_phadddq): Ditto.
8754         (sse5_phaddubw): Ditto.
8755         (sse5_phaddubd): Ditto.
8756         (sse5_phaddubq): Ditto.
8757         (sse5_phadduwd): Ditto.
8758         (sse5_phadduwq): Ditto.
8759         (sse5_phaddudq): Ditto.
8760         (sse5_phsubbw): Ditto.
8761         (sse5_phsubwd): Ditto.
8762         (sse5_phsubdq): Ditto.
8763         (sse5_pperm): Ditto.
8764         (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
8765         (sse5_pperm_zero_v16qi_v8hi): Ditto.
8766         (sse5_pperm_sign_v8hi_v4si): Ditto.
8767         (sse5_pperm_zero_v8hi_v4si): Ditto.
8768         (sse5_pperm_sign_v4si_v2di): Ditto.
8769         (sse5_pperm_sign_v4si_v2di): Ditto.
8770         (sse5_pperm_pack_v2di_v4si): Ditto.
8771         (sse5_pperm_pack_v4si_v8hi): Ditto.
8772         (sse5_pperm_pack_v8hi_v16qi): Ditto.
8773         (sse5_perm<mode>): New SSE5 intrinsic insn.
8774         (rotl<mode>3): Ditto.
8775         (sse5_rotl<mode>3): Ditto.
8776         (sse5_ashl<mode>3): Ditto.
8777         (sse5_lshl<mode>3): Ditto.
8778         (sse5_frcz<mode>2): Ditto.
8779         (sse5s_frcz<mode>2): Ditto.
8780         (sse5_cvtph2ps): Ditto.
8781         (sse5_cvtps2ph): Ditto.
8782         (sse5_vmmaskcmp<mode>3): Ditto.
8783         (sse5_com_tf<mode>3): Ditto.
8784         (sse5_maskcmp<mode>3): Ditto.
8785         (sse5_maskcmp_uns<mode>3): Ditto.
8786         (sse5_maskcmp_uns2<mode>3): Ditto.
8787         (sse5_pcom_tf<mode>3): Ditto.
8788
8789         * config/i386/predicates.md (sse5_comparison_float_operator):
8790         New predicate to match the comparison operators supported by
8791         the SSE5 com instruction.
8792         (ix86_comparison_int_operator): New predicate to match just the
8793         signed int comparisons.
8794         (ix86_comparison_uns_operator): New predicate to match just the
8795         unsigned int comparisons.
8796
8797         * doc/invoke.texi (-msse5): Add documentation.
8798         (-mfused-madd): Ditto.
8799
8800         * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
8801
8802         * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
8803         mmintrin-common.h.
8804         (x86_64-*-*): Ditto.
8805
8806         * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
8807
8808         * config/i386/bmmintrin.h: New file, provide common x86 compiler
8809         intrinisics for SSE5.
8810
8811         * config/i386/smmintrin.h: Move instructions shared with SSE5 to
8812         mmintrin-common.h.
8813
8814         * config/i386/mmintrin-common.h: New file, to contain common
8815         instructions between SSE4.1 and SSE5.
8816
8817         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
8818         FOREACH_FUNCTION_ARGS to iterate over the argument list.
8819         (gen_regparm_prefix): Ditto.
8820
8821         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
8822         FOREACH_FUNCTION_ARGS to iterate over the argument list.  Use
8823         prototype_p to determine if a function is prototyped.
8824
8825 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
8826
8827         * c-common.c (c_common_reswords) add the alignof keyword,
8828         with same RID as __alignof and __alignof__
8829
8830 2009-08-25  Anatoly Sokolov  <aesok@post.ru>
8831
8832         * hooks.h (hook_bool_const_int_const_int_true): Declare.
8833         * hooks.c (hook_bool_const_int_const_int_true): New function.
8834         * target.h (struct gcc_target): Add can_eliminate field.
8835         * target-def.h (TARGET_CAN_ELIMINATE): Define.
8836         (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
8837         * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
8838         * reload1.c (update_eliminables, init_elim_table): (Ditto.).
8839         (elim_table): Revise comment.
8840         * system.h (CAN_ELIMINATE): Poison.
8841         * defaults.h (CAN_ELIMINATE): Remove.
8842         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
8843
8844         * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
8845         * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
8846         Define macro.
8847         (alpha_vms_can_eliminate): Declare as static, change return type to
8848         bool.
8849         * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
8850
8851         * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
8852         * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
8853         (arm_can_eliminate): New function.
8854
8855         * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
8856         * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
8857         (avr_can_eliminate): Declare as static.
8858         * config/avr/avr-protos.h (avr_can_eliminate): Remove.
8859
8860         * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
8861         * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
8862         (bfin_can_eliminate): New function.
8863
8864         * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
8865         * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
8866         (crx_can_eliminate): New function.
8867
8868         * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
8869         * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
8870         (fr30_can_eliminate): New function.
8871
8872         * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
8873         * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
8874         (frv_can_eliminate): New function.
8875
8876         * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
8877         * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
8878         (h8300_can_eliminate): New function.
8879
8880         * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
8881         * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
8882         (i386_can_eliminate): Declare as static, change return type to bool.
8883         * config/i386/i386-protos.h (i386_can_eliminate): Remove.
8884
8885         * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
8886         * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
8887         (ia64_can_eliminate): New function.
8888
8889         * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
8890         * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
8891         (iq2000_can_eliminate): New function.
8892
8893         * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
8894         * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
8895         (m32r_can_eliminate): New function.
8896
8897         * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
8898         * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
8899         (m68hc11_can_eliminate): New function.
8900
8901         * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
8902         * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
8903         (m68k_can_eliminate): New function.
8904
8905         * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
8906         * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
8907         (mep_can_eliminate): New function.
8908
8909         * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
8910         * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
8911         (mips_can_eliminate): New function.
8912
8913         * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
8914         * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
8915         (rs6000_can_eliminate): New function.
8916
8917         * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
8918         * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
8919         (s390_can_eliminate): Declare as static.
8920         * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
8921
8922         * config/score/score.h (CAN_ELIMINATE): Remove macro.
8923         * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
8924         (score_can_eliminate): New function.
8925
8926         * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
8927         * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
8928         (sparc_can_eliminate): Declare as static.
8929         * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
8930
8931         * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
8932         * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
8933         (xstormy16_can_eliminate): New function.
8934
8935         * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
8936         * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
8937         (v850_can_eliminate): New function.
8938
8939 2009-08-25  Uros Bizjak  <ubizjak@gmail.com>
8940
8941         * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
8942         (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
8943         (*movdfcc_ext[1234]): Disable for IEEE mode.
8944
8945 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
8946
8947         * gimplify.c (prepare_gimple_addressable): New static function.
8948         (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
8949         it addressable.
8950         (gimplify_addr_expr): Invoke it similarly on the operand instead of
8951         manually fiddling with it.
8952
8953 2009-08-25  Michael Matz  <matz@suse.de>
8954
8955         * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
8956         * dojump.c (do_jump_by_parts_greater): Take two operands instead of
8957         full expression.
8958         (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
8959         (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
8960         (do_jump): Split out code for simple binary comparisons into ...
8961         (do_jump_1): ... this, taking the individual operands and code.
8962         Change callers to helper function above accordingly.
8963         * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
8964         comparisons.
8965
8966 2009-08-25  Michael Matz  <matz@suse.de>
8967
8968         * expr.h (struct separate_ops, sepops): New type for passing
8969         around an exploded simple expression.
8970         * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
8971         Use this structure instead of expression tree.
8972         (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
8973         expression, only its type.
8974         (expand_vec_cond_expr): Take type and individual operands instead
8975         of full expression.
8976         * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
8977         expand_vec_shift_expr): Change prototype accordingly.
8978         * tree-vect-stmts.c (vectorizable_condition): Change call of
8979         expand_vec_cond_expr_p to pass only type.
8980         * expr.c (do_store_flags): Change prototype and implementation
8981         to take an exploded expression.
8982         (expand_expr_real_1): New local ops initialized with details
8983         of the full expression.  Use it instead of full
8984         expression in calls to do_store_flags, expand_vec_cond_expr,
8985         expand_widen_pattern_expr and expand_vec_shift_expr.
8986
8987 2009-08-25  Michael Matz  <matz@suse.de>
8988
8989         * expr.c (expand_expr_real_1): New local treeop0, treeop1,
8990         treeop2 initialized with first three operands of the full expression.
8991         Substitute all TREE_OPERAND (exp, [012]) calls with them.
8992
8993 2009-08-25  Kai Tietz  <kai.tietz@onevision.com>
8994
8995         * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
8996         (__gthread_objc_condition_allocate): Mark arguments as unused.
8997         (__gthread_objc_condition_deallocate): Likewise.
8998         (__gthread_objc_condition_wait): Likewise.
8999         (__gthread_objc_condition_broadcast): Likewise.
9000         (__gthread_objc_condition_signal): Likewise.
9001         (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
9002         (__gthread_objc_thread_id): Likewise.
9003
9004 2009-08-25  Janus Weil  <janus@gcc.gnu.org>
9005
9006         PR middle-end/41149
9007         * tree-pretty-print.c (print_call_name): Print the correct call name
9008         for procedure pointer components.
9009
9010 2009-08-24  Steve Ellcey  <sje@cup.hp.com>
9011
9012         * config/ia64/ia64.c (ia64_promote_function_mode): Call
9013         default_promote_function_mode when not VMS.
9014
9015 2009-08-24  Olivier Hainque  <hainque@adacore.com>
9016
9017         * convert.c (convert_to_integer): Don't assume an input pointer is
9018         POINTER_SIZE wide.  Fetch from the type instead.
9019
9020 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9021
9022         * configure.ac (AC_PREREQ): Bump to 2.64.
9023
9024 2009-08-24  Rafael Avila de Espindola  <espindola@google.com>
9025
9026         * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
9027         (process_command): Don't search standard_exec_prefix_1 and
9028         standard_exec_prefix_2.
9029
9030 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9031
9032         * config/arm/arm.c (output_return_instruction): Handle for
9033         unified syntax.
9034
9035 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9036
9037         * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
9038
9039 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9040
9041         * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
9042         (*arm_movdf_vfp): Likewise.
9043
9044 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9045
9046         * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
9047         (vashr<mode>3): Rename from ashr<mode>3.
9048         (vlshr<mode>3): Rename from lshr<mode>3.
9049
9050 2009-08-24  Kai Tietz  <kai.tietz@onevision.com>
9051
9052         PR/40786
9053         * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
9054         (check_format_info_main): Use scalar_identify_flag.
9055         (check_format_types): Check for scalar size identity if
9056         scalar_identify_flag is set.
9057         (printf_length_specs): Extend by new field.
9058         (asm_fprintf_length_specs): Likewise.
9059         (gcc_diag_length_specs): Likewise.
9060         (scanf_length_specs): Likewise.
9061         (strfmon_length_specs): Likewise.
9062         (gcc_gfc_length_specs): Likewise.
9063         * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
9064         (ms_printf_flag_specs): Likewise.
9065         * c-format.h (format_length_info): Add new member scalar_identity_flag.
9066
9067 2009-08-23  Uros Bizjak  <ubizjak@gmail.com>
9068
9069         PR target/40718
9070         * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
9071         (*call_value_pop_1): Ditto.
9072         (*sibcall_pop_1): New insn pattern.
9073         (*sibcall_value_pop_1): Ditto.
9074
9075 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
9076
9077         PR target/41081
9078         * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
9079         ashrsi3_64): New.
9080
9081 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
9082
9083         PR target/41081
9084         * fwprop.c (try_fwprop_subst): Allow multiple sets.
9085         (get_reg_use_in): New function.
9086         (forward_propagate_subreg): Propagate through subreg of zero_extend
9087         or sign_extend.
9088
9089 2009-08-22  Kaz Kojima  <kkojima@gcc.gnu.org>
9090
9091         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
9092         * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
9093
9094 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9095
9096         * configure.ac: Remove --with-datarootdir, --with-docdir,
9097         --with-htmldir switches.  No need to call AC_SUBST for
9098         datarootdir, docdir, htmldir any more.
9099         * configure: Regenerate.
9100         * doc/install.texi (Configuration): Document --datarootdir,
9101         --docdir, --htmldir, --pdfdir; update documentation for
9102         --infodir, --mandir.
9103         (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
9104         M4 to 1.4.6.
9105
9106         * aclocal.m4: Regenerate.
9107         * config.in: Regenerate.
9108         * configure: Regenerate.
9109
9110 2009-08-21  Douglas B Rupp  <rupp@gnat.com>
9111             Olivier Hainque  <hainque@adacore.com>
9112
9113         * config/ia64/ia64.c: Include libfuncs.h.
9114         (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
9115         (ia64_expand_call): Use reg 25 on VMS.
9116         (ia64_initialize_trampoline): Fix for VMS ABI.
9117         (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
9118         (ia64_function_arg): Initialize reg 25 on VMS.
9119         Fix OpenVMS ABI issues for varargs.
9120         For OpenVMS, emit the Argument Information register set in the
9121         incoming/sibcall case as well.
9122         (ia64_arg_type): New function.
9123         (ia64_function_arg_advance): Keep track of cum->words.
9124         Fix OpenVMS ABI issues for varargs.
9125         (ia64_function_value): On VMS, promote mode of non-aggregate types.
9126         (ia64_override_options): Set flag_no_common on VMS.
9127         (ia64_init_builtins): Disable FWRITE builtin.
9128         (ia64_asm_output_external): Call DO_CRTL_NAMES.
9129         (ia64_vms_init_libfuncs): Add decc$ routines.
9130         (ia64_vms_valid_pointer_mode): New function.
9131         (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
9132         (ia64_promote_function_mode): New function
9133         * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
9134         (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
9135         (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
9136         (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
9137         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
9138         (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
9139         Suppress trailing '#' if VALUE is numeric.
9140         * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
9141         ia64_promote_function_mode.
9142         (TARGET_VALID_POINTER_MODE): Define.
9143
9144 2009-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9145
9146         PR target/40671
9147         * config/rs6000/rs6000.c (rs6000_override_options): Use
9148         TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
9149
9150         PR target/41145
9151         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
9152         reporting of vector + decimal/boolean/complex error.
9153
9154 2009-08-21  Jakub Jelinek  <jakub@redhat.com>
9155
9156         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
9157         __vector double TYPE_DECL.
9158
9159 2009-08-21  Richard Earnshaw  <rearnsha@arm.com>
9160
9161         * arm.h (MACHMODE): New define.  Include insn-modes.h if available.
9162         (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
9163         * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
9164         to pointer to enum machine_mode.  Update all callers as needed.
9165
9166 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
9167
9168         * config/alpha/alpha.md (exception_receiver): Emit alternative
9169         GP load sequence if flag_reorder_blocks_and_partition is set.
9170         (*exception_receiver_2): Also enable when
9171         flag_reorder_blocks_and_partition is set.
9172
9173 2009-08-20  Matt Rice  <ratmice@gmail.com>
9174             Diego Novillo  <dnovillo@google.com>
9175
9176         * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
9177         tree-ssa-sccvn.h.
9178
9179 2009-08-20  Richard Guenther  <rguenther@suse.de>
9180
9181         * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
9182         * c-tree.h (c_dup_lang_specific_decl): Remove.
9183         (struct lang_decl, struct lang_type): Move definitions ...
9184         * c-lang.h: ... here.  New file.
9185         * c-decl.c: Include c-lang.h.
9186         (c_dup_lang_specific_decl): Remove.
9187         * c-typeck.c: Include c-lang.h.
9188         * Makefile.in (c-decl.o): Add c-lang.h dependency.
9189         (c-typeck.o): Likewise.
9190         * c-config-lang.in (gtfiles): Add c-lang.h.
9191         * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
9192         like c-tree.h.
9193
9194 2009-08-20  Uros Bizjak  <ubizjak@gmail.com>
9195
9196         * config/alpha/alpha.c (alpha_end_function): Do not clear
9197         crtl->emit structure and free insn locators if cfun->is_thunk is true,
9198         this is now handled in generic code.
9199
9200 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
9201
9202         * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
9203         (s390_z10_fix_long_loop_prediction): New function.
9204         (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
9205         (s390_reorg): Walk over the INSNs and invoke
9206         s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
9207
9208 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
9209
9210         * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
9211         "*brx_64bit", "*brx_31bit"): New patterns.
9212         * config/s390/s390.c ('E'): New output modifier.
9213
9214 2009-08-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9215             Richard Earnshaw  <richard.earnshaw@arm.com>
9216
9217         * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
9218         * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
9219
9220 2009-08-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9221
9222         * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
9223         patterns.
9224         * pa.c (emit_move_sequence): Check if address of operand1 is valid
9225         for mode mode of operand0 when doing secondary reload for SAR.
9226
9227 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
9228
9229         PR middle-end/41123
9230         * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
9231         of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
9232
9233 2009-08-19  Jason Merrill  <jason@redhat.com>
9234
9235         * doc/invoke.texi (C++ Dialect Options): Note change of minimum
9236         supported template depth in C++0x.
9237
9238 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
9239
9240         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
9241         free_after_compilation.
9242         * config/score/score7.c (score7_output_mi_thunk): Likewise.
9243         * config/score/score3.c (score3_output_mi_thunk): Likewise.
9244         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
9245         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
9246         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9247         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
9248         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
9249
9250 2009-08-19  Ian Lance Taylor  <iant@google.com>
9251
9252         * doc/md.texi (Insn Canonicalizations): Correct canonicalization
9253         of (plus (mult (neg B) C) A).
9254
9255 2009-08-18  Michael Matz  <matz@suse.de>
9256
9257         * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
9258         instead of comparing TYPE_MAIN_VARIANT for equality.
9259         * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
9260         vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
9261         * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
9262         * gimplify.c (goa_lhs_expr_p): Ditto and use
9263         STRIP_USELESS_TYPE_CONVERSION.
9264
9265 2009-08-18  Michael Matz  <matz@suse.de>
9266
9267         * tree-ssa-structalias.c (create_variable_info_for): Also mark
9268         first field in a struct.
9269         (intra_create_variable_infos): Don't deal with flag_argument_noalias.
9270
9271 2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
9272
9273         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
9274         locators before emit_insn is called.  Remove assert that
9275         cfun->is_thunk.
9276         (alpha_end_function): Clear crtl->emit structure and free insn
9277         locators if cfun->is_thunk is true.
9278
9279 2009-08-18  Jason Merrill  <jason@redhat.com>
9280
9281         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
9282         type if available.
9283         * configure.ac: Test for it.
9284         * configure, config.in: Regenerate.
9285         * doc/install.texi: Document --enable-gnu-unique-object.
9286
9287 2009-08-18  Richard Guenther  <rguenther@suse.de>
9288
9289         PR middle-end/41094
9290         * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
9291         pow(x,y*z) only if x is nonnegative.
9292
9293 2009-08-18  Jakub Jelinek  <jakub@redhat.com>
9294
9295         * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
9296         on jumps.
9297
9298         PR target/40971
9299         * config/rs6000/rs6000.c (rs6000_legitimize_address): For
9300         [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
9301
9302 2009-08-17  DJ Delorie  <dj@redhat.com>
9303
9304         * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
9305         * config/m32c/prologue.md (epilogue_freit): New.
9306         (fset_b): New.
9307         * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
9308         (bank_switch_p): Likewise.
9309         (fast_interrupt_p): Likewise.
9310         (interrupt_p): Likewise.
9311         (m32c_conditional_register_usage): Round memregs size up.
9312         (need_to_save): We only need to save $a0 when we use ENTER.
9313         (interrupt_p): Check for fast_interrupt too.
9314         (bank_switch_p): New.
9315         (fast_interrupt_p): New.
9316         (m32c_attribute_table): Add bank_switch and fast_interrupt.
9317         (m32c_emit_prolog): Support bank switching and fast interrupts.
9318         * doc/extend.texi (Function Attributes): Add bank_switch and
9319         fast_interrupt.
9320
9321 2009-08-17  Douglas B Rupp  <rupp@gnat.com>
9322
9323         * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
9324         * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
9325
9326 2009-08-16  Douglas B Rupp  <rupp@gnat.com>
9327
9328         * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
9329         (menu): Add IA-64/VMS Options.
9330         (IA-64/VMS Options): Likewise.
9331
9332 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
9333
9334         PR target/38599
9335         * config/mips/mips.md (*lwxs): Use :P for pointer values.
9336
9337 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
9338
9339         * config/mips/mips-protos.h (mips_push_asm_switch): New function.
9340         (mips_pop_asm_switch): Likewise.
9341         * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
9342         with...
9343         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
9344         (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
9345         (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
9346         (mips_print_operand_punctuation): Use them.  Check mips_noreorder
9347         instead of set_noreorder.
9348         (mips_output_function_prologue): Use the new functions.
9349         (mips_output_function_epilogue): Likewise.
9350         (mips_need_noat_wrapper_p): New function, split out from...
9351         (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
9352         Use mips_push_asm_switch and mips_pop_asm_switch.
9353         * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
9354         and mips_pop_asm_switch.
9355         (ASM_OUTPUT_REG_POP): Likewise.
9356         (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
9357         Use mips_pop_asm_switch.
9358         (mips_asm_switch): New structure.
9359         (set_noreorder, set_nomacro): Replace with...
9360         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
9361         * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
9362         instead of set_nomacro.
9363         (fix_truncsfsi2_macro): Likewise.
9364         (cprestore): Likewise.
9365         (hazard): Use mips_noreorder instead of set_noreorder.
9366         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
9367
9368 2009-08-16  Uros Bizjak  <ubizjak@gmail.com>
9369
9370         * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
9371         from prev_active_insn.
9372
9373 2009-08-16  Anatoly Sokolov  <aesok@post.ru>
9374
9375         * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
9376         * config/avr/avr.c (avr_override_options): Initialize
9377         avr_current_arch variable.
9378         (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
9379         __AVR_HAVE_16BIT_SP__ according to the device type.
9380         (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
9381         TARGET_TINY_STACK.
9382         (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
9383         Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
9384
9385 2009-08-16  Dodji Seketeli  <dodji@redhat.com>
9386
9387         PR debug/37801
9388         * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
9389         generating inlined subroutine die only. We shouldn't be
9390         called for anything else.
9391         (gen_block_die): Don't generate inline subroutine debug info for
9392         abstract blocks.
9393
9394 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
9395
9396         * graphite-poly.c (print_pbb): Print PBB index.
9397
9398 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
9399
9400         PR middle-end/40981
9401         * graphite-interchange.c (ppl_max_for_le): Moved...
9402         * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
9403         * graphite-ppl.c (ppl_max_for_le): ... here.  Correct the use of
9404         ppl_Pointset_Powerset_C_Polyhedron_maximize.
9405         * graphite-ppl.h (ppl_max_for_le): Declared.
9406
9407 2009-08-14  Olatunji Ruwase <tjruwase@google.com>
9408
9409         * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
9410         supported on all platforms.
9411         * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
9412         * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
9413         * c-pragma.c: Likewise.
9414         * target-def.h (TARGET_INITIALIZER): Remove
9415         TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
9416         * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
9417
9418 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
9419
9420         * config/ia64/fde-vms.c: New file.
9421         * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
9422         * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
9423         (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
9424         (uw_frame_state_for): Only register a personality routine if it is
9425         known to be compatible with our expectations.
9426         (_Unwind_FindEnclosingFunction, uw_frame_state_for):
9427         Declare unw_table_entry stack variable and
9428         mod all calls to _Unwind_FindTableEntry to add arg.
9429         * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
9430         (_Unwind_FindTableEntry): Add arg to prototype.
9431
9432 2009-08-14  Eric Botcazou  <ebotcazou@adacore.com>
9433
9434         * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
9435         field 'signal_pfs_loc'.
9436         (uw_frame_state_for): Remove duplicate code dealing with leaf
9437         procedures without unwind info.
9438         If in the frame after unwinding through a signal handler, restore
9439         the AR.PFS register instead of the CFM if AR.PFS has not been saved.
9440         * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
9441         'pfs_loc' to the AR.PFS location in the signal context; instead
9442         set 'signal_pfs_loc'.
9443         Manually generate the unwind info for the AR.PFS register.
9444         (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
9445         ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
9446         (ia64_handle_unwabi): Test 'fs->unwabi' against them.
9447         Do not set 'pfs_loc' to the AR.PFS location in the signal context;
9448         instead set 'signal_pfs_loc'.
9449         Remove code preventing the AR.PFS register from being restored
9450         from the signal context.
9451
9452 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
9453             Tristan Gingold  <gingold@adacore.com>
9454
9455         * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
9456         * config/ia64/t-vms: New file.
9457         * config/ia64/vms64.h: New file.
9458         * config/ia64/vms.h: New file.
9459         * config/ia64/vms-crtinit.asm: New file.
9460         * config/ia64/vms_symvec_libgcc_s.opt: New file.
9461         * config/ia64/vms-unwind.h: New file.
9462
9463 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
9464
9465         * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
9466         TFmode compares.
9467
9468 2009-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9469
9470         PR middle-end/30789
9471         * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
9472         Move declaration...
9473         * real.h (do_mpc_arg2): ... here.
9474         * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
9475         and RDIV_EXPR.
9476
9477 2009-08-14  Rafael Avila de Espindola  <espindola@google.com>
9478
9479         * final.c (add_debug_prefix_map): Don't use GC memory for
9480         old_prefix and new_prefix.
9481
9482 2009-08-14  Richard Guenther  <rguenther@suse.de>
9483
9484         * ipa-prop.c (compute_complex_pass_through): If we cannot
9485         compute a non-varying offset for IPA_JF_ANCESTOR punt.
9486
9487 2009-08-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9488
9489         * c-lex.c (c_lex_with_flags): Increase size of local variable
9490         to avoid memory clobber.
9491
9492 2009-08-14  Paolo Bonzini  <bonzini@gnu.org>
9493
9494         PR target/40934
9495         * config/i386/i386.c (ix86_fp_comparison_strategy):
9496         Only enable/disable sahf at function granularity.
9497
9498 2009-08-14  Hans-Peter Nilsson  <hp@axis.com>
9499
9500         PR rtl-optimization/41064
9501         * reload1.c (reload_as_needed): Don't call extract_insn
9502         for known invalid replacements after calling
9503         validate_replace_rtx_group and verify_changes.
9504
9505 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
9506
9507         PR target/41019
9508         * config/i386/sse.md (SSEMODE124C8): New mode iterator.
9509         (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
9510         ix86_expand_fp_vcond.
9511         (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
9512         Assert that operation is supported by ix86_expand_int_vcond.
9513         (vcondu<SSEMODE124C8:mode>): Ditto.
9514
9515 2009-08-13  DJ Delorie  <dj@redhat.com>
9516
9517         * config/i386/djgpp-stdint.h: New.
9518         * config.gcc (djgpp): Use it.
9519
9520 2009-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
9521
9522         * config/sh/sh.c (sh_override_options): When flag_exceptions or
9523         flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
9524
9525 2009-08-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
9526
9527         * tree-ssa-loop-prefetch.c
9528         (prune_ref_by_group_reuse): Enhance probabilistic analysis
9529         for long-stride pruning.
9530         (compute_miss_rate): New function to compute the probability
9531         that two memory references access different cache lines.
9532
9533 2009-08-13  Dave Korn  <dave.korn.cygwin@gmail.com>
9534
9535         * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
9536
9537 2009-08-13  Richard Guenther  <rguenther@suse.de>
9538
9539         PR middle-end/41047
9540         * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
9541         use the constant pointer type.
9542         * gimplify.c (canonicalize_addr_expr): Canonicalize independent
9543         of CV qualifiers on the target pointer type.
9544         * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
9545         conversion check before restrict check.
9546
9547 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
9548
9549         PR target/41029
9550         * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
9551
9552 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
9553
9554         * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
9555
9556 2009-08-12  Richard Guenther  <rguenther@suse.de>
9557
9558         PR tree-optimization/41011
9559         * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
9560         and reference constructing.
9561
9562 2009-08-12  Xinliang David Li  <davidxl@google.com>
9563
9564         PR tree-optimization/41012
9565         * tree-flow.h : New external interface.
9566         * gimple-low.c (check_call_arg): Change to public function.
9567         Remove argument mismatch check in lowering.
9568         * tree-inline.h (tree_can_inline_p): Interface change.
9569         * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
9570         into this function.
9571         * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
9572         Call change to tree_can_inline_p function.
9573         (cgraph_decide_inlining_incrementally): Ditto.
9574
9575 2009-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
9576
9577         PR tree-optimization/41031
9578         * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
9579         on the partition variable rather than promote_mode on the source
9580         type.  Assert that the partition variable's type has the same
9581         mode as the source value's.
9582
9583 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
9584
9585         * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
9586         for for_return == 2.
9587         * function.c (assign_parm_setup_reg): Use for_return == 2, improve
9588         comments.
9589         * calls.c (expand_call): Fix typo.
9590         * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
9591         and PARM_DECL.
9592         * stmt.c (expand_value_return): Use promote_function_mode to copy out
9593         of pseudo.
9594         * targhooks.c (default_promote_function_mode): Handle for_return == 2.
9595         * config/cris/cris.c (cris_promote_function_mode): Likewise.
9596         * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
9597         * config/pa/pa.c (pa_promote_function_mode): Likewise.
9598
9599 2009-08-12  Andrew Haley  <aph@redhat.com>
9600
9601         * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
9602
9603 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9604
9605         PR bootstrap/40103
9606         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
9607
9608 2009-08-12  Richard Guenther  <rguenther@suse.de>
9609
9610         * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
9611         * gimplify.c (gimplify_modify_expr): Do not use
9612         lang_hooks.types_compatible_p.
9613         * tree-ssa.c (useless_type_conversion_p): For aggregates
9614         just return false if the canonical types differ.
9615
9616 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9617
9618         PR middle-end/40980
9619         * sese.c (convert_for_phi_arg): New.
9620         (add_guard_exit_phis): Use convert_for_phi_arg.
9621
9622 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9623
9624         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
9625         unknown subscript upper bounds.
9626
9627 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9628             Pranav Garg  <pranav.garg2107@gmail.com>
9629
9630         * graphite-interchange.c (gather_access_strides): Removed.
9631         (ppl_max_for_le): New.
9632         (build_linearized_memory_access): New.
9633         (memory_stride_in_loop): New.
9634         (pbb_interchange_profitable_p): Reimplemented.
9635         * graphite-ppl.h (ppl_new_id_map): New.
9636         (ppl_interchange): New.
9637
9638 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9639
9640         * graphite-interchange.c (compute_subscript): Removed.
9641         (compute_array_size_cstr): Removed.
9642         (compute_array_size_poly): Removed.
9643         (compute_array_size): Removed.
9644         (gather_access_strides_poly): Removed.
9645         (gather_access_strides): Empty.
9646
9647 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9648
9649         * graphite-dependences.c (dependence_polyhedron_1): Replace
9650         pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
9651         (graphite_legal_transform_dr): Same.
9652         (graphite_carried_dependence_level_k): Same.
9653         * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
9654         Initialize PDR_NB_SUBSCRIPTS.
9655         (print_pdr_access_layout): Replace pdr_nb_subscripts with
9656         PDR_NB_SUBSCRIPTS.
9657         * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
9658         (PDR_NB_SUBSCRIPTS): New.
9659         (pdr_nb_subscripts): Removed.
9660         (pdr_dim): Simplified.
9661         * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
9662         with PDR_NB_SUBSCRIPTS.
9663
9664 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9665
9666         * graphite-interchange.c (compute_array_size): Remove use of
9667         PDR_DATA_CONTAINER.
9668         * graphite-poly.c (new_poly_dr): Remove argument data_container.
9669         Do not initialize PDR_DATA_CONTAINER.
9670         (print_pdr): Do not print PDR_DATA_CONTAINER.
9671         * graphite-poly.h (struct poly_dr): Remove data_container field.
9672         (PDR_DATA_CONTAINER): Removed.
9673         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
9674         PDR_DATA_CONTAINER.
9675         (build_poly_dr): Same.
9676
9677 2009-08-12  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
9678             Sebastian Pop  <sebastian.pop@amd.com>
9679
9680         * graphite-dependences.c (graphite_legal_transform_dr): Work on a
9681         copy of the dependence polyhedron.  Free the temporary objects.
9682         (graphite_carried_dependence_level_k): Free unused objects before
9683         returning.
9684
9685 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9686
9687         * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
9688         Early return without analyzing the data dependences if no
9689         transform has been done.  Call restore_scattering if the transform
9690         is not legal.
9691         (graphite-interchange.c): Same.
9692         * graphite-poly.c (print_scattering_function): Test for
9693         PBB_TRANSFORMED.
9694         (graphite_read_transforms): Initialize PBB_TRANSFORMED.
9695         (apply_poly_transforms): Do not gcc_assert that
9696         the transform is legal.
9697         (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
9698         Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
9699         PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
9700         (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
9701         * graphite-poly.h (struct poly_scattering): New.
9702         (struct poly_bb): Add original, transformed, and saved fields.
9703         Remove transformed_scattering, original_scattering,
9704         nb_local_variables and nb_scattering_transform fields.
9705         (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
9706         (poly_scattering_new): New.
9707         (poly_scattering_free): New.
9708         (poly_scattering_copy): New.
9709         (store_scattering_pbb): New.
9710         (store_scattering): New.
9711         (restore_scattering_pbb): New.
9712         (restore_scattering): New.
9713         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
9714         Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
9715
9716 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9717
9718         * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
9719         (print_scop): Same.
9720
9721 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9722
9723         * Makefile.in (graphite.o): Depends on PREDICT_H.
9724         * graphite.c: Include predict.h.
9725         (graphite_finalize): Call tree_estimate_probability.
9726         * predict.c (predict_loops): Do not call scev_initialize and
9727         scev_finalize.
9728         (tree_estimate_probability_bb): New.
9729         (tree_estimate_probability): Do not initialize loops: move that
9730         code to the driver.  Call tree_estimate_probability_bb.
9731         (tree_estimate_probability_driver): New.
9732         (pass_profile): Use tree_estimate_probability_driver.
9733         * predict.h (tree_estimate_probability): Declared.
9734
9735 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9736
9737         * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
9738         * graphite-dependences.c (graphite_legal_transform): Add time to
9739         TV_GRAPHITE_DATA_DEPS.
9740         (dependency_between_pbbs_p): Same.
9741         * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
9742
9743 2009-08-12  Andrey Belevantsev  <abel@ispras.ru>
9744
9745         PR rtl-optimization/41033
9746         * alias.c (nonoverlapping_component_refs_p): Punt when strict
9747         aliasing is disabled.
9748
9749 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
9750
9751         * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
9752         si_mask_operand, and_load_operand, low_bitmask_operand,
9753         and_reg_operand, and_operand): New predicates.
9754         * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
9755         * config/mips/mips.c (and_operands_ok): New function.
9756         * config/mips/mips-protos.h (and_operands_ok): Declare it.
9757         * config/mips/mips.md (move_type): Add ext_ins and logical.
9758         (type): Handle them.
9759         (and<mode>3): Use and_reg_operand as the second operand's predicate.
9760         (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
9761         shift_shift.  Remove commutative constraint modifier.
9762         (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
9763         shift_shift.
9764         (*clear_upper32_dext): Remove define_insn_and_split.
9765         (*clear_upper32): Turn this define_insn_and_split ...
9766         (splitter for ANDing register with 0xffff_ffff): .. into this.
9767
9768 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
9769
9770         * combine.c (try_widen_shift_mode): Factor out code to check if an
9771         integer constant is a low-order bitmask from here ...
9772         * rtlanal.c (low_bitmask_len): ... to here.
9773         * rtl.h (low_bitmask_len): Declare.
9774
9775 2009-08-11  Uros Bizjak  <ubizjak@gmail.com>
9776
9777         PR target/8603
9778         * config/alpha/alpha.md (addsi3): Remove expander.
9779         (addsi3): Rename from *addsi3_internal insn pattern.
9780         (subsi3): Remove expander.
9781         (subsi3): Rename from *subsi3_internal insn pattern.
9782
9783 2009-08-11  Douglas B Rupp  <rupp@gnat.com>
9784
9785         * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
9786         FWRITE_UNLOCKED.
9787
9788 2009-08-11  Vasiliy Fofanov  <fofanov@adacore.com>
9789             Eric Botcazou  <botcazou@adacore.com>
9790             Douglas B Rupp  <rupp@gnat.com>
9791
9792         * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
9793         that records that fit in 64 bits are returned by immediate value,
9794         as required by OpenVMS Calling Standard.
9795         (function_value): Adjust for above modification.
9796         (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
9797         virtual_incoming_args_rtx as base object, not next_arg.
9798         * config/alpha/vms.h (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
9799
9800 2009-08-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9801
9802         * reload.c (find_reloads_subreg_address): Check the original
9803         req_equiv_mem address to detect the case where an address is
9804         not valid in the outer mode.
9805
9806 2009-08-11  Richard Guenther  <rguenther@suse.de>
9807
9808         PR bootstrap/40788
9809         * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
9810
9811 2009-08-10  Douglas B Rupp  <rupp@gnat.com>
9812
9813         * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
9814         (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
9815
9816 2009-08-10  Olivier Hainque  <hainqueu@adacore.com>
9817             Douglas B Rupp  <rupp@gnat.com>
9818
9819         * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
9820         PT_STACK when frame_pointer_needed on OpenVMS.
9821         (alpha_pv_save_size, alpha_using_fp): Remove.
9822         (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
9823         with proper processing for PT_NULL.
9824         (alpha_vms_initial_elimination_offset): New function. Support for
9825         INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
9826         (alpha_sa_size): Force procedure type to PT_STACK when
9827         frame_pointer_needed on OpenVMS.
9828         * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
9829         (alpha_using_fp): Likewise.
9830         (alpha_vms_can_eliminate): Add prototype.
9831         (alpha_vms_initial_elimination_offset): Likewise.
9832         * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
9833         Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
9834
9835 2009-08-10  Eric Botcazou  <botcazou@adacore.com>
9836             Douglas B Rupp  <rupp@gnat.com>
9837
9838         * config/alpha/alpha.c (common_object_handler): New function.
9839         (vms_attribute_table): Declare a single attribute "common_object".
9840         (vms_output_aligned_decl_common): New global function.
9841         (SECTION_VMS_OVERLAY): Delete.
9842         (SECTION_VMS_GLOBAL): Likewise.
9843         (SECTION_VMS_INITIALIZE): Likewise.
9844         (vms_asm_named_section): Remove support for above flags.
9845         (vms_section_type_flags): Delete.
9846         (TARGET_SECTION_TYPE_FLAGS): Likewise.
9847         * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
9848         * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
9849         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
9850
9851 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
9852
9853         PR target/41015
9854         * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
9855         (sub_ddmmss): Likewise.
9856
9857 2009-08-10  Andreas Tobler  <a.tobler@schweiz.org>
9858
9859         PR bootstrap/41018
9860         * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
9861         year.
9862
9863 2009-08-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9864
9865         PR target/37053
9866         * reload1.c (reload_as_needed): Use cancel_changes to completely
9867         undo a failed replacement attempt.
9868
9869 2009-08-10  Richard Guenther  <rguenther@suse.de>
9870
9871         PR middle-end/41006
9872         * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
9873         (useless_type_conversion_p): ... here.  Require pointer targets
9874         to be compatible.
9875
9876 2009-08-10  Dodji Seketeli  <dodji@redhat.com>
9877
9878         PR c++/40866
9879         * tree-inline.c (copy_statement_list): The resulting copy shouldn't
9880         loose the original type of the statement list.
9881
9882 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
9883
9884         * config/alpha/alpha.c: Include libfuncs.h
9885         (avms_asm_output_extern): New function.
9886         (alpha_init_libfuncs): Init some decc libfuncs.
9887         * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
9888         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
9889         (DO_CRTL_NAMES): Define.
9890         (LIB_SPEC): Remove.
9891         * config/alpha/vms64.h (POINTERS_EXTEND_UNSIGNED): Remove undef.
9892         (LONG_TYPE_SIZE): Define.
9893         (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
9894         (SUBTARGET_SWITCHES): Define malloc64 switch.
9895         (TARGET_DEFAULT): Default MASK_MALLOC64 set.
9896         (MASK_RETURN_ADDR): Define.
9897         doc/invoke.texi (mmalloc64): Document switch.
9898
9899 2009-08-09  Olivier Hainque  <hainque@adacore.com>
9900             Douglas B Rupp  <rupp@gnat.com>
9901
9902         * config/alpha/alpha.c (struct machine_function): New flag for VMS,
9903         uses_condition_handler.
9904         (alpha_expand_builtin_establish_vms_condition_handler): New expander.
9905         (alpha_expand_builtin_revert_vms_condition_handler): New expander.
9906         (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
9907         and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
9908         (code_for_builtin): New insn codes for the new alpha_builtins.
9909         (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
9910         (alpha_sa_size): Account for uses_condition_handler.
9911         (alpha_expand_prologue): Likewise.
9912         (alpha_start_function): Likewise.
9913         (alpha_expand_epilogue): Likewise.
9914         * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
9915         establish/revert expanders.
9916         * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
9917         * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
9918         New expander, resorting to the alpha.c associated function.
9919         (builtin_revert_vms_condition_handler): Likewise.
9920         * config/alpha/vms-gcc_shell_handler.c: New file. Implements
9921         __gcc_shell_handler, the static VMS condition handler used as
9922         an indirection wrapper to the current dynamically established
9923         handler.
9924         * config/alpha/vms-unwind.h: Complete rewrite.
9925         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
9926         * config/alpha/vms.h (MD_UNWIND_SUPPORT):
9927
9928 2009-08-09  Eric Botcazou  <botcazou@adacore.com>
9929             Douglas B Rupp  <rupp@gnat.com>
9930
9931         * config/alpha/alpha.c (alpha_links): Add 'target' field.
9932         (alpha_need_linkage): Handle aliases.  Return function symbol.
9933         (alpha_use_linkage): Rename 'linkage' argument to 'func'.
9934         Use ultimate alias target for the linkage name.
9935         * config/alpha/alpha.md (movmemdi): Use the symbol returned
9936         by alpha_need_linkage for the function symbol.
9937         (setmemdi): Likewise.
9938
9939 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
9940
9941         * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
9942         * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
9943         (ASM_WEAKEN_LABEL): Define.
9944         (CRT_CALL_STATIC_FUNCTION): Define.
9945         (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
9946         (ENDFILE_SPEC): Define.
9947         (INIT_SECTION_ASM_OP): Define.
9948         * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
9949         * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
9950         crtend.o crtendS.o.
9951         (MULTILIB_OSDIRNAMES): Define.
9952         (shlib_version): Define.
9953         (SHLIB_EXT): Define.
9954         (SHLIB_OBJS): Define.
9955         (SHLIB_NAME): Define.
9956         (SHLIB_MULTILIB): Define.
9957         (SHLIB_INSTALL): Define.
9958         (SHLIB_SYMVEC): Define.
9959         (SHLIB_SYMVECX2): Define.
9960         (SHLIB_LINK): Define.
9961
9962 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
9963
9964         * config/alpha/alpha.c (alpha_initialize_trampoline):
9965         Initialize VMS trampoline IAW ABI for bounded procedure calls.
9966         (alpha_start_function): Emit transfer address on nested functions
9967         for VMS trampoline call.
9968         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
9969         since no longer used.
9970         * config/alpha/vms-tramp.asm: Remove.
9971         * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
9972         since now only data initialized at runtime.
9973
9974 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
9975
9976         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
9977         (LINK_GCC_C_SEQUENCE_SPEC): Define.
9978         (MD_EXEC_PREFIX): Remove, no longer used.
9979         (MD_STARTFILE_PREFIX): Likewise.
9980         (INCLUDE_DEFAULTS): Likewise.
9981         * config/alpha/t-vms:
9982         (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
9983
9984 2009-08-09  Richard Guenther  <rguenther@suse.de>
9985
9986         PR tree-optimization/41016
9987         * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
9988         (operand_precision): Remove.
9989         (integral_operand_p): Likewise.
9990         (recognize_single_bit_test): Adjust.
9991
9992 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
9993
9994         * c-common.c (c_fully_fold_internal): Issue a warning if a binary
9995         operation overflows.  Likewise non-cast unary arithmetic.
9996         If one arm of a conditional expression is always taken,
9997         inhibit evaluation warnings for the other arm.  Likewise inhibit
9998         evaluation warnings for the second && or || operand if the first
9999         operand is enough to determine the result.
10000         * c-typeck.c (build_conditional_expr): Apply the same inhibition
10001         rules here.
10002         (build_binary_op): Prevent duplicate evaluation warnings.
10003
10004 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
10005
10006         * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
10007         and destination have different modes, Use promote_mode to
10008         determine the signedness of the conversion.  Assert that the
10009         promoted source mode matches the destination mode.  Don't pass
10010         the destination and destination mode to expand_expr if the source
10011         mode is different.  Simplify conversion logic.
10012
10013 2009-08-09  Ira Rosen  <irar@il.ibm.com>
10014
10015         PR tree-optimization/41008
10016         * tree-vect-loop.c (vect_is_simple_reduction): Get operands
10017         from condition only in case it's a comparison. Adjust checks.
10018
10019 2009-08-09  Bernd Schmidt  <bernd.schmidt@analog.com>
10020
10021         * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
10022         * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
10023         * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
10024         (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
10025         (dump_cand): Handle them.
10026         (struct iv_cand): New members COST_STEP and AINC_USE.
10027         (stmt_after_increment): Likewise.
10028         (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos.  All
10029         callers changed.  Use gimple_uid comparison instead of scanning.
10030         (add_candidate_1): When looking for identical candidates, take
10031         AINC_USE into account.  Set it for new candidates.
10032         (force_expr_to_var_cost): Cast target_spill_cost to int.
10033         (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
10034         All callers changed.  Check for availability of autoinc addressing
10035         modes, both in general for a given mode, and in the specific use case.
10036         (get_computation_cost_at): New argument CAN_AUTOINC.  All callers
10037         changed.
10038         (get_computation_cost): Likewise.
10039         (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
10040         add_autoinc_candidates): New static functions.
10041         (add_candidate): Call add_autoinc_candidates for candidates based on
10042         a USE_ADDRESS use.
10043         (find_iv_candidates): Call set_autoinc_for_original_candidates.
10044         (determine_use_iv_cost_address): If we have an autoinc candidate at
10045         the matching use, verify autoinc is possible and subtract the cost
10046         of the candidate's step from the cost.
10047         (determine_iv_cost): Record the cost of the increment in the COST_STEP
10048         member of the candidate.
10049         (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
10050         determine_use_iv_costs.  Call renumber_gimple_stmt_uids_in_blocks.
10051
10052 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
10053
10054         * config.build (ia64-hp-*vms*): New target.
10055         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
10056         with ia64-hp-*vms*.
10057         * config.gcc (ia64-hp-*vms*): New target.
10058         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
10059         with ia64-hp-*vms*.
10060         * config.host (ia64-hp-*vms*): New target.
10061         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
10062         with ia64-hp-*vms*.
10063
10064 2009-08-08  Richard Guenther  <rguenther@suse.de>
10065
10066         PR tree-optimization/40991
10067         * tree-ssa-pre.c (eliminate): Delay purging EH edges.
10068
10069 2009-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
10070
10071         * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
10072         mode check.  Do truncations in an integer mode.
10073         (force_to_mode): Handle subregs for all mode types.  Only do
10074         arithmetic simplifications on integer modes.
10075
10076 2009-08-07  Richard Guenther  <rguenther@suse.de>
10077
10078         PR tree-optimization/40999
10079         * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
10080         (maybe_fold_reference): Lookup constant initializers.
10081         (fold_gimple_assign): Likewise.
10082
10083 2009-08-07  Richard Guenther  <rguenther@suse.de>
10084
10085         * tree-ssa.c (useless_type_conversion_p_1): Only for types
10086         that require structural equality defer to the langhook.
10087
10088 2009-08-07  Martin Jambor  <mjambor@suse.cz>
10089
10090         * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
10091         comments.
10092         (struct ipa_pass_through_data): New type.
10093         (struct ipa_ancestor_jf_data): New type.
10094         (union jump_func_value): Removed field formal_id, added fields
10095         pass_through and ancestor.
10096         (struct ipa_param_call_note): Changed type of formal_id to int from
10097         unsigned.
10098         * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
10099         operations jump functions and ancestor jump functions.
10100         (compute_complex_pass_through): New function.
10101         (compute_scalar_jump_functions): Call compute_complex_pass_through,
10102         reflect changes in the jump function strucutre.
10103         (update_jump_functions_after_inlining): Ignore complex pass-through
10104         and ancestor jump functions.
10105         * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
10106         polynomial pass-through with operation jump functions.
10107
10108 2009-08-07  Jakub Jelinek  <jakub@redhat.com>
10109
10110         * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
10111         fde->dw_fde_begin as begin label instead of hot/cold label.
10112         Use LLSDAC label instead of LLSDA for second section lsda.
10113         (dwarf2out_do_cfi_startproc): Add SECOND argument.  Use LLSDAC
10114         label instead of LLSDA if it is true.
10115         (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
10116         callers.
10117         * except.c (add_call_site, dw2_size_of_call_site_table): Add
10118         SECTION argument.  Use it as index into crtl->eh.call_site_record
10119         array.
10120         (dw2_output_call_site_table): Likewise.  Add CS_FORMAT argument,
10121         use it to determine how to print table entries instead of using
10122         #ifdef HAVE_AS_LEB128.  For SECTION > 0 use hot resp. cold
10123         label instead of normal begin label as base.
10124         (sjlj_assign_call_site_values): Adjust add_call_site caller.
10125         (convert_to_eh_region_ranges): When doing hot/cold partitioning,
10126         ensure no EH range spans between sections and that landing pads
10127         are always in the corresponding section.
10128         (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
10129         for crtl->eh.call_site_record being an array rather than scalar.
10130         (output_one_function_exception_table): New function, copied
10131         from output_function_exception_table.  Adjust
10132         dw2_size_of_call_site_table, dw2_output_call_site_table
10133         callers.  For SECOND section use *C suffixed labels.
10134         (output_function_exception_table): Call
10135         output_one_function_exception_table and, when doing hot/cold
10136         partitioning, also another time for the second section.
10137         * opts.c: Include except.h.
10138         (decode_options): Allow -freorder-blocks-and-partition with
10139         exceptions, unless SJLJ or TARGET_UNWIND_INFO.
10140         * Makefile.in (opts.o): Depend on $(EXCEPT_H).
10141         * function.h (struct rtl_eh): Change call_site_record from
10142         scalar into array of 2 elements.
10143
10144 2009-08-07  Martin Jambor  <mjambor@suse.cz>
10145
10146         * ipa-prop.c (count_formal_params_1): New function.
10147         (ipa_get_vector_of_formal_parms): New function.
10148         (get_vector_of_formal_parm_types): New function.
10149         (ipa_modify_formal_parameters): New function.
10150         (ipa_modify_call_arguments): New function.
10151         (index_in_adjustments_multiple_times_p): New function.
10152         (ipa_combine_adjustments): New function.
10153         (ipa_dump_param_adjustments): New function.
10154         * ipa-prop.h (struct ipa_parm_adjustment): New type.
10155         (ipa_get_vector_of_formal_parms): Declare.
10156         (ipa_modify_formal_parameters): Declare.
10157         (ipa_modify_call_arguments): Declare.
10158         (ipa_combine_adjustments): Declare.
10159         (ipa_dump_param_adjustments): Declare.
10160         (build_ref_for_offset): Declare.
10161         * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
10162         * tree-sra.c: Include ipa-prop.c.
10163         (build_ref_for_offset): Make public.
10164
10165 2009-08-06  Neil Vachharajani  <nvachhar@gmail.com>
10166
10167         * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
10168
10169 2009-08-06  Thomas Schwinge  <tschwinge@gnu.org>
10170
10171         * gcc/doc/extend.texi (__builtin_extract_return_address)
10172         (__builtin_frob_return_address): Document.
10173
10174 2009-08-06  Paul Brook  <paul@codesourcery.com>
10175
10176         * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
10177         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
10178         implementation on ARMv6-M.
10179
10180 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
10181
10182         * doc/extend.texi (pcs): Document new attribute for ARM.
10183
10184 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
10185
10186         * arm.c (pcs_attribute_args): Comment out unsupported attribute
10187         variants.
10188
10189 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
10190
10191         * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
10192         warning ().
10193
10194 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
10195
10196         * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
10197
10198 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
10199
10200         Merge ARM/hard_vfp_branch to trunk.
10201
10202         2009-08-04  Richard Earnshaw  <rearnsha@arm.com>
10203
10204         * arm.c (libcall_eq): New function.
10205         (libcall_hash): New function.
10206         (add_libcall): New function.
10207         (arm_libcall_uses_aapcs_base): New function.
10208         (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
10209         libcalls using the base PCS.
10210         (arm_init_cumulative_args): Likewise.
10211
10212         2009-07-20  Joseph Myers  <joseph@codesourcery.com>
10213
10214         * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
10215         Use base ABI for conversion libfuncs between HFmode and SFmode.
10216
10217         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
10218
10219         * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
10220         V4SImode as representatives of all 64-bit and 128-bit vector
10221         types.  Allow vector types without vector modes.
10222         (aapcs_vfp_is_call_or_return_candidate): Handle vector types
10223         without vector modes like BLKmode.
10224         (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
10225         BLKmode.  Avoid unsupported vector modes or TImode moves for
10226         non-TARGET_NEON.
10227         (aapcs_vfp_allocate_return_reg): Likewise.
10228         (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
10229         V8QImode if TARGET_NEON || TARGET_IWMMXT.
10230
10231         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
10232
10233         * config/arm/arm.c (arm_handle_pcs_attribute): New.
10234         (arm_get_pcs_model): Pass attribute arguments to
10235         arm_pcs_from_attribute.
10236         (arm_init_cumulative_args): Use base AAPCS for conversions from
10237         floating-point types to DImode.
10238         (arm_attribute_table): Add pcs attribute.
10239         (arm_handle_pcs_attribute): New.
10240         * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
10241         conversions from floating-point types to DImode, also declare them
10242         to use base AAPCS and declare functions they call to use base
10243         AAPCS and their RTABI names.
10244
10245         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
10246
10247         * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
10248         -mfloat-abi=hard not being supported for VFP.
10249
10250         2009-05-11  Kazu Hirata  <kazu@codesourcery.com>
10251
10252         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
10253         SYMBOL_REF to hard_libcall_value.
10254
10255         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
10256             Richard Earnshaw  <rearnsha@arm.com>
10257
10258         * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
10259         has been put on the stack, all remaining co-processory arguments for
10260         that co-processor also go on the stack.
10261
10262         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
10263
10264         * config/arm/arm.c (arm_return_in_memory): Handle returning
10265         vectors of suitable size in registers also for AAPCS case.
10266
10267         2009-01-13  Richard Earnshaw <rearnsha@arm.com>
10268
10269         * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
10270
10271         2008-12-09  Richard Earnshaw <rearnsha@arm.com>
10272
10273         ARM Hard-VFP calling convention
10274         * target-def.h (TARGET_LIBCALL_VALUE): New hook.
10275         * target.h (gcc_target): Add libcall_value to table of call hooks.
10276         * targhooks.h (default_libcall_value): Default implementation.
10277         * targhooks.c (default_libcall_value): Likewise.
10278         * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
10279         * optabs.c (expand_unop): Use it.
10280         * expr.h (hard_libcall_value): Pass the function RTX through.
10281         * calls.c (emit_library_call_value_1): Update call to
10282         hard_libcall_value.
10283         * explow.c (hard_libcall_value): Use new target hook.
10284         * config/arm/arm.c: Include cgraph.h
10285         (TARGET_FUNCTION_VALUE): Override default hook.
10286         (arm_pcs_default): New variable.
10287         (arm_override_options): Don't fault hard calling convention with VFP.
10288         Add support for AAPCS variants.
10289         (arm_function_value): Make static.  Handle AAPCS variants.
10290         (arm_libcall_value): New function.
10291         (arm_apply_result_size): Handle VFP registers in results.
10292         (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
10293         conventions.
10294         (pcs_attribute_args): New variable.
10295         (arm_pcs_from_attribute): New function.
10296         (arm_get_pcs_model): New function.
10297         (aapcs_vfp_cum_init): New function.
10298         (aapcs_vfp_sub_candidate): New function.
10299         (aapcs_vfp_is_return_candidate): New function.
10300         (aapcs_vfp_is_call_candidate): New function.
10301         (aapcs_vfp_allocate): New function.
10302         (aapcs_vfp_allocate_return_reg): New function.
10303         (aapcs_vfp_advance): New function.
10304         (aapcs_cp_arg_layout): New variable.
10305         (aapcs_select_call_coproc): New function.
10306         (aapcs_select_return_coproc): New function.
10307         (aapcs_allocate_return_reg): New function.
10308         (aapcs_libcall_value): New function.
10309         (aapcs_layout_arg): New function.
10310         (arm_init_cumulative_args): Initialize AAPCS args data.
10311         (arm_function_arg): Handle AAPCS variants using new interface.
10312         (arm_arg_parital_bytes): Likewise.
10313         (arm_function_arg_advance): New function.
10314         (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
10315         calling conventions.
10316         (arm_setup_incoming_varargs): Handle new AAPCS args data.
10317         * arm.h (NUM_VFP_ARG_REGS): Define.
10318         (LIBCALL_VALUE): Update.
10319         (FUNCTION_VALUE): Delete.
10320         (FUNCTION_VALUE_REGNO_P): Add VFP regs.
10321         (arm_pcs): New enum.
10322         (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
10323         (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
10324         (FUNCTION_ARG_REGNO_P): Add VFP regs.
10325         * arm-protos.h (arm_function_arg_advance): Add.
10326         (aapcs_libcall_value): Add.
10327         (arm_function_value): Delete.
10328
10329 2009-08-06  Uros Bizjak  <ubizjak@gmail.com>
10330             H.J. Lu  <hongjiu.lu@intel.com>
10331
10332         PR target/40957
10333         * config/i386/i386.c (standard_sse_mode_p): Remove.
10334         (standard_sse_constant_p): Return 2 for integer mode
10335         vector_all_ones_operand when SSE2 is enabled.
10336         (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
10337         (ix86_expand_vector_move): Do not check for negative values from
10338         standard_sse_constant_p.
10339
10340 2009-08-06  Richard Guenther  <rguenther@suse.de>
10341
10342         * tree-ssa.c (useless_type_conversion_p_1): Make function and
10343         array type comparisons frontend independent.
10344         * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
10345         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
10346         out array reference lower bound and element size operands.
10347         (ao_ref_init_from_vn_reference): Properly compute the offset
10348         for ARRAY_RANGE_REF.
10349         (vn_reference_fold_indirect): Fill out array reference lower
10350         bound and element size operands.
10351         * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
10352         a non gimple valued reference operand which can happen for
10353         array reference lower bound or element size.
10354         (create_component_ref_by_pieces_1): Properly generate the
10355         element size operand for array references.
10356
10357 2009-08-06  Richard Guenther  <rguenther@suse.de>
10358
10359         PR tree-optimization/40964
10360         * tree.c (iterative_hash_host_wide_int): Export.
10361         * tree.h (iterative_hash_host_wide_int): Declare.
10362         * tree-ssa-structalias.c (heapvar_map): New struct.
10363         (heapvar_map_eq): New function.
10364         (heapvar_map_hash): Likewise.
10365         (heapvar_lookup): Adjust.
10366         (heapvar_insert): Likewise.
10367         (make_constraint_from_heapvar): Allow multiple heap variables
10368         per decl at different offsets.
10369         (init_alias_heapvars): Adjust.
10370
10371 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
10372
10373         * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
10374         * mips_output_sync_loop (mips_output_sync_loop): Only emit
10375         trailing sync if TARGET_SYNC_AFTER_SC.
10376
10377 2009-08-05  David Daney  <ddaney@caviumnetworks.com>
10378
10379         * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
10380         compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
10381         sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
10382         sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
10383         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
10384         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
10385         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
10386         sync_new_nand<mode>, sync_lock_test_and_set<mode>,
10387         test_and_set_12): Rewrite calls to mips_output_sync_loop.
10388         * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
10389         the prototype declaration match the definition.
10390         * gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
10391         instructions explicitly.  Add barrier_before and operands
10392         parameters.
10393         * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
10394         MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
10395         MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
10396         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
10397         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
10398         MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
10399
10400 2009-08-05  Andrew Pinski  <pinskia@gmail.com>
10401
10402         * tree-ssa-alias.c: Fix intervals to use [) syntax.
10403
10404 2009-08-05  Uros Bizjak  <ubizjak@gmail.com>
10405             Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
10406
10407         PR target/40906
10408         * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
10409         source operand.
10410
10411 2009-08-05  Jakub Jelinek  <jakub@redhat.com>
10412
10413         PR rtl-optimization/40924
10414         * dse.c (canon_address): Before calling cselib_expand_value_rtx
10415         make sure canon_rtx (mem_address) isn't simpler than
10416         canon_rtx (expanded_mem_address).
10417
10418 2009-08-05  Li Feng  <nemokingdom@gmail.com>
10419
10420         * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
10421         for each poly_bb_p.
10422         (build_scop_drs): Build alias set for each SCoP.
10423
10424 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
10425
10426         * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
10427         * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
10428         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
10429         (MIPS_ARCH_FLOAT_SPEC): Likewise.
10430         (BASE_DRIVER_SELF_SPECS): Likewise.
10431
10432 2009-08-04  Andrew Pinski  <pinskia@gmail.com>
10433
10434         * tree-ssa-alias.c: Fix some comment typos.
10435
10436 2009-08-04  Kaz Kojima  <kkojima@gcc.gnu.org>
10437
10438         * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
10439         ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
10440
10441 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
10442
10443         PR c/39902
10444         * simplify-rtx.c (simplify_binary_operation_1): Disable
10445         simplifications for decimal float operations.
10446
10447 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
10448
10449         PR middle-end/40943
10450         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
10451         operand of INDIRECT_REF.
10452
10453 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
10454
10455         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
10456         constants referencing TLS symbols.
10457
10458 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
10459
10460         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
10461         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
10462
10463 2009-08-03  Richard Guenther  <rguenther@suse.de>
10464
10465         * tree.c (make_vector_type): Build a main variant first,
10466         get the canonical one and then build the variant.
10467         * tree-ssa.c (useless_type_conversion_p_1): Handle
10468         fixed-point types.
10469         (useless_type_conversion_p): Conversions to pointers to
10470         incomplete record types are useless.
10471
10472 2009-08-03  Richard Guenther  <rguenther@suse.de>
10473
10474         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
10475         file will be created.
10476         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
10477         * toplev.c (compile_file): Adjust comment.
10478
10479 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
10480
10481         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
10482         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
10483         (TARGET_PROMOTE_FUNCTION_MODE): Define.
10484         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
10485         (sh_promote_function_mode): Fix typo.
10486
10487 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
10488
10489         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
10490
10491 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10492
10493         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
10494         declaration arguments.
10495
10496 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
10497
10498         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
10499         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
10500         (ix86_split_ashl): Ditto.
10501         (ix86_expand_vector_init_one_nonzero): Ditto.
10502         (ix86_expand_vector_set): Ditto.
10503         (ix86_expand_reduc_v4sf): Ditto.
10504
10505 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
10506
10507         * explow.c (promote_function_mode): Remove assert.
10508         * config/sh/sh.c (sh_promote_function_mode): Declare.
10509
10510 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10511
10512         * config/pa/pa.c (pa_promote_function_mode): Declare.
10513         Change to static.  Fix promote_mode call.
10514
10515         * gthr-dce.h (CONST_CAST2): Define if not defined.
10516         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
10517
10518         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
10519
10520 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
10521
10522         * expr.c (store_constructor): Use promote_decl_mode.  Remove
10523         now write-only variable unsignedp.
10524         (expand_expr_real_1): Use promote_decl_mode.
10525         * expr.h (promote_function_mode, promote_decl_mode): New.
10526         (promote_mode): Remove last argument.
10527         * function.c (assign_temp): Drop last argument of promote_mode.
10528         (assign_parm_find_data_types): Use promote_function_mode.
10529         (assign_parm_setup_reg): Likewise.
10530         (expand_function_end): Use promote_function_mode.
10531         * calls.c (initialize_argument_information): Use promote_function_mode.
10532         (precompute_arguments): Use promote_mode instead of checking if
10533         only PROMOTE_FUNCTION_MODE is defined.
10534         (expand_call): When making sibcall decisions, use promote_function_mode.
10535         Below, remove an if for targetm.calls.promote_function_return and
10536         and use promote_function_mode.
10537         (emit_library_call_value_1): Use promote_function_mode, fix bug
10538         where promote_mode was passed FOR_CALL == 0 for a return value in an
10539         assertion.
10540         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
10541         * explow.c (promote_function_mode, promote_decl_mode): New.
10542         (promote_mode): Keep only the FOR_CALL == 0 case.
10543         * combine.c (setup_incoming_promotion): Remove test of
10544         promote_function_args.  Use promote_function_mode.
10545         * stmt.c (expand_value_return): Use promote_decl_mode.
10546         (expand_decl): Use promote_decl_mode.
10547
10548         * expr.c (store_constructor): Use promote_decl_mode.  Remove
10549         now write-only variable unsignedp.
10550         (expand_expr_real_1): Use promote_decl_mode.
10551         * expr.h (promote_function_mode, promote_decl_mode): New.
10552         (promote_mode): Remove last argument.
10553         * function.c (assign_temp): Drop last argument of promote_mode.
10554         (assign_parm_find_data_types): Use promote_function_mode.
10555         (assign_parm_setup_reg): Likewise.
10556         (expand_function_end): Use promote_function_mode.
10557         * calls.c (initialize_argument_information): Use promote_function_mode.
10558         (precompute_arguments): Use promote_mode instead of checking if
10559         only PROMOTE_FUNCTION_MODE is defined.
10560         (expand_call): When making sibcall decisions, use promote_function_mode.
10561         Below, remove an if for targetm.calls.promote_function_return and
10562         and use promote_function_mode.
10563         (emit_library_call_value_1): Use promote_function_mode, fix bug
10564         where promote_mode was passed FOR_CALL == 0 for a return value in an
10565         assertion.
10566         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
10567         * explow.c (promote_function_mode, promote_decl_mode): New.
10568         (promote_mode): Keep only the FOR_CALL == 0 case.
10569         * combine.c (setup_incoming_promotion): Remove test of
10570         promote_function_args.  Use promote_function_mode.
10571         * stmt.c (expand_value_return): Use promote_decl_mode.
10572         (expand_decl): Use promote_decl_mode.
10573
10574         * explow.c (promote_function_mode): Just call the target hook.
10575         * targhooks.c (default_promote_function_mode,
10576         default_promote_function_mode_always_promote): New.
10577         * targhooks.h (default_promote_function_mode,
10578         default_promote_function_mode_always_promote): Declare.
10579         * target.h (promote_function_args, promote_function_return): Remove.
10580         (promote_function_mode): New.
10581         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
10582         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10583         (TARGET_PROMOTE_FUNCTION_MODE): New.
10584         (TARGET_CALLS): Adjust.
10585         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
10586         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
10587
10588         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
10589         * config/s390/s390.c (s390_promote_function_mode): ... here,
10590         with pointer handling.
10591         (TARGET_PROMOTE_FUNCTION_MODE): Define.
10592         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10593
10594         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
10595         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
10596         with pointer handling.
10597         (TARGET_PROMOTE_FUNCTION_MODE): Define.
10598         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10599
10600         * config/sh/sh-protos.h (sh_promote_function_mode): New.
10601         * config/sh/sh.c (sh_promote_function_mode): New.
10602         (TARGET_PROMOTE_FUNCTION_MODE): Define.
10603         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10604
10605         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
10606         * config/cris/cris.c (cris_promote_function_mode): ... here.
10607         (TARGET_PROMOTE_FUNCTION_MODE): Define.
10608         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
10609
10610         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
10611         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
10612         (TARGET_PROMOTE_FUNCTION_MODE): Define.
10613         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
10614
10615         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
10616         * config/arm/arm.c (arm_promote_function_mode): ... here, without
10617         complex type handling.
10618         (TARGET_PROMOTE_FUNCTION_MODE): Define.
10619         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10620
10621         * config/pa/pa.c (pa_promote_function_mode): New.
10622         (TARGET_PROMOTE_FUNCTION_MODE): Define.
10623         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10624
10625         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
10626         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10627         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
10628         * config/xtensa/xtensa.c: Likewise.
10629         * config/stormy16/stormy16.c: Likewise.
10630         * config/iq2000/iq2000.c: Likewise.
10631         * config/rs6000/rs6000.c: Likewise.
10632         * config/picochip/picochip.c: Likewise.
10633         * config/arc/arc.c: Likewise.
10634         * config/mcore/mcore.c: Likewise.
10635         * config/score/score.c: Likewise.
10636         * config/mips/mips.c: Likewise.
10637         * config/bfin/bfin.c: Likewise.
10638         * config/ia64/ia64.c: Likewise (disabled though).
10639
10640         * config/frv/frv.h: Remove pointless remark.
10641
10642         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
10643         TARGET_PROMOTE_FUNCTION_ARGS,
10644         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
10645         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
10646
10647 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
10648
10649         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
10650         -floop-parallelize-all.
10651         * toplev.c (process_options): Rename flag_graphite_force_parallel to
10652         flag_loop_parallelize_all.
10653         * tree-ssa-loop.c (gate_graphite_transforms): Same.
10654         * graphite.c (graphite_transform_loops): Same.
10655         * common.opt: Same.
10656         * graphite-poly.c (apply_poly_transforms): Same.
10657
10658 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
10659
10660         PR tree-optimization/40914
10661         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
10662         if set, then check the delta field of the PMF record.
10663         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
10664         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
10665         call is stored in the delta.
10666
10667 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
10668
10669         * config/mips/mips.md (*clear_upper32_dext): New pattern.
10670
10671 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
10672
10673         * config/i386/bsd.h (ASM_BYTE): New define.
10674         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
10675         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
10676         .byte.  Use fputs or putc instead of fprintf where appropriate.
10677         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
10678         fputs or putc instead of fprintf where appropriate.
10679         * config/i386/i386elf.h: Ditto.
10680         * config/i386/sysv4.h: Ditto.
10681
10682         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
10683         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
10684         (*tls_global_dynamic_64): Ditto.
10685
10686 2009-07-31  Christian Bruel  <christian.bruel@st.com>
10687
10688         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
10689
10690 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10691
10692         * config/arm/arm.c (arm_arm_address_cost): Fix typo.
10693         Remove dead code for MINUS.
10694
10695 2009-07-31  Anthony Green  <green@moxielogic.com>
10696
10697         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
10698         $r12 in prologue.
10699         (moxie_expand_epilogue): Ditto for epilogue.
10700         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
10701         incoming arguments.
10702         (moxie_function_arg): Ditto.
10703         (moxie_pass_by_reference): Ditto.
10704         (moxie_arg_partial_bytes): Ditto.
10705         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
10706         (FUNCTION_ARG_ADVANCE) Ditto.
10707         (REG_PARM_STACK_SPACE) Ditto.
10708         (FUNCTION_ARG_REGNO_P) Dito.
10709
10710         * config.gcc: Add moxie linux config support.
10711         * gcc/config/moxie/uclinux.h: New file.
10712
10713 2009-07-31  DJ Delorie  <dj@redhat.com>
10714
10715         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
10716         (UNSPECV_SP_SWITCH_E): New.
10717         (sp_switch_1): Change to an unspec.
10718         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
10719         replace $r15.
10720         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
10721         reference the new stack's address
10722
10723 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10724
10725         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
10726         graphite-clast-to-gimple.o, graphite-dependences.o,
10727         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
10728         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
10729         (graphite-blocking.o,
10730         graphite-clast-to-gimple.o, graphite-dependences.o,
10731         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
10732         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
10733         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
10734         * cfgloop.h (struct loop): Add can_be_parallel field.
10735         * common.opt (fgraphite-identity): Moved up.
10736         (fgraphite-force-parallel): New flag.
10737         * graphite.c: Rewrite.
10738         * graphite.h: Rewrite.
10739         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
10740         after Graphite.
10741         * toplev.c (graphite_out_file): New file descriptor.
10742         (graphite_in_file): New.
10743         (process_options): flag_graphite_force_parallel cannot be used without
10744         Graphite.
10745         * tree-ssa-loop.c: Include toplev.h.
10746         (gate_graphite_transforms): Enable flag_graphite for
10747         flag_graphite_force_parallel.
10748
10749 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10750
10751         * ChangeLog.graphite: New.
10752         * graphite-blocking.c: New.
10753         * graphite-clast-to-gimple.c: New.
10754         * graphite-clast-to-gimple.h: New.
10755         * graphite-dependences.c: New.
10756         * graphite-dependences.h: New.
10757         * graphite-interchange.c: New.
10758         * graphite-poly.c: New.
10759         * graphite-poly.h: New.
10760         * graphite-ppl.c: New.
10761         * graphite-ppl.h: New.
10762         * graphite-scop-detection.c: New.
10763         * graphite-scop-detection.h: New.
10764         * graphite-sese-to-poly.c: New.
10765         * graphite-sese-to-poly.h: New.
10766         * sese.c: New.
10767         * sese.h: New.
10768
10769 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10770
10771         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
10772         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
10773
10774 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10775
10776         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
10777         (scev_is_linear_expression): Return false if the evolution is not
10778         affine multivariate.
10779
10780 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10781
10782         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
10783         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
10784
10785 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10786
10787         * tree-data-ref.c (debug_data_references): New.
10788         (debug_data_reference): New.
10789         * tree-data-ref.h (debug_data_references): Declared.
10790         (debug_data_reference): Declared.
10791
10792 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10793
10794         * tree-data-ref.c (stmt_simple_memref_p: Removed.
10795         * tree-data-ref.h (scop_p): Removed.
10796         (struct data_reference): Remove field scop.
10797         (DR_SCOP): Removed.
10798         (stmt_simple_memref_p): Removed.
10799
10800 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10801
10802         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
10803         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
10804         basic block empty.
10805
10806 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10807
10808         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
10809
10810 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10811
10812         * doc/invoke.texi (-fgraphite-identity): Documented.
10813
10814 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10815
10816         * tree-scalar-evolution.c: Fix comment.
10817         (instantiate_scev_1): Return unknow from scev instantiation if the
10818         result is not above instantiate_below.
10819
10820 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10821
10822         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
10823         static anymore.  Instantiate the symbols that may have been introduced
10824         by chrec_apply.
10825         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
10826         Declared.
10827
10828 2009-07-30  DJ Delorie  <dj@redhat.com>
10829
10830         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
10831         .vliw directive to VLIW sections.
10832
10833 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10834
10835         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
10836         New variables.
10837         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
10838         (AUTOHEADER): New variable.
10839         ($(srcdir)/cstamp-h.in): Use it.
10840
10841 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
10842             Pat Haugen  <pthaugen@us.ibm.com>
10843             Revital Eres <ERES@il.ibm.com>
10844
10845         * config/rs6000/vector.md (VEC_F): Add VSX support.
10846         (VEC_A): Ditto.
10847         (VEC_N): Ditto.
10848         (mov<mode>): Ditto.
10849         (vector_load_<mode>): Ditto.
10850         (vector_store_<mode>): Ditto.
10851         (vector GPR move split): Ditto.
10852         (vec_reload_and_plus_<mptrsize>): Ditto.
10853         (vec_reload_and_reg_<mptrsize>): Ditto.
10854         (add<mode>3): Ditto.
10855         (sub<mode>3): Ditto.
10856         (mul<mode>3): Ditto.
10857         (neg<mode>2): Ditto.
10858         (abs<mode>2): Ditto.
10859         (smin<mode>3): Ditto.
10860         (smax<mode>3): Ditto.
10861         (vector_eq<mode>): Ditto.
10862         (vector_gt<mode>): Ditto.
10863         (vector_ge<mode>): Ditto.
10864         (vector_gtu<mode>): Ditto.
10865         (vector_select_<mode>_uns): Ditto.
10866         (vector_eq_<mode>_p): Ditto.
10867         (vector_gt_<mode>_p): Ditto.
10868         (vector_ge_<mode>_p): Ditto.
10869         (vector_gtu_<mode>_p): Ditto.
10870         (cr6_test_for_zero): Ditto.
10871         (cr6_test_for_zero_reverse): Ditto.
10872         (cr6_test_for_lt): Ditto.
10873         (cr6_test_for_lt_reverse): Ditto.
10874         (xor<mode>3): Ditto.
10875         (ior<mode>3): Ditto.
10876         (and<mode>3): Ditto.
10877         (one_cmpl<mode>2): Ditto.
10878         (nor<mode>2): Ditto.
10879         (andc<mode>2): Ditto.
10880         (float<VEC_int<mode>2): Ditto.
10881         (unsigned_float<VEC_int><mode>2): Ditto.
10882         (fix_trunc<mode><VEC_int>2): Ditto.
10883         (fixuns_trunc<mode><VEC_int>2): Ditto.
10884         (vec_init<mode>):
10885         (vec_set<mode>): Ditto.
10886         (vec_extract<mode>): Ditto.
10887         (vec_interleave_highv4sf): Ditto.
10888         (vec_interleave_lowv4sf): Ditto.
10889         (vec_realign_load_<mode>): Ditto.
10890         (vec_shl_<mode>): Ditto.
10891         (vec_shr_<mode>): Ditto.
10892         (div<mode>3): New patterns for VSX.
10893         (vec_interleave_highv2df): Ditto.
10894         (vec_interleave_lowv2df): Ditto.
10895         (vec_pack_trunc_v2df): Ditto.
10896         (vec_pack_sfix_trunc_v2df): Ditto.
10897         (vec_pack_ufix_trunc_v2df): Ditto.
10898         (vec_unpacks_hi_v4sf): Ditto.
10899         (vec_unpacks_lo_v4sf): Ditto.
10900         (vec_unpacks_float_hi_v4si): Ditto.
10901         (vec_unpacks_float_lo_v4si): Ditto.
10902         (vec_unpacku_float_hi_v4si): Ditto.
10903         (vec_unpacku_float_lo_v4si): Ditto.
10904         (movmisalign<mode>): Ditto.
10905         (vector_ceil<mode>2): New patterns for vectorizing math library.
10906         (vector_floor<mode>2): Ditto.
10907         (vector_btrunc<mode>2): Ditto.
10908         (vector_copysign<mode>3): Ditto.
10909
10910         * config/rs6000/predicates.md (easy_vector_constant_msb): New
10911         predicate for setting the high bit in each word, used for copysign.
10912
10913         * config/rs6000/ppc-asm.h (f19): Whitespace.
10914         (f32-f63): Define if VSX.
10915         (v0-v31): Define if Altivec.
10916         (vs0-vs63): Define if VSX.
10917
10918         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
10919
10920         * config/rs6000/power7.md: New file, provide tuning parameters for
10921         -mcpu=power7.
10922
10923         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
10924         (rs6000_cpu_cpp_builtins): Ditto.
10925         (altivec_overloaded_builtins): Ditto.
10926         (altivec_resolve_overloaded_builtin): Ditto.
10927
10928         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
10929         debug switch to disable vectorizing simple math builtin
10930         functions.
10931
10932         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
10933         Vectorize simple math builtin functions.
10934         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
10935         hook to vectorize math builtins.
10936         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
10937         (rs6000_builtin_conversion): Add VSX/power7 support.
10938         (rs6000_builtin_vec_perm): Ditto.
10939         (vsplits_constant): Add support for loading up a vector constant
10940         with just the high bit set in each part.
10941         (rs6000_expand_vector_init): Add VSX/power7 support.
10942         (rs6000_expand_vector_set): Ditto.
10943         (rs6000_expand_vector_extract): Ditto.
10944         (rs6000_emit_move): Ditto.
10945         (bdesc_3arg): Ditto.
10946         (bdesc_2arg): Ditto.
10947         (bdesc_1arg): Ditto.
10948         (rs6000_expand_ternop_builtin): Ditto.
10949         (altivec_expand_builtin): Ditto.
10950         (rs6000_expand_unop_builtin): Ditto.
10951         (rs6000_init_builtins): Ditto.
10952         (altivec_init_builtins): Ditto.
10953         (builtin_function_type): Ditto.
10954         (rs6000_common_init_builtins): Ditto.
10955         (rs6000_handle_altivec_attribute); Ditto.
10956         (rs6000_mangle_type): Ditto.
10957         (rs6000_vector_mode_supported_p): Ditto.
10958         (rs6000_mode_dependent_address): Altivec addresses with AND -16
10959         are mode dependent.
10960
10961         * config/rs6000/vsx.md: New file for VSX support.
10962
10963         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
10964         identifing values with just the most significant bit set.
10965         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
10966         vectorized builtins.
10967
10968         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
10969         (UNSPEC_VRFIM): Delete.
10970         (splitter for loading up vector with most significant bit): New
10971         splitter for vectorizing copysign.
10972         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
10973         vectorizing simple math functions.
10974         (altivec_vrfip): Add support for vectorizing simple math functions.
10975         (altivec_vrfim): Ditto.
10976         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
10977
10978         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
10979         (power7.md, vsx.md): Include for power7 support.
10980         (copysigndf3): Use VSX instructions if -mvsx.
10981         (negdf2_fpr): Ditto.
10982         (absdf2_fpr): Ditto.
10983         (nabsdf2_fpr): Ditto.
10984         (adddf3_fpr): Ditto.
10985         (subdf3_fpr): Ditto.
10986         (muldf3_fpr): Ditto.
10987         (divdf3_fpr): Ditto.
10988         (fix_truncdfdi2_fpr): Ditto.
10989         (cmpdf_internal1): Ditto.
10990         (fred, fred_fpr): Convert into expander/insn to add VSX support.
10991         (btruncdf2, btruncdf2_fpr): Ditto.
10992         (ceildf2, ceildf2_fpr): Ditto.
10993         (floordf2, floordf2_fpr): Ditto.
10994         (floatdidf2, floatdidf2_fpr): Ditto.
10995         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
10996         (fmsubdf4_fpr): Ditto.
10997         (fnmadddf4_fpr_1): Ditto.
10998         (fnmadddf4_fpr_2): Ditto.
10999         (fnmsubdf4_fpr_1): Ditto.
11000         (fnmsubdf4_fpr_2): Ditto.
11001         (fixuns_truncdfdi2): Add expander for VSX support.
11002         (fix_truncdfdi2): Ditto.
11003         (fix_truncdfsi2): Ditto.
11004         (ftruncdf2): Ditto.
11005         (btruncsf2): Whitespace.
11006         (movdf_hardfloat32): Add support for VSX registers.
11007         (movdf_softfloat32): Ditto.
11008         (movdf_hardfloat64): Ditto.
11009         (movdf_hardfloat64_mfpgpr): Ditto.
11010         (movdf_softfloat64): Ditto.
11011         (movti splitters): Add check for vector registers supporting
11012         TImode in the future.
11013         (bpermd): Add power7 bpermd instruction.
11014
11015         * config/rs6000/altivec.h (vec_div): Define if VSX.
11016         (vec_mul): Ditto.
11017         (vec_msub): Ditto.
11018         (vec_nmadd): Ditto.
11019         (vec_nearbyint): Ditto.
11020         (vec_rint): Ditto.
11021         (vec_sqrt): Ditto.
11022         (all predicates): Use the generic builtin function, and not the V4SF
11023         specific function so that the predicates will work with VSX's V2DF.
11024         (vec_all_*): Ditto.
11025         (vec_any_*): Ditto.
11026
11027         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
11028         Document new VSX functions and types.
11029
11030         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
11031         switches.
11032
11033         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
11034         "wa", and "j" constraints.  Modify "v" to talk about Altivec
11035         instead of just vector.
11036
11037 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
11038
11039         PR debug/26475
11040         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
11041         location for phi arguments.
11042         (rewrite_update_phi_arguments): Find locations for reaching defs.
11043         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
11044         Add location to add_phi_arg calls.
11045         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
11046         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
11047         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
11048         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
11049         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
11050         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
11051         * tree-phinodes.c (make_phi_node): Initialize location.
11052         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
11053         (add_phi_arg): Add location parameter.
11054         (remove_phi_arg_num): Move location when moving phi argument.
11055         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
11056         location.
11057         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
11058         slpeel_update_phi_nodes_for_guard1,
11059         slpeel_update_phi_nodes_for_guard2,
11060         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
11061         vect_loop_versioning): Set locations.
11062         * tree-parloops.c (create_phi_for_local_result,
11063         transform_to_exit_first_loop, create_parallel_loop): Add locations.
11064         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
11065         * tree-vect-loop.c (get_initial_def_for_induction,
11066         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
11067         locations.
11068         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
11069         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
11070         (gimple_phi_arg_set_location): New.  Set locus.
11071         (gimple_phi_arg_has_location): New.  Check for locus.
11072         (redirect_edge_var_map_location): New.  Return locus from var_map.
11073         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
11074         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
11075         combining PHI arguments.
11076         (cond_store_replacement): Set location.
11077         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
11078         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
11079         scop_add_exit_phis_edge): Add locations.
11080         * tree-cfgcleanup.c (remove_forwarder_block,
11081         remove_forwarder_block_with_phi): Add locations.
11082         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
11083         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
11084         locations.
11085         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
11086         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
11087         flush_pending_stmts): Add source location.
11088         * lambda-code.c (perfect_nestify): Maintain location stack with argument
11089         stack to preserve locations.
11090         * tree-vect-stmts.c (vectorizable_load): Add location.
11091         * tree-inline.c (copy_phis_for_bb): Copy locus.
11092         (setup_one_parameter): Add call locus to inlined parameter stmts.
11093         (initialize_inlined_parameters): Pass in call location as parameter
11094         assignment locus.
11095         (tree_function_versioning): Pass location to setup_one_parameter.
11096         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
11097         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
11098         copy and edge lists.
11099         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
11100         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
11101         locus parameter and override the stmt default if provided.
11102         (new_elim_graph, clear_elim_graph, delete_elim_graph,
11103         elim_graph_add_edge, elim_graph_remove_succ_edge,
11104         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
11105         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
11106         eliminate_phi):  Add locus info in elimination graph for each edge and
11107         value copy.
11108         (insert_backedge_copies): Copy locus if present.
11109         * tree-flow.h (struct _edge_var_map): Add locus field.
11110         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
11111         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
11112         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
11113         locations.
11114         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
11115
11116 2009-07-30  Martin Jambor  <mjambor@suse.cz>
11117
11118         PR tree-optimization/40570
11119         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
11120         use inlining loops.
11121
11122 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
11123
11124         * ssa-loop-manip.c: Include langhooks.h.
11125         (rewrite_phi_with_iv): New.
11126         (rewrite_all_phi_nodes_with_iv): New.
11127         (canonicalize_loop_ivs): Move here from tree-parloops.c.
11128         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
11129         * tree-parloops.c (loop_parallel_p): Move out all conditions
11130         except dependency check.
11131         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
11132         (gen_parallel_loop): Call canonicalize_loop_ivs without
11133         reduction_list argument.
11134         (build_new_reduction): New.
11135         (gather_scalar_reductions): New.
11136         (try_get_loop_niter): New.
11137         (try_create_reduction_list): New.
11138         (parallleize_loops): Change the parallel conditions check.
11139         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
11140         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
11141
11142 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
11143
11144         * opt-functions.awk (opt_args): Allow argument to be enclosed in
11145         curly braces.
11146         * doc/options.texi (Option properties):  Mention new quoting syntax.
11147
11148 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
11149
11150         * config/alpha/alpha.c (alpha_start_function):
11151         Handle VMS_DEBUG_MAIN_POINTER
11152         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
11153         * doc/invoke.texi: Document -mdebug-main switch.
11154
11155 2009-07-29  Richard Henderson  <rth@redhat.com>
11156
11157         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
11158         (cgraph_create_edge_including_clones): Likewise.
11159         * tree-inline.c (copy_bb): Operate on the correct edges
11160         when updating the callgraph.
11161
11162 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
11163
11164         * config/alpha/vms-cc.c: Deleted.
11165         * config/alpha/vms-ld.c: Deleted.
11166         * config/alpha/t-vms64: Moved to config/vms
11167         * config/alpha/vms-crt0-64.c: Moved to config/vms
11168         * config/alpha/vms-crt0.c: Moved to config/vms
11169         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
11170         * config/alpha/vms-psxcrt0.c: Moved to config/vms
11171         * config/alpha/xm-vms.h: Moved to config/vms
11172         * config/alpha/x-vms: Moved to config/vms
11173         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
11174         config/vms/t-vms.
11175         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
11176         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
11177         (version): Set.
11178         * config/vms/t-vms64: Moved here from config/alpha
11179         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
11180         (argc,argv,envp): Enforce 32bit malloc'ing.
11181         * config/vms/vms-psxcrt0-64.c: Likewise.
11182         * config/vms/vms-crt0.c: Moved here from config/alpha.
11183         * config/vms/vms-psxcrt0.c: Likewise.
11184         * config/vms/vms-crtl-64.h: New file.
11185         * config/vms/vms-crtl.h: New file.
11186         * config/vms/vms.opt: New file.
11187         * config/vms/xm-vms64.h: New file.
11188         * config/vms/xm-vms.h: Moved here from config/alpha.
11189         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
11190         Set.
11191         * config/vms/x-vms: Moved here from config/alpha.
11192         (version, VMS_EXTRA_PARTS): Moved to t-vms.
11193         (vms-ld.o, vms-cc.o): Removed.
11194         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
11195
11196 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
11197
11198         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
11199         correct stack (obvious VMS fix).
11200
11201 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
11202
11203         * dwarf2out.c (output_file_names): Output VMS style file name, size,
11204         date, version info if VMS_DEBUGGING_INFO defined.
11205         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
11206         size, date calculating code moved here.
11207
11208 2009-07-29  Paul Brook  <paul@codesourcery.com>
11209
11210         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
11211         do_push/do_pop.
11212
11213 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
11214
11215         PR target/40577
11216         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
11217         to DImode when generating insq_le insn.
11218
11219 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
11220
11221         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
11222         New macro set for VMS_DEBUGGGING_INFO.
11223         (AT_string_form): Use it.
11224
11225 2009-07-28  DJ Delorie  <dj@redhat.com>
11226
11227         * config/mep/mep.c (vtext_section): New.
11228         (vftext_section): New.
11229         (ftext_section): New.
11230         (mep_select_section): Add support for functions.
11231         (mep_unique_section): Likewise.
11232         (mep_asm_init_sections): Likewise.
11233         (mep_encode_section_info): Remove it from here.
11234
11235         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
11236
11237 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
11238
11239         * tree.h (TREE_DEPRECATED): Document it is used for types too.
11240         (TYPE_VECTOR_OPAQUE): Use default_def_flag
11241
11242 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
11243
11244         * dwarf2out.c (output_file_names): Test new macro
11245         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
11246         (add_comp_dir_attribute): Likewise.
11247
11248 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
11249
11250         * config/i386/mingw-w64.h (LINK_SPEC): Add
11251         separating space between commands.
11252
11253 2009-07-28  Jan Hubicka  <jh@suse.cz>
11254
11255         PR tree-optimization/40759
11256         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
11257         for renaming.
11258
11259 2009-07-27  DJ Delorie  <dj@redhat.com>
11260
11261         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
11262         types are dword-aligned.
11263         (mep_expand_va_start): Likewise.
11264
11265 2009-07-27  Olivier Hainque  <hainque@adacore.com>
11266             Douglas B Rupp  <rupp@gnat.com>
11267
11268         * convert.c (convert_to_pointer): Don't assume the target
11269         pointer type is POINTER_SIZE long. Fetch its precision instead.
11270
11271 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
11272
11273         * system.h (fopen): Undefine if macro.
11274
11275 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
11276
11277         * dwarf2out.c (output_cfi_p): Removed.
11278         (output_cfis): New function.
11279         (output_fde): New function, split from output_call_frame_info.
11280         (output_call_frame_info): Use it.
11281         (dwarf2out_switch_text_section): Use output_cfis.
11282
11283 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
11284
11285         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
11286         TARGET_BI_ARCH is specified without enabling SJLJ.
11287         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
11288         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
11289
11290 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
11291
11292         * arm.md (negdi2): Use DImode if forcing a value into a register.
11293
11294 2009-07-26  Ira Rosen  <irar@il.ibm.com>
11295
11296         PR tree-optimization/40801
11297         * tree-vect-stmts.c (vectorizable_call): Get previous copy
11298         of vector operand from the previous copy of vector statement.
11299         Pass the correct definition type value to
11300         vect_get_vec_def_for_stmt_copy().
11301
11302 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11303
11304         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
11305         const char ** conversion.
11306
11307 2009-07-25 David Daney <ddaney@caviumnetworks.com>
11308
11309         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
11310         fancy_abort() if !ENABLE_ASSERT_CHECKING.
11311         (gcc_unreachable): Invoke __builtin_unreachable() if
11312         !ENABLE_ASSERT_CHECKING.
11313
11314 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
11315
11316         PR rtl-optimization/40445
11317         * emit-rtl.c (next_nonnote_insn_bb): New function.
11318         * rtl.h (next_nonnote_insn_bb): Declare new function.
11319         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
11320         with no successors that is the successor of the ENTRY_BLOCK.
11321         Continue from the top after removing an empty fallthrough block.
11322         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
11323         of next_nonnote_insn.
11324
11325 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
11326
11327         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
11328
11329 2009-07-25  Martin Jambor  <mjambor@suse.cz>
11330
11331         * c-common.c (c_common_attribute_table): New element for noclone.
11332         (handle_noclone_attribute): New function. Forward-declare.
11333         * tree-inline.c (tree_versionable_function_p): Check for noclone
11334         attribute.
11335         * doc/extend.texi (Labels as Values): Document need for noclone.
11336         (Function Attributes): Document noclone attribute.
11337
11338 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
11339
11340         PR rtl-optimization/34999
11341         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
11342         and dw_fde_switched_cold_to_hot fields.
11343         (output_cfi_p): New function.
11344         (output_call_frame_info): If fde->dw_fde_switched_sections,
11345         output 2 FDEs instead of one with corrupted header.
11346         (dwarf2out_do_cfi_startproc): New function.
11347         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
11348         and fde->dw_fde_switched_cold_to_hot.
11349         (dwarf2out_switch_text_section): Compute
11350         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
11351         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
11352         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
11353         Otherwise, compute fde->dw_fde_switch_cfi.
11354
11355 2009-07-24  Cary Coutant  <ccoutant@google.com>
11356
11357         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
11358
11359 2009-07-24  Cary Coutant  <ccoutant@google.com>
11360
11361         * cfghooks.c (split_block): Copy discriminator to new block.
11362         * tree-cfg.c (assign_discriminator): Check location of last
11363         instruction in block as well as first.
11364
11365 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
11366
11367         * config/i386/linux.c: Use fputs or putc instead of fprintf
11368         where appropriate.
11369         * config/i386/gas.h: Ditto.
11370         * config/i386/x86-64.h: Ditto.
11371         * config/i386/att.h: Ditto.
11372
11373 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11374
11375         * expmed.c (emit_store_flag): Use a recursive call to optimize the
11376         xor case.
11377
11378 2009-07-24  Martin Jambor  <mjambor@suse.cz>
11379
11380         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
11381         (ipa_push_func_to_list_1): Declare.
11382         (ipa_push_func_to_list): New function.
11383
11384         * ipa-prop.c (ipa_push_func_to_list_1): New function.
11385         (ipa_init_func_list): Call ipa_push_func_to_list_1.
11386         (ipa_push_func_to_list): Removed.
11387         (ipa_pop_func_from_list): Clear node_enqueued flag.
11388
11389 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
11390
11391         * config/s390/s390.c (override_options): Default
11392         max-unrolled-insns to 100 for z10 tuning.
11393
11394 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
11395
11396         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
11397         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
11398         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
11399         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
11400         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
11401         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
11402         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
11403
11404 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
11405
11406         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
11407         use default set in mingw32.h header.
11408         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
11409         64-bit /mingw/include path.
11410         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
11411         path.
11412
11413 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
11414
11415         PR rtl-optimization/40209
11416         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
11417
11418 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
11419
11420         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
11421         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
11422         with the rest of string where appropriate.  Use fputs or putc
11423         instead of fprintf where appropriate.
11424
11425 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
11426             Pat Haugen  <pthaugen@us.ibm.com>
11427             Revital Eres <ERES@il.ibm.com>
11428
11429         * config/rs6000/vector.md: New file.  Move most of the vector
11430         expander support here from altivec.md to allow for the VSX vector
11431         unit in the future.  Add support for secondary_reload patterns.
11432         Rewrite the patterns for vector comparison, and vector comparison
11433         predicate instructions so that the RTL expresses the desired
11434         behavior, instead of using unspec.
11435
11436         * config/rs6000/constraints.md ("f" constraint): Use
11437         rs6000_constraints to hold the precalculated register class.
11438         ("d" constraint): Ditto.
11439         ("wd" constraint): New constraint for VSX.
11440         ("wf" constraint): Ditto.
11441         ("ws" constraint): Ditto.
11442         ("wa" constraint): Ditto.
11443         ("wZ" constraint): Ditto.
11444         ("j" constraint): Ditto.
11445
11446         * config/rs6000/predicates.md (vsx_register_operand): New
11447         predicate for VSX.
11448         (vfloat_operand): New predicate for vector.md.
11449         (vint_operand): Ditto.
11450         (vlogical_operand): Ditto.
11451         (easy_fp_constant): If VSX, 0.0 is an easy constant.
11452         (easy_vector_constant): Add VSX support.
11453         (altivec_indexed_or_indirect_operand): New predicate for
11454         recognizing Altivec style memory references with AND -16.
11455
11456         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
11457         for vector secondary reload support.
11458         (rs6000_vector_reg_class): Delete, replacing it with
11459         rs6000_constraints.
11460         (rs6000_vsx_reg_class): Ditto.
11461         (rs6000_constraints): New array to hold the register classes of
11462         each of the register constraints that can vary at runtime.
11463         (builtin_mode_to_type): New static array for builtin function type
11464         creation.
11465         (builtin_hash_table): New static hash table for builtin function
11466         type creation.
11467         (TARGET_SECONDARY_RELOAD): Define target hook.
11468         (TARGET_IRA_COVER_CLASSES): Ditto.
11469         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
11470         registers are 128 bits if VSX memory reference instructions are used.
11471         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
11472         unit is being used.
11473         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
11474         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
11475         Print several of the scheduling related parameters.
11476         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
11477         rs6000_constraints instead of rs6000_vector_reg_class.  Move
11478         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
11479         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
11480         Altivec.  Add VSX support.  Setup for secondary reload support on
11481         Altivec/VSX registers.
11482         (rs6000_override_options): Make power7 set the scheduling groups
11483         like the power5.  Add support for new debug switches to override
11484         the scheduling defaults.  Temporarily disable -mcpu=power7 from
11485         setting -mvsx.  Add support for debug switches -malways-hint,
11486         -msched-groups, and -malign-branch-targets.
11487         (rs6000_buitlin_conversion): Add support for returning unsigned
11488         vector conversion functions to fix regressions due to stricter
11489         type checking.
11490         (rs6000_builtin_mul_widen_even): Ditto.
11491         (rs6000_builtin_mul_widen_odd): Ditto.
11492         (rs6000_builtin_vec_perm): Ditto.
11493         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
11494         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
11495         to zero a register.
11496         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
11497         generated upstream.
11498         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
11499         VSX types for bit operations.  Changes to accomidate vector.md.
11500         (bdesc_2arg): Ditto.
11501         (bdesc_1arg): Ditto.
11502         (struct builtin_description_predicates): Rewrite predicate
11503         handling so that RTL describes the operation, instead of passing
11504         the instruction to be used as a string argument.
11505         (bdesc_altivec_preds): Ditto.
11506         (altivec_expand_predicate_builtin): Ditto.
11507         (altivec_expand_builtin): Ditto.
11508         (rs6000_expand_ternop_builtin): Use a switch instead of an if
11509         statement for vsldoi support.
11510         (altivec_expand_ld_builtin): Change to use new names from vector.md.
11511         (altivec_expand_st_builtin): Ditto.
11512         (paired_expand_builtin): Whitespace changes.
11513         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
11514         builtin_mode_to_type table for secondary reload.  Call
11515         builtin_function_type to build random builtin functions.
11516         (altivec_init_builtins): Change to use builtin_function_type to
11517         create builtin function types dynamically as we need them.
11518         (builtin_hash_function): New support for hashing the tree types
11519         for builtin function as we need it, rather than trying to build
11520         all of the trees that we need.  Add initial preliminary VSX support.
11521         (builtin_function_type): Ditto.
11522         (builtin_function_eq): Ditto.
11523         (builtin_hash_struct): Ditto.
11524         (rs6000_init_builtins): Ditto.
11525         (rs6000_common_init_builtins): Ditto.
11526         (altivec_init_builtins): Ditto.
11527         (rs6000_common_init_builtins): Ditto.
11528         (enum reload_reg_type): New enum for simplifing reg classes.
11529         (rs6000_reload_register_type): Simplify register classes into GPR,
11530         Vector, and other registers.  Altivec and VSX addresses in reload.
11531         (rs6000_secondary_reload_inner): Ditto.
11532         (rs6000_ira_cover_classes): New target hook, that returns the
11533         appropriate cover classes, based on -mvsx being used or not.
11534         (rs6000_secondary_reload_class): Add VSX support.
11535         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
11536         (get_vsel_insn): Ditto.
11537         (rs6000_emit_vector_compare): Rewrite vector conditional support
11538         so that where we can, we use RTL operators, instead of blindly use
11539         UNSPEC.
11540         (rs6000_emit_vector_select): Ditto.
11541         (rs6000_emit_vector_cond_expr): Ditto.
11542         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
11543         (create_TOC_reference): Add -mdebug=addr support.
11544         (emit_frame_save): VSX loads/stores need register indexed addressing.
11545
11546         * config/rs6000/rs6000.md: Include vector.md.
11547
11548         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
11549
11550         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11551         support for V2DI, V2DF in logical, permute, select operations.
11552
11553         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
11554         switch for vsx/power7.
11555         (-mvsx-scalar-memory): Ditto.
11556         (-mvsx-align-128): Ditto.
11557         (-mallow-movmisalign): Ditto.
11558         (-mallow-df-permute): Ditto.
11559         (-msched-groups): Ditto.
11560         (-malways-hint): Ditto.
11561         (-malign-branch-targets): Ditto.
11562
11563         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
11564         hook instead.
11565         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
11566         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
11567         (rs6000_vector_reg_class): Delete.
11568         (rs6000_vsx_reg_class): Ditto.
11569         (enum rs6000_reg_class_enum): New enum for the constraints that
11570         vary based on target switches.
11571         (rs6000_constraints): New array to hold the register class for all
11572         of the register constraints that vary based on the switches used.
11573         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
11574         (enum rs6000_builtins): Add unsigned varients for the builtin
11575         declarations returned by target hooks for expanding multiplies,
11576         select, and permute operations.  Add VSX builtins.
11577         (enum rs6000_builtin_type_index): Add entries for VSX.
11578         (V2DI_type_node): Ditto.
11579         (V2DF_type_node): Ditto.
11580         (unsigned_V2DI_type_node): Ditto.
11581         (bool_long_type_node): Ditto.
11582         (intDI_type_internal_node): Ditto.
11583         (uintDI_type_internal_node): Ditto.
11584         (double_type_internal_node): Ditto.
11585
11586         * config/rs6000/altivec.md (whole file): Move all expanders to
11587         vector.md from altivec.md.  Rename insn matching functions to be
11588         altivec_foo.
11589         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
11590         (altivec_vcmp*): Ditto.
11591         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
11592         (VM): New iterator for moves that includes the VSX types.
11593         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
11594         (altivec_vperm_<mode>_uns): New, for unsigned types.
11595         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
11596         (altivec_eq<mode>): Ditto.
11597         (altivec_gt<mode>): Ditto.
11598         (altivec_gtu<mode>): Ditto.
11599         (altivec_eqv4sf): Ditto.
11600         (altivec_gev4sf): Ditto.
11601         (altivec_gtv4sf): Ditto.
11602         (altivec_vcmpbfp_p): Ditto.
11603
11604 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
11605
11606         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
11607         unsigned HWI.
11608
11609 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
11610
11611         PR target/40832
11612         * config/i386/i386.c (output_387_ffreep): Rewrite to use
11613         ASM_SHORT instead of .word.
11614         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
11615         instead of .word in asm template.
11616
11617 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
11618
11619         PR target/37488
11620         * ira-lives.c (bb_has_abnormal_call_pred): New function.
11621         (process_bb_node_lives): Use it.
11622
11623         * ira.c (setup_cover_and_important_classes): Don't setup
11624         ira_important_class_nums.  Add cover classes to the end of
11625         important classes.
11626         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
11627         New.
11628         (find_reg_class_closure): Use reorder_important_classes.
11629
11630         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
11631
11632         * config/i386/i386.c (i386_ira_cover_classes): New function.
11633         (TARGET_IRA_COVER_CLASSES): Redefine.
11634
11635         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
11636         importance of order of cover classes in the array.
11637
11638 2009-07-22  Diego Novillo  <dnovillo@google.com>
11639
11640         * tree-pass.h (TDF_EH): Define.
11641         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
11642         contains TDF_EH, print the EH region number holding GS.
11643         * tree-dump.c (dump_options): Add "eh".
11644         * doc/invoke.texi: Document it.
11645
11646 2009-07-22  Doug Kwan  <dougkwan@google.com>
11647
11648         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
11649
11650 2009-07-22  Michael Matz  <matz@suse.de>
11651
11652         PR tree-optimization/35229
11653         PR tree-optimization/39300
11654
11655         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
11656         (inhibit_phi_insertion): New function.
11657         (insert_into_preds_of_block): Call it for REFERENCEs.
11658         (init_pre): Initialize and finalize scalar evolutions.
11659         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
11660
11661 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
11662
11663         * config/i386/predicates.md (zero_extended_scalar_load_operand):
11664         Use CONST_VECTOR_NUNITS to determine number of elements.
11665
11666 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
11667
11668         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
11669         (U, W): Constraints are now deprecated and will be removed if we
11670         run out of letters.
11671         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
11672         the file.
11673         ("prefetch"): Add the stcmh instruction for prefetching.
11674         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
11675         changes.
11676         (s390_short_displacement): Return always true if compiling for
11677         machines not providing the long displacement facility.
11678         (s390_mem_constraint): Support the new constraint letter Z.
11679         (s390_check_qrst_address): New function.
11680
11681 2009-07-21  DJ Delorie  <dj@redhat.com>
11682
11683         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
11684         alone too.
11685
11686 2009-07-21  Jason Merrill  <jason@redhat.com>
11687
11688         * c-common.c (max_tinst_depth): Increase default to 1024.
11689
11690 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
11691
11692         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
11693         (vec_unpacku_float_lo_v4si): Ditto.
11694
11695 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
11696
11697         PR target/40811
11698         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
11699         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
11700         (builtin_description): Add __builtin_ia32_cvtudq2ps.
11701         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
11702
11703 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
11704
11705         PR tree-optimization/40813
11706         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
11707         it.
11708
11709 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
11710
11711         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
11712         with a NOP_EXPR if needed.
11713
11714 2009-07-21  Paul Brook <paul@codesourcery.com>
11715
11716         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
11717         Terminate debug dump with newline.
11718
11719 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11720
11721         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
11722         Cast "1" to unsigned HOST_WIDE_INT.
11723         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
11724         deposit length to the maximum length - lsb.  Extend length if
11725         HOST_BITS_PER_WIDE_INT is 32.
11726
11727 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
11728
11729         * cgraph.h (constant_pool_htab): New function.
11730         (constant_descriptor_tree): Move from varasm.c.
11731         * varasm.c (constant_pool_htab): New function.
11732         (constant_descriptor_tree): Move to cgraph.h.
11733
11734 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
11735
11736         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
11737
11738 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
11739
11740         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
11741         $(VARRAY_H).
11742
11743 2009-07-20  Xinliang David Li  <davidxl@google.com>
11744
11745         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
11746
11747 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
11748
11749         * config/mips/mips.md (move_type): Add arith.
11750         (type): Handle arith.
11751         (zero_extendsidi2): Rename this into ...
11752         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
11753         (zero_extendsidi2): New expander.
11754         (*zero_extendsidi2_dext): New pattern.
11755
11756 2009-07-20  Nick Clifton  <nickc@redhat.com>
11757
11758         * config.gcc (mips64-*-*): Add definition of tm_defines in order
11759         to set MIPS_ABI_DEFAULT.
11760         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
11761
11762 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
11763
11764         * tree-object-size.c (addr_object_size): Handle unions with
11765         array in it as last field of structs in __bos (, 1) as __bos (, 0).
11766
11767         PR tree-optimization/40792
11768         * tree.c (build_function_type_skip_args): Remove bogus assert.
11769
11770 2009-07-20  Jan Hubicka  <jh@suse.cz>
11771             Martin Jambor  <mjambor@suse.cz>
11772
11773         * cgraph.h (combined_args_to_skip): New field.
11774         * cgraph.c (cgraph_create_virtual_clone): Properly handle
11775         combined_args_to_skip and args_to_skip.
11776         * tree-inline.c (update_clone_info): New function.
11777         (tree_function_versioning): Call update_clone_info.
11778         * cgraphunit.c (cgraph_materialize_clone): Dump materialized
11779         functions.
11780         (cgraph_materialize_all_clones): More extensive dumping, working
11781         with combined_args_to_skip rather than args_to_skip.
11782
11783 2009-07-20  Ira Rosen  <irar@il.ibm.com>
11784
11785         * tree-vectorizer.h (vectorizable_condition): Add parameters.
11786         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
11787         (get_initial_def_for_reduction): Likewise.
11788         (vectorizable_reduction): Skip the check of first operand in case
11789         of COND_EXPR. Add check that it is outer loop vectorization if
11790         nested cycle was detected. Call vectorizable_condition() for
11791         COND_EXPR. If reduction epilogue cannot be created do not fail for
11792         nested cycles (if it is not double reduction). Assert that there
11793         is only one type in the loop in case of COND_EXPR. Call
11794         vectorizable_condition() to vectorize COND_EXPR.
11795         * tree-vect-stmts.c (vectorizable_condition): Update comment.
11796         Add parameters. Allow nested cycles if called from
11797         vectorizable_reduction(). Use reduction vector variable if provided.
11798         (vect_analyze_stmt): Call vectorizable_reduction() before
11799         vectorizable_condition().
11800         (vect_transform_stmt): Update call to vectorizable_condition().
11801
11802 2009-07-20  Christian Bruel  <christian.bruel@st.com>
11803
11804         * config/sh/sh.opt (-mfmovd): Resurrect and document.
11805         * doc/invoke.texi (-mfmovd): Likewise.
11806         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
11807
11808 2009-07-20  Jan Hubicka  <jh@suse.cz>
11809
11810         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
11811         when handling SSA name.
11812
11813 2009-07-19  Jan Hubicka  <jh@suse.cz>
11814
11815         PR tree-optimization/40676
11816         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
11817         virtual PHIs in empty BBs.
11818
11819 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
11820
11821         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
11822         re-expanded the compound use gen_lowpart instead to convert to the
11823         desired mode.
11824
11825 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
11826
11827         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
11828         OUTER_CONST arguments.
11829         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
11830         the new wider mode will be masked off.
11831         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
11832
11833 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
11834
11835         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
11836         high-order bits are zero.
11837
11838 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
11839
11840         * combine.c (simplify_shift_const_1): Split code to determine
11841         shift_mode into ...
11842         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
11843         new bits shifted in are identical to the old sign bit.
11844
11845 2009-07-18  Richard Guenther  <rguenther@suse.de>
11846
11847         PR c/40787
11848         * gimplify.c (gimplify_call_expr): Reject code using results from
11849         functions returning void.
11850
11851 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
11852
11853         * doc/md.texi: Document the new PowerPC "es" constraint.
11854         Document that "m" can include automodified addresses on this target,
11855         and explain how %U must be used.  Extend the "Q" and "Z" documentation
11856         to suggest "es" as well as "m".
11857         * config/rs6000/constraints.md (es): New memory constraint.
11858         (Q, Z): Update strings to match new documentation.
11859
11860 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
11861
11862         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
11863         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
11864         * config/rs6000/predicates.md (volatile_mem_operand): Use
11865         offsettable_nonstrict_memref_p.
11866         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
11867         (*floatunssidf2_internal): Likewise.
11868         (*fix_truncdfsi2_internal): Likewise.
11869         (*fix_trunctfsi2_internal): Likewise.
11870
11871 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
11872
11873         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
11874         atmega32u2 devices.
11875         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
11876
11877 2009-07-17  Richard Guenther  <rguenther@suse.de>
11878
11879         PR c/40401
11880         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
11881         (pass_warn_unused_result): Likewise.
11882         (TODO_set_props): Remove.
11883         * omp-low.c (diagnose_omp_structured_block_errors): Change to
11884         run as a pass.
11885         (pass_diagnose_omp_blocks): Define.
11886         * c-decl.c (pop_file_scope): Do not finalize the CU here.
11887         (c_gimple_diagnostics_recursively): Remove.
11888         (finish_function): Do not call it.
11889         (c_write_global_declarations): Continue after errors.
11890         Finalize the CU here.
11891         * c-gimplify.c (c_genericize): Do not gimplify here.
11892         * c-common.c (c_warn_unused_result): Move ...
11893         * tree-cfg.c (do_warn_unused_result): ... here.
11894         (run_warn_unused_result): New function.
11895         (gate_warn_unused_result): New function.
11896         (pass_warn_unused_result): New pass.
11897         * c-common.h (c_warn_unused_result): Remove.
11898         * flags.h (flag_warn_unused_result): Declare.
11899         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
11900         * opts.c (flag_warn_unused_result): Initialize to false.
11901         * toplev.c (compile_file): Add comment.
11902         * omp-low.c (create_omp_child_function): Do not register
11903         the function with the frontend.
11904         (diagnose_omp_structured_block_errors): Prepare to be
11905         called as optimization pass.
11906         (gate_diagnose_omp_blocks): New function.
11907         (pass_diagnose_omp_blocks): New pass.
11908         * cgraph.h (cgraph_optimize): Remove.
11909         (cgraph_analyze_function): Likewise.
11910         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
11911         * cgraphunit.c (cgraph_lower_function): Lower nested functions
11912         before their parents here.
11913         (cgraph_finalize_function): Not here.
11914         (cgraph_analyze_function): Gimplify functions here.
11915         (cgraph_finalize_compilation_unit): Continue after errors.
11916         Optimize the callgraph from here.
11917         (cgraph_optimize): Make static.
11918         * langhooks.c (write_global_declarations): Finalize the CU.
11919         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
11920         (gimplify_function_tree): Assert we gimplify only once.
11921         Set PROP_gimple_any property.
11922         * tree-nested.c (gimplify_all_functions): New function.
11923         (lower_nested_functions): Gimplify all nested functions.
11924         * gimple.h (diagnose_omp_structured_block_errors): Remove.
11925         * passes.c (init_optimization_passes): Add pass_warn_unused_result
11926         and pass_diagnose_omp_blocks after gimplification.  Do not
11927         set TODO_set_props on all_lowering_passes.
11928         (execute_one_pass): Do not handle TODO_set_props.
11929         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
11930         (gimplify.o): Add tree-pass.h dependency.
11931         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
11932         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
11933         (unsave_r): Likewise.
11934         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
11935         temporary variable.
11936
11937 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
11938
11939         * doc/service.texi (Service): Restore previously removed link,
11940         which isn't broken after all.
11941
11942 2009-07-17  Richard Guenther  <rguenther@suse.de>
11943
11944         PR tree-optimization/40321
11945         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
11946         PHI nodes to the maximal set.
11947         (make_values_for_phi): Add PHI arguments to the maximal set.
11948         (execute_pre): Dump PHI_GEN and the maximal set.
11949
11950 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
11951
11952         PR c++/40780
11953         * gimplify.c (gimplify_conversion): Don't change non-conversions into
11954         VIEW_CONVERT_EXPR.
11955
11956 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
11957
11958         * doc/extend.texi (Nested Functions): Replace broken link with
11959         textual reference.
11960         * doc/service.texi (Service): Remove broken link.
11961
11962 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
11963
11964         PR bootstrap/40781
11965         * builtins.c (expand_builtin_memcmp): Use loc instead of
11966         EXPR_LOCATION (exp).
11967         (expand_builtin_strncmp): Likewise.
11968
11969 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
11970             Manuel López-Ibáñez  <manu@gcc.gnu.org>
11971
11972         PR 40435
11973         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
11974         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
11975         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
11976         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
11977         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
11978         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
11979         tree-inline.c, c-common.c, c-common.h, gimple.c,
11980         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
11981         convert.c: Add location argument to fold_{unary,binary,ternary},
11982         fold_build[123], build_call_expr, build_size_arg,
11983         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
11984         fold_build1_initializer, fold_build2_initializer,
11985         fold_build3_initializer, fold_build_call_array,
11986         fold_build_call_array_initializer, fold_single_bit_test,
11987         omit_one_operand, omit_two_operands, invert_truthvalue,
11988         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
11989         combine_comparisons, fold_builtin_*, fold_call_expr,
11990         build_range_check, maybe_fold_offset_to_address, round_up,
11991         round_down.
11992
11993 2009-07-16  Jason Merrill  <jason@redhat.com>
11994
11995         PR libstdc++/37907
11996         * c-common.c (c_common_reswords): Add __is_standard_layout
11997         and __is_trivial.
11998         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
11999         * doc/implement-cxx.texi: New.
12000         * doc/gcc.texi: Include it.
12001
12002 2009-07-16  DJ Delorie  <dj@redhat.com>
12003
12004         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
12005         compares that may be indirectly affected by previous instructions.
12006
12007 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12008
12009         * builtins.c (do_mpc_arg2): New.
12010         (fold_builtin_2): Fold builtin cpow.
12011         * real.h (HAVE_mpc_pow): New.
12012
12013 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
12014
12015         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
12016         comparison to skip unprofitable schedule
12017
12018 2009-07-16  Simon Baldwin  <simonb@google.com>
12019
12020         * gcc.c (option_map): New flag -no-canonical-prefixes.
12021         * (display_help): Print help text for new flag.
12022         * (process_command): Move options translation and language specifics
12023         and handle new flag early.  Use it to set a function pointer to a
12024         prefix builder.  Replace make_relative_prefix calls with calls to
12025         the function pointed to.  Ignore new flag in regular options handling.
12026         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
12027
12028 2009-07-15  DJ Delorie  <dj@redhat.com>
12029
12030         * config/mep/mep.md (sibcall_internal): Change register to avoid
12031         argument registers.
12032         (sibcall_value_internal): Likewise.
12033
12034 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
12035
12036         PR rtl-optimization/40710
12037         * resource.c (mark_target_live_regs): Reset DF problem to LR.
12038
12039 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
12040
12041         * config/mips/mips.md (*extenddi_truncate<mode>,
12042         *extendsi_truncate<mode>): Change type attribute to move_type
12043         with shift_shift.  Split out code handling exts from here ...
12044         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
12045         pattern.
12046         (*extendhi_truncateqi): Change type attribute to move_type with
12047         shift_shift.  Split out code handling exts from here ...
12048         (*extendhi_truncateqi_exts): ... to this new pattern.
12049
12050 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
12051
12052         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
12053         instead of "and" with inverted sign bit mask value.  Use
12054         "nonimmediate_operand" for operand 1 and operand 2 predicate.
12055         Allocate registers only for operand 4 and operand 5.
12056
12057 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
12058
12059         PR middle-end/40747
12060         * fold-const.c (fold_cond_expr_with_comparison): When folding
12061         < and <= to MIN, make sure the MIN uses the same type as the
12062         comparison's operands.
12063
12064 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
12065
12066         * arm.md (ior_xor): New code iterator.
12067         (split for ior/xor with shift and zero-extend): New split pattern.
12068         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
12069
12070 2009-07-15  Richard Guenther  <rguenther@suse.de>
12071
12072         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
12073         offset member.
12074
12075 2009-07-15  Richard Guenther  <rguenther@suse.de>
12076
12077         PR middle-end/40753
12078         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
12079
12080 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
12081
12082         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
12083         handle 2.6.30 kernel.
12084
12085 2009-07-15  DJ Delorie  <dj@redhat.com>
12086
12087         * config/mep/mep.md (sibcall_internal): Change register to allow
12088         for 24-bit addresses.
12089         (sibcall_value_internal): Likewise.
12090
12091 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
12092
12093         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
12094         that are enabled/disabled by the flags introduced by a previous patch.
12095
12096 2009-07-14  DJ Delorie  <dj@redhat.com>
12097
12098         * config/mep/mep.md (sibcall_internal): Include non-toggling
12099         non-jmp case.
12100         (sibcall_value_internal): Likewise.
12101
12102 2009-07-14  Taras Glek  <tglek@mozilla.com>
12103             Rafael Espindola  <espindola@google.com>
12104
12105         * doc/sourcebuild.texi: Document install-plugin target.
12106         * configure.ac: Added install-plugin target to language makefiles.
12107         * configure: Regenerate.
12108         * Makefile.in (install-plugin): Install more headers,
12109         depend on lang.install-plugin.
12110
12111 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12112
12113         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
12114         translation.
12115
12116 2009-07-14  DJ Delorie  <dj@redhat.com>
12117
12118         * config/mep/mep.c (mep_vliw_jmp_match): New function.
12119         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
12120         * config/mep/mep.md (sibcall_internal): Change test from
12121         mep_vliw_mode_match to mep_vliw_jmp_match.
12122         (sibcall_value_internal): Likewise.
12123
12124 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
12125
12126         * config/i386/sse.md (copysign<mode>3): New expander.
12127         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
12128         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
12129         Use ix86_build_const_vector.
12130         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
12131         IX86_BUILTIN_CPYSGNPD.
12132         (builtin_description): Add __builtin_ia32_copysignps and
12133         __builtin_ia32_copysignpd.
12134         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
12135         and BUILT_IN_COPYSIGNF.
12136
12137 2009-07-13  Jason Merrill  <jason@redhat.com>
12138
12139         * builtins.c (can_trust_pointer_alignment): New fn.
12140         (get_pointer_alignment): Factor it out from here.
12141         * tree.h: Declare it.
12142
12143 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
12144
12145         * config/rs6000/predicates.md (offsettable_mem_operand): Test
12146         RTX_AUTOINC class.
12147
12148 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
12149
12150         PR debug/40705
12151         PR c++/403057
12152         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
12153
12154 2009-07-14  Richard Guenther  <rguenther@suse.de>
12155             Andrey Belevantsev <abel@ispras.ru>
12156
12157         PR middle-end/40745
12158         * cfgexpand.c (partition_stack_vars): Do not bother to update
12159         alias information when not optimizing.
12160
12161 2009-07-14  Richard Guenther  <rguenther@suse.de>
12162             Andrey Belevantsev <abel@ispras.ru>
12163
12164         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
12165         (pt_solution_set): Likewise.
12166         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
12167         * tree-ssa-structalias.c (pt_solution_set): New function.
12168         * final.c (rest_of_clean_state): Free SSA data structures.
12169         * print-rtl.c (print_decl_name): Remove.
12170         (print_mem_expr): Implement in terms of print_generic_expr.
12171         * alias.c (ao_ref_from_mem): New function.
12172         (rtx_refs_may_alias_p): Likewise.
12173         (true_dependence): Query alias-export info.
12174         (canon_true_dependence): Likewise.
12175         (write_dependence_p): Likewise.
12176         * tree-dfa.c (get_ref_base_and_extent): For void types leave
12177         size unknown.
12178         * emit-rtl.c (component_ref_for_mem_expr): Remove.
12179         (mem_expr_equal_p): Use operand_equal_p.
12180         (set_mem_attributes_minus_bitpos): Do not use
12181         component_ref_for_mem_expr.
12182         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
12183         (update_alias_info_with_stack_vars): Likewise.
12184         (partition_stack_vars): Call update_alias_info_with_stack_vars.
12185         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
12186         explicitly nor clear stmt operands.
12187         Free the decl-to-pointer map.
12188         * tree-optimize.c (execute_free_datastructures): Do not free
12189         SSA data structures here.
12190         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
12191         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
12192         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
12193         dependencies.
12194         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
12195
12196 2009-07-13  DJ Delorie  <dj@redhat.com>
12197
12198         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
12199         unrolling at the right iteration count.
12200
12201         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
12202         calculations.
12203
12204 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
12205
12206         * haifa-sched.c (rank_for_schedule): Introduced flags to
12207         enable/disable individual scheduling heuristics.
12208         * common.opt: Introduced flags to enable/disable individual
12209         heuristics in the scheduler.
12210         * doc/invoke.texi: Introduced flags to enable/disable individual
12211         heuristics in the scheduler.
12212
12213 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
12214
12215         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
12216         config/i386/mingw-tls.c.
12217         * config/i386/mingw-tls.c: Removed.
12218
12219 2009-07-13  Ira Rosen  <irar@il.ibm.com>
12220
12221         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
12222         checks access only relevant statements.
12223         (vectorizable_reduction): Likewise.
12224
12225 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
12226
12227         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
12228         just for 32-bit case.
12229
12230 2009-07-12  Jan Hubicka  <jh@suse.cz>
12231
12232         PR tree-optimization/40585
12233         * except.c (expand_resx_expr): When there already is resume
12234         instruction, produce linked list.
12235         (build_post_landing_pads): Assert that resume is empty.
12236         (connect_post_landing_pads): Handle resume lists.
12237         (dump_eh_tree): Dump resume list.
12238
12239 2009-07-12  Ira Rosen  <irar@il.ibm.com>
12240
12241         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
12242         with additional argument.
12243         * tree-vectorizer.h (enum vect_def_type): Add
12244         vect_double_reduction_def.
12245         (vect_is_simple_reduction): Add argument.
12246         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
12247         indentation.
12248         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
12249         vect_is_simple_reduction with additional argument.
12250         (vect_analyze_loop_operations): Handle exit phi nodes in case of
12251         double reduction.
12252         (reduction_code_for_scalar_code): Handle additional codes by
12253         returning ERROR_MARK for them. Fix comment and indentation.
12254         (vect_is_simple_reduction): Fix comment, add argument to specify
12255         double reduction. Detect double reduction.
12256         (get_initial_def_for_induction): Fix indentation.
12257         (get_initial_def_for_reduction): Fix comment and indentation.
12258         Handle double reduction. Create initial definitions that do not
12259         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
12260         (vect_create_epilog_for_reduction): Fix comment, add argument to
12261         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
12262         epilogue result extraction. Create double reduction phi node and
12263         replace relevant uses.
12264         (vectorizable_reduction): Call vect_is_simple_reduction with
12265         additional argument. Fix indentation. Update epilogue code treatment
12266         according to the changes in reduction_code_for_scalar_code. Check
12267         for double reduction. Call vect_create_epilog_for_reduction with
12268         additional argument.
12269         * tree-vect-stmts.c (process_use): Handle double reduction, update
12270         documentation.
12271         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
12272         (vect_get_vec_def_for_operand): Likewise.
12273
12274 2009-07-12  Danny Smith  <dansmister@gmail.com>
12275
12276         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
12277         dllexport if !TREE_PUBLIC.
12278         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
12279
12280 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
12281
12282         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
12283         (avr_extra_arch_macro) Remove declatation.
12284         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
12285         (avr_extra_arch_macro) Declare as static.
12286         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
12287
12288 2009-07-11  Jan Hubicka  <jh@suse.cz>
12289
12290         PR middle-end/48388
12291         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
12292
12293 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
12294
12295         PR debug/40713
12296         * dwarf2out.c (dw_fde_struct): Add in_std_section and
12297         cold_in_std_section bits.
12298         (dwarf2out_begin_prologue): Initialize them.
12299         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
12300         if already covered by text_section or cold_text_section range.
12301
12302         PR rtl-optimization/40667
12303         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
12304         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
12305         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
12306         * config/i386/i386.c (ix86_minimum_alignment): New function.
12307         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
12308         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
12309         * emit-rtl.c (gen_reg_rtx): Likewise.
12310         * function.c (assign_parms): Likewise.  If nominal_type needs
12311         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
12312         rather than passed_type's alignment.
12313
12314         PR target/40668
12315         * function.c (assign_parm_setup_stack): Adjust
12316         MEM_OFFSET (data->stack_parm) if promoted_mode is different
12317         from nominal_mode on big endian.
12318
12319 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
12320
12321         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
12322
12323 2009-07-10  DJ Delorie  <dj@redhat.com>
12324
12325         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
12326
12327 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
12328
12329         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
12330         attribute.
12331         (thumb2_cbnz): Likewise.
12332
12333 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
12334
12335         PR target/39079
12336         * config.gcc (supported_defaults): Add synci.
12337         (with_synci): Add validation.
12338         (all_defaults): Add synci.
12339         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
12340         ISA_HAS_SYNCI.
12341         (synci): Same.
12342         * config/mips/mips.opt (msynci): New option.
12343         * config/mips/mips.c (mips_override_options): Warn on use of
12344         -msynci for targets that do now support it.
12345         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
12346         msynci.
12347         * gcc/doc/invoke.texi (-msynci): Document the new option.
12348         * doc/install.texi (--with-synci): Document the new option.
12349
12350 2009-07-10  Richard Guenther  <rguenther@suse.de>
12351
12352         PR tree-optimization/40496
12353         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
12354         the PHI result with a compatible type.
12355
12356 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12357
12358         PR 25509
12359         PR 40614
12360         * c.opt (Wunused-result): New.
12361         * doc/invoke.texi: Document it.
12362         * c-common.c (c_warn_unused_result): Use it.
12363
12364 2009-07-09  DJ Delorie  <dj@redhat.com>
12365
12366         * targhooks.c (default_target_can_inline_p): Rename from
12367         default_target_option_can_inline_p.
12368         * targhooks.h (default_target_can_inline_p): Likewise.
12369         * target-def.h (TARGET_CAN_INLINE_P): Rename from
12370         TARGET_OPTION_CAN_INLINE_P.
12371         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
12372         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
12373         (mep_target_can_inline_p): Rename from
12374         mep_target_option_can_inline_p.
12375
12376         PR target/40626
12377         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
12378         registers used to pass vectors.
12379
12380         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
12381
12382 2009-07-09  Tom Tromey  <tromey@redhat.com>
12383
12384         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
12385         * config/mmix/mmix.c: Include dwarf2.h.
12386         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
12387         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
12388         * config/sh/sh.c: Include dwarf2.h.
12389         * config/i386/i386.c: Include dwarf2.h.
12390         * Makefile.in (DWARF2_H): Remove 'elf'.
12391         * except.c: Include dwarf2.h.
12392         * unwind-dw2.c: Include dwarf2.h.
12393         * dwarf2out.c: Include dwarf2.h.
12394         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
12395         * unwind-dw2-fde.c: Include dwarf2.h.
12396         * dwarf2asm.c: Include dwarf2.h.
12397
12398 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
12399
12400         * haifa-sched.c (insn_finishes_cycle_p): New static function.
12401         (max_issue): Use it.
12402         * sched-int.h (struct sched_info: insn_finishes_block_p): New
12403         scheduler hook.
12404         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
12405         (region_sched_info): Update.
12406         * sched-ebb.c (ebb_sched_info): Update.
12407         * modulo-sched.c (sms_sched_info): Update.
12408         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
12409
12410 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
12411
12412         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
12413
12414 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
12415
12416         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
12417
12418 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
12419
12420         PR middle-end/40692
12421         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
12422         arg1 with arg01 if arg1 is already INTEGER_CST.
12423
12424 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
12425
12426         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
12427         Transform (and (truncate)) into (truncate (and)).
12428
12429 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
12430
12431         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
12432         creating LHS paradoxical subregs.  Fix surrounding returns to
12433         use NULL_RTX rather than 0.
12434
12435 2009-07-08  DJ Delorie  <dj@redhat.com>
12436
12437         * config/mep/mep.c (mep_option_can_inline_p): New.
12438         (TARGET_OPTION_CAN_INLINE_P): Define.
12439
12440 2009-07-08  Mark Wielaard  <mjw@redhat.com>
12441
12442         PR debug/40659
12443         * dwarf2out.c (add_data_member_location_attribute): When we have
12444         only a constant offset don't emit a new location description using
12445         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
12446         dwarf_version > 2.
12447
12448 2009-07-08  Richard Henderson  <rth@redhat.com>
12449
12450         PR target/38900
12451         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
12452         (enum reg_class): Add CLOBBERED_REGS.
12453         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
12454         * config/i386/i386.c (ix86_conditional_register_usage): Moved
12455         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
12456         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
12457         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
12458         force 64-bit sibcalls into R11.
12459         * config/i386/constraints.md (U): New constraint.
12460         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
12461         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
12462         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
12463
12464 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
12465
12466         * basic-block.h (dump_regset, debug_regset): Remove duplicate
12467         prototypes.
12468         * c-objc-common.h (c_initialize_diagnostics): Ditto.
12469         * ebitmap.h (dump_ebitmap): Ditto.
12470         * optabs.h (optab_libfunc): Ditto.
12471         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
12472         * tree-flow.h (vect_can_force_dr_alignment_p,
12473         get_vectype_for_scalar_type): Ditto.
12474         (vectorize_loops): Move prototype to ...
12475         * tree-vectorizer.h: ... here. Also, adjust comment.
12476         (vect_set_verbosity_level): Remove duplicate prototype.
12477         * tree-ssa-loop.c: Include tree-vectorizer.h.
12478         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
12479
12480 2009-07-08  Nick Clifton  <nickc@redhat.com>
12481
12482         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
12483         forward slash.
12484
12485 2009-07-08  DJ Delorie  <dj@redhat.com>
12486
12487         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
12488         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
12489         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
12490         written to.
12491         * config/mep/intrinsics.md: Regenerated.
12492         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
12493         registers when asm() or calls are detected.
12494
12495 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12496
12497         PR c++/31246
12498         * gimplify.c (gimplify_expr): Propagate no_warning flag when
12499         gimplifying.
12500         * gimple (gimple_build_call_from_tree): Likewise.
12501         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
12502         no_warning flag before warning.
12503
12504 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12505
12506         * tree.c (set_expr_locus): Remove.
12507         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
12508         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
12509         EXPR_LOCATION.
12510         * gimplify.c (internal_get_tmp_var): Likewise.
12511         (gimplify_call_expr): Likewise.
12512         (gimplify_one_sizepos): Likewise.
12513
12514 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
12515
12516         PR debug/40666
12517         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
12518         to variables for debugging purposes.
12519
12520 2009-06-23  Mark Loeser  <mark@halcy0n.com>
12521
12522         PR build/40010
12523         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
12524
12525 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12526
12527         * pretty-print.c (pp_base_format): Remove %J.
12528         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
12529         gcc_cxxdiag_char_table): Likewise.
12530         (init_dynamic_diag_info): Likewise.
12531
12532 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12533
12534         * pretty-print.c (pp_base_format): Remove %H.
12535         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
12536         gcc_cxxdiag_char_table): Likewise.
12537         (init_dynamic_diag_info): Likewise.
12538         * config/mep/mep.c (mep_select_section): Likewise.
12539
12540 2009-07-07  Duncan Sands  <baldrick@free.fr>
12541
12542         * final.c (pass_clean_state): Give the pass a name.
12543         * passes.c (pass_rest_of_compilation): Likewise.
12544         * tree-optimize.c (pass_all_optimizations): Likewise.
12545
12546 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
12547
12548         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
12549         an extra 'decl' for error_at.
12550
12551 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
12552
12553         PR middle-end/40669
12554         * tree-tailcall.c (adjust_return_value_with_ops,
12555         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
12556         if it has complex or vector type.
12557
12558 2009-07-07  Olivier Hainque  <hainque@adacore.com>
12559
12560         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
12561         pthread symbols.
12562
12563 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
12564
12565         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
12566
12567 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12568
12569         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
12570         * c-decl.c: Likewise.
12571         * function.c: Likewise.
12572         * varasm.c: Likewise.
12573         * tree-ssa.c: Likewise.
12574         * c-common.c: Likewise.
12575         * tree-cfg.c: Likewise.
12576         * config/spu/spu.c: Likewise.
12577         * config/ia64/ia64.c: Likewise.
12578         * config/v850/v850.c: Likewise.
12579
12580 2009-07-06  DJ Delorie  <dj@redhat.com>
12581
12582         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
12583         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
12584         unspecified accesses to control registers.
12585         * config/mep/intrinsics.md: Regenerate.
12586         * config/mep/intrinsics.h: Regenerate.
12587         * config/mep/mep-intrin.h: Regenerate.
12588
12589 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12590
12591         * c-lex.c: Replace %H by an explicit location. Update all calls.
12592         * c-common.c: Likewise.
12593         * c-decl.c: Likewise.
12594         * c-typeck.c: Likewise.
12595         * fold-const.c: Likewise.
12596         * gimplify.c: Likewise.
12597         * stmt.c: Likewise.
12598         * tree-cfg.c: Likewise.
12599         * tree-ssa-loop-niter.c: Likewise.
12600         * tree-vrp.c: Likewise.
12601         * value-prof.c: Likewise.
12602
12603 2009-07-06  Diego Novillo  <dnovillo@google.com>
12604
12605         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
12606         if it has one.  Handle cases where VAR does not have an
12607         annotation or cfun is NULL.
12608
12609 2009-07-06  Diego Novillo  <dnovillo@google.com>
12610
12611         * tree.c: Include debug.h.
12612         (initialize_tree_contains_struct): New.
12613         (init_ttree): Call it.
12614         (tree_node_structure_for_code): Factor out of ...
12615         (tree_node_structure): ... here.
12616         * treestruct.def (TS_PHI_NODE): Remove.
12617         (TS_GIMPLE_STATEMENT): Remove.
12618
12619 2009-07-06  Diego Novillo  <dnovillo@google.com>
12620
12621         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
12622         (debug_tree_chain): Handle cycles.
12623
12624 2009-07-06  Nick Clifton  <nickc@redhat.com>
12625             DJ Delorie  <dj@redhat.com>
12626
12627         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
12628         __FMOVD_ENABLED__ is defined.
12629         * config/sh/sh.h
12630         (TARGET_FMOVD): Provide a default definition.
12631         (MASK_FMOVD): Likewise.
12632         (TARGET_CPU_CPP_BUILTINS): Define
12633         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
12634         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
12635         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
12636         (split for DF load from memory into register): Also handle
12637         MEMs which consist of REG+DISP addressing.
12638         (split for DF store from register to memory): Likewise.
12639         (movsf_ie): Always use single fp_mode.
12640         * config/sh/sh.c (sh_override_options): Do not automatically
12641         enable TARGET_MOVD for the SH2A when supporting doubles - leave
12642         that to the -mfmovd command line switch.
12643         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
12644         (fldi_ok): Always allow.
12645         * config/sh/sh.opt (mfmovd): Remove this switch.
12646         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
12647
12648 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
12649             Kaz Kojima  <kkojima@gcc.gnu.org>
12650
12651         PR rtl-optimization/30807
12652         * postreload.c (reload_combine): For every new use of REG_SUM,
12653         record the use of BASE.
12654
12655 2009-07-06  Jan Hubicka  <jh@suse.cz>
12656
12657         * params.def: Revert my accidental commit at 2009-06-30.
12658
12659 2009-07-04  Ian Lance Taylor  <iant@google.com>
12660
12661         PR target/40636
12662         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
12663         EXPORTED_CONST.
12664         (mingw_format_attribute_overrides): Likewise.
12665
12666 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
12667
12668         PR debug/40596
12669         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
12670         don't check cfa.reg.  Instead of cfa.indirect use
12671         fde && fde->drap_reg != INVALID_REGNUM test.
12672
12673 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
12674
12675         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
12676
12677 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
12678
12679         PR target/40587
12680         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
12681
12682 2009-07-03  Richard Guenther  <rguenther@suse.de>
12683
12684         PR tree-optimization/40640
12685         * tree-switch-conversion.c (build_arrays): Perform arithmetic
12686         in original type.
12687
12688 2009-07-03  Jan Hubicka  <jh@suse.cz>
12689
12690         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
12691         for size, reduce amount of inlining.
12692
12693 2009-07-03  Richard Guenther  <rguenther@suse.de>
12694
12695         PR middle-end/34163
12696         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
12697         if t +- x is known to not overflow and the conversion widens the
12698         operation.
12699         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
12700
12701 2009-07-03  Jan Hubicka  <jh@suse.cz>
12702
12703         * ipa-pure-const.c (analyze): Update loop optimizer init.
12704         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
12705         try_remove_empty_loop, remove_empty_loops): Remove.
12706         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
12707         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
12708         to mark regular loops as neccesary.
12709         (degenerate_phi_p): New function.
12710         (propagate_necessity, remove_dead_phis): Use it.
12711         (forward_edge_to_pdom): Likewise.
12712         (eliminate_unnecessary_stmts): Take care to remove uses of results of
12713         virtual PHI nodes that became unreachable.
12714         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
12715         * tree-flow.h (remove_empty_loops): Remove.
12716         * passes.c (init_optimization_passes): Remove.
12717
12718 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
12719
12720         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
12721         can_create_pseudo_p.
12722         (*fix_trunc<mode>_i387_1): Ditto.
12723         (*floathi<mode>2_1): Ditto.
12724         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
12725         (*fistdi2_1): Ditto.
12726         (*fist<mode>2_1): Ditto.
12727         (frndintxf2_floor): Ditto.
12728         (*fist<mode>2_floor_1): Ditto.
12729         (frndintxf2_ceil): Ditto.
12730         (*fist<mode>2_ceil_1): Ditto.
12731         (frndintxf2_trunc): Ditto.
12732         (frndintxf2_mask_pm): Ditto.
12733         (fxam<mode>2_i387_with_temp): Ditto.
12734         * config/i386/sse.md (mulv16qi3): Ditto.
12735         (*sse2_mulv4si3): Ditto.
12736         (mulv2di3): Ditto.
12737         (sse4_2_pcmpestr): Ditto.
12738         (sse4_2_pcmpistr): Ditto.
12739
12740 2009-07-03  Jan Hubicka  <jh@suse.cz>
12741
12742         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
12743         (mark_stmt_necessary): Set it.
12744         (mark_operand_necessary): Set it.
12745         (mark_control_dependent_edges_necessary): Set it.
12746         (mark_virtual_phi_result_for_renaming): New function.
12747         (get_live_post_dom): New function.
12748         (forward_edge_to_pdom): New function.
12749         (remove_dead_stmt): Fix handling of control dependences.
12750         (tree_dce_init): Init new bitmap.
12751         (tree_dce_done): Free it.
12752
12753 2009-07-02  Richard Guenther  <rguenther@suse.de>
12754
12755         PR bootstrap/40617
12756         * tree-ssa-structalias.c (new_var_info): Initialize
12757         is_restrict_var.
12758
12759 2009-07-02  Jan Hubicka  <jh@suse.cz>
12760
12761         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
12762         local.
12763
12764 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
12765
12766         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
12767         instead of recomputing it.  Adjust calls.
12768         (emit_store_flag): Adjust recursive calls.
12769
12770 2009-07-02  Richard Guenther  <rguenther@suse.de>
12771
12772         * tree-ssa-live.c (remove_unused_locals): Do not remove
12773         heap variables.
12774         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
12775         of DECL_EXTERNAL for HEAP variables.
12776         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
12777         HEAP variables.  Do not adjust RESTRICT vars.
12778         (find_what_var_points_to): Nobody cares if something
12779         points to READONLY.
12780
12781 2009-07-02  Ben Elliston  <bje@au.ibm.com>
12782
12783         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
12784         pc_low and pc_high declarations to the top of the function.
12785
12786 2009-07-01  DJ Delorie  <dj@redhat.com>
12787
12788         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
12789         registers as fixed.
12790         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
12791         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
12792         unspecified accesses to control registers.
12793         * config/mep/intrinsics.md: Regenerate.
12794         * config/mep/intrinsics.h: Regenerate.
12795         * config/mep/mep-intrin.h: Regenerate.
12796
12797 2009-07-01  Anthony Green  <green@moxielogic.com>
12798
12799         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
12800         instruction when possible.
12801         (moxie_expand_prologue): Ditto.  Also, save an instruction and
12802         some complexity by popping off of $r12 instead of $sp.
12803         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
12804         operands.
12805
12806 2009-07-01  Richard Henderson  <rth@redhat.com>
12807
12808         PR bootstrap/40347
12809         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
12810         contained no insns, reposition note before last insn.
12811
12812 2009-07-01  Richard Henderson  <rth@redhat.com>
12813
12814         PR debug/40431
12815         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
12816         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
12817
12818 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
12819
12820         PR bootstrap/40558
12821         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
12822         darwin9 for printing reg addresses with %y.
12823
12824 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
12825
12826         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
12827         truncation from operands in binary operations.
12828
12829 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
12830
12831         Revert:
12832         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
12833         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
12834         subreg of op0 to the original op0.
12835
12836         * expmed.c (store_bit_field_1): Use a temporary as the destination
12837         instead of a paradoxical subreg when we need to truncate the result.
12838
12839 2009-07-01  DJ Delorie  <dj@redhat.com>
12840
12841         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
12842         names to VLIW variants.
12843         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
12844         * config/mep/intrinsics.md: Regenerate.
12845         * config/mep/intrinsics.h: Regenerate.
12846         * config/mep/mep-intrin.h: Regenerate.
12847
12848 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
12849
12850         PR debug/40462
12851         * jump.c (returnjump_p): Revert last patch.
12852         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
12853
12854 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12855
12856         PR target/40575
12857         * pa.md (casesi32p): Use jump table label to determine the offset
12858         of the jump table.
12859         (casesi64p): Likewise.
12860
12861         * pa.c (forward_branch_p): Return bool type.  Use instruction
12862         addresses when available.  Assert that INSN has a jump label.
12863         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
12864         have a jump label.
12865
12866 2009-07-01  Richard Guenther  <rguenther@suse.de>
12867
12868         PR tree-optimization/19831
12869         * tree-ssa-dce.c (propagate_necessity): Calls to functions
12870         that only act as barriers do not make any previous stores necessary.
12871         * tree-ssa-structalias.c (handle_lhs_call): Delay making
12872         HEAP variables global, do not add a constraint from nonlocal.
12873         (find_func_aliases): Handle escapes through return statements.
12874         (compute_points_to_sets): Make escaped HEAP variables global.
12875
12876 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
12877
12878         PR bootstrap/40597
12879         * expmed.c (emit_store_flag): Perform a conversion if necessary,
12880         after reducing a DImode cstore to SImode.
12881
12882 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
12883
12884         * expr.c (expand_expr_real_1): Reinstate fallthrough to
12885         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
12886
12887 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
12888
12889         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
12890         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
12891         to 0.
12892         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
12893         and umod_optab if TARGET_BSD_DIVMOD.
12894         * config/vax/lib1funcs.asm: New file.
12895         * config/vax/t-linux: New file.
12896         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
12897
12898 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
12899
12900         PR c++/40566
12901         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
12902         to type arguments that have void type.
12903
12904         PR debug/40573
12905         * dwarf2out.c (gen_formal_parameter_die): Call
12906         equate_decl_number_to_die if node is different from origin.
12907
12908 2009-06-30  Anthony Green  <green@moxielogic.com>
12909
12910         Clean up moxie port for --enable-build-with-cxx.
12911         * config/moxie/moxie.c (moxie_function_value): First two
12912         parameters are const_tree, not tree.
12913         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
12914         (REG_CLASS_NAMES): Ditto.
12915         (REGNO_REG_CLASS): Ditto.
12916         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
12917         (moxie_function_value): Fix constyness of arguments.
12918
12919 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
12920
12921         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
12922         finalize_size_functions before further processing.
12923         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
12924         (variable_size): Call self_referential_size on size expressions
12925         that contain a PLACEHOLDER_EXPR.
12926         (size_functions): New static variable.
12927         (copy_self_referential_tree_r): New static function.
12928         (self_referential_size): Likewise.
12929         (finalize_size_functions): New global function.
12930         * tree.c: Include tree-inline.h.
12931         (push_without_duplicates): New static function.
12932         (find_placeholder_in_expr): New global function.
12933         (substitute_in_expr) <tcc_declaration>: Return the replacement object
12934         on equality.
12935         <tcc_expression>: Likewise.
12936         <tcc_vl_exp>: If the replacement object is a constant, try to inline
12937         the call in the expression.
12938         * tree.h (finalize_size_functions): Declare.
12939         (find_placeholder_in_expr): Likewise.
12940         (FIND_PLACEHOLDER_IN_EXPR): New macro.
12941         (substitute_placeholder_in_expr): Update comment.
12942         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
12943         is true.
12944         (copy_tree_body_r): Likewise.
12945         (copy_tree_body): New static function.
12946         (maybe_inline_call_in_expr): New global function.
12947         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
12948         (maybe_inline_call_in_expr): Declare.
12949         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
12950         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
12951         GIMPLE_H.
12952
12953 2009-06-30  Richard Guenther  <rguenther@suse.de>
12954
12955         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
12956         continue walking.
12957         (propagate_necessity): Do not mark reaching defs of stores
12958         as necessary.
12959
12960 2009-06-30  Jan Hubicka  <jh@suse.cz>
12961
12962         * cfgloopanal.c (check_irred): Move into ...
12963         (mark_irreducible_loops): ... here; return true if ireducible
12964         loops was found.
12965         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
12966         (analyze_function): Try to prove loop finiteness.
12967         * cfgloop.h (mark_irreducible_loops): Update prototype.
12968         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
12969
12970 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
12971
12972         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
12973
12974 2009-06-30  Ira Rosen  <irar@il.ibm.com>
12975
12976         PR tree-optimization/40542
12977         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
12978         types.
12979
12980 2009-06-30  Martin Jambor  <mjambor@suse.cz>
12981
12982         PR tree-optimization/40582
12983         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
12984         than useless_type_conversion_p.
12985         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
12986         proper place.
12987
12988 2009-06-30  Martin Jambor  <mjambor@suse.cz>
12989
12990         PR middle-end/40554
12991         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
12992
12993 2009-06-30  Richard Guenther  <rguenther@suse.de>
12994
12995         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
12996         use ao_ref references.
12997         (walk_aliased_vdefs): Likewise.
12998         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
12999         * tree-ssa-dce.c (struct ref_data): Remove.
13000         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
13001         (mark_aliased_reaching_defs_necessary): Adjust.
13002         (mark_all_reaching_defs_necessary_1): Likewise.
13003
13004 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
13005
13006         PR boostrap/40597
13007         * expmed.c (emit_cstore): New name of emit_store_flag_1.
13008         (emit_store_flag_1): Extract from emit_store_flag, adjust
13009         calls to (what now is) emit_cstore.
13010         (emit_store_flag): Call emit_store_flag_1 and also use it
13011         for what used to be recursive calls.
13012
13013 2009-06-30  Wei Guozhi  <carrot@google.com>
13014
13015         PR/40416
13016         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
13017         if the target bb post dominates from bb.
13018         * config/i386/i386.c (memory_address_length): Check existence of base
13019         register before using it.
13020
13021 2009-06-30  Nick Clifton  <nickc@redhat.com>
13022             DJ Delorie  <dj@redhat.com>
13023
13024         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
13025         __FMOVD_ENABLED__ is defined.
13026         * config/sh/sh.h
13027         (TARGET_FMOVD): Provide a default definition.
13028         (MASK_FMOVD): Likewise.
13029         (TARGET_CPU_CPP_BUILTINS): Define
13030         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
13031         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
13032         two fmov instructions depending upon whether TARGET_FMOVD is
13033         enabled.
13034         (split for DF load from memory into register): Also handle
13035         MEMs which consist of REG+DISP addressing.
13036         (split for DF store from register to memory): Likewise.
13037         * config/sh/sh.opt (mfmovd): Remove this switch.
13038         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
13039         * config/sh/sh.c (sh_override_options): Do not automatically
13040         enable TARGET_MOVD for the SH2A when supporting doubles - leave
13041         that to the -mfmovd command line switch.
13042
13043         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
13044         the SH4 and SH4A.
13045         (fldi_ok): Always allow.
13046         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
13047
13048 2009-06-29  DJ Delorie  <dj@redhat.com>
13049
13050         * doc/install.texi (mep-x-elf): Correct chip's full name.
13051
13052 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
13053
13054         * doc/extend.texi: Fix typo.
13055
13056 2009-06-29  Tom Tromey  <tromey@redhat.com>
13057
13058         * dwarf2.h: Remove.
13059         * Makefile.in (DWARF2_H): New variable.
13060         (except.o): Use it.
13061         (dwarf2out.o): Likewise.
13062         (dwarf2asm.o): Likewise.
13063         * config/i386/t-i386: Use DWARF2_H.
13064         * except.c: Include elf/dwarf2.h.
13065         * unwind-dw2.c: Include elf/dwarf2.h.
13066         * dwarf2out.c: Include elf/dwarf2.h.
13067         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
13068         <dtprel>: New field.
13069         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
13070         (size_of_loc_descr): Likewise.
13071         (output_loc_operands_raw): Likewise.
13072         (output_loc_operands): Handle new dtprel field.
13073         (loc_checksum): Update.
13074         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
13075         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
13076         * unwind-dw2-fde.c: Include elf/dwarf2.h.
13077         * dwarf2asm.c: Include elf/dwarf2.h.
13078         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
13079         * config/mmix/mmix.c: Include elf/dwarf2.h.
13080         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
13081         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
13082         * config/sh/sh.c: Include elf/dwarf2.h.
13083         * config/i386/i386.c: Include elf/dwarf2.h.
13084
13085 2009-06-29  DJ Delorie  <dj@redhat.com>
13086
13087         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
13088
13089         * doc/extend.texi: Add MeP attributes and pragmas.
13090         * doc/invoke.text: Add MeP Options.
13091         * doc/contrib.texi: Add MeP contribution.
13092         * doc/md.texi: Add MeP constraints.
13093         * doc/install.texi: Add MeP target.
13094
13095 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
13096
13097         * target.h (struct gcc_target): Add frame_pointer_required field.
13098         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
13099         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
13100         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
13101         hook.
13102         * reload1.c (update_eliminables): (Ditto.).
13103         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
13104         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
13105         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
13106
13107         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
13108
13109         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
13110         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13111         (arm_frame_pointer_required): New function.
13112
13113         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
13114         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13115         (avr_frame_pointer_required_p): Declare as static.
13116         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
13117
13118         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
13119         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13120         (bfin_frame_pointer_required): Make as static, change return type
13121         to bool.
13122         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
13123
13124         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
13125         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13126         (cris_frame_pointer_required): New function.
13127
13128         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
13129
13130         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
13131         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13132         (fr30_frame_pointer_required): New function.
13133
13134         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
13135         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13136         (frv_frame_pointer_required): Make as static, change return type
13137         to bool.
13138         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
13139
13140         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
13141         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13142         (ix86_frame_pointer_required): Make as static, change return type to
13143         bool.
13144         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
13145
13146         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
13147         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13148
13149         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
13150
13151         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
13152
13153         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
13154
13155         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
13156         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13157         (mips_frame_pointer_required): Make as static.
13158         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
13159
13160         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
13161         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13162         (mmix_frame_pointer_required): Mew function.
13163
13164         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
13165         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13166
13167         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
13168
13169         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
13170
13171         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
13172
13173         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
13174         (CAN_ELIMINATE): Redefine.
13175         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13176         (sparc_frame_pointer_required): New function.
13177         (sparc_can_eliminate): New function.
13178         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
13179
13180         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
13181         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13182
13183         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
13184         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13185         (xtensa_frame_pointer_required): Make as static, change return type
13186         to bool.
13187         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
13188         Remove.
13189
13190 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
13191
13192         * doc/plugins.texi: Document PLUGIN_START_UNIT.
13193         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
13194         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
13195         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
13196         (register_callback): Handle PLUGIN_START_UNIT.
13197         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
13198
13199 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
13200
13201         * tree.c (process_call_operands): Propagate TREE_READONLY from the
13202         operands.
13203         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
13204         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
13205
13206 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
13207
13208         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
13209         move cost.
13210
13211 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
13212
13213         * doc/extend.texi (Additional Floating Types): __float128 is also
13214         supported on i386 targets.
13215
13216 2009-06-29  Richard Guenther  <rguenther@suse.de>
13217
13218         PR middle-end/14187
13219         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
13220         flag.
13221         (pt_solutions_same_restrict_base): Declare.
13222         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
13223         flag.
13224         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
13225         (make_constraint_from, make_copy_constraint): Move earlier.
13226         (make_constraint_from_heapvar): New function.
13227         (make_constraint_from_restrict): Likewise.
13228         (handle_lhs_call): Use it.
13229         (find_func_aliases): Use it to track conversions to restrict
13230         qualified pointers.
13231         (struct fieldoff): Add only_restrict_pointers flag.
13232         (push_fields_onto_fieldstack): Initialize it.
13233         (create_variable_info_for): Track global restrict qualified pointers.
13234         (intra_create_variable_infos): Use make_constraint_from_heapvar.
13235         Track restrict qualified pointer arguments.
13236         (set_uids_in_ptset): Use varinfo is_global_var flag.
13237         (find_what_var_points_to): Set the vars_contains_restrict flag.
13238         Always create the points-to solution for sets including restrict tags.
13239         (pt_solutions_same_restrict_base): New function.
13240         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
13241         qualified pointers use pt_solutions_same_restrict_base as
13242         additional source for disambiguation.
13243
13244 2009-06-29  Richard Guenther  <rguenther@suse.de>
13245
13246         PR middle-end/38212
13247         * alias.c (find_base_decl): Remove.
13248         (get_deref_alias_set_1): Remove restrict handling.
13249         * c-common.c (c_apply_type_quals_to_decl): Do not set
13250         DECL_POINTER_ALIAS_SET.
13251         * gimplify.c (find_single_pointer_decl_1): Remove.
13252         (find_single_pointer_decl): Likewise.
13253         (internal_get_tmp_var): Remove restrict handling.
13254         (gimple_regimplify_operands): Likewise.
13255         * omp-low.c (expand_omp_atomic_pipeline): Do not set
13256         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
13257         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
13258         * tree.c (restrict_base_for_decl): Remove.
13259         (init_ttree): Do not allocate it.
13260         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
13261         LABEL_DECL_UID for label decls.
13262         (copy_node_stat): Do not copy restrict information.
13263         (decl_restrict_base_lookup): Remove.
13264         (decl_restrict_base_insert): Likewise.
13265         (print_restrict_base_statistics): Likewise.
13266         (dump_tree_statistics): Do not call print_restrict_base_statistics.
13267         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
13268         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
13269         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
13270         (LABEL_DECL_UID): Adjust.
13271         (DECL_BASED_ON_RESTRICT_P): Remove.
13272         (DECL_GET_RESTRICT_BASE): Likewise.
13273         (SET_DECL_RESTRICT_BASE): Likewise.
13274         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
13275
13276         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
13277         instead of DECL_POINTER_ALIAS_SET.
13278         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
13279         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
13280         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
13281
13282 2009-06-29  Richard Guenther  <rguenther@suse.de>
13283
13284         PR tree-optimization/40579
13285         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
13286         the IL to simplify has constants that overflowed.
13287
13288 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
13289
13290         PR tree-optimization/40550
13291         * tree-vect-generic.c (expand_vector_operations_1): Compute in
13292         vector_compute_type only when the size of vector_compute_type is
13293         less than the size of type.
13294
13295 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
13296
13297         * fold-const.c (contains_label_1): Fix comments.
13298         (contains_label_p): Do not walk trees multiple time.
13299
13300 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
13301
13302         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
13303         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
13304         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
13305         ix86_fp_comparison_operator.
13306         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
13307         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
13308         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
13309         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
13310         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
13311         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
13312         (related splits): Change predicate to ix86_fp_comparison_operator.
13313         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
13314         instead of ix86_fp_comparison_codes.
13315         (ix86_trivial_fp_comparison_operator,
13316         ix86_fp_comparison_operator): New.
13317         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
13318         (ix86_expand_compare): Eliminate last two parameters.
13319         (ix86_fp_jump_nontrivial_p): Kill.
13320         * config/i386/i386.c (put_condition_code): Eliminate call to
13321         ix86_fp_comparison_codes and subsequent assertion.
13322         (ix86_fp_comparison_codes): Eliminate.
13323         (ix86_fp_swap_condition): New.
13324         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
13325         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
13326         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
13327         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
13328         and ix86_fp_swap_condition.
13329         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
13330         Use ix86_fp_comparison_strategy.
13331         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
13332         (ix86_fp_jump_nontrivial_p): Eliminate.
13333         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
13334         call to ix86_expand_compare.
13335         (ix86_split_fp_branch, ix86_expand_setcc,
13336         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
13337         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
13338
13339 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
13340
13341         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
13342         related to jump_clobbers.
13343         * config/arm/arm.md (conds): Remove jump_clob case.
13344         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
13345         splits): Change comparison_operator to arm_comparison_operator.
13346         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
13347         Eliminate.
13348
13349 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
13350
13351         * dojump.c (do_compare_rtx_and_jump): Try swapping the
13352         condition for floating point modes.
13353         * expmed.c (emit_store_flag_1): Move here a bigger part
13354         of emit_store_flag.
13355         (emit_store_flag): Try swapping the condition for floating point
13356         modes.
13357         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
13358
13359 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
13360
13361         * expr.c (expand_expr_real_1): Just use do_store_flag.
13362         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
13363         emit_store_flag_force.
13364         * expmed.c (emit_store_flag_force): Copy here trick
13365         previously in expand_expr_real_1.  Try reversing the comparison.
13366         (emit_store_flag_1): Work if target is NULL.
13367         (emit_store_flag): Work if target is NULL, using the result mode
13368         from the comparison.  Use split_comparison, restructure final part
13369         to simplify conditionals.
13370
13371 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
13372
13373         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
13374         * dojump.c (do_jump): Change handling of floating-point
13375         ops to use just do_compare_and_jump.
13376         (split_comparison): New.
13377         (do_compare_rtx_and_jump): Add here logic coming previously
13378         in do_jump, using split_comparison.
13379
13380 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
13381
13382         PR target/40489
13383         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
13384
13385 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13386
13387         * tree-ssa-alias.c: Fix unintentional commit.
13388
13389 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13390
13391         * passes.c (execute_one_pass): Fix unintentional commit.
13392
13393 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13394
13395         * df-problems.c (df_set_seen, df_unset_seen): Delete.
13396         (df_rd_local_compute, df_md_local_compute): Inline them.
13397
13398         (df_md_scratch): New.
13399         (df_md_alloc, df_md_free): Allocate/free it.
13400         (df_md_local_compute): Only include live registers in init.
13401         (df_md_transfer_function): Prune the in-set computed by
13402         the confluence function, and the gen-set too.
13403
13404 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13405
13406         PR rtl-optimization/26854
13407         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
13408         * df-problems.c (df_rd_add_problem): Fix comment.
13409         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
13410         df_md_simulate_artificial_defs_at_top,
13411         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
13412         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
13413         df_md_transfer_function, df_md_init, df_md_confluence_0,
13414         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
13415         problem_MD, df_md_add_problem): New.
13416         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
13417         df_md_get_bb_info): New.
13418         (DF_LAST_PROBLEM_PLUS1): Adjust.
13419
13420         * Makefile.in (fwprop.o): Include domwalk.h.
13421         * fwprop.c: Include domwalk.h.
13422         (reg_defs, reg_defs_stack): New.
13423         (bitmap_only_bit_between): Remove.
13424         (process_defs): New.
13425         (process_uses): Use reg_defs and local_md instead of
13426         bitmap_only_bit_between and local_rd.
13427         (single_def_use_enter_block): New, from build_single_def_use_links.
13428         (single_def_use_leave_block): New.
13429         (build_single_def_use_links): Remove code moved to
13430         single_def_use_enter_block, invoke domwalk.
13431         (use_killed_between): Adjust comment.
13432
13433 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13434
13435         * bitmap.h (bitmap_ior_and_into): New.
13436         * bitmap.c (bitmap_ior_and_into): New.
13437
13438 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13439
13440         * domwalk.h (struct dom_walk_data): Remove all callbacks except
13441         before_dom_children_before_stmts and after_dom_children_after_stmts.
13442         Rename the two remaining callbacks to just before_dom_children and
13443         after_dom_children. Remove other GIMPLE statement walking bits.
13444         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
13445         * graphite.c: Do not include domwalk.h.
13446         * tree-into-ssa.c (interesting_blocks): New global.
13447         (struct mark_def_sites_global_data): Remove it and names_to_rename.
13448         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
13449         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
13450         now that they're not domwalk callbacks.
13451         (rewrite_initialize_block): Rename to...
13452         (rewrite_enter_block): ... this, place after called functions.  Test
13453         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
13454         (rewrite_finalize_block): Rename to...
13455         (rewrite_leave_block): ... this, place after called functions.
13456         (rewrite_update_init_block): Rename to...
13457         (rewrite_update_enter_block): ... this, place after called functions.
13458         Test interesting_blocks, call rewrite_update_stmt and
13459         rewrite_update_phi_arguments.
13460         (rewrite_update_fini_block): Rename to...
13461         (rewrite_leave_block): ... this, place after called functions.
13462         (rewrite_blocks): Remove last argument, simplify initialization of
13463         walk_data.
13464         (mark_def_sites_initialize_block): Rename to...
13465         (mark_def_sites_block): ... this, call mark_def_sites.
13466         (mark_def_sites_blocks): Remove argument, simplify initialization of
13467         walk_data.
13468         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
13469         (update_ssa): Likewise.
13470         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
13471         callback.
13472         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
13473         (dom_opt_initialize_block): Rename to...
13474         (dom_opt_enter_block): ... this, place after called functions.  Walk
13475         statements here, inline propagate_to_outgoing_edges.
13476         (dom_opt_finalize_block): Rename to...
13477         (dom_opt_leave_block): ... this, place after called functions.
13478         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
13479         domwalk callback.
13480         (dse_enter_block, dse_record_phi): New.
13481         (dse_record_phis): Delete.
13482         (dse_finalize_block): Rename to...
13483         (dse_leave_block): ... this.
13484         (tree_ssa_dse): Simplify initialization of walk_data.
13485         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
13486         Adjust initialization of walk_data.
13487         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
13488         * tree-ssa-loop-phiopt.c (get_non_trapping):
13489         Adjust initialization of walk_data.
13490         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
13491         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
13492         it's not a domwalk callback.
13493         (uncprop_initialize_block): Rename to...
13494         (dse_enter_block): ... this, call uncprop_into_successor_phis.
13495         (dse_finalize_block): Rename to...
13496         (dse_leave_block): ... this.
13497         (tree_ssa_uncprop): Simplify initialization of walk_data.
13498         * Makefile.in: Adjust dependencies.
13499
13500 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
13501
13502         * arm.md (casesi): Fix test for Thumb1.
13503         (thumb1_casesi_internal_pic): Likewise.
13504         (thumb1_casesi_dispatch): Likewise.
13505
13506 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
13507
13508         * config/arm/arm-cores.def: Added core cortex-m0.
13509         * config/arm/arm-tune.md: Regenerated.
13510         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
13511
13512 2009-06-26  DJ Delorie  <dj@redhat.com>
13513
13514         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
13515
13516         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
13517         the scheduler doesn't tag jump insns.
13518
13519 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
13520
13521         * c-decl.c (merge_decls): Re-indent.
13522
13523 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
13524
13525         PR c/39902
13526         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
13527         Special-case decimal float constants.
13528
13529 2009-06-26  Richard Henderson  <rth@redhat.com>
13530
13531         * function.h (struct function): Add cannot_be_copied_reason,
13532         and cannot_be_copied_set.
13533         * tree-inline.c (has_label_address_in_static_1): Rename from
13534         inline_forbidden_p_2; don't set inline_forbidden_reason here.
13535         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
13536         don't set inline_forbidden_reason.
13537         (copy_forbidden): New function, split out of inline_forbidden_p.
13538         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
13539         (inline_forbidden_p): Use copy_forbidden.
13540         (tree_versionable_function_p): Likewise.
13541         (inlinable_function_p): Merge into tree_inlinable_function_p.
13542         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
13543         * ipa-cp.c (ipcp_versionable_function_p): New function.
13544         (ipcp_cloning_candidate_p): Use it.
13545         (ipcp_node_modifiable_p): Likewise.
13546
13547 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
13548
13549         * builtins.c (expand_builtin_alloca): Handle builtin alloca
13550         that is marked not to be inlined. Remove flag_mudflap use.
13551         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
13552         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
13553
13554 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
13555
13556         PR bootstrap/40338
13557         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
13558         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
13559
13560 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
13561
13562         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
13563         shared libgcc.
13564         (__mingwthr_remove_key_dtor): Likewise.
13565
13566 2009-06-26  Richard Guenther  <rguenther@suse.de>
13567
13568         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
13569
13570 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
13571
13572         PR middle-end/40525
13573         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
13574         try the non-cond_exec path also.
13575
13576 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13577
13578         PR target/40468
13579         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
13580         (output_cbranch): Use new functions.
13581         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
13582         Likewise.
13583
13584 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
13585             Pat Haugen  <pthaugen@us.ibm.com>
13586             Revital Eres <ERES@il.ibm.com>
13587
13588         * config/rs6000/rs6000.c (print_operand): Correct lossage message
13589         for %c error.  Add %x support to print VSX registers as a unified
13590         register set, instead of separate float and altivec registers.
13591         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
13592         %y case, and add support for VSX pre-modify addresses.
13593         (output_toc): Add assert for CONST containing an integer constant
13594         in the PLUS case.
13595         (rs6000_adjust_cost): Add POWER7 support.
13596         (insn_must_be_first_in_group): Ditto.
13597         (insn_must_be_last_in_group): Ditto.
13598         (rs6000_emit_popcount): Ditto.
13599         (rs6000_vector_mode_supported_p): Ditto.
13600
13601         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
13602         Change some of the functions called by macros to being called
13603         through a pointer, so debug functions can be inserted if
13604         -mdebug=addr or -mdebug=cost.
13605         (rs6000_preferred_reload_class_ptr): Ditto.
13606         (rs6000_secondary_reload_class_ptr): Ditto.
13607         (rs6000_secondary_memory_needed_ptr): Ditto.
13608         (rs6000_cannot_change_mode_class_ptr): Ditto.
13609         (rs6000_secondary_reload_inner): Ditto.
13610         (rs6000_legitimize_reload_address): Ditto.
13611         (rs6000_legitimize_reload_address_ptr): Ditto.
13612         (rs6000_mode_dependent_address): Ditto.
13613         (rs6000_mode_dependent_address_ptr): Ditto.
13614
13615         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
13616         function to return true if the mode allows reg + integer
13617         addresses.
13618         (virtual_stack_registers_memory_p): New function to return true if
13619         the address refers to a virtual stack register.
13620         (rs6000_legitimate_offset_address_p): Move code to say whether a
13621         mode supports reg+int addressing to reg_offset_addressing_ok_p and
13622         call it.
13623         (rs6000_legitimate_address_p): Add checks for modes that only can
13624         do reg+reg addressing.  Start adding VSX support.
13625         (rs6000_legitimize_reload_address): Ditto.
13626         (rs6000_legitimize_address): Ditto.
13627         (rs6000_debug_legitimate_address_p): New debug functions for
13628         -mdebug=addr and -mdebug=cost.
13629         (rs6000_debug_rtx_costs): Ditto.
13630         (rs6000_debug_address_costs): Ditto.
13631         (rs6000_debug_adjust_cost): Ditto.
13632         (rs6000_debug_legitimize_address): Ditto.
13633         (rs6000_legitimize_reload_address_ptr): Point to call normal
13634         function or debug function.  Make functions called via pointer
13635         static.
13636         (rs6000_mode_dependent_address_ptr): Ditto.
13637         (rs6000_secondary_reload_class_ptr): Ditto.
13638         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
13639         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
13640         into a friendlier error.
13641         (rs6000_init_builtins): Add initial VSX support.
13642         (rs6000_adjust_cost): Fix some spacing issues.
13643
13644         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
13645         (REG_CLASS_NAMES): Ditto.
13646         (REG_CLASS_CONTENTS): Ditto.
13647         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
13648         pointer, to add -mdebug=addr support.
13649         (CANNOT_CHANGE_MODE_CLASS): Ditto.
13650         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
13651         -mdebug=addr support.
13652         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
13653         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
13654         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
13655
13656         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
13657         16-bit values.
13658         (bswapsi*): Set attribute types for load/store.  Add combiner
13659         patterns to eliminate zero extend on 64-bit.
13660         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
13661         stdbrx if the hardware supports those instructions.
13662
13663 2009-06-25  Ian Lance Taylor  <iant@google.com>
13664
13665         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
13666         (Link Options): Document -static-libstdc++.
13667
13668 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13669
13670         PR target/38731
13671         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
13672         DATA_ALIGNMENT instead.
13673
13674 2009-06-25  Richard Guenther  <rguenther@suse.de>
13675
13676         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
13677         indirect references against the callused/escaped solutions.
13678         (call_may_clobber_ref_p_1): Likewise.
13679
13680 2009-06-25  Martin Jambor  <mjambor@suse.cz>
13681
13682         PR tree-optimization/40493
13683         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
13684         (enum unscalarized_data_handling): New type.
13685         (handle_unscalarized_data_in_subtree): Return what has been done.
13686         (load_assign_lhs_subreplacements): Handle left flushes differently.
13687         (sra_modify_assign): Use unscalarized_data_handling, simplified
13688         condition determining whether to remove the statement.
13689
13690 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
13691
13692         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
13693         excerpt - @ should be doubled for texinfo.
13694
13695 2009-06-24  Ian Lance Taylor  <iant@google.com>
13696
13697         * config/arc/arc.c: Include "df.h".
13698         (arc_attribute_table): Make static.  Move higher in file.
13699         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
13700         (output_shift): Initialize n later to avoid warning.
13701         * config/arm/arm.c (arm_attribute_table): Make static.  Move
13702         higher in file.
13703         * config/avr/avr.c (avr_attribute_table): Make static.  Move
13704         higher in file.
13705         (reg_class_tab): Change array type from int to enum reg_class.
13706         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
13707         LABEL_REF.
13708         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
13709         (lshrhi3_out): Likewise.
13710         (class_likely_spilled_p): Change return type to bool.
13711         (avr_rtx_costs): Use local code variable with enum type.
13712         * config/avr/avr.md (movmemhi): Use add_reg_note.
13713         (andhi3, andsi3): Don't use AS2 with "and".
13714         (iorhi3, iorsi3): Don't use AS2 with "or".
13715         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
13716         * config/crx/crx.c: Include "df.h".
13717         (crx_attribute_table): Make static.
13718         * config/m32r/m32r.c: Include "df.h".
13719         (m32r_attribute_table): Make static.  Move higher in file.
13720         (pop): Use add_reg_note.
13721         (block_move_call): Change 0 to LCT_NORMAL in function call.
13722         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
13723         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
13724         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
13725         declare, not just when TREE_CODE is defined.
13726         * config/m68hc11/m68hc11.c: Include "expr.h".
13727         (m68hc11_attribute_table): Make static.  Move higher in file.
13728         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
13729         function call.
13730         (m68hc11_register_indirect_p): Likewise.
13731         (m68hc11_function_arg_padding): Change return type to enum
13732         direction.
13733         (emit_move_after_reload): Use add_reg_note.
13734         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
13735         (m68hc11_split_logical): Likewise.
13736         (m68hc11_rtx_costs): Add local code_and outer_code variables with
13737         enum type.
13738         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
13739         to VOIDmode in function call.
13740         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
13741         tree is defined.
13742         (m68hc11_split_logical): Update declaration.
13743         (m68hc11_function_arg_padding): Update declaration.
13744         * config/mcore/mcore.c (regno_reg_class): Change form array of int
13745         to array of enum reg_class.
13746         (mcore_attribute_table): Make static.  Move higher in file.
13747         (mcore_rtx_costs): Add cast to enum type.
13748         * config/mcore/mcore.h (regno_reg_class): Update declaration.
13749         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
13750         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
13751         in file.
13752         * config/sh/predicates.md (trapping_target_operand): Rename and to
13753         and_expr.
13754         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
13755         higher in file.
13756         * config/spu/spu.c (spu_attribute_table): Make static.  Move
13757         higher in file.
13758         * config/v850/v850.c (v850_attribute_table): Make static.  Move
13759         higher in file.
13760         (v850_rtx_costs): Use local code with enum type.
13761         (expand_epilogue): Add cast.
13762         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
13763
13764 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
13765
13766         PR target/40515
13767         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
13768         -m2a-single-only and -m2a-nofpu.
13769         * config/sh/sh.opt: Document m2a generates FPU code.
13770
13771 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
13772
13773         * defaults.h (CAN_ELIMINATE): Provide default.
13774         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
13775         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
13776         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
13777         * config/spu/spu.h (CAN_ELIMINATE): Delete.
13778         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
13779         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
13780         * config/cris/cris.h (CAN_ELIMINATE): Delete.
13781         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
13782         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
13783         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
13784
13785 2009-06-24  DJ Delorie  <dj@redhat.com>
13786
13787         * mep-ext-cop.cpu: Fix copyright notice.
13788         * mep-default: Fix copyright notice.
13789         * mep-core: Fix copyright notice.
13790         * mep: Fix copyright notice.
13791         * mep-ivc2: Fix copyright notice.
13792         * mep-c5: Fix copyright notice.
13793
13794 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
13795
13796         * doc/contrib.texi (Contributors):
13797
13798 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
13799
13800         PR middle-end/40501
13801         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
13802         src and dst operands if necessary.
13803
13804 2009-06-23  DJ Delorie  <dj@redhat.com>
13805
13806         Add MeP port.
13807         * config.gcc: Add mep support.
13808         * recog.c: Resurrect validate_replace_rtx_subexp().
13809         * recog.h: Likewise.
13810         * config/mep/: Add new port:
13811         * config/mep/constraints.md: New file.
13812         * config/mep/default.h: New file.
13813         * config/mep/intrinsics.h: New file.
13814         * config/mep/intrinsics.md: New file.
13815         * config/mep/ivc2-template.h: New file.
13816         * config/mep/mep-c5.cpu: New file.
13817         * config/mep/mep-core.cpu: New file.
13818         * config/mep/mep-default.cpu: New file.
13819         * config/mep/mep-ext-cop.cpu: New file.
13820         * config/mep/mep-intrin.h: New file.
13821         * config/mep/mep-ivc2.cpu: New file.
13822         * config/mep/mep-lib1.asm: New file.
13823         * config/mep/mep-lib2.c: New file.
13824         * config/mep/mep-pragma.c: New file.
13825         * config/mep/mep-protos.h: New file.
13826         * config/mep/mep-tramp.c: New file.
13827         * config/mep/mep.c: New file.
13828         * config/mep/mep.cpu: New file.
13829         * config/mep/mep.h: New file.
13830         * config/mep/mep.md: New file.
13831         * config/mep/mep.opt: New file.
13832         * config/mep/predicates.md: New file.
13833         * config/mep/t-mep: New file.
13834
13835 2009-06-23  Ian Lance Taylor  <iant@google.com>
13836
13837         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
13838         from loose_warn into c_loose_warn and from strict_warn into
13839         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
13840         --enable-build-with-cxx.  Set and substitute
13841         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
13842         * Makefile.in (CXXFLAGS): New variable.
13843         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
13844         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
13845         the default is the same as $(STRICT_WARN).
13846         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
13847         (CXX): New variable.
13848         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
13849         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
13850         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
13851         (HOST_LIBS): New variable.
13852         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
13853         (ALL_CXXFLAGS): New variable.
13854         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
13855         * doc/install.texi (Configuration): Document
13856         --enable-build-with-cxx, --with-stage1-ldflags,
13857         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
13858         * configure: Rebuild.
13859
13860 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13861
13862         * config/arm/arm.c (arm_override_options): Fix braces and formatting
13863         from previous commit.
13864
13865 2009-06-23  Ian Lance Taylor  <iant@google.com>
13866
13867         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
13868
13869 2009-06-23  Ian Lance Taylor  <iant@google.com>
13870
13871         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
13872         with ATTRIBUTE_UNUSED.
13873
13874 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
13875             Pat Haugen  <pthaugen@us.ibm.com>
13876             Revital Eres  <eres@il.ibm.com>
13877
13878         * config.in (HAVE_AS_POPCNTD): Add default definition.
13879         (HAVE_AS_LWSYNC): Ditto.
13880
13881         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
13882         release number.
13883         (gcc_cv_as_powerpc_cmpb): Ditto.
13884         (gcc_cv_as_powerpc_dfp): Ditto.
13885         (gcc_cv_as_powerpc_vsx): Ditto.
13886         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
13887         supporting the popcntd/lwsync instructions.
13888         (gcc_cv_as_powerpc_lwsync): Ditto.
13889         * configure: Regenerate.
13890
13891         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
13892         -mcpu=native and -mcpu=power7.
13893         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
13894
13895         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
13896         a variable instead of a mask to reduce the number of mask bits.
13897         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
13898         (-mbit-word): Ditto.
13899         (-mregnames): Ditto.
13900         * config/rs6000/rs6000.opt (-mupdate): Ditto.
13901         (-mfused-madd): Ditto.
13902
13903         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
13904         2.06 instructions.
13905         (-mvsx): New switch for VSX instructions.
13906         (-misel): Move from a variable to a mask to allow it to be set by
13907         -mcpu=.
13908
13909         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
13910         function declaration to an array declaration.
13911         (rs6000_hard_regno_nregs): New external array declaration.
13912
13913         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
13914         files included by rs6000.md.
13915
13916         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
13917         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
13918
13919         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
13920         a target mask.
13921         (rs6000_debug_reg): New -mdebug= variables.
13922         (rs6000_debug_addr): Ditto.
13923         (rs6000_debug_cost): Ditto.
13924         (rs6000_pmode): New variable to hold Pmode.
13925         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
13926         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
13927         calculated at compiler start.
13928         (rs6000_hard_regno_nregs): Change function to an array which holds
13929         HARD_REGNO_NREGS calculated at compiler start.
13930         (rs6000_explicit_options): Delete isel field.
13931         (rs6000_vector_unit): New array to hold which vector unit
13932         supports arithmetic options for a given type.
13933         (rs6000_vector_mem): New array to hold which vector unit supports
13934         memory reference operations for a given type.
13935         (rs6000_vector_align): New array to given the alignment of each
13936         vector type.
13937         (power7_cost): New basic costs for power7.
13938         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
13939         (rs6000_hard_regno_nregs_internal): New function, moved from
13940         HARD_REGNO_NREGS, to calculate the number of registers each hard
13941         register takes for each type.
13942         (rs6000_debug_reg_print): New function for -mdebug=reg support.
13943         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
13944         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
13945         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
13946         unit information here so it is calculated once at compiler startup
13947         time.
13948         (rs6000_override_options): Make -misel a target mask.  Add more
13949         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
13950         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
13951         -mdebug=cost.
13952         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
13953         (rs6000_handle_option): Move -misel from variable to target mask.
13954         (rs6000_builtin_mask_for_load): Add VSX support.
13955         (rs6000_conditional_register_usage): Ditto.
13956         (USE_ALTIVEC_FOR_ARG_P): Ditto.
13957         (function_arg_boundary): Ditto.
13958         (rs6000_expand_builtin): Ditto.
13959         (def_builtin): Make abort message a little friendlier.
13960         (rs6000_emit_int_cmove): Add support for 64-bit isel.
13961
13962         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
13963         assembler support the popcntd instruction instead of a vsx
13964         instruction to enable power7 support.
13965         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
13966         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
13967         option to the assembler if -mcpu=native.
13968         (ASM_CPU_NATIVE_SPEC): Ditto.
13969         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
13970         ISA 2.06 features.
13971         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
13972         the lwsync instruction.
13973         (enum processor_type): Add PROCESSOR_POWER7.
13974         (rs6000_debug_reg): New -mdebug= options.
13975         (rs6000_debug_addr): Ditto.
13976         (rs6000_debug_cost): Ditto.
13977         (rs6000_isel): Delete.
13978         (enum rs6000_vector): New enum to say what vector unit we have.
13979         (VECTOR_UNIT_*): New macros to say which vector unit has
13980         arithmetic operations for a given type.
13981         (VECTOR_MEM_*): New macros to say which vector unit has memory
13982         operations for a given type.
13983         (TARGET_LDBRX): Whether the machine supports the ldbrx
13984         instruction.
13985         (TARGET_ISEL): Delete, -misel moved to be a mask.
13986         (TARGET_ISEL64): New macro for 64-bit isel support.
13987         (UNITS_PER_VSX_WORD): New macro.
13988         (POINTER_SIZE): Move to be an external variable, rather than
13989         calculating whether we are generating 32 ot 64-bit code.
13990         (Pmode): Ditto.
13991         (STACK_BOUNDARY): Add VSX support.
13992         (LOCAL_ALIGNMENT): Ditto.
13993         (SLOW_UNALIGNED_ACCESS): Ditto.
13994         (VSX_REGNO_P): New macro for VSX support.
13995         (VFLOAT_REGNO_P): Ditto.
13996         (VINT_REGNO_P): Ditto.
13997         (VLOGICAL_REGNO_P): Ditto.
13998         (VSX_VECTOR_MODE): Ditto.
13999         (VSX_SCALAR_MODE): Ditto.
14000         (VSX_MODE): Ditto.
14001         (VSX_MOVE_MODE): Ditto.
14002         (VSX_REG_CLASS_P): Ditto.
14003         (HARD_REGNO_NREGS): Instead of calling a function, use an array
14004         lookup.
14005         (UNITS_PER_SIMD_WORD): Add VSX support.
14006         (MODES_TIEABLE_P): Ditto.
14007         (STARTING_FRAME_OFFSET): Ditto.
14008         (STACK_DYNAMIC_OFFSET): Ditto.
14009         (EPILOGUE_USES): Ditto.
14010         (REGNO_REG_CLASS): Move to array lookup.
14011         (CLASS_MAX_NREGS): Ditto.
14012         (rs6000_vector_reg_class): Add declaration.
14013         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
14014         overlap with the floating point and Altivec registers.
14015
14016         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
14017
14018         * config/rs6000/driver-rs6000.c (asm_names): New static array to
14019         give the appropriate asm switches if -mcpu=native.
14020         (host_detect_local_cpu): Add support for "asm".
14021         (host_detect_local_cpu): Follow GNU code guidelines for name.
14022
14023         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
14024         -mbit-word to a variable instead of being a target mask.
14025
14026         * config/rs6000/sync.md (lwsync): If the assembler supports it,
14027         emit the lwsync instruction instead of emitting the instruction as
14028         an integer constant.
14029
14030         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
14031         fixuns_trundfsi2, move expander into rs6000.md.
14032
14033         * config/rs6000/rs6000.md (cpu): Add power7.
14034         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
14035         (logical predicate patterns): Change the single instruction
14036         primitives that set CR0 to be fast_compare instead of compare.
14037         (norsi*): Ditto.
14038         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
14039         (popcntddi2): Ditto.
14040         (popcount<mode>): Ditto.
14041         (floating multiply/add insns): Name the floating point
14042         multiply/add insns.
14043         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
14044         (isel_unsigned_<mode>): Ditto.
14045         (fixuns_trundfsi2): Move expander here from spe.md.
14046         (smindi3): Define if we have -misel on 64-bit systems.
14047         (smaxdi3): Ditto.
14048         (umindi3): Ditto.
14049         (umaxdi3): Ditto.
14050
14051 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
14052
14053         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
14054         extra_objs.
14055         * config/avr/avr.c (avr_current_device): New variable.
14056         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
14057         (avr_arch, mcu_type_s): Move to avr.h.
14058         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
14059         default_data_section_start fields.
14060         (avr_arch): Moved from avr.c.
14061         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
14062         library_name fields.
14063         (avr_current_device, avr_mcu_types, avr_arch_types,
14064         avr_device_to_arch, avr_device_to_data_start,
14065         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
14066         (EXTRA_SPEC_FUNCTIONS): Define.
14067         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
14068         options mapping. Use device_to_arch and device_to_data_start insted.
14069         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
14070         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
14071         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
14072         * config/avr/driver-avr.c: New file.
14073         * config/avr/avr-devices.c: New file.
14074
14075 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
14076
14077         * var-tracking.c (unshare_variable): Force initialized to
14078         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
14079         (set_variable_part): Likewise.
14080         (struct variable_union_info): Remove pos_src field.
14081         (vui_vec, vui_allocated): New variables.
14082         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
14083         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
14084         == 1 use a simpler sorting algorithm.  Compute pos field right
14085         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
14086         Avoid quadratic comparison if !flag_var_tracking_uninit.
14087         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
14088         unshare_variable unconditionally.
14089         (dataflow_set_different_2): Removed.
14090         (dataflow_set_different): Don't traverse second hash table.
14091         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
14092         unconditionally to var_reg_set or var_mem_set.
14093         (emit_notes_in_bb): Likewise.
14094         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
14095         unshare_variable.
14096         (emit_note_insn_var_location): Don't set initialized to
14097         VAR_INIT_STATUS_INITIALIZED early.
14098         (vt_finalize): Free vui_vec if needed, clear vui_vec and
14099         vui_allocated.
14100         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
14101
14102         * tree-object-size.c (addr_object_size): Instead of checking
14103         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
14104         are no FIELD_DECLs following it.
14105
14106 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
14107
14108         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
14109         order to match bswaps with signed source operands.
14110
14111 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14112
14113         * sdbout.c (sdbout_one_type): Fix braces in switch.
14114
14115 2009-06-23  Richard Guenther  <rguenther@suse.de>
14116
14117         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
14118         member.
14119         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
14120         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
14121         var_callused, callused_tree, var_storedanything, storedanything_tree,
14122         var_integer, integer_tree): Remove global variables.
14123         (new_var_info): Do not pass new id, append the new var to the
14124         global variable vector.
14125         (do_ds_constraint): Use is_global_var member of the variable-info.
14126         (new_scalar_tmp_constraint_exp): Adjust.
14127         (create_function_info_for): Likewise.
14128         (create_variable_info_for): Likewise.
14129         (find_what_var_points_to): Remove dead code.
14130         (init_base_vars): Simplify.
14131         (compute_points_to_sets): Adjust.
14132
14133 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
14134
14135         * combine.c (try_combine): Dump information about the insns we're
14136         combining.
14137
14138 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
14139
14140         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
14141         check when calling force_to_mode on TRUNCATE's operand.
14142
14143 2009-06-22  Ian Lance Taylor  <iant@google.com>
14144
14145         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
14146
14147 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
14148
14149         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
14150
14151 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14152
14153         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
14154         override library linkage flags such as -static-libgcc or
14155         -shared-libgcc.
14156
14157 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
14158
14159         * config/m68k/m68k-devices.def: Add line for MCF5221x.
14160
14161 2009-06-22  Ian Lance Taylor  <iant@google.com>
14162
14163         * config/linux.opt: Put mglibc ahead of muclibc.
14164
14165         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
14166         for duplicate decls.
14167
14168 2009-06-22  Matthias Klose  <doko@ubuntu.com>
14169
14170         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
14171
14172 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
14173
14174         PR objc/28050
14175         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
14176         instead of NULL if a parser error occurs.
14177
14178 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14179
14180         * dwarf2out.c (dwarf2_debug_hooks): Initialize
14181         non-DWARF2_DEBUGGING_INFO version.
14182
14183 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
14184
14185         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
14186         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
14187
14188         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
14189         (LIBGCC2_TF_CEXT): Define.
14190         (TF_SIZE): Define.
14191
14192 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14193
14194         PR target/40463
14195         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
14196
14197 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14198
14199         * config/arm/arm.c (arm_override_options): Disable
14200         -mcaller-super-interworking and -mcallee-super-interworking.
14201         * doc/invoke.texi (ARM Options): Document this.
14202
14203 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
14204
14205         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
14206         * config/arm/constraints.md (j): New constraint for movw operands.
14207         (N): Remove thumb2 meaning.
14208         * config/arm/arm.md (*arm_movw): Delete.
14209         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
14210         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
14211         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
14212
14213 2009-06-22  Martin Jambor  <mjambor@suse.cz>
14214
14215         PR tree-optimization/40492
14216         * tree-sra.c (sra_modify_assign): Pass zero offsets to
14217         build_ref_for_offset.
14218
14219 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
14220
14221         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
14222         JUMP_TABLE_DATA_P predicates where applicable.
14223         * auto-inc-dec.c: Ditto.
14224         * builtins.c: Ditto.
14225         * caller-save.c: Ditto.
14226         * calls.c: Ditto.
14227         * cfgcleanup.c: Ditto.
14228         * cfglayout.c: Ditto.
14229         * cfgrtl.c: Ditto.
14230         * combine.c: Ditto.
14231         * combine-stack-adj.c: Ditto.
14232         * cse.c: Ditto.
14233         * cselib.c: Ditto.
14234         * dbxout.c: Ditto.
14235         * df-scan.c: Ditto.
14236         * dse.c: Ditto.
14237         * dwarf2asm.c: Ditto.
14238         * dwarf2out.c: Ditto.
14239         * emit-rtl.c: Ditto.
14240         * except.c: Ditto.
14241         * explow.c: Ditto.
14242         * expmed.c: Ditto.
14243         * expr.c: Ditto.
14244         * final.c: Ditto.
14245         * function.c: Ditto.
14246         * fwprop.c: Ditto.
14247         * gcse.c: Ditto.
14248         * genpreds.c: Ditto.
14249         * genrecog.c: Ditto.
14250         * ifcvt.c: Ditto.
14251         * ira-costs.c: Ditto.
14252         * ira-lives.c: Ditto.
14253         * jump.c: Ditto.
14254         * loop-iv.c: Ditto.
14255         * lower-subreg.c: Ditto.
14256         * modulo-sched.c: Ditto.
14257         * optabs.c: Ditto.
14258         * postreload.c: Ditto.
14259         * print-rtl.c: Ditto.
14260         * recog.c: Ditto.
14261         * reginfo.c: Ditto.
14262         * regmove.c: Ditto.
14263         * reload1.c: Ditto.
14264         * reload.c: Ditto.
14265         * reorg.c: Ditto.
14266         * rtlanal.c: Ditto.
14267         * rtl.c: Ditto.
14268         * sched-vis.c: Ditto.
14269         * sdbout.c: Ditto.
14270         * sel-sched-ir.c: Ditto.
14271         * simplify-rtx.c: Ditto.
14272         * targhooks.c: Ditto.
14273         * var-tracking.c: Ditto.
14274         * vmsdbgout.c: Ditto.
14275
14276 2009-06-22  Matthias Klose  <doko@ubuntu.com>
14277
14278         * Makefile.in (install-plugin): Always use DESTDIR.
14279
14280 2009-06-22  Olivier Hainque  <hainque@adacore.com>
14281
14282         * config/pa/pa.c (output_call): Don't optimize post call jumps
14283         into return address adjustments if the call may throw.
14284
14285 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
14286
14287         * arm.c (thumb1_output_casesi): New function.
14288         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
14289         optimizing for size or PIC.
14290         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
14291         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
14292         (casesi): Handle Thumb-1 when optimizing for size or PIC.
14293         (thumb1_casesi_internal_pic): New expand rule.
14294         (thumb1_casesi_dispatch): New pattern.
14295         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
14296         thumb-1 mode.
14297         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
14298         in the text seciton when PIC or optimizing for size.
14299         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
14300         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
14301         preservation properties of code.
14302         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
14303         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
14304         (__gnu_thumb1_case_si): New function.
14305         * t-arm (LIB1ASMSRC): Define here.
14306         (LIB1ASMFUNCS): Add some common functions.
14307         * t-arm-elf (LIB1ASMSRC): Delete.
14308         (LIB1ASMFUNCS): Append to existing set.
14309         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14310         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14311         * t-symbian (LIB1ASMFUNCS): Likewise.
14312         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14313         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14314
14315 2009-06-21  Richard Guenther  <rguenther@suse.de>
14316
14317         PR tree-optimization/38729
14318         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
14319         to loops with a single exit if -fno-expensive-optimizations.
14320
14321 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
14322
14323         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
14324         (dataflow_set): Change vars type from htab_t to shared_hash.
14325         (shared_hash_pool, empty_shared_hash): New variables.
14326         (vars_clear): Removed.
14327         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
14328         shared_hash_find_slot_unshare, shared_hash_find_slot,
14329         shared_hash_find_slot_noinsert, shared_hash_find): New
14330         static inlines.
14331         (shared_hash_unshare, shared_hash_destroy): New functions.
14332         (unshare_variable): Unshare set->vars if shared, use
14333         shared_hash_htab.
14334         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
14335         (get_init_value, find_src_set_src, dump_dataflow_set,
14336         clobber_variable_part, emit_notes_for_differences): Use
14337         shared_hash_htab.
14338         (dataflow_set_init): Remove second argument, set vars to
14339         empty_shared_hash instead of creating a new htab.
14340         (dataflow_set_clear): Call shared_hash_destroy and set vars
14341         to empty_shared_hash instead of calling vars_clear.
14342         (dataflow_set_copy): Don't call vars_copy, instead just share
14343         the src htab with dst.
14344         (variable_union): Use shared_hash_*, use initially NO_INSERT
14345         lookup if set->vars is shared.  Don't keep slot cleared before
14346         calling unshare_variable.  Unshare set->vars if needed.
14347         Even ->refcount == 1 vars must be unshared if set->vars is shared
14348         and var needs to be modified.
14349         (variable_canonicalize): New function.
14350         (dataflow_set_union): If dst->vars is empty, just share src->vars
14351         with dst->vars and traverse with variable_canonicalize to canonicalize
14352         and unshare what is needed.
14353         (dataflow_set_different): If old_set and new_set use the same shared
14354         htab, they aren't different.  If number of htab elements is different,
14355         htabs are different.  Use shared_hash_*.
14356         (dataflow_set_destroy): Call shared_hash_destroy instead of
14357         htab_delete.
14358         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
14359         second argument to dataflow_set_init.
14360         (vt_initialize): Likewise.  Initialize shared_hash_pool and
14361         empty_shared_hash, move bb in/out initialization afterwards.
14362         Use variable_htab_free instead of NULL as changed_variables del hook.
14363         (variable_was_changed): Change type of second argument to pointer to
14364         dataflow_set.  When inserting var into changed_variables, bump
14365         refcount.  Unshare set->vars if set is shared htab and slot needs to
14366         be cleared.
14367         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
14368         lookup if set->vars is shared.  Unshare set->vars if needed.
14369         Even ->refcount == 1 vars must be unshared if set->vars is shared
14370         and var needs to be modified.  Adjust variable_was_changed caller.
14371         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
14372         vars must be unshared if set->vars is shared and var needs to be
14373         modified.  Adjust variable_was_changed caller.
14374         (emit_note_insn_var_location): Don't pool_free var.
14375         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
14376         instead of 1.
14377         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
14378         free_alloc_pool on shared_hash_pool.
14379
14380 2009-06-20  Anthony Green  <green@moxielogic.com>
14381
14382         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
14383         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
14384
14385 2009-06-20  Richard Guenther  <rguenther@suse.de>
14386
14387         * tree-ssa-structalias.c (find_func_aliases): For memset use
14388         a constraint from NULL if we memset to zero.
14389         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
14390         we explicitly handle that do not read from memory.
14391         (call_may_clobber_ref_p_1): Properly handle builtins that may
14392         set errno.
14393
14394 2009-06-20  Richard Guenther  <rguenther@suse.de>
14395
14396         PR tree-optimization/40495
14397         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
14398         (new_scalar_tmp_constraint_exp): New function.
14399         (process_constraint): Do not create temporary decls.
14400         (process_all_all_constraints): Likewise.
14401         (handle_const_call): Likewise.
14402         (create_function_info_for): Do not set decl.
14403
14404 2009-06-19  Ian Lance Taylor  <iant@google.com>
14405
14406         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
14407         (rs6000_attribute_table): Make static; move before use.
14408
14409 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
14410
14411         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
14412         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
14413         Propagate the TREE_READONLY flag without overwriting it.
14414         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
14415         Propagate the TREE_READONLY flag onto the result.
14416         (process_call_operands): Move around.  Use correct constant value.
14417
14418 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14419
14420         PR target/40482
14421         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
14422         * config/arm/arm.md: Likewise.
14423
14424 2009-06-19  Ian Lance Taylor  <iant@google.com>
14425
14426         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
14427         to GIMPLE_ERROR_MARK.
14428
14429         * c-typeck.c (build_conditional_expr): Add op1_original_type and
14430         op2_original_type parameters.  Warn about using different enum types.
14431         * c-parser.c (c_parser_conditional_expression): Pass original
14432         types to build_conditional_expr.
14433         * c-tree.h (build_conditional_expr): Update declaration.
14434
14435 2009-06-19  Ian Lance Taylor  <iant@google.com>
14436
14437         * config/i386/i386.c (ix86_function_specific_save): Test that
14438         fields match values, rather than testing the values are in a
14439         certain range.
14440
14441 2009-06-19  Richard Guenther  <rguenther@suse.de>
14442
14443         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
14444         ADDR_EXPR pointers.
14445         (ptr_derefs_may_alias_p): Likewise.
14446         (ptr_deref_may_alias_ref_p_1): New function.
14447         (ptr_deref_may_alias_ref_p): Likewise.
14448         (ref_maybe_used_by_call_p_1): Handle builtins that are not
14449         covered by looking at the ESCAPED solution.
14450         (call_may_clobber_ref_p_1): Likewise.
14451         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
14452         Handle NULL_TREE offset.  Do not produce redundant constraints.
14453         (process_all_all_constraints): New helper function.
14454         (do_structure_copy): Use it.
14455         (handle_lhs_call): Likewise.
14456         (find_func_aliases): Handle some builtins with pointer arguments
14457         and/or return values explicitly.
14458
14459 2009-06-19  Ian Lance Taylor  <iant@google.com>
14460
14461         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
14462
14463 2009-06-19  Ian Lance Taylor  <iant@google.com>
14464
14465         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
14466
14467 2009-06-19  Ian Lance Taylor  <iant@google.com>
14468
14469         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
14470         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
14471         version.
14472
14473         * c-decl.c (finish_decl): If -Wc++-compat, warn about
14474         uninitialized const.
14475
14476 2009-06-19  Ian Lance Taylor  <iant@google.com>
14477
14478         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
14479         all uses.
14480
14481         * c-decl.c (in_struct, struct_types): Remove.
14482         (struct c_binding): Add in_struct field.
14483         (c_binding_ptr): Define type, along with VEC.
14484         (struct c_struct_parse_info): Define.
14485         (struct_parse_info): New static variable.
14486         (bind): Initialize in_struct field.
14487         (start_struct): Remove enclosing_in_struct and
14488         enclosing_struct_types parameters.  Add
14489         enclosing_struct_parse_info parameter.  Change all callers.  Set
14490         struct_parse_info rather than in_struct and struct_types.
14491         (grokfield): If -Wc++-compat and there is a symbol binding for the
14492         field name, set the in_struct flag and push it on the
14493         struct_parse_info->fields vector.
14494         (warn_cxx_compat_finish_struct): New static function.
14495         (finish_struct): Remove enclosing_in_struct and
14496         enclosing_struct_types parameters.  Add
14497         enclosing_struct_parse_info parameter.  Change all callers.  Don't
14498         set C_TYPE_DEFINED_IN_STRUCT here.  Call
14499         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
14500         parameter.  Only push on struct_types if warn_cxx_compat.
14501         (finish_enum): Only push on struct_types if warn_cxx_compat.
14502         (declspecs_add_type): Add loc parameter.  Change all callers.
14503         Change all error calls to error_at.  Pass loc, not input_location,
14504         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
14505         defined in a struct.  If -Wc++-compat and parsing a struct, record
14506         that a typedef name was used.
14507         * c-parser.c (c_parser_declspecs): Get location to pass to
14508         declspecs_add_type.
14509         (c_parser_struct_or_union_specifier): Update calls to start_struct
14510         and finish_struct.
14511         * c-tree.h (struct c_struct_parse_info): Declare.
14512         (finish_struct, start_struct): Update declarations.
14513         (declspecs_add_type): Update declaration.
14514
14515 2009-06-19  Ian Lance Taylor  <iant@google.com>
14516
14517         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
14518         variable with an anonymous type.
14519
14520 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
14521
14522         * see.c: Remove for real.
14523
14524 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
14525
14526         * optabs.h (enum optab_index): Add new OTI_significand.
14527         (significand_optab): Define corresponding macro.
14528         * optabs.c (init_optabs): Initialize significand_optab.
14529         * genopinit.c (optabs): Implement significand_optab using
14530         significand?f2 patterns.
14531         * builtins.c (expand_builtin_mathfn): Handle
14532         BUILT_IN_SIGNIFICAND{,F,L}.
14533         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
14534         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
14535
14536         * config/i386/i386.md (significandxf2, significand<mode>2): New
14537         expanders to implement significandf, significand and significandl
14538         built-ins as inline x87 intrinsics.
14539
14540 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
14541
14542         * config/avr/avr.c (avr_override_options): Remove setting value of
14543         PARAM_INLINE_CALL_COST.
14544
14545 2009-06-18  Richard Henderson  <rth@redhat.com>
14546
14547         PR 40488
14548         * tree-pass.h (TDF_ASMNAME): New.
14549         * tree-dump.c (dump_options): Add asmname.
14550         * doc/invoke.texi: Document it.
14551
14552         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
14553         (dump_decl_name): ...here.
14554         (dump_function_name): New flags arg; mind TDF_ASMNAME.
14555         (dump_generic_node): Update dump_function_name calls.
14556         (print_call_name): New flags arg; update all dump calls.
14557         * diagnostic.h (print_call_name): Update.
14558         * gimple-pretty-print.c (dump_gimple_call): Update.
14559
14560 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
14561
14562         PR target/40470
14563         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
14564
14565 2009-06-18  Diego Novillo  <dnovillo@google.com>
14566
14567         * doc/plugins.texi: Document plugin_is_GPL_compatible.
14568         * plugin.c (str_license): Declare.
14569         (try_init_one_plugin): Assert that the symbol
14570         'plugin_is_GPL_compatible' exists.
14571
14572 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
14573
14574         * see.c: Remove.
14575         * Makefile.in (OBJS-common): Remove see.o.
14576         (see.o): Remove.
14577         * common.opt (fsee): Mark as preserved for backward compatibility.
14578         * opts.c (common_handle_option): Add OPT_fsee to the backward
14579         compatibility section.
14580         * passes.c (init_optimization_passes, pass_see): Remove pass.
14581         * timevar.def (TV_SEE): Remove.
14582         * tree-pass.h (pass_see): Remove declaration.
14583         * doc/invoke.texi (-fsee): Remove documentation.
14584
14585 2009-06-18  Martin Jambor  <mjambor@suse.cz>
14586
14587         * tree-sra.c: Include statistics.h
14588         (sra_stats): New variable.
14589         (sra_initialize): Clear sra_stats.
14590         (create_access_replacement): Increment sra_stats.replacements.
14591         (get_access_replacement): Do not return twice.
14592         (analyze_all_variable_accesses): Increment statistics counter by the
14593         number of scalarized aggregates.
14594         (generate_subtree_copies): Increment sra_stats.subtree_copies.
14595         (sra_modify_expr): Increment sra_stats.exprs.
14596         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
14597         (sra_modify_assign): Increment sra_stats.exprs,
14598         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
14599         (perform_intra_sra): Update statistics counters.
14600         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
14601
14602 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
14603
14604         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
14605         (arm_scalar_mode_supported_p): New function.
14606
14607 2009-06-18  Paul Brook  <paul@codesourcery.com>
14608             Sandra Loosemore  <sandra@codesourcery.com>
14609
14610         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
14611         (__extendhfsf2, __truncsfhf2): Define.
14612         * config/arm/fp16.c: New file.
14613         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
14614         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
14615
14616 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
14617
14618         * doc/extend.texi (Half-Precision): New section.
14619         * doc/invoke.texi (Option Summary): List -mfp16-format.
14620         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
14621         * config/arm/arm.opt (mfp16-format=): New.
14622         * config/arm/arm.c: Include intl.h.
14623         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
14624         (TARGET_INVALID_RETURN_TYPE): Redefine.
14625         (TARGET_PROMOTED_TYPE): Redefine.
14626         (TARGET_CONVERT_TO_TYPE): Redefine.
14627         (arm_fp16_format): Define.
14628         (all_fpus): Add entry for neon-fp16.
14629         (fp_model_for_fpu): Likewise.
14630         (struct fp16_format): Declare.
14631         (all_fp16_formats): Define.
14632         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
14633         functions.
14634         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
14635         and no ldrh.
14636         (arm_legitimate_index_p): Treat HFmode like HImode.
14637         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
14638         (coproc_secondary_reload_class): Special-case HFmode.
14639         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
14640         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
14641         (arm_init_fp16_builtins): New.
14642         (arm_init_builtins): Call it.
14643         (arm_invalid_parameter_type): New.
14644         (arm_invalid_return_type): New.
14645         (arm_promoted_type): New.
14646         (arm_convert_to_type).
14647         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
14648         format.
14649         (arm_emit_fp16_const): New function.
14650         (arm_mangle_type): Mangle __fp16 as "Dh".
14651         * config/arm/arm.h (TARGET_VFPD32): Make it know about
14652         FPUTYPE_NEON_FP16.
14653         (TARGET_NEON_FP16): New.
14654         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
14655         (enum fputype): Add FPUTYPE_NEON_FP16.
14656         (enum arm_fp16_format_type): Declare.
14657         (arm_fp16_format): Declare.
14658         (LARGEST_EXPONENT_IS_NORMAL): Define.
14659         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
14660         * config/arm/arm-modes.def (HFmode): Define.
14661         * config/arm/vfp.md (*movhf_vfp): New.
14662         (extendhfsf2): New.
14663         (truncsfhf2): New.
14664         * config/arm/arm.md (fpu): Add neon_fp16.
14665         (floatsihf2, floatdihf2): New.
14666         (fix_trunchfsi2, fix_trunchfdi2): New.
14667         (truncdfhf2): New.
14668         (extendhfdf2): New.
14669         (movhf): New.
14670         (*arm32_movhf): New.
14671         (*thumb1_movhf): New.
14672         (consttable_2): Add check for HFmode constants.
14673         (consttable_4): Handle HFmode constants.
14674
14675 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
14676
14677         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
14678
14679 2009-06-17  Olivier Hainque  <hainque@adacore.com>
14680
14681         * collect2.c (main): Use CONST_CAST2 to perform char ** to
14682         const char ** conversion in AIX specific section.
14683
14684 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
14685
14686         * config/i386/i386.c (ix86_special_builtin_type): Remove
14687         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
14688         (bdesc_special_args): Updated.
14689         (ix86_init_mmx_sse_builtins): Likewise.
14690         (ix86_expand_special_args_builtin): Likewise.
14691
14692 2009-06-17  Richard Henderson  <rth@redhat.com>
14693
14694         * tree-pretty-print.c (maybe_dump_asm_name): New.
14695         (dump_decl_name): Use it.
14696         (PRINT_FUNCTION_NAME): Merge into...
14697         (dump_function_name): ... here.  Use maybe_dump_asm_name.
14698
14699 2009-06-17  Cary Coutant  <ccoutant@google.com>
14700
14701         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
14702         Change caller.
14703         * debug.c (struct gcc_debug_hooks): Change placeholder for
14704         source_line hook.
14705         (debug_nothing_int_charstar_int): Replaced by...
14706         (debug_nothing_int_charstar_int_bool): ...this.
14707         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
14708         source_line prototype.
14709         (debug_nothing_int_charstar_int): Replaced by...
14710         (debug_nothing_int_charstar_int_bool): ...this.
14711         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
14712         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
14713         Output is_stmt operand when necessary.
14714         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
14715         (notice_source_line): Add is_stmt parameter.
14716         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
14717         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
14718         Change callers.
14719         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
14720         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
14721
14722 2009-06-17  Ian Lance Taylor  <iant@google.com>
14723
14724         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
14725         Change all uses.
14726         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
14727         call uses.
14728
14729 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
14730
14731         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
14732         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
14733         tree_strip_sign_nop_conversions and
14734         tree_ssa_strip_useless_type_conversions rather than stripping
14735         the operations here.
14736         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
14737         Declare them.
14738         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
14739         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
14740         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
14741         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
14742         functions.
14743
14744 2009-06-17  Michael Eager  <eager@eagercon.com>
14745
14746         * config/rs6000/constraints.md (register_constraint "d"): New.
14747         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
14748         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
14749         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
14750         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
14751         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
14752         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
14753         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
14754         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
14755         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
14756         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
14757         __fctiwz): Same.
14758         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
14759         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
14760         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
14761         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
14762         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
14763         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
14764         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
14765         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
14766         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
14767         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
14768         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
14769         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
14770         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
14771         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
14772
14773 2009-06-16  Ian Lance Taylor  <iant@google.com>
14774
14775         * profile.c (total_num_never_executed): Don't define.
14776         (compute_branch_probabilities): Don't count or print
14777         num_never_executed.
14778         (init_branch_prob): Don't set total_num_never_executed.
14779         (end_branch_prob): Don't print total_num_never_executed.
14780
14781 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
14782
14783         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
14784
14785 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
14786
14787         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
14788         (nabstd2_fpr): Same.
14789
14790 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
14791
14792         * expr.c (expand_assignment): Change complex type check.
14793
14794 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
14795
14796         * doc/plugins.texi (Building GCC plugins): Added new section.
14797
14798 2009-06-17  Ian Lance Taylor  <iant@google.com>
14799
14800         * c-pch.c (get_ident): Don't set size of templ array.
14801         (pch_init): Don't set size of partial_pch array.
14802
14803         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
14804         string constant to intialize an array whose size is the length of
14805         the string.
14806
14807 2009-06-17  Richard Guenther  <rguenther@suse.de>
14808
14809         PR tree-optimization/40389
14810         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
14811         to addressable types.
14812         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
14813
14814 2009-06-17  Richard Guenther  <rguenther@suse.de>
14815
14816         PR middle-end/40460
14817         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
14818         if there is no evolution of left in the loop bail out.
14819         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
14820         chrec_fold_multiply.
14821
14822 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
14823             Janis Johnson  <janis187@us.ibm.com>
14824
14825         PR target/39254
14826         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
14827         for the symbol ref of a constant that is the source of a move
14828         - nor for any other not-obvious-label-ref constants.
14829
14830 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
14831
14832         * plugin.c (position_pass): Skip newly inserted pass during list
14833         traversal to avoid repeated insertion.
14834
14835 2009-06-16  Ian Lance Taylor  <iant@google.com>
14836
14837         * vec.h (VEC_stack_alloc): Define different version if
14838         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
14839         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
14840         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
14841         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
14842
14843 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
14844
14845         * config.gcc (extra_headers): Add ia32intrin.h for x86.
14846
14847         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
14848         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
14849         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
14850         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
14851         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
14852         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
14853         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
14854         (bdesc_special_args): Add __builtin_ia32_rdtsc and
14855         __builtin_ia32_rdtscp.
14856         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
14857         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
14858         and __builtin_ia32_rorhi.
14859         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
14860         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
14861         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
14862         (ix86_expand_args_builtin): Likewise.
14863         (ix86_expand_special_args_builtin): Likewise.
14864
14865         * config/i386/i386.md (UNSPECV_RDTSCP): New.
14866         (UNSPECV_RDTSC): Likewise.
14867         (UNSPECV_RDPMC): Likewise.
14868         (*bsr): Renamed to ...
14869         (bsr): This
14870         (*bsr_rex64): Renamed to ...
14871         (bsr_rex64): This.
14872         (rdpmc): New.
14873         (*rdpmc): Likewise.
14874         (*rdpmc_rex64): Likewise.
14875         (rdtsc): Likewise.
14876         (*rdtsc): Likewise.
14877         (*rdtsc_rex64): Likewise.
14878         (rdtscp): Likewise.
14879         (*rdtscp): Likewise.
14880         (*rdtscp_rex64): Likewise.
14881
14882         * config/i386/ia32intrin.h: New.
14883
14884         * config/i386/x86intrin.h: Include <ia32intrin.h>.
14885
14886 2009-06-16  Ian Lance Taylor  <iant@google.com>
14887
14888         * ira-build.c (copy_info_to_removed_store_destinations):
14889         Initialize parent_a.
14890
14891 2009-06-16  Ian Lance Taylor  <iant@google.com>
14892
14893         * c-decl.c (grokdeclarator): Change size_varies to bool.
14894
14895 2009-06-16  Ian Lance Taylor  <iant@google.com>
14896
14897         * sel-sched.c: Make forward declarations of move_op_hooks and
14898         fur_hooks explicitly extern.
14899
14900 2009-06-16  Ian Lance Taylor  <iant@google.com>
14901
14902         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
14903         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
14904
14905 2009-06-16  Ian Lance Taylor  <iant@google.com>
14906
14907         * resource.c (mark_referenced_resources): Change
14908         include_delayed_effects parameter to bool.  Change all callers.
14909         (mark_end_of_function_resources): Likewise.
14910         * reorg.c (insn_references_resource_p): Likewise.
14911         (insn_sets_resource_p): Likewise.
14912         * resource.h (mark_referenced_resources): Update declaration.
14913         (mark_end_of_function_resources): Update declaration.
14914
14915 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
14916
14917         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
14918
14919 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
14920
14921         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
14922         GCC can bootstrap on AIX with GNU Binutils 2.20.
14923
14924 2009-06-16  Ian Lance Taylor  <iant@google.com>
14925
14926         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
14927
14928 2009-06-16  Ian Lance Taylor  <iant@google.com>
14929
14930         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
14931         inline, not extern inline.
14932         (exact_log2): Likewise.
14933         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
14934         test CLZ_HWI.
14935         (exact_log2): Likewise, but don't test CTZ_HWI.
14936
14937 2009-06-16  Ian Lance Taylor  <iant@google.com>
14938
14939         * bitmap.c (bitmap_clear): Don't declare as inline.
14940         * gimple.c (gimplify_assign): Likewise.
14941         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
14942         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
14943         (sched_scan_info): Remove duplicate definition.
14944
14945 2009-06-16  Ian Lance Taylor  <iant@google.com>
14946
14947         * c-common.c (skip_evaluation): Don't define.
14948         (c_inhibit_evaluation_warnings): Define global variable.
14949         (overflow_warning): Check c_inhibit_evaluation_warnings rather
14950         than skip_evaluation.
14951         (convert_and_check, warn_for_div_by_zero): Likewise.
14952         * c-common.h (skip_evaluation): Don't declare.
14953         (c_inhibit_evaluation_warnings): Declare.
14954         * c-parser.c (c_parser_typeof_specifier): Set
14955         c_inhibit_evaluation_warnings rather than skip_evaluation.
14956         (c_parser_conditional_expression): Likewise.
14957         (c_parser_binary_expression): Likewise.
14958         (c_parser_sizeof_expression): Likewise.
14959         (c_parser_alignof_expression): Likewise.
14960         * c-typeck.c (build_indirect_ref): Check
14961         c_inhibit_evaluation_warnings rather than skip_evaluation.
14962         (build_conditional_expr, build_binary_op): Likewise.
14963
14964 2009-06-16  Richard Guenther  <rguenther@suse.de>
14965
14966         * tree-ssa-alias.c (is_escape_site): Remove.
14967         * tree-ssa-alias.h (enum escape_type): Remove.
14968         (is_escape_site): Likewise.
14969         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
14970         via casts and asms without deferring to is_escape_site.
14971
14972 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
14973
14974         PR middle-end/40446
14975         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
14976         use gen_lowpart if op0 has complex mode.
14977
14978 2009-06-16  Richard Guenther  <rguenther@suse.de>
14979
14980         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
14981         variables add them to ESCAPED.
14982         (find_func_aliases): Do not make all indirectly stored values escaped.
14983
14984 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
14985
14986         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
14987         make_decl_one_only.
14988
14989 2009-06-16  Martin Jambor  <mjambor@suse.cz>
14990
14991         PR tree-optimization/40432
14992         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
14993         check whether we need to force gimple register operand.
14994
14995 2009-06-16  Martin Jambor  <mjambor@suse.cz>
14996
14997         PR tree-optimization/40413
14998         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
14999         build_ref_for_offset.
15000         (propagate_subacesses_accross_link): Fix a typo in a comment.
15001
15002 2009-06-16  Ira Rosen  <irar@il.ibm.com>
15003
15004         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
15005         with additional parameter.
15006         * tree-vectorizer.h (enum vect_def_type): Add new value
15007         vect_nested_cycle.
15008         (enum vect_relevant): Add comments.
15009         (vect_is_simple_reduction): Add new argument.
15010         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
15011         Detect nested cycles.
15012         (vect_is_simple_reduction): Update documentation, add an argument to
15013         distinguish inner-loop reduction from nested cycle, detect nested
15014         cycles, fix printings and indentation, don't swap operands in case
15015         of nested cycle.
15016         (get_initial_def_for_reduction): Handle subtraction.
15017         (vect_create_epilog_for_reduction): Add new argument to specify
15018         reduction variable.
15019         (vect_finalize_reduction): Handle subtraction, fix comments.
15020         (vectorizable_reduction): Handle nested cycles. In case of nested
15021         cycle keep track of the reduction variable position. Call
15022         vect_is_simple_reduction with additional parameter. Use original
15023         statement code in reduction epilogue for nested cycle. Call
15024         vect_create_epilog_for_reduction with additional parameter.
15025         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
15026         inner-loop vectorization.
15027         (vect_recog_widen_sum_pattern): Likewise.
15028         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
15029         and reductions.
15030         (vect_mark_stmts_to_be_vectorized): Likewise.
15031         (vect_get_vec_def_for_operand): Handle nested cycles.
15032
15033 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15034
15035         * doc/invoke.texi (Debugging Options): Fix option index entries
15036         for -fdump-statistics, -frandom-seed add entries for
15037         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
15038         (FRV Options): Fix entries for -mTLS, -mtls.
15039         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
15040         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
15041         (M68hc1x Options): Fix @itemx for -mnominmax.
15042         (MCore Options): Fix entry for -mno-lsim.
15043         (MMIX Options): Fix entry for -mabi=mmixware.
15044         (PDP-11 Options): Fix entry for -mbcopy-builtin.
15045
15046 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
15047
15048         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
15049         Mention the plugin mode of gengtype.
15050         * doc/gty.texi (Source Files Containing Type Information): Likewise.
15051         * gengtype.c: Updated copyright.
15052         (plugin_files, nb_plugin_files) Added new static variables.
15053         (measure_input_list) Care about plugin_files.
15054         (write_rtx_next): Added early return in plugin mode.
15055         (create_file): Updated copyright year in generated file. Added
15056         asserts.
15057         (oprintf): Added early return if NULL outf.
15058         (get_output_file_with_visibility): Care of plugin_files.
15059         (get_output_file_name): May return null.
15060         (write_local): Added early return.
15061         (put_mangled_filename): Ditto.
15062         (finish_root_table): Added check for base_files.
15063         (write_roots): Care about null when plugins.
15064         (main): Added plugin mode.
15065
15066 2009-06-15  Ian Lance Taylor  <iant@google.com>
15067
15068         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
15069         * gcov.c (read_count_file): Add braces around variables declared
15070         before label.
15071
15072         * c.opt (Wjump-misses-init): New warning.
15073         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
15074         -Wall and -Wc++-compat if not already set.
15075         (c_common_post_options): Clear warn_jump_misses_init if it was not
15076         set.
15077         * c-decl.c (struct c_binding): Change type field to a union with
15078         new label field.  Make it the first field in the struct.  Update
15079         references to type to use u.type instead.
15080         (struct c_spot_bindings): Define.
15081         (struct c_goto_bindings): Define.
15082         (c_goto_bindings_p): Define, along with VECs.
15083         (struct c_label_vars): Define.
15084         (struct c_scope): Add has_label_bindings field.
15085         (bind_label, set_spot_bindings): New static functions.
15086         (decl_jump_unsafe, update_spot_bindings): New static functions.
15087         (update_label_decls): New static function.
15088         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
15089         Update binding u.label field to shadowed field.
15090         (c_binding_start_stmt_expr): New function.
15091         (c_binding_end_stmt_expr): New function.
15092         (pushdecl): Don't call c_begin_vm_scope.
15093         (make_label): Add defining and p_label_vars parameters.  Change
15094         all callers.
15095         (lookup_label): Correct test for whether a label has not yet been
15096         defined.  Call bind_label rather than bind.
15097         (warn_about_goto): New static function.
15098         (lookup_label_for_goto): New function.
15099         (declare_label): Call bind_label rather than bind.
15100         (check_earlier_gotos): New static function.
15101         (define_label): Don't give errors about jumping into statement
15102         expressions or scopes of variably modified types.  Call
15103         set_spot_bindings and check_earlier_gotos.  Call bind_label
15104         instead of bind.  Don't set label_context_stack_se or
15105         label_context_stack_vm.
15106         (c_get_switch_bindings): New function.
15107         (c_release_switch_bindings): New function.
15108         (c_check_switch_jump_warnings): New function.
15109         (start_function): Don't set label_context_stack_se or
15110         label_context_stack_vm.
15111         (finish_function): Likewise.
15112         * c-typeck.c (label_context_stack_se): Don't define.
15113         (label_context_stack_vm): Don't define.
15114         (c_finish_goto_label): Call lookup_label_for_goto rather than
15115         lookup_label.  Don't give errors about jumping into a statement
15116         expression or the scope of a variably modified type.  Don't set
15117         label_context_stack_se or label_context_stack_vm.
15118         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
15119         fields.  Add bindings field.
15120         (c_start_case): Don't set deleted fields.  Set bindings field.
15121         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
15122         or blocked_vm.  Call c_check_switch_jump_warnings.
15123         (c_finish_case): Don't test blocked_stmt_expr field.  Call
15124         c_release_switch_bindings.
15125         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
15126         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
15127         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
15128         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
15129         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
15130         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
15131         (c_begin_vm_scope, c_end_vm_scope): Don't define.
15132         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
15133         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
15134         (C_DECL_UNJUMPABLE_VM): Don't define.
15135         (C_DECL_UNDEFINABLE_VM): Don't define.
15136         (struct c_label_list): Don't define.
15137         (struct c_label_context_se): Don't define.
15138         (struct c_label_context_vm): Don't define.
15139         (struct c_spot_bindings): Declare.
15140         (c_bindings_start_stmt_expr): Declare.
15141         (c_bindings_end_stmt_expr): Declare.
15142         (lookup_label_for_goto): Declare.
15143         (c_get_switch_bindings, c_release_switch_bindings): Declare.
15144         (c_check_switch_jump_warnings): Declare.
15145         (label_context_stack_se, label_context_stack_vm): Don't declare.
15146         (c_finish_goto_label): Update declaration.
15147         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
15148         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
15149         (Warning Options): Document -Wjump-misses-init.
15150
15151 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
15152
15153         * tree-object-size.c (addr_object_size): Fix a pasto in the last
15154         change.
15155
15156 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
15157
15158         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
15159
15160 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
15161
15162         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
15163
15164 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
15165
15166         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
15167
15168 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
15169
15170         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
15171         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15172         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
15173         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
15174         * dwarf2asm.c (dw2_force_const_mem): Update call to
15175         make_decl_one_only.
15176         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
15177         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
15178         * langhooks.c (lhd_comdat_group): Remove.
15179         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
15180         * tree.h (DECL_COMDAT_GROUP): New.
15181         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
15182         (tree_decl_with_vis): Add comdat_group. Remove one_only.
15183         (make_decl_one_only): Change signature.
15184         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
15185         make_decl_one_only.
15186         (make_decl_one_only): Change signature.
15187         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
15188
15189 2009-06-15  Richard Guenther  <rguenther@suse.de>
15190
15191         PR middle-end/40439
15192         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
15193
15194 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15195
15196         * tree-ssa-math-opts.c: Remove extra divide.
15197
15198 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15199
15200         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
15201
15202 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15203
15204         * passes.c: Add bswap pass.
15205         * tree-pass.h: Add pass_optimize_bswap declaration.
15206         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
15207         Include rtl.h, expr.h and optabs.h for optab_handler check.
15208         (struct symbolic_number, pass_optimize_bswap): New definition.
15209         (do_shift_rotate, verify_symbolic_number_p): New functions.
15210         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
15211         (gate_optimize_bswap): New function.
15212         * tree.c (widest_int_cst_value): New function.
15213         * tree.h (widest_int_cst_value): Prototype added.
15214
15215 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
15216
15217         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
15218         REG_EQUAL/REG_EQUIV notes.
15219
15220 2009-06-14  Richard Guenther  <rguenther@suse.de>
15221
15222         PR middle-end/40389
15223         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
15224         has its address taken if NRV was applied and it is addressable.
15225         * tree-ssa-structalias.c (get_constraint_for_address_of): New
15226         function split out from ...
15227         (get_constraint_for_1): ... here.
15228         (handle_rhs_call): Use it to mark the return slot escaped if
15229         it is addressable and NRV was applied.
15230
15231 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
15232
15233         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
15234         Change first argument type to location_t.
15235         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
15236         Do not set input_location.
15237         Use loc instead of input_location throughout.
15238
15239 2009-06-13  Richard Guenther  <rguenther@suse.de>
15240
15241         PR tree-optimization/40421
15242         * tree-predcom.c (should_unroll_loop_p): Remove.
15243         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
15244
15245 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
15246
15247         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15248         Add location argument.
15249
15250 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
15251
15252         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
15253         build_decl.
15254         * config/s390/s390.c (s390_build_builtin_va_list): Same.
15255         (s390_gimplify_va_arg): Pass location to create_artificial_label.
15256         * config/spu/spu-protos.h: Add location to
15257         spu_resolve_overloaded_builtin.
15258         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
15259         spu_build_builtin_va_list.
15260         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
15261         argument.  Pass location to build_function_call_vec.
15262         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
15263         build_decl.
15264         (emit_fpu_switch): Same.
15265         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
15266         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
15267         to build_decl and create_artificial_label.
15268         (xtensa_gimplify_va_arg_expr): Same.
15269         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
15270         (xstormy16_gimplify_va_arg_expr): Same.
15271         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
15272         * config/arm/arm.c (arm_build_builtin_va_list): Same.
15273         * config/mips/mips.c (mips_build_builtin_va_list): Same.
15274         (mips16_build_function_stub): Same.
15275         (mips16_build_call_stub): Same.
15276
15277 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
15278
15279         PR target/40327
15280         * arm/constraints.md (Pa, Pb): New constraints.
15281         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a
15282         split pattern to deal with them.
15283
15284 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
15285
15286         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
15287         fix index entry for -Xpreprocessor.
15288
15289 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
15290
15291         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15292         Add location argument to build_decl call.
15293         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
15294         (rs6000_init_builtins): Same.
15295         (spe_init_builtins): Same.
15296         (rs6000_gimplify_va_arg): Add location argument to
15297         create_artificial_label call.
15298
15299 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
15300
15301         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
15302         * combine-stack-adj.c (pass_stack_adjustments): Use it.
15303         * Makefile.in: Fix GGC dependency for gcse.o.
15304
15305 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
15306
15307         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
15308         * gimple-pretty-print.c (dump_gimple_stmt): Same.
15309         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
15310         created.
15311         * c-parser.c (c_parser_binary_expression): Use current column while
15312         building binary operations.
15313         * common.opt (fshow-column): Enable by default.
15314         * tree-vrp.c (check_array_ref): Use warning_at.
15315         (check_array_bounds): Use location from call back if expr has no
15316         location.
15317         * tree.h: Add location argument to maybe_fold_*.
15318         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
15319         (maybe_fold_offset_to_array_ref): Add location argument and use it.
15320         (maybe_fold_offset_to_component_ref): Same.
15321         (maybe_fold_offset_to_reference): Same.
15322         (maybe_fold_offset_to_address): Same.
15323         (maybe_fold_stmt_indirect): Same.
15324         (maybe_fold_stmt_addition): Same.
15325         (fold_stmt_r): Pass location to maybe_fold_*.
15326         (fold_gimple_assign): Same.
15327         * c-tree.h: Add location argument to finish_decl,
15328         default_function_array_conversion, store_init_value.
15329         * c-decl.c (define_label): Use error_at.
15330         (c_make_fname_decl): Pass location to finish_decl.
15331         (finish_decl): New location argument.
15332         (build_compound_literal): Pass location to store_init_value.
15333         (grokdeclarator): Pass location to finish_decl.
15334         (grokfield): Same.
15335         * c-typeck.c (array_to_pointer_conversion): New location argument.
15336         (function_to_pointer_conversion): Same.
15337         (default_function_array_conversion): Same.
15338         (parser_build_unary_op): Pass location to overflow_warning.
15339         (parser_build_binary_op): Same.  Use warning_at.
15340         (build_unary_op): Pass location to array_to_pointer_conversion.
15341         (build_c_cast): Pass location to digest_init.
15342         (build_modify_expr): New location argument.
15343         (convert_for_assignment): Same.
15344         (store_init_value): Same.
15345         (digest_init): Same.
15346         (output_init_element): Pass location to digest_init and
15347         array_to_pointer_conversion.
15348         (c_finish_return): Pass location to convert_for_assignment.
15349         * gimplify.c (gimplify_conversion): Pass location to
15350         maybe_fold_offset_to_address.
15351         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
15352         to maybe_fold_stmt_addition.
15353         * c-omp.c (c_finish_omp_atomic): Pass new location to
15354         build_modify_expr.
15355         (c_finish_omp_for): Same.
15356         * c-common.c (overflow_warning): New argument.
15357         * c-common.h: New argument to build_modify_expr, overflow_warning.
15358         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
15359         finish_decl.
15360         (c_parser_initializer): Pass location to
15361         default_function_array_conversion.
15362         (c_parser_initelt): Same.
15363         (c_parser_initval): Same.
15364         (c_parser_asm_operands): Same.
15365         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
15366         (c_parser_conditional_expression): Same.
15367         (c_parser_binary_expression): Add location info to stack.  Use it.
15368         (c_parser_unary_expression): Pass location to
15369         default_function_array_conversion, parser_build_unary_op,
15370         build_indirect_ref, c_parser_postfix_expression_after_primary.
15371         (c_parser_postfix_expression_after_primary): New location argument.
15372         Use it.
15373         (c_parser_expression_conv): Pass location to
15374         default_function_array_conversion.
15375         (c_parser_expr_list): Same.
15376         (c_parser_omp_atomic): Same.
15377         (c_parser_omp_for_loop): Same.
15378         * c-tree.h (struct c_declarator): Add comment to id_loc.
15379         (build_array_declarator): New argument.
15380         * c-decl.c (build_array_declarator): Add location argument.
15381         (grokdeclarator): Set id_loc for cdk_array.
15382         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
15383         build_array_declarator.
15384         * tree.c (build_omp_clause): Add location argument.
15385         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
15386         (OMP_CLAUSE_LOCATION): New macro.
15387         (struct tree_omp_clause): Add location field.
15388         (build_omp_clause): Add argument.
15389         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
15390         build_omp_clause.
15391         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
15392         (cp_parser_omp_clause_collapse): Same.
15393         (cp_parser_omp_clause_default): Same.
15394         (cp_parser_omp_clause_if): Same.
15395         (cp_parser_omp_clause_nowait): Same.
15396         (cp_parser_omp_clause_num_threads): Same.
15397         (cp_parser_omp_clause_ordered): Same.
15398         (cp_parser_omp_clause_schedule): Same.
15399         (cp_parser_omp_clause_untied): Same.
15400         (cp_parser_omp_for_loop): Same.
15401         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
15402         * c-tree.h (c_start_case): Add location argument.
15403         (c_process_expr_stmt): Same.
15404         (c_finish_goto_*): Same.
15405         * tree-parloops.c (initialize_reductions): Pass location to
15406         build_omp_clause.
15407         (create_parallel_loop): Same.
15408         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
15409         (gfc_trans_omp_reduction_list): Same.
15410         (gfc_trans_omp_clauses): Same.
15411         (gfc_trans_omp_do): Same.
15412         * c-typeck.c (c_finish_goto_label): Same.
15413         (c_finish_goto_ptr): New location argument.
15414         (c_start_case): Same.
15415         (emit_side_effect_warnings): Same.
15416         (c_process_expr_stmt): Same.
15417         (c_finish_stmt_expr): Same.
15418         (c_finish_omp_clauses): Use error_at instead of error.
15419         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
15420         build_omp_clause.
15421         * c-omp.c (c_split_parallel_clauses): New location argument.
15422         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
15423         to build_omp_clause.
15424         (convert_local_reference_stmt): Same.
15425         (convert_gimple_call): Same.
15426         * c-common.h (c_split_parallel_clauses): New argument.
15427         * c-parser.c (c_parser_statement_after_labels): Pass location to
15428         c_finish_goto_label.
15429         (c_parser_switch_statement): Pass location to c_start_case.
15430         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
15431         and c_process_expr_stmt.
15432         (c_parser_omp_variable_list): Add location argument.
15433         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
15434         (c_parser_omp_clause_default): Same.
15435         (c_parser_omp_clause_if): Same.
15436         (c_parser_omp_clause_num_threads): Same.
15437         (-c_parser_omp_clause_ordered): Same.
15438         (c_parser_omp_clause_reduction): Pass location to
15439         c_parser_omp_variable_list.
15440         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
15441         (c_parser_omp_clause_untied): Same.
15442         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
15443         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
15444
15445         * c-tree.h (check_for_loop_decls, undeclared_variable,
15446         build_component_ref, build_array_ref, build_external_ref,
15447         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
15448         build_conditional_expr, build_compound_expr, c_cast_expr,
15449         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
15450         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
15451         argument.
15452         * c-semantics.c (build_stmt): Same.
15453         (build_case_label): Same.
15454         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
15455         (undeclared_variable): New argument.
15456         (make_label): Same.
15457         (lookup_label): Pass location on down.
15458         (define_label): Same.
15459         (finish_decl): Same.
15460         (build_compound_literal): Same.
15461         (finish_struct): Same.
15462         (finish_function): Do not set location here.
15463         (check_for_loop_decls): New argument.
15464         * tree.c (save_expr): Set location.
15465         (build_empty_stmt): New argument.
15466         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
15467         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
15468         * builtins.c (gimplify_va_arg_expr): Use locations.
15469         (expand_builtin_sync_operation): Same.
15470         * c-typeck.c (build_component_ref): New argument.
15471         (build_array_ref): Same.
15472         (build_external_ref): Same.
15473         (c_expr_sizeof_expr): Same.
15474         (c_expr_sizeof_type): Same.
15475         (parser_build_unary_op): Same.
15476         (build_conditional_expr): Same.
15477         (build_compound_expr): Pass location on down.
15478         (build_compound_expr): New argument.
15479         (build_c_cast): Same.
15480         (c_cast_expr): Same.
15481         (build_asm_expr): Same.
15482         (c_finish_return): Same.
15483         (c_process_expr_stmt): Pass location on down.
15484         (c_finish_stmt_expr): New argument.
15485         (push_clenaup): Same.
15486         (c_finish_omp_parallel): Same.
15487         (c_finish_omp_task): Same.
15488         * gimplify.c (gimplify_call_expr): Pass location on down.
15489         * c-omp.c (c_finish_omp_master): New argument.
15490         (c_finish_omp_critical): Same.
15491         (c_finish_omp_ordered): Same.
15492         (c_finish_omp_barrier): Same.
15493         (-c_finish_omp_taskwait): Same.
15494         (c_finish_omp_atomic): Same.
15495         (c_finish_omp_flush): Same.
15496         * tree-inline.c (copy_tree_body_r): Pass location on down.
15497         (inline_forbidden_p): Remove use of input_location.
15498         * c-gimplify.c (c_build_bind_expr): New argument.
15499         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
15500         (c_sizeof_or_alignof_type): New argument.
15501         (c_alignof_expr): Same.
15502         (build_va_arg): Same.
15503         (c_add_case_label): Same.
15504         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
15505         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
15506         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
15507         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
15508         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
15509         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
15510         New argument.
15511         * stub-objc.c (objc_build_selector_expr): Same.
15512         (objc_build_throw_stmt): Same.
15513         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
15514         (c_parser_initelt): Same.
15515         (c_parser_compound_statement): Same.
15516         (c_parser_compound_statement_nostart): Same.
15517         (c_parser_label): Same.
15518         (c_parser_statement_after_labels): Same.
15519         (c_parser_if_body): Same.
15520         (c_parser_else_body): Same.
15521         (c_parser_if_statement): Same.
15522         (c_parser_switch_statement): Same.
15523         (c_parser_while_statement): Same.
15524         (c_parser_do_statement): Same.
15525         (c_parser_for_statement): Same.
15526         (c_parser_asm_statement): Same.
15527         (c_parser_conditional_expression): Same.
15528         (c_parser_binary_expression): Same.
15529         (c_parser_cast_expression): Same.
15530         (c_parser_unary_expression): Same.
15531         (c_parser_sizeof_expression): Same.
15532         (c_parser_alignof_expression): Same.
15533         (c_parser_postfix_expression): Same.
15534         (c_parser_expression): Same.
15535         (c_parser_objc_receiver): Same.
15536         (c_parser_omp_variable_list): Same.
15537         (c_parser_omp_structured_block): Same.
15538         (c_parser_omp_atomic): New argument.
15539         (c_parser_omp_barrier): Same.
15540         (c_parser_omp_critical): Same.
15541         (c_parser_omp_flush): Pass location on down.
15542         (c_parser_omp_for_loop): New argument.
15543         (c_parser_omp_for): Same.
15544         (c_parser_omp_master): Same.
15545         (c_parser_omp_ordered): Same.
15546         (c_parser_omp_sections_scope): Same.
15547         (c_parser_omp_sections): Same.
15548         (c_parser_omp_parallel): Same.
15549         (c_parser_omp_single): Same.
15550         (c_parser_omp_task): Same.
15551         (c_parser_omp_taskwait): Pass location on down.
15552         (c_parser_omp_construct): Same.
15553         (c_parser_omp_threadprivate): Same.
15554         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
15555         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
15556         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
15557         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
15558         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
15559         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
15560         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
15561         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
15562         config/i386/i386.c, stmt.c:
15563         Add location argument to the following function definitions and/or
15564         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
15565         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
15566         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
15567         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
15568         do_case, c_finish_bc_stmt, build_compound_literal,
15569         build_function_call.
15570         * c-decl.c (build_compound_literal): Add location argument.
15571         Make all diagnostic calls use location.
15572         (start_struct): Same.
15573         (finish_struct): Same.
15574         (start_enum): Same.
15575         (build_enumerator): Same.
15576         (start_function): Same.
15577         (grokdeclarator): Make all diagnostic calls use location.
15578         (store_parm_decls_oldstyle): Same.
15579         * c-typeck.c (build_function_call): Add location argument.
15580         Make all diagnostic calls use location.
15581         (do_case): Same.
15582         (c_finish_bc_stmt): Same.
15583         * tree-nested.c (get_trampoline_type): Add argument.
15584         Pass location to build_decl.
15585         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
15586         * rtl.h (RTL_LOCATION): New.
15587         * c-common.c (c_add_case_label): Add location argument.
15588         Make all diagnostic calls use location.
15589         * c-common.h: Add location argument to make_fname_decl, do_case,
15590         c_add_case_label, build_function_call, resolve_overloaded_builtin.
15591         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
15592         Set it appropriately for every case.  Pass enum_loc to start_enum
15593         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
15594         parser_xref_tag.
15595         (c_parser_struct_or_union_specifier): Save location.  Use it for
15596         start_struct, finish_struct, and parser_xref_tag.
15597
15598 2009-06-12  Ian Lance Taylor  <iant@google.com>
15599
15600         * fold-const.c (fold_unary): Rename local variable and to and_expr.
15601
15602         * c-opts.c (c_common_handle_option): For -Wc++-compat set
15603         cpp_opts->warn_cxx_operator_names.
15604
15605 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15606
15607         PR tree-opt/38865
15608         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
15609         is returns NULL and OP is a VCE, look through the VCE.
15610
15611 2009-06-12  Ian Lance Taylor  <iant@google.com>
15612
15613         PR bootstrap/40430
15614         * collect2.c (main): Use CONST_CAST2 in code inside #if
15615         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
15616
15617 2009-06-12  Joey Ye  <joey.ye@intel.com>
15618
15619         PR middle-end/39146
15620         * cfgexpand.c (get_decl_align_unit): Update
15621         max_used_stack_slot_alignment with align instead of
15622         stack_alignment_needed.
15623
15624         * function.c (assign_stack_local_1): Update
15625         max_used_stack_slot_alignment with alignment_in_bits instead
15626         of stack_alignment_needed.
15627         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
15628         here.
15629
15630 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
15631
15632         * dwarf2out.c (last_var_location_insn): New variable.
15633         (dwarf2out_end_epilogue): Clear last_var_location_insn.
15634         (dwarf2out_var_location): Don't record anything after last real
15635         insn.  Only change labels if there were any real instructions
15636         in between last note and this one, or if changed sections.
15637
15638 2009-06-11  Richard Henderson  <rth@redhat.com>
15639
15640         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
15641         note when storing the frame pointer in a register.
15642         (FRP): Don't redefine to nothing for epilogue.
15643         (alpha_expand_epilogue): Mark register and sp restores.
15644         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
15645
15646         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
15647         when gen_lowpart is needed.
15648
15649 2009-06-11  Richard Henderson  <rth@redhat.com>
15650
15651         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
15652
15653         * dwarf2out.c (need_data_align_sf_opcode): New.
15654         (div_data_align): Move earlier.
15655         (def_cfa_1, reg_save): Use it.
15656
15657 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
15658
15659         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
15660         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
15661         (ix86_handle_option): Handle OPT_mcrc32.
15662         (ix86_target_string): Add -mcrc32.
15663         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
15664
15665         * config/i386/i386.h (TARGET_CRC32): New.
15666
15667         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
15668         (sse4_2_crc32di): Likewise.
15669
15670         * config/i386/i386.opt (mcrc32): New.
15671
15672         * doc/invoke.texi: Document -mcrc32.
15673
15674 2009-06-11  Richard Henderson  <rth@redhat.com>
15675
15676         * common.opt (gdwarf-): Accept a version number.
15677         * doc/invoke.texi (gdwarf-): Update docs.
15678         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
15679         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
15680         version level, and record it.
15681
15682         * dwarf2.h (DW_CIE_VERSION): Remove.
15683         * dwarf2out.c (DWARF_VERSION): Remove.
15684         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
15685         (output_call_frame_info): Use CIE version 3 for dwarf3,
15686         or if the return register column is out of range for version 1.
15687         (dwarf_stack_op_name): Add all dwarf3 values.
15688         (DEBUG_PUBTYPES_SECTION): New.
15689         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
15690         encoding change for dwarf3.
15691         (output_die) [dw_val_class_die_ref]: Likewise.
15692         (output_compilation_unit_header): Emit correct version for dwarf3.
15693         (output_line_info): Likewise.
15694         (output_pubnames): Update for DWARF_VERSION removal.
15695         (output_aranges): Likewise.
15696         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
15697         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
15698         (dwarf2out_finish): Likewise.
15699
15700 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
15701
15702         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
15703         in r148403.
15704
15705 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
15706
15707         PR c/39252
15708         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
15709         * builtins.c (expand_builtin_unreachable): New function.
15710         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
15711         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
15712         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
15713         successors.
15714         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
15715         searching for missing barriers.
15716
15717 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15718
15719         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
15720         when -fprofile-generate* was passed.
15721         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
15722
15723 2009-06-11  Anthony Green  <green@moxielogic.com>
15724
15725         * config/moxie/moxie.md: Define length attribute for all instructions.
15726         (rCC): Define.
15727         (*b<cond:code>): Support limited branch ranges for new PC-relative
15728         branch instructions.
15729         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
15730
15731 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
15732
15733         * config/i386/i386.c (min_insn_size): Use get_attr_length
15734         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
15735         For __asm return 0.
15736
15737         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
15738         instead of emit_insn_before.
15739
15740 2009-06-10  Ian Lance Taylor  <iant@google.com>
15741
15742         PR bootstrap/40408
15743         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
15744         GIMPLE_SWITCH.
15745
15746 2009-06-10  Revital Eres  <eres@il.ibm.com>
15747
15748         * passes.c (init_optimization_passes): Reschedule
15749         predictive-commoning pass before complete unroll pass.
15750
15751 2009-06-10  Martin Jambor  <mjambor@suse.cz>
15752
15753         * cgraph.c (cgraph_node_can_be_local_p): New function.
15754         (cgraph_make_node_local): New function.
15755         * cgraph.h (cgraph_node_can_be_local_p): Declare.
15756         (cgraph_make_node_local): Declare.
15757
15758 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
15759
15760         * tree.h (tree_base): Add packed_flag and user_align fields.
15761         Decrease size of spare field.
15762         (TYPE_USER_ALIGN): Use user_align from tree_base.
15763         (DECL_USER_ALIGN): Likewise.
15764         (TYPE_PACKED): Use packed_flag from tree_base.
15765         (DECL_PACKED): Likewise.
15766         (tree_type): Delete packed_flag and user_align fields.  Widen
15767         precision field.  Widen mode field and shuffle fields to align
15768         mode on an 8-bit boundary.
15769         (tree_decl_common): Delete decl_flag_1 and user_align fields.
15770         Renumber decl_flag_* fields.  Fix comments.  Widen
15771         decl_common_unused field.
15772         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
15773         (DECL_EXTERNAL): Likewise.
15774         (DECL_BIT_FIELD): Likewise.
15775         (DECL_NONADDRESSABLE_P): Likewise.
15776         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
15777         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
15778
15779 2009-06-10  Ian Lance Taylor  <iant@google.com>
15780
15781         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
15782         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
15783         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
15784         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
15785         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
15786         DEF_VEC_ALLOC_FUNC_P.
15787         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
15788         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
15789         DEF_VEC_ALLOC_FUNC_O.
15790         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
15791         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
15792         DEF_VEC_ALLOC_FUNC_I.
15793         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
15794         (vec_stack_p_reserve_exact_1): Declare.
15795         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
15796         (vec_stack_free): Declare.
15797         (VEC_stack_alloc): Define.
15798         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
15799         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
15800         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
15801         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
15802         for void_p.
15803         (stack_vecs): New static variable.
15804         (vec_stack_p_reserve_exact_1): New function.
15805         (vec_stack_o_reserve_1): New static function.
15806         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
15807         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
15808         (vec_stack_free): New function.
15809         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
15810         (VEC_df_ref_stack_alloc): Define.
15811         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
15812         DEF_VEC_ALLOC_P_STACK.
15813         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
15814         (struct df_collection_rec): Change _vec fields to VEC.  Remove
15815         _use fields.
15816         (df_free_collection_rec): Adjust for new fields.
15817         (df_insn_rescan): Use new df_collection_rec fields.
15818         (df_notes_rescan, df_canonize_collection_rec): Likewise.
15819         (df_ref_create_structure, df_ref_record): Likewise.
15820         (df_get_conditional_uses, df_get_call_refs): Likewise.
15821         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
15822         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
15823         (df_record_exit_block_uses, df_bb_verify): Likewise.
15824         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
15825         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
15826         Remove count parameter.  Change return type to void.  Change all
15827         callers.
15828         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
15829         Remove count parameter.  Change return type to void.  Change all
15830         callers.
15831         (df_install_refs): Change old_vec parameter to VEC.  Remove count
15832         parameter.  Change all callers.
15833         (df_install_mws): Change old_vec parameter to VEC.  Remove count
15834         parameter.  Change all callers.
15835         (df_refs_verify): Change new_rec parameter to VEC.  Change call
15836         callers.
15837         (df_mws_verify): Likewise.
15838
15839 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
15840
15841         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
15842
15843 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
15844
15845         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
15846
15847 2009-06-10  Anthony Green  <green@moxielogic.com>
15848
15849         * config/moxie/crti.asm: New file.
15850         * config/moxie/crtn.asm: New file.
15851         * config/moxie/moxie.c: New file.
15852         * config/moxie/moxie.h: New file.
15853         * config/moxie/sfp-machine.h: New file.
15854         * config/moxie/moxie-protos.h: New file.
15855         * config/moxie/t-moxie: Created.
15856         * config/moxie/t-moxie-softfp: Created.
15857         * config/moxie/moxie.md: Created.
15858         * config/moxie/constraints.md: Created.
15859         * config.gcc: Add moxie support.
15860         * doc/md.texi (Machine Constraints): Add moxie constraints.
15861         * doc/contrib.texi (Contributors): Mention moxie port.
15862         * doc/install.texi (Specific): Mention the moxie port.
15863
15864 2009-06-09  Ian Lance Taylor  <iant@google.com>
15865
15866         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
15867         compiling with C++.
15868         * optabs.c (optab_table): Only use designated initializers if
15869         HAVE_DESIGNATED_INITIALIZERS is defined.
15870         (convert_optab_table): Likewise.
15871         (init_optabs): Always call init_insn_codes if
15872         HAVE_DESIGNATED_INITIALIZERS is not defined.
15873
15874 2009-06-09  Ian Lance Taylor  <iant@google.com>
15875
15876         * targhooks.c (default_builtin_vectorized_function): Change fn
15877         parameter to unsigned int.
15878         (default_builtin_vectorized_conversion): Change code parameter to
15879         unsigned int.
15880         (default_builtin_reciprocal): Change fn parameter to unsigned int.
15881         * targhooks.h: Update declarations.
15882         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
15883         parameter to unsigned int.
15884
15885         * c-typeck.c (comptypes_check_enum_int): New static function.
15886         (comptypes_internal): Add enum_and_int_p parameter.  Change all
15887         callers.
15888         (comp_target_types): Add location parameter.  Change all callers.
15889         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
15890         Change all callers.
15891         (function_types_compatible_p, type_lists_compatible_p): Likewise.
15892         (build_conditional_expr): Add colon_loc parameter.  Change all
15893         callers.
15894         (convert_for_assignment): Add location parameter.  Change all callers.
15895         * c-parser.c (c_parser_conditional_expression): Pass location of
15896         colon to build_conditional_expr.
15897         * c-tree.h (build_conditional_expr): Update declaration.
15898
15899 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
15900
15901         * graphite.c: Revert previous patch.
15902
15903 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
15904
15905         PR bootstrap/40103
15906         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
15907
15908 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
15909
15910         * tree-ssa-loop-prefetch.c
15911         (loop_prefetch_arrays): Fixed a portability problem in printf format
15912         string.
15913
15914 2009-06-09  Martin Jambor  <mjambor@suse.cz>
15915
15916         PR tree-optimization/40351
15917         * tree-sra.c (propagate_subacesses_accross_link): Check that a
15918         refrence to a potential artifical subaccess can be constructed.
15919
15920 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
15921
15922         * config/sh/sh-protos.h (sh_optimization_options): Declare.
15923         (sh_override_options): Likewise.
15924         * config/sh/sh.c: Include params.h.
15925         (sh_optimization_options): New.
15926         (sh_override_options): Likewise.
15927         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
15928         (OVERRIDE_OPTIONS): Use sh_override_options.
15929
15930 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
15931
15932         * dwarf2out.c (emit_cfa_remember): New variable.
15933         (add_fde_cfi): If emit_cfa_remember, recurse to add
15934         DW_CFA_remember_state first.
15935         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
15936         instead just set emit_cfa_remember.
15937
15938 2009-06-08  Jan Hubicka  <jh@suse.cz>
15939
15940         PR debug/40126
15941         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
15942
15943 2009-06-08  Jan Hubicka  <jh@suse.cz>
15944
15945         PR middle-end/39834
15946         * cgraphunit.c (save_inline_function_body): Do not copy transform
15947         hooks for saved inline bodies.
15948         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
15949         for given function.
15950
15951 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
15952
15953         * jump.c (returnjump_p): Handle delayed branches.  Add missing
15954         function comment.
15955
15956 2009-06-08  Jan Hubicka  <jh@suse.cz>
15957
15958         PR middle-end/40102
15959         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
15960         original node might've been modified.
15961         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
15962
15963 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
15964
15965         * tree-object-size.c (addr_object_size): Add OSI argument.
15966         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
15967         (compute_builtin_object_size, expr_object_size): Adjust callers.
15968         (plus_stmt_object_size): Call addr_object_size instead of
15969         compute_builtin_object_size.
15970
15971 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
15972             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
15973
15974         * tree-ssa-loop-prefetch.c
15975         (gather_memory_references): Introduced a counter for the number of
15976         memory references.
15977         (anything_to_prefetch_p): Introduced a counter for the number of
15978         prefetches.
15979         (is_loop_prefetching_profitable): New function with a cost model
15980         for prefetching.
15981         (loop_prefetch_arrays): Use the new cost model to determine if
15982         prefetching is profitable.
15983         * params.def (MIN_INSN_TO_PREFETCH_RATIO,
15984         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
15985         * params.h (MIN_INSN_TO_PREFETCH_RATIO,
15986         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
15987         * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
15988         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
15989
15990 2009-06-08  Michael Matz  <matz@suse.de>
15991
15992         PR debug/40012
15993         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
15994         partitions use the same.
15995         (expand_one_var): Deal with DECL_RTL sometimes begin set also
15996         for basevars of SSA_NAMEs.
15997         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
15998         to not expand them twice.
15999         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
16000         multiple places.
16001
16002 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
16003
16004         * common.opt (fcompare-debug=, fcompare-debug-second): New.
16005         (fdump-final-insns=, gtoggle): New.
16006         * doc/invoke.texi: Document them.
16007         * final.c (rest_of_clean_state): Dump final insn stream.
16008         * gcc.c (invoke_as): Hook in -fcompare-debug.
16009         (static_spec_functions): Add compare-debug-dump-opt,
16010         compare-debug-self-opt and compare-debug-auxbase-opt.
16011         (compare_debug, compare_debug_second, compare_debug_opt): New.
16012         (switches_debug_check, n_switches_debug_check): New.
16013         (debug_auxbase_opt, debug_check_temp_file): New.
16014         (process_command): Handle -fno-compare-debug, -fcompare-debug and
16015         -fcompare-debug=*.
16016         (do_self_spec): Handle arguments after switches.
16017         (do_spec_1): Add .gk extension to temp file basenames for compare.
16018         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
16019         (cc1_options): Use it instead of normal auxbase computation for
16020         the second compare-debug compilation.
16021         (compare_files): New.
16022         (main): Set up and implement compare debug mode.
16023         (compare_debug_dump_opt_spec_function): New.
16024         (compare_debug_self_opt_spec_function): New.
16025         (compare_debug_auxbase_opt_spec_function): New.
16026         * toplev.c (process_options): Handle flag_gtoggle,
16027         flag_dump_final_insns.
16028         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
16029         during -fcompare-debug-second compilation.
16030
16031 2009-06-07  Ian Lance Taylor  <iant@google.com>
16032
16033         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
16034         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
16035
16036         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
16037         with no default node.  Change warning with %H to warning_at.
16038         Don't clear warn_switch around case checking.
16039         * doc/invoke.texi (Warning Options): Clarify distinction between
16040         -Wswitch and -Wswitch-enum.
16041
16042 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16043
16044         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
16045
16046 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16047
16048         * gbl-ctors.h: Add header guard.
16049
16050 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16051
16052         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
16053         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
16054         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
16055         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
16056         prototypes for removed functions.
16057         (expressions_equal_p): Move to ...
16058         * tree-ssa-sccvn.h: ... here and ...
16059         * matrix-reorg.c: ... adjust includes.
16060
16061 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16062
16063         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
16064
16065 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16066
16067         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
16068         (finish_function): Remove erroneous whitespace.
16069
16070 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16071
16072         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
16073         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
16074
16075 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16076
16077         * errors.c (internal_error): Commentary typo fix.
16078         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
16079         * tree-ssa-pre.c: Ditto.
16080
16081 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16082
16083         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
16084         them is supposed to hold actual statements.
16085
16086 2009-06-06  Ian Lance Taylor  <iant@google.com>
16087
16088         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
16089         empty statements can now have attributes.
16090
16091 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
16092
16093         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
16094         * config/mips/mips.md: Ditto.
16095
16096 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
16097
16098         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
16099         _RELOCATABLE.
16100         (__eabi_uconvert): Likewise.
16101
16102 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
16103
16104         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
16105         CFI_* definitions with IN_GCC.
16106
16107 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
16108
16109         * xcoffout.h (xcoffout_source_line): Update prototype.
16110
16111 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16112
16113         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
16114         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
16115
16116 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
16117
16118         PR middle-end/40340
16119         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
16120         inlined_function_outer_scope_p blocks for artificial inlines
16121         even at -g0/-g1.
16122         * tree.c (tree_nonartificial_location): Rewrite using
16123         block_nonartificial_location.
16124
16125 2009-06-05  Revital Eres  <eres@il.ibm.com>
16126             Leehod Baruch  <leehod@il.ibm.com>
16127
16128         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
16129         (expand_expr_real_1): Remove comment.
16130         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
16131         Vectorize misaligned access when the target supports it.
16132         (vect_supportable_dr_alignment): Check for unaligned access support.
16133         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
16134         and remove asset.
16135
16136 2009-06-05  Julian Brown  <julian@codesourcery.com>
16137
16138         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
16139         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
16140
16141 2009-06-05  Richard Guenther  <rguenther@suse.de>
16142
16143         PR bootstrap/40350
16144         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
16145         as possibly unused.
16146
16147 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
16148
16149         * config/s390/s390.c (global_not_special_regno_p): New static inline.
16150         (save_gprs): Don't tell unwinder when a global register is saved.
16151         (s390_emit_epilogue): Emit needed epilogue unwind info.
16152
16153 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
16154
16155         * dwarf2out.c (deferred_asm_name): New.
16156         (add_name_and_src_coords_attributes): Defer creation of
16157         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
16158         computed yet.
16159         (move_linkage_attr): New.
16160         (dwarf2out_finish): Revisit deferrals and emit attributes at the
16161         right place.
16162
16163 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
16164
16165         * tree-nested.c (finalize_nesting_tree_1): Declare the
16166         frame_decl in the binding tree.
16167
16168 2009-06-04  Cary Coutant  <ccoutant@google.com>
16169
16170         * basic-block.h (struct basic_block_def): Add discriminator field.
16171         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
16172         callers.
16173         * debug.c (do_nothing_debug_hooks): Add additional entry.
16174         (debug_nothing_int_charstar_int): New function.
16175         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
16176         (debug_nothing_int_charstar_int): New declaration.
16177         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
16178         discriminator value in .loc directive.
16179         * final.c (last_discriminator): New variable.
16180         (discriminator): New variable.
16181         (final_start_function): Initialize above variables, pass current
16182         discriminator to debug hook.
16183         (notice_source_line): Check for discriminator change.
16184         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
16185         * sdbout.c (sdbout_source_line): New parameter.
16186         * tree-cfg.c (struct locus_discrim_map): New structure type.
16187         (discriminator_per_locus): New hash table.
16188         (build_gimple_cfg): Allocate and free discriminator hash table.
16189         (make_edges): Call assign_discriminator.
16190         (locus_map_hash): New function.
16191         (locus_map_eq): New function.
16192         (next_discriminator_for_locus): New function.
16193         (same_line_p): New function.
16194         (assign_discriminator): New function.
16195         (make_cond_expr_edges): Call assign_discriminator.
16196         (make_gimple_switch_edges): Likewise.
16197         (first_non_label_stmt): New function.
16198         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
16199         all callers.
16200         * xcoffout.c (xcoffout_source_line): Add new parameter.
16201
16202         * configure.ac (gcc_cv_as_discriminator): New configury check for
16203         gas support for discriminator.
16204         * configure: Regenerate.
16205         * config.in: Regenerate.
16206
16207 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16208
16209         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
16210         val after checking for integers.
16211
16212 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
16213
16214         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
16215         X64_REGPARM_MAX.
16216         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
16217         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
16218         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
16219         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
16220         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
16221         X64_SSE_REGPARM_MAX.
16222         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
16223         X64_SSE_REGPARM_MAX.
16224
16225 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
16226
16227         * gcc.c (report_times_to_file): New.
16228         (execute): Implement it.
16229         (process_command): Support -time=.
16230         * doc/invoke.texi: Document it.
16231
16232 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
16233
16234         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
16235         that have value exprs.
16236
16237 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
16238
16239         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
16240         declarations for constants until...
16241         (dw2_output_indirect_constant_1): ... this point.
16242
16243 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
16244
16245         PR target/10242
16246         * arm.md (arm_addsi3): Don't try to split an add with an
16247         eliminable register until after reload has completed.
16248
16249 2009-06-03  Ian Lance Taylor  <iant@google.com>
16250
16251         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
16252         * genattrtab.c (write_length_unit_log): Likewise.
16253         * genchecksum.c (dosum): Likewise.
16254         * gengtype.c (write_rtx_next): Likewise.
16255         (finish_root_table, write_roots): Likewise.
16256         * gimple.c (gimple_ops_offset_): Likewise.
16257         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
16258         * config/arc/arc.c (arc_attribute_table): Likewise.
16259         * config/arm/arm.c (arm_attribute_table): Likewise.
16260         * config/avr/avr.c (avr_attribute_table): Likewise.
16261         * config/crx/crx.c (crx_attribute_table): Likewise.
16262         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
16263         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
16264         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
16265         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
16266         * config/sh/sh.c (sh_attribute_table): Likewise.
16267         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
16268         * config/spu/spu.c (spu_attribute_table): Likewise.
16269         * config/v850/v850.c (v850_attribute_table): Likewise.
16270
16271         * config/alpha/alpha.c (vms_attribute_table): Make static.
16272         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
16273         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
16274         * config/mips/mips.c (mips_attribute_table): Likewise.
16275
16276         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
16277         $(SYSTEM_H).
16278         (cc1-checksum.o): Likewise.
16279
16280 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
16281
16282         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
16283
16284 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
16285
16286         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
16287         insn if it is changing sp.  Use gen_add3_insn instead of
16288         conditionally gen_addsi3 and gen_adddi3.
16289         (offset_below_red_zone_p): New static inline function.
16290         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
16291         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
16292         * config/rs6000/ppc-asm.h: Include auto-host.h.
16293         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
16294         CFI_RESTORE): Define.
16295         * config/rs6000/crtresxgpr.asm: Add unwind info.
16296         * config/rs6000/crtresxfpr.asm: Likewise.
16297         * config/rs6000/crtresgpr.asm: Likewise.
16298         * config/rs6000/crtresfpr.asm: Likewise.
16299         * config/rs6000/crtsavgpr.asm: Likewise.
16300         * config/rs6000/crtsavfpr.asm: Likewise.
16301
16302         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
16303         argument of DWARF2_FRAME_REG_OUT macros.
16304
16305 2009-06-03  Julian Brown  <julian@codesourcery.com>
16306
16307         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
16308         words or less (including TImode) in core registers.
16309
16310 2009-06-03  Richard Guenther  <rguenther@suse.de>
16311
16312         PR middle-end/40328
16313         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
16314
16315 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
16316
16317         * statistics.c (statistics_counter_event): Do not record event
16318         in pass dump if its number == -1.
16319         (curr_statistics_hash): Add assert that we never get passes
16320         with static number == -1.
16321
16322 2009-06-03  Richard Guenther  <rguenther@suse.de>
16323             Andrey Belevantsev  <abel@ispras.ru>
16324
16325         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
16326         non-BLKmode arrays addressable.
16327
16328 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
16329
16330         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
16331         * config/m68k/m68k.h: ... here.
16332
16333 2009-06-03  Martin Jambor  <mjambor@suse.cz>
16334
16335         PR tree-optimization/40323
16336         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
16337         assignment.
16338
16339 2009-06-03  Richard Guenther  <rguenther@suse.de>
16340
16341         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
16342         consistently.
16343
16344 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
16345
16346         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
16347         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
16348         JUMP_TABLE_DATA_P where applicable.
16349         * config/sh/sh.c: Ditto.
16350         * config/sh/sh.h: Ditto.
16351         * config/sh/sh.md: Ditto.
16352         * config/sh/symbian.c: Ditto.
16353
16354 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
16355
16356         * config/i386/driver-i386.c (describe_cache): Optimize
16357         concatenation of strings.  Use snprintf instead of sprintf.
16358         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
16359         target when not compiling with GCC.
16360
16361 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
16362
16363         * config/sh/sh.c: Revert last change.
16364         (sh_expand_epilogue): Emit a blockage insn before the frame
16365         pointer adjustment unconditionally.
16366
16367 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
16368
16369         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
16370         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
16371         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
16372         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
16373         to COLLECT_GCC_OPTIONS.
16374
16375 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
16376
16377         * collect2.c (target_system_root): New variable.
16378         (main): Handle --sysroot=.
16379         (ignore_library): Strip the sysroot from the library path.
16380
16381 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
16382
16383         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
16384         (collect2.o): Depend on collect2-aix.h.
16385         (collect2-aix.o): New rule.
16386         * collect2-aix.h: New file.
16387         * collect2-aix.c: Likewise.
16388         * collect2.c: Include collect2-aix.h.  Don't undefine
16389         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
16390         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
16391         Use TARGET_AIX_VERSION instead of _AIX51.
16392         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
16393         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
16394         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
16395         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
16396         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
16397
16398 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
16399
16400         * collect2.c (ignore_library): Avoid premature post-increment
16401         and null deference.
16402
16403 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
16404
16405         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
16406         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
16407         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
16408         CROSS_DIRECTORY_STRUCTURE too.
16409         (LINK_LIBG_SPEC): Likewise.
16410         (LIB_SPEC): Add %R to sysroot paths.
16411         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
16412         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
16413         * config/rs6000/aix51.h: As for aix43.h.
16414         * config/rs6000/aix52.h: Likewise.
16415         * config/rs6000/aix53.h: Likewise.
16416         * config/rs6000/aix61.h: Likewise.
16417         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
16418         to the beginning of sysroot paths.
16419
16420 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
16421
16422         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
16423         INSN_LISTs that are out of the REG_NOTE range.
16424
16425 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
16426
16427         * loop-unroll.c (struct iv_to_split): Add pointer to next.
16428         (struct var_to_expand): Likewise.
16429         (struct opt_info): Add head and tail for linked lists of the above.
16430         (analyze_insn_to_expand_var): Initialize next.
16431         (analyze_iv_to_split_insn): Likewise.
16432         (analyze_insns_in_loop): Create linked lists.
16433         (allocate_basic_variable): Simplify for use without hash table.
16434         (insert_var_expansion_initialization): Likewise, make it type-safer.
16435         (combine_var_copies_in_loop_exit): Likewise.
16436         (apply_opt_in_copies): Walk lists rather than hash tables.
16437         (release_var_copies): Simplified and inlined by hand into...
16438         (free_opt_info): ... this function.
16439
16440 2009-06-02  Richard Guenther  <rguenther@suse.de>
16441
16442         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
16443         for field decls.
16444
16445 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
16446
16447         * cfgexpand.c (gimple_expand_cfg): Discard the source location
16448         only for builtins that are not overridden.
16449
16450 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
16451
16452         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
16453         label string.
16454
16455 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
16456
16457         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
16458
16459 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
16460
16461         * combine.c (move_deaths): Compare LUIDs within the same BB only.
16462
16463 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
16464
16465         * common.opt (fdump-unnumbered-links): New.
16466         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
16467         * print-rtl.c (flag_dump_unnumbered_links): New.
16468         (print_rtx): Test it.
16469
16470 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
16471
16472         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
16473         push/pop multiple to 8-byte alignment.
16474
16475 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
16476
16477         * config/i386/i386.c (queued_cfa_restores): New static variable.
16478         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
16479         functions.
16480         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
16481         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
16482         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
16483         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
16484         note unconditionally.
16485         (ix86_emit_restore_regs_using_mov): Likewise.
16486         (ix86_emit_restore_sse_regs_using_mov): Likewise.
16487         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
16488         it through to ix86_emit_restore_reg_using_pop.
16489         (ix86_emit_leave): Add RED_OFFSET argument.  Call
16490         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
16491         instead of adding REG_CFA_OFFSET note unconditionally.
16492         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
16493         the above functions.  Call ix86_add_queued_cfa_restore_notes when
16494         needed.
16495
16496         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
16497         force output of the label even for dwarf2out_do_cfi_asm.
16498         (add_fde_cfi): If -g2 and above and cfi might change CFA,
16499         force creation of CFI label and chain DW_CFA_set_loc jumping to it
16500         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
16501         caller.
16502         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
16503         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
16504         dwarf2out_cfi_label callers.
16505         * tree.h (dwarf2out_cfi_label): Adjust prototype.
16506         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
16507         Adjust dwarf2out_cfi_label callers.
16508         * config/vax/vax.c (vax_output_function_prologue): Likewise.
16509
16510         * config/i386/i386.h (struct machine_cfa_state,
16511         struct machine_function): Guard with ifndef USED_FOR_TARGET
16512         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
16513
16514         PR other/40024
16515         * emutls.c (__emutls_get_address): Change arr->size to mean number
16516         of allocated arr->data entries instead of # of slots + 1.
16517
16518         PR middle-end/40316
16519         * recog.c (peep2_reinit_state): New function.
16520         (peephole2_init_state): Use it at the end of a basic block and also
16521         when seeing a RTX_FRAME_RELATED_P insn.
16522
16523 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
16524
16525         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
16526         fixuns_truncrfdi2): New.
16527         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
16528         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
16529         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
16530         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
16531         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
16532         *recip_approx): Remove.
16533         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
16534         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
16535         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
16536         move to div.md.
16537         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
16538         setf_exp_rf): New.
16539
16540 2009-06-01  Ian Lance Taylor  <iant@google.com>
16541
16542         * attribs.c (register_attribute): Use CONST_CAST.
16543         * collect2.c (main): Use CONST_CAST2.
16544         (scan_prog_file): Likewise.
16545         * gcc.c (process_command, main): Likewise.
16546         * toplev.c (toplev_main): Likewise.
16547
16548         * c-typeck.c (handle_warn_cast_qual): New static function,
16549         partially broken out of build_c_cast.
16550         (build_c_cast): Call handle_warn_cast_qual.
16551         * doc/invoke.texi (Warning Options): Document new effect of
16552         -Wcast-qual.
16553
16554 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
16555
16556         * diagnostic.c (diagnostic_build_prefix): Always print columns.
16557         (diagnostic_report_current_module): Print columns.
16558         * common.opt (flag_show_column): Enable by default.
16559
16560 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
16561
16562         * alias.c (find_base_term): Check for NULL term before returning.
16563
16564 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
16565
16566         Revert due to PR40320:
16567         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
16568         * calls.c (emit_library_call_value_1): Don't force_operand for move
16569         and push insns.
16570
16571 2009-06-01  Olivier Hainque  <hainque@adacore.com>
16572             Eric Botcazou  <ebotcazou@adacore.com>
16573
16574         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
16575         to be processed as a bitfield for constructor output purposes.
16576         * output.h (initializer_constant_valid_for_bitfield_p): Declare
16577         new function.
16578         * varasm.c (oc_local_state): New type, output_constructor
16579         local state to support communication with helpers.
16580         (oc_outer_state): New type, output_constructor outer state of
16581         relevance in recursive calls.
16582         (output_constructor_array_range): New output_constructor helper,
16583         extracted code for an array range element.
16584         (output_constructor_regular_field): New output_constructor helper,
16585         extracted code for an element that is not a bitfield.
16586         (output_constructor_bitfield): New output_constructor helper,
16587         extracted code for a bitfield element.  Accept an OUTER state
16588         argument for recursive processing.  Recurse on record or array
16589         CONSTRUCTOR values, possibly past noop conversions.
16590         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
16591         VALUE is a valid constant-valued expression for use in a static
16592         bit-field initializer.
16593         (output_constructor): Rework to use helpers.  Accept and honor an
16594         OUTER state argument for recursive calls.  Return total size.  Be
16595         prepared for nested constructors initializing bitfields.
16596         (output_constant): Feed OUTER in calls to output_constructor.
16597
16598 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
16599
16600         * calls.c (emit_library_call_value_1): Don't force_operand for move
16601         and push insns.
16602
16603 2009-06-01  Nick Clifton  <nickc@redhat.com>
16604
16605         * doc/invoke.texi (IA-64 Options): Fix typo.
16606
16607 2009-06-01  Ira Rosen  <irar@il.ibm.com>
16608
16609         PR tree-optimization/39129
16610         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
16611         printed message.
16612         (vect_do_peeling_for_loop_bound): Use
16613         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
16614         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
16615         (vect_loop_versioning): Likewise.
16616         (vect_create_cond_for_alias_checks): Fix indentation.
16617         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
16618         macros.
16619         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
16620         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
16621         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
16622         "control flow in loop".
16623         (vect_estimate_min_profitable_iters): Use
16624         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
16625         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
16626         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
16627         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
16628         * tree-vect-stmts.c (vectorizable_store): Replace the check that the
16629         statement belongs to a group of strided accesses with the exact code
16630         check.
16631         (vectorizable_load): Likewise.
16632         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
16633         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
16634
16635 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
16636
16637         * config/freebsd-stdint.h: New file.
16638         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
16639         Add freebsd-stdint.h to tm_file.
16640
16641 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
16642
16643         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
16644         (thumb2_extendhidi2): Likewise.
16645
16646 2009-05-31  Ian Lance Taylor  <iant@google.com>
16647
16648         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
16649
16650 2009-05-31  Ian Lance Taylor  <iant@google.com>
16651
16652         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
16653         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
16654         (ipa-reference.o): Depend upon gt-ipa-reference.h.
16655
16656 2009-05-31  Jason Merrill  <jason@redhat.com>
16657
16658         * tree-pretty-print.c (print_call_name): Take the callee, not the
16659         call itself.  Make non-static.  Use dump_function_name for functions.
16660         (dump_generic_node): Adjust.
16661         * diagnostic.h: Declare print_call_name.
16662         * gimple-pretty-print.c (dump_gimple_call): Use it.
16663
16664 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
16665
16666         * config/sh/sh.md (ashldi3_std): New define_expand.
16667         (ashldi3): Use it.
16668
16669 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
16670
16671         PR target/40313
16672         * config/sh/sh.c: Include debug.h.
16673         (sh_expand_epilogue): Emit a blockage insn before the frame
16674         pointer adjustment also when dwarf2out_do_frame returns true.
16675
16676 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
16677
16678         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
16679         (thumb2_extendqidi2): New pattern.
16680
16681 2009-05-31  Ira Rosen  <irar@il.ibm.com>
16682
16683         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
16684         mark phis for renaming.
16685         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
16686         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
16687         Call mark_sym_for_renaming.
16688         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
16689         * tree-vect-loop.c (vect_transform_loop): Remove
16690         vect_memsyms_to_rename initialization and a call to
16691         mark_set_for_renaming.
16692
16693 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
16694
16695         PR middle-end/40304
16696         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
16697         frame related even if !set_cfa && style < 0.
16698
16699 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
16700
16701         * config/i386/mingw-tls.c: New file.
16702         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
16703         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
16704         defining _WIN32 but not __CYGWIN__.
16705
16706 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16707
16708         * configure.ac: Add MPC support.
16709
16710         * config.in, configure: Regenerate.
16711
16712 2009-05-29  Richard Henderson  <rth@redhat.com>
16713
16714         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
16715         NOTE_INSN_BASIC_BLOCK.
16716         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
16717         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
16718         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
16719         to be deleted.
16720         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
16721         add in_use field.
16722         (add_cfi): Disable check redefining cfa away from drap.
16723         (lookup_cfa_1): Add remember argument; handle remember/restore.
16724         (lookup_cfa): Pass remember argument.
16725         (cfa_remember): New.
16726         (compute_barrier_args_size_1): Remove sibcall check.
16727         (dwarf2out_frame_debug_def_cfa): New.
16728         (dwarf2out_frame_debug_adjust_cfa): New.
16729         (dwarf2out_frame_debug_cfa_offset): New.
16730         (dwarf2out_frame_debug_cfa_register): New.
16731         (dwarf2out_frame_debug_cfa_restore): New.
16732         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
16733         (dwarf2out_begin_epilogue): New.
16734         (dwarf2out_frame_debug_restore_state): New.
16735         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
16736         DW_CFA_restore_state.
16737         (output_cfi_directive): Likewise.
16738         (convert_cfa_to_fb_loc_list): Likewise.
16739         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
16740         * dwarf2out.h: Update.
16741         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
16742         (copy_insn_1): Early out for null.
16743         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
16744         and dwarf2out_frame_debug_restore_state.
16745         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
16746         (prologue_insn_hash, epilogue_insn_hash): New.
16747         (free_after_compilation): Adjust freeing accordingly.
16748         (record_insns): Create hash table if needed; push insns into
16749         hash instead of array.
16750         (maybe_copy_epilogue_insn): New.
16751         (contains): Search hash table instead of array.
16752         (sibcall_epilogue_contains): Remove.
16753         (thread_prologue_and_epilogue_insns): Split eh_return insns
16754         and mark them as epilogues.
16755         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
16756         scanning in terms of basic blocks.
16757         * insn-notes.def (CFA_RESTORE_STATE): New.
16758         * jump.c (returnjump_p_1): Accept EH_RETURN.
16759         (eh_returnjump_p_1, eh_returnjump_p): New.
16760         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
16761         CFA_REGISTER, CFA_RESTORE): New.
16762         * rtl.def (EH_RETURN): New.
16763         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
16764
16765         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
16766         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
16767
16768         * config/i386/i386.c (gen_push): Update cfa state.
16769         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
16770         add a CFA_ADJUST_CFA note.
16771         (ix86_dwarf_handle_frame_unspec): Remove.
16772         (ix86_expand_prologue): Update cfa state.
16773         (ix86_emit_restore_reg_using_pop): New.
16774         (ix86_emit_restore_regs_using_pop): New.
16775         (ix86_emit_leave): New.
16776         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
16777         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
16778         * config/i386/i386.h (struct machine_cfa_state): New.
16779         (ix86_cfa_state): New.
16780         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
16781         (eh_return_internal): Merge from eh_return_<mode>,
16782         use eh_return rtx, split w/ epilogue.
16783
16784 2009-05-29  Ian Lance Taylor  <iant@google.com>
16785
16786         * builtins.c (validate_gimple_arglist): Don't use va_arg with
16787         enum type.
16788         * calls.c (emit_library_call_value_1): Likewise.
16789
16790         * c-typeck.c (c_build_va_arg): New function.
16791         * c-tree.h (c_build_va_arg): Declare.
16792         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
16793         instead of build_va_arg.
16794
16795 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
16796
16797         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
16798         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
16799         (ptr_difference_cost): Use affine combinations to compute it.
16800         (difference_cost): Likewise.
16801         (get_computation_cost_at): Compute more accurate cost for addresses
16802         if the ratio is a multiplier allowed in addresses.
16803         For non-addresses, consider that an additional offset or symbol is
16804         added only once.
16805
16806 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
16807
16808         * config/i386/i386.c (ix86_decompose_address): Avoid useless
16809         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
16810
16811         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
16812         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
16813         (prefix_rex): For UNIT_MMX don't imply the prefix by default
16814         if MODE_DI.
16815         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
16816         to 1 for TYPE_SSE{IADD1,CVT1}.
16817         (prefix_vex_imm8): Removed.
16818         (length_vex): Only pass 1 as second argument to
16819         ix86_attr_length_vex_default if prefix_extra is 0.
16820         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
16821         (length): For prefix vex computation use length_immediate
16822         attribute instead of prefix_vex_imm8.
16823         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
16824         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
16825         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
16826         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
16827         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
16828         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
16829         a space in between the operands.
16830         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
16831         if one operand is 0xff and the other one si, di, bp or sp.
16832         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
16833         other one si, di, bp or sp.
16834         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
16835         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
16836         type and mode attributes.
16837         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
16838         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
16839         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
16840         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
16841         prefix_data16 attribute iff MODE_DF.
16842         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
16843         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
16844         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
16845         constm128_operand in length_immediate computation.
16846         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
16847         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
16848         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
16849         length_immediate attribute to 1.
16850         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
16851         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
16852         for certain alternatives.
16853         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
16854         prefix_data16 attribute if MODE_V1DF.
16855         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
16856         length_immediate to 1.
16857         (set_got_rex64, set_rip_rex64): Remove length attribute, set
16858         length_address to 4, set mode attribute to MODE_DI.
16859         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
16860         (fxam<mode>2_i387): Set length attribute to 4.
16861         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
16862         *prefetch_3dnow_rex): Override length_address attribute.
16863         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
16864         attributes.
16865         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
16866         (constm128_operand): Removed.
16867         * config/i386/i386.c (memory_address_length): For
16868         disp && !index && !base in 64-bit mode account for SIB byte if
16869         print_operand_address can't optimize disp32 into disp32(%rip)
16870         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
16871         for fs: or gs: segment.
16872         (ix86_attr_length_immediate_default): When checking if shortform
16873         is possible, truncate immediate to the length of the non-shortened
16874         immediate.
16875         (ix86_attr_length_address_default): Ignore MEM_P operands
16876         with X constraint.
16877         (ix86_attr_length_vex_default): Only check for DImode on
16878         GENERAL_REG_P operands.
16879         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
16880         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
16881         (sse_cvttps2pi): Clear prefix_rep attribute.
16882         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
16883         attribute.
16884         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
16885         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
16886         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
16887         iff operand 2 is const_int_operand.
16888         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
16889         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
16890         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
16891         instead of vex.
16892         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
16893         prefix_data16.
16894         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
16895         prefix_data16 attribute for movlpd and movhpd instructions.
16896         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
16897         length_immediate for shufpd instruction.
16898         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
16899         (avx_cmpp<avxmodesuffixf2c><mode>3,
16900         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
16901         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
16902         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
16903         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
16904         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
16905         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
16906         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
16907         prefix_data16 attribute for the first alternative to 1.
16908         (*avx_loadlps): Override length_immediate for the first alternative.
16909         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
16910         attributes for second alternative.
16911         (*vec_concatv2sf_sse4_1): Override length_immediate and
16912         prefix_data16 attributes for second alternative.
16913         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
16914         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
16915         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
16916         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
16917         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
16918         prefix_data16 and length_immediate to 1.
16919         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
16920         to 1.
16921         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
16922         prefix_extra attribute for variants that don't have 0f prefix alone.
16923         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
16924         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
16925         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
16926         *sse4_1_pextrd): Set length_immediate to 1.
16927         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
16928         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
16929         to 1.
16930         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
16931         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
16932         length_immediate to 1 for second alternative.
16933         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
16934         prefix_extra and length_immediate attributes for the first
16935         alternative.
16936         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
16937         first alternative.
16938         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
16939         to 1 for the first and third alternative.
16940         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
16941         alternative.
16942         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
16943         attribute.
16944         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
16945         attribute to 0.
16946         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
16947         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
16948         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
16949         *avx_psign<mode>3): Set prefix_extra attribute to 1.
16950         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
16951         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
16952         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
16953         ssse3_psign<mode>3): Override prefix_rex attribute.
16954         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
16955         (ssse3_palignrti): Override length_immediate to 1.
16956         (ssse3_palignrdi): Override length_immediate to 1, override
16957         prefix_rex attribute.
16958         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
16959         (sse4a_extrqi): Override length_immediate to 2.
16960         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
16961         (sse4a_insertq): Override prefix_data16 to 0.
16962         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
16963         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
16964         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
16965         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
16966         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
16967         and length_immediate to 1.
16968         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
16969         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
16970         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
16971         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
16972         and length_immediate to 1.
16973         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
16974         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
16975         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
16976         avx_ptest256): Override prefix_extra to 1.
16977         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
16978         Override prefix_data16 and length_immediate to 1.
16979         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
16980         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
16981         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
16982         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
16983         prefix_data16 to 0 and prefix_extra to 2.
16984         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
16985         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
16986         attribute.
16987         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
16988         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
16989         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
16990         and prefix_extra to 2.
16991         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
16992         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
16993         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
16994         avx_vpermilvar<mode>3,
16995         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
16996         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
16997         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
16998         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
16999         Override prefix_extra to 1.
17000         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
17001         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
17002         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
17003         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
17004         prefix_extra and length_immediate to 1.
17005         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
17006         modrm to 0.
17007         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
17008         to 1 for the first alternative.
17009         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
17010         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
17011         cases.
17012         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
17013         *movv2sf_internal_avx, *movv2sf_internal): Override
17014         prefix_rep attribute for certain alternatives.
17015         (*mov<mode>_internal): Override prefix_rep or prefix_data16
17016         attributes for certain alternatives.
17017         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
17018         attributes for certain alternatives.
17019         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
17020         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
17021         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
17022         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
17023         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
17024         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
17025         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
17026         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
17027         length_immediate to 1 if operand 2 is const_int_operand.
17028         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
17029         *vec_extractv2si_1): Set length_immediate attribute to 1.
17030         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
17031         using old 3DNOW insn rather than SSE/3DNOW_A.
17032         (mmx_emms, mmx_femms): Clear modrm attribute.
17033
17034 2009-05-29  Martin Jambor  <mjambor@suse.cz>
17035
17036         * tree-sra.c:  New implementation of SRA.
17037
17038         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
17039         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
17040         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
17041         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
17042         (SRA_MAX_STRUCTURE_COUNT): Removed.
17043         (SRA_FIELD_STRUCTURE_RATIO): Removed.
17044         * doc/invoke.texi (sra-max-structure-size): Removed.
17045         (sra-field-structure-ratio): Removed.
17046
17047 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
17048
17049         PR middle-end/40291
17050         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
17051         before expansion.
17052
17053 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
17054
17055         PR rtl-optimization/40101
17056         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
17057         seqno.  Adjust comment.
17058         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
17059         inserting bookkeeping before a jump, the jump is not scheduled.
17060         When no positive seqno found, provide a value.  Add comment.
17061
17062 2009-05-29  Richard Guenther  <rguenther@suse.de>
17063
17064         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
17065         short-cutting on the first component.
17066
17067 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
17068
17069         PR middle-end/39958
17070         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
17071         for trees other than decls/types.
17072
17073 2009-05-29  Richard Guenther  <rguenther@suse.de>
17074
17075         * tree-ssa-operands.c (get_expr_operands): Do not handle
17076         INDIRECT_REFs in the handled-component case.  Remove
17077         unused get_ref_base_and_extent case.
17078         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
17079         tree_low_cst and host_integerp where possible.
17080         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
17081         codes for equivalence.
17082         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
17083
17084 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
17085
17086         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
17087         to tmake_file for i[34567]86-*-cygwin*.
17088
17089 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
17090
17091         PR target/40017
17092         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
17093         (altivec_categorize_keyword, init_vector_keywords,
17094         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
17095         similar to bool.
17096
17097 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
17098
17099         * tree.c (handle_dll_attribute): Check if node is
17100         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
17101
17102 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
17103
17104         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
17105         component.
17106         (thumb2_zero_extendqidi2): Likewise.
17107
17108 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
17109
17110         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
17111         instead of gen_movrt.
17112         * config/sh/sh.md (movrt): Remove.
17113
17114 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
17115
17116         * doc/invoke.texi (IA-64 Options):
17117         Add -msdata, -mfused-madd, -mno-inline-float-divide,
17118         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
17119         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
17120         -msched-prefer-non-control-spec-insns,
17121         -msched-stop-bits-after-every-cycle,
17122         -msched-count-spec-in-critical-path,
17123         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
17124         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
17125         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
17126         and -msched-spec-verbose.
17127
17128 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
17129
17130         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
17131         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
17132         error if used.
17133         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
17134
17135 2009-05-28  Richard Guenther  <rguenther@suse.de>
17136
17137         * tree-ssa-alias.c (ao_ref_init): New function.
17138         (ao_ref_base): Likewise.
17139         (ao_ref_base_alias_set): Likewise.
17140         (ao_ref_alias_set): Likewise.
17141         (refs_may_alias_p_1): Change signature.
17142         (refs_may_alias_p): Adjust.
17143         (refs_anti_dependent_p): Likewise.
17144         (refs_output_dependent_p): Likewise.
17145         (call_may_clobber_ref_p_1): Change signature.
17146         (call_may_clobber_ref_p): Adjust.
17147         (stmt_may_clobber_ref_p_1): New function split out from ...
17148         (stmt_may_clobber_ref_p): ... here.
17149         (maybe_skip_until): Adjust signature.
17150         (get_continuation_for_phi): Likewise.
17151         (walk_non_aliased_vuses): Likewise.
17152         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
17153         (ao_ref_init): Declare.
17154         (ao_ref_base): Likewise.
17155         (ao_ref_alias_set): Likewise.
17156         (stmt_may_clobber_ref_p_1): Likewise.
17157         (walk_non_aliased_vuses): Adjust.
17158         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
17159         (get_ref_from_reference_ops): remove.
17160         (vn_reference_lookup_2): Adjust signature.
17161         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
17162         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
17163         (vn_reference_lookup): Adjust.
17164         (vn_reference_insert): Likewise.
17165         (vn_reference_insert_pieces): Adjust signature.
17166         (visit_reference_op_call): Adjust.
17167         * tree-ssa-pre.c (get_expr_type): Simplify.
17168         (phi_translate_1): Adjust.
17169         (compute_avail): Likewise.
17170         (translate_vuse_through_block): Do not re-build trees.
17171         (value_dies_in_block_x): Likewise.
17172         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
17173         fields.
17174         (vn_reference_lookup_pieces): Adjust declaration.
17175         (vn_reference_insert_pieces): Likewise.
17176
17177 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
17178
17179         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
17180         with checking disabled.
17181
17182 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
17183
17184         PR target/37216
17185
17186         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
17187         macro definition for support of three-operand format aligned
17188         .comm directive in assembler on cygwin/pe/mingw target OS.
17189         * configure:  Regenerate.
17190         * config.h:  Regenerate.
17191
17192         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
17193         aligned form of .comm directive if -mpe-aligned-commons is in effect.
17194         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
17195
17196         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
17197         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
17198
17199 2009-05-28  Ira Rosen  <irar@il.ibm.com>
17200
17201         PR tree-optimization/40254
17202         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
17203         in analysis of basic blocks.
17204
17205 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
17206
17207         PR middle-end/33699
17208         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
17209         * target-def.h (TARGET_CONST_ANCHOR): New macro.
17210         (TARGET_INITIALIZER): Use it.
17211         * cse.c (CHEAPER): Move it up to the other macros.
17212         (insert): Rename this ...
17213         (insert_with_costs): ... to this.  Add cost parameters.  Update
17214         function comment.
17215         (insert): New function.  Call insert_with_costs.
17216         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
17217         find_reg_offset_for_const, try_const_anchors): New functions.
17218         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
17219         when using a const-anchor.  Call insert_const_anchors.
17220         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
17221         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
17222
17223 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
17224
17225         * tree-inline.c (remap_decls): Enable nonlocalized variables
17226         when not optimizing.
17227
17228 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
17229
17230         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
17231         Simplify other tests involving optimize.
17232
17233 2009-05-27  Tom Tromey  <tromey@redhat.com>
17234
17235         * unwind-dw2.c (_Unwind_DebugHook): New function.
17236         (uw_install_context): Call _Unwind_DebugHook.
17237
17238 2009-05-27  Tom Tromey  <tromey@redhat.com>
17239
17240         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
17241
17242 2009-05-27  Ian Lance Taylor  <iant@google.com>
17243
17244         * Makefile.in (LINKER, LINKER_FLAGS): Define.
17245         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
17246         (ALL_LINKERFLAGS): Define.
17247         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
17248         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
17249         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
17250         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
17251         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
17252         $(LINKER_FOR_BUILD).
17253         (build/gcov-iov$(build_exeext)): Likewise.
17254
17255 2009-05-27  Julian Brown  <julian@codesourcery.com>
17256
17257         * gcse.c (target.h): Include.
17258         (can_assign_to_reg_without_clobbers_p): Check that the target allows
17259         copy of argument to a pseudo register.
17260
17261 2009-05-27  Diego Novillo  <dnovillo@google.com>
17262
17263         * tree-ssa-live.c (dump_scope_block): Document arguments.
17264         (dump_scope_blocks): Document.
17265         (debug_scope_blocks): New.
17266         * tree-flow.h (debug_scope_blocks): Declare.
17267
17268 2009-05-21  Denis Chertykov  <denisc@overta.ru>
17269
17270         * doc/contrib.texi (Contributors): Add myself to the list.
17271
17272 2009-05-27  Olivier Hainque  <hainque@adacore.com>
17273
17274         * expr.c (target_align): New function.  Alignment the TARGET of an
17275         assignment may be assume to have.
17276         (highest_pow2_factor_for_target): Use it instead of relying on
17277         immediate tree attributes of TARGET, not necessarily honored when
17278         intermediate bitfields are involved.
17279
17280 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
17281
17282         PR target/40266
17283         * config/i386/driver-i386.c (host_detect_local_cpu): Support
17284         AVX, SSE4, AES, PCLMUL and POPCNT.
17285
17286 2009-05-27  Diego Novillo  <dnovillo@google.com>
17287
17288         * tree-pretty-print.c (dump_location): New.
17289         (dump_generic_node): Call it.
17290         Factor code to handle BLOCK nodes ...
17291         (dump_block_node): ... here.
17292
17293 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
17294
17295         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
17296         with it.
17297         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
17298         included.
17299         * gcc-plugin.h: Include config.h and system.h.
17300         (IN_GCC): Define if not defined.
17301
17302 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
17303
17304         PR middle-end/40249
17305         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
17306         with -fno-inline.
17307
17308 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
17309
17310         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
17311         applicable.
17312         * config/m32r/m32r.h: Ditto.
17313         * config/m32r/m32r.md: Ditto.
17314         * config/m32r/predicates.md: Ditto.
17315
17316 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
17317
17318         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
17319
17320 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
17321
17322         * doc/plugins.texi
17323         (Loading plugins): typo.
17324         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
17325         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
17326         (Interacting with the GCC Garbage Collector): Added new section.
17327         (Giving information about a plugin): Added new section for
17328         PLUGIN_INFO.
17329         * ggc.h (ggc_register_root_tab): Added declaration.
17330         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
17331         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
17332         (register_callback): Improved comment in declaration.
17333         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
17334         (extra_root_vec) Added static variable for dynamic roots registration.
17335         (ggc_register_root_tab) Added new routine.
17336         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
17337         PLUGIN_GGC_MARKING event.
17338         * ggc-zone.c: Include plugin.h.
17339         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
17340         * ggc-page.c: Include plugin.h.
17341         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
17342         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
17343         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
17344         (register_callback): check lack of callbacks for
17345         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
17346         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
17347         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
17348         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
17349         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
17350         dependency on plugin.h.
17351         (plugin.o): Added dependency on ggc.h...
17352
17353 2009-05-26  Richard Guenther  <rguenther@suse.de>
17354
17355         PR middle-end/40248
17356         Revert
17357         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
17358         with mismatched comparison modes.
17359
17360         * expr.c (expand_expr_real_1): Expand the operand of a
17361         VIEW_CONVERT_EXPR in its natural mode.
17362
17363 2009-05-26  Ian Lance Taylor  <iant@google.com>
17364
17365         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
17366         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
17367         (ALL_COMPILERFLAGS): Define.
17368         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
17369         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
17370         (collect2$(exeext), collect2.o): Likewise.
17371         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
17372         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
17373         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
17374         (libbackend.o, intl.o, cppdefault.o): Likewise.
17375         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
17376         (build/%.o): Use $(COMPILER_FOR_BUILD).
17377         (build/gen%$(build_exeext)): Likewise.
17378         (build/gcov-iov$(build_exeext)): LIkewise.
17379         * config/t-darwin (darwin.o): Use $(COMPILER).
17380         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
17381         * config/t-sol2 (sol2-c.o): Likewise.
17382         (sol2.o): Likewise.
17383         * config/t-vxworks (vxworks.o): Likewise.
17384         * config/x-darwin (host-darwin.o): Likewise.
17385         * config/x-hpux (host-hpux.o): Likewise.
17386         * config/x-linux (host-linux.o): Likewise.
17387         * config/x-solaris (host-solaris.o): Likewise.
17388         * config/alpha/x-alpha (driver-alpha.o): Likewise.
17389         * config/arm/t-arm (arm-c.o): Likewise.
17390         * config/arm/t-pe (pe.o): Likewise.
17391         * config/arm/t-wince-pe (pe.o): Likewise.
17392         * config/i386/t-cygming (winnt.o): Likewise.
17393         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
17394         * config/i386/t-cygwin (cygwin1.o): Likewise.
17395         (cygwin2.o): Likewise.
17396         * config/i386/t-i386 (i386-c.o): Likewise.
17397         * config/i386/t-interix (winnt.o): Likewise.
17398         * config/i386/t-netware (netware.o): Likewise.
17399         * config/i386/t-nwld (nwld.o): Likewise.
17400         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
17401         * config/i386/x-i386 (driver-i386.o): Likewise.
17402         * config/i386/x-cygwin (host-cygwin.o): Likewise.
17403         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
17404         * config/ia64/t-ia64 (ia64-c.o): Likewise.
17405         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
17406         * config/mips/x-native (driver-native.o): Likewise.
17407         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
17408         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
17409         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
17410         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
17411         * config/score/t-score-elf (score7.o): Likewise.
17412         (score3.o): Likewise.
17413         * config/sh/t-sh (sh-c.o): Likewise.
17414         * config/sh/t-symbian (sh-c.o): Likewise.
17415         (symbian.o): Likewise.
17416         * config/spu/t-spu-elf (spu-c.o): Likewise.
17417         * config/v850/t-v850 (v850-c.o): Likewise.
17418         * config/v850/t-v850e (v850-c.o): Likewise.
17419
17420 2009-05-26  Richard Guenther  <rguenther@suse.de>
17421
17422         PR tree-optimization/40122
17423         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
17424         VECTOR_CSTs if possible.
17425         (fold_gimple_assign): Likewise.
17426
17427 2009-05-26  Richard Guenther  <rguenther@suse.de>
17428
17429         PR middle-end/40252
17430         * fold-const.c (fold_binary): Use the correct types for building
17431         rotates.
17432
17433 2009-05-26  Richard Guenther  <rguenther@suse.de>
17434
17435         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
17436         redundant calls to merge_alias_info.
17437         (bump_vector_ptr): Likewise.
17438         * tree-ssa-copy.c (merge_alias_info): Remove.
17439         (replace_exp_1): Remove call to merge_alias_info.
17440         (propagate_tree_value): Likewise.
17441         (fini_copy_prop): Propagate points-to info.
17442         * tree-flow.h (merge_alias_info): Remove.
17443
17444 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
17445
17446         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
17447
17448 2009-05-25  Jan Hubicka  <jh@suse.cz>
17449
17450         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
17451         * cgraph.h (struct inline_summary): New filed self_wize,
17452         size_inlining_benefit, self_time and time_inlining_benefit.
17453         (struct cgraph_global_info): Replace insns by time ans size fields.
17454         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
17455         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
17456         (ipcp_update_callgraph): Do not touch function bodies.
17457         * ipa-inline.c: Include except.h
17458         (MAX_TIME): New constant.
17459         (overall_insns): Remove.
17460         (leaf_node_p): New.
17461         (overall_size, max_benefit): New static variables.
17462         (cgraph_estimate_time_after_inlining): New function.
17463         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
17464         (cgraph_clone_inlined_nodes): Update size.
17465         (cgraph_mark_inline_edge): Update size.
17466         (cgraph_estimate_growth): Use size info.
17467         (cgraph_check_inline_limits): Check size.
17468         (cgraph_default_inline_p): Likewise.
17469         (cgraph_edge_badness): Compute badness based on benefit and size cost.
17470         (cgraph_decide_recursive_inlining): Check size.
17471         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
17472         and times.
17473         (cgraph_decide_inlining): Likewise.
17474         (cgraph_decide_inlining_incrementally): Likewise; honor
17475         PARAM_EARLY_INLINING_INSNS.
17476         (likely_eliminated_by_inlining_p): New predicate.
17477         (estimate_function_body_sizes): New function.
17478         (compute_inline_parameters): Use it.
17479         * except.c (must_not_throw_labels): New function.
17480         * except.h (must_not_throw_labels): Declare.
17481         * tree-inline.c (init_inline_once): Kill inlining_weigths
17482         * tree-ssa-structalias.c: Avoid uninitialized warning.
17483         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
17484         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
17485         (PARAM_INLINE_CALL_COST): Remove.
17486         (PARAM_EARLY_INLINING_INSNS): New.
17487
17488 2009-05-25  Richard Guenther  <rguenther@suse.de>
17489
17490         PR tree-optimization/36327
17491         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
17492         callback for reference translation or lookup at the point of may-defs.
17493         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
17494         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
17495         for union COMPONENT_REFs.
17496         (vn_reference_lookup_3): New callback.  Lookup from memset
17497         and CONSTRUCTOR assignment, translate through struct copies.
17498         (vn_reference_lookup_pieces): Make sure to not free the
17499         passed operands array.  Adjust walk_non_aliased_vuses call.
17500         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
17501         make sure we do not leak memory.
17502
17503 2009-05-25  Richard Guenther  <rguenther@suse.de>
17504
17505         * tree-ssa-alias.h (dump_points_to_solution): Declare.
17506         * tree-inline.c (expand_call_inline): Reset the escaped and
17507         callused solutions.
17508         * tree-ssa-structalias.c (pass_build_ealias): New.
17509         * tree-pass.h (pass_build_ealias): Declare.
17510         * passes.c (init_optimization_passes): Add PTA during
17511         early optimizations.
17512         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
17513         and CALLUSED solutions.
17514         (dump_points_to_solution): New function, split out from ...
17515         (dump_points_to_info_for): ... here.
17516         * tree-parloops.c (parallelize_loops): Reset the escaped and
17517         callused solutions.
17518
17519 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17520
17521         PR bootstrap/40027
17522         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
17523         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
17524
17525 2009-05-25  Ira Rosen  <irar@il.ibm.com>
17526
17527         PR tree-optimization/40238
17528         * tree-vect-stmts.c (vect_init_vector): Insert initialization
17529         statements after basic block's labels.
17530         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
17531         to free the allocated memory.
17532
17533 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
17534
17535         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
17536         return address with a USE.
17537
17538 2009-05-24  Richard Guenther  <rguenther@suse.de>
17539
17540         PR middle-end/40233
17541         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
17542         array type from the main variant of the inner type.
17543
17544 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17545
17546         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
17547         definition to bool (from int) to un-break build.
17548         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
17549
17550 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
17551
17552         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
17553         discard_stmt_changes): Delete.
17554         * tree-ssa-operands.c (scb_stack): Delete.
17555         (init_ssa_operands): Do not initialize it.
17556         (fini_ssa_operands): Do not free it.
17557         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
17558
17559         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
17560         update_stmt, remove the others.  Fix comments.
17561         * tree-dfa.c (optimize_stack_restore): Likewise.
17562         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
17563         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
17564         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
17565         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
17566         Likewise.
17567         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
17568         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
17569         (dom_opt_finalize_block): Likewise, adjusting access to
17570         stmts_to_rescan.
17571         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
17572         (stmts_to_rescan): Change item type to gimple.
17573         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
17574
17575 2009-05-24  Ira Rosen  <irar@il.ibm.com>
17576
17577         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
17578         * tree-pass.h (pass_slp_vectorize): New pass.
17579         * params.h (SLP_MAX_INSNS_IN_BB): Define.
17580         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
17581         * tree-vectorizer.c (timevar.h): Include.
17582         (user_vect_verbosity_level): Declare.
17583         (vect_location): Fix comment.
17584         (vect_set_verbosity_level): Update user_vect_verbosity_level
17585         instead of vect_verbosity_level.
17586         (vect_set_dump_settings): Add an argument. Ignore user defined
17587         verbosity if dump flags require higher level of verbosity. Print to
17588         stderr only for loop vectorization.
17589         (vectorize_loops): Update call to vect_set_dump_settings.
17590         (execute_vect_slp): New function.
17591         (gate_vect_slp): Likewise.
17592         (struct gimple_opt_pass pass_slp_vectorize): New.
17593         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
17594         access its members.
17595         (vec_info_for_bb): New function.
17596         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
17597         (VECTORIZATION_ENABLED): New macro.
17598         (SLP_ENABLED, SLP_DISABLED): Likewise.
17599         (vect_is_simple_use): Add bb_vec_info argument.
17600         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
17601         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
17602         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
17603         vect_schedule_slp, vect_analyze_slp): Likewise.
17604         (vect_analyze_stmt): Add slp_tree argument.
17605         (find_bb_location): Declare.
17606         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
17607         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
17608         (vect_analyze_loop_operations, vect_analyze_loop,
17609         get_initial_def_for_induction, vect_create_epilog_for_reduction,
17610         vect_finalize_reduction, vectorizable_reduction,
17611         vectorizable_live_operation, vect_transform_loop): Likewise.
17612         * tree-data-ref.c (dr_analyze_innermost): Update comment,
17613         skip evolution analysis if analyzing a basic block.
17614         (dr_analyze_indices): Likewise.
17615         (initialize_data_dependence_relation): Skip the test whether the
17616         object is invariant for basic blocks.
17617         (compute_all_dependences): Skip dependence analysis for data
17618         references in basic blocks.
17619         (find_data_references_in_stmt): Don't fail in case of invariant
17620         access in basic block.
17621         (find_data_references_in_bb): New function.
17622         (find_data_references_in_loop): Move code to
17623         find_data_references_in_bb and add a call to it.
17624         (compute_data_dependences_for_bb): New function.
17625         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
17626         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
17627         that STEP is 0.
17628         (vect_analyze_data_ref_dependence): Check for interleaving in case of
17629         unknown dependence in basic block and fail in case of dependence in
17630         basic block.
17631         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
17632         dependence instances from either loop or basic block vectorization
17633         info.
17634         (vect_compute_data_ref_alignment): Check if it is loop vectorization
17635         before calling nested_in_vect_loop_p.
17636         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
17637         dependence instances from either loop or basic block vectorization
17638         info.
17639         (vect_verify_datarefs_alignment): Likewise.
17640         (vect_enhance_data_refs_alignment): Adjust function calls.
17641         (vect_analyze_data_refs_alignment): Likewise.
17642         (vect_analyze_group_access): Fix printing. Skip different checks if
17643         DR_STEP is 0. Keep strided stores either in loop or basic block
17644         vectorization data structure. Fix indentation.
17645         (vect_analyze_data_ref_access): Fix comments, allow zero step in
17646         basic blocks.
17647         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
17648         dependence instances from either loop or basic block vectorization
17649         info.
17650         (vect_analyze_data_refs): Update comment. Call
17651         compute_data_dependences_for_bb to analyze basic blocks.
17652         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
17653         case of loop vectorization. In case of basic block vectorization use
17654         data-ref itself as a base.
17655         (vect_create_data_ref_ptr): In case of basic block vectorization:
17656         don't advance the pointer, add new statements before the current
17657         statement.  Adjust function calls.
17658         (vect_supportable_dr_alignment): Support only aligned accesses in
17659         basic block vectorization.
17660         * common.opt (ftree-slp-vectorize): New flag.
17661         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
17662         (vect_pattern_recog_1): Likewise.
17663         * tree-vect-stmts.c (process_use): Likewise.
17664         (vect_init_vector): Add new statements in the beginning of the basic
17665         block in case of basic block SLP.
17666         (vect_get_vec_def_for_operand): Adjust function calls.
17667         (vect_finish_stmt_generation): Likewise.
17668         (vectorizable_call): Add assert that it is loop vectorization, adjust
17669         function calls.
17670         (vectorizable_conversion, vectorizable_assignment): Likewise.
17671         (vectorizable_operation): In case of basic block SLP, take
17672         vectorization factor from statement's type and skip the relevance
17673         check. Adjust function calls.
17674         (vectorizable_type_demotion): Add assert that it is loop
17675         vectorization, adjust function calls.
17676         (vectorizable_type_promotion): Likewise.
17677         (vectorizable_store): Check for outer loop only in case of loop
17678         vectorization. Adjust function calls. For basic blocks, skip the
17679         relevance check and don't advance pointers.
17680         (vectorizable_load): Likewise.
17681         (vectorizable_condition): Add assert that it is loop vectorization,
17682         adjust function calls.
17683         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
17684         that it is not reduction, get vector type, call only supported
17685         functions, skip loop specific parts.
17686         (vect_transform_stmt): Check for outer loop only in case of loop
17687         vectorization.
17688         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
17689         (vect_is_simple_use): Fix comment, add new argument, fix conditions
17690         for external definition.
17691         * passes.c (pass_slp_vectorize): New pass.
17692         * tree-vect-slp.c (find_bb_location): New function.
17693         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
17694         check for patterns only in loops.
17695         (vect_build_slp_tree): Add argument, adjust function calls, fail in
17696         case of multiple types in basic block SLP.
17697         (vect_mark_slp_stmts_relevant): New function.
17698         (vect_supported_load_permutation_p): Fix comment.
17699         (vect_analyze_slp_instance): Add argument. In case of basic block
17700         SLP, take vectorization factor from statement's type, check that
17701         unrolling factor is 1. Adjust function call. Save SLP instance in
17702         either loop or basic block vectorization structure. Return FALSE,
17703         if SLP failed.
17704         (vect_analyze_slp): Add argument. Get strided stores groups from
17705         either loop or basic block vectorization structure. Return FALSE
17706         if basic block SLP failed.
17707         (new_bb_vec_info): New function.
17708         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
17709         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
17710         (vect_schedule_slp): Add argument. Get SLP instances from either
17711         loop or basic block vectorization structure. Set vectorization factor
17712         to be 1 for basic block SLP.
17713         (vect_slp_transform_bb): New function.
17714         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
17715
17716 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
17717
17718         * final.c (shorten_branches): Do not align labels for jump tables.
17719         (final_scan_insn): Use JUMP_TABLE_DATA_P.
17720
17721 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
17722
17723         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
17724         Remove outdated reference to flow.c and fix nits.
17725         * doc/gccint.texi: Tweak RTL description.
17726         * doc/rtl.texi: Likewise.
17727
17728 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
17729
17730         * config/avr/avr.c: Change my email address.
17731         * config/avr/avr.h: Likewise.
17732         * config/avr/avr.md: Likewise.
17733         * config/avr/avr-protos.h: Likewise.
17734         * config/avr/libgcc.S: Likewise.
17735
17736 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
17737
17738         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
17739         (spu_split_load, spu_split_store): Change return type to int.
17740         (spu_split_convert): Declare.
17741         * config/spu/predicates.md (spu_mem_operand): Remove.
17742         (spu_mov_operand): Update.
17743         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
17744         * config/spu/spu.c (regno_aligned_for_load): Remove.
17745         (reg_aligned_for_addr, spu_expand_load): Define.
17746         (spu_expand_extv): Reimplement and handle MEM.
17747         (spu_expand_insv): Handle MEM.
17748         (spu_sched_reorder): Handle insn's with length 0.
17749         (spu_legitimate_address_p): Reimplement.
17750         (store_with_one_insn_p): Return TRUE for any mode with size
17751         larger than 16 bytes.
17752         (address_needs_split): Define.
17753         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
17754         operands.
17755         (spu_convert_move): Define.
17756         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
17757         (spu_split_store): Change all MEM's to TImode.
17758         (spu_init_expanders): Preallocate registers that correspond to
17759         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
17760         mark_reg_pointer.
17761         (spu_split_convert): Define.
17762         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
17763         (_move<mode>, _movdi, _movti): Update predicate and condition.
17764         (load, store): Change to define_split.
17765         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
17766         extend<mode>ti2.
17767         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
17768         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
17769         define_insn_and_split of lshr<mode>3.
17770         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
17771         (<v>ashr<mode>3_imm): Define.
17772         (extv, extzv, insv): Allow MEM operands.
17773         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
17774         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
17775         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
17776         (_spu_convert2): Change to define_insn_and_split and remove the
17777         corresponding define_peephole2.
17778         (stack_protect_set, stack_protect_test, stack_protect_test_si):
17779         Change predicates to memory_operand.
17780
17781 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
17782
17783         * config/arm/thumb2.md: Add 16-bit multiply instructions.
17784
17785 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
17786
17787         PR tree-optimization/40219
17788         * tree.c (iterative_hash_expr): Make sure the builtin function is
17789         a normal builtin function and not a front end or back end builtin
17790         before indexing into the built_in_decls array.
17791
17792 2009-05-22  Richard Guenther  <rguenther@suse.de>
17793
17794         PR middle-end/38964
17795         * alias.c (write_dependence_p): Do not use TBAA for answering
17796         anti-dependence or output-dependence.
17797         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
17798         (emit_pointer_definition): Remove.
17799         (emit_alias_warning): Likewise.
17800         (find_what_var_points_to): Remove TBAA pruning code.
17801         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
17802         violations.
17803         (compute_points_to_sets): Remove code computing the set of
17804         dereferenced pointers.
17805         * tree-data-ref.c (dr_may_alias_p): Properly use the split
17806         oracle for querying anti and output dependencies.
17807         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
17808         if TBAA may be applied.
17809         (refs_anti_dependent_p): New function.
17810         (refs_output_dependent_p): Likewise.
17811         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
17812         (refs_output_dependent_p): Likewise.
17813         * doc/tree-ssa.texi (Memory model): New section.
17814         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
17815         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
17816         * cfgexpand.c (expand_gimple_basic_block): Do not handle
17817         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
17818         * expr.c (expand_expr_real_1): Likewise.
17819         * gimple-low.c (lower_stmt): Likewise.
17820         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
17821         (dump_gimple_cdt): Remove.
17822         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
17823         (gimple_size): Likewise.
17824         (walk_gimple_op): Likewise.
17825         (is_gimple_stmt): Likewise.
17826         (walk_stmt_load_store_addr_ops): Likewise.
17827         (gimple_build_cdt): Remove.
17828         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
17829         * gimple.h (gimple_cdt_new_type): Remove.
17830         (gimple_cdt_new_type_ptr): Likewise.
17831         (gimple_cdt_set_new_type): Likewise.
17832         (gimple_cdt_location): Likewise.
17833         (gimple_cdt_location_ptr): Likewise.
17834         (gimple_cdt_set_location): Likewise.
17835         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
17836         * tree-cfg.c (remove_useless_stmts_1): Do not handle
17837         GIMPLE_CHANGE_DYNAMIC_TYPE.
17838         (verify_types_in_gimple_stmt): Likewise.
17839         * tree-inline.c (estimate_num_insns): Likewise.
17840         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
17841         (copy_decl_to_var): Likewise.
17842         (copy_result_decl_to_var): Likewise.
17843         * tree-pretty-print.c (dump_generic_node): Do not handle
17844         CHANGE_DYNAMIC_TYPE_EXPR.
17845         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
17846         * tree-ssa-operands.c (get_expr_operands): Likewise.
17847         * tree-ssa-structalias.c (struct variable_info): Remove
17848         no_tbaa_pruning member.
17849         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
17850         (unify_nodes): Do not copy it.
17851         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
17852         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
17853         (set_uids_in_ptset): Do not check it.
17854         (find_what_var_points_to): Likewise.
17855         (compute_tbaa_pruning): Remove.
17856         (compute_points_to_sets): Do not call it.
17857         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
17858         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
17859         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
17860         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
17861         (DECL_NO_TBAA_P): Likewise.
17862         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
17863         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
17864         (expand_omp_atomic_pipeline): Do not set it.
17865         * print-tree.c (print_node): Do not dump it.
17866         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
17867         redundant check.
17868
17869 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
17870
17871         PR target/39856
17872         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
17873         for clobber.
17874
17875 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
17876
17877         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
17878         non-external.
17879
17880 2009-05-22  Ben Elliston  <bje@au.ibm.com>
17881
17882         * Makefile.in (bversion.h, s-bversion): New targets.
17883         (TOPLEV_H): Add bversion.h.
17884         * toplev.h: Include "bversion.h".
17885         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
17886         the __format__ attribute only if compiling with the same version
17887         of GCC as the sources (the "build version").
17888
17889 2009-05-22  Ben Elliston  <bje@au.ibm.com>
17890
17891         * c-format.c (handle_format_attribute): Fix comment typo.
17892
17893 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
17894
17895         PR target/37846
17896         * config/ia64/ia64.opt (mfused-madd): New.
17897         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
17898         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
17899         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
17900         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
17901         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
17902         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
17903         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
17904         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
17905         instruction if !TARGET_FUSED_MADD.
17906         (fpma, fpms): Remove colon from name.
17907
17908 2009-05-22  Richard Guenther  <rguenther@suse.de>
17909
17910         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
17911         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
17912         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
17913         TARGET_MEM_REF.
17914         (create_expression_by_pieces): Only convert if necessary.
17915         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
17916         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
17917
17918 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
17919
17920         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
17921         regular pattern from a template and rename it ...
17922         (*extzv_truncsi_exts): ... to this.
17923
17924 2009-05-21  Richard Guenther  <rguenther@suse.de>
17925
17926         * cgraph.h (struct cgraph_node): Remove inline_decl member.
17927         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
17928         (cgraph_default_inline_p): Likewise.
17929         (cgraph_decide_inlining_incrementally): Likewise.
17930
17931 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
17932             Uros Bizjak  <ubizjak@gmail.com>
17933
17934         * config/i386/cpuid.h (bit_MOVBE): New.
17935
17936         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
17937
17938         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
17939         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
17940         (ix86_handle_option): Handle OPT_mmovbe.
17941         (ix86_target_string): Add -mmovbe.
17942         (pta_flags): Add PTA_MOVBE.
17943         (processor_alias_table): Add PTA_MOVBE to "atom".
17944         (override_options): Handle PTA_MOVBE.
17945
17946         * config/i386/i386.h (TARGET_MOVBE): New.
17947
17948         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
17949         (*bswapsi_movbe): New.
17950         (*bswapdi_movbe): Likewise.
17951         (bswapdi2): Renamed to ...
17952         (*bswapdi_1): This.
17953         (bswapdi2): New expander.
17954
17955         * config/i386/i386.opt (mmovbe): New.
17956
17957         * doc/invoke.texi: Document -mmovbe.
17958
17959 2009-05-21  Taras Glek  <tglek@mozilla.com>
17960
17961         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
17962         * gcc-plugin.h (plugin_init): Updated signature.
17963         * gcc-plugin.h (plugin_name_args): Moved to this header.
17964         * doc/plugins.texi (plugin_init): Updated documention to reflect
17965         API change.
17966         * doc/plugins.texi (plugin_name_args): Added to documention.
17967
17968 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
17969
17970         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
17971         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
17972
17973 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
17974
17975         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
17976         JUMP_TABLE_DATA_P predicates where applicable.
17977         * config/i386/predicates.md: Ditto.
17978         * config/i386/sse.md: Ditto.
17979
17980 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
17981
17982         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
17983         operand2 -128 override length_immediate attribute to 1.
17984         * config/i386/predicates.md (constm128_operand): New predicate.
17985
17986         * config/i386/i386.c (memory_address_length): Handle %r12
17987         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
17988         also check REGNO.
17989         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
17990         mode look through optional ZERO_EXTEND and SUBREG.
17991         * config/i386/i386.md (R12_REG): New define_constant.
17992         (prefix_data16): For sse unit set also for MODE_TI insns.
17993         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
17994         insns set if operand 1 is ext_QIreg_operand.
17995         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
17996         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
17997         immediate.
17998         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
17999         mode from MODE_DI to MODE_SI.
18000         (movdi_1_rex64): Override modrm and length_immediate attributes
18001         only for movabs (TYPE_IMOV, alternative 2).
18002         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
18003         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
18004         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
18005         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
18006         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
18007         prefix_rex attribute if DImode.
18008         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
18009         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
18010         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
18011         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
18012         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
18013         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
18014         Likewise.  For TYPE_IMOV clear length_immediate attribute.
18015         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
18016         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
18017         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
18018         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
18019         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
18020         or one operand TYPE_ISHIFT.
18021         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
18022         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
18023         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
18024         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
18025         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
18026         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
18027         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
18028         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
18029         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
18030         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
18031         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
18032         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
18033         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
18034         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
18035         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
18036         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
18037         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
18038         set mode attribute, don't override length attribute.
18039         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
18040         to 1.
18041         (return_internal_long): Set length attribute to 2 instead of 1.
18042         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
18043         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
18044         prefix_rex attribute.
18045         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
18046         New predicates.
18047         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
18048
18049 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18050
18051         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
18052
18053 2009-05-20  Ian Lance Taylor  <iant@google.com>
18054
18055         * tree.c (build_tree_list_vec_stat): New function.
18056         (ctor_to_vec): New function.
18057         (build_nt_call_vec): New function.
18058         (build_call_array): Change args to be a const pointer.
18059         (build_call_vec): New function.
18060         * tree.h (build_nt_call_vec): Declare.
18061         (build_tree_list_vec_stat): Declare.
18062         (build_tree_list_vec): Define.
18063         (build_call_array): Update declaration.
18064         (build_call_vec): Declare.
18065         (ctor_to_vec): Declare.
18066         * c-common.c (tree_vector_cache): New static variable.
18067         (make_tree_vector): New function.
18068         (release_tree_vector): New function.
18069         (make_tree_vector_single): New function.
18070         (make_tree_vector_copy): New function.
18071         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
18072         (make_tree_vector_single, make_tree_vector_copy): Declare.
18073         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
18074         (c_parser_expr_list): Don't manage cache here, instead call
18075         make_tree_vector.
18076         (c_parser_release_expr_list): Remove static function.
18077         (c_parser_vec_to_tree_list): Remove static function.
18078         (c_parser_attributes): Call build_tree_list_vec instead of
18079         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
18080         c_parser_release_expr_list.
18081         (c_parser_postfix_expression_after_primary): Likewise.
18082         (c_parser_objc_keywordexpr): Likewise.
18083
18084 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
18085
18086         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
18087         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
18088         TARGET_CONVERT_TO_TYPE.
18089         * hooks.c (hook_tree_const_tree_null): Define.
18090         * hooks.h (hook_tree_const_tree_null): Declare.
18091         * target.h (struct gcc_target):  Add invalid_parameter_type,
18092         invalid_return_type, promoted_type, and convert_to_type fields.
18093         * target-def.h (TARGET_INVALID_PARAMETER_TYPE): Define.
18094         (TARGET_INVALID_RETURN_TYPE): Define.
18095         (TARGET_PROMOTED_TYPE): Define.
18096         (TARGET_CONVERT_TO_TYPE): Define.
18097         (TARGET_INITIALIZER): Update for new fields.
18098         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
18099         (grokparms): Check targetm.invalid_parameter_type.
18100         * c-typeck.c (default_conversion): Check targetm.promoted_type.
18101         * c-convert.c (convert): Check targetm.convert_to_type.
18102
18103 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
18104
18105         * config/mips/mips.md (*extenddi_truncate<mode>,
18106         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
18107         defintions.
18108         (*extendhi_truncateqi): New define_insn_and_sptit.
18109
18110 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
18111
18112         PR middle-end/40204
18113         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
18114         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
18115
18116 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
18117
18118         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
18119         the operand of VIEW_CONVERT_EXPR.
18120
18121 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
18122
18123         * config/i386/driver-i386.c (host_detect_local_cpu): Check
18124         extended family and model for Intel processors.  Support Intel Atom.
18125
18126 2009-05-20  Olivier Hainque  <hainque@adacore.com>
18127
18128         * gstab.h (stab_code_type): Define, to be used instead of the
18129         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
18130         notice.
18131         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
18132         occurrences by stab_code_type.
18133         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
18134
18135 2009-05-20  Martin Jambor  <mjambor@suse.cz>
18136
18137         * tree-flow.h (insert_edge_copies_seq): Undeclare.
18138         (sra_insert_before): Likewise.
18139         (sra_insert_after): Likewise.
18140         (sra_init_cache): Likewise.
18141         (sra_type_can_be_decomposed_p): Likewise.
18142         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
18143         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
18144         (sra_insert_before): Likewise.
18145         (sra_insert_after): Likewise.
18146         (sra_init_cache): Likewise.
18147         (insert_edge_copies_seq): Made static and moved upwards.
18148
18149         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
18150         case.
18151
18152         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
18153
18154         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
18155         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
18156         simple copies.
18157
18158 2009-05-20  Richard Guenther  <rguenther@suse.de>
18159
18160         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
18161         with mismatched comparison modes.
18162
18163 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18164
18165         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
18166         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
18167         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
18168         with shifts for Thumb2.
18169         (orsi_notsi): New for orn.
18170         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
18171         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
18172         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
18173         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
18174         Don't invert remainder for IOR.
18175
18176 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
18177
18178         PR tree-optimization/40087
18179         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
18180         number_of_iterations_ne): Rename never_infinite argument.
18181         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
18182         number_of_iterations_le): Handle pointer-type ivs when
18183         exit_must_be_taken is false.
18184         (number_of_iterations_cond):  Do not always assume that
18185         exit_must_be_taken if the control variable is a pointer.
18186
18187 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18188
18189         * c-typeck.c (build_binary_op): Allow % on integal vectors.
18190         * doc/extend.texi (Vector Extension): Document that % is allowed too.
18191
18192 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
18193
18194         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
18195         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
18196
18197 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18198
18199         PR c/40172
18200         * c.opt (Wlogical-op): Disabled by default.
18201         * c-opt (c_common_post_options): Do not enable Wlogical-op with
18202         Wextra.
18203         * doc/invoke.texi (Wlogical-op): Likewise.
18204
18205 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
18206
18207         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
18208         into CASE_CONVERT.
18209         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
18210         Propagate the type of the first operand.
18211         <ASSERT_EXPR>: Simplify.
18212         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
18213         Rewrite using the RHS code as discriminant.
18214         <NOP_EXPR>: Turn into CASE_CONVERT.
18215         <PLUS_EXPR>: Propagate the type of the first operand.
18216
18217 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
18218
18219         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
18220         (ia64_dconst_0_375): New.
18221         * config/ia64/ia64.c (ia64_override_options): Remove
18222         -minline-sqrt-min-latency warning.
18223         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
18224         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
18225         * config/ia64/ia64.md (*sqrt_approx): Remove.
18226         (sqrtsf2): Remove #if 0.
18227         (sqrtsf2_internal_thr): Rewrite and move to div.md.
18228         (sqrtdf): Remove assert.
18229         (sqrtdf2_internal_thr): Rewrite and move to div.md.
18230         (sqrtxf2): Remove #if 0.
18231         (sqrtxf2_internal_thr): Rewrite and move to div.md.
18232         * div.md (sqrt_approx_rf): New.
18233         (sqrtsf2_internal_thr): New implementation.
18234         (sqrtsf2_internal_lat): New.
18235         (sqrtdf2_internal_thr: New implementation.
18236         (sqrtxf2_internal): New implementation.
18237
18238 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
18239             Hans-Peter Nilsson  <hp@axis.com>
18240
18241         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
18242         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
18243         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
18244         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
18245         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
18246         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
18247         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
18248         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
18249         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
18250         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
18251         * c-common.c: ...from here.
18252
18253 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18254
18255         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
18256
18257 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18258
18259         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
18260
18261 2009-05-19  Ben Elliston  <bje@au.ibm.com>
18262
18263         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
18264         assignments with memcpy calls.
18265         (add_fdes): Likewise.
18266         (binary_search_unencoded_fdes): Likewise.
18267         (linear_search_fdes): Eliminate type puns.
18268
18269 2009-05-19  Richard Guenther  <rguenther@suse.de>
18270
18271         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
18272         not falsely claim to have propagated into all uses.
18273
18274 2009-05-19  Ben Elliston  <bje@au.ibm.com>
18275
18276         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
18277         version to v3.0.
18278
18279 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
18280
18281         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
18282         * config/sh/sh.c (sh_legitimate_address_p): Make static.
18283         (TARGET_LEGITIMATE_ADDRESS_P): New.
18284         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18285         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
18286
18287 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
18288
18289         PR debug/40109
18290         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
18291         child of the containing namespace's DIE.
18292
18293 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
18294
18295         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
18296         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
18297         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
18298         extend patterns.
18299
18300 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
18301
18302         PR target/39942
18303         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
18304         gen_align with gen_pad.
18305         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
18306         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
18307
18308         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
18309         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
18310
18311         * config/i386/i386.md (align): Renamed to ...
18312         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
18313         ASM_OUTPUT_MAX_SKIP_PAD.
18314
18315 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
18316
18317         * config.gcc: Fix variable syntax.
18318
18319         PR target/39531
18320         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
18321         before calling exact_log2.
18322         (output_iorsi3): Likewise.
18323         (output_xorsi3): Likewise.
18324
18325 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
18326
18327         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
18328         for the none zero constant operand except for EQ and NE
18329         comprisons even when the first operand is R0.
18330
18331 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
18332
18333         * config/s390/2064.md: Remove trailing whitespaces.
18334         * config/s390/2084.md: Likewise.
18335         * config/s390/constraints.md: Likewise.
18336         * config/s390/fixdfdi.h: Likewise.
18337         * config/s390/libgcc-glibc.ver: Likewise.
18338         * config/s390/s390-modes.def: Likewise.
18339         * config/s390/s390-protos.h: Likewise.
18340         * config/s390/s390.c: Likewise.
18341         * config/s390/s390.h: Likewise.
18342         * config/s390/s390.md: Likewise.
18343         * config/s390/tpf-unwind.h: Likewise.
18344
18345 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
18346
18347         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
18348
18349 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
18350
18351         M68K TLS support.
18352         * configure.ac (m68k-*-*): Check if binutils support TLS.
18353         * configure: Regenerate.
18354         * config/m68k/predicates.md (symbolic_operand): Extend comment.
18355         * config/m68k/constraints.md (Cu): New constraint.
18356         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
18357         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
18358         (movsi): Handle TLS symbols.
18359         (addsi3_5200): Handle XTLS symbols, indent.
18360         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
18361         (m68k_tls_reference_p): Declare.
18362         (m68k_legitimize_address): Declare.
18363         (m68k_unwrap_symbol): Declare.
18364         * config/m68k/m68k.opt (mxtls): New option.
18365         * config/m68k/m68k.c (ggc.h): Include.
18366         (m68k_output_dwarf_dtprel): Implement hook.
18367         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
18368         (m68k_expand_prologue): Load GOT pointer when function needs it.
18369         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
18370         (m68k_legitimate_constant_address_p): Same.
18371         (m68k_decompose_address): Handle TLS references.
18372         (m68k_get_gp): New static function.
18373         (enum m68k_reloc): New contants.
18374         (TLS_RELOC_P): New macro.
18375         (m68k_wrap_symbol): New static function.
18376         (m68k_unwrap_symbol): New function.
18377         (m68k_final_prescan_insn_1): New static function.
18378         (m68k_final_prescan_insn): New function.
18379         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
18380         functions.
18381         (legitimize_pic_address): Handle TLS references..
18382         (m68k_tls_get_addr, m68k_get_tls_get_addr)
18383         (m68k_libcall_value_in_a0_p)
18384         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
18385         (m68k_call_m68k_read_tp): Helper variables and functions for ...
18386         (m68k_legitimize_tls_address): Handle TLS references.
18387         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
18388         New functions.
18389         (m68k_legitimize_address): Handle TLS symbols.
18390         (m68k_get_reloc_decoration): New static function.
18391         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
18392         UNSPEC_RELOC32.
18393         (m68k_output_dwarf_dtprel): Implement hook.
18394         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
18395         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
18396         m68k_call_* routines.
18397         (sched_attr_op_type): Handle TLS symbols.
18398         (gt-m68k.h): Include.
18399         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
18400         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
18401
18402 2009-05-18  Martin Jambor  <mjambor@suse.cz>
18403
18404         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
18405         (visit_store_addr_for_mod_analysis): New function.
18406         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
18407         (determine_cst_member_ptr): Use gimple_assign_single_p.
18408         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
18409         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
18410         operands.  Don't check number of operands of a NOP_EXPR.
18411
18412 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
18413
18414         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
18415
18416 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18417
18418         PR c/40172
18419         * c-common.c (warn_logical_operator): Don't warn if one of
18420         expression isn't always true or false.
18421
18422 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
18423
18424         * config/i386/biarch32.h: New file.
18425         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
18426
18427 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
18428
18429         * config/mips/mips.md (*zero_extend<mode>_trunchi,
18430         *zero_extend<mode>_truncqi): Merge these into ...
18431         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
18432         Name the pattern following this as *zero_extendhi_truncqi.
18433
18434 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
18435
18436         PR middle-end/39301
18437         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
18438         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
18439         (output_info): Make field HOST_WIDEST_INT.
18440         (print_statistics): Use HOST_WIDEST_INT_PRINT.
18441         (dump_bitmat_statistics): Same.
18442
18443 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
18444
18445         * config.gcc (use_gcc_stdint):  Set to wrap.
18446         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
18447         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
18448         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
18449         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
18450         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
18451         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
18452         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
18453         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
18454
18455 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
18456
18457         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
18458         tune_64.
18459         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
18460         Move definitions earlier.
18461         (OPT_ARCH64, OPT_ARCH32): Define.
18462         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
18463         and tune_64.
18464
18465 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
18466
18467         PR target/40153
18468         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
18469         implies.
18470
18471 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
18472
18473         * arm.md (movdi2): Copy non-reg values to DImode registers.
18474
18475 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
18476
18477         PR target/39942
18478         * final.c (label_to_max_skip): New function.
18479         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
18480         CODE_LABEL_NUMBER <= max_labelno.
18481         * output.h (label_to_max_skip): New prototype.
18482         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
18483         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
18484         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
18485         Handle CODE_LABELs with >= 16 byte alignment or with
18486         max_skip == (1 << align) - 1.
18487         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
18488         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
18489
18490         PR target/39942
18491         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
18492         .p2align 3 if MAX_SKIP is smaller than 7.
18493         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
18494
18495 2009-05-15  Ian Lance Taylor  <iant@google.com>
18496
18497         * alias.c (struct alias_set_entry_d): Rename from struct
18498         alias_set_entry.  Change all uses.
18499         * except.c (struct call_site_record_d): Rename from struct
18500         call_site_record.  Change all uses.
18501         * except.h (struct eh_region_d): Rename from struct eh_region.
18502         Change all uses.
18503         * gcse.c (struct hash_table_d): Rename from struct hash_table.
18504         Change all uses.
18505         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
18506         ivtype_map_elt.  Change all uses.
18507         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
18508         Change all uses.
18509         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
18510         * graphite.h (struct name_tree_d): Rename from struct name_tree.
18511         Change all uses.
18512         (struct sese_d): Rename from struct sese.  Change all uses.
18513         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
18514         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
18515         * optabs.h (struct optab_d): Rename from struct optab.  Change all
18516         uses.
18517         (struct convert_optab_d): Rename from struct convert_optab.
18518         Change all uses.
18519         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
18520         ipa_opt_pass.  Change all uses.
18521         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
18522         all uses.
18523
18524         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
18525         defined as a typedef.
18526         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
18527         defined as a tag.
18528
18529 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18530
18531         PR 16302
18532         * fold-const.c (make_range,build_range_check,merge_ranges): Move
18533         declaration to...
18534         (merge_ranges): Returns bool.
18535         * tree.h (make_range): .. to here.
18536         (build_range_check): Likewise.
18537         (merge_ranges): Likewise. Renamed from merge_ranges.
18538         * c-typeck.c (parser_build_binary_op): Update calls to
18539         warn_logical_operator.
18540         * c-common.c (warn_logical_operator): Add new warning.
18541         * c-common.h (warn_logical_operator): Update declaration.
18542
18543 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18544
18545         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
18546
18547 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18548
18549         * doc/install.texi: Document MPC requirements, flags etc.
18550
18551         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
18552         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
18553         Evaluate constant arguments.
18554         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
18555         (fold_builtin_1): Likewise, also evaluate constant arguments.
18556         Remove superfluous break.
18557         (do_mpc_ckconv): New.
18558         * real.h: Include mpc.h.
18559         * toplev.c (print_version): Output MPC version info if available.
18560
18561 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
18562
18563         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
18564
18565 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18566
18567         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
18568         only once.
18569
18570 2009-05-15  Jan Hubicka  <jh@suse.cz>
18571
18572         * doc/invoke.texi (max-early-inliner-iterations): New flag.
18573         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
18574         (try_inline): Fix return value.
18575         (cgraph_decide_inlining_incrementally): Honor new value.
18576         (cgraph_early_inlining): Handle indirect inlining.
18577         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
18578
18579 2009-05-15  Jan Hubicka  <jh@suse.cz>
18580
18581         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
18582         * cgraphunit.c (cgraph_finalize_function): Set it.
18583         (cgraph_expand_function): Use it.
18584
18585 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
18586
18587         * real.c (encode_ieee_half): Define.
18588         (decode_ieee_half): Define.
18589         (ieee_half_format): Define.
18590         (arm_half_format): Define.
18591         * real.h (ieee_half_format): Declare.
18592         (arm_half_format): Declare.
18593
18594 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
18595
18596         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
18597         swapped, and reversed optabs exist before trying to use them.
18598
18599 2009-05-15  Paul Brook  <paul@codesourcery.com>
18600             Sandra Loosemore  <sandra@codesourcery.com>
18601
18602         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
18603         loads.  Allow PRE_DEC.
18604         (output_move_neon): Handle PRE_DEC.
18605         (arm_print_operand): Add 'A' for neon structure loads.
18606         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
18607         * config/arm/neon.md (neon_mov): Update comment.
18608         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
18609         calls.
18610         (Um): New constraint.
18611
18612 2009-05-15  Jan Hubicka  <jh@suse.cz>
18613
18614         Revert the following patch until testsuite fallout is fixed:
18615         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
18616         * cgraph.h (struct inline_summary): New filed self_wize,
18617         size_inlining_benefit, self_time and time_inlining_benefit.
18618         (struct cgraph_global_info): Replace insns by time ans size fields.
18619         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
18620         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
18621         (ipcp_update_callgraph): Do not touch function bodies.
18622         * ipa-inline.c: Include except.h
18623         (MAX_TIME): New constant.
18624         (overall_insns): Remove
18625         (overall_size, max_benefit): New static variables.
18626         (cgraph_estimate_time_after_inlining): New function.
18627         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
18628         (cgraph_clone_inlined_nodes): Update size.
18629         (cgraph_mark_inline_edge): Update size.
18630         (cgraph_estimate_growth): Use size info.
18631         (cgraph_check_inline_limits): Check size.
18632         (cgraph_default_inline_p): Likewise.
18633         (cgraph_edge_badness): Compute badness based on benefit and size cost.
18634         (cgraph_decide_recursive_inlining): Check size.
18635         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
18636         and times.
18637         (cgraph_decide_inlining): Likewise.
18638         (cgraph_decide_inlining_incrementally): Likewise; honor
18639         PARAM_EARLY_INLINING_INSNS.
18640         (likely_eliminated_by_inlining_p): New predicate.
18641         (estimate_function_body_sizes): New function.
18642         (compute_inline_parameters): Use it.
18643         * except.c (must_not_throw_labels): New function.
18644         * except.h (must_not_throw_labels): Declare.
18645         * tree-inline.c (init_inline_once): Kill inlining_weigths
18646         * tree-ssa-structalias.c: Avoid uninitialized warning.
18647         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
18648         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
18649         (PARAM_INLINE_CALL_COST): Remove.
18650         (PARAM_EARLY_INLINING_INSNS): New.
18651
18652 2009-05-15  Richard Guenther  <rguenther@suse.de>
18653
18654         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
18655         not TODO_update_ssa.
18656
18657 2009-05-15  Richard Guenther  <rguenther@suse.de>
18658
18659         PR tree-optimization/39999
18660         * gimple.h (gimple_expr_type): Use the expression type looking
18661         through useless conversions.
18662         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
18663         (vn_nary_op_insert_stmt): Likewise.
18664         (simplify_binary_expression): Likewise.
18665
18666 2009-05-15  Richard Guenther  <rguenther@suse.de>
18667
18668         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
18669         New options, enabled by default.
18670         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
18671         Document.
18672         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
18673         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
18674         * tree-ssa-structalias.c (gate_tree_pta): New function.
18675         (pass_build_alias): Use it.
18676
18677 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
18678
18679         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
18680         recurse on an invariant address if a conversion from a pointer
18681         type to a wider integer type is involved.
18682
18683 2009-05-15  Jan Hubicka  <jh@suse.cz>
18684
18685         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
18686         * cgraph.h (struct inline_summary): New filed self_wize,
18687         size_inlining_benefit, self_time and time_inlining_benefit.
18688         (struct cgraph_global_info): Replace insns by time ans size fields.
18689         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
18690         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
18691         (ipcp_update_callgraph): Do not touch function bodies.
18692         * ipa-inline.c: Include except.h
18693         (MAX_TIME): New constant.
18694         (overall_insns): Remove
18695         (overall_size, max_benefit): New static variables.
18696         (cgraph_estimate_time_after_inlining): New function.
18697         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
18698         (cgraph_clone_inlined_nodes): Update size.
18699         (cgraph_mark_inline_edge): Update size.
18700         (cgraph_estimate_growth): Use size info.
18701         (cgraph_check_inline_limits): Check size.
18702         (cgraph_default_inline_p): Likewise.
18703         (cgraph_edge_badness): Compute badness based on benefit and size cost.
18704         (cgraph_decide_recursive_inlining): Check size.
18705         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
18706         and times.
18707         (cgraph_decide_inlining): Likewise.
18708         (cgraph_decide_inlining_incrementally): Likewise; honor
18709         PARAM_EARLY_INLINING_INSNS.
18710         (likely_eliminated_by_inlining_p): New predicate.
18711         (estimate_function_body_sizes): New function.
18712         (compute_inline_parameters): Use it.
18713         * except.c (must_not_throw_labels): New function.
18714         * except.h (must_not_throw_labels): Declare.
18715         * tree-inline.c (init_inline_once): Kill inlining_weigths
18716         * tree-ssa-structalias.c: Avoid uninitialized warning.
18717         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
18718         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
18719         (PARAM_INLINE_CALL_COST): Remove.
18720         (PARAM_EARLY_INLINING_INSNS): New.
18721         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
18722         (inline-call-cost): Remove.
18723         (early-inlining-insns): New.
18724
18725 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
18726
18727         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
18728         for bounds.
18729         (print_int_cst_bounds_in_octal_p): Likewise.
18730         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
18731         with subtypes.
18732         * dwarf2out.c (base_type_die): Likewise.
18733         (is_subrange_type): Delete.
18734         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
18735         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
18736         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
18737         if the destination type is boolean.
18738         (build_range_check): Do not special-case subtypes.
18739         (fold_sign_changed_comparison): Likewise.
18740         (fold_unary): Likewise.
18741         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
18742         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
18743         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
18744         * tree.c (subrange_type_for_debug_p): New predicate based on the
18745         former is_subrange_type.
18746         * tree.h (subrange_type_for_debug_p): Declare.
18747         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
18748         (convert_affine_scev): Remove call to above function.
18749         (chrec_convert_aggressive): Likewise.
18750         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
18751         false for conversions involving subtypes.
18752         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
18753         (vrp_val_min): Likewise.
18754         (needs_overflow_infinity): Likewise.
18755         (extract_range_from_unary_expr): Likewise.
18756
18757 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
18758
18759         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
18760         * config/frv/frv.c: Likewise.
18761         * config/s390/s390.c: Likewise.
18762         * config/sparc/sparc.h: Likewise.
18763         * config/i386/i386.h: Likewise.
18764         * config/i386/i386.c: Likewise.
18765         * config/crx/crx.c: Likewise.
18766         * config/m68hc11/m68hc11.h: Likewise.
18767         * config/iq2000/iq2000.c: Likewise.
18768         * config/mn10300/mn10300.h: Likewise.
18769         * config/mn10300/mn10300.c: Likewise.
18770         * config/m68k/m68k.c: Likewise.
18771         * config/rs6000/rs6000.c: Likewise.
18772         * config/rs6000/xcoff.h: Likewise.
18773         * config/rs6000/linux64.h: Likewise.
18774         * config/rs6000/sysv4.h: Likewise.
18775         * config/score/score3.c: Likewise.
18776         * config/score/score7.c: Likewise.
18777         * config/score/score.c: Likewise.
18778         * config/arm/arm.md: Likewise.
18779         * config/mips/mips.c: Likewise.
18780         * config/mips/mips.md: Likewise.
18781         * config/bfin/bfin.h: Likewise.
18782         * config/pa/pa.c: Likewise.
18783         * config/pa/constraints.md: Likewise.
18784
18785         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
18786         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
18787         * config/pdp11/pdp11.h: Use memory_address_p instead.
18788
18789 2009-05-14  Ian Lance Taylor  <iant@google.com>
18790
18791         * passes.c (finish_optimization_passes): Change i to int.
18792         * plugin.c (plugins_active_p): Change event to int.
18793         (dump_active_plugins): Likewise.
18794         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
18795         Add cast.
18796         * tree.c (tree_range_check_failed): Change c to unsigned int.
18797         (omp_clause_range_check_failed): Likewise.
18798         (build_common_builtin_nodes): Change mode to int.  Add cast.
18799         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
18800         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
18801
18802         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
18803         ++ or -- with a variable of enum type.
18804
18805 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
18806
18807         PR driver/40144
18808         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
18809
18810 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
18811
18812         * store-motion.c: Do not include params.h
18813         * Makefile.in: Fix dependencies for various files.
18814
18815 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
18816
18817         * auto-inc-dec.c: Fix pass description, remove apparent
18818         accidental duplication.
18819
18820 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18821
18822         PR middle-end/40147
18823         * ipa-utils.h (memory_identifier_string): Moved to ...
18824         * tree.h (memory_identifier_string): Here.  Add GTY(()).
18825
18826 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
18827
18828         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
18829         in the former documentation of...
18830         (GO_IF_LEGITIMATE_ADDRESS): ... this.
18831         * ira-conflicts.c (get_dup_num): Use address_operand.
18832         * targhooks.c (default_legitimate_address_p): New.
18833         * targhooks.h (default_legitimate_address_p): New.
18834         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
18835         Call hook.
18836         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
18837         * target.h (struct target): Add legitimate_address_p.
18838         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
18839         (TARGET_INITIALIZER): Include it.
18840
18841         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18842         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
18843         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
18844         (TARGET_LEGITIMATE_ADDRESS_P): New.
18845
18846         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18847         (REG_OK_STRICT_P): Delete.
18848         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
18849         (frv_legitimate_address_p_1): ... this.
18850         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
18851         (frv_legitimate_address_p_1): ... the renamed old
18852         frv_legitimate_address_p.
18853         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
18854         (TARGET_LEGITIMATE_ADDRESS_P): New.
18855
18856         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18857         * config/s390/s390-protos.h (legitimate_address_p): Remove.
18858         * config/s390/s390.c (legitimate_address_p): Rename to...
18859         (s390_legitimate_address_p): ... this, make static.
18860         (legitimize_address): Adjust call.
18861         (TARGET_LEGITIMATE_ADDRESS_P): New.
18862         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
18863
18864         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18865         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
18866         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
18867         (TARGET_LEGITIMATE_ADDRESS_P): New.
18868
18869         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18870         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
18871         * config/spu/spu.c (spu_legitimate_address): Rename to...
18872         (spu_legitimate_address_p): ... this, make static.
18873         (TARGET_LEGITIMATE_ADDRESS_P): New.
18874
18875         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18876         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
18877         * config/sparc/sparc.c (legitimate_address_p): Rename to...
18878         (sparc_legitimate_address_p): ... this, make static and return bool.
18879         (legitimize_address): Adjust call.
18880         (TARGET_LEGITIMATE_ADDRESS_P): New.
18881
18882         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18883         * config/i386/i386-protos.h (legitimate_address_p): Remove.
18884         * config/i386/i386.c (legitimate_address_p): Rename to...
18885         (ix86_legitimate_address_p): ... this, make static.
18886         (constant_address_p): Move after it, adjust call.
18887         (TARGET_LEGITIMATE_ADDRESS_P): New.
18888
18889         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18890         * config/avr/avr-protos.h (legitimate_address_p): Remove.
18891         * config/avr/avr.c (legitimate_address_p): Rename to...
18892         (avr_legitimate_address_p): ... this, make static.
18893         (legitimize_address): Adjust call.
18894         (TARGET_LEGITIMATE_ADDRESS_P): New.
18895
18896         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18897         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
18898         * config/crx/crx.c (crx_legitimate_address_p): Make static.
18899         (TARGET_LEGITIMATE_ADDRESS_P): New.
18900
18901         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18902         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
18903         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
18904         (TARGET_LEGITIMATE_ADDRESS_P): New.
18905
18906         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18907         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
18908         Remove.
18909         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
18910         Make static.
18911         (TARGET_LEGITIMATE_ADDRESS_P): New.
18912
18913         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18914         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
18915         Remove.
18916         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
18917         Rename to...
18918         (m68hc11_legitimate_address_p): ... this, make static.
18919         (go_if_legitimate_address_internal): Rename to...
18920         (m68hc11_legitimate_address_p_1): ... this.
18921         (legitimize_address): Adjust call.
18922         (TARGET_LEGITIMATE_ADDRESS_P): New.
18923
18924         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18925         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
18926         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
18927         (TARGET_LEGITIMATE_ADDRESS_P): New.
18928
18929         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18930         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
18931         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
18932         (mn10300_legitimate_address_p): ... this, make static.
18933         (TARGET_LEGITIMATE_ADDRESS_P): New.
18934
18935         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18936         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
18937         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
18938         (TARGET_LEGITIMATE_ADDRESS_P): New.
18939
18940         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18941         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
18942         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
18943         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18944         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
18945         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
18946         (rs6000_legitimate_address_p): ... this, make static.
18947         (TARGET_LEGITIMATE_ADDRESS_P): New.
18948         (REG_MODE_OK_FOR_BASE_P): Delete.
18949         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
18950
18951         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18952         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
18953         Delete.
18954         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
18955         static, adjust types.
18956         (TARGET_LEGITIMATE_ADDRESS_P): New.
18957
18958         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18959         * config/score/score.c (score_address_p): Rename to...
18960         (score_legitimate_address_p): ... this.
18961         (TARGET_LEGITIMATE_ADDRESS_P): New.
18962         * config/score/score3.c (score3_address_p): Rename to...
18963         (score3_legitimate_address_p): ... this.
18964         * config/score/score7.c (score7_address_p): Rename to...
18965         (score7_legitimate_address_p): ... this.
18966
18967         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
18968         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
18969         GO_IF_LEGITIMATE_ADDRESS): Delete.
18970         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
18971         thumb2_legitimate_address_p): Delete.
18972         (arm_legitimate_address_p): Rename to...
18973         (arm_legitimate_address_outer_p): ... this.
18974         * config/arm/constraints.md ("Uq"): Adjust call.
18975         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
18976         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
18977         to...
18978         (arm_legitimate_address_outer_p): ... this.
18979         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
18980         static.
18981         (TARGET_LEGITIMATE_ADDRESS_P): New.
18982
18983         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18984         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
18985         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
18986         (TARGET_LEGITIMATE_ADDRESS_P): New.
18987
18988         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18989         * config/vax/vax-protos.h (legitimate_address_p): Remove.
18990         * config/vax/vax.c (legitimate_address_p): Rename to...
18991         (vax_legitimate_address_p): ... this, make static.
18992         (TARGET_LEGITIMATE_ADDRESS_P): New.
18993
18994         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18995         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
18996         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
18997         (TARGET_LEGITIMATE_ADDRESS_P): New.
18998
18999         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19000         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
19001         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
19002         (mmix_legitimate_address_p): ... this, make static.
19003         (TARGET_LEGITIMATE_ADDRESS_P): New.
19004
19005         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
19006         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
19007         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
19008         (TARGET_LEGITIMATE_ADDRESS_P): New.
19009
19010 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
19011
19012         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
19013         of MODE_COMPLEX_INT.
19014
19015 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19016
19017         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
19018         LCT_NORMAL in function call.
19019         * mips-tdump.c (print_file_desc): Add cast to enum type.
19020         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
19021         (mark_stabs): Add casts to enum types.
19022         (parse_stabs_common): Add casts to enum types.
19023
19024 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
19025
19026         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
19027         Check for invalid values of LETTER.
19028
19029 2009-05-13  Taras Glek  <tglek@mozilla.com>
19030
19031         * attribs.c (register_attribute): moved out attribute registration
19032         into register_attribute.
19033         * doc/plugins.texi: Documented register_attribute and
19034         PLUGIN_ATTRIBUTES.
19035         * gcc-plugin.h: Added forward decl for register_attribute.
19036         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
19037         * plugin.c (register_callback, invoke_plugin_callbacks): Added
19038         PLUGIN_ATTRIBUTES boilerplate.
19039
19040 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
19041
19042         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
19043         values even in sentinel and empty entries.
19044         (ms_printf_flag_specs):  Likewise.
19045         (ms_scanf_flag_specs):  Likewise.
19046         (ms_strftime_flag_specs):  Likewise.
19047         (ms_print_char_table):  Likewise.
19048         (ms_scan_char_table):  Likewise.
19049         (ms_time_char_table):  Likewise.
19050
19051 2009-05-13  Doug Kwan  <dougkwan@google.com>
19052
19053         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
19054
19055 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
19056
19057         * config/mips/mips.md (store): Add attributes for QI and HI.
19058         Update comment.
19059         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
19060         (truncdi<mode>2): ... this new pattern.
19061
19062 2009-05-13  Brad Hards  <bradh@kde.org>
19063
19064         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
19065
19066 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
19067             Ben Elliston <bje@au.ibm.com>
19068
19069         PR middle-end/40035
19070         * dse.c (check_mem_read_rtx): Guard against width == -1.
19071
19072 2009-05-13  Michael Matz  <matz@suse.de>
19073
19074         PR middle-end/39976
19075         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
19076         (trivially_conflicts_p): New function.
19077         (insert_backedge_copies): Use it.
19078
19079 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
19080
19081         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
19082         (handle_stdc_pragma): Use new enum constant names.
19083         (handle_pragma_float_const_decimal64): Ditto.
19084
19085 2009-05-13  Ian Lance Taylor  <iant@google.com>
19086
19087         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
19088         tree.def.
19089
19090 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
19091
19092         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
19093         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
19094         multilibs.
19095         * config/m68k/m68k.h (FL_UCLINUX): Define.
19096
19097 2009-05-13  Jan Hubicka  <jh@suse.cz>
19098
19099         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
19100
19101 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
19102
19103         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
19104         unless -fschedule-insns is specified.
19105
19106 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
19107
19108         PR target/39561
19109         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
19110         TARGET_EXPAND_CBRANCHDI4.
19111         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
19112         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
19113         (cmpeqdi): Fix comment.
19114
19115 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
19116
19117         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
19118         (sh_legitimate_address_p): Likewise.
19119         * config/sh/sh.c (sh_legitimate_index_p): New.
19120         (sh_legitimate_address_p): Likewise.
19121         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
19122         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
19123         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
19124         (MAYBE_BASE_REGISTER_RTX_P): New macro.
19125         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
19126         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
19127         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
19128         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
19129         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
19130
19131 2009-05-12  Jan Hubicka  <jh@suse.cz>
19132
19133         * tree-inline.c (estimate_operator_cost): Add operands;
19134         when division happens by constant, it is cheap.
19135         (estimate_num_insns): Loads and stores are not having cost of 0;
19136         EH magic stuff is cheap; when computing runtime cost of switch,
19137         use log2 base of amount of its cases; builtin_expect has cost of 0;
19138         compute cost for moving return value of call.
19139         (init_inline_once): Initialize time_based flags.
19140         * tree-inline.h (eni_weights_d): Add time_based flag.
19141
19142 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
19143
19144         * df-core.c: Update head documentation.
19145
19146 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
19147
19148         PR bootstrap/40118
19149         * rs6000.c (rs6000_generate_compare): Use op1b instead of
19150         shadowing exisiting variable op1.
19151
19152 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
19153
19154         PR target/37179
19155         * config/i386/driver-i386.c (processor_signatures): New enum.
19156         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
19157         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
19158         processor signature to detect geode processor.
19159
19160 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
19161
19162         Revert:
19163
19164         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
19165
19166         * optabs.c (prepare_cmp_insn): Temporarily disable test that
19167         causes spurious differences between trunk and cond-optab branch.
19168
19169 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
19170
19171         * dojump.c (compare_from_rtx): Delete.
19172         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
19173         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
19174         if the comparison does not satisfy the predicate; test predicates for
19175         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
19176         further if one existing pattern fails.
19177         * expr.h (compare_from_rtx): Delete.
19178         (prepare_operand): Declare it.
19179         * optabs.c: Change "lib call" to "libcall" throughout.
19180         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
19181         HAVE_conditional_trap, emit_cmp_insn): Delete.
19182         (can_compare_p): Delete cmp_optab case.
19183         (prepare_float_lib_cmp): Return an rtx and a machine mode.
19184         Accept other parameters by value.
19185         (prepare_operand): Make non-static.
19186         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
19187         other parameters by value.  Try to widen operands here based on
19188         an optab_methods argument and looking at cbranch_optab.
19189         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
19190         loop.  Use cbranch_optab directly.
19191         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
19192         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
19193         assertion.
19194         (emit_conditional_move, emit_conditional_add): Inline what's needed
19195         of compare_from_rtx, using new prepare_cmp_insn for the rest.
19196         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
19197         with COMPARE.  Move cmov_optab and cstore_optab above
19198         with cbranch_optab, move cmp_optab down with ucmp_optab,
19199         remove tst_otpab.  Do not initialize trap_rtx.
19200         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
19201         for trap code.  Do not check HAVE_conditional_trap.  Use
19202         prepare_cmp_insn.  Accept no predicate for operand 3.
19203         * optabs.h (OTI_cmp): Mark as used only for libcalls.
19204         (OTI_ctrap, ctrap_optab): New.
19205         (tst_optab): Delete.
19206         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
19207         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
19208         with lookup of ctrap_optab.
19209         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
19210         Delete.
19211         (ctrap_optab): New.
19212
19213         * combine.c (combine_simplify_rtx, simplify_set): Do not
19214         special case comparing against zero for cc0 machines.
19215         * simplify-rtx.c (simplify_binary_operation_1): Never remove
19216         COMPARE on cc0 machines.
19217         (simplify_relational_operation): Return a new expression when
19218         a COMPARE could be removed.
19219         * final.c (final_scan_insn): Compare cc_status values
19220         against LHS of a (compare FOO (const_int 0)) cc0 source.
19221         Also check if cc_status.value is the full compare.
19222
19223         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
19224         (cstoreMM4): Document.
19225         (conditional_trap): Document ctrapMM4 instead.
19226         (sync_compare_and_swapMM): Refer to cbranchcc4.
19227         (Dependent Patterns): Eliminate obsolete information referring to
19228         the old jump optimization phase.
19229         (Canonicalization): Include cbranchcc4 case, omit canonicalization
19230         of compares with 0 on cc0 machines.
19231         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
19232         avoiding references to cc0.  Remove text about storing operands
19233         in cmpMM.
19234         * doc/tm.texi (Condition Codes): Include blurb on different
19235         condition code representations, separate into subsections for
19236         CC0, MODE_CC and conditional execution.
19237
19238         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
19239         alpha_emit_setcc): Accept operands and a machine mode.
19240         * config/alpha/alpha.c (alpha_emit_conditional_branch):
19241         Get code/op0/op1 from operands, use machine mode argument
19242         instead of alpha_compare.fp_p.  Emit the branch here.
19243         (alpha_emit_setcc): Likewise, and return boolean.
19244         (alpha_emit_conditional_move): Likewise.  Assert that
19245         cmp_op_mode == cmp_mode, and simplify accordingly.
19246         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
19247         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
19248         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
19249         Delete.
19250         (stack probe test): Use cbranchdi4.
19251         * config/alpha/predicates.md (alpha_cbranch_operator): New.
19252
19253         * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
19254         * config/arc/arc.h (movsicc, movsfcc): Use it.
19255         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
19256         (cbranchsi4, cstoresi4): New.
19257         (cmpsi, bCC and sCC expanders): Remove.
19258
19259         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
19260         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
19261         * config/arm/predicates.md (arm_comparison_operator): Only include
19262         floating-point operators if there is a hardware floating-point unit.
19263         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
19264         deferring to cbranch_cc and cstore_cc respectively.
19265         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
19266         cbranch_cc, cstore_cc): New.
19267         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
19268         arm_compare_op1.
19269         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
19270
19271         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
19272         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
19273         as an argument.
19274         (adjust_insn_length): Adjust calls.
19275         (avr_reorg): Handle (compare (foo) (const_int 0)).
19276         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
19277         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
19278         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
19279         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
19280         (bCC): Remove.
19281         (cbranchqi4, cbranchhi4, cbranchsi4): New.
19282         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
19283
19284         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
19285         (cbranchsi4, cstorebi4, cstoresi4): New.
19286         (movbisi): This insn is duplicate, split it to zero_extend.
19287         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
19288         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
19289         (bfin_optimize_loop): Use cbranch expander.
19290         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
19291         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
19292         (bfin_bimode_comparison_operator): ... this.
19293         (bfin_direct_comparison_operator): New.
19294
19295         * config/cris/cris.c (cris_normal_notice_update_cc): Look
19296         inside (compare FOO (const_int 0)).
19297         (cris_rtx_costs): Handle ZERO_EXTRACT.
19298         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
19299         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
19300         (*tstdi_v32): Delete.
19301         (*cmpdi_non_v32): Add M alternative for operand 1.
19302         (cmpsi, cmp<mode>): Make private.
19303         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
19304         with COMPARE.
19305         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
19306
19307         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
19308         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
19309         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
19310         (cc_reg_operand): New.
19311         (any_cond): Delete.
19312         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
19313         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
19314         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
19315         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
19316         crx_expand_scond): Delete.
19317
19318         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
19319         (cbranchsi4): New.
19320         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
19321         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
19322
19323         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
19324         cstoresi4, cstoresf4, cstoredf4): New.
19325         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
19326         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
19327         Receive the entire operands array.
19328         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
19329         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
19330         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
19331         Get test/op0/op1 from the operands array.
19332         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
19333
19334         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
19335         (h8300_expand_store): New.
19336         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
19337         (const_int 0)).
19338         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
19339         (h8300_expand_store): New.
19340         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
19341         or do not try to produce (set (cc0) REG).
19342         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
19343         change a compare into a move to a scratch register.  Disable some
19344         peepholes when comparing with zero.
19345         (tstsi, tsthi, tstsi, cmpqi): Make private.
19346         (cmphi): Delete.
19347         (bCC, sCC): Delete.
19348         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
19349         cstoresi4): New.
19350
19351         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
19352         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
19353         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
19354         (ix86_emit_i387_log1p): Use cbranchxf2.
19355         (ix86_expand_setcc): Return void.
19356         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
19357         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
19358         cmp<MODEF>, cmpcc): Remove.
19359         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
19360         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
19361         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
19362         (sCC and bCC expanders): Remove.
19363         (stack_protect_test): Use cbranchcc4.
19364
19365         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
19366         Delete.
19367         (ia64_expand_compare): Accept three rtx by reference and return void.
19368         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
19369         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
19370         from *expr.  Update *expr with the BImode comparison to do.
19371         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
19372         cmptf, bCC, sCC, conditional_trap): Delete.
19373         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
19374         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
19375         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
19376         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
19377         * config/ia64/predicates.md (ia64_cbranch_operator): New.
19378
19379         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
19380         type of last argument.
19381         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
19382         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
19383         use machine mode argument instead of branch_type.  Remove dead
19384         code for floating-point comparisons.
19385         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
19386         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
19387         Remove.
19388         (cbranchsi4, cstoresi4): New.
19389         * config/iq2000/predicates.md (reg_or_const_operand): New.
19390
19391         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
19392         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
19393         (b<code>_op): Rewrite to...
19394         (bcc_op): ... this, using match_operator.
19395         (s<code>_op): Rewrite to...
19396         (scc_op): ... this, using match_operator.
19397         (s<code>_24_op): Rewrite to...
19398         (scc_op_24): ... this, using match_operator.
19399         (s<code>_<mode>): Rewrite to...
19400         (cstore<mode>4): ... this, using match_operator.
19401         (s<code>_<mode>_24): Rewrite to...
19402         (cstore<mode>4_24): ... this, using match_operator.
19403         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
19404         m32c_unpend_compare, m32c_expand_scc): Delete.
19405         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
19406         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
19407         (m32c_expand_movcc): Change NE to EQ if necessary.
19408         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
19409
19410         * config/m32r/m32r-protos.h (gen_cond_store): New.
19411         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
19412         (gen_cond_store): New, from sCC patterns.
19413         (m32r_expand_block_move): Use cbranchsi4.
19414         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
19415         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
19416         (cbranchsi4, cstoresi4): New.
19417
19418         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
19419         Delete.
19420         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
19421         (m68hc11_notice_update_cc): Look into a compare with 0.
19422         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
19423         Delete.
19424         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
19425         cmphi, cmpqi, bCC): Delete.
19426         (cbranchsi4, cbranchhi4, cbranchqi4): New.
19427         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
19428         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
19429         sets with COMPARE.
19430
19431         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
19432         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
19433         * config/m68k/constraints.md (H): New.
19434         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
19435         the define_insn below.
19436         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
19437         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
19438         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
19439         patterns): Wrap RHS with COMPARE.
19440         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
19441         (*cmpdi_internal): Name this pattern.
19442         (cmpdi): Change to define_insn.
19443         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
19444         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
19445         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
19446         predicate.
19447         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
19448         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
19449         (conditional_trap): Change to...
19450         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
19451         (*conditional_trap): Use the ordered_comparison_operator and
19452         const1_operand predicates.
19453         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
19454         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
19455         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
19456         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
19457
19458         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
19459         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
19460         (mcore_gen_compare): New.
19461         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
19462         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
19463         (mcore_gen_compare): ... this.
19464         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
19465         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
19466         (stack probe pattern): Use cbranchsi4.
19467
19468         * config/mips/predicates.md (mips_cstore_operator): New.
19469         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
19470         * config/mips/mips.md (any_cond): Delete.
19471         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
19472         always succeed.
19473         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
19474         fixuns_truncsfdi2): Use cbranch patterns.
19475         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
19476         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
19477         Adjust call to mips_expand_conditional_branch.
19478         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
19479         cstore<GPR:mode>4.
19480         * config/mips/mips-protos.h (mips_expand_conditional_branch,
19481         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
19482         * config/mips/mips.c (cmp_operands): Delete.
19483         (mips_emit_compare): Get comparison operands from *op0/*op1.
19484         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
19485         that it succeeds.  Use op0/op1 instead of cmp_operands.
19486         (mips_expand_conditional_branch, mips_expand_conditional_move,
19487         mips_expand_conditional_trap): Likewise.
19488         (mips_block_move_loop): Use cbranch patterns.
19489         * config/mips/mips.h (cmp_operands): Delete.
19490
19491         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
19492         (mmix_gen_compare_reg): Just return a register in the right CC mode.
19493         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
19494         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
19495         (*cmpcc_folded): Rename to...
19496         (*cmpdi_folded): this.
19497         (*cmpcc): Rename to...
19498         (*cmps): ... this.
19499         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
19500         (bCC): Remove.
19501         (cbranchdi4): New.
19502         (cbranchdf4): New.  Handle invalid comparisons here.
19503         * config/mmix/predicates.md (float_comparison_operator): New.
19504
19505         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
19506         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
19507         * config/mn10300/mn10300.md (tst): Delete.
19508         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
19509         Name these patterns and wrap RHS in a compare.
19510         (*cmpsi): Make this pattern private.  Include tst.
19511         (*cmpsf): Make this pattern private.
19512         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
19513         (compare with zero peepholes): Likewise.
19514         (bCC): Remove.
19515         (cbranchsi4, cbranchsf4): New.
19516         (casesi): Use cbranchsi4.
19517
19518         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
19519         hppa_branch_type): Delete.
19520         (return_addr_rtx): Use cbranchsi4.
19521         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
19522         Emit CCFPmode comparison here.
19523         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
19524         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
19525         hppa_branch_type): Delete.
19526         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
19527         (movsicc, movdicc): Remove references to hppa_compare_op0,
19528         hppa_compare_op1 and compare_from_rtx.
19529         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
19530         (casesi): Use cbranchsi4.
19531
19532         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
19533         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
19534         * config/pdp11/pdp11.md (register_or_const0_operand): New.
19535         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
19536         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
19537         (bCC): Delete.
19538         (cbranchdf4, cbranchhi4, cbranchqi4): New.
19539         (*branch, *branch_inverted): New.
19540
19541         * config/picochip/picochip.md (cbranchhi4): Use
19542         ordered_comparison_operator.
19543         (cmphi, bCC): Remove.
19544
19545         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
19546         (trap_comparison_operator): Delete.
19547         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
19548         rs6000_emit_cbranch): Accept mode and operands.
19549         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
19550         rs6000_compare_fp_p): Delete.
19551         (rs6000_generate_compare): Accept mode and comparison.  Extract code
19552         and op0/op1 from there.  Replace references to rs6000_compare_op0
19553         and rs6000_compare_op1.
19554         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
19555         extract result from passed operands.
19556         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
19557         extract loc from passed operands.
19558         (rs6000_emit_cmove): Likewise.
19559         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
19560         rs6000_compare_fp_p): Delete.
19561         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
19562         (cbranch<GPR>4, cbranch<FP>4): New.
19563         (cstore<mode>4): New.  Consolidate here all choices about when to use
19564         portable or specialized sCC sequences.
19565         (stack_protect_test): Use cbranchsi4.
19566         (conditional_trap): Replace with ctrap<GPR>4.
19567         (conditional trap insn): Replace trap_comparison_operator with
19568         ordered_comparison_operator.
19569
19570         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
19571         (s390_emit_prologue): Use ctrap.
19572         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
19573         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
19574         New predicates replacing...
19575         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
19576         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
19577         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
19578         (add<mode>cc): Do not use s390_compare_op0/op1.
19579         (s<code>): Change to...
19580         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
19581         (seq): Change to...
19582         (cstorecc4): ... this.  Handle EQ or NE equally.
19583         (*sne): Un-privatize for use in cstorecc4.
19584         (b<code>): Change to...
19585         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
19586         (conditional_trap): Replace with...
19587         (ctrap<GPR>4, ctrap<FP>4): ... these.
19588         (stack_protect): Use cbranchcc4.
19589
19590         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
19591         * config/score/score-protos.h (score_gen_cmp): Delete.
19592         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
19593         (score_block_move-loop): Use cbranchsi4.
19594         * config/score/score.md (cbranchsi4): New.
19595         (cmpsi, bCC): Delete.
19596         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
19597         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
19598         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
19599         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
19600         * config/score/score3.h (score3_gen_cmp): Delete.
19601         * config/score/score7.h (score7_gen_cmp): Delete.
19602
19603         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
19604         (sh_emit_scc_to_t): ... this.  Return void.
19605         (from_compare): Rename to...
19606         (sh_emit_compare_and_branch): ... this.
19607         (sh_emit_compare_and_set): New.
19608         (sh_expand_t_scc): Accept operands.
19609         * config/sh/predicates.md (sh_float_comparison_operator): New.
19610         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
19611         (prepare_scc_operands): Rename to...
19612         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
19613         arguments.
19614         (sh_emit_cheap_store_flag): New.
19615         (sh_emit_set_t_insn): New.
19616         (from_compare): Rename to...
19617         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
19618         handling of TARGET_SH2E floating point to avoid recursive call.
19619         Generate branch here.
19620         (sh_emit_compare_and_set): New.
19621         (sh_expand_t_scc): Get op0/op1 from arguments.
19622         (sh_emit_cheap_store_flag): New.
19623         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
19624         cases.
19625         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
19626         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
19627         (movsicc, movdicc): Do nothing when it recreated operands from
19628         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
19629         prepare_scc_operands (now sh_emit_scc_to_t).
19630         (udivdi3): Use cstoresi4.
19631         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
19632         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
19633         (cbranchint4_media, cbranchfp4_media): New.
19634         (casesi): Use cbranchdi4.
19635         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
19636         Delete.
19637         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
19638         (movnegt): Remove second operand.
19639         (cbranchsf4, cbranchdf4): New.
19640         (stack_protect): Use cbranchdi4/cbranchsi4.
19641
19642         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
19643         (gen_compare_reg): Accept comparison, extract part of it to...
19644         (gen_compare_reg_1): ... this.
19645         (gen_compare_operator): Delete.
19646         (gen_v9_scc): Accept separate destination, comparison code and arms.
19647         Do not use sparc_compare_op0/sparc_compare_op1.
19648         (emit_scc_insn, emit_conditional_branch_insn): New.
19649         (emit_v9_brxx): Make static.  Remove useless assertion.
19650         (sparc_emit_float_lib_cmp): Return RTL instead of calling
19651         emit_cmp_insn.
19652         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
19653         * config/sparc/sparc-protos.h (gen_compare_reg,
19654         sparc_emit_float_lib_cmp): Adjust prototype.
19655         (emit_scc_insn, emit_conditional_branch_insn): New.
19656         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
19657         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
19658         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
19659         iterators to the top.
19660         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
19661         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
19662         snedi_special_trunc): Delete.
19663         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
19664         and snedi_special_trunc.
19665         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
19666         cbranchdi4, cbranch<F:mode>4): New.
19667         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
19668         here.  Use gen_compare_reg instead of gen_compare_operator.
19669         (conditional_trap): Replace with...
19670         (ctrapsi4, ctrapdi4): ... this.
19671         (stack_protect_test): Use cbranchcc4.
19672
19673         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
19674         argument to rtx.
19675         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
19676         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
19677         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
19678         from operands[0] or operands[3] depending on is_set.
19679         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
19680         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
19681         cmpdf, bCC), sCC: Remove.
19682         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
19683         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
19684         cstoredf4): New.
19685         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
19686         spu_emit_branch_or_set.
19687
19688         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
19689         Add two arguments.
19690         * config/stormy16/stormy16.h (xstormy16_compare_op0,
19691         xstormy16_compare_op1): Delete.
19692         * config/stormy16/stormy16.c (xstormy16_compare_op0,
19693         xstormy16_compare_op1): Delete.
19694         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
19695         Adjust calls.
19696         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
19697         (cmphi, cmpsi, bCC): Remove.
19698
19699         * config/v850/v850.md (tstsi, cmpsi): Fold into...
19700         (*cmpsi): ... this one.
19701         (cbranchsi4, cstoresi4): New.
19702         (bCC expanders): Delete.
19703         (sCC insns): Fold into...
19704         (*setcc): ... this one.
19705         (casesi): Do not use gen_cmpsi and gen_bgtu.
19706         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
19707         (movsicc): Simplify.
19708         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
19709
19710         * config/vax/vax-protos.h (cond_name): New.
19711         (vax_output_conditional_branch): Remove.
19712         * config/vax/vax.c (cond_name): New.
19713         (vax_output_conditional_branch): Remove.
19714         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
19715         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
19716         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
19717         (bit<VAXint>): Wrap source with (compare).
19718         (b<code> and following unnamed pattern): Rename to *branch and
19719         *branch_reversed.  Change macroization to match_operator.
19720         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
19721
19722         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
19723         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
19724         Change last argument to machine_mode.
19725         (xtensa_expand_scc): Add machine_mode argument.
19726         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
19727         (gen_conditional_move, xtensa_expand_conditional_branch,
19728         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
19729         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
19730         Adjust operand numbers.
19731         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
19732         Delete.
19733         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
19734         (cmpsi, cmpsf, b<code>, s<code>): Delete.
19735         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
19736
19737 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
19738
19739         * optabs.c (prepare_cmp_insn): Temporarily disable test that
19740         causes spurious differences between trunk and cond-optab branch.
19741
19742 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
19743
19744         PR target/37137
19745         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
19746
19747 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
19748
19749         * tree.c (iterative_hash_pointer): Delete.
19750         (iterative_hash_expr): Short-circuit handling of NULL pointer.
19751         Hash UIDs and versions of SSA names.  Don't special-case built-in
19752         function declarations.
19753
19754 2009-05-11  Ian Lance Taylor  <iant@google.com>
19755
19756         PR bootstrap/40103
19757         * graphite.c: Force -Wc++-compat to only be a warning before
19758         #including "cloog/cloog.h".
19759
19760 2009-05-11  Martin Jambor  <mjambor@suse.cz>
19761
19762         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
19763
19764 2009-05-11  Jan Hubicka  <jh@suse.cz>
19765
19766         * tree-ssa-loop-ivcanon.c: Include target.h
19767         (struct loop_size): new structure.
19768         (constant_after_peeling): New predicate.
19769         (tree_estimate_loop_size): New function.
19770         (estimated_unrolled_size): Rewrite for new estimates.
19771         (try_unroll_loop_completely): Use new estimates.
19772         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
19773
19774 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19775
19776         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
19777         libcpp interface change.
19778         (spu_macro_to_expand): Likewise.
19779
19780 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
19781
19782         PR tree-optimization/40026
19783         * gimplify.c (gimplify_init_constructor): Change initial conditional
19784         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
19785         optimize_compound_literals_in_ctor.
19786
19787 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
19788
19789         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
19790         New devices.
19791         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
19792
19793 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
19794
19795         * tree-vect-data-refs.c (vect_analyze_group_access): Use
19796         HOST_WIDE_INT for gap.
19797
19798 2009-05-11  Ira Rosen  <irar@il.ibm.com>
19799
19800         PR tree-optimization/40074
19801         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
19802         account in group size and step comparison.
19803
19804 2009-05-11  Richard Guenther  <rguenther@suse.de>
19805
19806         * passes.c (init_optimization_passes): Strip now incorrect comment.
19807         (execute_function_todo): Do not set PROP_alias.
19808         * tree-pass.h (PROP_alias): Remove.
19809         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
19810         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
19811         * tree-nrv.c (pass_return_slot): Likewise.
19812         * tree-object-size.c (pass_object_sizes): Likewise.
19813         * tree-ssa-dom.c (pass_dominator): Likewise.
19814         (pass_phi_only_cprop): Likewise.
19815         * tree-ssa-dse.c (pass_dse): Likewise.
19816         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
19817         (pass_cselim): Likewise.
19818         * tree-ssa-pre.c (pass_pre): Likewise.
19819         (pass_fre): Likewise.
19820         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
19821         * tree-ssa-sink.c (pass_sink_code): Likewise.
19822         * tree-stdarg.c (pass_stdarg): Likewise.
19823         * tree-tailcall.c (pass_tail_calls): Likewise.
19824         * tree-vrp.c (pass_vrp): Likewise.
19825
19826 2009-05-10  Ian Lance Taylor  <iant@google.com>
19827
19828         * basic-block.h (enum profile_status): Break out of struct
19829         control_flow_graph.
19830         * cgraph.h (struct inline_summary): Break out of struct
19831         cgraph_local_info.
19832         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
19833         of struct cgraph_order_sort.
19834         * combine.c (enum undo_kind): New enum, broken out of struct undo.
19835         * cse.c (struct branch_path): Break out of struct
19836         cse_basic_block_data.
19837         * except.h (enum eh_region_type): Break out of struct eh_region.
19838         * gcc.c (enum add_del): Break out of struct modify_target.
19839         * genrecog.c (enum decision_type): Break out of struct decision_test.
19840         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
19841         ggc_pch_data.
19842         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
19843         * regmove.c (enum match_use): New enum, broken out of struct match.
19844         * sched-int.h (enum post_call_group): New enum, broken out of
19845         struct deps.
19846         (struct deps_reg): Break out of struct deps.
19847         * target.h (struct asm_int_op): Break out of struct gcc_target.
19848         * tree-eh.c (struct goto_queue_node): Break out of struct
19849         leh_tf_state.
19850         * tree-inline.h (enum copy_body_cge_which): Break out of
19851         copy_body_data.
19852         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
19853
19854         * c-decl.c (in_struct, struct_types): New static variables.
19855         (pushtag): Add loc parameter.  Change all callers.
19856         (lookup_tag): Add ploc parameter.  Change all callers.
19857         (check_compound_literal_type): New function.
19858         (parser_xref_tag): Add loc parameter.  Change all callers.  If
19859         -Wc++-compat, warn about struct/union/enum types defined within a
19860         struct or union.
19861         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
19862         and loc parameters.  Change all callers.  Change error calls to
19863         error_at, using loc.  For a redefinition, if the location of the
19864         original definition is known, report it.  Set in_struct and
19865         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
19866         (finish_struct): Add new parameters enclosing_in_struct and
19867         enclosing_struct_types.  Change all callers.  Set
19868         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
19869         in the struct.  If in a struct, add this struct to struct_types.
19870         (start_enum): Add loc parameter.  Change all callers.  Use
19871         error_at for errors, using loc.  For a redefinition, if the
19872         location of the original definition is known, report it.  If in a
19873         struct, add this enum type to struct_types.  If -Wc++-compat warn
19874         if in sizeof, typeof, or alignof.
19875         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
19876         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
19877         (c_parser_enum_specifier): Get enum location for start_enum.
19878         (c_parser_struct_or_union_specifier): Get struct location for
19879         start_struct.  Save in_struct and struct_types status between
19880         start_struct and finish_struct.
19881         (c_parser_cast_expression): Get location of cast.
19882         (c_parser_alignof_expression): Get location of type.
19883         (c_parser_postfix_expression): Likewise.
19884         (c_parser_postfix_expression_after_paren_type): Add type_loc
19885         parameter.  Change all callers.  Call check_compound_literal_type.
19886         Use type_loc for error about variable size type.
19887         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
19888         of an enum constant from an enum type defined in a struct or union.
19889         (c_cast_expr): Add loc parameter.  Change all callers.  If
19890         -Wc++-compat, warn about defining a type in a cast.
19891         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
19892         (start_enum, start_struct, finish_struct): Update declarations.
19893         (parser_xref_tag, c_cast_expr): Update declarations.
19894         (check_compound_literal_type): Declare.
19895
19896 2009-05-11  Ben Elliston  <bje@au.ibm.com>
19897
19898         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
19899         for recent libcpp interface change.
19900         (rs6000_macro_to_expand): Likewise.
19901
19902 2009-05-10  Michael Matz  <matz@suse.de>
19903
19904         PR target/40031
19905         * config/arm/arm.c (require_pic_register): Emit on entry edge,
19906         not at entry of function.
19907
19908 2009-05-10  Richard Guenther  <rguenther@suse.de>
19909
19910         PR tree-optimization/40081
19911         Revert
19912         * tree-sra.c (instantiate_element): Instantiate scalar replacements
19913         using the main variant of the element type.  Do not fiddle with
19914         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
19915
19916         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
19917         structs with volatile fields.
19918
19919 2009-05-10  Jan Hubicka  <jh@suse.cz>
19920
19921         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
19922         (estimate_move_cost): Assert that it does not get called for
19923         VOID_TYPE_P.
19924         (estimate_num_insns): Skip VOID types in argument handling.
19925         (optimize_inline_calls): Delete unreachable blocks and verify that
19926         callgraph is valid.
19927
19928 2009-05-10  Jan Hubicka  <jh@suse.cz>
19929
19930         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
19931         * cgraph.c (cgraph_mark_address_taken_node): New function.
19932         (dump_cgraph_node): Dump new flag.
19933         * cgraph.h (struct cgraph_node): Add address_taken.
19934         (cgraph_mark_address_taken_node): New function.
19935         * ipa.c (cgraph_postorder): Prioritize functions with address taken
19936         since new direct calls can be born.
19937
19938 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
19939
19940         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
19941         tok->val.node.node.
19942
19943 2009-05-10  Jan Hubicka  <jh@suse.cz>
19944
19945         PR middle-end/40084
19946         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
19947         argument; rewrite.
19948         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
19949         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
19950         * tree-inline.c (copy_bb): Set frequency correctly.
19951         (fold_marked_statements): Update call to
19952         cgraph_update_edges_for_call_stmt.
19953
19954 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
19955
19956         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
19957         identifiers in diagnostics.
19958         * config/arm/arm.c (arm_handle_fndecl_attribute,
19959         arm_handle_isr_attribute): Likewise.
19960         * config/avr/avr.c (avr_handle_progmem_attribute,
19961         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
19962         * config/bfin/bfin.c (handle_int_attribute,
19963         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
19964         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
19965         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
19966         Likewise.
19967         * config/darwin.c (darwin_handle_kext_attribute,
19968         darwin_handle_weak_import_attribute): Likewise.
19969         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
19970         h8300_handle_eightbit_data_attribute,
19971         h8300_handle_tiny_data_attribute): Likewise.
19972         * config/i386/i386.c (ix86_handle_cconv_attribute,
19973         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
19974         * config/i386/winnt.c (ix86_handle_shared_attribute,
19975         ix86_handle_selectany_attribute): Likewise.
19976         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
19977         * config/m32c/m32c.c (function_vector_handler): Likewise.
19978         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
19979         m68hc11_handle_fntype_attribute): Likewise.
19980         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
19981         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
19982         * config/mips/mips.c (mips_insert_attributes,
19983         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
19984         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
19985         rs6000_handle_struct_attribute): Likewise.
19986         * config/sh/sh.c (sh_insert_attributes,
19987         sh_handle_resbank_handler_attribute,
19988         sh_handle_interrupt_handler_attribute,
19989         sh2a_handle_function_vector_handler_attribute,
19990         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
19991         Likewise.
19992         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
19993         * config/spu/spu.c (spu_handle_fndecl_attribute,
19994         spu_handle_vector_attribute): Likewise.
19995         * config/stormy16/stormy16.c
19996         (xstormy16_handle_interrupt_attribute): Likewise.
19997         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
19998         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
19999
20000 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
20001
20002         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
20003         (pp_translate_identifiers): New.
20004         (pp_identifier): Only conditionally translate identifier to locale
20005         character set.
20006         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
20007         (pp_base_tree_identifier): Only conditionally translate identifier
20008         to locale character set.
20009         * c-pretty-print.c (M_): Define.
20010         (pp_c_type_specifier, pp_c_primary_expression): Mark English
20011         fragments for conditional translation with M_.
20012         * tree-pretty-print.c (maybe_init_pretty_print): Disable
20013         identifier translation.
20014
20015 2009-05-10  Richard Guenther  <rguenther@suse.de>
20016
20017         PR tree-optimization/40081
20018         * tree-sra.c (instantiate_element): Instantiate scalar replacements
20019         using the main variant of the element type.  Do not fiddle with
20020         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
20021
20022 2009-05-09  Jan Hubicka  <jh@suse.cz>
20023
20024         PR middle-end/40080
20025         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
20026         indirect calls; verify cgraph afterwards.
20027
20028 2009-05-09  Jan Hubicka  <jh@suse.cz>
20029
20030         PR bootstrap/40082
20031         * ipa.c (update_inlined_to_pointer): New function.
20032         (cgraph_remove_unreachable_nodes): Use it.
20033
20034 2009-05-09  Jan Hubicka  <jh@suse.cz>
20035
20036         * tree-eh.c (struct leh_state): Remove prev_try.
20037         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
20038         not track prev_try.
20039         * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
20040         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
20041         remove_eh_handler_and_replace, foreach_reachable_handler,
20042         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
20043         * except.h (struct eh_region): Remove eh_region_u_cleanup.
20044         (gen_eh_region_cleanup): Update prototype.
20045
20046 2009-05-09  Jan Hubicka  <jh@suse.cz>
20047
20048         PR middle-end/40043
20049         * except.c (copy_eh_region): Always set prev_try.
20050         (redirect_eh_edge_to_label): Find outer try.
20051         (foreach_reachable_handler): When looking for prev try
20052         handle case where previous try is not going to be taken.
20053
20054 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
20055
20056         PR tree-optimization/40049
20057         * tree-vect-stmts.c (vectorizable_operation): If the machine has
20058         only vector/vector shifts, convert the type of the constant to the
20059         appropriate type to avoid building incorrect trees, which
20060         eventually have problems with garbage collection.
20061
20062 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
20063
20064         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
20065         -1 for complex floating-point types if honoring signed zeros.
20066
20067 2009-05-08  Jan Hubicka  <jh@suse.cz>
20068
20069         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
20070         argument; handle correctly when profile is absent.
20071         (build_cgraph_edges): Update.
20072         (rebuild_cgraph_edges): Update.
20073         * cgraph.c: Do not include varray.h.
20074         (cgraph_set_call_stmt_including_clones): New function.
20075         (cgraph_create_edge_including_clones): Likewise
20076         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
20077         (cgraph_update_edges_for_call_stmt): Handle clones.
20078         (cgraph_remove_node): Handle clone tree.
20079         (cgraph_remove_node_and_inline_clones): New function.
20080         (dump_cgraph_node): Dump clone tree.
20081         (cgraph_clone_node): Handle clone tree.
20082         (clone_function_name): Bring here from tree-inline.c.
20083         (cgraph_create_virtual_clone): New function.
20084         * cgraph.h (ipa_replace_map): Move here from ipa.h.
20085         (cgraph_clone_info): New function.
20086         (strut cgraph_node): Add clone_info and new clone tree pointers.
20087         (cgraph_remove_node_and_inline_clones,
20088         cgraph_set_call_stmt_including_clones,
20089         cgraph_create_edge_including_clones,
20090         cgraph_create_virtual_clone): Declare.
20091         (cgraph_function_versioning): Use VEC argument.
20092         (compute_call_stmt_bb_frequency): Update prototype.
20093         (cgraph_materialize_all_clones): New function.
20094         * ipa-cp.c (ipcp_update_cloned_node): Remove.
20095         (ipcp_create_replace_map): Update to VECtors.
20096         (ipcp_update_callgraph): Use virtual clones.
20097         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
20098         (ipcp_update_profiling): Do not update local profiling.
20099         (ipcp_insert_stage): Use VECtors and virtual clones.
20100         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
20101         (clone_of_p): New function.
20102         (cgraph_preserve_function_body_p): Use clone tree.
20103         (cgraph_optimize): Materialize clones.
20104         (cgraph_function_versioning): Update for VECtors.
20105         (save_inline_function_body): Use clone tree.
20106         (cgraph_materialize_clone): New function.
20107         (cgraph_materialize_all_clones): Likewise.
20108         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
20109         * ipa.c: Include gimple.h.
20110         (cgraph_remove_unreachable_nodes): Use clone tree.
20111         * ipa-prop.c (ipa_note_param_call): Update call to
20112         compute_call_stmt_bb_frequencycall.
20113         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
20114         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
20115         (copy_bb): Handle updating of clone tree; add new edge when new call
20116         appears.
20117         (expand_call_inline): Be strict about every call having edge.
20118         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
20119         (delete_unreachable_blocks_update_callgraph): New function.
20120         (tree_function_versioning): Use VECtors; always remove unreachable
20121         blocks and fold conditionals.
20122         * tree-inline.h: Do not include varray.h.
20123         (tree_function_versioning): Remove.
20124         * Makefile.in (GTFILES): Remove tree-inline.c
20125         * passes.c (do_per_function): Do only functions having body.
20126         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
20127         tree.
20128
20129 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
20130             Andrew Morrow  <acm@google.com>
20131
20132         PR c/36892
20133         * c-common.c (c_common_attribute_table): Permit deprecated
20134         attribute to take an optional argument.
20135         (handle_deprecated_attribute): If the optional argument to
20136         __attribute__((deprecated)) is not a string ignore the attribute
20137         and emit a warning.
20138
20139         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
20140         * c-typeck.c (build_component_ref): Likewise.
20141         (build_external_ref): Likewise.
20142
20143         * toplev.c (warn_deprecated_use): Add an attribute argument.
20144         Emit the message associated with __attribute__((deprecated)).
20145
20146         * toplev.h (warn_deprecated_use): Updated.
20147
20148         * doc/extend.texi: Document new optional parameter to
20149         __attribute__((deprecated))
20150
20151 2009-05-08  Michael Eager <eager@eagercon.com>
20152
20153         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
20154         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
20155
20156 2009-05-08  Richard Guenther  <rguenther@suse.de>
20157
20158         PR tree-optimization/40062
20159         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
20160         Avoid exponential behavior.
20161
20162 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
20163
20164         PR rtl-optimization/33928
20165         PR 26854
20166         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
20167         process_uses, build_single_def_use_links): New.
20168         (update_df): Update use_def_ref.
20169         (forward_propagate_into): Use get_def_for_use instead of use-def
20170         chains.
20171         (fwprop_init): Call build_single_def_use_links and let it initialize
20172         dataflow.
20173         (fwprop_done): Free use_def_ref.
20174         (fwprop_addr): Eliminate duplicate call to df_set_flags.
20175         * df-problems.c (df_rd_simulate_artificial_defs_at_top,
20176         df_rd_simulate_one_insn): New.
20177         (df_rd_bb_local_compute_process_def): Update head comment.
20178         (df_chain_create_bb): Use the new RD simulation functions.
20179         * df.h (df_rd_simulate_artificial_defs_at_top,
20180         df_rd_simulate_one_insn): New.
20181         * opts.c (decode_options): Enable fwprop at -O1.
20182         * doc/invoke.texi (-fforward-propagate): Document this.
20183
20184 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
20185
20186         PR c/24581
20187         * c-typeck.c (build_binary_op): Handle arithmetic between one real
20188         and one complex operand specially.
20189         * tree-complex.c (some_nonzerop): Do not identify a real value as
20190         zero if flag_signed_zeros.
20191
20192 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
20193
20194         PR rtl-optimization/33928
20195         * loop-invariant.c (record_use): Fix && vs. || mishap.
20196
20197 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
20198
20199         PR rtl-optimization/33928
20200         * loop-invariant.c (struct use): Add addr_use_p.
20201         (struct def): Add n_addr_uses.
20202         (struct invariant): Add cheap_address.
20203         (create_new_invariant): Set cheap_address.
20204         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
20205         (record_uses): Pass df_ref to record_use.
20206         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
20207         used only as such.
20208
20209 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
20210
20211         * config/sh/sh.c: Do not include c-pragma.h.
20212
20213 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20214
20215         * config/spu/spu.c: Remove include of c-common.h.
20216
20217 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
20218
20219         PR c/39037
20220         * c-common.h (mark_valid_location_for_stdc_pragma,
20221         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
20222         clear_float_const_decimal64, float_const_decimal64_p): New.
20223         * c.opt (Wunsuffixed-float-constants): New.
20224         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
20225         unsuffixed float constant, handle new warning.
20226         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
20227         * c-decl.c (c_scope): New flag float_const_decimal64.
20228         (set_float_const_decimal64, clear_float_const_decimal64,
20229         float_const_decimal64_p): New.
20230         (push_scope): Set new flag.
20231         * c-parser.c (c_parser_translation_unit): Mark when it's valid
20232         to use STDC pragmas.
20233         (c_parser_external_declaration): Ditto.
20234         (c_parser_compound_statement_nostart): Ditto.
20235         * c-pragma.c (valid_location_for_stdc_pragma,
20236         mark_valid_location_for_stdc_pragma,
20237         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
20238         handle_pragma_float_const_decimal64): New.
20239         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
20240         * cp/semantics.c (valid_location_for_stdc_pragma_p,
20241         set_float_const_decimal64, clear_float_const_decimal64,
20242         float_const_decimal64_p): New dummy functions.
20243         * doc/extend.texi (Decimal Float): Remove statement that the
20244         pragma, and suffix for double constants, are not supported.
20245         * doc/invoke.texi (Warning Options): List new option.
20246         (-Wunsuffixed-float-constants): New.
20247
20248 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
20249
20250         * config/i386/i386.c: Do not include c-common.h.
20251
20252 2009-05-07  Mark Heffernan  <meheff@google.com>
20253
20254         * doc/invoke.texi (Debugging Options): Document change of debugging
20255         dump location.
20256         * opts.c (decode_options): Make dump_base_name relative to
20257         aux_base_name directory.
20258
20259 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
20260
20261         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
20262         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
20263
20264 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
20265
20266         * Makefile.in (install-plugin): Simplify a bit.
20267
20268 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
20269
20270         * Makefile.in (OBJS-common): Add regcprop.o.
20271         (regcprop.o): New.
20272         * timevar.def (TV_CPROP_REGISTERS): New.
20273         * regrename.c (regrename_optimize): Return 0.
20274         (rest_of_handle_regrename): Delete.
20275         (pass_rename_registers): Point to regrename_optimize.
20276         (struct value_data_entry, struct value_data,
20277         kill_value_one_regno, kill_value_regno, kill_value,
20278         set_value_regno, init_value_data, kill_clobbered_value,
20279         kill_set_value, kill_autoinc_value, copy_value,
20280         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
20281         replace_oldest_value_reg, replace_oldest_value_addr,
20282         replace_oldest_value_mem, copyprop_hardreg_forward_1,
20283         debug_value_data, validate_value_data): Move...
20284         * regcprop.c: ... here.
20285         (rest_of_handle_cprop): Delete.
20286         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
20287
20288 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
20289
20290         PR middle-end/40057
20291         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
20292         GEN_INT for 1 << bitnum.
20293         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
20294         build_int_cst_type.
20295
20296 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
20297
20298         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
20299         Remove wrong description of "nand" operation.
20300
20301 2009-05-06  Richard Guenther  <rguenther@suse.de>
20302             Adam Nemet  <anemet@caviumnetworks.com>
20303
20304         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
20305         comment.  Add that if LHS is not a gimple register, then RHS1 has
20306         to be a single object (GIMPLE_SINGLE_RHS).
20307
20308 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
20309
20310         * expr.c (get_def_for_expr): Move it up in the file.
20311         (store_field): When expanding a bit-field store, look at the
20312         defining gimple stmt for the masking conversion.
20313
20314 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
20315
20316         PR middle-end/39986
20317         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
20318         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
20319         32-bit memcpy into long.
20320
20321 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
20322
20323         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
20324         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
20325         new_reg_loc_descr.
20326         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
20327         instead of appending DW_OP_deref*.
20328
20329 2009-05-06  Michael Matz  <matz@suse.de>
20330
20331         PR middle-end/40021
20332         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
20333         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
20334
20335 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
20336
20337         * Makefile.in (install-plugin): Fix srcdir handling.
20338
20339 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
20340
20341         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
20342         when processing for not_regs_needed bitmap.
20343         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
20344         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while
20345         handling it for rhs.
20346
20347 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
20348
20349         * config/i386/i386.md (unnamed inc/dec peephole): Use
20350         optimize_insn_for_size_p instead of optimize_size.
20351         * config/i386/predicates.md (incdec_operand): Likewise.
20352         (aligned_operand): Likewise.
20353         * config/i386/sse.md (divv8sf3): Likewise.
20354         (sqrtv8sf2): Likewise.
20355
20356 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
20357
20358         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
20359
20360         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
20361
20362 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
20363
20364         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
20365         ssemodesuffixf2c with avxmodesuffixf2c.
20366
20367 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
20368
20369         PR c/40032
20370         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
20371
20372 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
20373
20374         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
20375         (struct tree_base): Adjust spacing for 8 bit boundaries.
20376         (struct tree_decl_common): Add decl_by_reference_flag bit.
20377         (DECL_BY_REFERENCE): Adjust.
20378         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
20379         print DECL_BY_REFERENCE bit.
20380         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
20381         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
20382         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
20383         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
20384         unconditionally.
20385
20386         PR middle-end/39666
20387         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
20388         range of the type, but default label is missing, add it with one
20389         of the existing labels instead of adding a new label for it.
20390
20391 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
20392
20393         * dwarf.h: Remove.
20394
20395 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
20396
20397         * Makefile.in (enable_plugin, plugin_includedir): New.
20398         (install): Depend on install-plugin.
20399         (PLUGIN_HEADERS): New.
20400         (install-plugin): New.
20401         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
20402
20403 2009-05-05  Richard Guenther  <rguenther@suse.de>
20404
20405         PR tree-optimization/40022
20406         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
20407         the only vuse.
20408         (phivn_valid_p): Fix tuplification error, simplify.
20409         (phiprop_insert_phi): Add dumps.
20410         (propagate_with_phi): Simplify.
20411
20412 2009-05-05  Richard Guenther  <rguenther@suse.de>
20413
20414         PR middle-end/40023
20415         * builtins.c (gimplify_va_arg_expr): Properly build the address.
20416
20417 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
20418
20419         * tree.h (strip_float_extensions): Remove duplicate declaration.
20420         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
20421         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
20422         block_ultimate_origin): Rearrange the declarations line to match the
20423         comment that indicates the .c file which the functions are defined.
20424         (dwarf2out_*, set_decl_rtl): Add comment.
20425         (get_base_address): Adjust comment.
20426         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
20427         declarations line and add comment.
20428         (is_builtin_name): Add blank after function name, for clarity.
20429
20430 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
20431
20432         * attribs.c (decl_attributes): Use %qE for identifiers in
20433         diagnostics.
20434         * cgraphunit.c (verify_cgraph_node): Translate function names to
20435         locale character set in diagnostics.
20436         * coverage.c (get_coverage_counts): Use %qE for identifiers in
20437         diagnostics.
20438         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
20439         Document that functions are named in UTF-8.
20440         * expr.c (expand_expr_real_1): Translate function names to locale
20441         character set in diagnostics.
20442         * gimplify.c (omp_notice_variable, omp_is_private,
20443         gimplify_scan_omp_clauses): Use %qE for identifiers in
20444         diagnostics.
20445         * langhooks.c (lhd_print_error_function): Translate function names
20446         to locale character set.
20447         * langhooks.h (decl_printable_name): Document that return value is
20448         in internal character set.
20449         * stmt.c: Include pretty-print.h
20450         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
20451         diagnostics.
20452         (resolve_operand_name_1): Translate named operand name to locale
20453         character set.
20454         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
20455         diagnostics.
20456         * toplev.c (announce_function): Translate function names to locale
20457         character set.
20458         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
20459         (default_tree_printer): Use pp_identifier or translate identifiers
20460         to locale character set.  Mark "<anonymous>" for translation.
20461         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
20462         for identifiers in diagnostics.
20463         * tree.c (handle_dll_attribute): Use %qE for identifiers in
20464         diagnostics.
20465         * varasm.c (output_constructor): Use %qE for identifiers in
20466         diagnostics.
20467
20468 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
20469
20470         * configure.ac: use ` ` instead of $()
20471         * configure: Regenerate.
20472
20473 2009-05-05  Ben Elliston  <bje@au.ibm.com>
20474
20475         * config/pa/linux-atomic.c: Eliminate conditional include of
20476         errno.h on non-LP64 systems to simplify build requirements.
20477
20478 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
20479
20480         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
20481         diagnostics.
20482         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
20483         and pass value to identifier_to_locale.
20484         (warn_variable_length_array): Make name a tree.
20485         (grokdeclarator): Separate diagnostic texts for named and unnamed
20486         declarators.  Use %qE for named declarators.
20487         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
20488         diagnostics.
20489         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
20490         identifiers in diagnostics.
20491         * c-typeck.c (push_member_name, start_init): Pass identifiers to
20492         identifier_to_locale.  Mark "anonymous" strings for translation.
20493
20494 2009-05-04  Michael Eager <eager@eagercon.com>
20495
20496         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
20497         address for DImode/DFmode only if double-precision FP regs.
20498
20499 2009-05-04  Michael Eager <eager@eagercon.com>
20500
20501         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
20502         TARGET_SINGLE_FLOAT check.
20503
20504 2009-05-04  Michael Eager <eager@eagercon.com>
20505
20506         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
20507
20508 2009-05-04  Michael Eager <eager@eagercon.com>
20509
20510         * gcc/config.gcc (powerpc-xilinx-eabi*): Add tm t-xilinx
20511         * config/rs6000/t-xilinx: New
20512
20513 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
20514
20515         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
20516         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
20517         * gcc/explow.c (memory_address): Use target hook.
20518         * gcc/targhooks.c (default_legitimize_address): New.
20519         * gcc/targhooks.h (default_legitimize_address): New.
20520         * gcc/target.h (legitimize_address): New.
20521         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
20522         (TARGET_INITIALIZER): Include it.
20523         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
20524
20525         * config/bfin/bfin-protos.h (legitimize_address): Remove.
20526         * config/bfin/bfin.c (legitimize_address): Remove.
20527         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
20528         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
20529         Remove.
20530         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
20531         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
20532
20533         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
20534         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
20535         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
20536         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
20537         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
20538         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
20539         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
20540         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
20541         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
20542         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
20543         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
20544         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
20545         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
20546         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
20547         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
20548         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
20549         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
20550         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
20551         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
20552         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
20553         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
20554         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
20555         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
20556
20557         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
20558         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
20559         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
20560         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
20561         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
20562         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
20563         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
20564         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
20565         (thumb_legitimize_address): Delete.
20566         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
20567         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
20568         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
20569         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
20570         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
20571         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
20572         Delete.
20573         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
20574         Delete.
20575
20576         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
20577         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
20578         * config/m32r/m32r.c (m32r_legitimize_address): New.
20579         * config/m68k/m68k.c (m68k_legitimize_address): New.
20580         * config/score/score.c (score_legitimize_address): Standardize.
20581         * config/score/score3.c (score3_legitimize_address): Standardize.
20582         * config/score/score3.h (score3_legitimize_address): Adjust.
20583         * config/score/score7.c (score7_legitimize_address): Standardize.
20584         * config/score/score7.h (score7_legitimize_address): Adjust.
20585         * config/sh/sh.c (sh_legitimize_address): New.
20586         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
20587
20588         * gcc/config/s390/s390.c (legitimize_address): Rename to...
20589         (s390_legitimize_address): ... this.
20590         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
20591         (sparc_legitimize_address): ... this.
20592         * gcc/config/i386/i386.c (legitimize_address): Rename to...
20593         (ix86_legitimize_address): ... this.
20594         * gcc/config/avr/avr.c (legitimize_address): Rename to...
20595         (avr_legitimize_address): ... this.
20596         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
20597         (mn10300_legitimize_address): ... this.
20598         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
20599         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
20600         (alpha_expand_mov): Adjust call.
20601
20602         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
20603         * config/spu/spu.c (spu_legitimize_address): Likewise.
20604         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
20605         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
20606
20607 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
20608
20609         * intl.c (locale_encoding, locale_utf8): New.
20610         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
20611         * intl.h (locale_encoding, locale_utf8): Declare.
20612         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
20613         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
20614         New.
20615         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
20616         argument.
20617         (pp_tree_identifier): Define to call pp_base_tree_identifier.
20618         (pp_base_tree_identifier): Declare as function.
20619         (identifier_to_locale): Declare.
20620         * Makefile.in (pretty-print.o): Update dependencies.
20621         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
20622
20623 2009-05-04  Richard Guenther  <rguenther@suse.de>
20624
20625         PR middle-end/40015
20626         * builtins.c (fold_builtin_memory_op): Do not decay to element
20627         type if the size matches the whole array.
20628
20629 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
20630
20631         * expmed.c (synth_mult): When trying out a shift, pass the result
20632         of a signed shift.
20633
20634 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
20635
20636         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
20637         (shiftsub1_cost): New.
20638         (init_expmed): Compute shiftsub1_cost.
20639         (synth_mult): Optimize multiplications by constants of the form
20640         -(2^^m-1) for some constant positive integer m.
20641
20642 2009-05-03  Richard Guenther  <rguenther@suse.de>
20643
20644         PR c/39983
20645         * c-typeck.c (array_to_pointer_conversion): Do not built
20646         ADDR_EXPRs of arrays of pointer-to-element type.
20647         * c-gimplify.c (c_gimplify_expr): Revert change fixing
20648         up wrong ADDR_EXPRs after-the-fact.
20649         * c-common.c (strict_aliasing_warning): Strip pointer
20650         conversions for obtaining the original type.
20651         * builtins.c (fold_builtin_memset): Handle array types.
20652         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
20653         and array types
20654
20655 2009-05-03  Richard Guenther  <rguenther@suse.de>
20656
20657         PR middle-end/23329
20658         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
20659         Do not lose casts from array types with unknown extent to array
20660         types with known extent.
20661         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
20662         alias set compatibility.
20663
20664 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20665
20666         * flags.h (extra_warnings): Delete.
20667         * toplev.c (process_options): Handle Wuninitialized here.
20668         * opts.c (extra_warnings): Delete.
20669         (set_Wextra): Delete.
20670         (common_handle_option): -Wextra can be handled automatically.
20671         * c-opts.c (c_common_handle_option): Delete obsolete code.
20672         (c_common_post_options): Simplify comment.
20673         * common.opt (W): Add Var.
20674         (Wextra): Add Var.
20675         (Wuninitialized): Initialize to -1.
20676
20677 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
20678             Richard Guenther  <rguenther@suse.de>
20679
20680         * expr.c (get_def_for_expr): New function.
20681         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
20682         SSA rather than trees.
20683         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
20684         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
20685
20686 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
20687
20688         * c-common.c (reswords): Add _Imaginary.
20689         * c-common.c (enum rid): Add RID_IMAGINARY.
20690
20691 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
20692
20693         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
20694         Patch by Richard Guenther.
20695
20696 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
20697
20698         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
20699         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
20700         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
20701         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
20702         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
20703         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
20704         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
20705         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
20706         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
20707         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
20708         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
20709         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
20710         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
20711         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
20712         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
20713         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
20714         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
20715         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
20716
20717 2009-05-02  Richard Guenther  <rguenther@suse.de>
20718
20719         PR tree-optimization/39940
20720         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
20721         doing so.
20722
20723 2009-05-02  Richard Guenther  <rguenther@suse.de>
20724
20725         PR middle-end/40001
20726         * tree-ssa.c (execute_update_addresses_taken): Properly check
20727         if we can mark a variable DECL_GIMPLE_REG_P.
20728         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
20729         back to the end of the function.
20730         (is_gimple_reg_type): Remove complex type special casing.
20731         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
20732         if not optimizing.
20733
20734 2009-05-02  Ben Elliston  <bje@au.ibm.com>
20735
20736         * doc/collect2.texi (Collect2): Document search path behaviour
20737         when configured with --with-ld.
20738
20739 2009-05-02  Jan Hubicka  <jh@suse.cz>
20740
20741         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
20742         parameter; update callers.
20743         (coalesce_cost_edge): EH edges are costier because they needs
20744         splitting even if not critical and even more costier when there are
20745         multiple EH predecestors.
20746
20747 2009-05-02  Jan Hubicka  <jh@suse.cz>
20748
20749         * except.c (remove_eh_handler_and_replace): Handle updating after
20750         removing TRY blocks.
20751
20752 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
20753
20754         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
20755
20756 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
20757
20758         * varasm.c: Do not include c-pragma.h.
20759         * attribs.c: Do not incude c-common.h.
20760
20761 2009-05-01  Michael Matz  <matz@suse.de>
20762
20763         * calls.c (initialize_argument_information): Handle SSA names like
20764         decls with a non MEM_P DECL_RTL.
20765
20766 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
20767
20768         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
20769         * ipa-utils.c: Likewise.
20770         * ipa-type-escape.c: Likewise.
20771         * cgraphunit.c Do not include c-common.h.
20772         * ipa-pure-const.c: Likewise.
20773         * tree-if-conv.c: Likewise.
20774         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
20775         * ipa-struct-reorg.c: Likewise.
20776         * tree-nomudflap.c: Likewise.
20777         * tree-ssa-structalias.c: Likewise.
20778
20779 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
20780
20781         * store-motion.c: Many cleanups to make this pass a first-class
20782         citizen instead of an appendix to gcse load motion.  Add TODO list
20783         to make this pass faster/cleaner/better.
20784
20785         (struct ls_expr): Post gcse.c-split cleanups.
20786         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
20787         "stores" field to "avail_stores".
20788         (pre_ldst_mems): Rename to store_motion_mems.
20789         (pre_ldst_table): Rename to store_motion_mems_table.
20790         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
20791         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
20792         (ldst_entry): Rename to st_expr_entry, update users.
20793         (free_ldst_entry): Rename to free_st_expr_entry, update users.
20794         (free_ldst_mems): Rename to free_store_motion_mems, update users.
20795         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
20796         update caller.
20797         (first_ls_expr): Rename to first_st_expr, update users.
20798         (next_ls_expr): Rename to next_st_expr, update users.
20799         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
20800         fields properly for store motion instead of names inherited from load
20801         motion in gcse.c.
20802         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
20803         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
20804         are done with it.
20805
20806         (ae_kill): Rename to st_kill, update users.
20807         (ae_gen): Rename to st_avloc, update users.
20808         (transp): Rename to st_transp, update users.
20809         (pre_insert_map): Rename to st_insert_map, update users.
20810         (pre_delete_map): Rename to st_delete_map, update users.
20811         (insert_store, build_store_vectors, free_store_memory,
20812         one_store_motion_pass): Update for abovementioned changes.
20813
20814         (gcse_subst_count, gcse_create_count): Remove.
20815         (one_store_motion_pass): New statistics counters "n_stores_deleted"
20816         and "n_stores_created", local variables.
20817
20818         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
20819         use for_each_rtx.
20820
20821         (regvec, compute_store_table_current_insn): Remove.
20822         (reg_set_info, reg_clear_last_set): Remove.
20823         (compute_store_table): Use DF caches instead of local dataflow
20824         solvers.
20825
20826 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
20827
20828         * c-objc-common.c (c_tree_printer): Print identifiers with
20829         pp_identifier, not pp_string.  Mark "({anonymous})" for
20830         translation.
20831         * c-pretty-print.c (pp_c_ws_string): New.
20832         (pp_c_cv_qualifier, pp_c_type_specifier,
20833         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
20834         pp_c_storage_class_specifier, pp_c_function_specifier,
20835         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
20836         pp_c_primary_expression, pp_c_postfix_expression,
20837         pp_c_unary_expression, pp_c_shift_expression,
20838         pp_c_relational_expression, pp_c_equality_expression,
20839         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
20840         use pp_string and pp_c_ws_string in place of pp_identifier and
20841         pp_c_identifier for non-identifiers.  Mark English strings for
20842         translation.
20843         * c-pretty-print.h (pp_c_ws_string): Declare.
20844
20845 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
20846             Roland McGrath <roland@redhat.com>
20847
20848         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
20849         (ENABLE_LD_BUILDID): New configuration option.
20850         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
20851         (LINK_BUILDID_SPEC): New macro.
20852         (init_spec): If defined, prepend it between LINK_EH_SPEC and
20853         link_spec.
20854         * doc/install.texi: Document --enable-linker-build-id option.
20855         * configure: Rebuild.
20856         * config.in: Rebuild.
20857
20858 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
20859
20860         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
20861         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
20862         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
20863         MIPS_GP_SAVE_AREA_SIZE.
20864         * config/mips/mips.c (struct mips_frame_info): Update comment
20865         before arg_pointer_offset and hard_frame_pointer_offset.
20866         (mips_compute_frame_info): Update diagram before function: to
20867         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
20868         indicate the position of frame_pointer_rtx with -fstack-protector and
20869         to show args_size.  Don't allocate cprestore area for leaf functions
20870         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
20871         cprestore_size.
20872         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
20873
20874 2009-04-30  Michael Matz  <matz@suse.de>
20875
20876         PR tree-optimization/39955
20877         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
20878
20879 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
20880
20881         * ira.c (setup_cover_and_important_classes):  Use safe macro
20882         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
20883         directly.
20884         * genpreds.c (write_tm_preds_h):  Output suitable definition of
20885         REG_CLASS_FOR_CONSTRAINT.
20886
20887 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
20888
20889         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
20890         instead of an int.
20891         * bitmap.c (bitmap_descriptor): Likewise.
20892         * ggc-common.c (loc_descriptor): Likewise.
20893         * varray.c (varray_descriptor): Likewise.
20894         * vec.c (vec_descriptor): Likewise.
20895
20896 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
20897
20898         * Makefile.in (dce.o): Add $(EXCEPT_H).
20899         * dce.c: Include except.h and delete redundant vector definitions.
20900         (deletable_insn_p): Return false for non-call insns that can throw
20901         if DF is running.
20902
20903 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
20904
20905         * gcse.c (ae_gen): Remove.
20906         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
20907         and make non-static function to make it available in store-motion.c.
20908         Update call sites with search-and-replace.
20909         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
20910         extract_mentioned_regs, extract_mentioned_regs_helper,
20911         find_moveable_store, compute_store_table, load_kills_store, find_loads,
20912         store_killed_in_insn, store_killed_after, store_killed_before,
20913         build_store_vectors, insert_insn_start_basic_block, insert-store,
20914         remove_reachable_equiv_notes, replace_store_insn, delete_store,
20915         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
20916         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
20917         * store-motion.c: ...new file.  Also copy data structures from gcse.c
20918         and clean up to remove parts not used by store motion.
20919         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
20920         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
20921
20922 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20923
20924         PR target/38571
20925         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
20926         when optimizing for size.
20927
20928 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
20929
20930         * gcse.c (gcse_constant_p): Fix typo in last change.
20931
20932 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
20933
20934         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
20935
20936 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
20937
20938         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
20939
20940 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
20941
20942         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
20943         CONST_HIGH_PART result.
20944
20945 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
20946
20947         * config/avr/avr.c (initial_elimination_offset): Rename to
20948         avr_initial_elimination_offset.
20949         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
20950         change return type to bool.
20951         (avr_can_eliminate): New function.
20952         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
20953         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
20954         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
20955         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
20956         avr_initial_elimination_offset.
20957         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
20958         (avr_initial_elimination_offset): Define.
20959
20960 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
20961             Steven Bosscher  <steven@gcc.gnu.org>
20962
20963         PR rtl-optimization/39938
20964         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
20965         * cfgrtl.c: Include insn-attr.h.
20966         (rest_of_pass_free_cfg): New function.
20967         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
20968         * resource.c (init_resource_info): Remove call to df_analyze.
20969
20970 2009-04-29  Richard Guenther  <rguenther@suse.de>
20971
20972         PR target/39943
20973         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
20974         allow conversion to signed integers.
20975
20976 2009-04-29  Richard Guenther  <rguenther@suse.de>
20977
20978         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
20979         shifts of floating point vectors if the shift amount is
20980         a constant multiple of the element size.
20981
20982 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
20983             Michael Matz  <matz@suse.de>
20984
20985         PR middle-end/39927
20986         PR bootstrap/39929
20987         * tree-outof-ssa.c (emit_partition_copy): New function.
20988         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
20989         insert_part_to_rtx_on_edge): Perform the partition base var
20990         copy using emit_partition_copy.
20991         (insert_value_copy_on_edge): Convert constants to the right mode.
20992         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
20993         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
20994
20995 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
20996
20997         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
20998         scan backwards to try to find a constant to initialize it.
20999
21000         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
21001         insn before the loop_end instruction, don't look past labels.
21002
21003 2009-04-29  Richard Guenther  <rguenther@suse.de>
21004
21005         PR middle-end/39937
21006         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
21007         loose type conversions.
21008         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
21009         stmts only if there are no uses of its definition.
21010
21011 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
21012
21013         * config/bfin/bfin.h (splitting_loops): Declare.
21014         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
21015         Reorder bit definitions to be ascending.
21016         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
21017         * config/bfin/bfin.c (splitting_loops): New variable.
21018         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
21019         (struct loop_info): Remove members INIT and LOOP_INIT.
21020         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
21021         the LSETUP sequence.  Allow LC to be loaded from any register, but
21022         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
21023         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
21024         set to 1.
21025         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
21026         of reload_completed.
21027
21028         From Jie Zhang:
21029         * config/bfin/bfin.md (movsi_insn): Refine constraints.
21030
21031 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
21032
21033         * Makefile.in (PLUGIN_VERSION_H): New.
21034         (OBJS-common): Remove plugin-version.o.
21035         (plugin.o): Depend on (PLUGIN_VERSION_H).
21036         (plugin-version.o): Remove.
21037         * configure: Regenerate
21038         * configure.ac: Create plugin-version.h.
21039         * gcc-plugin.h (plugin_gcc_version): Remove.
21040         (plugin_default_version_check): Change signature.
21041         * plugin-version.c: Remove.
21042         * plugin.c: Include plugin-version.h.
21043         (str_plugin_gcc_version_name): Remove.
21044         (try_init_one_plugin): Pass gcc version to plugin_init.
21045         (plugin_default_version_check): Both gcc and plugin versions are now
21046         arguments.
21047
21048 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
21049
21050         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
21051         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
21052         Remove special case testing for last insn of inner loops. Don't fail
21053         if the loop ends with a jump, emit an extra nop instead.
21054
21055         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
21056         DREGS rather than comparing directly.  Remove code that tries to
21057         account for latencies.
21058
21059 2009-04-29  Richard Guenther  <rguenther@suse.de>
21060
21061         PR tree-optimization/39941
21062         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
21063         eliminating an indirect call.
21064
21065 2009-04-29  Richard Guenther  <rguenther@suse.de>
21066
21067         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
21068         parameter.  Allow invariants as base if !require_lvalue.
21069         (verify_gimple_assign_single): Adjust.
21070
21071 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
21072
21073         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
21074         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
21075         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
21076         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
21077         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
21078         a VEC_SELECT.
21079         * config/bfin/bfin.c (bfin_expand_builtin,
21080         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
21081
21082 2009-04-28  Richard Guenther  <rguenther@suse.de>
21083
21084         * tree-vect-loop.c (get_initial_def_for_induction): Use
21085         correct types for pointer increment.
21086
21087 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21088
21089         * toplev.c (print_version): Update GMP version string calculation.
21090
21091 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
21092
21093         PR rtl-optimization/39938
21094         * resource.c (init_resource_info): Add call to df_analyze.
21095
21096 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
21097
21098         * config/alpha/alpha.md (usegp): Cast the result of
21099         alpha_find_lo_sum_using_gp to enum attr_usegp.
21100         * config/alpha/alpha.c (override_options): Remove end-of-structure
21101         marker element from cpu_table.  Use array size of cpu_table to handle
21102         -mcpu and -mtune options.
21103         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
21104
21105 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
21106
21107         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
21108         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
21109         tune_32 and tune_64.
21110         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
21111         support on PowerPC.
21112         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
21113         * config/rs6000/option-defaults.h: ... here.  New file.
21114         (OPT_64, OPT_32): Define.
21115         (MASK_64BIT): Define to 0 if not already defined.
21116         (OPT_ARCH64, OPT_ARCH32): Define.
21117         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
21118         and tune_64.
21119
21120 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21121
21122         * config/arm/arm.c (arm_override_options): Emit error on using
21123         fpa with AAPCS.
21124
21125 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
21126
21127         PR rtl-optimization/39914
21128         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
21129         registers for allocnos created from user-defined variables only
21130         when not optimizing.
21131
21132 2009-04-28  Richard Guenther  <rguenther@suse.de>
21133
21134         PR middle-end/39937
21135         * fold-const.c (fold_binary): Use distribute_real_division only
21136         on float types.
21137
21138 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
21139
21140         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
21141         add hpux-stdint.h to tm_file.
21142         (hppa[12]*-*-hpux11*): Ditto.
21143         (ia64*-*-hpux*): Ditto.
21144         * config/hpux-stdint.h: New.
21145         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
21146         __STDC_EXT__ for all compiles.
21147         * config/pa/pa-hpux.h: Ditto.
21148         * config/pa/pa-hpux10.h: Ditto.
21149         * config/pa/pa-hpux11.h: Ditto.
21150
21151 2009-04-28  Catherine Moore  <clm@codesourcery.com>
21152
21153         * debug.h (set_name): Add comment.
21154
21155 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
21156
21157         PR target/39929
21158         * config/darwin.c (machopic_gen_offset): Check
21159         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
21160         * config/arm/arm.c (require_pic_register): Likewise.
21161
21162 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
21163
21164         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
21165         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
21166         m32c_promote_prototypes): Delete.
21167
21168 2009-04-28  Michael Matz  <matz@suse.de>
21169
21170         PR middle-end/39922
21171         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
21172         constants.
21173
21174 2009-04-28  Richard Guenther  <rguenther@suse.de>
21175
21176         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
21177
21178 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21179
21180         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
21181         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
21182         * config/arm/arm-tune.md: Regenerate.
21183
21184 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
21185
21186         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
21187         block if there are complex incoming edges.
21188         (sel_merge_blocks): Remove useless assert.
21189         (sel_redirect_edge_and_branch): Check that edge was redirected.
21190         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
21191         (sel_find_rgns): Delete declaration.
21192         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
21193         the region when it is not a preheader.
21194
21195 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
21196
21197         PR c/39323
21198         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
21199
21200 2009-04-28  Richard Guenther  <rguenther@suse.de>
21201
21202         * tree.h (SSA_NAME_VALUE): Remove.
21203         (struct tree_ssa_name): Remove value_handle member.
21204         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
21205         array for jump threading.
21206         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
21207         SSA_NAME_VALUEs.
21208         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
21209         * tree-flow.h (threadedge_initialize_values): Declare.
21210         (threadedge_finalize_values): Likewise.
21211         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
21212         (SSA_NAME_VALUE): Define.
21213         (threadedge_initialize_values): New function.
21214         (threadedge_finalize_values): Likewise.
21215         * tree-ssa-dom.c (ssa_name_values): New global variable.
21216         (SSA_NAME_VALUE): Define.
21217         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
21218
21219 2009-04-28  Ira Rosen  <irar@il.ibm.com>
21220
21221         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
21222         Use REPORT_VECTORIZED_LOCATIONS instead
21223         REPORT_VECTORIZED_LOOPS.
21224         * tree-vectorizer.c (vect_verbosity_level): Make static.
21225         (vect_loop_location): Rename to vect_location.
21226         (vect_set_verbosity_level): Update comment.
21227         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
21228         and vect_location.
21229         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
21230         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
21231         instead REPORT_UNVECTORIZED_LOOPS.
21232         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
21233         and vect_loop_def to vect_external_def and vect_internal_def.
21234         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
21235         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
21236         REPORT_UNVECTORIZED_LOCATIONS.
21237         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
21238         and vect_used_in_loop and to vect_unused_in_scope and
21239         vect_used_in_scope.
21240         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
21241         (vect_verbosity_level): Remove declaration.
21242         (vect_analyze_operations): Likewise.
21243         (vect_analyze_stmt): Declare.
21244         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
21245         REPORT_UNVECTORIZED_LOCATIONS.
21246         (vect_get_loop_niters): Fix indentation.
21247         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
21248         (vect_analyze_loop_operations): New function.
21249         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
21250         vect_analyze_operations.
21251         (vect_is_simple_reduction): Use new names.
21252         (vectorizable_live_operation, vect_transform_loop): Likewise.
21253         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
21254         to specify whether the data references can be a part of interleaving
21255         chain.
21256         (vect_analyze_data_ref_dependence): Use new names.
21257         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
21258         (vect_create_addr_base_for_vector_ref): Remove redundant code.
21259         * tree-vect-patterns.c (widened_name_p): Use new names.
21260         (vect_recog_dot_prod_pattern): Likewise.
21261         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
21262         (process_use, vect_mark_stmts_to_be_vectorized,
21263         vect_model_simple_cost, vect_model_store_cost,
21264         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
21265         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
21266         vectorizable_operation, vectorizable_type_demotion,
21267         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
21268         vectorizable_condition): Likewise.
21269         (vect_analyze_operations): Split into vect_analyze_loop_operations
21270         and ...
21271         (vect_analyze_stmt): ... new function.
21272         (new_stmt_vec_info): Use new names.
21273         (vect_is_simple_use): Use new names and fix comment.
21274         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
21275         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
21276
21277 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
21278
21279         PR target/39911
21280         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
21281         and integer modes for x87 operands.  Do not ICE for unsupported size,
21282         generate error instead.  Generate error for unsupported operand types.
21283         ['z']: Do not handle HImode memory operands specially.  Warning
21284         for floating-point operands.  Fallthru to 'Z' for unsupported operand
21285         types.  Do not ICE for unsupported size, generate error instead.
21286         (output_387_binary_op): Use %Z to output operands.
21287         (output_fp_compare): Ditto.
21288         (output_387_reg_move): Ditto.
21289
21290 2009-04-28  Ben Elliston  <bje@au.ibm.com>
21291
21292         PR c++/35652
21293         Revert:
21294
21295         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21296
21297         * builtins.c (c_strlen): Do not warn here.
21298         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
21299         * c-common.c (pointer_int_sum): Take an explicit location.
21300         Warn about offsets out of bounds.
21301         * c-common.h (pointer_int_sum): Adjust declaration.
21302
21303 2009-04-27  Ian Lance Taylor  <iant@google.com>
21304
21305         * collect2.c (is_ctor_dtor): Change type of ret field in struct
21306         names to symkind.
21307         * dce.c (run_fast_df_dce): Change type of old_flags to int.
21308         * df-core.c (df_set_flags): Change return type to int.  Change
21309         type of old_flags to int.
21310         (df_clear_flags): Likewise.
21311         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
21312         (df_get_conditional_uses): Likewise.
21313         * df.h (df_set_flags, df_clear_flags): Update declarations.
21314         * dwarf2out.c (struct indirect_string_node): Change type of form
21315         field to enum dwarf_form.
21316         (AT_string_form): Change return type to enum dwarf_form.
21317         * fixed-value.c (fixed_compare): Add cast to enum type.
21318         * fwprop.c (update_df): Change 0 to VOIDmode.
21319         * gensupport.c: Change 0 to UNKNOWN.
21320         * gimple.h (gimple_cond_code): Add cast to enum type.
21321         * haifa-sched.c (reemit_notes): Add cast to enum type.
21322         * hooks.c (hook_int_void_no_regs): Remove function.
21323         * hooks.h (hook_int_void_no_regs): Remove declaration.
21324         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
21325         * predict.c (combine_predictions_for_insn): Add casts to enum type.
21326         * real.c (real_arithmetic): Add cast to enum type.
21327         (real_compare): Likewise.
21328         * target.h (struct gcc_target): Change return type of
21329         branch_target_register_class to enum reg_class.
21330         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
21331         default_branch_target_register_class.
21332         * targhooks.c (default_branch_target_register_class): New function.
21333         * targhooks.h (default_branch_target_register_class): Declare.
21334         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
21335         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
21336         cast to int.
21337         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
21338         ERROR_MARK.
21339         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
21340         vect_uninitialized_def.  Change 0 to ERROR_MARK.
21341         * tree-vect-stmts.c (supportable_widening_operation): Don't
21342         initialize icode1 and icode2.
21343         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
21344         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
21345         and to STD_C89.
21346         (cmn_err_flag_specs): Change 0 to STD_C89.
21347         (cmn_err_char_table): Likewise.
21348         * config/arm/arm.c (get_arm_condition_code): Change type of code
21349         to enum arm_cond_code.
21350         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
21351         (IWMMXT_BUILTIN2): Likewise.
21352         (neon_builtin_type_bits): Don't define typedef.
21353         (neon_builtin_datum): Change type of bits field to int.
21354         (arm_expand_neon_args): Add cast to enum type.
21355         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
21356         TLS_MODEL_NONE.
21357         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
21358         casts to enum type.
21359         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
21360         MIPS_FP_COND_f.
21361         * config/mips/mips.md (jal_macro): Return enum constant.
21362         (single_insn): Likewise.
21363         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
21364         CODE_FOR_nothing.
21365         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21366         casts to enum type.
21367         * config/s390/s390.c (s390_tune_flags): Change type to int.
21368         (s390_arch_flags): Likewise.
21369         (s390_handle_arch_option): Change flags field of struct pta to int.
21370         * config/s390/s390.h (s390_tune_flags): Update declaration.
21371         (s390_arch_flags): Likewise.
21372         * config/sh/sh.c (prepare_move_operands): Compare
21373         tls_symbolic_operand result with enum constant.
21374         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
21375         (sh_expand_prologue): Add cast to enum type.
21376         (sh_expand_epilogue): Likewise.
21377         (tls_symbolic_operand): Change return type to enum tls_model.
21378         (fpscr_set_from_mem): Add cast to enum type.
21379         (legitimize_pic_address): Compare tls_symbolic_operand result with
21380         enum constant.
21381         (sh_target_reg_class): Change return type to enum reg_class.
21382         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
21383         PROCESSOR_xxx.
21384         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
21385         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
21386         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
21387         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
21388         (delayed_branch, tls_call_delay): Likewise.
21389         (eligible_for_sibcall_delay): Likewise.
21390         (eligible_for_return_delay): Likewise.
21391         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
21392         (spu_expand_builtin_1): Likewise.
21393
21394         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
21395         for all types of conversions.
21396         (output_init_element): Issue -Wc++-compat warning if needed when
21397         initializing a bitfield with enum type.
21398         * c-parser.c (c_parser_expression): Set original_type to
21399         original_type of right hand operand of comma operator.
21400
21401 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21402
21403         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
21404         grammar nits.
21405         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
21406         * doc/cpp.texi (Standard Predefined Macros)
21407         (Implementation-defined behavior): Likewise.
21408         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
21409         * doc/gimple.texi (GIMPLE Exception Handling)
21410         (@code{GIMPLE_ASSIGN}): Likewise.
21411         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
21412         * doc/invoke.texi (Warning Options, Optimize Options)
21413         (AVR Options, Darwin Options): Likewise.
21414         (Optimize Options): Reformulate -fwhole-program description.
21415         * doc/loop.texi (Lambda): Likewise.
21416         * doc/md.texi (Output Template, Define Constraints)
21417         (Standard Names, Insn Splitting): Likewise.
21418         * doc/options.texi (Option properties): Likewise.
21419         * doc/passes.texi (Tree-SSA passes): Likewise.
21420         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
21421         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
21422         (File Names and DBX): Likewise.
21423         * doc/trouble.texi (Incompatibilities): Likewise.
21424
21425 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
21426
21427         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
21428         instruction is correct.
21429
21430 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
21431
21432         Allow non-constant arguments to conversion intrinsics.
21433         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
21434         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
21435         * spu.c (print_operand): Handle 'v' and 'w'.
21436         (exp2_immediate_p, spu_gen_exp2): Define.
21437         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
21438         spu_convtf_1): Update parameter descriptions.
21439         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
21440         * constraints.md ('v', 'w'): New.
21441         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
21442         Remove.
21443         (i2f, I2F): New define_mode_attr.
21444         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
21445         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
21446         fixuns_truncv4sfv4si2):  Update to use mode attribute.
21447         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
21448         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
21449         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
21450         patterns for combine.
21451
21452 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
21453
21454         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
21455         (cprop, hoist, pre, store_motion): New debug counters.
21456         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
21457         is not an RTL pass anymore.
21458         (pass_profiling): Remove extern decl for pass removed in 2005.
21459         (pass_gcse, pass_jump_bypass): Remove.
21460         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
21461         to 0 for clean state.
21462         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
21463         * cse.c (gate_handle_cse_after_global_opts,
21464         rest_of_handle_cse_after_global_opts): New functions.
21465         (pass_cse_after_global_opts): New pass, does local CSE.
21466         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
21467         (TV_CPROP): New timevar.
21468         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
21469         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
21470         (gcse_main, recompute_all_luids): Remove.
21471         (compute_hash_table_work): Call max_reg_num instead of reading
21472         max_gcse_regno.
21473         (cprop_jump): Don't set run_jump_opt_after_gcse.
21474         (constprop_register): Always allow to alter jumps.
21475         (cprop_insn): Likewise.
21476         (do_local_cprop): Likewise.
21477         (local_cprop_pass): Likewise.  Return non-zero if something changed.
21478         (cprop): Remove function, fold interesting bits into one_cprop_pass.
21479         (find_implicit_sets): Add note about missed optimization opportunity.
21480         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
21481         pass_rtl_cprop execute function.
21482         Don't bother tracking the pass number, each pass gets its own dumpfile
21483         now anyway.
21484         Always allow to alter jumpsand bypass jumps.
21485         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
21486         will just find no suitable set.
21487         (pre_edge_insert): Fix dumping, this function is for PRE only.
21488         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
21489         pass_rtl_pre execute function.
21490         (hoist_code): Return non-zero if something changed.  Keep track of
21491         substitutions and insertions for statistics gathering similar to PRE.
21492         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
21493         called from the pass_rtl_hoist execute function.  Show pass statistics.
21494         (compute_store_table): Use max_reg_num directly instead of using the
21495         formerly global max_gcse_regno.
21496         (build_store_vectors): Likewise.
21497         (replace_store_insn): Fix dumping.
21498         (store_motion): Rename to ...
21499         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
21500         pass, called from the pass_rtl_store_motion execute function.  Keep
21501         track of substitutions and insertions for statistics gathering similar
21502         to PRE.
21503         (bypass_jumps): Remove, fold interesting bits into ...
21504         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
21505         from the pass_rtl_cprop execute function.
21506         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
21507         pass_jump_bypass): Remove.
21508         (gate_handle_gcse, rest_of_handle_gcse): Remove.
21509         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
21510         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
21511         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
21512         (gate_rtl_store_motion, execute_rtl_store_motion,
21513         pass_rtl_store_motion): New.
21514         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
21515         make it clear that -fcse-skip-blocks is a no-op for backward compat.
21516         * passes.c (init_optimization_passes): Remove pass_gcse and
21517         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
21518         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
21519         instead of pass_jump_bypass.
21520
21521 2009-04-27  Richard Guenther  <rguenther@suse.de>
21522
21523         PR middle-end/39928
21524         * gimplify.c (gimplify_expr): If we are required to create
21525         a temporary make sure it ends up as register.
21526
21527 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
21528
21529         PR target/39903
21530         * config/i386/i386.c (construct_container): Don't call
21531         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
21532         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
21533
21534 2009-04-27  Michael Matz  <matz@suse.de>
21535
21536         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
21537         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
21538         * tree-ssa-live.h (find_replaceable_exprs): Return a bitmap.
21539         (dump_replaceable_exprs): Take a bitmap.
21540         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
21541         array.
21542         (expand_gimple_basic_block): Likewise.
21543         * tree-ssa-ter.c (struct temp_expr_table_d): Make
21544         replaceable_expressions member a bitmap.
21545         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
21546         (mark_replaceable): Likewise.
21547         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
21548         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
21549
21550 2009-04-27  Richard Guenther  <rguenther@suse.de>
21551
21552         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
21553         (verify_stmts): Dispatch to gimple/type verification code.
21554         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
21555         issue with call argument types.
21556
21557 2009-04-27  Michael Matz  <matz@suse.de>
21558
21559         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
21560         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
21561         to above.
21562
21563 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
21564             Eric Botcazou  <ebotcazou@adacore.com>
21565
21566         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
21567         a label's basic block.
21568         (mark_target_live_regs): Tidy and rework obsolete comments.
21569         Change back DF problem to LIVE.  If a label starts a basic block,
21570         assume that all registers that used to be live then still are.
21571         (init_resource_info): If a label starts a basic block, set its
21572         BLOCK_FOR_INSN accordingly.
21573         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
21574
21575 2009-04-27  Richard Guenther  <rguenther@suse.de>
21576
21577         * tree-flow-inline.h (function_ann): Remove.
21578         (get_function_ann): Likewise.
21579         * tree-dfa.c (create_function_ann): Remove.
21580         * tree-flow.h (struct static_var_ann_d): Remove.
21581         (struct function_ann_d): Likewise.
21582         (union tree_ann_d): Remove fdecl member.
21583         (function_ann_t): Remove.
21584         (function_ann, get_function_ann, create_function_ann): Remove
21585         declarations.
21586
21587 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
21588
21589         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
21590
21591 2009-04-27  Jan Hubicka  <jh@suse.cz>
21592
21593         * ipa-pure-const.c (struct funct_state_d): New fields
21594         state_previously_known, looping_previously_known; remove
21595         state_set_in_source.
21596         (analyze_function): Use new fields.
21597         (propagate): Avoid assumption that state_set_in_source imply
21598         nonlooping.
21599
21600         * tree-ssa-loop-niter.c (finite_loop_p): New function.
21601         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
21602         * cfgloop.h (finite_loop_p): Declare.
21603
21604 2009-04-26  Michael Matz  <matz@suse.de>
21605
21606         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
21607
21608 2009-04-26  Michael Matz  <matz@suse.de>
21609
21610         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
21611         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
21612         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
21613         pass_mark_used_blocks): Remove.
21614         * tree-optimize.c (pass_free_datastructures,
21615         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
21616         * passes.c (init_optimization_passes): Don't call
21617         pass_mark_used_blocks, remove dead code.
21618
21619 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
21620
21621         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
21622         * tree-ssa-live.h (register_ssa_partition): Likewise.
21623
21624 2009-04-26  Michael Matz  <matz@suse.de>
21625
21626         Expand from SSA.
21627         * builtins.c (fold_builtin_next_arg): Handle SSA names.
21628         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
21629         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
21630         SSA names.
21631         (compare_pairs): Swap cost comparison.
21632         (coalesce_ssa_name): Don't use change_partition_var.
21633         * tree-nrv.c (struct nrv_data): Add modified member.
21634         (finalize_nrv_r): Set it.
21635         (tree_nrv): Use it to update statements.
21636         (pass_nrv): Require PROP_ssa.
21637         * tree-mudflap.c (mf_decl_cache_locals,
21638         mf_build_check_statement_for): Use make_rename_temp.
21639         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
21640         * alias.c (find_base_decl): Handle SSA names.
21641         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
21642         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
21643         * rtl.h (set_reg_attrs_for_parm): Declare.
21644         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
21645         to "optimized", remove unused locals at finish.
21646         (execute_free_datastructures): Make global, call
21647         delete_tree_cfg_annotations.
21648         (execute_free_cfg_annotations): Don't call
21649         delete_tree_cfg_annotations.
21650
21651         * ssaexpand.h: New file.
21652         * expr.c (toplevel): Include ssaexpand.h.
21653         (expand_assignment): Handle SSA names the same as register variables.
21654         (expand_expr_real_1): Expand SSA names.
21655         * cfgexpand.c (toplevel): Include ssaexpand.h.
21656         (SA): New global variable.
21657         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
21658         (SSAVAR): New macro.
21659         (set_rtl): New helper function.
21660         (add_stack_var): Deal with SSA names, use set_rtl.
21661         (expand_one_stack_var_at): Likewise.
21662         (expand_one_stack_var): Deal with SSA names.
21663         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
21664         before unique numbers.
21665         (expand_stack_vars): Use set_rtl.
21666         (expand_one_var): Accept SSA names, add asserts for them, feed them
21667         to above subroutines.
21668         (expand_used_vars): Expand all partitions (without default defs),
21669         then only the local decls (ignoring those expanded already).
21670         (expand_gimple_cond): Remove edges when jumpif() expands an
21671         unconditional jump.
21672         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
21673         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
21674         SSA name.
21675         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
21676         members of SA; deal with PARM_DECL partitions here; expand
21677         all PHI nodes, free tree datastructures and SA.  Commit instructions
21678         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
21679         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
21680         info and statements at start, collect garbage at finish.
21681         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
21682         (VAR_ANN_PARTITION) Remove.
21683         (change_partition_var): Don't declare.
21684         (partition_to_var): Always return SSA names.
21685         (var_to_partition): Only accept SSA names.
21686         (register_ssa_partition): Only check argument.
21687         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
21688         member.
21689         (delete_var_map): Don't free it.
21690         (var_union): Only accept SSA names, simplify.
21691         (partition_view_init): Mark only useful SSA names as used.
21692         (partition_view_fini): Only deal with SSA names.
21693         (change_partition_var): Remove.
21694         (dump_var_map): Use ssa_name instead of partition_to_var member.
21695         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
21696         basic blocks.
21697         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
21698         (struct _elim_graph): New member const_dests; nodes member vector of
21699         ints.
21700         (set_location_for_edge): New static helper.
21701         (create_temp): Remove.
21702         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
21703         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
21704         (new_elim_graph): Allocate const_dests member.
21705         (clean_elim_graph): Truncate const_dests member.
21706         (delete_elim_graph): Free const_dests member.
21707         (elim_graph_size): Adapt to new type of nodes member.
21708         (elim_graph_add_node): Likewise.
21709         (eliminate_name): Likewise.
21710         (eliminate_build): Don't take basic block argument, deal only with
21711         partition numbers, not variables.
21712         (get_temp_reg): New static helper.
21713         (elim_create): Use it, deal with RTL temporaries instead of trees.
21714         (eliminate_phi): Adjust all calls to new signature.
21715         (assign_vars, replace_use_variable, replace_def_variable): Remove.
21716         (rewrite_trees): Only do checking.
21717         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
21718         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
21719         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
21720         contains_tree_r, MAX_STMTS_IN_LATCH,
21721         process_single_block_loop_latch, analyze_edges_for_bb,
21722         perform_edge_inserts): Remove.
21723         (expand_phi_nodes): New global function.
21724         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
21725         functions, initialize new parameter, remember partitions having a
21726         default def.
21727         (finish_out_of_ssa): New global function.
21728         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
21729         don't reset in_ssa_p here, don't disable TER when mudflap.
21730         (pass_del_ssa): Remove.
21731         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
21732         partition members.
21733         (execute_free_datastructures): Declare.
21734         * Makefile.in (SSAEXPAND_H): New variable.
21735         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
21736         * basic-block.h (commit_one_edge_insertion): Declare.
21737         * passes.c (init_optimization_passes): Move pass_nrv and
21738         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
21739         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
21740         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
21741         (redirect_branch_edge): Deal with super block when expanding, split
21742         out jump patching itself into ...
21743         (patch_jump_insn): ... here, new static helper.
21744
21745 2009-04-26  Michael Matz  <matz@suse.de>
21746
21747         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
21748         beyond num_ssa_names.
21749         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
21750         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
21751
21752 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
21753
21754         PR inline-asm/39543
21755         * fwprop.c (forward_propagate_asm): New function.
21756         (forward_propagate_and_simplify): Propagate also into __asm, if it
21757         doesn't increase the number of referenced registers.
21758
21759         PR c/39889
21760         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
21761
21762 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
21763
21764         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
21765         note_nonlocal_vla_type for nonlocal VLAs.
21766         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
21767         contains_remapped_vars, remap_vla_decls): New functions.
21768         (convert_nonlocal_reference_stmt): If not optimizing, call
21769         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
21770         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
21771         if it wasn't found in var_map.
21772         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
21773         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
21774         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
21775         declare_vars.
21776         * gimplify.c (nonlocal_vlas): New variable.
21777         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
21778         referenced VLAs.
21779         (gimplify_body): Create and destroy nonlocal_vlas.
21780
21781         * dwarf2out.c (loc_descr_plus_const): New function.
21782         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
21783         mem_loc_descriptor, loc_descriptor_from_tree_1,
21784         descr_info_loc, gen_variable_die): Use it.
21785
21786         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
21787         !TREE_STATIC VAR_DECLs.
21788         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
21789         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
21790         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
21791         DECL_BY_REFERENCE is valid.
21792         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
21793         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
21794         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
21795         Copy DECL_BY_REFERENCE.
21796         (struct nesting_copy_body_data): New type.
21797         (nesting_copy_decl): New function.
21798         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
21799         if they have variable length.
21800
21801 2009-04-26  Michael Matz  <matz@suse.de>
21802
21803         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
21804         mark new temporaries for renaming.
21805
21806 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
21807
21808         PR c/39581
21809         * c-decl.c (global_bindings_p): Return negative value.
21810         (c_variable_size): New.  Based on variable_size from
21811         stor-layout.c.
21812         (grokdeclarator): Call c_variable_size not variable_size.
21813
21814 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
21815
21816         * config/i386/i386.c (print_operand) ['z']: Fix typo.
21817
21818 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
21819
21820         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
21821         Redefine it to just use mingw/include.
21822         (ASM_SPEC): Rules for -m32 and -m64.
21823         (LINK_SPEC): Use Likewise.
21824         (SPEC_32): New define.
21825         (SPEC_64): Likewise.
21826         (SUB_LINK_SPEC): Likewise.
21827         (MULTILIB_DEFAULTS): New define.
21828         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
21829         Add multilib options.
21830         (MULTILIB_DIRNAMES): Likewise.
21831         (MULTILIB_OSDIRNAMES): Likewise.
21832         (LIBGCC): Likewise.
21833         (INSTALL_LIBGCC): Likewise.
21834
21835 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
21836
21837         PR c/39556
21838         * c-tree.h (enum c_inline_static_type): New.
21839         (record_inline_static): Declare.
21840         * c-decl.c (struct c_inline_static, c_inline_statics,
21841         record_inline_static, check_inline_statics): New.
21842         (pop_file_scope): Call check_inline_statics.
21843         (start_decl): Call record_inline_static instead of pedwarning
21844         directly for static in inline function.
21845         * c-typeck.c (build_external_ref): Call record_inline_static
21846         instead of pedwarning directly for static referenced in inline
21847         function.
21848
21849 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
21850
21851         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
21852         not new but only being rescanned.
21853         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
21854         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
21855         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
21856         record_set_info, compute_set, grealloc): Remove.
21857         (recompute_all_luids): New function.
21858         (gcse_main): Don't compute sets, and don't do related memory
21859         allocations/free-ing.  If something changed before the end of the
21860         pass, update LUIDs using recompute_all_luids.
21861         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
21862         (free_gcse_mem): Don't free it either.
21863         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
21864         Use the df insn LUIDs.
21865         (load_killed_in_block): Likewise.
21866         (compute_hash_table_work): Don't compute reg_set_in_block.
21867         (compute_transp): Use DF_REG_DEF_CHAINs.
21868         (local_cprop_pass): Don't use compute_sets and related functions.
21869         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
21870         Use get_max_uid() instead of max_cuid.
21871         (insert_insn_end_basic_block, pre_insert_copy_insn,
21872         update_ld_motion_stores): Don't try to
21873         keep reg_set tables up to date.
21874         (pre_insert_copies): Use df insn LUIDs.
21875         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
21876         (reg_set_info): Don't use extra bitmap argument.
21877         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
21878         information to compute regs_set_in_block.
21879         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
21880         (bypass_jumps): Don't use compute_sets and friends.
21881
21882 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21883
21884         PR testsuite/39710
21885         * opts.c (undocumented_msg): Do not leave blank even with
21886         ENABLE_CHECKING.
21887
21888 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
21889
21890         * c-decl.c (build_enumerator): Allow values folding to integer
21891         constants but not integer constant expressions with a pedwarn if
21892         pedantic.
21893
21894 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
21895
21896         PR c/39582
21897         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
21898         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
21899         type is an integer constant.
21900
21901 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
21902
21903         PR target/39897
21904         * config/i386/i386.c (print_operand) ['z']: Revert handling of
21905         HImode operands.
21906
21907 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
21908
21909         PR c/39564
21910         * c-decl.c (grokdeclarator): Diagnose declarations of functions
21911         with variably modified return type and no storage class
21912         specifiers, except for the case of nested functions.  Distinguish
21913         extern declarations of functions with variably modified return
21914         types from those of objects with variably modified types.
21915
21916 2009-04-25  Jan Hubicka  <jh@suse.cz>
21917
21918         * tree.c (list_equal_p): New function.
21919         * tree.h (list_equal_p): Declare.
21920         * coretypes.h (edge_def, edge, const_edge, basic_block_def
21921         basic_block_def, basic_block, const_basic_block): New.
21922         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
21923         (redirect_eh_edge): New function.
21924         (make_eh_edge_update_phi): EH edges are not abnormal.
21925         * except.c: Include tree-flow.h.
21926         (list_match): New function.
21927         (eh_region_replaceable_by_p): New function.
21928         (replace_region): New function.
21929         (hash_type_list): New function.
21930         (hash_eh_region): New function.
21931         (eh_regions_equal_p): New function.
21932         (merge_peers): New function.
21933         (remove_unreachable_regions): Verify EH tree when checking;
21934         merge peers.
21935         (copy_eh_region_1): New function.
21936         (copy_eh_region): New function.
21937         (push_reachable_handler): New function.
21938         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
21939         regions without label but with live RESX.
21940         * except.h (redirect_eh_edge_to_label): New.
21941         * tree-flow.h (redirect_eh_edge): New.
21942         * coretypes.h (edge_def, edge, const_edge, basic_block_def
21943         basic_block_def, basic_block, const_basic_block): Remove.
21944         * Makefile.in (except.o): Add dependency on tree-flow.h
21945         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
21946         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
21947         Remove.
21948
21949 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
21950
21951         PR bootstrap/39645
21952         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
21953         on the destination of memcpy.
21954
21955 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
21956
21957         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
21958         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
21959         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
21960
21961 2009-04-25  Jan Hubicka  <jh@suse.cz>
21962
21963         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
21964         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
21965         to be reached by different label than left.
21966         (update_eh_edges): Update comment; remove edge_to_remove if possible
21967         and return true if suceeded.
21968         (cleanup_empty_eh): Accept sharing map; handle shared regions.
21969         (cleanup_eh): Compute sharing map.
21970         * except.c (remove_eh_handler_and_replace): Add argument if we should
21971         update regions.
21972         (remove_unreachable_regions): Update for label sharing.
21973         (label_to_region_map): Likewise.
21974         (get_next_region_sharing_label): New function.
21975         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
21976         prev_try pointers.
21977         (remove_eh_handler): Update.
21978         (remove_eh_region_and_replace_by_outer_of): New function.
21979         * except.h (struct eh_region): Add next_region_sharing_label.
21980         (remove_eh_region_and_replace_by_outer_of,
21981         get_next_region_sharing_label): Declare.
21982         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
21983
21984 2009-04-25  Jan Hubicka  <jh@suse.cz>
21985
21986         * tree-cfg.c (split_critical_edges): Split also edges where we can't
21987         insert code even if they are not critical.
21988
21989 2009-04-25  Jan Hubicka  <jh@suse.cz>
21990
21991         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
21992         (gimple_can_remove_branch_p): EH edges won't remove branch by
21993         redirection.
21994         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
21995         updating of non-abnormal EH edges.
21996         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
21997         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
21998         (split_critical_edges): Split also edges where emitting code on them
21999         will lead to splitting later.
22000
22001 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
22002             H.J. Lu  <hongjiu.lu@intel.com>
22003
22004         PR target/39590
22005         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
22006         the configured assembler supports fildq and fistpq mnemonics.
22007         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
22008         * configure: Regenerated.
22009         * config.in: Ditto.
22010
22011         * config/i386/i386.c (print_operand): Handle 'Z'.
22012         ['z']: Remove handling of special fild/fist suffixes.
22013         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
22014         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
22015         suffix of fild insn.
22016         (*floatsi<mode>2_vector_mixed): Ditto.
22017         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
22018         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
22019         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
22020         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
22021         * config/i386/gas.h (GAS_MNEMONICS): Remove.
22022
22023 2009-04-25  Ben Elliston  <bje@au.ibm.com>
22024
22025         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
22026         the source of a set operation.
22027
22028 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
22029
22030         * target.h (struct gcc_target): Add case_values_threshold field.
22031         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
22032         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
22033         * targhooks.c (default_case_values_threshold): New function.
22034         * targhooks.h (default_case_values_threshold): Declare function.
22035         * stmt.c (expand_case): Use case_values_threshold target hook.
22036         * expr.h (case_values_threshold): Remove declartation.
22037         * expr.c (case_values_threshold): Remove function.
22038         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
22039
22040         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
22041         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
22042         (avr_case_values_threshold): Declare as static.
22043         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
22044
22045         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
22046         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
22047         (mn10300_case_values_threshold): New function.
22048
22049 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
22050
22051         * ira.c (setup_cover_and_important_classes): Add enum cast.
22052
22053 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
22054
22055         * genpreds.c (write_enum_constraint_num): Output definition of
22056         CONSTRAINT_NUM_DEFINED_P macro.
22057         * ira.c (setup_cover_and_important_classes): Use
22058         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
22059
22060 2009-04-24  DJ Delorie  <dj@redhat.com>
22061
22062         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
22063         __SH2A_SINGLE_ONLY__ also.
22064
22065 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
22066
22067         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
22068         (movdf_internal): Ditto.
22069         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
22070         SFmode and DFmode constants.
22071         (ia64_print_operand): Add 'G' format for printing
22072         floating point constants.
22073
22074 2009-04-24  Richard Guenther  <rguenther@suse.de>
22075
22076         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
22077         from unsigned additions.
22078
22079 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
22080
22081         * c-typeck.c (set_init_index): Allow array designators that are
22082         not integer constant expressions with a pedwarn if pedantic.
22083
22084 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
22085
22086         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
22087         zero if no overlap in nonzero bits between the operands.
22088
22089 2009-04-24  Ian Lance Taylor  <iant@google.com>
22090
22091         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
22092         (record_dead_and_set_regs): Likewise.
22093         * df.h (struct df_mw_hardreg): Change flags field to int.
22094         (struct df_base_ref): Likewise.
22095         (struct df): Change changeable_flags field to int.
22096         * df-scan.c (df_defs_record): Change clobber_flags to int.
22097         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
22098         constants rather than #define macros.
22099         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
22100         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
22101         (enum dwarf_calling_convention): Likewise.
22102         (enum dwarf_line_number_x_ops): Likewise.
22103         (enum dwarf_call_frame_info): Likewise.
22104         (enum dwarf_source_language): Likewise.
22105         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
22106         (add_calling_convention_attribute): Likewise.
22107         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
22108         (combine_comparisons): Change compcode to int.  Add cast to enum type.
22109         * genrecog.c (maybe_both_true_2): Change c to int.
22110         (write_switch): Likewise.  Add cast to enum type.
22111         * gimplify.c (gimplify_omp_for): Handle return values from
22112         gimplify_expr using MIN rather than bitwise or.
22113         (gimplify_expr): Add cast to enum type.
22114         * ipa-prop.c (update_jump_functions_after_inlining): Change
22115         IPA_BOTTOM to IPA_JF_UNKNOWN.
22116         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
22117         Add casts to enum type.
22118         (setup_cover_and_important_classes): Change cl to int.  Add casts
22119         to enum type.
22120         (setup_class_translate): Change cl and mode to int.
22121         (ira_init_once): Change mode to int.
22122         (free_register_move_costs): Likewise.
22123         (setup_prohibited_mode_move_regs): Add casts to enum type.
22124         * langhooks.c (add_builtin_function_common): Rework assertion that
22125         value fits bitfield.
22126         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
22127         * omega.c (omega_do_elimination): Avoid math on enum types.
22128         * optabs.c (expand_vec_shift_expr): Remove casts to int.
22129         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
22130         int local to handle integral_argment value.
22131         * regmove.c (try_auto_increment): Change PUT_MODE to
22132         PUT_REG_NOTE_KIND.
22133         * reload.c (push_secondary_reload): Add casts to enum type.
22134         (secondary_reload_class, find_valid_class): Likewise.
22135         * reload1.c (emit_input_reload_insns): Likewise.
22136         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
22137         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
22138         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
22139         constant.
22140         * tree.c (build_common_builtin_nodes): Add casts to enum type.
22141         * tree-complex.c (complex_lattice_t): Typedef to int rather than
22142         enum type.
22143         (expand_complex_libcall): Add casts to enum type.
22144         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
22145         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
22146         with ERROR_MARK, not NUM_TREE_CODES.
22147         (vect_create_epilog_for_reduction): Likewise.
22148         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
22149         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
22150         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
22151         enum machine_mode.
22152         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
22153         vect_unused_in_loop.  Change 0 to loop_vect.
22154         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
22155         * var-tracking.c (get_init_value): Change return type to enum
22156         var_init_status.
22157         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
22158         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
22159         arm_fp_model.
22160         (arm_override_options): Add casts to enum type.
22161         (arm_emit_tls_decoration): Likewise.
22162         * config/i386/i386.c (ix86_function_specific_restore): Add casts
22163         to enum type.
22164         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
22165         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
22166         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
22167         enum type.
22168         * config/s390/s390.c (code_for_builtin_64): Change to array of
22169         enum insn_code.
22170         (code_for_builtin_31): Likewise.
22171         (s390_expand_builtin): Change code_for_builtin to enum insn_code
22172         const *.
22173         * config/sparc/sparc.c (sparc_override_options): Change value
22174         field in struct code_model to enum cmodel.  In initializer change
22175         0 to NULL and add cast to enum type.
22176
22177         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
22178         Change all callers.  Issue a -Wc++-compat warning using
22179         lhs_origtype if necessary.
22180         (convert_for_assignment): Issue -Wc++-compat warnings about
22181         invalid conversions to enum type on assignment.
22182         * c-common.h (build_modify_expr): Update declaration.
22183
22184 2009-04-24  Nick Clifton  <nickc@redhat.com>
22185
22186         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
22187         (function_arg_advance): Likewise.
22188         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
22189         5th alternative.
22190
22191 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
22192
22193         * config/s390/constraints.md ('I', 'J'): Fix condition.
22194
22195 2009-04-24  Diego Novillo  <dnovillo@google.com>
22196
22197         * gengtype-parse.c (parse_error): Add newline after message.
22198
22199 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
22200
22201         * config/i386/sse.md (avxmodesuffixs): Removed.
22202         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
22203         (*avx_pinsr<ssevecsize>): This.
22204
22205 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
22206
22207         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
22208         follow chains of regs with a single definition, and allow expressions
22209         that are function_invariant_p.
22210         (simple_rhs_p): Allow expressions that are function_invariant_p.
22211
22212 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
22213
22214         PR middle-end/39867
22215         * fold-const.c (fold_cond_expr_with_comparison): When folding
22216         > and >= to MAX, make sure the MAX uses the same type as the
22217         comparison's operands.
22218
22219 2009-04-24  Nick Clifton  <nickc@redhat.com>
22220
22221         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
22222         addressing for DImode accesses.
22223         (frv_print_operand_address): Handle PLUS case.
22224         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
22225
22226 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
22227
22228         PR rtl-optimization/39794
22229         * alias.c (canon_true_dependence): Add x_addr argument.
22230         * rtl.h (canon_true_dependence): Adjust prototype.
22231         * cse.c (check_dependence): Adjust canon_true_dependence callers.
22232         * cselib.c (cselib_invalidate_mem): Likewise.
22233         * gcse.c (compute_transp): Likewise.
22234         * dse.c (scan_reads_nospill): Likewise.
22235         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
22236         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
22237         canon_base_addr of the group, plus optional offset.
22238         (struct group_info): Rename canon_base_mem to
22239         canon_base_addr.
22240         (get_group_info): Set canon_base_addr to canon_rtx of base, not
22241         canon_rtx of base_mem.
22242
22243 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
22244
22245         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
22246         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
22247
22248 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22249
22250         * config/spu/spu-builtins.h: Delete file.
22251
22252         * config/spu/spu.h (enum spu_builtin_type): Move here from
22253         spu-builtins.h.
22254         (struct spu_builtin_description): Likewise.  Add GTY marker.
22255         Do not use enum spu_function_code or enum insn_code.
22256         (spu_builtins): Add extern declaration.
22257
22258         * config/spu/spu.c: Do not include "spu-builtins.h".
22259         (enum spu_function_code, enum spu_builtin_type_index,
22260         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
22261         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
22262         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
22263         unsigned_V2DI_type_node): Move here from spu-builtins.h.
22264         (spu_builtin_types): Make static.  Add GTY marker.
22265         (spu_builtins): Add extern declaration with GTY marker.
22266         Include "gt-spu.h".
22267
22268         * config/spu/spu-c.c: Do not include "spu-builtins.h".
22269         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
22270         Check programmatically whether all parameters are scalar.
22271
22272         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
22273
22274 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
22275
22276         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
22277         assignment from the constructor either if the target is volatile.
22278
22279 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
22280
22281         * config/arm/arm.md (insv): Do not share operands[0].
22282
22283 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
22284
22285         * config/vxlib-tls.c (active_tls_threads): Delete.
22286         (delete_hook_installed): New.
22287         (tls_delete_hook): Don't delete the delete hook.
22288         (tls_destructor): Delete it here.
22289         (__gthread_set_specific): Adjust installing the delete hook.
22290         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
22291         __gthread_leave_tsd_dtor_context.
22292
22293 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
22294
22295         * c-format.c (gcc_tdiag_char_table): Add support for %E.
22296
22297 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
22298
22299         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
22300         enum type.
22301         (alpha_rtx_costs): Ditto.
22302         (emit_unlikely_jump): Use add_reg_note.
22303         (emit_frame_store_1): Ditto.
22304         (alpha_expand_prologue): Ditto.
22305         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
22306         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
22307
22308 2009-04-23  Nick Clifton  <nickc@redhat.com>
22309
22310         * config/v850/v850.md (epilogue): Remove suppressed code.
22311         (return): Rename to return_simple and remove test of frame size.
22312         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
22313         to gen_return_simple.
22314
22315 2009-04-22  Jing Yu  <jingyu@google.com>
22316
22317         PR testsuite/39781
22318         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
22319
22320 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22321
22322         PR C/31499
22323         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
22324         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
22325         value is a VECTOR_CST, the element type is the element type of the
22326         vector.
22327
22328 2009-04-22  DJ Delorie  <dj@redhat.com>
22329
22330         * config/m32c/m32c.h: Update GTY annotations to new syntax.
22331
22332 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
22333
22334         * alias.c (find_base_term): Move around LO_SUM case, so that
22335         CONST falls through into PLUS/MINUS handling.
22336
22337         PR c/39855
22338         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
22339         into 0, use omit_one_operand.
22340
22341 2009-04-23  Ben Elliston  <bje@au.ibm.com>
22342
22343         * config/rs6000/linux-unwind.h (get_regs): Remove type
22344         puns. Change the type of `pc' to an array of unsigned ints and
22345         update all users.  Constify frame24.
22346
22347 2009-04-22  DJ Delorie  <dj@redhat.com>
22348
22349         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
22350         declarations before code.
22351         (current_function_special_page_vector): Likewise.
22352         (m32c_expand_insv): Silence a warning.
22353
22354 2009-04-21  Taras Glek  <tglek@mozilla.com>
22355
22356         * alias.c: Update GTY annotations to new syntax.
22357         * basic-block.h: Likewise.
22358         * bitmap.h: Likewise.
22359         * c-common.h: Likewise.
22360         * c-decl.c: Likewise.
22361         * c-parser.c: Likewise.
22362         * c-pragma.c: Likewise.
22363         * c-tree.h: Likewise.
22364         * cfgloop.h: Likewise.
22365         * cgraph.h: Likewise.
22366         * config/alpha/alpha.c: Likewise.
22367         * config/arm/arm.h: Likewise.
22368         * config/avr/avr.h: Likewise.
22369         * config/bfin/bfin.c: Likewise.
22370         * config/cris/cris.c: Likewise.
22371         * config/darwin.c: Likewise.
22372         * config/frv/frv.c: Likewise.
22373         * config/i386/i386.c: Likewise.
22374         * config/i386/i386.h: Likewise.
22375         * config/i386/winnt.c: Likewise.
22376         * config/ia64/ia64.h: Likewise.
22377         * config/iq2000/iq2000.c: Likewise.
22378         * config/mips/mips.c: Likewise.
22379         * config/mmix/mmix.h: Likewise.
22380         * config/pa/pa.c: Likewise.
22381         * config/pa/pa.h: Likewise.
22382         * config/rs6000/rs6000.c: Likewise.
22383         * config/s390/s390.c: Likewise.
22384         * config/sparc/sparc.c: Likewise.
22385         * config/xtensa/xtensa.c: Likewise.
22386         * cselib.h: Likewise.
22387         * dbxout.c: Likewise.
22388         * dwarf2out.c: Likewise.
22389         * except.c: Likewise.
22390         * except.h: Likewise.
22391         * fixed-value.h: Likewise.
22392         * function.c: Likewise.
22393         * function.h: Likewise.
22394         * gimple.h: Likewise.
22395         * integrate.c: Likewise.
22396         * optabs.c: Likewise.
22397         * output.h: Likewise.
22398         * real.h: Likewise.
22399         * rtl.h: Likewise.
22400         * stringpool.c: Likewise.
22401         * tree-data-ref.c: Likewise.
22402         * tree-flow.h: Likewise.
22403         * tree-scalar-evolution.c: Likewise.
22404         * tree-ssa-address.c: Likewise.
22405         * tree-ssa-alias.h: Likewise.
22406         * tree-ssa-operands.h: Likewise.
22407         * tree.c: Likewise.
22408         * tree.h: Likewise.
22409         * varasm.c: Likewise.
22410         * varray.h: Likewise.
22411         * vec.h: Likewise.
22412         * coretypes.h: Do not define GTY macro if it is already defined.
22413         * doc/gty.texi: Update GTY documentation to new syntax.
22414         * gengtype-lex.l: Enforce attribute-like syntax for GTY
22415         annotations on structs.
22416         * gengtype-parse.c: Likewise.
22417
22418 2009-04-22  Mark Heffernan  <meheff@google.com>
22419
22420         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
22421
22422 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
22423
22424         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
22425         where appropriate.
22426
22427 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
22428
22429         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
22430         the same as a PLUS without a shift.  Increase the cost of a
22431         CONST_INT in MULT.
22432
22433 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22434
22435         * Makefile.in: Update dependencies.
22436         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
22437         * errors.h: Remove bogus comment about compatibility.
22438         (warning): Update declaration.
22439         * genautomata.c: Update all calls to warning.
22440         * gimple.c: Do not include errors.h. Include toplev.h.
22441         * tree-ssa-structalias.c: Do not include errors.h.
22442         * omega.c: Likewise.
22443         * tree-ssa-reassoc.c: Likewise.
22444         * config/spu/spu-c.c: Likewise.
22445         * config/spu/t-spu-elf: Update dependencies.
22446
22447 2009-04-22  Richard Guenther  <rguenther@suse.de>
22448
22449         PR tree-optimization/39824
22450         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
22451         make sure the types are compatible.
22452
22453 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22454
22455         PR c++/14875
22456         * c-common.c (c_parse_error): Take a token_flags parameter.
22457         Use token_type for the token type instead.
22458         Pass token_flags to cpp_type2name.
22459         * c-common.h (c_parse_error): Update declaration.
22460         * c-parser.c (c_parser_error): Pass 0 as token flags.
22461
22462 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
22463
22464         PR rtl-optimization/39580
22465         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
22466
22467 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22468
22469         * function.c (expand_function_end): Do not emit a jump to the "naked"
22470         return label for fall-through returns.
22471         * except.c (sjlj_emit_function_exit): Always place the call to the
22472         unregister function at the location installed by expand_function_end.
22473
22474 2009-04-22  Richard Guenther  <rguenther@suse.de>
22475
22476         PR tree-optimization/39845
22477         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
22478         (gen_inbound_check): Likewise.
22479
22480 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
22481
22482         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
22483         padding for PPC.
22484         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
22485         * config/vxlib.c (__gthread_once): Add race guard for PPC.
22486
22487 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
22488
22489         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
22490         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
22491         shift counts to avoid out-of-bounds array accesses.
22492
22493 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
22494
22495         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
22496         (Pmode): Move above.
22497
22498 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
22499
22500         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
22501         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
22502         GET_CODE macro.  Use IN_RANGE macro where appropriate.
22503         * config/alpha/alpha.h: Ditto.
22504         * config/alpha/alpha.md: Ditto.
22505         * config/alpha/constraints.md: Ditto.
22506         * config/alpha/predicates.md: Ditto.
22507
22508 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
22509
22510         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
22511         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22512         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22513         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22514         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22515         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22516         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22517         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22518         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22519         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22520         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22521         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22522         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22523         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22524         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22525         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22526         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22527         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22528         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22529         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22530         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22531         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22532         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22533         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22534         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22535         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22536         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22537
22538 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
22539
22540         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
22541         references from comments.
22542         * cfgbuild.c (count_basic_blocks): Delete.
22543         (find_basic_blocks_1): Delete.
22544         (find_basic_blocks): Delete.
22545         * except.c (finish_eh_generation): Make static.  Move comment from
22546         except.h here.  Remove find_basic_blocks references from comments.
22547         * except.h (finish_eh_generation): Delete.
22548         * basic-block.h (find_basic_blocks): Delete.
22549         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
22550
22551 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
22552
22553         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
22554         (sdbout_parms):  Likewise.
22555
22556 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
22557
22558         * config/sh/sh.c (prepare_cbranch_operands): Use
22559         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
22560         (expand_cbranchdi4): Likewise.
22561         (from_compare): Add cast to enum type.
22562         (expand_cbranchsi4): Use add_reg_note.
22563         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
22564         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
22565         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
22566         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
22567         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
22568         instead of CODE_FOR_nothing.
22569         (cbranchdi4): Likewise.  Fix the order of arguments for
22570         gen_rtx_fmt_ee.
22571         (push_fpscr): Use add_reg_note.
22572         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
22573         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
22574
22575 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
22576
22577         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
22578         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
22579         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
22580         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
22581         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
22582         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
22583         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
22584         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
22585         config/alpha/x-vms, config/arc/t-arc,
22586         config/arm/README-interworking, config/arm/arm-c.c,
22587         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
22588         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
22589         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
22590         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
22591         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
22592         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
22593         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
22594         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
22595         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
22596         config/cris/t-elfmulti, config/crx/t-crx,
22597         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
22598         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
22599         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
22600         config/h8300/t-h8300, config/i386/athlon.md,
22601         config/i386/darwin-libgcc.10.4.ver,
22602         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
22603         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
22604         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
22605         config/i386/t-linux64, config/i386/t-nwld,
22606         config/i386/t-rtems-i386, config/i386/t-sol2-10,
22607         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
22608         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
22609         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
22610         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
22611         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
22612         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
22613         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
22614         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
22615         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
22616         config/m68k/t-uclinux, config/mcore/t-mcore,
22617         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
22618         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
22619         config/mips/crtn.asm, config/mips/irix-crti.asm,
22620         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
22621         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
22622         config/mips/mips-fixed.md, config/mips/sb1.md,
22623         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
22624         config/mips/t-iris6, config/mips/t-isa3264,
22625         config/mips/t-libgcc-mips16, config/mips/t-linux64,
22626         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
22627         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
22628         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
22629         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
22630         config/mn10300/t-linux, config/mn10300/t-mn10300,
22631         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
22632         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
22633         config/picochip/libgccExtras/clzsi2.asm,
22634         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
22635         config/rs6000/darwin-libgcc.10.4.ver,
22636         config/rs6000/darwin-libgcc.10.5.ver,
22637         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
22638         config/rs6000/t-aix43, config/rs6000/t-aix52,
22639         config/rs6000/t-darwin, config/rs6000/t-fprules,
22640         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
22641         config/rs6000/t-lynx, config/rs6000/t-netbsd,
22642         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
22643         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
22644         config/rs6000/t-rtems, config/rs6000/t-spe,
22645         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
22646         config/score/t-score-elf, config/sh/divcost-analysis,
22647         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
22648         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
22649         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
22650         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
22651         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
22652         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
22653         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
22654         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
22655         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
22656         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
22657         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
22658         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
22659         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
22660         limitx.h, version.c, xcoff.h: Add copyright and license notices.
22661         * config/h8300/genmova.sh: Include copyright and license notices
22662         in generated output.
22663         * config/h8300/mova.md: Regenerate.
22664         * doc/install.texi2html: Include word "Copyright" in copyright
22665         notice and use name "Free Software Foundation, Inc.".
22666         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
22667         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
22668         ChangeLog-2007, ChangeLog-2008: Correct dates.
22669
22670 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
22671
22672         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
22673         NE_EXPR operations as well.
22674         * c-parser.c (c_parser_condition): Do not set location information on
22675         the condition.
22676         (c_parser_conditional_expression): Likewise.
22677         (c_parser_binary_expression): Set location information on operators.
22678         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
22679         TRUTH_NOT_EXPR has been folded.
22680         * fold-const.c (fold_truth_not_expr): Copy location information from
22681         the incoming expression to the outgoing one.
22682         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
22683         recursive calls on the LHS of the operator but pass that of the
22684         operator to recursive calls on the RHS of the operator.  Set it
22685         on the COND_EXPR.
22686         (shortcut_cond_expr): Set the locus of the operator on the second
22687         COND_EXPR and that of the expression on the first in degenerate cases.
22688         Pass the locus of the expression to calls to shortcut_cond_r.
22689         Set the locus of the 'then' block on the associated jump, if any.
22690         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
22691         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
22692         expression to call to gimplify_boolean_expr.
22693
22694 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
22695
22696         * config.gcc: Add additional configuration for
22697         i686-w64-mingw* and x86_64-w64-mingw* triplet.
22698         * config/i386/mingw-w64.h: New mingw-w64 specific header.
22699         (CPP_SPEC): Redefine for allowing -municode option.
22700         (STARTFILE_SPEC): Likewise.
22701         * config/i386/t-mingw-w64: New.
22702         * config/i386/mingw-w64.opt: New.
22703         (municode): Add new target option.
22704         * doc/invoke.texi (municode): Add documentation for new option.
22705
22706 2009-04-21  Ian Lance Taylor  <iant@google.com>
22707
22708         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22709         Correct test for number of arguments.
22710         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
22711
22712 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
22713
22714         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
22715         argument of emit_library_call.
22716
22717 2009-04-21  Richard Guenther  <rguenther@suse.de>
22718
22719         PR middle-end/39829
22720         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
22721         inside VIEW_CONVERT_EXPRs.
22722
22723 2009-04-21  Martin Jambor  <mjambor@suse.cz>
22724
22725         * tree-switch-conversion.c (build_constructors): Split a long line.
22726         (constructor_contains_same_values_p): New function.
22727         (build_one_array): Create assigns of constants if possible, do not
22728         call mark_sym_for_renaming, call update_stmt.
22729         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
22730         make_rename_temp.  Do not call mark_symbols_for_renaming, call
22731         update_stmt.
22732         (gen_def_assigns): Do not call mark_symbols_for_renaming or
22733         find_new_referenced_vars, call update_stmt.
22734         (gen_inbound_check): Use create_tmp_var and create ssa names manually
22735         instead of calling make_rename_temp.  Do not call
22736         find_new_referenced_vars or mark_symbols_for_renaming, call
22737         update_stmt.
22738
22739 2009-04-21  Richard Guenther  <rguenther@suse.de>
22740
22741         PR tree-optimization/39827
22742         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
22743         (tree_ssa_phiprop): Pass the correct array size.
22744
22745 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
22746
22747         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
22748
22749 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22750
22751         PR 16202
22752         * c-typeck.c (lvalue_p): Move declaration ...
22753         * c-common.h (lvalue_p): ... to here.
22754         * c-common.c (candidate_equal_p): New.
22755         (add_tlist): Use it.
22756         (merge_tlist): Use it.
22757         (warn_for_collisions_1): Likewise.
22758         (warning_candidate_p): Accept more candidates.
22759         (verify_tree): A warning candidate can be an expression. Use
22760         candidate_equal_p.
22761
22762 2009-04-21  Ben Elliston  <bje@au.ibm.com>
22763
22764         PR target/5267
22765         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
22766         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
22767         options.  Remove -mcall-solaris documentation.
22768
22769 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22770
22771         PR c++/13358
22772         * doc/invoke.texi (-Wlong-long): Update description.
22773         * c-lex (interpret_integer): Only warn if there was no previous
22774         overflow and -Wlong-long is enabled.
22775         * c-decl.c (declspecs_add_type): Drop redundant flags.
22776         * c.opt (Wlong-long): Init to -1.
22777         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
22778         and front-end warn_long_long. Wlong-long only depends on other
22779         flags if it is uninitialized.
22780         * c-parser.c (disable_extension_diagnostics): warn_long_long is
22781         the same for CPP and FE.
22782         (restore_extension_diagnostics): Likewise.
22783
22784 2009-04-20  Ian Lance Taylor  <iant@google.com>
22785
22786         Fix enum conversions which are invalid in C++:
22787         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
22788         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
22789         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
22790         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
22791         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
22792         (dbxout_parms): Likewise.
22793         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
22794         (df_clear_flags): Likewise.
22795         * df-problems.c (df_rd_bb_local_compute_process_def): Change
22796         top_flag parameter to int.
22797         (df_chain_create_bb_process_use): Likewise.
22798         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
22799         Remove cast.
22800         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
22801         (df_ref_create_structure, df_def_record_1): Likewise.
22802         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
22803         (df_notes_rescan): Change 0 to VOIDmode in function call.
22804         (df_get_call_refs, df_insn_refs_collect): Likewise.
22805         (df_bb_regs_collect): Likewise.
22806         (df_entry_block_defs_collect): Likewise.
22807         (df_exit_block_uses_collect): Likewise.
22808         * df.h: Update declarations.
22809         * double-int.c (double_int_divmod): Add cast to enum type.
22810         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
22811         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
22812         (based_loc_descr): Likewise.
22813         (loc_descriptor_from_tree_1): Change first_op and second_op to
22814         enum dwarf_location_atom.  Add cast to enum type.
22815         * expmed.c (init_expmed): Change 0 to SET in function call.
22816         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
22817         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
22818         (do_store_flag): Likewise.
22819         * fixed-value.h (struct fixed_value): Change mode to enum
22820         machine_mode.
22821         * function.c (assign_parms): Change 0 to VOIDmode in function call.
22822         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
22823         function call.
22824         (insert_insn_decl, insert_decl, insert_state): Likewise.
22825         (automata_list_finish): Likewise.
22826         * genrecog.c (process_define_predicate): Add cast to enum type.
22827         * gensupport.c (init_predicate_table): Add cast to enum type.
22828         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
22829         function call.
22830         (gimple_build_call_1, gimple_build_label): Likewise.
22831         (gimple_build_goto, gimple_build_asm_1): Likewise.
22832         (gimple_build_switch_1, gimple_build_cdt): Likewise.
22833         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
22834         (enum fallback): Rename from enum fallback_t.
22835         (fallback_t): Typedef as int.
22836         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
22837         GSI_SAME_STMT in function call.
22838         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
22839         enum type.
22840         (setup_reg_class_relations): Likewise.
22841         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
22842         (setup_prohibited_class_mode_regs): Add cast to enum type.
22843         (setup_prohibited_mode_move_regs): Likewise.
22844         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
22845         (record_address_regs): Change i to enum reg_class.
22846         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
22847         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
22848         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
22849         (GET_MODE_2XWIDER_MODE): Likewise.
22850         (GET_CLASS_NARROWEST_MODE): Likewise.
22851         * omp-low.c (expand_omp_for): Add cast to enum type.
22852         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
22853         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
22854         * postreload.c (reload_cse_simplify_operands): Change rclass local
22855         to enum reg_class.
22856         * predict.c (combine_predictions_for_insn): Change best_predictor
22857         and predictor to enum br_predictor.
22858         (combine_predictions_for_bb): Likewise.
22859         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
22860         use SET_PREDICT_EXPR_OUTCOME.
22861         * real.c (real_arithmetic): Change icode to code in function call.
22862         * reginfo.c (init_move_cost): Add casts to enum type.
22863         (init_reg_sets_1, init_fake_stack_mems): Likewise.
22864         * regmove.c (regclass_compatible_p): Change class0 and class1 to
22865         enum reg_class.
22866         * reload.c (find_valid_class): Add casts to enum type.
22867         (push_reload): Change 0 to NO_REGS in function call.
22868         (find_reloads): Change this_alternative to array of enum
22869         reg_class.  Remove some now-unnecessary casts.
22870         (make_memloc): Change 0 to VOIDmode in function call.
22871         * reload1.c (reload): Change 0 to VOIDmode in function call.
22872         (eliminate_regs_1, elimination_effects): Likewise.
22873         (eliminate_regs_in_insn): Likewise.
22874         (emit_input_reload_insns): Add cast to enum type.
22875         (delete_output_reload): Change 0 to VOIDmode in function call.
22876         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
22877         to enum type in function call.
22878         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
22879         (SET_PREDICT_EXPR_OUTCOME): Define.
22880         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
22881         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
22882         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
22883         (dump_function): Likewise.
22884         * tree-dump.h: Update declarations.
22885         * tree-pass.h: Update declarations.
22886         * varasm.c (assemble_integer): Change mclass to enum mode_class.
22887         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
22888         enum type.
22889         (arm_rtx_costs_1): Correct parenthesization.
22890         (arm_rtx_costs): Add casts to enum type.
22891         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
22892         (vfp_emit_fstmd): Use add_rg_note.
22893         (emit_multi_reg_push, emit_sfm): Likewise.
22894         (thumb_set_frame_pointer): Likewise.
22895         (arm_expand_prologue): Likewise.
22896         (arm_regno_class): Change return type to enum reg_class.
22897         (thumb1_expand_prologue): Use add_reg_note.
22898         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
22899         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
22900         in function call.
22901         * config/arm/gentune.sh: Add cast to enum type.
22902         * config/arm/arm-tune.md: Rebuild.
22903         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
22904         (ix86_split_fp_branch, predict_jump): Likewise.
22905         (ix86_expand_multi_arg_builtin): Change sub_code from enum
22906         insn_code to enum rtx_code.
22907         (ix86_builtin_vectorized_function): Add cast to enum type.
22908         * config/i386/i386.md (truncdfsf2): Change slot to enum
22909         ix86_stack_slot.
22910         (truncxf<mode>2, isinf<mode>2): Likewise.
22911         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
22912         enum type.
22913         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
22914         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
22915         (insert_bundle_state): Change 1 to INSERT in function call.
22916         (ia64_add_bundle_selector_before): Likewise.
22917         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
22918         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
22919         (restore_stack_nonlocal): Likewise.
22920         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
22921         function call.
22922         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
22923         function call.
22924         (mips_rtx_costs): Likewise.
22925         (mips_override_options): Add casts to enum type.
22926         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
22927         in function call.
22928         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
22929         (store_reg, set_reg_plus_d): Likewise.
22930         (hppa_expand_prologue, hppa_profile_hook): Likewise.
22931         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
22932         cast to enum type.
22933         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
22934         function call.
22935         (emit_unlikely_jump): Use add_reg_note.
22936         (rs6000_emit_allocate_stack): Likewise.
22937         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
22938         (output_toc): Change 1 to INSERT in function call.
22939         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
22940         (rs6000_initialize_trampoline): Likewise.
22941         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
22942         function call.
22943         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
22944         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
22945         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
22946         (save_gprs): Use add_reg_note.
22947         (s390_emit_prologue): Likewise.
22948         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
22949         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
22950         (sparc_fold_builtin): Add cast to enum type.
22951         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
22952         enum insn_code.
22953         (spu_expand_prologue): Use add_reg_note.
22954         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
22955
22956 2009-04-20  Ian Lance Taylor  <iant@google.com>
22957
22958         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
22959         (c_parser_postfix_expression_after_primary): Get VEC for list of
22960         arguments.  Get original types of arguments.  Call
22961         build_function_call_vec.
22962         (cached_expr_list_1, cached_expr_list_2): New static variables.
22963         (c_parser_expr_list): Change return type to VEC *.  Add
22964         p_orig_types parameter.  Change all callers.
22965         (c_parser_release_expr): New static function.
22966         (c_parser_vec_to_tree_list): New static function.
22967         * c-typeck.c (build_function_call): Rewrite to build a VEC and
22968         call build_function_call_vec.
22969         (build_function_call_vec): New function, based on old
22970         build_function_call.
22971         (convert_arguments): Remove nargs and argarray parameters.  Change
22972         values to a VEC.  Add origtypes parameter.
22973         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
22974         (convert_for_assignment): Add origtype parameter.  Change all
22975         callers.  If warn_cxx_compat, check for conversion to an enum
22976         type when calling a function.
22977         (store_init_value): Add origtype parameter.  Change all callers.
22978         (digest_init): Likewise.
22979         (struct init_node): Add origtype field.
22980         (add_pending_init): Add origtype parameter.  Change all callers.
22981         (output_init_element): Likewise.
22982         (output_pending_init_elements): Pass origtype from init_node to
22983         output_init_element.
22984         (process_init_element): Pass origtype from c_expr to
22985         output_init_element.
22986         (c_finish_return): Add origtype parameter.  Change all callers.
22987         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
22988         caller.
22989         (sync_resolve_params): Likewise.
22990         (sync_resolve_return): Change params to first_param.  Change caller.
22991         (resolve_overloaded_builtins): Change params to VEC *.  Change
22992         callers.  Save first parameter around call to build_function_call_vec.
22993         * c-decl.c (finish_decl): Add origtype parameter.  Change all
22994         callers.  Call build_function_call_vec rather than
22995         build_function_call for cleanup.
22996         * c-tree.h: Update declarations.
22997         * c-common.h: Update declarations.
22998         * stub-objc.c (objc_rewrite_function_call): Change parameter from
22999         params to first_param.
23000         * target.h (struct gcc_target): Change resolve_overloaded_builtin
23001         params parameter from tree to void *.
23002         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
23003         Change arglist parameter to have type void *, and to be a pointer
23004         to a VEC.
23005         * config/rs6000/rs6000-protos.h
23006         (altivec_resolve_overloaded_builtin): Update declaration.
23007         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
23008         fnargs parameter to have type void *, and to be a pointer to a
23009         VEC.  Call build_function_call_vec instead of
23010         build_function_call.
23011         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
23012
23013 2009-04-20  Joey Ye  <joey.ye@intel.com>
23014             Xuepeng Guo  <xuepeng.guo@intel.com>
23015             H.J. Lu  <hongjiu.lu@intel.com>
23016
23017         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
23018
23019         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
23020         (IX86_LEA_PRIORITY): Likewise.
23021         (distance_non_agu_define): New function.
23022         (distance_agu_use): Likewise.
23023         (ix86_lea_for_add_ok): Likewise.
23024         (ix86_dep_by_shift_count): Likewise.
23025
23026         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
23027         should split for LEA.
23028
23029         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
23030         function.
23031         (ix86_dep_by_shift_count): Likewise.
23032
23033 2009-04-20  Richard Guenther  <rguenther@suse.de>
23034
23035         * expr.c (handled_component_p): Move ...
23036         * tree.h (handled_component_p): ... here.
23037         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
23038         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
23039         and REALPART_EXPR to be in one group.
23040
23041 2009-04-20  Richard Guenther  <rguenther@suse.de>
23042
23043         * basic-block.h (get_all_dominated_blocks): Declare.
23044         * dominance.c (get_all_dominated_blocks): New function.
23045         * tree-cfg.c (get_all_dominated_blocks): Remove.
23046         (remove_edge_and_dominated_blocks): Adjust.
23047         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
23048         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
23049         instead of recursing.
23050
23051 2009-04-20  Doug Kwan  <dougkwan@google.com>
23052
23053         * cgraph.h (cgraph_node_ptr): New type for vector functions.
23054         (struct cgraph_node_set_def): New type.
23055         (cgraph_node_set) New type. Also declare vector functions.
23056         (struct cgraph_node_set_element_def): New type.
23057         (cgraph_node_set_element): Ditto.
23058         (cgraph_node_set_iterator): New iterator type.
23059         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
23060         cgraph_node_set_remove, dump_cgraph_node_set,
23061         debug_cgraph_node_set): New prototypes.
23062         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
23063         cgraph_node_set_size): New inlines.
23064         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
23065         including cgraph.h.
23066         (struct ipa_opt_pass): Add struct cgraph_node_set_def
23067         argument to function 'write_summary'.
23068         * ipa.c: Include ggc.h.
23069         (hash_cgraph_node_set_element,
23070         eq_cgraph_node_set_element, cgraph_node_set_new,
23071         cgraph_node_set_add, cgraph_node_set_remove,
23072         cgraph_node_set_find, dump_cgraph_node_set,
23073         debug_cgraph_node_set): New functions.
23074         * Makefile.in (ipa.o): Add dependency on GGC_H.
23075
23076 2009-04-20  Ira Rosen  <irar@il.ibm.com>
23077
23078         PR tree-optimization/39675
23079         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
23080         check of the return code of vect_schedule_slp. Check that
23081         stmt_vec_info still exists for the statement, before checking its
23082         vectorization type.
23083
23084 2009-04-20  Michael Matz  <matz@suse.de>
23085
23086         * Makefile.in (generated_files): Take out $(simple_generated_c).
23087
23088 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
23089
23090         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
23091         (UINTPTR_TYPE):  Likewise.
23092
23093 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
23094
23095         PR c/37481
23096         * c-typeck.c (digest_init): Check for initializing an array with a
23097         string literal.
23098
23099 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
23100
23101         PR c/19771
23102         * c-semantics.c (pop_stmt_list): Propagate
23103         STATEMENT_LIST_HAS_LABEL to parent statement list.
23104
23105 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
23106
23107         * config/mips/mips.h (mips_tune_attr): New macro.
23108         * config/mips/mips.md (cpu): Use it.
23109
23110 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
23111
23112         PR c/38243
23113         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
23114         declaring a tag.
23115
23116 2009-04-19  Diego Novillo  <dnovillo@google.com>
23117
23118         * toplev.c (compile_file): Move call to coverage_finish ...
23119         * cgraphunit.c (ipa_passes): ... here.
23120         Call cgraph_process_new_functions.
23121         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
23122         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
23123
23124 2009-04-19  Jan Hubicka  <jh@suse.cz>
23125
23126         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
23127         cfun.
23128         (dump_cgraph_node): Dump can throw external flag.
23129         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
23130
23131 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23132
23133         PR c/32061
23134         PR c++/36954
23135         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
23136         * common.opt (Wlogical-op): Move from here...
23137         * c.opt (Wlogical-op): ... to here.
23138         * c-typeck.c (parser_build_binary_op): Update call to
23139         warn_logical_operator.
23140         * c-opts.c (c_common_post_options): Enable warn_logical_op with
23141         extra_warnings.
23142         * c-common.c (warn_logical_op): Update.
23143         * c-common.h (warn_logical_op): Update declaration.
23144
23145 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
23146
23147         * tree.c (protected_set_expr_location): Fix formatting.
23148
23149 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
23150
23151         PR c/27676
23152         * c-typeck.c (readonly_warning): new.
23153         (build_unary_op, build_modify_expr): Use readonly_warning for
23154         storing into something readonly but not const-qualified.
23155
23156 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
23157
23158         PR c/22367
23159         * c-typeck.c (build_unary_op): Check for taking address of
23160         expression of type void.
23161
23162 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
23163
23164         PR c/35210
23165         * c-typeck.c (build_function_call): Check for calling a function
23166         with qualified void return types.  Call require_complete_type when
23167         generating a trap.
23168
23169 2009-04-18  Jan Hubicka  <jh@suse.cz>
23170
23171         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
23172         Set nothrow flag.
23173         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
23174         can_throw_external flag.
23175         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
23176         * ipa-pure-const.c (ignore_edge): New function.
23177         (propagate): Compute order for NOTHROW computation; set NOTHROWs
23178         only over can_throw_external edges.
23179         (local_pure_const): Add nothrow flag.
23180         * ipa-utils.c (searchc): Add ignore_edge callback.
23181         (ipa_utils_reduced_inorder): Add ignore_edge callback.
23182         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
23183         (set_nothrow_function_flags): Update cgraph.
23184         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
23185
23186 2009-04-18  Richard Guenther  <rguenther@suse.de>
23187
23188         PR middle-end/39804
23189         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
23190         (fold_stmt): ... this and ...
23191         (fold_stmt_inplace): ... this.
23192         (fold_stmt_1): Fold references in calls and asms.
23193         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
23194
23195 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
23196
23197         * tree-vrp.c (ssa_name_nonzero_p): Remove.
23198         * tree.h: Remove the prototype for ssa_name_nonzero_p.
23199
23200 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
23201
23202         * tree.c (function_args_count): Remove.
23203         * tree.h: Remove the prototype for function_args_count.
23204
23205 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
23206
23207         * tree-iterator.c (expr_only): Remove.
23208         * tree.h: Remove the prototype for expr_only.
23209
23210 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
23211
23212         * reginfo.c (cannot_change_mode_set_regs): Remove.
23213         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
23214
23215 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
23216
23217         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
23218         whether operands 0 and 1 overlaps.
23219
23220 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23221
23222         PR middle-end/36902
23223         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
23224         pointer. Use warning_at instead of warning.
23225         (search_for_addr_array): Likewise.
23226         (check_array_bounds): Likewise.
23227         (check_all_array_refs): Check that the incoming edge is not in the
23228         list of edges to be removed.
23229         (check_all_array_refs): Avoid the temporal pointer.
23230         (vrp_visit_cond_stmt): Fix typo.
23231         (simplify_switch_using_ranges): Handle the case where the switch
23232         index is an integer constant.
23233
23234 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
23235
23236         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
23237
23238 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
23239
23240         * doc/extend.texi, doc/invoke.texi: Fix typos.
23241
23242 2009-04-17  Cary Coutant  <ccoutant@google.com>
23243
23244         * tree-flow-inline.h (get_lineno): Fix inverted test.
23245
23246 2009-04-17  Diego Novillo  <dnovillo@google.com>
23247
23248         * tree-ssa-pre.c (create_expression_by_pieces): Remove
23249         assertion for AVAIL_OUT.
23250
23251 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
23252
23253         PR target/38627
23254         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
23255         * config/sh/linux-atomic.asm: Likewise.
23256
23257 2009-04-17  Diego Novillo  <dnovillo@google.com>
23258
23259         * except.c (debug_eh_tree): New.
23260         (struct eh_region, struct eh_status): Move ...
23261         * except.h: ... here.
23262         (add_type_for_runtime): Declare extern.
23263         (lookup_type_for_runtime): Likewise.
23264         (debug_eh_tree): Declare.
23265         * Makefile.in (GTFILES): List except.h before except.c
23266
23267 2009-04-17  Diego Novillo  <dnovillo@google.com>
23268
23269         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
23270         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
23271         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
23272         (find_vars_r): ... here.
23273         * tree-flow.h (find_referenced_vars_in): Declare.
23274         * tree-ssa-pre.c (create_expression_by_pieces): Assert
23275         that AVAIL_OUT exists for BLOCK.
23276         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
23277         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
23278         (tree-parloops.o): Likewise.
23279
23280 2009-04-17  Simon Baldwin  <simonb@google.com>
23281
23282         * toplev.c (default_tree_printer): Add handling for %E format.
23283
23284 2009-04-17  Diego Novillo  <dnovillo@google.com>
23285
23286         * tree-pretty-print.c (dump_generic_node): Add break after
23287         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
23288         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
23289         FUNCTION_TYPE together.  Call print_struct_decl when printing
23290         structures and TDF_SLIM is not given.
23291         (print_struct_decl): Fix logic for detecting recursion.
23292
23293 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
23294
23295         PR 31567
23296         * gcc.c (create_at_file): New.
23297         (compile_input_file_p): New.
23298         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
23299         * main.c (main): Update call to toplev_main.
23300         * toplev.c (toplev_main): Change signature. Call expandargv.
23301         * toplev.h (toplev_main): Change signature.
23302
23303 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
23304
23305         * dwarf2out.c (field_byte_offset): Use the type size as the field size
23306         if the latter is not constant.
23307
23308 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
23309
23310         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
23311
23312 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
23313
23314         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
23315         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
23316
23317 2009-04-17  Richard Guenther  <rguenther@suse.de>
23318
23319         * tree-ssa-structalias.c (get_constraint_for_component_ref):
23320         Handle component references view-converting an invariant address.
23321
23322 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
23323
23324         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
23325         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
23326         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
23327         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
23328         Use @deftypevr rather than @deftypevar.
23329
23330 2009-04-17  Richard Guenther  <rguenther@suse.de>
23331
23332         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
23333         (get_prop_source_stmt): Likewise.
23334         (can_propagate_from): Likewise.
23335
23336 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
23337
23338         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
23339         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
23340         (--with-multilib-list): Add default value.
23341         * configure: Regenerate.
23342         * Makefile.in (TM_ENDIAN_CONFIG): Define.
23343         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
23344         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
23345         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
23346         Don't add default cpu to multilib list unnecessarily, but do enable
23347         the relevant compiler option..
23348         Add support for --with-multilib-list=<blank> and
23349         --with-multilib-list=!<somelib> to supress unwanted multilibs.
23350         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
23351         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
23352         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
23353         TM_MULTILIB_CONFIG.
23354         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
23355         (MULTILIB_OSDIRNAMES): New variable.
23356         * config/sh/t-1e: Delete file.
23357         * config/sh/t-mlib-sh1: Delete file.
23358         * config/sh/t-mlib-sh2: Delete file.
23359         * config/sh/t-mlib-sh2a: Delete file.
23360         * config/sh/t-mlib-sh2a-nofpu: Delete file.
23361         * config/sh/t-mlib-sh2a-single: Delete file.
23362         * config/sh/t-mlib-sh2a-single-only: Delete file.
23363         * config/sh/t-mlib-sh2e: Delete file.
23364         * config/sh/t-mlib-sh3e: Delete file.
23365         * config/sh/t-mlib-sh4: Delete file.
23366         * config/sh/t-mlib-sh4-nofpu: Delete file.
23367         * config/sh/t-mlib-sh4-single: Delete file.
23368         * config/sh/t-mlib-sh4-single-only: Delete file.
23369         * config/sh/t-mlib-sh4a: Delete file.
23370         * config/sh/t-mlib-sh4a-nofpu: Delete file.
23371         * config/sh/t-mlib-sh4a-single: Delete file.
23372         * config/sh/t-mlib-sh4a-single-only: Delete file.
23373         * config/sh/t-mlib-sh4al: Delete file.
23374         * config/sh/t-mlib-sh5-32media: Delete file.
23375         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
23376         * config/sh/t-mlib-sh5-64media: Delete file.
23377         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
23378         * config/sh/t-mlib-sh5-compact: Delete file.
23379         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
23380         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
23381         * doc/install.texi (Options specification): Add
23382         --with-multilib-list and --with-endian.
23383
23384 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
23385
23386         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
23387         REVISION_c.
23388         (OBJS-common): Add plugin-version.o.
23389         (plugin-version.o): New.
23390         * gcc-plugin.h (plugin_gcc_version): New.
23391         (plugin_default_version_check): New.
23392         (plugin_init_func, plugin_init): Add version argument.
23393         * plugin-version.c: New.
23394         * plugin.c (str_plugin_gcc_version_name): New.
23395         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
23396         pass it to the init function.
23397         (plugin_default_version_check): New.
23398
23399 2009-04-17  Richard Guenther  <rguenther@suse.de>
23400
23401         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
23402         for decl-vs-decl disambiguation.
23403
23404 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
23405
23406         * config/s390/s390.h (s390_tune_attr): New macro definition.
23407         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
23408
23409 2009-04-17  Richard Guenther  <rguenther@suse.de>
23410
23411         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
23412         (fold_stmt_r): Likewise.
23413         (maybe_fold_reference): New function.
23414         (fold_gimple_assign): Handle cases fold_stmt_r did.
23415         (fold_stmt): Do not use fold_stmt_r.
23416         (fold_stmt_inplace): Likewise.
23417
23418 2009-04-17  Richard Guenther  <rguenther@suse.de>
23419
23420         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
23421         (record_equivalences_from_stmt): Remove useless checks and
23422         simplifications.
23423         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
23424         the type is already suitable.
23425
23426 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
23427
23428         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
23429
23430 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
23431
23432         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
23433         (CMPtype): Define as __gcc_CMPtype.
23434
23435 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
23436
23437         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
23438         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
23439
23440 2009-04-17  Richard Guenther  <rguenther@suse.de>
23441
23442         PR tree-optimization/39746
23443         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
23444         special-casing for builtins and static variable use/def.
23445         (call_may_clobber_ref_p_1): Likewise.
23446
23447 2009-04-16  Ian Lance Taylor  <iant@google.com>
23448
23449         * df.h: Include "timevar.h".
23450         (struct df_problem): Change tv_id field to timevar_id_t.
23451         * tree-pass.h: Include "timevar.h".
23452         (struct opt_pass): Change tv_id field to timevar_id_t.
23453         * timevar.h (timevar_id_t): Define TV_NONE.
23454         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
23455         TV_NONE rather than tv_id != 0.
23456         (execute_one_pass): Likewise.
23457         * Makefile.in (DF_H): Add $(TIMEVAR_H).
23458         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
23459         dependencies to $(TREE_PASS_H).
23460         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
23461         to TV_NONE.
23462         (pass_branch_target_load_optimize2): Likewise.
23463         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
23464         (pass_outof_cfg_layout_mode): Likewise.
23465         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
23466         (pass_rebuild_cgraph_edges): Likewise.
23467         (pass_remove_cgraph_callee_edges): Likewise.
23468         * df-core.c (pass_df_initialize_opt): Likewise.
23469         (pass_df_initialize_no_opt): Likewise.
23470         (pass_df_finish): Likewise.
23471         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
23472         * except.c (pass_set_nothrow_function_flags): Likewise.
23473         (pass_convert_to_eh_region_ranges): Likewise.
23474         * final.c (pass_compute_alignments): Likewise.
23475         * function.c (pass_instantiate_virtual_regs): Likewise.
23476         (pass_init_function): Likewise.
23477         (pass_leaf_regs): Likewise.
23478         (pass_match_asm_constraints): Likewise.
23479         * gimple-low.c (pass_lower_cf): Likewise.
23480         (pass_mark_used_blocks): Likewise.
23481         * init-regs.c (pass_initialize_regs): Likewise.
23482         * integrate.c (pass_initial_value_sets): Likewise.
23483         * ira.c (pass_ira): Likewise.
23484         * jump.c (pass_cleanup_barriers): Likewise.
23485         * omp-low.c (pass_expand_omp): Likewise.
23486         (pass_lower_omp): Likewise.
23487         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
23488         * recog.c (pass_split_all_insns): Likewise.
23489         (pass_split_after_reload): Likewise.
23490         (pass_split_before_regstack): Likewise.
23491         (pass_split_before_sched2): Likewise.
23492         (pass_split_for_shorten_branches): Likewise.
23493         * reginfo.c (pass_reginfo_init): Likewise.
23494         (pass_subregs_of_mode_init): Likewise.
23495         (pass_subregs_of_mode_finish): Likewise.
23496         * passes.c (pass_postreload): Likewise.
23497         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
23498         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
23499         (pass_warn_function_return): Likewise.
23500         (pass_warn_function_noreturn): Likewise.
23501         * tree-complex.c (pass_lower_complex): Likewise.
23502         (pass_lower_complex_O0): Likewise.
23503         * tree-if-conv.c (pass_if_conversion): Likewise.
23504         * tree-into-ssa.c (pass_build_ssa): Likewise.
23505         * tree-mudflap.c (pass_mudflap_1): Likewise.
23506         (pass_mudflap_2): Likewise.
23507         * tree-nomudflap.c (pass_mudflap_1): Likewise.
23508         (pass_mudflap_2): Likewise.
23509         * tree-nrv.c (pass_return_slot): Likewise.
23510         * tree-object-size.c (pass_object_sizes): Likewise.
23511         * tree-optimize.c (pass_all_optimizations): Likewise.
23512         (pass_early_local_passes): Likewise.
23513         (pass_all_early_optimizations): Likewise.
23514         (pass_cleanup_cfg): Likewise.
23515         (pass_cleanup_cfg_post_optimizing): Likewise.
23516         (pass_free_datastructures): Likewise.
23517         (pass_free_cfg_annotations): Likewise.
23518         (pass_fixup_cfg): Likewise.
23519         (pass_init_datastructures): Likewise.
23520         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
23521         (pass_late_warn_uninitialized): Likewise.
23522         (pass_update_address_taken): Likewise.
23523         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
23524         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
23525         (pass_cse_sincos): Likewise.
23526         (pass_convert_to_rsqrt): Likewise.
23527         * tree-ssa-structalias.c (pass_build_alias): Likewise.
23528         * tree-stdarg.c (pass_stdarg): Likewise.
23529         * tree-tailcall.c (pass_tail_recursion): Likewise.
23530         (pass_tail_calls): Likewise.
23531         * tree-vect-generic.c (pass_lower_vector): Likewise.
23532         (pass_lower_vector_ssa): Likewise.
23533         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
23534
23535 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
23536
23537         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
23538         XLR entry.
23539         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
23540         Handle -march=xlr.
23541         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
23542         logical and signext.
23543
23544 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
23545
23546         PR target/39767
23547         * config/sh/predicates.md (arith_operand): Check if the operand
23548         of TRUNCATE is a REG.
23549
23550 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
23551
23552         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
23553         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
23554
23555 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
23556
23557         * tree-iterator.c (tsi_split_statement_list_after,
23558         tsi_split_statement_list_before): Remove.
23559         * tree-iterator.h: Remove the prototypes for
23560         tsi_split_statement_list_after and tsi_split_statement_list_before.
23561
23562 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
23563
23564         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
23565         * tree-ssa-propagate.h: Remove the prototype for
23566         stmt_makes_single_load.
23567
23568 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
23569
23570         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
23571         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
23572
23573 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
23574
23575         * tree-iterator.c (EXPR_LAST_BODY): Remove.
23576
23577 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
23578
23579         * except.c (eh_region_outer_p): Remove.
23580         * except.h: Remove the prototype for eh_region_outer_p.
23581
23582 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
23583
23584         * function.c (current_function_assembler_name): Remove.
23585         * function.h: Remove the prototype for
23586         current_function_assembler_name.
23587
23588 2009-04-16  Ian Lance Taylor  <iant@google.com>
23589
23590         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
23591         (add_reg_note): Call alloc_reg_note.
23592         * rtl.h (alloc_reg_note): Declare.
23593         * combine.c (try_combine): Use alloc_reg_note.
23594         (recog_for_combine, move_deaths): Likewise.
23595         (distribute_notes): Use alloc_reg_note and add_reg_note.
23596         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
23597         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
23598         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
23599
23600 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
23601
23602         PR rtl-optimization/39762
23603         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
23604         ira_may_move_out_cost): Add comments about way of their usage.
23605         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
23606
23607         * ira-conflicts.c (process_regs_for_copy): Use function
23608         ira_get_register_move_cost instead of global
23609         ira_register_move_cost.
23610
23611         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
23612         color_pass, move_spill_restore, update_curr_costs): Ditto.
23613
23614         * ira-lives.c (process_single_reg_class_operands): Ditto.
23615
23616         * ira-emit.c (emit_move_list): Ditto.
23617
23618         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
23619         (record_reg_classes): Ditto.  Use functions
23620         ira_get_register_move_cost and ira_get_may_move_cost instead of
23621         global vars ira_register_move_cost, ira_may_move_out_cost and
23622         ira_may_move_in_cost.
23623         (record_address_regs): Don't call ira_init_register_move_cost.
23624         Use function ira_get_may_move_cost instead of global
23625         ira_may_move_in_cost.
23626         (process_bb_node_for_hard_reg_moves): Use function
23627         ira_get_register_move_cost instead of global ira_register_move_cost.
23628         (ira_costs): Don't call ira_init_register_move_cost.
23629
23630 2009-04-16  Richard Guenther  <rguenther@suse.de>
23631
23632         * tree-cfg.c (verify_gimple_assign_binary):
23633         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
23634         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
23635         (create_general_new_stmt): Note that this function is broken.
23636
23637 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
23638
23639         * common.opt (fhelp): Add Var(help_flag).
23640         * gcc-plugin.h (plugin_info): Add help.
23641         * plugin.c (plugin_name_args): Add help.
23642         (register_plugin_info): Set plugin->help.
23643         (print_help_one_plugin): New.
23644         (print_plugins_help): New.
23645         * plugin.h (print_plugins_help): New.
23646         * toplev.c (toplev_main): Call print_plugins_help if needed.
23647
23648 2009-04-16  Richard Guenther  <rguenther@suse.de>
23649
23650         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
23651         (gimple_ior_addresses_taken_1): New function.
23652         (gimple_ior_addresses_taken): Likewise.
23653         * gimple.h (struct gimple_statement_with_ops_base): Remove
23654         addresses_taken member.
23655         (gimple_ior_addresses_taken): Declare.
23656         (gimple_addresses_taken, gimple_addresses_taken_ptr,
23657         gimple_set_addresses_taken): Remove.
23658         * ipa-reference.c (mark_address): New function.
23659         (scan_stmt_for_static_refs): Use it for marking addresses taken.
23660         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
23661         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
23662         (gimple_add_to_addresses_taken): Remove.
23663         (get_tmr_operands): Call mark_address_taken.
23664         (get_asm_expr_operands): Likewise.
23665         (get_expr_operands): Likewise.
23666         (build_ssa_operands): Do not clear the addresses_taken bitmap.
23667         (free_stmt_operands): Do not free it.
23668         * tree-ssa.c (delete_tree_ssa): Likewise.
23669         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
23670
23671 2009-04-16  Richard Guenther  <rguenther@suse.de>
23672
23673         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
23674         (walk_stmt_load_store_ops): Likewise.
23675         * gimple.c (get_base_loadstore): New function.
23676         (walk_stmt_load_store_addr_ops): Likewise.
23677         (walk_stmt_load_store_ops): Likewise.
23678         * ipa-pure-const.c (check_op): Simplify.
23679         (check_load, check_store): New functions.
23680         (check_stmt): Use walk_stmt_load_store_ops.
23681         * ipa-reference.c (mark_load): Adjust signature.
23682         (mark_store): Likewise.
23683         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
23684
23685 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
23686
23687         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
23688         (plugin_info): New.
23689         * opts.c (common_handle_option): Don't call print_version.
23690         * plugin.c (plugin_name_args): Add version.
23691         (register_plugin_info): New.
23692         (register_callback): Handle PLUGIN_INFO.
23693         (try_init_one_plugin): New.
23694         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
23695         if failed to init.
23696         (finalize_one_plugin): New.
23697         (finalize_plugins): New.
23698         (print_one_plugin): New.
23699         (print_plugins_versions): New.
23700         * plugin.h (print_plugins_versions): New.
23701         (finalize_plugins): New.
23702         * toplev.c (compile_file): Don't call initialize_plugins.
23703         (print_version): Call print_plugins_versions.
23704         (toplev_main): Call initialize_plugins. Print version if needed.
23705         Call finalize_plugins.
23706
23707 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
23708
23709         * common.opt (fversion): New.
23710         * gcc.c (print_version): New.
23711         (process_command): Don't print the version. Just set print_version.
23712         (main): Print version. Call subprocesses if print_version and
23713         verbose_flag are set.
23714         * opts.c (common_handle_option): Handle OPT_fversion.
23715
23716 2009-04-16  Richard Guenther  <rguenther@suse.de>
23717             Ira Rosen  <irar@il.ibm.com>
23718
23719         PR tree-optimization/39698
23720         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
23721         type of the reduction variable.  Only generate the def if
23722         it is needed.
23723
23724         * omp-low.c (expand_omp_for_generic): When converting to a pointer
23725         make sure to first convert to an integer of the same precision.
23726         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
23727         the type of the evolution correctly in computing the new
23728         induction variable base.
23729
23730 2009-04-16  Richard Guenther  <rguenther@suse.de>
23731
23732         PR middle-end/39625
23733         * tree-cfg.c (make_blocks): Split statements with to-be
23734         abnormal SSA names on the lhs.
23735
23736 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
23737
23738         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
23739         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
23740         * c-typeck.c (really_start_incremental_init): Likewise.
23741         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
23742         (TARGET_INITIALIZER): Remove it.
23743         * target.h (struct target): Remove vector_opaque_p.
23744         * tree.c (build_opaque_vector_type): New.
23745         * tree.h (TYPE_VECTOR_OPAQUE): New.
23746         (build_opaque_vector_type): Declare.
23747         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
23748         * config/rs6000/rs6000.c (build_opaque_vector_type,
23749         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
23750         (rs6000_init_builtins): Use build_opaque_vector_type for
23751         opaque_V4SI_type_node.
23752
23753 2009-04-15  Catherine Moore  <clm@codesourcery.com>
23754
23755         * debug.h (set_name):  Declare.
23756         * dwarf2out.c (dwarf2out_set_name): Declare.
23757         (dwarf2_debug_hooks): Add set_name.
23758         (find_AT_string): New.
23759         (add_AT_string): Call find_AT_string.
23760         (dwarf2out_set_name): New.
23761         * cp/decl.c (grokdeclarator): Call set_name.
23762         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
23763         * debug.c (do_nothing_debug_hooks):  Likewise.
23764         * dbxout.c (dbx_debug_hooks): Likewise.
23765         * sdbout.c (sdb_debug_hooks): Likewise.
23766
23767 2009-04-15  Michael Eager  <eager@eagercon.com>
23768
23769         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
23770         reg for single-precision FPU.
23771         * config/rs6000/rs6000.md (movsi_internal1): Only for
23772         !TARGET_SINGLE_FPU.
23773         (movsi_internal1_single): New. Add pattern to move SI values to/from
23774         single-precision FP regs.
23775
23776 2009-04-15  Richard Guenther  <rguenther@suse.de>
23777
23778         * omp-low.c (lower_rec_input_clauses): Build correct address
23779         expressions.
23780         (expand_omp_for_generic): Fix multiplication type.
23781         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
23782         (generate_memset_zero): Fix types.
23783         * tree-profile.c (prepare_instrumented_value): Correctly
23784         widen a pointer.
23785
23786 2009-04-15  Ian Lance Taylor  <iant@google.com>
23787
23788         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
23789         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
23790         for -Wall and for -Wc++-compat.
23791         (c_common_post_options): For C++, set warn_enum_compare if not
23792         already set.
23793         * c-tree.h (struct c_expr): Add field original_type.
23794         (build_external_ref): Update declaration.
23795         * c-parser.c (c_parser_braced_init): Set original_type.
23796         (c_parser_initelt): Likewise.
23797         (c_parser_expr_no_commas): Likewise.
23798         (c_parser_conditional_expression): Likewise.
23799         (c_parser_cast_expression): Likewise.
23800         (c_parser_unary_expression): Likewise.  Pull setting of
23801         original_code to top of function.
23802         (c_parser_sizeof_expression): Set original_type.
23803         (c_parser_alignof_expression): Likewise.
23804         (c_parser_postfix_expression): Likewise.  Pull setting of
23805         original_code to top of function.
23806         (c_parser_postfix_expression_after_paren_type): Set original_type.
23807         (c_parser_postfix_expression_after_primary): Likewise.
23808         (c_parser_expression): Likewise.
23809         * c-typeck.c (build_external_ref): Add type parameter.  Change all
23810         callers.
23811         (c_expr_sizeof_expr): Set original_type field.
23812         (parser_build_unary_op): Likewise.
23813         (parser_build_binary_op): Likewise.  Optionally warn about
23814         comparisons of enums of different types.
23815         (digest_init): Set original_type field.
23816         (really_start_incremental_init): Likewise.
23817         (push_init_level, pop_init_level): Likewise.
23818         * doc/invoke.texi (Warning Options): -Wenum-compare now
23819         supported in C.
23820
23821 2009-04-15  Richard Guenther  <rguenther@suse.de>
23822
23823         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
23824         out a necessary conversion.
23825         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
23826         names we didn't value number.
23827         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
23828
23829 2009-04-15  Richard Guenther  <rguenther@suse.de>
23830
23831         PR tree-optimization/39764
23832         * tree-ssa-ccp.c (get_value): Canonicalize value with
23833         canonicalize_float_value.
23834
23835 2009-04-15  Jan Hubicka  <jh@suse.cz>
23836
23837         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
23838         Wrong version of patch.
23839
23840 2009-04-15  Jan Hubicka  <jh@suse.cz>
23841
23842         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
23843
23844 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
23845
23846         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
23847         our distinct integral and vector types.
23848
23849 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
23850
23851         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
23852         * init.c (build_vtbl_address): Remove call to assemble_external.
23853
23854 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
23855
23856         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
23857         output for other floating point modes.
23858
23859 2009-04-14  Diego Novillo  <dnovillo@google.com>
23860
23861         * diagnostic.c (diagnostic_report_diagnostic): Do not
23862         warn about loaded plugins for DK_ERROR and DK_WARNING.
23863         * c-decl.c (declspecs_add_type): Move call to
23864         invoke_plugin_callbacks ...
23865         * c-parser.c (c_parser_declspecs): ... here.
23866         * plugin.c (dump_active_plugins): Tidy output.
23867
23868 2009-04-14  Diego Novillo  <dnovillo@google.com>
23869             Le-Chun Wu  <lcwu@google.com>
23870
23871         * configure.ac: Add --enable-plugin support.
23872         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
23873         * Makefile.in (PLUGIN_H): Define.
23874         Export ENABLE_PLUGIN and GMPINC to site.exp.
23875         Add PLUGINLIBS to link command.
23876         Add/modify dependencies for plugin.o and files including plugin.h.
23877         (plugin.o): New.
23878         * config.in: Regenerate.
23879
23880         * opts.c (common_handle_option): Handle OPT_fplugin_ and
23881         OPT_fplugin_arg_.
23882
23883 2009-04-14  Le-Chun Wu  <lcwu@google.com>
23884
23885         * tree-pass.h (register_one_dump_file): Add a prototype for
23886         register_one_dump_file.
23887         * toplev.c (compile_file): Call initialize_plugins.
23888         (do_compile): Call invoke_plugin_callbacks.
23889         (toplev_main): Call invoke_plugin_callbacks.
23890         * common.opt: Add -fplugin= and -fplugin-arg-.
23891         * gcc-plugin.h: New public header file for plugins to include.
23892         * plugin.c: New source file.
23893         * plugin.h: New internal header file.
23894         * passes.c (register_one_dump_file): Make it external.
23895
23896         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
23897
23898 2009-04-14  Diego Novillo  <dnovillo@google.com>
23899
23900         * doc/plugins.texi: New.
23901         * doc/gccint.texi: Add reference to Plugins chapter.
23902         * doc/invoke.texi: Document -fplugin and -fplugin-arg
23903         * diagnostic.c (diagnostic_report_diagnostic): Warn about
23904         loaded plugins, if any.
23905         * timevar.def (TV_PLUGIN_INIT): Define.
23906         (TV_PLUGIN_RUN): Define.
23907         * plugin.c: Include timevar.h
23908         (plugins_active_p): New.
23909         (dump_active_plugins): New.
23910         (debug_active_plugins): New.
23911
23912 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
23913
23914         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
23915         library paths.
23916         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
23917
23918 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
23919
23920         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
23921         the same as a minus without a shift.
23922
23923 2009-04-14  Nick Clifton  <nickc@redhat.com>
23924
23925         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
23926         comparisons with small integers will always produce a short
23927         branch.
23928
23929 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
23930
23931         Merge:
23932         2008-12-19  Diego Novillo  <dnovillo@google.com>
23933
23934         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
23935
23936 2009-04-14  Richard Guenther  <rguenther@suse.de>
23937
23938         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
23939         verification.
23940         (verify_gimple_assign_binary): Likewise.  Handle shifts and
23941         rotates correctly.
23942         (verify_gimple_phi): Print the mismatched argument position.
23943         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
23944         Fix types.
23945         (vect_update_init_of_dr): Likewise.
23946         * matrix-reorg.c (transform_access_sites): Do what the
23947         comment suggests.
23948         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
23949
23950 2009-04-13  Michael Eager  <eager@eagercon.com>
23951
23952         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
23953         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
23954         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
23955         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
23956         remove duplicate config
23957
23958 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
23959
23960         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
23961         file_name:line_number type locator of the call site.
23962
23963 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
23964
23965         * genautomata.c: Put blank after comma.
23966         (automaton_decls): New.
23967         (struct unit_usage): Add comments to member next.
23968         (store_alt_unit_usage): Keep the list ordered.
23969         (unit_present_on_list_p, equal_alternatives_p): New.
23970         (check_regexp_units_distribution): Check units distribution
23971         correctness correctly.
23972         (main): Don't write automata if error is found.  Return correct
23973         exit code.
23974
23975         * config/m68k/cf.md (cfv4_ds): Remove.
23976         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
23977         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
23978
23979         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
23980         power4-load-ext, power4-store, power4-store-update,
23981         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
23982         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
23983         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
23984         power4-sqrt, power4-isync): Modify reservation to make correct
23985         unit distribution to automata.
23986
23987         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
23988         power5-store-update, power5-two, power5-three, power5-lmul,
23989         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
23990
23991 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
23992
23993         * except.c (pass_set_nothrow_function_flags): Set name and add
23994         TODO_dump_func.
23995         (set_nothrow_function_flags): Mention in the dump file when
23996         changing a function to nothrow.
23997
23998 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
23999
24000         PR/39066
24001         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
24002         instead of unsigned long.
24003
24004 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24005
24006         * config/arm/arm.c (return_used_this_function): Remove.
24007         (arm_output_function_prologue): Remove use of
24008         return_used_this_function.
24009         (output_return_instruction): Replace use of
24010         return_used_this_function
24011         by cfun->machine->return_used_this_function.
24012         (arm_output_epilogue): Likewise.
24013         (arm_output_function_epilogue): Likewise.
24014         (thumb_unexpanded_epilogue): Likewise.
24015         * config/arm/arm.h (struct machine_function):
24016         New member return_used_this_function.
24017
24018 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
24019
24020         * doc/install.texi: Correct description of default directory for
24021         --with-gxx-include-dir.
24022
24023 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
24024
24025         * fold-const.c (build_range_check): Properly deal with enumeral and
24026         boolean base types.
24027
24028 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
24029
24030         * doc/invoke.texi (max_gcse_passes): Remove documentation.
24031         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
24032         * params.h (MAX_GCSE_PASSES): Remove.
24033         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
24034         in sequence.  Remove ability to run multiple passes.
24035         (bypass_jumps): Report run as third CPROP pass.
24036
24037 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
24038
24039         PR middle-end/39651
24040         * except.c (can_throw_external): Look at each insn in a SEQUENCE
24041         when deciding whether the whole SEQUENCE can throw.
24042
24043 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
24044
24045         PR target/39740
24046         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
24047         offseted label references.
24048
24049 2009-04-11  Jan Hubicka  <jh@suse.cz>
24050
24051         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
24052
24053 2009-04-11  Richard Guenther  <rguenther@suse.de>
24054
24055         PR middle-end/39732
24056         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
24057         return variables as TREE_ADDRESSABLE.
24058
24059 2009-04-11  Richard Guenther  <rguenther@suse.de>
24060
24061         PR tree-optimization/39713
24062         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
24063         reference trees have SSA_NAME operands.
24064
24065 2009-04-11  Richard Guenther  <rguenther@suse.de>
24066
24067         PR c/39712
24068         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
24069         address expressions.
24070
24071 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
24072
24073         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
24074         match changes in Cygwin 1.7
24075         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
24076         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
24077
24078 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
24079
24080         PR tree-optimization/39701
24081         * doc/invoke.texi (Optimization Options): Document change in
24082         meaning and initialization of -fdelete-null-pointer-checks.
24083
24084 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
24085
24086         PR middle-end/39701
24087         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
24088
24089         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
24090         here.
24091
24092         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
24093
24094 2009-04-10  Chao-ying Fu  <fu@mips.com>
24095
24096         * doc/tm.texi (Instruction Output): Document
24097         TARGET_ASM_FINAL_POSTSCAN_INSN.
24098         * target.h (final_postscan_insn): New field in asm_out.
24099         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
24100         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
24101         * final.c (final_scan_insn): Call
24102         targetm.asm_out.final_postscan_insn after outputting
24103         an asm macro and a normal instruction.
24104
24105         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
24106         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
24107         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
24108         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
24109         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
24110
24111 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
24112
24113         PR middle-end/39701
24114         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
24115         variables as non-NULL even with -fdelete-null-pointer-checks.
24116
24117 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
24118
24119         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
24120
24121 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
24122
24123         PR target/39678
24124         * config/i386/i386.c (classify_argument): Handle SCmode with
24125         (bit_offset % 64) != 0.
24126
24127 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
24128
24129         * doc/invoke.texi (Optimize Options): Add cross-reference to
24130         -Q --help=optimizers examples.
24131
24132 2009-04-10  Ben Elliston  <bje@au.ibm.com>
24133
24134         PR target/36800
24135         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
24136         regalign for the reg == fpr and TDmode case.
24137
24138 2009-04-09  David Ayers  <ayers@fsfe.org>
24139
24140         PR objc/29200
24141         * objc/objc-act.c (warn_with_method): Remove helper function.
24142         (check_duplicates): Call warning and inform directly.
24143         (really_start_method): Likewise.
24144
24145 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
24146
24147         * expmed.c (expand_divmod): Always use a comparison for a division
24148         by a large unsigned integer.
24149
24150         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
24151         for things others than variables or functions as nonzero.
24152
24153 2009-04-09  Nick Clifton  <nickc@redhat.com>
24154
24155         * unwind-compat.c: Change copyright header to refer to version
24156         3 of the GNU General Public License with version 3.1 of the
24157         GCC Runtime Library Exception and to point readers at the
24158         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
24159         * config/alpha/crtfastmath.c: Likewise.
24160         * config/alpha/linux-unwind.h: Likewise.
24161         * config/alpha/qrnnd.asm: Likewise.
24162         * config/alpha/vms-crt0-64.c: Likewise.
24163         * config/alpha/vms-crt0.c: Likewise.
24164         * config/alpha/vms-dwarf2.asm: Likewise.
24165         * config/alpha/vms-dwarf2eh.asm: Likewise.
24166         * config/alpha/vms-psxcrt0-64.c: Likewise.
24167         * config/alpha/vms-psxcrt0.c: Likewise.
24168         * config/alpha/vms_tramp.asm: Likewise.
24169         * config/arc/initfini.c: Likewise.
24170         * config/arc/lib1funcs.asm: Likewise.
24171         * config/arm/bpabi-v6m.S: Likewise.
24172         * config/arm/bpabi.S: Likewise.
24173         * config/arm/bpabi.c: Likewise.
24174         * config/arm/crti.asm: Likewise.
24175         * config/arm/crtn.asm: Likewise.
24176         * config/arm/ieee754-df.S: Likewise.
24177         * config/arm/ieee754-sf.S: Likewise.
24178         * config/arm/lib1funcs.asm: Likewise.
24179         * config/arm/libunwind.S: Likewise.
24180         * config/arm/linux-atomic.c: Likewise.
24181         * config/arm/mmintrin.h: Likewise.
24182         * config/arm/pr-support.c: Likewise.
24183         * config/arm/unaligned-funcs.c: Likewise.
24184         * config/arm/unwind-arm.c: Likewise.
24185         * config/arm/unwind-arm.h: Likewise.
24186         * config/avr/libgcc.S: Likewise.
24187         * config/bfin/crti.s: Likewise.
24188         * config/bfin/crtlibid.s: Likewise.
24189         * config/bfin/crtn.s: Likewise.
24190         * config/bfin/lib1funcs.asm: Likewise.
24191         * config/bfin/linux-unwind.h: Likewise.
24192         * config/cris/arit.c: Likewise.
24193         * config/cris/cris_abi_symbol.c: Likewise.
24194         * config/darwin-64.c: Likewise.
24195         * config/darwin-crt2.c: Likewise.
24196         * config/darwin-crt3.c: Likewise.
24197         * config/darwin.h: Likewise.
24198         * config/dbxelf.h: Likewise.
24199         * config/dfp-bit.c: Likewise.
24200         * config/dfp-bit.h: Likewise.
24201         * config/elfos.h: Likewise.
24202         * config/fixed-bit.c: Likewise.
24203         * config/fixed-bit.h: Likewise.
24204         * config/fp-bit.c: Likewise.
24205         * config/fp-bit.h: Likewise.
24206         * config/fr30/crti.asm: Likewise.
24207         * config/fr30/crtn.asm: Likewise.
24208         * config/fr30/lib1funcs.asm: Likewise.
24209         * config/freebsd-spec.h: Likewise.
24210         * config/frv/cmovd.c: Likewise.
24211         * config/frv/cmovh.c: Likewise.
24212         * config/frv/cmovw.c: Likewise.
24213         * config/frv/frvbegin.c: Likewise.
24214         * config/frv/frvend.c: Likewise.
24215         * config/frv/lib1funcs.asm: Likewise.
24216         * config/glibc-stdint.h: Likewise.
24217         * config/h8300/clzhi2.c: Likewise.
24218         * config/h8300/crti.asm: Likewise.
24219         * config/h8300/crtn.asm: Likewise.
24220         * config/h8300/ctzhi2.c: Likewise.
24221         * config/h8300/fixunssfsi.c: Likewise.
24222         * config/h8300/lib1funcs.asm: Likewise.
24223         * config/h8300/parityhi2.c: Likewise.
24224         * config/h8300/popcounthi2.c: Likewise.
24225         * config/i386/ammintrin.h: Likewise.
24226         * config/i386/att.h: Likewise.
24227         * config/i386/avxintrin.h: Likewise.
24228         * config/i386/biarch64.h: Likewise.
24229         * config/i386/bmmintrin.h: Likewise.
24230         * config/i386/cpuid.h: Likewise.
24231         * config/i386/cross-stdarg.h: Likewise.
24232         * config/i386/crtfastmath.c: Likewise.
24233         * config/i386/crtprec.c: Likewise.
24234         * config/i386/cygming-crtbegin.c: Likewise.
24235         * config/i386/cygming-crtend.c: Likewise.
24236         * config/i386/cygwin.asm: Likewise.
24237         * config/i386/emmintrin.h: Likewise.
24238         * config/i386/gmm_malloc.h: Likewise.
24239         * config/i386/gthr-win32.c: Likewise.
24240         * config/i386/i386.h: Likewise.
24241         * config/i386/immintrin.h: Likewise.
24242         * config/i386/linux-unwind.h: Likewise.
24243         * config/i386/linux64.h: Likewise.
24244         * config/i386/mm3dnow.h: Likewise.
24245         * config/i386/mmintrin-common.h: Likewise.
24246         * config/i386/mmintrin.h: Likewise.
24247         * config/i386/nmmintrin.h: Likewise.
24248         * config/i386/pmm_malloc.h: Likewise.
24249         * config/i386/pmmintrin.h: Likewise.
24250         * config/i386/smmintrin.h: Likewise.
24251         * config/i386/sol2-c1.asm: Likewise.
24252         * config/i386/sol2-ci.asm: Likewise.
24253         * config/i386/sol2-cn.asm: Likewise.
24254         * config/i386/sol2-gc1.asm: Likewise.
24255         * config/i386/tmmintrin.h: Likewise.
24256         * config/i386/unix.h: Likewise.
24257         * config/i386/w32-unwind.h: Likewise.
24258         * config/i386/wmmintrin.h: Likewise.
24259         * config/i386/x86-64.h: Likewise.
24260         * config/i386/x86intrin.h: Likewise.
24261         * config/i386/xmmintrin.h: Likewise.
24262         * config/ia64/crtbegin.asm: Likewise.
24263         * config/ia64/crtend.asm: Likewise.
24264         * config/ia64/crtfastmath.c: Likewise.
24265         * config/ia64/crti.asm: Likewise.
24266         * config/ia64/crtn.asm: Likewise.
24267         * config/ia64/fde-glibc.c: Likewise.
24268         * config/ia64/lib1funcs.asm: Likewise.
24269         * config/ia64/linux-unwind.h: Likewise.
24270         * config/ia64/quadlib.c: Likewise.
24271         * config/ia64/unwind-ia64.c: Likewise.
24272         * config/linux.h: Likewise.
24273         * config/m32c/m32c-lib1.S: Likewise.
24274         * config/m32c/m32c-lib2-trapv.c: Likewise.
24275         * config/m32c/m32c-lib2.c: Likewise.
24276         * config/m32r/initfini.c: Likewise.
24277         * config/m68hc11/larith.asm: Likewise.
24278         * config/m68hc11/m68hc11-crt0.S: Likewise.
24279         * config/m68k/cf.md: Likewise.
24280         * config/m68k/crti.s: Likewise.
24281         * config/m68k/crtn.s: Likewise.
24282         * config/m68k/lb1sf68.asm: Likewise.
24283         * config/m68k/linux-unwind.h: Likewise.
24284         * config/mcore/crti.asm: Likewise.
24285         * config/mcore/crtn.asm: Likewise.
24286         * config/mcore/lib1.asm: Likewise.
24287         * config/mips/linux-unwind.h: Likewise.
24288         * config/mips/loongson.h: Likewise.
24289         * config/mips/mips16.S: Likewise.
24290         * config/mmix/crti.asm: Likewise.
24291         * config/mmix/crtn.asm: Likewise.
24292         * config/pa/fptr.c: Likewise.
24293         * config/pa/hpux-unwind.h: Likewise.
24294         * config/pa/lib2funcs.asm: Likewise.
24295         * config/pa/linux-atomic.c: Likewise.
24296         * config/pa/linux-unwind.h: Likewise.
24297         * config/pa/milli64.S: Likewise.
24298         * config/pa/quadlib.c: Likewise.
24299         * config/pa/stublib.c: Likewise.
24300         * config/picochip/libgccExtras/adddi3.asm: Likewise.
24301         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
24302         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
24303         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
24304         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
24305         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
24306         * config/picochip/libgccExtras/divmod15.asm: Likewise.
24307         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
24308         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
24309         * config/picochip/libgccExtras/longjmp.asm: Likewise.
24310         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
24311         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
24312         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
24313         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
24314         * config/picochip/libgccExtras/setjmp.asm: Likewise.
24315         * config/picochip/libgccExtras/subdi3.asm: Likewise.
24316         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
24317         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
24318         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
24319         * config/rs6000/750cl.h: Likewise.
24320         * config/rs6000/altivec.h: Likewise.
24321         * config/rs6000/biarch64.h: Likewise.
24322         * config/rs6000/crtresfpr.asm: Likewise.
24323         * config/rs6000/crtresgpr.asm: Likewise.
24324         * config/rs6000/crtresxfpr.asm: Likewise.
24325         * config/rs6000/crtresxgpr.asm: Likewise.
24326         * config/rs6000/crtsavfpr.asm: Likewise.
24327         * config/rs6000/crtsavgpr.asm: Likewise.
24328         * config/rs6000/darwin-asm.h: Likewise.
24329         * config/rs6000/darwin-fallback.c: Likewise.
24330         * config/rs6000/darwin-fpsave.asm: Likewise.
24331         * config/rs6000/darwin-ldouble.c: Likewise.
24332         * config/rs6000/darwin-tramp.asm: Likewise.
24333         * config/rs6000/darwin-unwind.h: Likewise.
24334         * config/rs6000/darwin-vecsave.asm: Likewise.
24335         * config/rs6000/darwin-world.asm: Likewise.
24336         * config/rs6000/e500crtres32gpr.asm: Likewise.
24337         * config/rs6000/e500crtres64gpr.asm: Likewise.
24338         * config/rs6000/e500crtres64gprctr.asm: Likewise.
24339         * config/rs6000/e500crtrest32gpr.asm: Likewise.
24340         * config/rs6000/e500crtrest64gpr.asm: Likewise.
24341         * config/rs6000/e500crtresx32gpr.asm: Likewise.
24342         * config/rs6000/e500crtresx64gpr.asm: Likewise.
24343         * config/rs6000/e500crtsav32gpr.asm: Likewise.
24344         * config/rs6000/e500crtsav64gpr.asm: Likewise.
24345         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
24346         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
24347         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
24348         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
24349         * config/rs6000/eabi-ci.asm: Likewise.
24350         * config/rs6000/eabi-cn.asm: Likewise.
24351         * config/rs6000/eabi.asm: Likewise.
24352         * config/rs6000/linux-unwind.h: Likewise.
24353         * config/rs6000/linux64.h: Likewise.
24354         * config/rs6000/paired.h: Likewise.
24355         * config/rs6000/paired.md: Likewise.
24356         * config/rs6000/ppc64-fp.c: Likewise.
24357         * config/rs6000/ppu_intrinsics.h: Likewise.
24358         * config/rs6000/rs6000.h: Likewise.
24359         * config/rs6000/si2vmx.h: Likewise.
24360         * config/rs6000/sol-ci.asm: Likewise.
24361         * config/rs6000/sol-cn.asm: Likewise.
24362         * config/rs6000/spe.h: Likewise.
24363         * config/rs6000/spu2vmx.h: Likewise.
24364         * config/rs6000/sysv4.h: Likewise.
24365         * config/rs6000/tramp.asm: Likewise.
24366         * config/rs6000/vec_types.h: Likewise.
24367         * config/s390/linux-unwind.h: Likewise.
24368         * config/s390/tpf-unwind.h: Likewise.
24369         * config/score/crti.asm: Likewise.
24370         * config/score/crtn.asm: Likewise.
24371         * config/sh/crt1.asm: Likewise.
24372         * config/sh/crti.asm: Likewise.
24373         * config/sh/crtn.asm: Likewise.
24374         * config/sh/divtab-sh4-300.c: Likewise.
24375         * config/sh/divtab-sh4.c: Likewise.
24376         * config/sh/divtab.c: Likewise.
24377         * config/sh/lib1funcs-4-300.asm: Likewise.
24378         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
24379         * config/sh/lib1funcs.asm: Likewise.
24380         * config/sh/lib1funcs.h: Likewise.
24381         * config/sh/linux-atomic.asm: Likewise.
24382         * config/sh/linux-unwind.h: Likewise.
24383         * config/sh/shmedia.h: Likewise.
24384         * config/sh/sshmedia.h: Likewise.
24385         * config/sh/ushmedia.h: Likewise.
24386         * config/sparc/crtfastmath.c: Likewise.
24387         * config/sparc/linux-unwind.h: Likewise.
24388         * config/sparc/sol2-c1.asm: Likewise.
24389         * config/sparc/sol2-ci.asm: Likewise.
24390         * config/sparc/sol2-cn.asm: Likewise.
24391         * config/spu/divmodti4.c: Likewise.
24392         * config/spu/divv2df3.c: Likewise.
24393         * config/spu/float_disf.c: Likewise.
24394         * config/spu/float_unsdidf.c: Likewise.
24395         * config/spu/float_unsdisf.c: Likewise.
24396         * config/spu/float_unssidf.c: Likewise.
24397         * config/spu/mfc_multi_tag_release.c: Likewise.
24398         * config/spu/mfc_multi_tag_reserve.c: Likewise.
24399         * config/spu/mfc_tag_release.c: Likewise.
24400         * config/spu/mfc_tag_reserve.c: Likewise.
24401         * config/spu/mfc_tag_table.c: Likewise.
24402         * config/spu/multi3.c: Likewise.
24403         * config/spu/spu_internals.h: Likewise.
24404         * config/spu/spu_intrinsics.h: Likewise.
24405         * config/spu/spu_mfcio.h: Likewise.
24406         * config/spu/vec_types.h: Likewise.
24407         * config/spu/vmx2spu.h: Likewise.
24408         * config/stormy16/stormy16-lib2.c: Likewise.
24409         * config/svr4.h: Likewise.
24410         * config/sync.c: Likewise.
24411         * config/v850/lib1funcs.asm: Likewise.
24412         * config/vxlib-tls.c: Likewise.
24413         * config/vxlib.c: Likewise.
24414         * config/vxworks-dummy.h: Likewise.
24415         * config/xtensa/crti.asm: Likewise.
24416         * config/xtensa/crtn.asm: Likewise.
24417         * config/xtensa/ieee754-df.S: Likewise.
24418         * config/xtensa/ieee754-sf.S: Likewise.
24419         * config/xtensa/lib1funcs.asm: Likewise.
24420         * config/xtensa/lib2funcs.S: Likewise.
24421         * config/xtensa/linux-unwind.h: Likewise.
24422         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
24423         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
24424         * coretypes.h: Likewise.
24425         * crtstuff.c: Likewise.
24426         * defaults.h: Likewise.
24427         * dwarf2.h: Likewise.
24428         * emutls.c: Likewise.
24429         * gbl-ctors.h: Likewise.
24430         * gcov-io.h: Likewise.
24431         * ginclude/float.h: Likewise.
24432         * ginclude/iso646.h: Likewise.
24433         * ginclude/stdarg.h: Likewise.
24434         * ginclude/stdbool.h: Likewise.
24435         * ginclude/stddef.h: Likewise.
24436         * ginclude/stdfix.h: Likewise.
24437         * ginclude/stdint-gcc.h: Likewise.
24438         * ginclude/tgmath.h: Likewise.
24439         * gthr-aix.h: Likewise.
24440         * gthr-dce.h: Likewise.
24441         * gthr-gnat.c: Likewise.
24442         * gthr-gnat.h: Likewise.
24443         * gthr-lynx.h: Likewise.
24444         * gthr-mipssde.h: Likewise.
24445         * gthr-nks.h: Likewise.
24446         * gthr-posix.c: Likewise.
24447         * gthr-posix.h: Likewise.
24448         * gthr-posix95.h: Likewise.
24449         * gthr-rtems.h: Likewise.
24450         * gthr-single.h: Likewise.
24451         * gthr-solaris.h: Likewise.
24452         * gthr-tpf.h: Likewise.
24453         * gthr-vxworks.h: Likewise.
24454         * gthr-win32.h: Likewise.
24455         * gthr.h: Likewise.
24456         * libgcc2.c: Likewise.
24457         * libgcc2.h: Likewise.
24458         * libgcov.c: Likewise.
24459         * tsystem.h: Likewise.
24460         * typeclass.h: Likewise.
24461         * unwind-c.c: Likewise.
24462         * unwind-compat.h: Likewise.
24463         * unwind-dw2-fde-compat.c: Likewise.
24464         * unwind-dw2-fde-darwin.c: Likewise.
24465         * unwind-dw2-fde-glibc.c: Likewise.
24466         * unwind-dw2-fde.c: Likewise.
24467         * unwind-dw2-fde.h: Likewise.
24468         * unwind-dw2.c: Likewise.
24469         * unwind-dw2.h: Likewise.
24470         * unwind-generic.h: Likewise.
24471         * unwind-pe.h: Likewise.
24472         * unwind-sjlj.c: Likewise.
24473         * unwind.inc: Likewise.
24474         * config/arm/neon-gen.ml: Change generated copyright header to
24475         refer to version 3 of the GNU General Public License with
24476         version 3.1 of the GCC Runtime Library Exception and to point
24477         readers at the COPYING3 and COPYING3.RUNTIME files and the
24478         FSF's license web page.
24479         * config/arm/arm_neon.h: Regenerate.
24480
24481 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
24482
24483         * config/cris/cris.md: Change copyright header to refer to version
24484         3 of the GNU General Public License.
24485         * doc/install.texi2html: Change copyright header to refer to version
24486         3 of the GNU General Public License and to point readers at the
24487         COPYING3 file and the FSF's license web page.
24488         * config/vax/linux.h: Likewise.
24489
24490 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
24491
24492         * config/i386/i386.md (cmpcc): New.
24493         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
24494         (sync_compare_and_swap_cc*): Delete.
24495
24496         * config/s390/s390.c (s390_compare_emitted): Remove.
24497         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
24498         s390_compare_emitted used to be handled.  Assert that modes match.
24499         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
24500         refer to sync_compare_and_swap_ccsi.
24501         * config/s390/s390.h (s390_compare_emitted): Remove.
24502         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
24503         instead of s390_compare_emitted.
24504         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
24505         instead of s390_compare_emitted.
24506         * config/s390/s390.md (cmpcc): New.
24507         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
24508         CC_REGNUM, do not pretend it's set.
24509         (sync_compare_and_swap_cc*): Delete.
24510         * config/s390/predicates.md (cc_reg_operand): New.
24511
24512         * expr.c (sync_compare_and_swap_cc): Delete.
24513         * optabs.h (sync_compare_and_swap_cc): Delete.
24514         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
24515         is being used with can_compare_p.
24516         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
24517         (find_cc_set): New.
24518         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
24519         look for a MODE_CC set instead.  Use emit_store_flag.
24520         (expand_compare_and_swap_loop): Likewise, with some additional
24521         complication to avoid a force_reg when useless.  Use
24522         emit_cmp_and_jump_insns.
24523         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
24524         * doc/md.texi (sync_compare_and_swap_cc): Merge with
24525         sync_compare_and_swap documentation.
24526
24527 2009-04-09  Jan Hubicka  <jh@suse.cz>
24528
24529         * except.c (find_prev_try): Break out from ....
24530         (duplicate_eh_regions): ... here; properly update prev_try pointers
24531         when duplication part of tree.
24532         (dump_eh_tree): Improve dumping.
24533         (verify_eh_region): New.
24534         (verify_eh_tree): Use it.
24535
24536 2009-04-06  Richard Guenther  <rguenther@suse.de>
24537
24538         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
24539         &ARRAY addresses by adjusting their types and prepending
24540         a conversion.
24541         * tree-cfg.c (verify_gimple_assign_single): Verify that
24542         addresses are correct.
24543
24544 2009-04-09  Richard Guenther  <rguenther@suse.de>
24545
24546         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
24547         indices into an array reference if possible.
24548         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
24549         Fold POINTER_PLUS_EXPR statements with invariant address.
24550
24551 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
24552
24553         PR target/39634
24554         * config.gcc (powerpc64-*-linux*): Always build biarch.
24555
24556 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
24557
24558         PR c/39613
24559         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
24560         it and pedwarn if this results in an INTEGER_CST.
24561
24562 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24563
24564         * doc/install.texi: Update minimum GMP version.  Remove obsolete
24565         text in MPFR section.
24566
24567 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
24568
24569         * dwarf2out.c (class_scope_p): New static inline.
24570         (class_or_namespace_scope_p): Use it.
24571         (gen_variable_die): Use DW_TAG_member tag for static data member
24572         declarations instead of DW_TAG_variable.
24573
24574         PR middle-end/39573
24575         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
24576         variables.
24577
24578 2009-04-08  Richard Guenther  <rguenther@suse.de>
24579
24580         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
24581         valueize random data.
24582
24583 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
24584
24585         * config.gcc (aix tm_file):  Add aix-stdint.h.
24586         (aix tm clause use_gcc_stdint):  Set to wrap.
24587         * config/rs6000/aix-stdint.h:  New file.
24588
24589 2009-04-08  Richard Guenther  <rguenther@suse.de>
24590
24591         PR middle-end/36291
24592         * tree-dfa.c (add_referenced_var): Do not recurse into
24593         global initializers.
24594         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
24595         exposed variables.
24596         (fold_const_aggregate_ref): Likewise.
24597
24598 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
24599
24600         * recog.c (ordered_comparison_operator): New.
24601         * gensupport.c (std_preds): Add it.
24602         * doc/md.texi (Machine-Independent Predicates): Document it.
24603
24604 2009-04-08  Jan Hubicka  <jh@suse.cz>
24605
24606         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
24607         * function.h (rtl_eh): Remove exception_handler_label_map.
24608         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
24609         remove_exception_handler_label, for_each_eh_label_1): Remove.
24610         (rtl_remove_unreachable_regions): Remove.
24611         (convert_from_eh_region_ranges): Do not remove unreachable regions.
24612         (find_exception_handler_labels): Don't build the hashtable.
24613         (maybe_remove_eh_handler): Remove.
24614         (for_each_eh_label): Rewrite to walk the tree.
24615         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
24616         * except.h (maybe_remove_eh_handler): Remove.
24617         * passes.c (init_optimization_passes): Schedule second EH cleanup
24618         before out-of-ssa.
24619         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
24620         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
24621
24622 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
24623
24624         * genoutput.c (validate_optab_operands): New.
24625         (gen_insn, gen_expand): Call it.
24626
24627         * genflags.c (gen_insn): Detect misused iterators.
24628         (main): Pass line_no to gen_insn, exit with status 1 on error.
24629
24630         * genextract.c (line_no): Make global.
24631         (VEC_safe_set_locstr): Change assertion to error message.
24632         (main): Exit with status 1 on error.
24633
24634 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
24635
24636         PR c/39614
24637         PR c/39673
24638         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
24639         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
24640         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
24641         * c-convert.c (convert): Do not call fold on results of conversion
24642         functions when the result is a C_MAYBE_CONST_EXPR.
24643         * c-parser.c (c_parser_postfix_expression): Do not fold condition
24644         of __builtin_choose_expr.
24645         * c-typeck.c (remove_c_maybe_const_expr): New.
24646         (build_unary_op, build_conditional_expr, build_compound_expr,
24647         build_binary_op, c_objc_common_truthvalue_conversion): Call
24648         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
24649         integer operands.
24650
24651 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
24652
24653         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
24654         CODE to produce a new one. Add a prototype to use fold_convert_const
24655
24656 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
24657
24658         PR bootstrap/39660
24659         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
24660         mix declarations and code.
24661
24662 2009-04-08  Ben Elliston  <bje@au.ibm.com>
24663
24664         * gcc.c: Replace `CC' with `GCC' throughout.
24665
24666 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
24667
24668         * doc/invoke.texi: Document Atom support.
24669
24670 2009-04-07  Jason Merrill  <jason@redhat.com>
24671
24672         PR c++/25185
24673         * c-common.h, c-common.c: Add flag_pretty_templates.
24674         * c-opts.c (c_common_handle_option): Set it.
24675         * c.opt: Add -fno-pretty-templates.
24676         * doc/invoke.texi (C++ Dialect Options): Likewise.
24677
24678 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
24679
24680         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
24681         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
24682         (ia64_expand_builtin): Likewise.
24683
24684 2009-04-07  Martin Jambor  <mjambor@suse.cz>
24685
24686         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
24687         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
24688         ADDR_EXPRS are include too.
24689
24690 2009-04-07  Richard Guenther  <rguenther@suse.de>
24691
24692         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
24693         decls are only used if passes as parameters or if they are
24694         local statics and the call is not to a builtin.
24695         (call_may_clobber_ref_p_1): Likewise.
24696
24697 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
24698
24699         * expr.c (do_store_flag): Remove last argument.  Simplify code
24700         to avoid duplication of tests already done by can_compare_p.
24701         (expand_expr_real_1): Adjust caller.
24702
24703 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
24704
24705         * optabs.c (can_compare_p): Test the predicate of a
24706         cbranch and cstore pattern.
24707
24708 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
24709
24710         * expr.c (convert_move): Use emit_store_flag instead of
24711         "emulating" it.
24712
24713 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
24714
24715         * config/i386/i386.c (ix86_compare_emitted): Remove.
24716         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
24717         ix86_compare_op0 like ix86_compare_emitted used to be handled.
24718         * config/i386/i386.h (ix86_compare_emitted): Remove.
24719         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
24720         instead of ix86_compare_emitted.
24721         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
24722
24723 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
24724
24725         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
24726         Add t-sysroot-suffix to tmake_file.
24727         * config/print-sysroot-suffix.sh: New file.
24728         * config/t-sysroot-suffix: New file.
24729
24730 2009-04-07  Ben Elliston  <bje@au.ibm.com>
24731
24732         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
24733         as the latter produces a warning when the target does not support
24734         infinity.
24735
24736 2009-04-07  Ben Elliston  <bje@au.ibm.com>
24737
24738         * dfp.c: Replace type punning assignments with memcpy throughout.
24739         * Makefile.in (dfp.o-warn): Remove.
24740
24741 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
24742
24743         PR target/39634
24744         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
24745         Include soft-fp/t-softfp after rs6000/t-linux64.
24746
24747 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
24748
24749         * stor-layout.c (set_sizetype): Use the full precision of their
24750         machine mode for bitsize types.
24751
24752 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
24753
24754         * config/i386/i386.md: Revert 2 accidental checkins.
24755
24756 2009-04-06  Joey Ye  <joey.ye@intel.com>
24757             Xuepeng Guo  <xuepeng.guo@intel.com>
24758             H.J. Lu  <hongjiu.lu@intel.com>
24759
24760         Atom pipeline model, tuning and insn selection.
24761         * config.gcc (atom): Add atom config options and target.
24762
24763         * config/i386/atom.md: New.
24764
24765         * config/i386/i386.c (atom_cost): New cost.
24766         (m_ATOM): New macro flag.
24767         (initial_ix86_tune_features): Set m_ATOM.
24768         (x86_accumulate_outgoing_args): Likewise.
24769         (x86_arch_always_fancy_math_387): Likewise.
24770         (processor_target): Add Atom cost.
24771         (cpu_names): Add Atom cpu name.
24772         (override_options): Set Atom ISA.
24773         (ix86_issue_rate): New case PROCESSOR_ATOM.
24774         (ix86_adjust_cost): Likewise.
24775
24776         * config/i386/i386.h (TARGET_ATOM): New target macro.
24777         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
24778         (TARGET_OPT_AGU): New target option.
24779         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
24780         (processor_type): Add PROCESSOR_ATOM.
24781
24782         * config/i386/i386.md (cpu): Add new value "atom".
24783         (use_carry, movu): New attr.
24784         (atom.md): Include atom.md.
24785         (adddi3_carry_rex64): Set attr "use_carry".
24786         (addqi3_carry): Likewise.
24787         (addhi3_carry): Likewise.
24788         (addsi3_carry): Likewise.
24789         (*addsi3_carry_zext): Likewise.
24790         (subdi3_carry_rex64): Likewise.
24791         (subqi3_carry): Likewise.
24792         (subhi3_carry): Likewise.
24793         (subsi3_carry): Likewise.
24794         (x86_movdicc_0_m1_rex64): Likewise.
24795         (*x86_movdicc_0_m1_se): Likewise.
24796         (x86_movsicc_0_m1): Likewise.
24797         (*x86_movsicc_0_m1_se): Likewise.
24798         (*adddi_1_rex64): Emit add insn as much as possible.
24799         (*addsi_1): Likewise.
24800         (return_internal): Set atom_unit.
24801         (return_internal_long): Likewise.
24802         (return_pop_internal): Likewise.
24803         (*rcpsf2_sse): Set atom_sse_attr attr.
24804         (*qrt<mode>2_sse): Likewise.
24805         (*prefetch_sse): Likewise.
24806
24807         * config/i386/i386-c.c (ix86_target_macros_internal): New case
24808         PROCESSOR_ATOM.
24809         (ix86_target_macros_internal): Likewise.
24810
24811         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
24812         (*prefetch_sse_rex): Likewise.
24813         (sse_rcpv4sf2): Likewise.
24814         (sse_vmrcpv4sf2): Likewise.
24815         (sse_sqrtv4sf2): Likewise.
24816         (<sse>_vmsqrt<mode>2): Likewise.
24817         (sse_ldmxcsr): Likewise.
24818         (sse_stmxcsr): Likewise.
24819         (*sse_sfence): Likewise.
24820         (sse2_clflush): Likewise.
24821         (*sse2_mfence): Likewise.
24822         (*sse2_lfence): Likewise.
24823         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
24824         (<sse>_movup<ssemodesuffixf2c>): Likewise.
24825         (avx_movdqu<avxmodesuffix>): Likewise.
24826         (avx_lddqu<avxmodesuffix>): Likewise.
24827         (sse2_movntv2di): Change attr "type" to "ssemov".
24828         (sse2_movntsi): Likewise.
24829         (rsqrtv8sf2): Change attr "type" to "sseadd".
24830         (sse3_addsubv2df3): Set attr "atom_unit".
24831         (sse3_h<plusminus_insn>v4sf3): Likewise.
24832         (*sse2_pmaddwd): Likewise.
24833         (*vec_extractv2di_1_rex64): Likewise.
24834         (*vec_extractv2di_1_avx): Likewise.
24835         (sse2_psadbw): Likewise.
24836         (ssse3_phaddwv8hi3): Likewise.
24837         (ssse3_phaddwv4hi3): Likewise.
24838         (ssse3_phadddv4si3): Likewise.
24839         (ssse3_phadddv2si3): Likewise.
24840         (ssse3_phaddswv8hi3): Likewise.
24841         (ssse3_phaddswv4hi3): Likewise.
24842         (ssse3_phsubwv8hi3): Likewise.
24843         (ssse3_phsubwv4hi3): Likewise.
24844         (ssse3_phsubdv4si3): Likewise.
24845         (ssse3_phsubdv2si3): Likewise.
24846         (ssse3_phsubswv8hi3): Likewise.
24847         (ssse3_phsubswv4hi3): Likewise.
24848         (ssse3_pmaddubsw128): Likewise.
24849         (sse3_pmaddubsw: Likewise.
24850         (ssse3_palignrti): Likewise.
24851         (ssse3_palignrdi): Likewise.
24852
24853 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
24854
24855         * doc/install.texi (Specific): Fix two cross-references to MinGW.
24856
24857 2009-04-06  Richard Guenther  <rguenther@suse.de>
24858
24859         PR tree-optimization/28868
24860         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
24861         of which PHI results we inserted.
24862         (insert_into_preds_of_block): Record inserted PHIs.
24863         (eliminate): Eliminate redundant PHI nodes.
24864         (init_pre): Init inserted_phi_names.
24865
24866 2009-04-06  Richard Guenther  <rguenther@suse.de>
24867
24868         PR tree-optimization/39643
24869         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
24870         IMAGPART_EXPRs of complex constants.
24871         (execute_fold_all_builtins): If we folded a call queue
24872         TODO_update_address_taken.
24873
24874 2009-04-06  Jan Hubicka  <jh@suse.cz>
24875
24876         PR middle-end/39659
24877         * except.c (remove_unreachable_regions): Propagate may_contain_throw
24878         flag.
24879
24880 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
24881
24882         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
24883         delay slot.
24884         (ic_invalidate_array): Likewise.
24885
24886 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
24887
24888         * calls.c (emit_library_call_value_1): Fix a problem with parameter
24889         alignment for library calls.
24890
24891 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
24892
24893         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
24894         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
24895         * config/i386/mingw-stdint.h:  New file.
24896
24897 2009-04-05  Richard Guenther  <rguenther@suse.de>
24898
24899         PR tree-optimization/39648
24900         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
24901         our &A vs. &A[0] IL deficiencies.
24902
24903 2009-04-04  Jan Hubicka  <jh@suse.cz>
24904
24905         * except.c (sjlj_find_directly_reachable_regions): Be ready for
24906         removed toplevel regions.
24907         (sjlj_mark_call_sites): Likewise.
24908
24909 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
24910
24911         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
24912         (cygwin tm clause use_gcc_stdint):  Set to wrap.
24913         * config/i386/cygwin-stdint.h:  New file.
24914
24915 2009-04-04  Richard Guenther  <rguenther@suse.de>
24916
24917         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
24918         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
24919         single-argument PHIs if we are in loop-closed SSA form.
24920         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
24921         for the pre-condition.
24922         (slpeel_tree_peel_loop_to_edge): Likewise.
24923         (vect_build_loop_niters): Take an optional sequence to append stmts.
24924         (vect_generate_tmps_on_preheader): Likewise.
24925         (vect_do_peeling_for_loop_bound): Take extra guards for the
24926         pre-condition.
24927         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
24928         the cost model check.
24929         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
24930         guards if we are going to peel.  Do not apply versioning in that case.
24931         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
24932         (vect_do_peeling_for_loop_bound): Likewise.
24933         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
24934         loop bound only record extra pre-conditions, do not apply loop
24935         versioning.
24936
24937 2009-04-04  Richard Guenther  <rguenther@suse.de>
24938
24939         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
24940         renaming code.
24941
24942 2009-04-04  Jan Hubicka  <jh@suse.cz>
24943
24944         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
24945         last_basic_block for size of bb->index indexed array.
24946         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
24947         compute_out, link_btr_uses, build_btr_def_use_webs,
24948         build_btr_def_use_webs, migrate_btr_defs): Likewise.
24949
24950 2009-04-04  Jan Hubicka  <jh@suse.cz>
24951
24952         * except.c (remove_eh_handler_and_replace): Break out from ...
24953         (remove_eh_handler): ... here.
24954         (bring_to_root): New function.
24955         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
24956         handled ones, bring others to root of tree.
24957
24958 2009-04-04  Jan Hubicka  <jh@suse.cz>
24959
24960         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
24961         (all_phis_safe_to_merge): New function.
24962         (update_info): New structure.
24963         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
24964         (cleanup_empty_eh): Update SSA if possible.
24965
24966 2009-04-04  Richard Guenther  <rguenther@suse.de>
24967
24968         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
24969         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
24970         (append_vuse): Likewise.
24971
24972 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
24973
24974         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
24975         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
24976         instead of REG_UNSAVED for DW_CFA_undefined.
24977         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
24978         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
24979         outermost frame.
24980
24981 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
24982
24983         PR target/39501
24984         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
24985
24986 2009-04-04  Richard Guenther  <rguenther@suse.de>
24987
24988         PR tree-optimization/8781
24989         PR tree-optimization/37892
24990         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
24991         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
24992         (valueize_refs): Call it for *& valueizations.
24993         (shared_reference_ops_from_ref): Rename to ...
24994         (valueize_shared_reference_ops_from_ref): ... this and valueize.
24995         (shared_reference_ops_from_call): Rename to ...
24996         (valueize_shared_reference_ops_from_call): ... this and valueize.
24997         (vn_reference_lookup): Update.
24998         (visit_reference_op_call): Likewise.
24999         * tree-ssa-pre.c (phi_translate_1): Fold *&.
25000         (eliminate): Value-replace the call address in call statements.
25001
25002 2009-04-04  Richard Guenther  <rguenther@suse.de>
25003
25004         PR tree-optimization/39636
25005         * tree-ssa-forwprop.c
25006         (forward_propagate_addr_into_variable_array_index): Check for
25007         GIMPLE_ASSIGN before accessing the rhs code.
25008
25009 2009-04-03  Jason Merrill  <jason@redhat.com>
25010
25011         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
25012
25013 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
25014
25015         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
25016         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
25017         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
25018         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
25019         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
25020         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
25021         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
25022         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
25023         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
25024         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
25025         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
25026         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
25027         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
25028         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
25029         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
25030         Use fr_reg_or_fp01_operand instead of fr_register_operand
25031
25032         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
25033         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
25034         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
25035
25036 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
25037
25038         PR rtl-optimization/39607
25039         PR rtl-optimization/39631
25040
25041         Revert:
25042
25043         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
25044         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
25045         instead of DF_LR_OUT.
25046         * ira-lives.c (process_bb_node_lives): Ditto.
25047         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
25048         instead of DF_LR_{OUT,IN}.
25049         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
25050         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
25051
25052 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
25053
25054         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
25055         (execute_lower_omp): Always run but take the short way out if -fopenmp
25056         is not given.
25057         (gate_lower_omp): Remove, forcing the pass manager to always run the
25058         pass and always set PROP_gimple_lomp.
25059         (pass_lower_omp): Remove gate function.
25060         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
25061         PROP_trees.  Instead, require it.
25062         * ipa-cp.c (pass_ipa_cp): Likewise.
25063         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
25064         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
25065         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
25066         and PROP_gimple_leh.
25067
25068 2009-04-03  Richard Guenther  <rguenther@suse.de>
25069
25070         PR middle-end/13146
25071         PR tree-optimization/23940
25072         PR tree-optimization/33237
25073         PR middle-end/33974
25074         PR middle-end/34093
25075         PR tree-optimization/36201
25076         PR tree-optimization/36230
25077         PR tree-optimization/38049
25078         PR tree-optimization/38207
25079         PR tree-optimization/38230
25080         PR tree-optimization/38301
25081         PR tree-optimization/38585
25082         PR middle-end/38895
25083         PR tree-optimization/38985
25084         PR tree-optimization/39299
25085         * tree-ssa-structalias.h: Remove.
25086         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
25087         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
25088         (struct vuse_element_d): Remove.
25089         (struct vuse_vec_d): Likewise.
25090         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
25091         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
25092         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
25093         VUSE_ELEMENT_VAR): Likewise.
25094         (struct voptype_d): Likewise.
25095         (NUM_VOP_FREE_BUCKETS): Likewise.
25096         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
25097         (struct stmt_operands_d): Remove.
25098         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
25099         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
25100         VDEF_NUM, VDEF_VECT): Likewise.
25101         (copy_virtual_operands): Remove.
25102         (operand_build_cmp): Likewise.
25103         (create_ssa_artificial_load_stmt): Likewise.
25104         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
25105         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
25106         vuse_index and mayuse_index members.  Pack and move done and iter_type
25107         members to the front.
25108         (SSA_OP_VMAYUSE): Remove.
25109         (SSA_OP_VIRTUAL_USES): Adjust.
25110         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
25111         (unlink_stmt_vdef): Declare.
25112         (add_to_addressable_set): Remove.
25113         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
25114         (vrp_visit_stmt): Likewise.
25115         * doc/tree-ssa.texi (Alias analysis): Update.
25116         * doc/invoke.texi (max-aliased-vops): Remove docs.
25117         (avg-aliased-vops): Likewise.
25118         * tree-into-ssa.c (syms_to_rename): Remove.
25119         (need_to_update_vops_p): Likewise.
25120         (need_to_initialize_update_ssa_p): Rename to ...
25121         (update_ssa_initialized_fn): ... this.  Track function we are
25122         initialized for.
25123         (symbol_marked_for_renaming): Simplify.
25124         (add_new_name_mapping): Do not set need_to_update_vops_p.
25125         (dump_currdefs): Use SYMS_TO_RENAME.
25126         (rewrite_update_stmt): Always walk all uses/defs.
25127         (dump_update_ssa): Adjust.
25128         (init_update_ssa): Take function argument.  Track what we are
25129         initialized for.
25130         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
25131         (create_new_def_for): Initialize for cfun, assert we are initialized
25132         for cfun.
25133         (mark_sym_for_renaming): Simplify.
25134         (mark_set_for_renaming): Do not initialize update-ssa.
25135         (need_ssa_update_p): Simplify.  Take function argument.
25136         (name_mappings_registered_p): Assert we ask for the correct function.
25137         (name_registered_for_update_p): Likewise.
25138         (ssa_names_to_replace): Likewise.
25139         (release_ssa_name_after_update_ssa): Likewise.
25140         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
25141         (dump_decl_set): Do not print a newline.
25142         (debug_decl_set): Do it here.
25143         (dump_update_ssa): And here.
25144         * tree-ssa-loop-im.c (move_computations): Adjust.
25145         (movement_possibility): Likewise.
25146         (determine_max_movement): Likewise.
25147         (gather_mem_refs_stmt): Likewise.
25148         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
25149         or NAME_MEMORY_TAG.
25150         * tree-complex.c (update_all_vops): Remove.
25151         (expand_complex_move): Adjust.
25152         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
25153         Simplify test for memory referencing statement.  Exclude
25154         non-invariant ADDR_EXPRs.
25155         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
25156         * tree-loop-distribution.c (generate_memset_zero): Adjust.
25157         (rdg_flag_uses): Likewise.
25158         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
25159         related code.
25160         (tree_optimize_tail_calls_1): Also split the
25161         edge from the entry block if we have degenerate PHI nodes in
25162         the first basic block.
25163         * tree.c (init_ttree): Remove memory-tag related code.
25164         (tree_code_size): Likewise.
25165         (tree_node_structure): Likewise.
25166         (build7_stat): Re-write to be build6_stat.
25167         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
25168         (SSA_VAR_P): Adjust.
25169         (struct tree_memory_tag): Remove.
25170         (struct tree_memory_partition_tag): Likewise.
25171         (union tree_node): Adjust.
25172         (build7): Re-write to be build6.
25173         * tree-pass.h (pass_reset_cc_flags): Remove.
25174         (TODO_update_address_taken): New flag.
25175         (pass_simple_dse): Remove.
25176         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
25177         * params.h (MAX_ALIASED_VOPS): Remove.
25178         (AVG_ALIASED_VOPS): Likewise.
25179         * omp-low.c (expand_omp_taskreg): Update SSA form.
25180         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
25181         aliases the lhs in a copy stmt.
25182         * tree-ssa-dse.c (struct address_walk_data): Remove.
25183         (memory_ssa_name_same): Likewise.
25184         (memory_address_same): Likewise.
25185         (get_kill_of_stmt_lhs): Likewise.
25186         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
25187         unused stores.  Look through PHI nodes into post-dominated regions.
25188         (dse_optimize_stmt): Simplify.  Properly remove stores.
25189         (tree_ssa_dse): Compute dominators.
25190         (execute_simple_dse): Remove.
25191         (pass_simple_dse): Likewise.
25192         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
25193         gimple_loaded_syms and gimple_stored_syms computation.
25194         * toplev.c (dump_memory_report): Dump alias and pta stats.
25195         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
25196         (vn_reference_eq): Likewise.
25197         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
25198         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
25199         valueize_vuses): Remove.
25200         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
25201         (get_def_ref_stmt_vuse): ... this.
25202         (vn_reference_lookup_2): New function.
25203         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
25204         walking equivalent vuses.  Simplify.
25205         (vn_reference_lookup): Likewise.
25206         (vn_reference_insert): Likewise.
25207         (vn_reference_insert_pieces): Likewise.
25208         (visit_reference_op_call): Simplify.
25209         (visit_reference_op_load): Likewise.
25210         (visit_reference_op_store): Likewise.
25211         (init_scc_vn): Remove shared_lookup_vuses initialization.
25212         (free_scc_vn): Remove shared_lookup_vuses freeing.
25213         (sort_vuses, sort_vuses_heap): Remove.
25214         (get_ref_from_reference_ops): Export.
25215         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
25216         vector with single vuse pointer.
25217         (vn_reference_lookup_pieces, vn_reference_lookup,
25218         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
25219         (shared_vuses_from_stmt): Remove.
25220         (get_ref_from_reference_ops): Declare.
25221         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
25222         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
25223         memory-tag related code.
25224         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
25225         (likely_value): Add comment, skip static-chain of call statements.
25226         (surely_varying_stmt_p): Adjust.
25227         (gimplify_and_update_call_from_tree): Likewise.
25228         (execute_fold_all_builtins): Do not rebuild alias info.
25229         (gimplify_and_update_call_from_tree): Properly update VOPs.
25230         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
25231         (copy_ref_info): Remove memory-tag related code.
25232         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
25233         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
25234         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
25235         computation.
25236         * tree-ssa-dom.c (gimple_p): Remove typedef.
25237         (eliminate_redundant_computations): Adjust.
25238         (record_equivalences_from_stmt): Likewise.
25239         (avail_expr_hash): Likewise.
25240         (avail_expr_eq): Likewise.
25241         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
25242         (stmt_makes_single_load): Likewise.
25243         (stmt_makes_single_store): Likewise.
25244         * tree-ssa-alias.c: Rewrite completely.
25245         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
25246         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
25247         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
25248         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
25249         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
25250         Remove public functions.
25251         (pass_reset_cc_flags): Remove.
25252         (pass_build_alias): Move ...
25253         * tree-ssa-structalias.c (pass_build_alias): ... here.
25254         * tree-ssa-alias.c (may_be_aliased): Move ...
25255         * tree-flow-inline.h (may_be_aliased): ... here.
25256         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
25257         count_uses_and_derefs): Move ...
25258         * gimple.c: ... here.
25259         * gimple.h (count_uses_and_derefs): Declare.
25260         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
25261         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
25262         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
25263         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
25264         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
25265         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
25266         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
25267         New functions.
25268         * tree-dfa.c (refs_may_alias_p): Move ...
25269         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
25270         * tree-ssa-alias.h: New file.
25271         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
25272         (statement_sink_location): Likewise.
25273         * opts.c (decode_options): Do not adjust max-aliased-vops or
25274         avg-aliased-vops values.
25275         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
25276         (TV_CALL_CLOBBER): Likewise.
25277         (TV_FLOW_SENSITIVE): Likewise.
25278         (TV_FLOW_INSENSITIVE): Likewise.
25279         (TV_MEMORY_PARTITIONING): Likewise.
25280         (TV_ALIAS_STMT_WALK): New timevar.
25281         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
25282         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
25283         (get_address_description): Remove memory-tag related code.
25284         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
25285         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
25286         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
25287         and immediate uses in statements.  Document.
25288         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
25289         (dump_symbols): Remove.
25290         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
25291         * alias.c (get_deref_alias_set): New function split out from ...
25292         (get_alias_set): ... here.
25293         * alias.h (get_deref_alias_set): Declare.
25294         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
25295         type parameter.  Remove restrict pointer handling.  Create a
25296         ref-all pointer in case type-based alias sets do not conflict.
25297         (vect_analyze_data_refs): Remove SMT related code.
25298         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
25299         (vectorizable_load): Likewise.
25300         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
25301         (DR_SYMBOL_TAG, DR_VOPS): Remove.
25302         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
25303         Ignore vops and SMTs.
25304         (dr_analyze_alias): Likewise..
25305         (free_data_ref): Likewise.
25306         (create_data_ref): Likewise.
25307         (analyze_all_data_dependences): Likewise.
25308         (get_references_in_stmt): Adjust.
25309         * tree-flow-inline.h (gimple_aliases_computed_p,
25310         gimple_addressable_vars, gimple_call_clobbered_vars,
25311         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
25312         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
25313         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
25314         gimple_mem_ref_stats): Remove.
25315         (gimple_vop): New function.
25316         (op_iter_next_use): Remove vuses and mayuses cases.
25317         (op_iter_next_def): Remove vdefs case.
25318         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
25319         (clear_and_done_ssa_iter): Do not set removed fields.
25320         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
25321         Assert we are not iterating over vuses or vdefs if not also
25322         iterating over uses or defs.
25323         (op_iter_init_use): Likewise.
25324         (op_iter_init_def): Likewise.
25325         (op_iter_next_vdef): Remove.
25326         (op_iter_next_mustdef): Likewise.
25327         (op_iter_init_vdef): Likewise.
25328         (compare_ssa_operands_equal): Likewise.
25329         (link_use_stmts_after): Handle vuse operand.
25330         (is_call_used): Use is_call_clobbered.
25331         (is_call_clobbered): Global variables are always call clobbered,
25332         query the call-clobbers bitmap.
25333         (mark_call_clobbered): Ignore global variables.
25334         (clear_call_clobbered): Likewise.
25335         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
25336         virtual operands sanity check.
25337         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
25338         Remove.
25339         (TARGET_MEM_REF): Remove TMR_TAG operand.
25340         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
25341         Remove call-clobber related code.
25342         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
25343         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
25344         partitions or escape reason.
25345         (get_single_def_stmt, get_single_def_stmt_from_phi,
25346         get_single_def_stmt_with_phi): Remove.
25347         (dump_referenced_vars): Tidy.
25348         (get_ref_base_and_extent): Allow bare decls.
25349         (collect_dfa_stats): Adjust.
25350         * graphite.c (rename_variables_in_stmt): Adjust.
25351         (graphite_copy_stmts_from_block): Likewise.
25352         (translate_clast): Likewise.
25353         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
25354         (EXPR_DIES): New.
25355         (translate_vuse_through_block): Use the oracle.
25356         (phi_translate_1): Adjust.
25357         (value_dies_in_block_x): Use the oracle.  Cache the outcome
25358         in EXPR_DIES.
25359         (valid_in_sets): Check if the VUSE for
25360         a REFERENCE is available.
25361         (eliminate): Do not remove stmts during elimination,
25362         instead queue and remove them afterwards.
25363         (do_pre): Do not rebuild alias info.
25364         (pass_pre): Run TODO_rebuild_alias before PRE.
25365         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
25366         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
25367         (mark_all_v_defs_stmt): Remove.
25368         (mark_all_v_defs_seq): Adjust.
25369         (sra_replace): Likewise.
25370         (scalarize_use): Likewise.
25371         (scalarize_copy): Likewise.
25372         (scalarize_init): Likewise.
25373         (scalarize_ldst): Likewise.
25374         (todoflags): Remove.
25375         (tree_sra): Do not rebuild alias info.
25376         (tree_sra_early): Adjust.
25377         (pass_sra): Run TODO_update_address_taken before SRA.
25378         * tree-predcom.c (set_alias_info): Remove.
25379         (prepare_initializers_chain): Do not call it.
25380         (mark_virtual_ops_for_renaming): Adjust.
25381         (mark_virtual_ops_for_renaming_list): Remove.
25382         (initialize_root_vars): Adjust.
25383         (initialize_root_vars_lm): Likewise.
25384         (prepare_initializers_chain): Likewise.
25385         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
25386         (may_propagate_copy_into_stmt): Likewise.
25387         (merge_alias_info): Do nothing for now.
25388         (propagate_tree_value_into_stmt): Adjust.
25389         (stmt_may_generate_copy): Likewise.
25390         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
25391         not mark symbols for renaming.
25392         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
25393         with the same statement, make sure to update the new pointed-to one.
25394         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
25395         call statements, do not mark symbols for renaming.
25396         (mark_operand_necessary): Dump something.
25397         (ref_may_be_aliased): New function.
25398         (mark_aliased_reaching_defs_necessary_1): New helper function.
25399         (mark_aliased_reaching_defs_necessary): Likewise.
25400         (mark_all_reaching_defs_necessary_1): Likewise.
25401         (mark_all_reaching_defs_necessary): Likewise.
25402         (propagate_necessity): Do not process virtual PHIs.  For
25403         non-aliased loads mark all reaching definitions as necessary.
25404         For aliased loads and stores mark the immediate dominating
25405         aliased clobbers as necessary.
25406         (visited): New global static.
25407         (perform_tree_ssa_dce): Free visited bitmap after propagating
25408         necessity.
25409         (remove_dead_phis): Perform simple dead virtual PHI removal.
25410         (remove_dead_stmt): Properly unlink virtual operands when
25411         removing stores.
25412         (eliminate_unnecessary_stmts): Schedule PHI removal after
25413         stmt removal.
25414         * tree-ssa-ter.c (is_replaceable_p): Adjust.
25415         (process_replaceable): Likewise.
25416         (find_replaceable_in_bb): Likewise.
25417         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
25418         based on the single gimple vop.
25419         (verify_flow_insensitive_alias_info): Remove.
25420         (verify_flow_sensitive_alias_info): Likewise.
25421         (verify_call_clobbering): Likewise.
25422         (verify_memory_partitions): Likewise.
25423         (verify_alias_info): Likewise.
25424         (verify_ssa): Adjust..
25425         (execute_update_addresses_taken): Export.  Update SSA
25426         manually.  Optimize only when optimizing.  Use a local bitmap.
25427         (pass_update_address_taken): Remove TODO_update_ssa, add
25428         TODO_dump_func.
25429         (pass_update_address_taken): Just use TODO_update_address_taken.
25430         (init_tree_ssa): Do not initialize addressable_vars.
25431         (verify_ssa): Verify new VUSE / VDEF properties.
25432         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
25433         Do not call verify_alias_info.
25434         (delete_tree_ssa): Clear the VUSE, VDEF operands.
25435         Do not free the loaded and stored syms bitmaps.  Reset the escaped
25436         and callused solutions.  Do not free addressable_vars.
25437         Remove memory-tag related code.
25438         (warn_uninitialized_var): Aliases are always available.
25439         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
25440         * lambda-code.c (can_put_in_inner_loop): Adjust.
25441         (can_put_after_inner_loop): Likewise.
25442         (perfect_nestify): Likewise.
25443         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
25444         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
25445         (vectorizable_conversion): Do not mark symbols for renaming.
25446         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
25447         (expand_call_inline): Unlink the calls virtual operands before
25448         replacing it.
25449         (tree_function_versioning): Do not call update_ssa if we are not
25450         updating clones.  Simplify.
25451         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
25452         (propagate_with_phi): Likewise..
25453         * tree-outof-ssa.c (create_temp): Remove memory tag and call
25454         clobber code.  Assert we are not aliased or global.
25455         * tree-flow.h: Include tree-ssa-alias.h
25456         (enum escape_type): Remove.
25457         (struct mem_sym_stats_d): Likewise.
25458         (struct mem_ref_stats_d): Likewise.
25459         (struct gimple_df): Add vop member.  Remove global_var,
25460         call_clobbered_vars, call_used_vars, addressable_vars,
25461         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
25462         escaped and callused members.
25463         (struct ptr_info_def): Remove all members, add points-to solution
25464         member pt.
25465         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
25466         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
25467         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
25468         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
25469         (tree-ssa-alias.o): Likewise.
25470         (toplev.o): Add tree-ssa-alias.h
25471         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
25472         * gimple.c (gimple_set_bb): Fix off-by-one error.
25473         (is_gimple_reg): Do not handle memory tags.
25474         (gimple_copy): Also copy virtual operands.
25475         Delay updating the statement.  Do not reset loaded and stored syms.
25476         (gimple_set_stored_syms): Remove.
25477         (gimple_set_loaded_syms): Likewise.
25478         (gimple_call_copy_skip_args): Copy the virtual operands
25479         and mark the new statement modified.
25480         * tree-ssa-structalias.c (may_alias_p): Remove.
25481         (set_uids_in_ptset): Take the alias set to prune with as
25482         parameter.  Fold in the alias test of may_alias_p.
25483         (compute_points_to_sets): Compute whether a ptr is dereferenced
25484         in a local sbitmap.
25485         (process_constraint): Deal with &ANYTHING on the lhs, reject all
25486         other ADDRESSOF constraints on the lhs.
25487         (get_constraint_for_component_ref): Assert that we don't get
25488         ADDRESSOF constraints from the base of the reference.
25489         Properly generate UNKNOWN_OFFSET for DEREF if needed.
25490         (struct variable_info): Remove collapsed_to member.
25491         (get_varinfo_fc): Remove.
25492         (new_var_info): Do not set collapsed_to.
25493         (dump_constraint): Do not follow cycles.
25494         (dump_constraint_graph): Likewise.
25495         (build_pred_graph): Likewise.
25496         (build_succ_graph): Likewise.
25497         (rewrite_constraints): Likewise.
25498         (do_simple_structure_copy): Remove.
25499         (do_rhs_deref_structure_copy): Remove.
25500         (do_lhs_deref_structure_copy): Remove.
25501         (collapse_rest_of_var): Remove.
25502         (do_structure_copy): Re-implement.
25503         (pta_stats): New global variable.
25504         (dump_pta_stats): New function.
25505         (struct constraint_expr): Make offset signed.
25506         (UNKNOWN_OFFSET): Define special value.
25507         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
25508         (solution_set_expand): New helper function split out from ...
25509         (do_sd_constraint): ... here.
25510         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
25511         (do_ds_constraint): Likewise.
25512         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
25513         and CALLUSED = *CALLUSED.
25514         (set_union_with_increment): Make inc argument signed.
25515         (type_safe): Remove.
25516         (get_constraint_for_ptr_offset): Handle unknown and negative
25517         constant offsets.
25518         (first_vi_for_offset): Handle offsets before start.  Bail
25519         out early for offsets beyond the variable extent.
25520         (first_or_preceding_vi_for_offset): New function.
25521         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
25522         Together with ESCAPED = *ESCAPED this properly computes reachability.
25523         (find_what_var_points_to): New function.
25524         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
25525         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
25526         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
25527         pt_solutions_intersect): New functions.
25528         (compute_call_used_vars): Remove.
25529         (compute_may_aliases): New main entry into PTA computation.
25530         * gimple.h (gimple_p): New typedef.
25531         (struct gimple_statement_base): Remove references_memory_p.
25532         (struct gimple_statement_with_memory_ops_base): Remove
25533         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
25534         members.
25535         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
25536         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
25537         gimple_set_references_memory): Remove.
25538         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
25539         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
25540         New functions.
25541         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
25542         (verify_expr): Allow RESULT_DECL.
25543         (gimple_duplicate_bb): Do not copy virtual operands.
25544         (gimple_duplicate_sese_region): Adjust.
25545         (gimple_duplicate_sese_tail): Likewise.
25546         (mark_virtual_ops_in_region): Remove.
25547         (move_sese_region_to_fn): Do not call it.
25548         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
25549         and pass_simple_dse.
25550         (execute_function_todo): Handle TODO_update_address_taken,
25551         call execute_update_addresses_taken for TODO_rebuild_alias.
25552         (execute_todo): Adjust.
25553         (execute_one_pass): Init dump files early.
25554         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
25555         call-clobbered.
25556         (create_general_new_stmt): Clear vops.
25557         * tree-ssa-reassoc.c (get_rank): Adjust.
25558         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
25559         symbols for renaming.
25560         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
25561         (PARAM_AVG_ALIASED_VOPS): Likewise.
25562         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
25563         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
25564         * tree-ssa-operands.c: Simplify for new virtual operand representation.
25565         (operand_build_cmp, copy_virtual_operands,
25566         create_ssa_artificial_load_stmt, add_to_addressable_set,
25567         gimple_add_to_addresses_taken): Remove public functions.
25568         (unlink_stmt_vdef): New function.
25569
25570 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
25571
25572         * config.gcc (powerpc-*-linux*): Merge variants.
25573
25574 2009-04-02  Chao-ying Fu  <fu@mips.com>
25575             James Grosbach  <james.grosbach@microchip.com>
25576
25577         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
25578         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
25579         cop0_sp_offset.
25580         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
25581         keep_interrupts_masked_p, use_debug_exception_return_p.
25582         (mips_attribute_table): Add interrupt, use_shadow_register_set,
25583         keep_interrupts_masked, use_debug_exception_return.
25584         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
25585         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
25586         New functions.
25587         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
25588         (mips_print_operand): Process COP0 registers to print $0 .. $31
25589         correctly for GAS to process.
25590         (mips_interrupt_extra_call_saved_reg_p): New function.
25591         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
25592         extra registers.
25593         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
25594         (mips_compute_frame_info): Add supports for interrupt context that
25595         includes doubleword accumulators and COP0 registers.
25596         (mips_for_each_saved_acc): New function.
25597         (mips_for_each_saved_gpr_and_fpr): Change the function name from
25598         mips_for_each_saved_reg.
25599         (mips_save_reg): Save accumulators.
25600         (mips_kernel_reg_p): A new for_each_rtx callback.
25601         (mips_expand_prologue): Support interrupt handlers.
25602         (mips_restore_reg): Restore accumulators.
25603         (mips_expand_epilogue): Support interrupt handlers.
25604         (mips_can_use_return_insn): Return false for interrupt handlers.
25605         (mips_epilogue_uses): New function.
25606         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
25607         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
25608         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
25609         cop0_move): New instructions.
25610         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
25611         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
25612         defines.
25613         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
25614         New defines.
25615         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
25616         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
25617         interrupt handlers, we use K0 as the temporary register.
25618         (EPILOGUE_USES): Change to a function call.
25619         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
25620         handlers, we use K0 as the temporary register.
25621
25622         * doc/extend.texi (Function Attributes): Document interrupt,
25623         use_shadow_register_set, keep_interrupts_masked,
25624         use_debug_exception_return for MIPS attributes.
25625
25626 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
25627
25628         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
25629         Remove a number of t-files from tmake_file.
25630         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
25631         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
25632         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
25633         target_prototype, not TARGET_PROTOTYPE.
25634         (LINK_OS_GNU_SPEC): Define.
25635         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
25636         and darwin-ldoubdle.c.
25637
25638 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
25639
25640         PR driver/39293
25641         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
25642         (cpp_options): Ditto.
25643         (default_compilers): Ditto.
25644         (display_help): Ditto.
25645         (process_command): Ditto.
25646         (do_spec_1): Ditto.
25647         (set_input): Use lbasename instead of duplicate code.
25648         (save_temps_prefix): New static for -save-temps=obj.
25649         (save_temps_length): Ditto.
25650
25651         * doc/invoke.texi (-save-temps=obj): Document new variant to
25652         -save-temps switch.
25653
25654 2009-04-02  Jeff Law  <law@redhat.com>
25655
25656         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
25657         variable.
25658
25659 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
25660
25661         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
25662         * configure: Regenerated.
25663
25664 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
25665
25666         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
25667         share the argument list.
25668
25669 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
25670
25671         Merge
25672
25673         2009-02-12  Diego Novillo  <dnovillo@google.com>
25674
25675         * varpool.c (debug_varpool): New.
25676         * cgraph.h (debug_varpool): Declare.
25677
25678 2009-04-02  Jan Hubicka  <jh@suse.cz>
25679
25680         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
25681         pass.
25682
25683 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
25684
25685         * config/i386/i386.c (ix86_abi): Move initialization to ...
25686         (override_options): Here.
25687
25688 2009-04-02  Christian Bruel  <christian.bruel@st.com>
25689
25690         * config/sh/sh.c (sh_dwarf_register_span): New function.
25691         (TARGET_DWARF_REGISTER_SPAN): Define.
25692         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
25693
25694 2009-04-02  Ira Rosen  <irar@il.ibm.com>
25695
25696         PR tree-optimization/39595
25697         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
25698         interleaved loads group is not  greater than the SLP group size.
25699
25700 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
25701
25702         * builtins.c (is_builtin_name): New.
25703         (called_as_built_in): Use is_builtin_name.
25704         * tree.h (is_builtin_name): New.
25705         * varasm.c (incorporeal_function_p): Use is_builtin_name
25706
25707 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
25708
25709         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
25710
25711 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
25712
25713         PR c++/26693
25714         * c-decl.c (clone_underlying_type): Move this ...
25715         * c-common.c (set_underlying_type): ... here.
25716         Also, make sure the function properly sets TYPE_STUB_DECL() on
25717         the newly created typedef variant type.
25718         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
25719         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
25720         points.
25721
25722 2009-04-02  Richard Guenther  <rguenther@suse.de>
25723
25724         PR tree-optimization/37221
25725         * tree-flow.h (degenerate_phi_result): Declare.
25726         * tree-ssa-dom.c (degenerate_phi_result): Export.
25727         * tree-scalar-evolution.c (analyze_initial_condition): If
25728         the initial condition is defined by a degenerate PHI node
25729         use the degenerate value.
25730
25731 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
25732
25733         PR rtl-optimization/39588
25734         * combine.c (merge_outer_ops): Do not set the constant when this
25735         is not necessary.
25736         (simplify_shift_const_1): Do not modify it either in this case.
25737
25738 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
25739
25740         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
25741         tuning is deprecated if -mtune value is set to an Itanium1 variant.
25742
25743 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
25744
25745         PR c/29027
25746         * c-lex.c (interpret_float): Default (no suffix) is double.
25747
25748 2009-04-1  Xinliang David Li  <davidxl@google.com>
25749
25750         * config/i386/i386.c (legitimate_constant_p): Recognize
25751         all one vector constant.
25752
25753 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
25754
25755         * config/vax/vax.c: Add #includes to silence warnings.
25756         Change #include order to silence two warnings.
25757
25758 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
25759
25760         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
25761         (ASM_SPEC): Pass -k to the assembler for PIC code.
25762
25763 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
25764
25765         * config.gcc: Add vax-*-linux* to the switch.
25766         * config/vax/linux.h: New file. (TARGET_VERSION,
25767         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
25768
25769 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
25770
25771         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
25772         Use predicate macros instead of GET_CODE() == foo.
25773         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
25774         ashlsi3, rotrsi3, <unnamed>): Likewise.
25775
25776 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
25777
25778         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
25779         jbbccihi, jbbccisi): Remova trailing whitespace.
25780         * config/vax/constraints.md: Likewise.
25781         * config/vax/elf.h (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25782         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
25783         * config/vax/predicates.md: Likewise.
25784         * config/vax/vax.c (print_operand_address, vax_output_int_move,
25785         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
25786         * config/vax/vax.h: Likewise.
25787         * config/vax/vax.md (nonlocal_goto): Likewise.
25788
25789 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
25790
25791         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
25792         (indirectable_address_p, adjacent_operands_p): Add spaces around
25793         braces.
25794         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
25795
25796 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
25797
25798         * config/vax/vax.c (legitimate_constant_address_p,
25799         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
25800         index_term_p, reg_plus_index_p, legitimate_address_p,
25801         vax_mode_dependent_address_p): Update comments to match functions
25802         modified by the recent int->bool conversion.
25803
25804 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
25805
25806         * config/vax/builtins.md: Update copyright message.
25807         * config/vax/constraints.md: Likewise.
25808         * config/vax/netbsd-elf.h: Likewise.
25809         * config/vax/predicates.md: Likewise.
25810         * config/vax/vax-protos.h: Likewise.
25811         * config/vax/vax.c: Likewise.
25812         * config/vax/vax.h: Likewise.
25813         * config/vax/vax.md: Likewise.
25814         * config/vax/vax.opt: Likewise.
25815
25816 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
25817
25818         * config/vax/builtins.md (ffssi2, ffssi2_internal,
25819         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
25820         * config/vax/constraints.md (B, R): Likewise.
25821         * config/vax/predicates.md (external_memory_operand,
25822         nonimmediate_addsub_di_operand): Likewise.
25823         * config/vax/vax.c (vax_output_int_add): Likewise.
25824         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
25825         untyped_call): Likewise.
25826
25827 2009-04-01  Matt Thomas  <matt@3am-software.com>
25828
25829         * config/vax/predicates.md: New file.
25830         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
25831         external_const_operand, nonsymbolic_operand, external_memory_operand,
25832         indirect_memory_operand, indexed_memory_operand,
25833         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
25834         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
25835         predicate.
25836         * config/vax/constraints.md: New file.
25837         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
25838         New constraint.
25839         * config/vax/builtins.md: New file.
25840         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
25841         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
25842         jbbccisi): Define.
25843         * config/vax/vax.opt (mqmath): Add option.
25844         * config/vax/vax.md (isfx): Extend with DI.
25845         (VAXintQH, VAXintQHSD): Define.
25846         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
25847         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
25848         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
25849         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
25850         (movdi): Update constraints and use vax_output_int_move().
25851         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
25852         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
25853         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
25854         nonlocal_goto): New.
25855         (mov<mode>): Extend accepted operand types.
25856         (subdi3_old): Rename from subdi3, change update constraints and use
25857         a new implementation.
25858         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
25859         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
25860         MOVE_RATIO, CLEAR_RATIO): Define.
25861         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
25862         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
25863         (PRINT_OPERAND): Redefine using a function instead of inlined code.
25864         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
25865         (split_quadword_operands): Make static and really allow variable
25866         splitting.
25867         (print_operand_address): Update for PIC generation.
25868         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
25869         indexable_address_p, fixup_mathdi_operand,
25870         vax_expand_addsub_di_operands, adjacent_operands_p): New.
25871         (vax_float_literal, legitimate_constant_p,
25872         indirectable_constant_address_p, index_term_p,
25873         reg_plus_index_p): Return bool instead of int.
25874         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
25875         where needed.
25876         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
25877         generation.
25878         (vax_output_conditional_branch): Indent.
25879         (legitimate_constant_address_p, indirectable_constant_address_p,
25880         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
25881         vax_mode_dependent_address_p): Return bool instead of int, update for
25882         PIC generation.
25883         * config/vax/vax-protos.h (legitimate_constant_address_p,
25884         legitimate_constant_p, legitimate_address_p,
25885         vax_mode_dependent_address_p): Change declaration to bool.
25886         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
25887         vax_expand_addsub_di_operands, vax_output_int_subtract,
25888         vax_output_movmemsi): Declare.
25889         (split_quadword_operands, vax_float_literal): Delete declaration.
25890         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
25891         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
25892         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
25893         ASM_OUTPUT_DWARF_PCREL): Define.
25894         (ASM_SPEC): Change definition to allow PIC generation.
25895
25896 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
25897
25898         * doc/sourcebuild.texi: Update front-end requirements.
25899
25900 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
25901
25902         PR target/39226
25903         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
25904         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
25905         (booldi3_internal3): Use boolean_or_operator instead of
25906         boolean_operator.
25907
25908 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
25909
25910         PR c/39605
25911         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
25912         declarator whose size is not an integer constant expression but
25913         folds to an integer constant, then treat it as a constant
25914         subsequently.
25915
25916 2009-04-01  Richard Guenther  <rguenther@suse.de>
25917
25918         * fold-const.c (fold_plusminus_mult_expr): Do not fold
25919         i * 4 + 2 to (i * 2 + 1) * 2.
25920
25921 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
25922
25923         PR c/37772
25924         * c-parser.c (c_parser_asm_statement): Skip until close paren and
25925         return if c_parser_asm_string_literal returned NULL.
25926
25927 2009-04-01  Nick Clifton  <nickc@redhat.com>
25928
25929         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
25930         already defined.
25931         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
25932         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
25933         other typedefs to avoid conflicts with libgcc2.c.  Define labels
25934         to gain 16-bit bit-manipulation functions from libgcc2.c and then
25935         include it.
25936         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
25937         to gain 16-bit trapping arithmetic functions from libgcc2.c and
25938         then include it.
25939
25940 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
25941
25942         * varasm.c (default_function_rodata_section): Declare DOT as
25943         const char*.
25944
25945 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
25946             Andrey Galkin  <agalkin@hypercom.com>
25947
25948         PR/39492
25949         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
25950         Make object_name unique for each process.
25951
25952 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
25953
25954         PR other/39591
25955         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
25956         addressable variables in the parallel that could go out of scope while
25957         running queued tasks.
25958
25959 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
25960
25961         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
25962         (CASE_VALUES_THRESHOLD): Redefine.
25963         * config/avr/avr.c (avr_override_options): Remove initialization of
25964         avr_case_values_threshold variable.
25965         (avr_case_values_threshold): Remove variable. Add new function.
25966         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
25967         * config/avr/avr.opt (mno-tablejump): Remove option.
25968         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
25969
25970 2009-04-01  DJ Delorie  <dj@redhat.com>
25971
25972         * varasm.c (default_function_rodata_section): Don't assume
25973         anything about where the first '.' in the section name is.
25974
25975 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
25976
25977         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
25978         rs6000_emit_stack_tie.
25979
25980 2009-03-31  Ian Lance Taylor  <iant@google.com>
25981
25982         * tree-eh.c (tree_remove_unreachable_handlers): Compare
25983         gimple_code with GIMPLE_RESX, not RESX.
25984
25985 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
25986
25987         * c-common.c (c_get_ident): New.
25988         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
25989
25990 2009-04-01  Ben Elliston  <bje@au.ibm.com>
25991
25992         * config/rs6000/sysv4.opt (msdata): Improve option description.
25993
25994 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
25995
25996         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
25997         (divdf3_internal_lat): Remove.
25998         (divxf3_internal_lat): Remove.
25999         (divxf3_internal_thr): Remove.
26000         (divxf): Use divxf3_internal.
26001         * config/ia64/div.md (divsf3_internal_lat): New.
26002         (divdf3_internal_lat): New.
26003         (divxf3_internal): New.
26004
26005 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
26006
26007         PR c/448
26008         * Makefile.in (USE_GCC_STDINT): Define.
26009         (stmp-int-hdrs): Install stdint.h if applicable.
26010         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
26011         if known.
26012         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
26013         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
26014         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
26015         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
26016         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
26017         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
26018         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
26019         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
26020         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
26021         (c_common_nodes_and_builtins): Initialize
26022         underlying_wchar_type_node.  Do not initialize
26023         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
26024         nodes for new types.
26025         (c_stddef_cpp_builtins): Define macros for new types.
26026         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
26027         Remove.
26028         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
26029         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
26030         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
26031         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
26032         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
26033         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
26034         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
26035         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
26036         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
26037         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
26038         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
26039         int16_type_node, int32_type_node, int64_type_node,
26040         uint8_type_node, uint16_type_node, c_uint32_type_node,
26041         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
26042         int_least32_type_node, int_least64_type_node,
26043         uint_least8_type_node, uint_least16_type_node,
26044         uint_least32_type_node, uint_least64_type_node,
26045         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
26046         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
26047         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
26048         uintptr_type_node): Define.
26049         * c-cppbuiltin.c (builtin_define_constants,
26050         builtin_define_type_minmax): New.
26051         (builtin_define_stdint_macros): Define more macros.
26052         (c_cpp_builtins): Define more limit macros.
26053         (type_suffix): New.
26054         (builtin_define_type_max): Define in terms of
26055         builtin_define_type_minmax.  Remove is_long parameter.  All
26056         callers changed.
26057         * config.gcc (use_gcc_stdint): Define.
26058         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
26059         Add newlib-stdint.h for generic targets.
26060         * config/glibc-stdint.h, config/newlib-stdint.h,
26061         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
26062         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
26063         * config/score/score.h (UINTPTR_TYPE): Define.
26064         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
26065         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
26066         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
26067         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
26068         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
26069         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
26070         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
26071         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
26072         * config/spu/spu.h (STDINT_LONG32): Define.
26073         * configure.ac (use_gcc_stdint): Substitute.
26074         * configure: Regenerate.
26075         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
26076         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
26077         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
26078         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
26079         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
26080         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
26081         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
26082         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
26083         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
26084         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
26085         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
26086         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
26087         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
26088         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
26089         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
26090         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
26091         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
26092         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
26093         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
26094         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
26095         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
26096         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
26097         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
26098         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
26099         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
26100         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
26101         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
26102         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
26103         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
26104
26105 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
26106
26107         * loop-iv.c (suitable_set_for_replacement): Renamed from
26108         simplify_using_assignment; changed to return bool and to accept new
26109         args DEST and SRC.  Return true iff we find a source/destination pair
26110         that can be used to make a replacement, and fill SRC and DEST if so.
26111         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
26112         changed.
26113         (simplify_using_initial_values): Deal with altered regs here and track
26114         more precisely the effect they have on the validity of our expression.
26115
26116         * loop-iv.c (simplify_using_condition): A condition of the form
26117         (EQ REG CONST) can be used to simply make a substitution.
26118         (simplify_using_initial_values): Keep track of conditions we have seen
26119         and keep using them to simplify new expressions, while applying the
26120         same substitutions to them as to the expression.
26121
26122         * simplify-rtx.c (simplify_relational_operation_1): Simplify
26123         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
26124         GEU/LTU reversed.
26125
26126         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
26127         changed.  Use this when trying to improve the upper bound.
26128         Generate the comparison by using simplify_gen_relational.
26129
26130         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
26131
26132         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
26133         functions.
26134         (simplify_using_assignment, simplify_using_initial_values): Call
26135         replace_in_expr to make replacements.  Call replace_single_def_regs
26136         once on the initial version of the expression.
26137
26138 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26139
26140         PR target/27237
26141         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
26142
26143 2009-03-31  Richard Guenther  <rguenther@suse.de>
26144
26145         PR middle-end/31029
26146         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
26147         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
26148
26149 2009-03-31  Richard Guenther  <rguenther@suse.de>
26150
26151         * tree.h (div_if_zero_remainder): Declare.
26152         * fold-const.c (div_if_zero_remainder): Export.
26153         * tree-ssa-forwprop.c
26154         (forward_propagate_addr_into_variable_array_index): Handle
26155         constant array index addition outside of the variable index.
26156
26157 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
26158
26159         PR target/39592
26160         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
26161         define_splits, floatunssi<mode>2): Require x87 conversions from
26162         DImode to be permitted.
26163
26164 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
26165
26166         PR preprocessor/15638
26167         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
26168
26169 2009-03-31  Richard Guenther  <rguenther@suse.de>
26170
26171         PR middle-end/23401
26172         PR middle-end/27810
26173         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
26174         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
26175         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
26176         a separate statement.
26177         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
26178         (lookup_tmp_var): Likewise.
26179         (is_gimple_formal_tmp_or_call_rhs): Remove.
26180         (is_gimple_reg_or_call_rhs): Rename to ...
26181         (is_gimple_reg_rhs_or_call): ... this.
26182         (is_gimple_mem_or_call_rhs): Rename to ...
26183         (is_gimple_mem_rhs_or_call): ... this.
26184         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
26185         DECL_GIMPLE_REG_P only if is_formal is true.
26186         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
26187         for non-proper post-modify expression gimplification.
26188         (gimplify_self_mod_expr): For post-modify expressions gimplify
26189         the lvalue to a minimal lvalue.
26190         (rhs_predicate_for): Remove formal temp case.
26191         (gimplify_modify_expr_rhs): Likewise.
26192         (gimplify_addr_expr): Use is_gimple_reg.
26193         (gimplify_expr): Remove formal temp cases.
26194         (gimple_regimplify_operands): Likewise.
26195         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
26196         and FILTER_EXPR like constants.
26197         * gimple.c (walk_gimple_op): Fix val_only initialization, use
26198         is_gimple_reg.
26199         (is_gimple_formal_tmp_rhs): Remove.
26200         (is_gimple_reg_rhs): Remove special casing.
26201         (is_gimple_mem_rhs): Fix.
26202         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
26203         (is_gimple_formal_tmp_var): Remove.
26204         (is_gimple_formal_tmp_reg): Likewise.
26205         (is_gimple_min_lval): Allow invariant component ref parts.
26206         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
26207         is_gimple_formal_tmp_reg): Remove declarations.
26208         * tree-cfg.c (verify_expr): Verify that variables with address
26209         taken do not have DECL_GIMPLE_REG_P set.
26210         * tree-mudflap.c (mf_build_check_statement_for): Use
26211         force_gimple_operand instead of gimplify_expr.
26212
26213 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
26214
26215         * modulo-sched.c (sms_schedule_by_order): Pass the actual
26216         schedulable rows to compute_split_row.
26217
26218 2009-03-31  Ben Elliston  <bje@au.ibm.com>
26219
26220         PR target/31635
26221         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
26222         OPT_mvrsave.
26223
26224 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
26225
26226         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
26227         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
26228         * configure: Regenerate.
26229         * config.in: Regenerate.
26230         * config/rs6000/rs6000.opt (mtls-markers): Add.
26231         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
26232         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
26233         (tls_ld_aix, tls_ld_sysv): Likewise.
26234         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
26235         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
26236
26237 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
26238
26239         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
26240
26241 2009-03-30  Jan Hubicka  <jh@suse.cz>
26242
26243         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
26244         out of RESX.
26245         (tree_remove_unreachable_handlers): Cleanup EH predecestor
26246         detection and label handling.
26247
26248 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
26249
26250         * ira-int.h (ira_allocno): Rename left_conflicts_num to
26251         left_conflicts_size.
26252         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
26253         ALLOCNO_LEFT_CONFLICTS_SIZE.
26254
26255         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
26256         remove_allocno_from_bucket_and_push,
26257         allocno_spill_priority_compare, push_allocnos_to_stack,
26258         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
26259         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
26260         (setup_allocno_left_conflicts_num): Ditto.  Rename to
26261         setup_allocno_left_conflicts_size.
26262         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
26263         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
26264         setup_allocno_left_conflicts_size instead of
26265         setup_allocno_left_conflicts_num.
26266
26267         * ira-build.c (ira_create_allocno): Use
26268         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
26269         ALLOCNO_LEFT_CONFLICTS_NUM.
26270
26271 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
26272
26273         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
26274         instead of DF_LR_OUT.
26275
26276         * ira-lives.c (process_bb_node_lives): Ditto.
26277
26278         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
26279         instead of DF_LR_{OUT,IN}.
26280
26281         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
26282
26283         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
26284
26285 2009-03-30  Jan Hubicka  <jh@suse.cz>
26286
26287         * except.c (label_to_region_map): Fix thinko.
26288
26289 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
26290
26291         PR middle-end/38237
26292         * tree.h (tree_find_value): New declaration.
26293         * tree.c (tree_find_value): New function.
26294         * varasm.c (assemble_external): Avoid duplicate entries on lists.
26295
26296 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
26297
26298         PR debug/39563
26299         * c-decl.c (struct c_binding): Add locus field.
26300         (bind): Add locus argument, set locus field from it.
26301         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
26302         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
26303         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
26304         implicitly_declare, undeclared_variable, lookup_label,
26305         declare_label, c_make_fname_decl, c_builtin_function,
26306         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
26307         bind callers.
26308
26309 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
26310
26311         PR target/38781
26312         * config/i386/i386.c (classify_argument): Check total size of
26313         structure.
26314
26315 2009-03-30  Martin Jambor  <mjambor@suse.cz>
26316
26317         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
26318         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
26319         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
26320         respectively.
26321
26322         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
26323         seen_variable_array_ref while also traversing a union.
26324
26325         * tree-inline.c (optimize_inline_calls): Do not call
26326         cgraph_node_remove_callees.
26327         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
26328         (pass_remove_cgraph_callee_edges): New variable.
26329         * passes.c (init_optimization_passes): Add
26330         pass_remove_cgraph_callee_edges after early inlining and before all
26331         late intraprocedural passes.
26332
26333         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
26334
26335 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
26336
26337         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
26338         Fix typos in names.
26339
26340 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
26341
26342         * combine.c (simplify_comparison): Use have_insn_for.
26343         * dojump.c (do_jump): Likewise.
26344
26345 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
26346
26347         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
26348         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
26349         sparc_compare_op0 like sparc_compare_emitted used to be handled.
26350         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
26351         instead of sparc_compare_emitted.
26352         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
26353         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
26354         instead of sparc_compare_emitted.
26355
26356 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
26357
26358         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
26359         enter/exit cfglayout mode.
26360         (pass_partition_block): Require it.
26361         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
26362         (combine_instructions): Track basic blocks instead of labels.
26363         (update_cfg_for_uncondjump): New.
26364         (try_combine): Use it.  Update jumps after rescanning.
26365         (pass_combine): Require PROP_cfglayout.
26366         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
26367
26368 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
26369
26370         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
26371         Provide/destroy PROP_cfglayout respectively.
26372         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
26373         * tree-pass.h (PROP_cfglayout): New.
26374
26375 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
26376
26377         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
26378         fold_convert_const_fixed_from_fixed,
26379         fold_convert_const_fixed_from_int,
26380         fold_convert_const_fixed_from_real, fold_negate_const): Do not
26381         set TREE_CONSTANT_OVERFLOW.
26382         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
26383         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
26384
26385 2009-03-30  Ira Rosen  <irar@il.ibm.com>
26386
26387         * tree-vect-loop-manip.c: New file.
26388         * tree-vectorizer.c: Update documentation and included files.
26389         (vect_loop_location): Make extern.
26390         (rename_use_op): Move to tree-vect-loop-manip.c
26391         (rename_variables_in_bb, rename_variables_in_loop,
26392         slpeel_update_phis_for_duplicate_loop,
26393         slpeel_update_phi_nodes_for_guard1,
26394         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
26395         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
26396         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
26397         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
26398         find_loop_location): Likewise.
26399         (new_stmt_vec_info): Move to tree-vect-stmts.c.
26400         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
26401         get_vectype_for_scalar_type, vect_is_simple_use,
26402         supportable_widening_operation, supportable_narrowing_operation):
26403         Likewise.
26404         (bb_in_loop_p): Move to tree-vect-loop.c.
26405         (new_loop_vec_info, destroy_loop_vec_info,
26406         reduction_code_for_scalar_code, report_vect_op,
26407         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
26408         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
26409         (vect_supportable_dr_alignment): Likewise.
26410         * tree-vectorizer.h (tree-data-ref.h): Include.
26411         (vect_loop_location): Declare.
26412         Reorganize function declarations according to the new file structure.
26413         * tree-vect-loop.c: New file.
26414         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
26415         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
26416         * tree-vect-data-refs.c: New file.
26417         * tree-vect-patterns.c (timevar.h): Don't include.
26418         * tree-vect-stmts.c: New file.
26419         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
26420         tree-vect-slp.c, tree-vect-loop.c.
26421         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
26422         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
26423         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
26424         (tree-vect-analyze.o): Remove.
26425         (tree-vect-transform.o): Likewise.
26426         (tree-vect-data-refs.o): Add rule.
26427         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
26428         tree-vect-slp.o): Likewise.
26429         (tree-vect-patterns.o): Remove redundant dependencies.
26430         (tree-vectorizer.o): Likewise.
26431         * tree-vect-slp.c: New file.
26432
26433 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26434
26435         * optc-gen.awk: Warn if an option flag has multiple different
26436         help strings.
26437
26438 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
26439
26440         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
26441         -floop-block): Document dependences on PPL, CLooG and Graphite.
26442
26443 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
26444
26445         PR rtl-optimization/323
26446         * c-common.c (c_fully_fold, convert_and_check,
26447         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
26448         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
26449         * c-common.def (EXCESS_PRECISION_EXPR): New.
26450         * c-cppbuiltin.c (builtin_define_float_constants): Define
26451         constants with enough digits for long double.
26452         * c-lex.c (interpret_float): Interpret constant with excess
26453         precision where appropriate.
26454         * c-opts.c (c_common_post_options): Set
26455         flag_excess_precision_cmdline.  Give an error for
26456         -fexcess-precision=standard for C++ for processors where the
26457         option is significant.
26458         * c-parser.c (c_parser_conditional_expression): Handle excess
26459         precision in condition.
26460         * c-typeck.c (convert_arguments): Handle arguments with excess
26461         precision.
26462         (build_unary_op): Move excess precision outside operation.
26463         (build_conditional_expr): Likewise.
26464         (build_compound_expr): Likewise.
26465         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
26466         (build_modify_expr): Handle excess precision in RHS.
26467         (convert_for_assignment): Handle excess precision in converted
26468         value.
26469         (digest_init, output_init_element, process_init_element): Handle
26470         excess precision in initializer.
26471         (c_finish_return): Handle excess precision in return value.
26472         (build_binary_op): Handle excess precision in operands and add
26473         excess precision as needed for operation.
26474         * common.opt (-fexcess-precision=): New option.
26475         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
26476         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
26477         For standard excess precision, output explicit conversion to and
26478         truncation from XFmode.
26479         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
26480         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
26481         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
26482         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
26483         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
26484         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
26485         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
26486         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
26487         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
26488         define_splits, sqrt<mode>2): Disable where appropriate for
26489         standard excess precision.
26490         * convert.c (convert_to_real): Do not shorten arithmetic to type
26491         for which excess precision would be used.
26492         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
26493         * doc/invoke.texi (-fexcess-precision=): Document option.
26494         (-mfpmath=): Correct index entry.
26495         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
26496         flag_excess_precision): New.
26497         * langhooks.c (lhd_post_options): Set
26498         flag_excess_precision_cmdline.
26499         * opts.c (common_handle_option): Handle -fexcess-precision=.
26500         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
26501         init_excess_precision): New.
26502         (lang_dependent_init_target): Call init_excess_precision.
26503         * tree.c (excess_precision_type): New.
26504         * tree.h (excess_precision_type): Declare.
26505
26506 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
26507
26508         PR c/35235
26509         * c-typeck.c (build_component_ref): Do not copy qualifiers from
26510         non-lvalue to component.
26511
26512 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
26513
26514         PR preprocessor/34695
26515         * Makefile.in (c-opts.o): Depend on c-tree.h.
26516         * c-common.c: Move down include of diagnostic.h.
26517         (done_lexing, c_cpp_error): New.
26518         * c-common.h (done_lexing): Declare.
26519         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
26520         (parse_in).
26521         * c-opts.c: Include c-tree.h.
26522         (c_common_init_options): Set preprocessor error callback.
26523         (c_common_handle_option): Do not set preprocessor
26524         inhibit_warnings, warnings_are_errors, warn_system_headers,
26525         pedantic_errors or inhibit_warnings flags.
26526         (c_common_post_options): Do not check cpp_errors (parse_in).
26527         (c_common_finish): Do not output dependencies if there were
26528         errors.  Do not check return value of cpp_finish.
26529         * c-ppoutput.c (pp_file_change): Set input_location.
26530         * c-tree.h (c_cpp_error): Declare.
26531         * diagnostic.c (diagnostic_set_info_translated): Also initialize
26532         override_column.
26533         (diagnostic_build_prefix): Check override_column.
26534         * diagnostic.h (diagnostic_info): Add override_column field.
26535         (diagnostic_override_column): Define.
26536
26537 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
26538
26539         * c-common.c (c_expand_expr, c_staticp): Remove.
26540         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
26541         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
26542         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
26543         * c-gimplify.c (gimplify_compound_literal_expr,
26544         optimize_compound_literals_in_ctor): Remove.
26545         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
26546         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
26547         * c-semantics.c (emit_local_var): Remove.
26548
26549         * langhooks-def.h (lhd_expand_expr): Remove.
26550         * langhooks.c (lhd_expand_expr): Remove.
26551         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
26552
26553         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
26554         handling from c-semantics.c; don't call into langhook.
26555         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
26556         * gimplify.c (gimplify_compound_literal_expr,
26557         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
26558         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
26559         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
26560         as was done in c-gimplify.c.
26561         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
26562         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
26563         Move from c-common.h.
26564         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
26565
26566         * tree.c (staticp): Do not call langhook.
26567         * langhooks.c (lhd_staticp): Delete.
26568         * langhooks-def.h (lhd_staticp): Delete prototype.
26569         (LANG_HOOKS_STATICP): Delete.
26570         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
26571
26572         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
26573         instead of DECL_STMTs.
26574
26575 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
26576
26577         PR c/456
26578         PR c/5675
26579         PR c/19976
26580         PR c/29116
26581         PR c/31871
26582         PR c/35198
26583         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
26584         void_type_node.
26585         (fold_call_expr): Return a NOP_EXPR from folding rather than the
26586         contained expression.
26587         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
26588         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
26589         conditional expressions for C.
26590         (decl_constant_value_for_optimization): Move from
26591         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
26592         whether optimizing and that the expression is a VAR_DECL not of
26593         array type instead of doing such checks in the caller.  Do not
26594         check pedantic.  Call gcc_unreachable for C++.
26595         * c-common.def (C_MAYBE_CONST_EXPR): New.
26596         * c-common.h (c_fully_fold, c_save_expr,
26597         decl_constant_value_for_optimization): New prototypes.
26598         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
26599         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
26600         EXPR_INT_CONST_OPERANDS): Define.
26601         * c-convert.c (convert): Strip nops from expression.
26602         * c-decl.c (groktypename): Take extra parameters expr and
26603         expr_const_operands.  Update call to grokdeclarator.
26604         (start_decl): Update call to grokdeclarator.  Add statement for
26605         expressions used in type of decl.
26606         (grokparm): Update call to grokdeclarator.
26607         (push_parm_decl): Update call to grokdeclarator.
26608         (build_compound_literal): Add parameter non_const and build a
26609         C_MAYBE_COSNT_EXPR if applicable.
26610         (grokdeclarator): Take extra parameters expr and
26611         expr_const_operands.  Track expressions used in declaration
26612         specifiers and declarators.  Fold array sizes and track whether
26613         they are constant expressions and whether they are integer
26614         constant expressions.
26615         (parser_xref_tag): Set expr and expr_const_operands fields in
26616         return value.
26617         (grokfield): Update call to grokdeclarator.
26618         (start_function): Update call to grokdeclarator.
26619         (build_null_declspecs): Set expr and expr_const_operands fields in
26620         return value.
26621         (declspecs_add_type): Handle expressions in typeof specifiers.
26622         * c-parser.c (c_parser_declspecs): Set expr and
26623         expr_const_operands fields for declaration specifiers.
26624         (c_parser_enum_specifier): Likewise.
26625         (c_parser_struct_or_union_specifier): Likewise.
26626         (c_parser_typeof_specifier): Likewise.  Update call to
26627         groktypename.  Fold expression as needed.  Return expressions with
26628         type instead of adding statements.
26629         (c_parser_attributes): Update calls to c_parser_expr_list.
26630         (c_parser_statement_after_labels): Fold expression before passing
26631         to objc_build_throw_stmt.
26632         (c_parser_condition): Fold expression.
26633         (c_parser_asm_operands): Fold expression.
26634         (c_parser_conditional_expression): Use c_save_expr.  Update call
26635         to build_conditional_expr.
26636         (c_parser_alignof_expression): Update call to groktypename.
26637         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
26638         original_code.  Fold expression argument of va_arg.  Create
26639         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
26640         argument to va_arg.  Update calls to groktypename.  Fold array
26641         index for offsetof.  Verify that first argument to
26642         __builtin_choose_expr has integer type.
26643         (c_parser_postfix_expression_after_paren_type): Update calls to
26644         groktypename and build_compound_literal.  Handle expressions with
26645         side effects in type name.
26646         (c_parser_postfix_expression_after_primary): Update call to
26647         c_parser_expr_list.  Set original_code for calls to
26648         __builtin_constant_p.
26649         (c_parser_expr_list): Take extra parameter fold_p.  Fold
26650         expressions if requested.
26651         (c_parser_objc_type_name): Update call to groktypename.
26652         (c_parser_objc_synchronized_statement): Fold expression.
26653         (c_parser_objc_receiver): Fold expression.
26654         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
26655         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
26656         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
26657         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
26658         (struct c_typespec): Add elements expr and expr_const_operands.
26659         (struct c_declspecs): Add elements expr and expr_const_operands.
26660         (groktypename, build_conditional_expr, build_compound_literal):
26661         Update prototypes.
26662         (in_late_binary_op): Declare.
26663         * c-typeck.c (note_integer_operands): New function.
26664         (in_late_binary_op): New variable.
26665         (decl_constant_value_for_broken_optimization): Move to c-common.c
26666         and rename to decl_constant_value_for_optimization.
26667         (default_function_array_conversion): Do not strip nops.
26668         (default_conversion): Do not call
26669         decl_constant_value_for_broken_optimization.
26670         (build_array_ref): Do not fold result.
26671         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
26672         result when operand is a VLA.
26673         (c_expr_sizeof_type): Update call to groktypename.  Handle
26674         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
26675         result when operand names a VLA type.
26676         (build_function_call): Update call to build_compound_literal.
26677         Only fold result for calls to __builtin_* functions.  Strip
26678         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
26679         the function designator.
26680         (convert_arguments): Fold arguments.  Update call to
26681         convert_for_assignment.
26682         (build_unary_op): Handle increment and decrement of
26683         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
26684         decrement earlier.  Fold operand of increment and decrement.
26685         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
26686         built for integer operand.  Wrap returns that are INTEGER_CSTs
26687         without being integer constant expressions or that have integer
26688         constant operands without being INTEGER_CSTs.
26689         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
26690         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
26691         result is an integer constant expression or can be used in
26692         unevaluated parts of one and avoid folding and wrap as
26693         appropriate.  Fold operands before possibly doing -Wsign-compare
26694         warnings.
26695         (build_compound_expr): Wrap result for C99 if operands can be used
26696         in integer constant expressions.
26697         (build_c_cast): Update call to digest_init.  Do not ignore
26698         overflow from casting floating-point constants to integers.  Wrap
26699         results that could be confused with integer constant expressions,
26700         null pointer constants or floating-point constants.
26701         (c_cast_expr): Update call to groktypename.  Handle expressions
26702         included in type name.
26703         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
26704         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
26705         Update calls to convert_for_assignment.
26706         (convert_for_assignment): Take new parameter
26707         null_pointer_constant.  Do not strip nops or call
26708         decl_constant_value_for_broken_optimization.  Set
26709         in_late_binary_op for conversions to boolean.
26710         (store_init_value): Update call to digest_init.
26711         (digest_init): Take new parameter null_pointer_constant.  Do not
26712         call decl_constant_value_for_broken_optimization.  pedwarn for
26713         initializers not constant expressions.  Update calls to
26714         convert_for_assignment.
26715         (constructor_nonconst): New.
26716         (struct constructor_stack): Add nonconst element.
26717         (really_start_incremental_init, push_init_level, pop_init_level):
26718         Handle constructor_nonconst and nonconst element.
26719         (set_init_index): Call constant_expression_warning for array
26720         designators.
26721         (output_init_element): Fold value.  Set constructor_nonconst as
26722         applicable.  pedwarn for initializers not constant expressions.
26723         Update call to digest_init.  Call constant_expression_warning
26724         where constant initializers are required.
26725         (process_init_element): Use c_save_expr.
26726         (c_finish_goto_ptr): Fold expression.
26727         (c_finish_return): Fold return value.  Update call to
26728         convert_for_assignment.
26729         (c_start_case): Fold switch expression.
26730         (c_process_expr_stmt): Fold expression.
26731         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
26732         ensure statement expression is not evaluated in constant expression.
26733         (build_binary_op): Track whether results are integer constant
26734         expressions or may occur in such, disable folding and wrap results
26735         as applicable.  Fold operands for -Wsign-compare warnings unless
26736         in_late_binary_op.
26737         (c_objc_common_truthvalue_conversion): Handle results folded to
26738         integer constants that are not integer constant expressions.
26739         * doc/extend.texi: Document when typeof operands are evaluated,
26740         that condition of __builtin_choose_expr is an integer constant
26741         expression, and more about use of __builtin_constant_p in
26742         initializers.
26743
26744 2009-03-29  Richard Guenther  <rguenther@suse.de>
26745
26746         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
26747         propagate addresses of array references.
26748
26749 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
26750
26751         * regmove.c (perhaps_ends_bb_p): Remove.
26752         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
26753         from INSN and check that the main loop stays within that basic block.
26754         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
26755         (regmove_forward_pass): Split out from regmove_optimize.  Use
26756         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
26757         (regmove_backward_pass): Split out from regmove_optimize.  Use
26758         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
26759         (regmove_optimize): Simplify.
26760
26761 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
26762
26763         PR target/39545
26764         * config/i386/i386.c (classify_argument): Ignore flexible array
26765         member in struct and warn ABI change.
26766
26767 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
26768
26769         * config/i386/i386-protos.h (ix86_agi_dependent): New.
26770
26771         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
26772         (ix86_adjust_cost): Updated.
26773
26774 2009-03-29  Jan Hubicka  <jh@suse.cz>
26775
26776         PR middle-end/28850
26777         * tree-pass.h (pass_cleanup_eh): New function.
26778         (remove_unreachable_regions): Break code handling RTL
26779         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
26780         that can not be reached by runtime.
26781         (can_be_reached_by_runtime): New function.
26782         (label_to_region_map): New function.
26783         (num_eh_regions): New function.
26784         (rtl_remove_unreachable_regions): New function.
26785         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
26786         (remove_eh_region): New function.
26787         * except.h: Include sbitmap and vecprim.
26788         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
26789         num_eh_regions): Declare.
26790         * passes.c (init_optimization_passes): Schedule cleanup_eh.
26791         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
26792         * tree-eh.c (tree_remove_unreachable_handlers): New function.
26793         (tree_empty_eh_handler_p): New function.
26794         (cleanup_empty_eh): New function.
26795         (cleanup_eh): New function.
26796         (pass_cleanup_eh): New function.
26797
26798 2009-03-29  Jan Hubicka  <jh@suse.cz>
26799
26800         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
26801         for removed regions.
26802
26803 2009-03-29  Jan Hubicka  <jh@suse.cz>
26804
26805         * except.c (dump_eh_tree): Dump all datastructures.
26806
26807 2009-03-29  Jan Hubicka  <jh@suse.cz>
26808
26809         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
26810         (duplicate_eh_regions_1): Likewise.
26811         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
26812         vector; call EH verification.
26813         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
26814         Be ready for region being removed.
26815
26816 2009-03-29  Jan Hubicka  <jh@suse.cz>
26817
26818         * bitmap.c (bitmap_last_set_bit): New function.
26819         * bitmap.h (bitmap_last_set_bit): Declare.
26820
26821 2009-03-29  David Ayers  <ayers@fsfe.org>
26822
26823         PR objc/27377
26824         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
26825         by calling objc_compare_types and surpress warnings about
26826         incompatible C pointers that are compatible ObjC pointers.
26827
26828 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
26829
26830         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
26831         call initialize_inline_failed.
26832         (initialize_inline_failed): Move it from here ...
26833         * cgraph.c (initialize_inline_failed): ... to here.
26834         (cgraph_create_edge): Call initialize_inline_failed rather than
26835         setting inline_failed directly.
26836
26837 2009-03-29  Ben Elliston  <bje@au.ibm.com>
26838
26839         PR target/32542
26840         * sysv4.opt (msdata): Improve comment.
26841         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
26842         * sysv4.h (SVR4_ASM_SPEC): Likewise.
26843
26844 2009-03-29  Ben Elliston  <bje@au.ibm.com>
26845
26846         PR target/30451
26847         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
26848         load and store attributes.
26849
26850 2009-03-29  Ben Elliston  <bje@au.ibm.com>
26851
26852         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
26853         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
26854         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
26855         * doc/extend.texi (X86 Built-in Functions): Add index entries for
26856         __builtin_infq and __builtin_huge_valq.
26857
26858 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
26859
26860         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
26861         atmega8m1 devices.
26862         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
26863         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
26864
26865 2009-03-28  Xinliang David Li  <davidxl@google.com>
26866
26867         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
26868         (do_dbg_cnt): New function.
26869
26870 2009-03-28  Jan Hubicka  <jh@suse.cz>
26871
26872         Merge from pretty-ipa:
26873
26874         2009-03-27  Jan Hubicka  <jh@suse.cz>
26875
26876         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
26877         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
26878         * passes.c (function_called_by_processed_nodes_p): New.
26879         * ipa-pure-const.c (check_call): Fix handling of operands.
26880         (analyze_function): Dump debug output for skipped bodies.
26881         (local_pure_const): Use function_called_by_processed_nodes_p.
26882         * dwarf2out.c (reference_to_unused): Use output.
26883         * passes.c (do_per_function_toporder): Likewise.
26884
26885         2008-11-12  Jan Hubicka  <jh@suse.cz>
26886
26887         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
26888         * ipa-pure-const.c (funct_state_d): Add can throw field; make
26889         state_set_in_source enum
26890         (check_decl): Ignore memory tags; do not set fake looping flags;
26891         dump diagnostics.
26892         (check_operand, check_tree, check_rhs_var, check_lhs_var,
26893         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
26894         (check_call, analyze_function): Rewrite.
26895         (check_stmt): New.
26896         (add_new_function): Update call of analyze_function.
26897         (generate_summary): Add call of analyze_function.
26898         (propagate): Propagate can_throw; handle state_set_in_source correctly.
26899         (local_pure_const): New function.
26900         (pass_local_pure_const): New pass.
26901         * ipa-inline.c (inline_transform): Set after_inlining.
26902         * tree-eh.c (stmt_can_throw_external): New.
26903         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
26904         work with aliasing built.
26905         * tree-flow.h (stmt_can_throw_external): New.
26906         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
26907         and local pure/const pass in early and late optimization queue.
26908
26909 2009-03-28  Martin Jambor  <mjambor@suse.cz>
26910
26911         * fold-const.c (get_pointer_modulus_and_residue): New parameter
26912         allow_func_align.
26913         (fold_binary): Allow function decl aligment consideration is the
26914         second argument is integer constant one.
26915         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
26916         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
26917         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
26918
26919 2009-03-28  Jan Hubicka  <jh@suse.cz>
26920
26921         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
26922         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
26923         * function.h (rtl_data): Add nothrow flag.
26924         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
26925         set DECL_NOTHROW for AVAILABLE functions.
26926
26927 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
26928
26929         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
26930         following vector keyword has expansion starting with pixel or bool
26931         keyword, expand vector to __vector and pixel or bool to __pixel or
26932         __bool.
26933
26934         PR c++/39554
26935         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
26936         warn_if_disallowed_function_p): Removed.
26937         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
26938         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
26939         warning_if_disallowed_function_p.
26940         * flags.h (warn_if_disallowed_function_p,
26941         warn_disallowed_functions): Removed.
26942         * common.opt (Wdisallowed-function-list=): Removed.
26943         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
26944
26945 2009-03-28  Richard Guenther  <rguenther@suse.de>
26946
26947         PR tree-optimization/38723
26948         * tree-ssa-pre.c (compute_avail): Add all default definitions to
26949         the entry block.
26950
26951 2009-03-28  Jan Hubicka  <jh@suse.cz>
26952
26953         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
26954         test introduced by my previous patch.
26955
26956 2009-03-28  Richard Guenther  <rguenther@suse.de>
26957
26958         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
26959         the PHIs value undefined.
26960
26961 2009-03-28  Jan Hubicka  <jh@suse.cz>
26962
26963         * tree-pass.h (pass_fixup_cfg): New pass.
26964         * ipa-inline.c (inline_transform): Set
26965         always_inline_functions_inlined/after_inlining.
26966         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
26967         (pass_fixup_cfg): New pass.
26968         * passes.c (init_optimization_passes): Add fixup_cfg.
26969
26970 2009-03-28  Richard Guenther  <rguenther@suse.de>
26971
26972         PR tree-optimization/38458
26973         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
26974         argument use the arguments copy-of value.
26975
26976 2009-03-28  Richard Guenther  <rguenther@suse.de>
26977
26978         PR tree-optimization/38180
26979         * tree-ssa-ccp.c (get_default_value): Simplify.
26980         (likely_value): Likewise.
26981         (surely_varying_stmt_p): Properly handle VOP case.
26982         (ccp_initialize): Likewise.
26983         (ccp_fold): Handle propagating through *&.
26984         (fold_const_aggregate_ref): Also handle decls.
26985
26986 2009-03-28  Jan Hubicka  <jh@suse.cz>
26987
26988         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
26989         * cgraph.h (cgraph_node): Likewise.
26990         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
26991         (cgraph_reset_node): Use process flag.
26992         (cgraph_mark_functions_to_output): Likewise.
26993         (cgraph_expand_function): Likewise.
26994         (cgraph_expand_all_functions): Likewise.
26995         (cgraph_output_in_order): Likewise.
26996         * dwarf2out.c (reference_to_unused): Likewise.
26997         * passes.c do_per_function_toporder): Likewise.
26998
26999 2009-03-28  Jan Hubicka  <jh@suse.cz>
27000
27001         Bring from lto-branch:
27002
27003         2008-09-03  Doug Kwan  <dougkwan@google.com>
27004
27005         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
27006         enums instead of reason strings.
27007         * cgraph.c (cgraph_create_edge): Same.
27008         (cgraph_inline_failed_string): New function.
27009         * cgraph.h (cgraph_inline_failed_t): New enum type.
27010         (cgraph_inline_failed_string): New prototype.
27011         (struct cgraph_edge): Change type of INLINED_FAILED from constant
27012         char pointer to cgraph_inline_failed_t.
27013         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
27014         (cgraph_default_inline_p): Ditto.
27015         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
27016         to cgraph_inline_failed_t pointer.
27017         * cif-code.def: New file.
27018         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
27019         reason string.
27020         (cgraph_check_inline_limits): Change type of REASON to pointer to
27021         cgraph_inline_failed_t.  Replace reason strings with enums.
27022         (cgraph_default_inline_p): Ditto.
27023         (cgraph_recursive_inlining_p): Ditto.
27024         (update_caller_keys): Change type of FAILED_REASON to
27025         cgraph_inline_failed_t.
27026         (cgraph_set_inline_failed): Change type of REASON to pointer to
27027         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
27028         convert enums to strings for text output.
27029         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
27030         to be of type cgraph_inline_failed_t.  Replace reason strings with
27031         enums.  Call cgraph_inline_failed_string to covert enums
27032         to strings for text output.
27033         (cgraph_decide_inlining): Replace reason strings with enums.
27034         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
27035         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
27036         for text output.
27037         * tree-inline.c (expand_call_inline): Change type of REASON
27038         to cgraph_inline_failed_t.  Replace reason strings with enums.
27039         Call cgraph_inline_failed_string for text output.
27040         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
27041         (cgraph.o): Ditto.
27042
27043 2009-03-28  Jan Hubicka  <jh@suse.cz>
27044
27045         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
27046         cgraph_clone_node): Remove master clone handling.
27047         (cgraph_is_master_clone, cgraph_master_clone): Remove.
27048         * cgraph.h (master_clone): Remove.
27049         (cgraph_is_master_clone, cgraph_master_clone): Remove.
27050         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
27051         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
27052
27053 2009-03-28  Jan Hubicka  <jh@suse.cz>
27054
27055         * cgraph.c (cgraph_function_body_availability): Functions declared
27056         inline are always safe to assume that it is not going to be replaced.
27057
27058 2009-03-28  Richard Guenther  <rguenther@suse.de>
27059
27060         PR tree-optimization/38513
27061         * tree-ssa-pre.c (eliminate): Remove redundant stores.
27062         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
27063         EXC_PTR_EXPR and FILTER_EXPR.
27064         (get_ref_from_reference_ops): Likewise.
27065
27066 2009-03-28  Richard Guenther  <rguenther@suse.de>
27067
27068         PR tree-optimization/38968
27069         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
27070         Use FLOOR_MOD_EXPR to compute misalignment.
27071
27072 2009-03-28  Richard Guenther  <rguenther@suse.de>
27073
27074         PR tree-optimization/37795
27075         * tree.h (combine_comparisons): Declare.
27076         * fold-const.c (combine_comparisons): Export.
27077         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
27078         comparisons.
27079         (ifcombine_iforif): Use combine_comparisons.
27080
27081 2009-03-28  Jan Hubicka  <jh@suse.cz>
27082
27083         * tree-eh.c (inlinable_call_p): New function.
27084         (make_eh_edges): Use it.
27085         (verify_eh_edges): Use it.
27086         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
27087         * except.c (reachable_next_level): Add inlinable_function argument
27088         (sjlj_find_directly_reachable_regions): Update.
27089         (add_reachable_handler): Do not set saw_any_handlers.
27090         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
27091         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
27092         Add new inlinable call parameter.
27093         (can_throw_internal, can_throw_external): Update.
27094         * except.h (can_throw_internal_1, can_throw_external_1,
27095         foreach_reachable_handler): Update declaration.
27096
27097 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
27098
27099         * config/arm/t-arm-coff, config/h8300/coff.h,
27100         config/i386/i386-aout.h, config/i386/i386-coff.h,
27101         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
27102         config/pdp11/2bsd.h, config/rs6000/aix41.h,
27103         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
27104         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
27105         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
27106         sys-types.h: Remove.
27107         * Makefile.in: Remove protoize and fixproto support and references
27108         in comments.
27109         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
27110         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
27111         Remove.
27112         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
27113         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
27114         unprotoize$(exeext).
27115         (rest.encap): Don't depend on $(STMP_FIXPROTO)
27116         (.PHONY): Don't depend on proto.
27117         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
27118         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
27119         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
27120         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
27121         build/gen-protos.o, build/scan.o, xsys-protos.h,
27122         build/fix-header$(build_exeext), build/fix-header.o,
27123         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
27124         stmp-install-fixproto): Remove.
27125         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
27126         SYSCALLS.c or fixproto files.
27127         (install-common): Don't install protoize.
27128         (install-headers-tar, install-headers-cpio, install-headers-cp):
27129         Don't depend on $(STMP_FIXPROTO).
27130         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
27131         install fixproto files or write out fixproto settings.
27132         (uninstall): Don't uninstall protoize.
27133         * config.gcc (use_fixproto): Remove.
27134         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
27135         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
27136         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
27137         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
27138         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
27139         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
27140         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
27141         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
27142         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
27143         * config/t-vxworks (STMP_FIXPROTO): Remove.
27144         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
27145         STMP_FIXPROTO): Remove.
27146         * config.in, configure: Regenerate.
27147         * crtstuff.c (gid_t, uid_t): Don't undefine.
27148         * doc/install.texi: Change m68k-coff to m68k-elf in example.
27149         (arm-*-coff, arm-*-aout: Remove target entries.
27150         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
27151         Remove mention of AIX 4.1.
27152         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
27153         * doc/invoke.texi (Running Protoize): Remove.
27154         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
27155         (Protoize Caveats): Remove.
27156         * tsystem.h: Update comments on headers assumed to exist.
27157
27158 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
27159
27160         * genautomata.c: Add a new year to the copyright.  Add a new
27161         reference.
27162         (struct insn_reserv_decl): Add comments for member bypass_list.
27163         (find_bypass): Remove.
27164         (insert_bypass): New.
27165         (process_decls): Use insert_bypass.
27166         (output_internal_insn_latency_func): Output all bypasses with the
27167         same input insn in one switch case.
27168
27169         * rtl.def (define_bypass): Describe bypass choice.
27170         * doc/md.texi (define_bypass): Ditto.
27171
27172 2009-03-27  Richard Guenther  <rguenther@suse.de>
27173
27174         * gimplify.c (mark_addressable): Export.
27175         * tree-flow.h (mark_addressable): Declare.
27176         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
27177         * tree-ssa.c (verify_phi_args): Verify that address taken
27178         variables have TREE_ADDRESSABLE set.
27179
27180 2009-03-27  Richard Guenther  <rguenther@suse.de>
27181
27182         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
27183         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
27184         Do not mark decls TREE_ADDRESSABLE.
27185         (build_fold_addr_expr): Adjust.
27186         (fold_addr_expr): Remove.
27187         (fold_unary): Use build_fold_addr_expr.
27188         (fold_comparison): Likewise.
27189         (split_address_to_core_and_offset): Likewise.
27190         * coverage.c (tree_coverage_counter_addr): Mark the array decl
27191         TREE_ADDRESSABLE.
27192         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
27193         (gimplify_modify_expr_to_memcpy): Mark source and destination
27194         addressable.
27195         * omp-low.c (create_omp_child_function): Mark the object decl
27196         TREE_ADDRESSABLE.
27197         (lower_rec_input_clauses): Mark the var we take the address of
27198         TREE_ADDRESSABLE.
27199         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
27200
27201 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27202
27203         PR middle-end/39315
27204         * cfgexpand.c (expand_one_stack_var_at): Change alignment
27205         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
27206
27207 2009-03-27  Richard Guenther  <rguenther@suse.de>
27208
27209         PR tree-optimization/39120
27210         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
27211         constraints.
27212         (handle_lhs_call): Process return constraints.  Add escape
27213         constraints if necessary.
27214         (handle_const_call): Fill out return constraints.  Make nested
27215         case more precise.  Avoid consttmp if possible.
27216         (handle_pure_call): Fill out return constraints.  Avoid
27217         callused if possible.
27218         (find_func_aliases): Simplify call handling.
27219
27220 2009-03-27  Richard Guenther  <rguenther@suse.de>
27221
27222         PR tree-optimization/39120
27223         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
27224         as a representative.
27225         (solve_graph): Do propagate CALLUSED.
27226         (handle_pure_call): Use a scalar constraint from CALLUSED for
27227         the return value.
27228         (find_what_p_points_to): CALLUSED shall not appear in poins-to
27229         solutions.
27230
27231 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27232
27233         PR c/39323
27234         * c-common.c (handle_aligned_attribute): Properly check alignment
27235         overflow.  Use (1U << i) instead of (1 << i).
27236
27237         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
27238
27239         * expr.h (get_mem_align_offset): Updated.
27240
27241         * tree.h (tree_decl_common): Change align to "unsigned int" and
27242         move it before pointer_alias_set.
27243
27244 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27245             Jakub Jelinek  <jakub@redhat.com>
27246
27247         PR target/38034
27248         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
27249         gr_register_operand with gr_reg_or_0_operand.
27250         (cmpxchg_rel_di): Likewise.
27251         (sync_lock_test_and_set<mode>): Likewise.
27252
27253 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27254
27255         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
27256         (true_regnum): Likewise.
27257
27258         * rtlanal.c (subreg_info): Moved to ...
27259         * rtl.h (subreg_info): Here.  New.
27260         (subreg_get_info): New.
27261
27262         * rtlanal.c (subreg_get_info): Make it extern.
27263
27264 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27265
27266         PR target/39472
27267         * config/i386/i386.c (ix86_abi): New.
27268         (override_options): Handle -mabi=.
27269         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
27270         (ix86_call_abi_override): Likewise.
27271         (init_cumulative_args): Likewise.
27272         (function_arg_advance): Likewise.
27273         (function_arg_64): Likewise.
27274         (function_arg): Likewise.
27275         (ix86_pass_by_reference): Likewise.
27276         (ix86_function_value_regno_p): Likewise.
27277         (ix86_build_builtin_va_list_abi): Likewise.
27278         (setup_incoming_varargs_64): Likewise.
27279         (is_va_list_char_pointer): Likewise.
27280         (ix86_init_machine_status): Likewise.
27281         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
27282         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
27283         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
27284         (ix86_function_abi): Make it static and return enum calling_abi.
27285         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
27286         with ix86_abi.
27287         (ix86_fn_abi_va_list): Updated.
27288
27289         * config/i386/i386.h (ix86_abi): New.
27290         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
27291         (CONDITIONAL_REGISTER_USAGE): Likewise.
27292         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
27293         (machine_function): Likewise.
27294
27295         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
27296         with ix86_abi.
27297         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
27298         (STACK_BOUNDARY): Likewise.
27299         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
27300
27301         * config/i386/i386.opt (mabi=): New.
27302
27303         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
27304         return enum calling_abi.
27305         (ix86_function_type_abi): Likewise.
27306         (ix86_function_abi): Removed.
27307
27308         * doc/invoke.texi: Document -mabi= option for x86.
27309
27310 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
27311
27312         * builtins.c (real_dconstp): Delete.
27313         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
27314
27315 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
27316             Jakub Jelinek  <jakub@redhat.com>
27317
27318         PR debug/37959
27319         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
27320         (gen_subprogram_die): When a function is explicit, generate the
27321         DW_AT_explicit attribute.
27322         * langhooks.h (struct lang_hooks_for_decls): Add
27323         function_decl_explicit_p langhook.
27324         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
27325         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
27326
27327 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
27328
27329         * builtins.c (fold_builtin_memory_op): Optimize memmove
27330         into memcpy if we can prove source and destination don't overlap.
27331
27332         * tree-inline.c: Include gt-tree-inline.h.
27333         (clone_fn_id_num): New variable.
27334         (clone_function_name): New function.
27335         (tree_function_versioning): Use it.
27336         * Makefile.in (GTFILES): Add tree-inline.c.
27337
27338 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
27339
27340         * BASE-VER: Change to 4.5.0.
27341
27342 2009-03-27  Xinliang David Li  <davidxl@google.com>
27343
27344         PR tree-optimization/39557
27345         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
27346
27347 2009-03-27  Xinliang David Li  <davidxl@google.com>
27348
27349         PR tree-optimization/39548
27350         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
27351         candidate check.
27352
27353 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27354
27355         * c-common.c (pointer_int_sum): Use %wd on return from
27356         tree_low_cst.
27357
27358 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27359
27360         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
27361         on return from tree_low_cst.
27362
27363 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
27364
27365         PR c++/36799
27366         * ginclude/stdarg.h (va_copy): Define also for
27367         __GXX_EXPERIMENTAL_CXX0X__.
27368
27369 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
27370
27371         PR c++/35652
27372         * builtins.h (c_strlen): Do not warn here.
27373         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
27374         * c-common.c (pointer_int_sum): Take an explicit location.
27375         Warn about offsets out of bounds.
27376         * c-common.h (pointer_int_sum): Adjust declaration.
27377
27378 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27379
27380         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
27381         markup glitch.
27382
27383 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
27384
27385         PR c++/39554
27386         * opts.c (warn_if_disallowed_function_p): Don't assume
27387         get_callee_fndecl must return non-NULL.
27388
27389 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
27390
27391         PR rtl-optimization/39522
27392         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
27393         when reg_reloaded_valid is set.
27394
27395 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27396
27397         * config/spu/divv2df3.c: New file.
27398         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
27399         (DPBIT_FUNCS): Filter out _div_df.
27400
27401 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
27402
27403         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
27404         a jump insn, count that jump in the distance to the loop start.
27405
27406 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
27407
27408         PR target/39523
27409         * config/sh/sh.c (calc_live_regs): Fix condition for global
27410         registers except PIC_OFFSET_TABLE_REGNUM.
27411
27412 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
27413
27414         PR/39518
27415         * doc/invoke.texi (-mconsole): New.
27416         (-mcygwin): New.
27417         (-mno-cygwin): New.
27418         (-mdll): New.
27419         (-mnop-fun-dllimport): New.
27420         (-mthread): New.
27421         (-mwin32): New.
27422         (-mwindows): New.
27423         (sub section "i386 and x86-64 Windows Options"): New.
27424
27425 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
27426
27427         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
27428         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
27429
27430 2009-03-25  Richard Guenther  <rguenther@suse.de>
27431
27432         PR middle-end/39497
27433         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
27434         of -Wno-error.
27435
27436 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
27437
27438         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
27439         neither of haifa/selective schedulers are working.
27440
27441 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27442
27443         * doc/invoke.texi (Debugging Options): Fix description of
27444         -fno-merge-debug-strings.
27445
27446 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
27447
27448         * config/cris/libgcc.ver: New version-script.
27449         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
27450
27451         * configure.ac <GAS features, nop mnemonic>: Add pattern
27452         crisv32-*-* for "nop".
27453         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
27454         * configure: Regenerate.
27455
27456 2009-03-24  Ira Rosen  <irar@il.ibm.com>
27457
27458         PR tree-optimization/39529
27459         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
27460         mark_sym_for_renaming for the tag copied to the new vector
27461         pointer.
27462
27463 2009-03-24  Arthur Loiret  <aloiret@debian.org>
27464
27465         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
27466         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
27467         EXTRA_SPEC_FUNCTIONS.
27468         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
27469         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
27470         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
27471         -march and -mtune options.
27472
27473 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
27474
27475         * config/m68k/t-rtems: Add m5329 multilib.
27476
27477 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
27478             Jakub Jelinek  <jakub@redhat.com>
27479
27480         PR debug/39524
27481         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
27482         nodes.
27483
27484 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
27485
27486         PR c/39495
27487         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
27488         instead of c_parser_expression_conv, if original_code isn't one of the
27489         4 allowed comparison codes, fail.
27490
27491 2009-03-23  Richard Guenther  <rguenther@suse.de>
27492
27493         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
27494         * tree.h (struct tree_type): Likewise.
27495         * reload.h (struct insn_chain): Likewise.
27496         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
27497         * function.h (struct function): Likewise.
27498         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
27499
27500 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
27501
27502         PR tree-optimization/39516
27503         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
27504
27505 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
27506
27507         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
27508         should be set true if BITS_PER_WORD of target is bigger than 32
27509
27510 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
27511
27512         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
27513         Translate -B-options to -rpath-link.  Correct existing
27514         rpath-link and conditionalize on !nostdlib.
27515
27516 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27517
27518         * doc/extend.texi (Function Attributes, Variable Attributes):
27519         Fix typos.
27520         * doc/invoke.texi (Debugging Options, Optimize Options)
27521         (i386 and x86-64 Options, MCore Options): Likewise.
27522
27523 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
27524
27525         PR debug/37890
27526         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
27527         it for block local namespace aliases.
27528         (gen_decl_die): Pass context_die to gen_namespace_die.
27529
27530 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
27531
27532         PR c/39495
27533         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
27534         minimum or maximum value.
27535
27536 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
27537
27538         * reginfo.c (globalize_reg): Recompute derived reg sets.
27539
27540 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
27541
27542         PR target/39063
27543         * libgcc2.c (mprotect): Do not use signed arguments for
27544         VirtualProtect, use DWORD arguments.  Also fix the 'may
27545         be used uninitialized' warning for the np variable.
27546
27547 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
27548
27549         PR target/39496
27550         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
27551         functions using regparm calling conventions when not optimizing.
27552         (ix86_function_sseregparm): Similarly for sseregparm calling
27553         conventions.
27554
27555 2009-03-19  Li Feng  <nemokingdom@gmail.com>
27556
27557         PR middle-end/39500
27558         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
27559         dependence if the first conflict is after niter iterations.
27560
27561 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
27562
27563         PR middle-end/38609
27564         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
27565         functions with dynamic stack-pointer adjustments.
27566
27567 2009-03-19  Ben Elliston  <bje@au.ibm.com>
27568
27569         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
27570         option; change to -msdata=data.
27571
27572 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27573
27574         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
27575         and -fopenmp.
27576
27577 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
27578
27579         PR target/35180
27580         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
27581
27582 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
27583
27584         * doc/invoke.texi (Code Gen Options): Expand discussion of
27585         -fno-common.
27586
27587 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
27588
27589         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
27590         * matrix-reorg.c (struct matrix_info): Likewise.
27591         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
27592         * rtl.h (struct mem_attrs): Likewise.
27593         * df.h (struct df): Likewise.
27594         * tree-data-ref.h (struct data_dependence_relation): Likewise.
27595         * ira-int.h (struct ira_allocno): Likewise.
27596         * df-scan.c (struct df_collection_rec): Likewise.
27597         * ira.c (struct equivalence): Likewise.
27598         * function.c (struct temp_slot): Likewise.
27599         * cfgloop.h (struct loop): Likewise.
27600
27601         PR debug/39485
27602         * function.c (use_register_for_decl): When not optimizing, disregard
27603         register keyword for variables with types containing methods.
27604
27605 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
27606
27607         PR middle-end/39447
27608         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
27609         (is_simple_operand): Call contains_component_ref_p before calling data
27610         reference analysis that would fail on COMPONENT_REFs.
27611
27612         * tree-vrp.c (search_for_addr_array): Fix formatting.
27613
27614 2009-03-18  Richard Guenther  <rguenther@suse.de>
27615
27616         * tree-vect-transform.c (vect_loop_versioning): Fold the
27617         generated comparisons.
27618         * tree-vectorizer.c (set_prologue_iterations): Likewise.
27619         (slpeel_tree_peel_loop_to_edge): Likewise.
27620
27621 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27622
27623         PR middle-end/37805
27624         * opts.c (print_specific_help): In addition to `undocumented',
27625         accept `separate' and `joined' flags if passed alone.  Describe
27626         output by the first matched one of those.
27627         (common_handle_option): Skip over empty strings.
27628         * gcc.c (display_help): Fix help string for `--help='.
27629         * doc/invoke.texi (Option Summary, Overall Options): With
27630         `--help=', classes and qualifiers can both be repeated, but
27631         only the latter can be negated.  One should not pass only
27632         negated qualifiers.  Fix markup and examples.
27633
27634         Revert
27635         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
27636         PR middle-end/37805
27637         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
27638         and -fhelp=separate.
27639
27640 2009-03-17  Jing Yu  <jingyu@google.com>
27641
27642         PR middle-end/39378
27643         * function.h (struct rtl_data): Move is_thunk from here...
27644         (struct function): ...to here.
27645         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
27646         * varasm.c (assemble_start_function): Change is_thunk from crtl to
27647         cfun.
27648         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
27649         cfun.
27650         (alpha_does_function_need_gp, alpha_start_function): Likewise.
27651         (alpha_output_function_end_prologue): Likewise.
27652         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
27653         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
27654         (rs6000_output_function_epilogue): Likewise.
27655         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
27656
27657 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
27658
27659         PR target/39482
27660         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
27661         from different units in a single alternative.
27662         (*truncdfsf_i387): Ditto.
27663         (*truncxfsf2_mixed): Ditto.
27664         (*truncxfdf2_mixed): Ditto.
27665
27666 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
27667
27668         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
27669         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
27670
27671         PR debug/39474
27672         * tree-ssa-live.c (remove_unused_locals): Don't remove local
27673         unused non-artificial variables when not optimizing.
27674
27675         PR debug/39471
27676         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
27677         DW_TAG_imported_module even if decl is IMPORTED_DECL with
27678         NAMESPACE_DECL in its DECL_INITIAL.
27679
27680         PR middle-end/39443
27681         * optabs.c (set_user_assembler_libfunc): New function.
27682         * expr.h (set_user_assembler_libfunc): New prototype.
27683         * c-common.c: Include libfuncs.h.
27684         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
27685         for memcmp, memset, memcpy, memmove and abort.
27686         * Makefile.in (c-common.o): Depend on libfuncs.h.
27687
27688         PR debug/39412
27689         * dwarf2out.c (gen_inlined_enumeration_type_die,
27690         gen_inlined_structure_type_die, gen_inlined_union_type_die,
27691         gen_tagged_type_instantiation_die): Removed.
27692         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
27693         do nothing.
27694
27695 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
27696
27697         PR testsuite/38526
27698         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
27699         its use.
27700         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
27701         (check-parallel-%): Ditto.
27702         (check-consistency): Ditto.
27703
27704 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
27705
27706         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
27707         local variable rhs by NULL_TREE.
27708
27709 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
27710
27711         PR target/39477
27712         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
27713
27714 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
27715
27716         PR target/39476
27717         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
27718
27719 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
27720
27721         PR target/39473
27722         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
27723         for ms->sysv ABI calls only in 64bit mode.
27724
27725         * config/i386/i386.md (untyped_call): Support 32bit.
27726
27727 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
27728
27729         * doc/extend.texi: Replace x86_65 with x86_64.
27730
27731 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
27732
27733         PR tree-optimization/39455
27734         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
27735         mismatches for POINTER_TYPE_P (type).
27736         (number_of_iterations_le): Likewise.
27737
27738 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
27739
27740         * config/picochip/picochip.c: Removed profiling support.
27741         * config/picochip/picochip.md: Removed profiling instruction.
27742         * config/picochip/picochip.h: Removed profiling builtin.
27743
27744 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
27745
27746         * doc/install.texi (--with-host-libstdcxx): Document.
27747
27748 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
27749
27750         PR target/34299
27751         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
27752         generate a warning if the function name does not begin with
27753         "__vector" and the function has either the 'signal' or 'interrupt'
27754         attribute, from here to ...
27755         (avr_declare_function_name): ...here. New function.
27756         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
27757         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
27758
27759 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
27760
27761         PR bootstrap/39454
27762         * cse.c (fold_rtx): Don't modify original const_arg1 when
27763         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
27764         separate variable instead.
27765         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
27766         from out of range shift counts.
27767         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
27768
27769 2009-03-13  Catherine Moore  <clm@codesourcery.com>
27770
27771         * config/i386/x-mingw32 (host-mingw32.o): Replace
27772         diagnostic.h with $(DIAGNOSTIC_H).
27773
27774 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
27775
27776         PR target/39431
27777         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
27778         predicate.
27779         * config/i386/sync.md (sync_compare_and_swap<mode>,
27780         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
27781         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
27782         into a register.
27783         (sync_double_compare_and_swapdi_pic,
27784         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
27785         cmpxchg8b_pic_memory_operand instead of just memory_operand.
27786
27787 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
27788
27789         PR target/39445
27790         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
27791
27792 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
27793
27794         PR target/39327
27795         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
27796         (avx_addsubv4df3): Likewise.
27797         (*avx_addsubv4sf3): Likewise.
27798         (sse3_addsubv4sf3): Likewise.
27799
27800 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
27801
27802         PR target/38824
27803         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
27804
27805 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
27806
27807         PR debug/39432
27808         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
27809         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
27810         registers for allocnos created from user-defined variables.
27811
27812 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27813
27814         PR target/39181
27815         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
27816         of non-integer mode as well.
27817
27818 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
27819
27820         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
27821         for functions for which the parameter types are unknown.
27822
27823 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
27824
27825         PR target/39137
27826         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
27827         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
27828         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
27829         * config/i386/i386.c (ix86_local_alignment): For
27830         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
27831         long long variables on the stack to avoid dynamic realignment.
27832         Allow the first argument to be a decl rather than type.
27833         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
27834
27835 2009-03-11  Nick Clifton  <nickc@redhat.com>
27836
27837         PR target/5362
27838         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
27839         options.
27840         Add description to mno-lsim option.
27841         * config/mcore/mcore.h: Remove comment about deprecated m4align
27842         option.
27843         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
27844         * doc/invoke.texi: Add description of mno-lsim and
27845         mstack-increment options.
27846
27847         * config/fr30/fr30.opt: Document the -mno-lsim option.
27848         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
27849         and -mno-lsim options.
27850
27851 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27852
27853         * fold-const.c (fold_comparison): Only call fold_inf_compare
27854         if the mode supports infinities.
27855
27856 2009-03-11  Jason Merrill  <jason@redhat.com>
27857
27858         PR debug/39086
27859         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
27860         end already did.  Notice GIMPLE_CALL modifications of the result.
27861         Don't copy debug information from an ignored decl or a decl from
27862         another function.
27863
27864 2009-03-10  Richard Guenther  <rguenther@suse.de>
27865             Nathan Froyd  <froydnj@codesourcery.com>
27866
27867         PR middle-end/37850
27868         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
27869         (__divMODE3): Likewise.
27870
27871 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
27872
27873         PR tree-optimization/39394
27874         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
27875         DECL_SIZE_UNIT of variable length FIELD_DECLs.
27876
27877 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27878
27879         * recog.c (verfiy_changes): Disallow renaming of hard regs in
27880         inline asms for register asm ("") declarations.
27881
27882 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
27883
27884         * fold-const.c (fold_unary): Fix comment.
27885
27886 2009-03-07  Jan Hubicka  <jh@suse.cz>
27887
27888         PR target/39361
27889         * tree-inline.c (setup_one_parameter): Do replacement of const
27890         argument by constant in SSA form.
27891
27892 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27893
27894         PR middle-end/38028
27895         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
27896         determine alignment passed to assign_stack_local.
27897         (assign_parms_unsplit_complex): Likewise.
27898         * except.c (sjlj_build_landing_pads): Likewise.
27899
27900 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
27901
27902         PR middle-end/39360
27903         * tree-flow.h (add_referenced_var): Return bool instead of void.
27904         * tree-dfa.c (add_referenced_var): Return result of
27905         referenced_var_check_and_insert call.
27906         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
27907         of referenced_var_check_and_insert.
27908
27909         PR debug/39372
27910         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
27911         (gen_variable_die): Emit DW_AT_location on abstract static variable's
27912         DIE, don't emit it if abstract origin already has it.
27913         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
27914         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
27915
27916 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27917
27918         * genpreds.c (needs_variable): Fix parentheses at variable name
27919         detection.
27920         (write_tm_constrs_h): Indent generated code.
27921
27922 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27923
27924         * doc/extend.texi (Function Attributes): Add documentation
27925         for isr attributes.
27926
27927 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
27928
27929         PR debug/39387
27930         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
27931         take locus from its DECL_SOURCE_LOCATION instead of input_location.
27932
27933 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
27934
27935         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
27936         the loop as bad.
27937
27938 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
27939
27940         PR debug/39379
27941         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
27942         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
27943
27944 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
27945
27946         * config/i386/i386.md (R8_REG, R9_REG): New constants.
27947         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
27948         constants instead of magic numbers.
27949         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
27950         (QI_REG_P): Ditto.
27951         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
27952         (x86_64_ms_abi_int_parameter_registers): Ditto.
27953         (x86_64_int_return_registers): Ditto.
27954         (ix86_maybe_switch_abi): Ditto.
27955         (ix86_expand_call): Ditto for clobbered_registers array.
27956         (ix86_hard_regno_mode_ok): Ditto.
27957         (x86_extended_QIreg_mentioned_p): Ditto.
27958
27959 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
27960
27961         PR tree-optimization/39349
27962         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
27963
27964         * combine.c (gen_lowpart_for_combine): Use omode when generating
27965         clobber.
27966
27967 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
27968
27969         PR rtl-optimization/39235
27970         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
27971
27972 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
27973
27974         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
27975
27976 2009-03-04  Richard Guenther  <rguenther@suse.de>
27977
27978         PR tree-optimization/39362
27979         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
27980         that occur in abnormal PHIs should be varying.
27981
27982 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
27983
27984         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
27985         Extend comments.
27986         (simple_iv):  Take loop as an argument instead of statement.
27987         * tree-scalar-evolution.h (simple_iv): Declaration changed.
27988         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
27989         to simple_iv.
27990         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
27991         Ditto.
27992         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
27993         * matrix-reorg.c (analyze_transpose): Ditto.
27994         * tree-data-ref.c (dr_analyze_innermost): Ditto.
27995         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
27996         * tree-predcom.c (ref_at_iteration): Ditto.
27997         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
27998
27999 2009-03-04  Richard Guenther  <rguenther@suse.de>
28000
28001         PR tree-optimization/39358
28002         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
28003         escaped_id and callused_id.
28004         (solve_graph): Likewise.
28005
28006 2009-03-04  Richard Guenther  <rguenther@suse.de>
28007
28008         PR tree-optimization/39339
28009         * tree-sra.c (try_instantiate_multiple_fields): Make it
28010         no longer ICE on the above.
28011
28012 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
28013
28014         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
28015         that fits within Pmode.
28016
28017 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
28018
28019         PR middle-end/10109
28020         * tm.texi (LIBCALL_VALUE): Update description.
28021
28022 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
28023
28024         PR middle-end/34443
28025         * doc/extend.texi (section): Update description.
28026
28027 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
28028
28029         PR middle-end/39345
28030         * tree-inline.c (remapped_type): New.
28031         (can_be_nonlocal): Call remapped_type instead of remap_type.
28032
28033 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
28034
28035         PR fortran/39354
28036         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
28037         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
28038
28039 2009-03-03  Richard Guenther  <rguenther@suse.de>
28040
28041         PR middle-end/39272
28042         * tree.c (tree_nonartificial_location): New function.
28043         * tree.h (tree_nonartificial_location): Declare.
28044         * builtins.c (expand_builtin_memory_chk): Provide location
28045         of the call location for artificial function pieces.
28046         (maybe_emit_chk_warning): Likewise.
28047         (maybe_emit_sprintf_chk_warning): Likewise.
28048         (maybe_emit_free_warning): Likewise.
28049         * expr.c (expand_expr_real_1): Likewise.
28050
28051 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
28052
28053         PR tree-optimization/39343
28054         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
28055         COMPONENT_REF t has ARRAY_TYPE.
28056
28057 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
28058
28059         PR middle-end/39335
28060         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
28061         when the type precision of the induction variable should be
28062         larger than the type precision of nit.
28063         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
28064         * graphite.c (graphite_loop_normal_form): Same.
28065         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
28066
28067 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
28068
28069         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
28070         (*call_1_rex64_ms_sysv): Use named constants instead of magic
28071         numbers to describe clobbered registers.
28072         (*call_value_0_rex64_ms_sysv): Ditto.
28073         * config/i386/mmx.md (mmx_emms): Ditto.
28074         (mmx_femms): Ditto.
28075
28076 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
28077
28078         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
28079         of ABI_64.
28080
28081 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28082
28083         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
28084         (spu_section_type_flags): New function.
28085
28086 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
28087
28088         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
28089         reg_class_contents of FLOAT_REGS into a temporary.
28090
28091 2009-03-02  Richard Guenther  <rguenther@suse.de>
28092             Ira Rosen  <irar@il.ibm.com>
28093
28094         PR tree-optimization/39318
28095         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
28096         information to the vectorized statement.
28097
28098 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
28099
28100         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
28101         variable.  Use defined names instead of magic constants for REX SSE
28102         registers.
28103
28104 2009-03-01  Richard Guenther  <rguenther@suse.de>
28105
28106         PR tree-optimization/39331
28107         * omp-low.c (lower_send_shared_vars): Do not receive new
28108         values for the reference of DECL_BY_REFERENCE parms or results.
28109
28110 2009-03-01  Jan Hubicka  <jh@suse.cz>
28111
28112         PR debug/39267
28113         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
28114         BLOCK_NONLOCALIZED_VAR): New macros.
28115         (tree_block): Add nonlocalized_vars.
28116         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
28117         gen_decl_die): Add origin argument.  Allow generation of die with
28118         origin at hand only.
28119         (gen_member_die, gen_type_die_with_usage, force_decl_die,
28120         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
28121         of gen_*.
28122         (gen_block_die): Fix checking for unused blocks.
28123         (process_scope_var): Break out from .... ; work with origins only.
28124         (decls_for_scope) ... here; process nonlocalized list.
28125         (dwarf2out_ignore_block): Look for nonlocalized vars.
28126         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
28127         vars.
28128         (dump_scope_block): Dump them.
28129         * tree-inline.c (remap_decls): Handle nonlocalized vars.
28130         (remap_block): Likewise.
28131         (can_be_nonlocal): New predicate.
28132         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
28133
28134 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28135
28136         * configure: Regenerate.
28137
28138 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28139
28140         * optc-gen.awk: No need to duplicate option flags twice.
28141         Reuse help texts for duplicate options which do not have any.
28142
28143         * gcc.c (display_help): Document --version.
28144
28145         * gcc.c (main): If print_help_list and verbose_flag, ensure
28146         driver output comes before subprocess output.
28147
28148         * optc-gen.awk: Assign all remaining fields to help string,
28149         space-separated, for multi-line help in *.opt.
28150
28151         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
28152         -Wno-pedantic-ms-format is for MinGW targets only.
28153
28154         * doc/options.texi (Option file format): Fix bad indentation,
28155         restoring dropped sentence.
28156
28157 2009-02-28  Jan Hubicka  <jh@suse.cz>
28158
28159         * tree-inline.c (tree_function_versioning): Output debug info.
28160
28161 2009-02-28  Jan Hubicka  <jh@suse.cz>
28162
28163         PR debug/39267
28164         * tree-inline.c (setup_one_parameter): Do not copy propagate
28165         arguments when not optimizing.
28166
28167 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
28168
28169         PR target/39327
28170         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
28171         (avx_addsubv4df3): Likewise.
28172         (*avx_addsubv4sf3): Likewise.
28173         (sse3_addsubv4sf3): Likewise.
28174         (*avx_addsubv2df3): Likewise.
28175         (sse3_addsubv2df3): Likewise.
28176         (avx_unpckhps256): Correct item selectors.
28177         (avx_unpcklps256): Likewise.
28178         (avx_unpckhpd256): Likewise.
28179         (avx_unpcklpd256): Likewise.
28180
28181 2009-02-28  Jan Hubicka  <jh@suse.cz>
28182
28183         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
28184         static vars.
28185         (copy_arguments_for_versioning): If var is declared don't declare it.
28186         (tree_function_versioning): First setup substitutions and then copy
28187         args.
28188
28189 2009-02-27  Jan Hubicka  <jh@suse.cz>
28190
28191         PR debug/39267
28192         * cgraph.h (varpool_output_debug_info): Remove.
28193         * cgraphunit.c (varpool_output_debug_info): Remove.
28194         * dwarf2out.c (deferred_locations_struct): New struct
28195         (deferred_locations): New type.
28196         (deferred_locations_list): New static var.
28197         (deffer_location): New function.
28198         (gen_variable_die): Use it.
28199         (decls_for_scope): Output info on local static vars.
28200         (dwarf2out_finish): Process deferred locations.
28201         * varpool.c (varpool_output_debug_info): Remove.
28202
28203 2009-02-27  Jan Hubicka  <jh@suse.cz>
28204
28205         PR debug/39267
28206         * tree.h (TREE_PROTECTED): Fix comment.
28207         (BLOCK_HANDLER_BLOCK): Remove.
28208         (struct tree_block): Remove handler_block add body_block.
28209         (inlined_function_outer_scope_p): New.
28210         (is_body_block): Remove.
28211         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
28212         * dwarf2out.c (is_inlined_entry_point): Remove.
28213         (add_high_low_attributes): Use inlined_function_outer_scope_p.
28214         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
28215         code.
28216         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
28217         * gimplify.c (gimplify_expr): Gimplify body blocks.
28218         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
28219         block with multiple subblocks.
28220         (dump_scope_block): Prettier output; dump more flags and info.
28221         (dump_scope_blocks): New.
28222         (remove_unused_locals): Use dump_scope_blocks.
28223         * tree-flow.h (dump_scope_blocks): Declare.
28224         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
28225         * stmt.c (is_body_block): Remove.
28226         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
28227         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
28228
28229 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
28230
28231         PR middle-end/39308
28232         * graphite.c (graphite_loop_normal_form): Do not call
28233         number_of_iterations_exit from a gcc_assert.
28234
28235 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28236
28237         * config/s390/s390.c (s390_swap_cmp): Look for conditional
28238         jumps if COND is NULL.
28239         (find_cond_jump): New function.
28240         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
28241         * config/s390/s390.md: Remove z10_cobra attribute value.
28242
28243 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
28244
28245         * config/alpha/alpha.h (alpha_expand_mov): Return false if
28246         force_const_mem returns NULL_RTX.
28247
28248 2009-02-26  Jan Hubicka  <jh@suse.cz>
28249
28250         PR debug/39267
28251         * cgraph.h (varpool_output_debug_info): Remove.
28252         * cgraphunit.c (varpool_output_debug_info): Remove.
28253         * dwarf2out.c (deferred_locations_struct): New struct
28254         (deferred_locations): New type.
28255         (deferred_locations_list): New static var.
28256         (deffer_location): New function.
28257         (gen_variable_die): Use it.
28258         (decls_for_scope): Output info on local static vars.
28259         (dwarf2out_finish): Process deferred locations.
28260         * varpool.c (varpool_output_debug_info): Remove.
28261
28262 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
28263
28264         PR rtl-optimization/39241
28265         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
28266         to subreg_offset_representable_p.
28267
28268 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
28269
28270         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
28271         execute function prototype.  Get f and nregs from max_reg_num
28272         and get_insns.  Remove the first backward pass as it's dead,
28273         guard the forward pass by flag_expensive_optimizations.
28274         (rest_of_handle_regmove): Delete.
28275         (pass_regmove): Replace it with regmove_optimize.
28276
28277 2009-02-25  Martin Jambor  <mjambor@suse.cz>
28278
28279         PR tree-optimization/39259
28280         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
28281         calls_alloca function flags.
28282         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
28283         calls are detected.
28284
28285 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
28286
28287         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
28288         flags_set_1_rtx, flags_set_1_set): Delete.
28289         (regmove_optimize): Do not call mark_flags_life_zones.
28290
28291 2009-02-24  Julian Brown  <julian@codesourcery.com>
28292
28293         PR target/35965
28294         * config/arm/arm.c (require_pic_register): Only set
28295         cfun->machine->pic_reg once per function.
28296
28297 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
28298
28299         * doc/invoke.texi (Link Options): Document an easier way to pass
28300         options that take arguments to the GNU linker using -Xlinker and -Wl.
28301
28302 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
28303
28304         PR target/33785
28305         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
28306
28307 2009-02-24  Richard Guenther  <rguenther@suse.de>
28308
28309         PR debug/39285
28310         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
28311
28312 2009-02-24  Richard Guenther  <rguenther@suse.de>
28313             Zdenek Dvorak  <ook@ucw.cz>
28314
28315         PR tree-optimization/39233
28316         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
28317         from converting them to a generic type.
28318
28319 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
28320
28321         PR tree-optimization/39260
28322         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
28323         contains a condition with a real type.
28324         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
28325
28326 2009-02-23  Jason Merrill  <jason@redhat.com>
28327
28328         PR c++/38880
28329         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
28330         narrowing_initializer_constant_valid_p.
28331         (narrowing_initializer_constant_valid_p): Don't return
28332         null_pointer_node for adding a pointer to itself.
28333
28334 2009-02-23  Jan Hubicka  <jh@suse.cz>
28335
28336         PR c/12245
28337         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
28338         resizing.
28339
28340 2009-02-23  Jan Hubicka  <jh@suse.cz>
28341
28342         PR tree-optimization/37709
28343         * tree.c (block_ultimate_origin): Move here from dwarf2out.
28344         * tree.h (block_ultimate_origin): Declare.
28345         * dwarf2out.c (block_ultimate_origin): Move to tree.c
28346         * tree-ssa-live.c (remove_unused_scope_block_p):
28347         Eliminate blocks containig no instructions nor live variables nor
28348         nested blocks.
28349         (dump_scope_block): New function.
28350         (remove_unused_locals): Enable removal of dead blocks by default;
28351         enable dumping at TDF_DETAILS.
28352
28353 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
28354
28355         * config/i386/i386.c (classify_argument): Don't allow COImode
28356         and OImode.
28357         (function_arg_advance_32): Don't allow OImode.
28358         (function_arg_32): Likewise.
28359         (function_value_32): Likewise.
28360         (return_in_memory_32): Likewise.
28361         (function_arg_64): Remove OImode comment.
28362
28363 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
28364
28365         PR target/39261
28366         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
28367         ix86_expand_vector_set for V4DImode in 64bit mode only.
28368         (ix86_expand_vector_init_one_var): Likewise.
28369
28370 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
28371
28372         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
28373
28374 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
28375
28376         PR bootstrap/39257
28377         * loop-iv.c: Revert last change.
28378         * emit-rtl.c: Likewise.
28379
28380 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
28381
28382         PR target/39256
28383         * config/i386/i386.c (type_natural_mode): Remove an extra
28384         space in the warning message.
28385         (function_value_32): Handle 32-byte vector modes.
28386         (return_in_memory_32): Likewise.
28387
28388 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
28389
28390         * loop-iv.c (truncate_value): New function.
28391         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
28392         of lowpart_subreg.
28393         (lowpart_subreg): Move to...
28394         * emit-rtl.c: ...here.
28395
28396 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
28397
28398         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
28399         accidental and undocumented change at revision 140860.
28400
28401 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
28402
28403         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
28404         take gimple_seq * arguments.
28405         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
28406         types_compatible_p langhook.
28407
28408 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
28409             Joseph Myers  <joseph@codesourcery.com>
28410
28411         * config/arm/arm.c (arm_builtin_va_list): New function.
28412         (arm_expand_builtin_va_start): Likewise.
28413         (arm_gimplify_va_arg_expr): Likewise.
28414         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
28415         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
28416         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
28417         (va_list_type): New variable.
28418         (arm_mangle_type): Mangle va_list_type appropriately.
28419
28420 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
28421
28422         PR middle-end/39157
28423         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
28424         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
28425         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
28426         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
28427         parameter to 1000 for -O1 by default.
28428         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
28429         parameter.
28430         * loop-invariant.c: Include params.h.
28431         (move_loop_invariants): Don't call move_single_loop_invariants on
28432         very large loops.
28433
28434 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
28435
28436         * calls.c (emit_library_call_value_1): Use slot_offset instead of
28437         offset when calculating bounds for indexing stack_usage_map.  Fixes
28438         a buffer overflow with certain target setups.
28439
28440 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
28441
28442         PR target/39240
28443         * calls.c (expand_call): Clear try_tail_call if caller and callee
28444         disagree in promotion of function return value.
28445
28446 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
28447
28448         PR target/39175
28449         * c-common.c (c_determine_visibility): If visibility changed and
28450         DECL_RTL has been already set, call make_decl_rtl to update symbol
28451         flags.
28452
28453 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
28454
28455         PR c++/39188
28456         * varasm.c (assemble_variable): Don't check DECL_NAME when
28457         globalizing a variable.
28458
28459 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
28460
28461         PR c/38483
28462         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
28463         expression before any __builtin_trap call.
28464         * c-typeck.c (build_function_call): Convert and check function
28465         arguments before generating a call to a trap.  Evaluate the
28466         function arguments before the trap.
28467
28468 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
28469
28470         PR target/39228
28471         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
28472         (UNSPEC_FXAM_MEM): New unspec.
28473         (fxam<mode>2_i387_with_temp): New insn and split pattern.
28474         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
28475         memory using fxam<mode>2_i387_with_temp to remove excess precision.
28476
28477 2009-02-19  Richard Guenther  <rguenther@suse.de>
28478
28479         PR tree-optimization/39207
28480         PR tree-optimization/39074
28481         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
28482         storedanything_tree): New.
28483         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
28484         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
28485         (build_succ_graph): Add edges from STOREDANYTHING to all
28486         non-direct nodes.
28487         (init_base_vars): Initialize STOREDANYTHING.
28488         (compute_points_to_sets): Free substitution info after
28489         building the succ graph.
28490         (ipa_pta_execute): Likewise.
28491
28492         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
28493         field.
28494         (do_ds_constraint): Do not add to special var or non-pointer
28495         field solutions.
28496         (type_could_have_pointers): Split out from ...
28497         (could_have_pointers): ... here.  For arrays use the element type.
28498         (create_variable_info_for): Initialize may_have_pointers.
28499         (new_var_info): Likewise.
28500         (handle_lhs_call): Make the HEAP variable unknown-sized.
28501         (intra_create_variable_infos): Use a type with pointers for
28502         PARM_NOALIAS, make it unknown-sized.
28503
28504 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
28505
28506         PR target/39224
28507         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
28508
28509 2009-02-18  Jason Merrill  <jason@redhat.com>
28510
28511         PR target/39179
28512         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
28513         value if DECL_EXTERNAL.
28514         * tree-sra.c (sra_walk_gimple_assign): Likewise.
28515         * target.h (gcc_target::binds_local_p): Clarify "module".
28516         * tree.h (TREE_PUBLIC): Clarify "module".
28517
28518 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
28519
28520         PR target/38891
28521         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
28522         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
28523
28524 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
28525
28526         PR target/39082
28527         * c.opt (Wabi): Support C and ObjC.
28528         (Wpsabi): New.
28529
28530         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
28531
28532         * config/i386/i386.c (classify_argument): Warn once about the ABI
28533         change when passing union with long double.
28534
28535         * doc/invoke.texi: Update -Wabi for warning psABI changes.
28536
28537 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
28538
28539         PR c/35447
28540         * c-parser.c (c_parser_compound_statement): Always enter and leave
28541         a scope.
28542
28543 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28544
28545         PR target/34587
28546         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
28547
28548 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
28549
28550         PR tree-optimization/36922
28551         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
28552         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
28553         Likewise.
28554
28555 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
28556
28557         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
28558         to 0 for EABI64.
28559
28560 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
28561
28562         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
28563
28564 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
28565
28566         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
28567         tree sharing.
28568
28569 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
28570             Richard Sandiford  <rdsandiford@googlemail.com>
28571
28572         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
28573         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
28574         (loongson_biadd): ...this.
28575
28576 2009-02-17  Richard Guenther  <rguenther@suse.de>
28577
28578         PR tree-optimization/39202
28579         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
28580         a var make sure to follow existing collapses.
28581
28582 2009-02-17  Richard Guenther  <rguenther@suse.de>
28583
28584         PR middle-end/39214
28585         * langhooks.c (lhd_print_error_function): Check for NULL block.
28586
28587 2009-02-17  Richard Guenther  <rguenther@suse.de>
28588
28589         PR tree-optimization/39204
28590         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
28591         of the PHI arg.
28592
28593 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
28594
28595         * config/soft-fp/double.h: Update from glibc CVS.
28596
28597 2009-02-17  Richard Guenther  <rguenther@suse.de>
28598
28599         PR tree-optimization/39207
28600         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
28601         strict-aliasing warnings for pointers pointing to NULL.
28602
28603 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
28604
28605         PR c/35446
28606         * c-parser.c (c_parser_braced_init): Call pop_init_level when
28607         skipping until next close brace.
28608
28609 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
28610
28611         PR target/37049
28612         * config/i386/i386.c (ix86_expand_push): Set memory alignment
28613         to function argument boundary.
28614
28615 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
28616
28617         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
28618         in the lea_add. Reload eventually constraints it properly.
28619         * config/picochip/constraints.md: Remove the target constraint
28620         "b", since it is not needed anymore.
28621
28622 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
28623
28624         * gthr-dce.h: Uglify function parameter and local variable names.
28625         * gthr-gnat.h: Likewise.
28626         * gthr-mipssde.h: Likewise.
28627         * gthr-nks.h: Likewise.
28628         * gthr-posix95.h: Likewise.
28629         * gthr-posix.h: Likewise.
28630         * gthr-rtems.h: Likewise.
28631         * gthr-single.h: Likewise.
28632         * gthr-solaris.h: Likewise.
28633         * gthr-tpf.h: Likewise.
28634         * gthr-vxworks.h: Likewise.
28635         * gthr-win32.h: Likewise.
28636
28637 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
28638
28639         PR target/39196
28640         * config/i386/i386.md: Restrict the new peephole2 to move
28641         between MMX/SSE registers.
28642
28643 2009-02-15  Richard Guenther  <rguenther@suse.de>
28644
28645         Revert
28646         2009-02-13  Richard Guenther  <rguenther@suse.de>
28647
28648         * configure.ac: Enable LFS.
28649         * configure: Re-generate.
28650         * config.in: Likewise.
28651
28652 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28653
28654         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
28655         spu_srqwbyte, spu_srqwbytebc): Define.
28656         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
28657         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
28658         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
28659         "shrqby_<mode>"): New insn-and-split patterns.
28660         * config/spu/spu.c (expand_builtin_args): Determine and return
28661         number of operands using spu_builtin_description data.
28662         (spu_expand_builtin_1): Use it.
28663
28664 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
28665
28666         PR target/38056
28667         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
28668         TARGET_CONST_GP.
28669
28670 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
28671
28672         PR target/39149
28673         * config/i386/i386.c (override_options): Correct warning
28674         messages for -malign-loops, -malign-jumps and -malign-functions.
28675
28676 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
28677
28678         PR target/39152
28679         * config/i386/i386.md: Restrict the new peephole2 to move
28680         between the general purpose registers.
28681
28682 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
28683
28684         PR target/39162
28685         * config/i386/i386.c (type_natural_mode): Add a new argument.
28686         Return the original mode and warn ABI change if vector size is 32byte.
28687         (function_arg_advance): Updated.
28688         (function_arg): Likewise.
28689         (ix86_function_value): Likewise.
28690         (ix86_return_in_memory): Likewise.
28691         (ix86_sol10_return_in_memory): Likewise.
28692         (ix86_gimplify_va_arg): Likewise.
28693         (function_arg_32): Don't warn ABX ABI change here.
28694         (function_arg_64): Likewise.
28695
28696 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
28697
28698         * loop-iv.c (implies_p): In the final case, test that operands 0
28699         of the two comparisons match.
28700
28701         * config/bfin/bfin.c (find_prev_insn_start): New function.
28702         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
28703         (find_next_insn_start): Move.
28704
28705 2009-02-13  Richard Guenther  <rguenther@suse.de>
28706
28707         * configure.ac: Enable LFS.
28708         * configure: Re-generate.
28709         * config.in: Likewise.
28710
28711 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
28712
28713         PR c/35444
28714         * c-parser.c (c_parser_parms_list_declarator): Discard pending
28715         sizes on syntax error after some arguments have been parsed.
28716
28717 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
28718
28719         * doc/invoke.texi (-fira): Remove.
28720
28721 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
28722
28723         * caller-save.c: Replace regclass.c with reginfo.c in comments.
28724         * recog.c: Likewise.
28725         * rtl.h: Likewise.
28726
28727 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
28728
28729         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
28730         (umul_ppmm): Likewise.
28731         (count_leading_zeros): Likewise.
28732         (count_trailing_zeros): Likewise.
28733         (UMUL_TIME): Likewise.
28734
28735 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
28736
28737         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
28738         soft-fp/t-softfp to tmake_file.
28739
28740         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
28741         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
28742         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
28743         IA64_BUILTIN_INFQ]: New.
28744         (ia64_init_builtins): Initialize __builtin_infq,
28745         __builtin_fabsq and __builtin_copysignq if not HPUX.
28746         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
28747         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
28748
28749         * config/ia64/lib1funcs.asm (__divtf3): Define only if
28750         SHARED is defined.
28751         (__fixtfti): Likewise.
28752         (__fixunstfti): Likewise.
28753         (__floattitf): Likewise.
28754
28755         * config/ia64/libgcc-glibc.ver: New.
28756         * config/ia64/t-fprules-softfp: Likewise.
28757         * config/ia64/sfp-machine.h: Likewise.
28758
28759         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
28760         (LIBGCC2_TF_CEXT): Likewise.
28761         (TF_SIZE): Likewise.
28762         (TARGET_INIT_LIBFUNCS): Likewise.
28763
28764         * config/ia64/t-glibc (SHLINB_MAPFILES):
28765         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
28766
28767 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
28768
28769         * config/i386/i386.c (construct_container): Rewrite processing
28770         BLKmode with X86_64_SSE_CLASS.
28771
28772 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
28773
28774         PR target/39152
28775         * config/i386/i386.md: Replace simplify_replace_rtx with
28776         replace_rtx in the new peephole2.
28777
28778 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
28779
28780         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
28781         loop unrolling do not happen at -O2.
28782
28783 2009-02-12  Michael Matz  <matz@suse.de>
28784
28785         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
28786
28787 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
28788
28789         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
28790         for -g3.
28791
28792 2009-02-12  Ben Elliston  <bje@au.ibm.com>
28793
28794         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
28795         patterns when updating the back chain.  Missed in the 2009-02-10
28796         change.
28797
28798 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
28799
28800         * doc/extend.texi (Decimal Floating Types): Update identifier of
28801         draft TR and list of missing support.
28802
28803 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
28804
28805         PR middle-end/39154
28806         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
28807         bit to variable length decl's flags, add it also to its
28808         pointer replacement variable.
28809
28810 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
28811             Jakub Jelinek  <jakub@redhat.com>
28812
28813         PR target/39118
28814         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
28815         (memory_blockage): New expander.
28816         (*memory_blockage): New insn pattern.
28817         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
28818         instead of general blockage at the end of function prologue when
28819         frame pointer is used to access red zone area.  Do not emit blockage
28820         when profiling, it is emitted in generic code.
28821         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
28822         function epilogue when frame pointer is used to access red zone area.
28823
28824 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
28825
28826         PR target/38824
28827         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
28828         by arithmetic with memory operands.
28829         * config/i386/predicates.md (commutative_operator): New.
28830
28831 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
28832
28833         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
28834         bulleted lists.
28835
28836 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
28837
28838         * alias.h (record_alias_subset): Declare.
28839         * alias.c (record_alias_subset): Make global.
28840
28841 2009-02-10  Nick Clifton  <nickc@redhat.com>
28842
28843         * tree-parloops.c: Change license to GPLv3.
28844         * ipa-struct-reorg.c: Change license to GPLv3.
28845         * ipa-struct-reorg.h: Change license to GPLv3.
28846
28847 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
28848
28849         PR c/39084
28850         * c-decl.c (start_struct): Return NULL on error.
28851
28852 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
28853
28854         PR middle-end/39124
28855         * cfgloopmanip.c (remove_path): Call remove_bbs after
28856         cancel_loop_tree, not before it.
28857
28858         PR target/39139
28859         * function.h (struct function): Add has_local_explicit_reg_vars bit.
28860         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
28861         VAR_DECLs were seen.
28862         * tree-ssa-live.c (remove_unused_locals): Recompute
28863         cfun->has_local_explicit_reg_vars.
28864         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
28865         copies or clearings if cfun->has_local_explicit_reg_vars.
28866
28867 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
28868
28869         PR target/39118
28870         * config/i386/i386.c (expand_prologue): Emit blockage at the end
28871         of function prologue when frame pointer is used to access
28872         red zone area.
28873
28874 2009-02-10  Richard Guenther  <rguenther@suse.de>
28875
28876         PR middle-end/39127
28877         * gimplify.c (gimple_regimplify_operands): Always look if
28878         we need to create a temporary.
28879
28880 2009-02-10  Richard Guenther  <rguenther@suse.de>
28881
28882         PR tree-optimization/39132
28883         * tree-loop-distribution.c (todo): New global var.
28884         (generate_memset_zero): Trigger TODO_rebuild_alias.
28885         (tree_loop_distribution): Return todo.
28886
28887 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
28888
28889         PR target/39119
28890         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
28891         (x86_64_reg_class_name): Removed.
28892         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
28893         first one isn't X86_64_SSE_CLASS or any other ones aren't
28894         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
28895         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
28896         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
28897         and 3 X86_64_SSEUP_CLASS.
28898         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
28899         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
28900
28901 2009-02-10  Ben Elliston  <bje@au.ibm.com>
28902
28903         * config/rs6000/rs6000.md (allocate_stack): Always use an update
28904         form instruction to update the stack back chain word, even if the
28905         user has disabled the generation of update instructions.
28906         (movdi_<mode>_update_stack): New.
28907         (movsi_update_stack): Likewise.
28908         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
28909         always use an update form instruction to update the stack back
28910         chain word.
28911
28912 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
28913
28914         PR middle-end/38953
28915         * graphite.c (if_region_set_false_region): After moving a region in
28916         the false branch of a condition, remove the empty dummy basic block.
28917         (gloog): Remove wrong fix for PR38953.
28918
28919 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28920
28921         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
28922         generation due to implicit sign extension.
28923
28924 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
28925
28926         PR middle-end/38981
28927         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
28928         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
28929
28930 2009-02-09  Richard Guenther  <rguenther@suse.de>
28931
28932         PR middle-end/35202
28933         * convert.c (convert_to_real): Disable (float)fn((double)x)
28934         to fnf(x) conversion if errno differences may occur and
28935         -fmath-errno is set.
28936
28937 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
28938
28939         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
28940         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
28941         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
28942
28943 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
28944
28945         PR c/35434
28946         * c-common.c (handle_alias_attribute): Disallow attribute for
28947         anything not a FUNCTION_DECL or VAR_DECL.
28948
28949 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
28950
28951         PR c/39035
28952         * real.c (do_compare): Special-case compare of zero against
28953         decimal float value.
28954
28955 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
28956
28957         PR c/36432
28958         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
28959         as indicating flexible array members unless the field itself is
28960         being declarared as the incomplete array.
28961
28962 2009-02-06  Jan Hubicka  <jh@suse.cz>
28963
28964         PR tree-optimization/38844
28965         * ipa-inline.c (try_inline): Stop inlining recursion when edge
28966         is already inlined.
28967
28968 2009-02-06  Richard Guenther  <rguenther@suse.de>
28969
28970         PR middle-end/38977
28971         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
28972         fork because we may expand it as __gcov_fork.
28973
28974 2009-02-06  Nick Clifton  <nickc@redhat.com>
28975
28976         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
28977
28978 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
28979
28980         PR tree-optimization/35659
28981         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
28982         vn_phi_eq): Shortcut if hashcode does not match.
28983         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
28984         NULL operands.
28985         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
28986         and avoid iterative_hash_expr.
28987         (FOR_EACH_VALUE_ID_IN_SET): New.
28988         (value_id_compare): Remove.
28989         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
28990         sort expressions by value id.
28991
28992 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
28993
28994         PR target/38991
28995         * config/sh/predicates.md (general_movsrc_operand): Don't check
28996         the subreg of system registers here.
28997
28998 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
28999
29000         PR c++/39106
29001         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
29002         on the copied decl.
29003
29004 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
29005
29006         PR rtl-optimization/39110
29007         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
29008         addresses, not aligned ones.
29009
29010 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
29011             Richard Guenther  <rguenther@suse.de>
29012
29013         PR tree-optimization/39100
29014         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
29015         comment says and add edges.
29016
29017 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
29018
29019         PR c/35435
29020         * c-common.c (handle_tls_model_attribute): Ignore attribute for
29021         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
29022
29023 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
29024
29025         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
29026         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
29027         register_bb_in_sese, new_sese, free_sese): Moved.
29028         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
29029         outermost_loop_in_scop, build_scop_iteration_domain,
29030         expand_scalar_variables_ssa_name, get_vdef_before_scop,
29031         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
29032         Use loop_in_sese_p instead of loop_in_scop_p.
29033         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
29034         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
29035         (scopdet_basic_block_info): Fix bug in scop detection.
29036         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
29037         eq_loop_to_cloog_loop): Remove.
29038         (nb_loops_around_loop_in_scop, nb_loop
29039         ref_nb_loops): Moved here...
29040         * graphite.h (ref_nb_loops): ... from here.
29041         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
29042         (loop_domain_dim, loop_iteration_vector_dim): Remove.
29043         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
29044
29045 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
29046             Hans-Peter Nilsson  <hp@axis.com>
29047
29048         PR rtl-optimization/37889
29049         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
29050         Move offset handling from PLUS to before the switch.  Use new
29051         arguments when considering SYMBOL_REFs too.
29052         (rtx_addr_can_trap_p): Pass dummy offset and size.
29053         (enum may_trap_p_flags): Remove.
29054         (may_trap_p_1): Pass size from MEM_SIZE.
29055
29056         PR rtl-optimization/38921
29057         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
29058         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
29059         * rtlanal.c (may_trap_after_code_motion_p): Delete.
29060         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
29061
29062 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
29063
29064         AVX Programming Reference (January, 2009)
29065         * config/i386/sse.md (*vpclmulqdq): New.
29066
29067 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
29068
29069         PR tree-optimization/38977
29070         PR gcov-profile/38292
29071         * calls.c (special_function_p): Disregard __builtin_ prefix.
29072
29073 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
29074
29075         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
29076         non-indexable addresses even before reload.
29077
29078 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
29079
29080         PR c/29129
29081         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
29082         as having variable size.  Do not give an error for unnamed
29083         parameters with [*] declarators.  Give a warning for type names
29084         with [*] declarators and mark them as variable size.
29085         * c-parser.c (c_parser_sizeof_expression): Do not give an error
29086         for sizeof applied to [*] type names.
29087
29088 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
29089
29090         PR C++/36607
29091         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
29092
29093 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
29094
29095         * gcc.c (process_command): Update copyright notice dates.
29096         * gcov.c (print_version): Likewise.
29097         * gcov-dump.c (print_version): Likewise.
29098         * mips-tfile.c (main): Likewise.
29099         * mips-tdump.c (main): Likewise.
29100
29101 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
29102
29103         PR c/35433
29104         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
29105         for composite type involving a zero-length array type.
29106
29107 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
29108
29109         PR target/35318
29110         * function.c (match_asm_constraints_1): Skip over
29111         initial optional % in the constraint.
29112
29113         PR inline-asm/39059
29114         * c-parser.c (c_parser_postfix_expression): If fixed point is not
29115         supported, don't accept FIXED_CSTs.
29116         * c-decl.c (finish_declspecs): Error if fixed point is not supported
29117         and _Sat is used without _Fract/_Accum.  Set specs->type to
29118         integer_type_node for cts_fract/cts_accum if fixed point is not
29119         supported.
29120
29121 2009-02-02  Catherine Moore  <clm@codesourcery.com>
29122
29123         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
29124
29125 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
29126
29127         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
29128         (ABI_HAS_64BIT_SYMBOLS): Use it.
29129         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
29130
29131 2009-02-02  Paul Brook  <paul@codesourcery.com>
29132
29133         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
29134
29135 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
29136
29137         PR inline-asm/39058
29138         * recog.h (asm_operand_ok): Add constraints argument.
29139         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
29140         recurse on matching constraint.
29141         (check_asm_operands): Pass constraints as 3rd argument to
29142         asm_operand_ok.  Don't look up matching constraint here.
29143         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
29144         to asm_operand_ok.
29145
29146 2009-02-02  Ben Elliston  <bje@au.ibm.com>
29147
29148         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
29149         TARGET_NARROW_VOLATILE_BITFIELD macro names.
29150
29151 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29152
29153         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
29154         information.  Remove some obsolete information.  Reorganize.
29155
29156         * config/pa/fptr.c: Revert license to GPL 2.
29157         * config/pa/milli64.S: Likewise.
29158
29159 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
29160
29161         PR target/38904
29162         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
29163         LIBRARY name in, instead of hard-coding it.
29164         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
29165         extra target make frag to tmake_files according to EH model.
29166         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
29167         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
29168         frags that define makefile variable EH_MODEL appropriately.
29169         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
29170         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
29171         to "-sjlj" according to type of EH configured.
29172         (LIBGCC_SONAME):  Concatenate it to shared library base name.
29173         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
29174         to "_sjlj" according to type of EH configured.
29175         (LIBGCC_SONAME):  Concatenate it to shared library base name.
29176         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
29177         (SHLIB_LINK):  Add missing semicolon to if-else construct.
29178         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
29179         string value of "pe_dll" command-line option.
29180         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
29181         (SHLIB_SONAME):  Use it when overriding t-cygming default.
29182         (SHLIB_IMPLIB):  Override t-cygming default.
29183         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
29184         string value of "pe_dll" command-line option.
29185
29186 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
29187
29188         PR target/38952
29189         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
29190         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
29191
29192 2009-01-31  Richard Guenther  <rguenther@suse.de>
29193
29194         PR tree-optimization/38937
29195         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
29196         computing the transitive closure.
29197
29198 2009-01-30  Richard Guenther  <rguenther@suse.de>
29199
29200         PR tree-optimization/39041
29201         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
29202         Propagate variable indices only if the types match for this stmt.
29203
29204 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
29205
29206         PR target/39013
29207         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
29208         inline but never defined.
29209
29210 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
29211
29212         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
29213         (*insv_h_di_reg_extimm): New insn.
29214         (*insv_l<mode>_reg_extimm): New insn.
29215
29216 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
29217
29218         * config/picochip/picochip.c (flag_conserve_stack): set
29219         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
29220         fconserve-stack. Reduce call-overhead used by inliner.
29221
29222 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
29223
29224         PR/38157
29225         * common.opt (flag_conserve_stack): Initialised to zero.
29226
29227 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
29228
29229         PR/39002
29230         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
29231         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
29232         method.
29233
29234 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
29235
29236         * ira-color.c (allocno_reload_assign): Update comments.
29237         * regmove.c (regmove_optimize): Likewise.
29238
29239         * ra.h: Removed.
29240
29241 2009-01-29  Robert Millan  <rmh@aybabtu.com>
29242
29243         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
29244         * config/i386/kopensolaris-gnu.h: New file.  Undefine
29245         `MD_UNWIND_SUPPORT'.
29246         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
29247
29248 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
29249
29250         PR tree-optimization/39007
29251         * tree-loop-distribution.c (generate_builtin): Use
29252         recompute_dominator to compute the immediate dominator of the
29253         basic block just after the loop.
29254
29255 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
29256
29257         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
29258         (ASM_OUTPUT_DWARF_PCREL): Define.
29259
29260 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
29261
29262         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
29263         * doc/passes.texi: Remove entries about regclass, local-alloc, and
29264         global.  Modify entries about regmove and IRA.
29265
29266         * ra-conflict.c: Remove the file.
29267
29268         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
29269
29270         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
29271         (pass_regclass_init): Rename to pass_reginfo_init.
29272
29273         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
29274
29275         * toplev.h (flag_ira): Remove.
29276
29277         * caller-save.c (setup_save_areas): Remove flag_ira.
29278
29279         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
29280
29281         * global.c: Remove the file.
29282
29283         * opts.c (decode_options): Remove flag_ira.
29284
29285         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
29286
29287         * regmove.c: Modify file description.
29288         (find_use_as_address, try_auto_increment): Define them only if
29289         AUTO_INC_DEC is defined.
29290         (replacement_quality, replace_in_call_usage, fixup_match_1,
29291         stable_and_no_regs_but_for_p): Remove.
29292         (reg_set_in_bb): Make it static.
29293         (regmove_optimize): Remove flag_ira and code which worked for
29294         !flag_ira.
29295
29296         * local-alloc.c: Remove the file.
29297
29298         * common.opt (fira): Remove.
29299
29300         * ira.c: Include except.h.
29301         (eliminable_regset): Move from global.c.
29302         (mark_elimination): Ditto.  Remove flag_ira.
29303         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
29304         equiv_mem_modified, validate_equiv_mem_from_store,
29305         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
29306         contains_replace_regs, memref_referenced_p, memref_used_between_p,
29307         no_equiv, recorded_label_ref): Move from local-alloc.c.
29308         (update_equiv_regs): Ditto.  Make it static.
29309         (print_insn_chain, print_insn_chains): Move it from global.c.
29310         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
29311         (build_insn_chain): Ditto.  Make it static.
29312         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
29313         Rename to init_live_subregs.
29314         (gate_ira): Remove flag_ira.
29315
29316         * regclass.c: Rename reginfo.c.  Change file description.
29317         (FORBIDDEN_INC_DEC_CLASSES): Remove.
29318         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
29319         (init_reg_sets_1): Remove code for evaluation of
29320         reg_class_superclasses and losing_caller_save_reg_set.
29321         (init_regs): Remove init_reg_autoinc.
29322         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
29323         ok_for_base_p_nonstrict): Remove.
29324         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
29325         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
29326         corresponding entries.
29327         (dump_regclass, record_operand_costs, scan_one_insn,
29328         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
29329         record_address_regs, auto_inc_dec_reg_p): Remove.
29330         (gt-regclass.h): Rename to gt-reginfo.h.
29331
29332         * rtl.h (dump_global_regs, retry_global_alloc,
29333         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
29334
29335         * Makefile.in (RA_H): Remove.
29336         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
29337         Rename regclass.o to reginfo.o.
29338         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
29339         gt-reginfo.h.
29340         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
29341         (GTFILES): Rename regclass.c to reginfo.c.
29342
29343         * passes.c (init_optimization_passes): Remove pass_local_alloc and
29344         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
29345
29346         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
29347         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
29348         Remove flag_ira.
29349         (finish_spills): Ditto.  Remove code for !flag_ira.
29350
29351 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
29352
29353         PR middle-end/35854
29354         * doc/invoke.texi (rtl debug options): Complete rewrite.
29355         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
29356         to auto_inc_dec".
29357         * mode-switching.c (pass_mode_switching): Rename pass from
29358         "mode-sw" to "mode_sw".
29359         * except.c (pass_convert_to_eh_ranges): Rename pass from
29360         "eh-ranges" to "eh_ranges".
29361         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
29362         to "subreg1".
29363
29364
29365 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
29366             Alexander Monakov  <amonakov@ispras.ru>
29367
29368         PR middle-end/38857
29369         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
29370         register.
29371         (move_exprs_to_boundary): Change return type and pass through
29372         should_move from move_op.  Relax assert.  Update usage ...
29373         (schedule_expr_on_boundary): ... here.  Use should_move instead of
29374         cant_move.
29375         (move_op_orig_expr_found): Indicate that insn was disconnected from
29376         stream.
29377         (code_motion_process_successors): Do not call after_merge_succs
29378         callback if original expression was not found when traversing any of
29379         the branches.
29380         (code_motion_path_driver): Change return type.  Update prototype.
29381         (move_op): Update comment.  Add a new parameter (should_move).  Update
29382         prototype.  Set *should_move based on indication provided by
29383         move_op_orig_expr_found.
29384
29385 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
29386
29387         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
29388         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
29389         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
29390         * config/rs6000/rs6000.c (rs6000_override_options): Default
29391         avoid-indexed-addresses on for Power6, off for everything else.
29392         (avoiding_indexed_address_p): New function.
29393         (rs6000_legitimize_address): Use it.
29394         (rs6000_legitimate_address): Likewise.
29395         * config/rs6000/rs6000.md (movXX_updateX): Likewise
29396
29397 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
29398
29399         PR tree-optimization/38997
29400         * tree-loop-distribution.c (generate_memset_zero): Use
29401         POINTER_PLUS_EXPR for a pointer addition.
29402
29403 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
29404
29405         * config/s390/s390.md (bswap<mode>2): New pattern added.
29406
29407 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
29408
29409         * config/s390/s390.md (*tls_load_31): Added type attribute.
29410
29411 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
29412
29413         * config/s390/s390.md: Fix a few comments.
29414
29415 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
29416
29417         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
29418         (*tm<mode>_full): Fixed z10prop attribute.
29419         (*tst<mode>_extimm): Fixed z10prop attribute.
29420         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
29421         (*tstqiCCT_cconly): Fixed z10prop attribute.
29422         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
29423         (*movsi_larl): Fixed z10prop attribute.
29424         (*movsi_zarch): Fixed z10prop attribute.
29425         (*movsi_eas): Fixed z10prop attribute.
29426         (*movhi): Fixed z10prop attribute.
29427         (*movqi): Fixed z10prop attribute.
29428         (*movstrictqi): Fixed z10prop attribute.
29429         (*mov<mode>): Fixed z10prop attribute.
29430         (*movcc): Fixed z10prop attribute.
29431         (*sethighpartdi_64): Fixed z10prop attribute.
29432         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
29433         (*negdi2_sign_cc): Fixed z10prop attribute.
29434         (*negdi2_sign): Fixed z10prop attribute.
29435         (*absdi2_sign_cc): Fixed z10prop attribute.
29436         (*absdi2_sign): Fixed z10prop attribute.
29437         (*negabsdi2_sign_cc): Fixed z10prop attribute.
29438         (*negabsdi2_sign): Fixed z10prop attribute.
29439         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
29440         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
29441         (doloop_si64): Fixed z10prop attribute.
29442         (doloop_si31): Fixed z10prop attribute.
29443         (doloop_long): Fixed z10prop attribute.
29444         (indirect_jump): Fixed z10prop attribute.
29445         (nop): Fixed z10prop attribute.
29446         (main_base_64): Fixed z10prop attribute.
29447         (reload_base_64): Fixed z10prop attribute.
29448
29449 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
29450
29451         PR rtl-optimization/38740
29452         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
29453         if !optimize.
29454         * config/mips/mips.c (mips_reorg): Likewise.
29455
29456 2009-01-28  Richard Guenther  <rguenther@suse.de>
29457
29458         PR tree-optimization/38926
29459         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
29460         with the correct value id to a value.
29461         (do_regular_insertion): Use the value number of edoubleprime
29462         for the value number of the expr.
29463
29464         Revert
29465         2008-08-21  Richard Guenther  <rguenther@suse.de>
29466
29467         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
29468         a PHI ask VN if it is already available.
29469         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
29470         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
29471
29472 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
29473
29474         PR middle-end/38934
29475         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
29476         set to varying whenever max has TREE_OVERFLOW set, similarly
29477         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
29478
29479 2009-01-28  Richard Guenther  <rguenther@suse.de>
29480
29481         PR middle-end/38908
29482         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
29483         uninitialized aggregate uses in call arguments.
29484
29485 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
29486
29487         PR tree-optimization/38984
29488         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
29489         the nothing_id variable if -fno-delete-null-pointer-checks.
29490
29491 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
29492
29493         PR target/38988
29494         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
29495         (set_got_offset_rex64): Ditto.
29496
29497 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
29498
29499         PR target/38941
29500         * doc/extend.texi: Improve local variable with asm reg.
29501
29502 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
29503
29504         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
29505         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
29506         was not supplied then set warn_packed_bitfield_compat to the
29507         default value of 1.
29508         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
29509         against 1.
29510
29511 2009-01-27  Richard Guenther  <rguenther@suse.de>
29512
29513         PR tree-optimization/38503
29514         * cfgexpand.c (expand_gimple_basic_block): Ignore
29515         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
29516         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
29517         variables that cannot have TBAA applied.
29518         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
29519         statements.
29520
29521 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
29522
29523         PR middle-end/38969
29524         * calls.c (initialize_argument_information): Do not wrap complex
29525         arguments in SAVE_EXPR.
29526
29527 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
29528
29529         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
29530         (INSTALL_LIBGCC): Revert typo commit.
29531
29532 2009-01-26  Richard Guenther  <rguenther@suse.de>
29533
29534         PR tree-optimization/38745
29535         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
29536         from special handling.
29537
29538 2009-01-26  Richard Guenther  <rguenther@suse.de>
29539
29540         PR tree-optimization/38745
29541         * tree-ssa.c (execute_update_addresses_taken): Do not include
29542         variables that cannot possibly be a register in not_reg_needs.
29543         Do not clear TREE_ADDRESSABLE on vars that may not become
29544         registers.
29545         * tree-ssa.c (update_alias_info_1): Include those in the set
29546         of addressable vars.
29547
29548 2009-01-26  Richard Guenther  <rguenther@suse.de>
29549
29550         PR middle-end/38851
29551         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
29552         * tree-ssa-dse.c: Include langhooks.h
29553         (execute_simple_dse): Remove stores with zero size.
29554
29555 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
29556
29557         PR c/38957
29558         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
29559         as PLUS_EXPR.
29560
29561 2009-01-24  Julian Brown  <julian@codesourcery.com>
29562
29563         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
29564         config/arm/linux-atomic.c.
29565         * config/arm/linux-atomic.c: New.
29566
29567 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
29568
29569         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
29570         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
29571         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
29572
29573 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
29574
29575         PR c/38938
29576         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
29577         properly.
29578
29579 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
29580
29581         PR tree-optimization/38953
29582         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
29583         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
29584         (gloog): Split the exit of the scop when the scop exit is a loop exit.
29585         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
29586         changed the CFG.
29587
29588 2009-01-24  Paul Brook  <paul@codesourcery.com>
29589
29590         * config/arm/neon.md (neon_type): Move to arm.md.
29591         (neon_mov<VSTRUCT>): Add neon_type attribute.
29592         * config/arm/arm.md (neon_type): Move to here.
29593         (conds): Add "unconditioal" and use as default for NEON insns.
29594
29595 2009-01-24  Ben Elliston  <bje@au.ibm.com>
29596
29597         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
29598         void *' warning from -Wc++-compat.
29599         * Makefile.in (dominance.o-warn): Remove.
29600
29601 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
29602
29603         PR tree-optimization/38932
29604         * fold-const.c (fold_unary_ignore_overflow): New.
29605         * tree.h (fold_unary_ignore_overflow): Declare.
29606         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
29607         * tree-ssa-sccvn.c (visit_reference_op_load,
29608         simplify_unary_expression): Likewise.
29609
29610 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
29611
29612         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
29613         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
29614         regardless of their type.
29615         * c-common.c (handle_packed_attribute): Don't ignore packed on
29616         bitfields.
29617         * c.opt (Wpacked-bitfield-compat): New warning option.
29618         * stor-layout.c (place_field): Warn if offset of a field changed.
29619         * doc/extend.texi (packed): Mention the ABI change.
29620         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
29621         (Warning Options): Add it to the list.
29622
29623 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
29624
29625         * c-opts.c (c_common_post_options): Fix a typo in comments.
29626
29627 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
29628
29629         PR middle-end/38615
29630         * gimplify.c (gimplify_init_constructor): Fix promotion of const
29631         variables to static.
29632         * doc/invoke.texi (-fmerge-all-constants): Update description.
29633
29634 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
29635
29636         PR target/38931
29637         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
29638         (*movdi_1_rex64): Use type "mmx" for alternative 5.
29639
29640 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
29641
29642         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
29643         a word boundary.
29644         (LOCAL_ALIGNMENT): Similarly.
29645
29646 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
29647             Joseph Myers  <joseph@codesourcery.com>
29648
29649         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
29650         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
29651         * config/arm/arm-tune.md: Regenerate.
29652         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
29653         -march=iwmmxt2.
29654
29655 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
29656
29657         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
29658         version number to five.
29659
29660 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
29661
29662         PR c++/38930
29663         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
29664         * c-common.c (set_underlying_type): Likewise.
29665         (is_typedef_decl ): Likewise
29666         * tree.h: Likewise
29667         (set_underlying_type): Likewise.
29668         (is_typedef_type): Likewise.
29669
29670 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
29671
29672         PR middle-end/38587
29673         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
29674         crossing setjmps.
29675
29676 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
29677
29678         PR bootstrap/37660
29679         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
29680         (LIBGCC_SPEC):  Don't define.
29681         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
29682
29683 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
29684
29685         PR rtl-optimization/38879
29686         * alias.c (base_alias_check): Unaligned access via AND address can
29687         alias all surrounding object types except those with sizes equal
29688         or wider than the size of unaligned access.
29689
29690 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
29691
29692         PR c++/26693
29693         * c-decl.c (clone_underlying_type): Move this ...
29694         * c-common.c (set_underlying_type): ... here.
29695         Also, make sure the function properly sets TYPE_STUB_DECL() on
29696         the newly created typedef variant type.
29697         (is_typedef_decl ): New entry point.
29698         * tree.h: Added a new member member_types_needing_access_check to
29699         struct tree_decl_non_common.
29700         (set_underlying_type): New entry point.
29701         (is_typedef_type): Likewise.
29702
29703 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
29704
29705         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
29706         Check whether two instructions have memory references that
29707         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
29708         are helper functions for traversing.
29709         * alias.h (insn_alias_sets_confilict_p): New prototypes.
29710         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
29711         not to draw dependency edge for instructions with non-conflicting
29712         alias sets.
29713
29714 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
29715
29716         PR other/38758
29717         * longlong.h: Update copyright years.  Use soft-fp license notice.
29718         Sync __clz_tab declaration with glibc.
29719
29720 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
29721
29722         PR target/30687
29723         * doc/extend.texi (syscall_linkage): New.
29724         (version_id): Modify.
29725
29726 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
29727             Richard Guenther  <rguenther@suse.de>
29728
29729         PR tree-optimization/38747
29730         PR tree-optimization/38748
29731         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
29732         conversion if the base address is an indirect reference and the
29733         aliasing sets could cause issues.
29734
29735 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
29736
29737         * common.opt (fgraphite, fgraphite-identity): Add comment for
29738         explaining why these options are not documented.
29739
29740 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
29741
29742         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
29743         gimple_call_lhs is NULL.
29744
29745 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
29746
29747         PR target/38868
29748         * emit-rtl.c (adjust_address_1): Make sure memref is never
29749         overwritten.
29750
29751 2009-01-20  Ben Elliston  <bje@au.ibm.com>
29752
29753         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
29754         const qualifier from arg parameter. Remove unnecessary cast to char *.
29755         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
29756         const qualifier from arg 2.
29757
29758 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
29759
29760         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
29761
29762 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
29763
29764         PR c/38869
29765         * rtl.h (reinit_regs): New prototype.
29766         * regclass.c: Include ira.h.
29767         (reinit_regs): New.
29768         * Makefile.in (regclass.o): Add ira.h.
29769         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
29770
29771 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
29772
29773         PR target/38736
29774         * c-common.c (handle_aligned_attribute): Use
29775         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
29776         default alignment value.
29777
29778         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
29779
29780         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
29781         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
29782
29783         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
29784         __BIGGEST_ALIGNMENT__.
29785
29786         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
29787
29788 2009-01-18  Richard Guenther  <rguenther@suse.de>
29789
29790         PR tree-optimization/38819
29791         * tree-flow.h (operation_could_trap_helper_p): Declare.
29792         * tree-eh.c (operation_could_trap_helper_p): Export.
29793         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
29794         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
29795         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
29796         are about to insert a possibly trapping instruction and fail
29797         in this case.
29798
29799 2009-01-18  Andreas Schwab  <schwab@suse.de>
29800
29801         * doc/install.texi (Configuration): Remove obsolete paragraph
29802         about use of --with-gnu-ld with --with-gnu-as.
29803
29804 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
29805
29806         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
29807         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
29808         Follow spelling conventions.
29809
29810 2009-01-18  Ben Elliston  <bje@au.ibm.com>
29811
29812         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
29813         C++ warning about implicit conversion from void * to struct
29814         bitmap_head_def *.
29815         (bitmap_obstack_free): Likewise for bitmap_element *.
29816         * Makefile.in (bitmap.o-warn): Remove.
29817
29818 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
29819
29820         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
29821
29822 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
29823             Tobias Grosser  <tobi.grosser@amd.com>
29824
29825         * graphite.c (graphite_trans_scop_block): Do not block single
29826         nested loops.
29827
29828 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
29829
29830         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
29831         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
29832         test with assertion.
29833
29834 2009-01-16  Richard Guenther  <rguenther@suse.de>
29835
29836         PR tree-optimization/38835
29837         PR middle-end/36227
29838         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
29839         and INT + PTR -> (INT)(PTR p+ INT) folding.
29840         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
29841
29842 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
29843
29844         PR target/38554
29845         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
29846         the subreg from a lowpart subreg if it is also casting the value.
29847
29848 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
29849             Tobias Grosser  <tobi.grosser@amd.com>
29850
29851         * graphite.c (compare_prefix_loops): New.
29852         (build_scop_canonical_schedules): Rewritten.
29853         (graphite_transform_loops): Move build_scop_canonical_schedules
29854         after build_scop_iteration_domain.
29855
29856 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
29857             Tobias Grosser  <tobi.grosser@amd.com>
29858
29859         * graphite.c (add_conditions_to_domain): Add the loops to
29860         the dimension of the iteration domain.  Do copy the domain
29861         only when it exists.
29862         (build_scop_conditions_1): Do not call add_conditions_to_domain.
29863         (add_conditions_to_constraints): New.
29864         (can_generate_code_stmt, can_generate_code): Removed.
29865         (gloog): Do not call can_generate_code.
29866         (graphite_transform_loops): Call add_conditions_to_constraints
29867         after building the iteration domain.
29868
29869 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
29870
29871         PR tree-optimization/38789
29872         * tree-ssa-threadedge.c
29873         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
29874         __builtin_constant_p.
29875
29876 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
29877
29878         * dce.c (delete_unmarked_insns): Reversed the order that insns are
29879         examined before deleting them.
29880
29881 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
29882
29883         * function.c (aggregate_value_p): Correctly extract the function
29884         type from CALL_EXPR_FN lookup.
29885
29886 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
29887
29888         * config/picochip/picochip.c (picochip_override_options): Revert
29889         CFI asm flag disable commited previously.
29890
29891 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
29892             Tobias Grosser  <tobi.grosser@amd.com>
29893             Jan Sjodin  <jan.sjodin@amd.com>
29894
29895         * graphite.c (scan_tree_for_params): On substractions negate
29896         all the coefficients of the term.
29897         (clast_to_gcc_expression_red): New.  Handle reduction expressions
29898         of more than two operands.
29899         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
29900         (get_vdef_before_scop): Handle also the case of default definitions.
29901
29902 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
29903
29904         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
29905         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
29906         Also use them when walking CALL_INSN_FUNCTION_USAGE.
29907
29908 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
29909             Joey Ye  <joey.ye@intel.com>
29910
29911         PR middle-end/37843
29912         * cfgexpand.c (expand_stack_alignment): Don't update stack
29913         boundary nor check incoming stack boundary here.
29914         (gimple_expand_cfg): Update stack boundary and check incoming
29915         stack boundary here.
29916
29917 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
29918
29919         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
29920
29921 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
29922
29923         PR rtl-optimization/38245
29924         * calls.c (expand_call): Add stack arguments to
29925         CALL_INSN_FUNCTION_USAGE even for pure calls (when
29926         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
29927         in regs and partially in memory or BLKmode arguments.
29928         (emit_library_call_value_1): Add stack arguments to
29929         CALL_INSN_FUNCTION_USAGE even for pure calls (when
29930         ACCUMULATE_OUTGOING_ARGS).
29931         * dce.c: Include tm_p.h.
29932         (find_call_stack_args): New function.
29933         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
29934         argument.
29935         (mark_insn): Call find_call_stack_args for CALL_Ps.
29936         (prescan_insns_for_dce): Walk insns backwards in bb rather than
29937         forwards.  Allocate and free arg_stores bitmap if needed, pass it
29938         down to deletable_insn_p, don't mark stores set in arg_stores
29939         bitmap, clear the bitmap at the beginning of each bb.
29940         * Makefile.in (dce.o): Depend on $(TM_P_H).
29941
29942 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
29943
29944         PR target/22599
29945         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
29946         to make sure the insn is a conditional test (bug 22599).  Reformat a
29947         few long lines.
29948
29949 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
29950
29951         PR middle-end/38431
29952         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
29953         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
29954         (gloog): Do not call cleanup_tree_cfg.
29955         (graphite_transform_loops): Call cleanup_tree_cfg after all
29956         scops have been code generated.
29957
29958 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
29959         * doc/gty.texi (Invoking the garbage collector): Added new node
29960         and section documenting ggc_collect.
29961
29962 2009-01-14  Richard Guenther  <rguenther@suse.de>
29963
29964         PR tree-optimization/38826
29965         PR middle-end/38477
29966         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
29967         initialization notes only if we actually emitted a warning.
29968         (intra_create_variable_infos): Add constraints for a result decl
29969         that is passed by hidden reference.
29970         (build_pred_graph): Mark all related variables non-direct on
29971         address-taking.
29972
29973 2009-01-14  Nick Clifton  <nickc@redhat.com>
29974
29975         * ira-conflicts.c: Include addresses.h for the definition of
29976         base_reg_class.
29977         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
29978         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
29979
29980 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
29981
29982         PR target/38811
29983         * Makefile.in (ira-lives.o): Add except.h.
29984
29985         * ira-lives.c: Include except.h.
29986         (process_bb_node_lives): Process can_throw_internal.
29987
29988 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
29989
29990         PR rtl-optimization/38774
29991         * combine.c (simplify_set): When undoing cc_use change, don't do
29992         PUT_CODE on the newly created comparison, but instead put back the
29993         old comparison.
29994
29995 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
29996
29997         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
29998         values.  Remove duplicate arm8 entry.
29999
30000 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
30001
30002         PR tree-optimization/38786
30003         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
30004         the SSA_NAME case of expand_scalar_variables_expr.
30005         Set the type of an expression to the type of its assign statement.
30006         (expand_scalar_variables_expr): Also gather the scalar computation
30007         used to index the memory access.  Do not pass loop_p.
30008         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
30009         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
30010         the gimple_stmt_iterator where it inserts new code.
30011         Do not pass loop_p.
30012         (copy_bb_and_scalar_dependences): Do not pass loop_p.
30013         (translate_clast): Update call to copy_bb_and_scalar_dependences.
30014
30015 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
30016
30017         * graphite.h (debug_value): Removed.
30018         * graphite.c (debug_value): Removed.
30019
30020 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
30021
30022         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
30023         ldrd/strd with two 32-bit instructions.
30024
30025 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
30026
30027         * config/arm/arm.c (struct processors): Pass for speed down into
30028         cost helper functions.
30029         (const_ok_for_op): Handle COMPARE and inequality nodes.
30030         (arm_rtx_costs_1): Rewrite.
30031         (arm_size_rtx_costs): Update prototype.
30032         (arm_rtx_costs): Pass speed down to helper functions.
30033         (arm_slowmul_rtx_costs): Rework cost calculations.
30034         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
30035         (arm_9e_rtx_costs): Likewise.
30036
30037 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
30038
30039         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
30040         relocations of local symbols wider than UNITS_PER_WORD are not valid.
30041         (alpha_legitimize_address): Do not split local symbols wider than
30042         UNITS_PER_WORD into HIGH/LO_SUM parts.
30043
30044 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
30045
30046         PR bootstrap/38580
30047         * gcc.c (process_command): Replace call to execvp with calls
30048         to pex_one and exit.
30049
30050 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
30051
30052         PR target/29141
30053         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
30054         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
30055         variant for devices with 3-byte PC.
30056         (__tablejump_elpm__): New.
30057
30058 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
30059
30060         PR c/32041
30061         * c-parser.c (c_parser_postfix_expression): Allow `->' in
30062         offsetof member-designator, handle it as `[0].'.
30063
30064 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30065
30066         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
30067         function when not using named sections on targets with named sections
30068         if branch distance is less than 262132.
30069
30070 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
30071
30072         * combine.c (combine_instructions):  Recompute
30073         optimize_this_for_speed_p  for each BB in the main combine loop.
30074
30075 2009-01-12  Tomas Bily  <tbily@suse.cz>
30076
30077         PR middlend/38385
30078         * tree-loop-distribution.c (prop_phis): New function.
30079         (generate_builtin): Call prop_phis.
30080
30081 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
30082
30083         PR tree-optimization/38807
30084         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
30085         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
30086
30087 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
30088
30089         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
30090         subreg of op0 to the original op0.
30091
30092 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
30093
30094         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
30095
30096 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
30097
30098         PR debug/7055
30099         * mips-tfile.c (parse_def): Fix parsing of def strings
30100         starting with digits.
30101
30102 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
30103
30104         PR target/38695
30105         * config/arm/arm.c (arm_is_long_call_p): Don't call
30106         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
30107
30108 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
30109
30110         * regrename.c (regrename_optimize): Fix dumping.
30111         (find_oldest_value_reg): Preserve REG_POINTER.
30112         (copy_hardreg_forward_1): Likewise.
30113
30114 2009-01-09  Diego Novillo  <dnovillo@google.com>
30115
30116         * gimple.h (struct gimple_statement_base) <uid>: Document
30117         the restrictions on its use.
30118         (gimple_uid): Tidy.
30119         (gimple_set_uid): Tidy.
30120
30121 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
30122
30123         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
30124         zero guard even if align_bytes != 0 and count is smaller than
30125         size_needed.
30126
30127 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
30128
30129         PR rtl-optimization/38495
30130         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
30131         (add_range_and_copies_from_move_list): Print all added ranges.
30132         Add ranges to memory optimized destination.
30133
30134 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
30135
30136         PR target/38686
30137         PR target/38708
30138         * config/i386/i386.c (override_options): Reject
30139         -mstringop-strategy=rep_8byte with -m32.
30140         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
30141         to 1.  Do count comparison against epilogue_size_needed at compile
30142         time even when count_exp was constant forced into register.  For
30143         size_needed don't jump to epilogue, instead just avoid aligning
30144         and invoke the body algorithm.  If need_zero_guard, add zero guard
30145         even if count is non-zero, but smaller than size_needed + number of
30146         bytes that could be stored for alignment.
30147         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
30148         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
30149         but smaller than size_needed + number of bytes that could be stored
30150         for alignment.  Compare size_needed with epilogue_size_needed instead
30151         of desired_align - align, don't adjust size_needed, pass
30152         epilogue_size_needed to the epilogue expanders.
30153
30154         PR c/35742
30155         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
30156
30157 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30158
30159         * pa.c (last_address): Change to unsigned.
30160         (update_total_code_bytes): Change argument to unsigned.  Don't
30161         check if insn addresses are set.
30162         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
30163         addresses are not set.
30164         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
30165
30166 2009-01-09  Nick Clifton  <nickc@redhat.com>
30167
30168         * config/sh/symbian.c: Replace uses of DECL_INLINE with
30169         DECL_DECLARED_INLINE_P.
30170
30171 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
30172
30173         PR middle-end/38347
30174         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
30175         GET_MODE (op0) in operand_subword_force calls.
30176
30177         PR middle-end/38771
30178         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
30179         fold_convert arg0 operands to TREE_TYPE (op0) first.
30180
30181 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
30182
30183         * params.def (ira-max-conflict-table-size): Decrease default value
30184         to 1000.
30185
30186 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
30187
30188         PR tree-optimization/37031
30189         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
30190         on parameter_set.
30191         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
30192         allocate it using gc instead of heap, use VEC_quick_push instead of
30193         VEC_safe_push.
30194         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
30195         instead of heap, use VEC_quick_push instead of VEC_safe_push.
30196         * tree-data-ref.h (struct access_matrix): Change matrix to gc
30197         allocated vector from heap allocated.
30198         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
30199         * tree-loop-linear.c (linear_transform_loops): Allocate nest
30200         vector only after perfect_loop_nest_depth call.
30201
30202 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
30203             Jan Sjodin  <jan.sjodin@amd.com>
30204
30205         PR tree-optimization/38559
30206         * graphite.c (debug_value, copy_constraint,
30207         swap_constraint_variables, scale_constraint_variable, ): New.
30208         (get_lower_bound, get_upper_bound): Removed.
30209         (graphite_trans_bb_strip_mine): Clean up this code that works
30210         only for constant number of iterations.  Fully copy upper and
30211         lower bound constraints, not only the constant part of them.
30212         * graphite.h (debug_value): Declared.
30213
30214 2009-01-08  Ira Rosen  <irar@il.ibm.com>
30215
30216         PR tree-optimization/37194
30217         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
30218         Don't add the cost of cost model guard in prologue to scalar
30219         outside cost in case of known number of iterations.
30220
30221 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
30222             Alan Modra  <amodra@bigpond.net.au>
30223
30224         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
30225         non-word-aligned REG+CONST addressing.
30226
30227 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
30228
30229         PR target/38706
30230         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
30231         free_after_compilation when outputting a thunk.
30232         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
30233         Do not call free_after_compilation here.
30234
30235 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
30236
30237         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
30238         (ix86_valid_target_attribute_inner_p): Ditto.
30239
30240 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
30241
30242         PR tree-optimization/38492
30243         PR tree-optimization/38498
30244         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
30245         * tree-chrec.h (scev_is_linear_expression): Declared.
30246         * graphite.c (graphite_cannot_represent_loop_niter): New.
30247         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
30248         (graphite_loop_normal_form): Use gcc_assert.
30249         (scan_tree_for_params): Use CASE_CONVERT.
30250         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
30251         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
30252         Use gcc_assert.  Discard scops that contain unhandled cases.
30253         (build_scop_conditions): Return a boolean status for unhandled cases.
30254         (strip_mine_profitable_p): Print the loop number, not its depth.
30255         (is_interchange_valid): Pass the depth of the loop nest, don't
30256         recompute it wrongly.
30257         (graphite_trans_bb_block): Same.
30258         (graphite_trans_bb_block): Print tentative of loop blocking.
30259         (graphite_trans_scop_block): Do not print that the loop has been
30260         blocked.
30261         (graphite_transform_loops): Do not handle scops that contain condition
30262         scalar phi nodes.
30263
30264 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
30265
30266         AVX Programming Reference (December, 2008)
30267         * config/i386/avxintrin.h (_mm256_stream_si256): New.
30268         (_mm256_stream_pd): Likewise.
30269         (_mm256_stream_ps): Likewise.
30270
30271         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
30272         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
30273         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
30274         (bdesc_special_args): Add __builtin_ia32_movntdq256,
30275         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
30276         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
30277         (ix86_expand_special_args_builtin): Likewise.
30278
30279         * config/i386/sse.md (AVXMODEDI): New.
30280         (avx_movnt<mode>): Likewise.
30281         (avx_movnt<mode>): Likewise.
30282         (<sse>_movnt<mode>): Remove AVX support.
30283         (sse2_movntv2di): Likewise.
30284
30285 2009-01-07  Richard Guenther  <rguenther@suse.de>
30286
30287         PR middle-end/38751
30288         * fold-const.c (extract_muldiv): Remove obsolete comment.
30289         (fold_plusminus_mult_expr): Undo MINUS_EXPR
30290         to PLUS_EXPR canonicalization for the canonicalization.
30291
30292 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
30293
30294         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
30295         hosted cross-compilers generating less efficient code.
30296
30297 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
30298
30299         * function.h (rtl_data): Add a dbr_scheduled_p field.
30300         * reorg.c (dbr_schedule): Set it.
30301         (gate_handle_delay_slots): Check it.
30302         * config/mips/mips.c (mips_base_delayed_branch): Delete.
30303         (mips_reorg): Check flag_delayed_branch instead of
30304         mips_base_delayed_branch.
30305         (mips_override_options): Don't set mips_base_delayed_branch
30306         or flag_delayed_branch.
30307
30308 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
30309
30310         PR rtl-optimization/38426.
30311         * ira.c (ira): Set current_function_is_leaf earlier.
30312
30313 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
30314
30315         PR rtl-optimization/38722
30316         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
30317         too early, only set a flag and modify after last possible
30318         undo_all point.
30319
30320 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
30321
30322         PR c/34252
30323         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
30324         * real.c (decimal_single_format): Correct values of emin and emax.
30325         (decimal_double_format): Ditto.
30326         (decimal_quad_format): Ditto.
30327         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
30328         computation of DECnn_MIN and DECnn_MAX for corrected values of
30329         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
30330         __DECnn_MIN__, and adjust its computation for the corrected value
30331         of emin.
30332
30333 2009-01-06  Jan Hubicka  <jh@suse.cz>
30334
30335         PR target/38744
30336         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
30337
30338 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
30339
30340         * doc/contrib.texi (Contributors): Slightly adjust the end note.
30341         Add Robert Clark to the list of testers.
30342
30343 2009-01-06  Jan Hubicka  <jh@suse.cz>
30344             Kai Tietz  <kai.tietz@onevision.com>
30345
30346         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
30347         * config/i386/i386.c (ix86_expand_call): Add clobbers.
30348
30349 2009-01-06  Jan Hubicka  <jh@suse.cz>
30350             Kai Tietz  <kai.tietz@onevision.com>
30351
30352         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
30353         for w64 ABI.
30354         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
30355         (ix86_nsaved_regs): Count only general purpose regs.
30356         (ix86_nsaved_sseregs): New.
30357         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
30358         to 16 for w64; compute padding and size of sse reg save area.
30359         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
30360         general purpose regs.
30361         (ix86_emit_save_sse_regs_using_mov): New.
30362         (ix86_expand_prologue): Save SSE regs if needed.
30363         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
30364         (ix86_emit_restore_sse_regs_using_mov): New.
30365         (ix86_expand_epilogue): Save SSE regs if needed.
30366
30367 2009-01-06  Jan Hubicka  <jh@suse.cz>
30368             Kai Tietz  <kai.tietz@onevision.com>
30369
30370         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
30371         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
30372         functions when accumulate outgoing args is off.
30373
30374 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
30375
30376         PR bootstrap/38742
30377         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
30378         before using pseudos_have_intersected_live_ranges_p.
30379
30380         * ira-int.h (ira_assert): Always define.
30381
30382 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
30383
30384         AVX Programming Reference (December, 2008)
30385         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
30386         (_mm256_permute2_pd): Likewise.
30387         (_mm_permute2_ps): Likewise.
30388         (_mm256_permute2_ps): Likewise.
30389         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
30390         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
30391
30392         * config/i386/i386.c (ix86_builtins): Remove
30393         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
30394         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
30395         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
30396         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
30397         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
30398         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
30399         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
30400         __builtin_ia32_vpermil2ps256.
30401         (ix86_init_mmx_sse_builtins): Updated.
30402         (ix86_expand_args_builtin): Likewise.
30403
30404 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30405
30406         * pa.c (output_call): Relocate non-jump insns in the delay slot of
30407         long absolute calls when generating PA 2.0 code.
30408
30409 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
30410
30411         PR rtl-optimization/38583
30412         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
30413
30414         * params.def (ira-max-conflict-table-size): New.
30415
30416         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
30417
30418         * ira.h (ira_conflicts_p): New external definition.
30419
30420         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
30421         table.  Report this.  Return result of building.
30422         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
30423         building conflict table.
30424
30425         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
30426         (ira_color): Use ira_conflicts_p.
30427
30428         * global.c: Include ira.h.
30429         (pseudo_for_reload_consideration_p, build_insn_chain): Use
30430         ira_conflicts_p.
30431
30432         * Makefile.in (global.o): Add ira.h.
30433
30434         * ira-build.c (mark_all_loops_for_removal,
30435         propagate_some_info_from_allocno): New.
30436         (remove_unnecessary_allocnos): Call
30437         propagate_some_info_from_allocno.
30438         (remove_low_level_allocnos): New.
30439         (remove_unnecessary_regions): Add parameter.  Call
30440         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
30441         parameter to remove_unnecessary_regions.
30442         (ira_build): Remove all regions but root if the conflict table was
30443         not built.  Update conflict hard regs for allocnos crossing calls.
30444
30445         * ira.c (ira_conflicts_p): New global.
30446         (ira): Define and use ira_conflicts_p.
30447
30448         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
30449         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
30450         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
30451
30452 2009-01-06  Ben Elliston  <bje@au.ibm.com>
30453
30454         * gengtype-lex.l (YY_NO_INPUT): Define.
30455
30456 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
30457
30458         PR c/34911
30459         * c-common.c (handle_vector_size_attribute): Also reject
30460         BOOLEAN_TYPE types.
30461
30462 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
30463
30464         PR tree-optimization/38492
30465         * graphite.c (rename_map_elt, debug_rename_elt,
30466         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
30467         rename_map_elt_info, eq_rename_map_elts,
30468         get_new_name_from_old_name, bb_in_sese_p): Moved around.
30469         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
30470         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
30471         (sese_build_livein_liveouts): New.
30472         (new_sese, free_sese): New.
30473         (new_scop): Call new_sese.
30474         (free_scop): Call free_sese.
30475         (rename_variables_from_edge, rename_phis_end_scop): Removed.
30476         (register_old_new_names): Renamed register_old_and_new_names.
30477         (register_scop_liveout_renames, add_loop_exit_phis,
30478         insert_loop_close_phis, struct igp,
30479         default_liveout_before_guard, add_guard_exit_phis,
30480         insert_guard_phis, copy_renames): New.
30481         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
30482         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
30483         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
30484         (scop_adjust_phis_for_liveouts): New.
30485         (gloog): Call scop_adjust_phis_for_liveouts.
30486
30487         * graphite.h (struct sese): Documented.  Added fields liveout,
30488         num_ver and livein.
30489         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
30490         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
30491         (struct scop): Added field liveout_renames.
30492         (SCOP_LIVEOUT_RENAMES): New.
30493
30494 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
30495
30496         PR tree-optimization/38510
30497         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
30498         (translate_clast): Call recompute_all_dominators before
30499         graphite_verify.
30500         (gloog): Call recompute_all_dominators before graphite_verify.
30501
30502 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
30503             Jan Sjodin  <jan.sjodin@amd.com>
30504
30505         PR tree-optimization/38500
30506         * graphite.c (create_sese_edges): Call fix_loop_structure after
30507         splitting blocks.
30508
30509 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
30510
30511         * config.gcc: Add m32r*-*-rtems*.
30512         * config/m32r/rtems.h: New file.
30513
30514 2009-01-05  Ben Elliston  <bje@au.ibm.com>
30515
30516         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
30517         (.po.pox): Likewise.
30518         (po/gcc.pot): Likewise.
30519
30520 2009-01-04  David S. Miller  <davem@davemloft.net>
30521
30522         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
30523         (STARTING_FRAME_OFFSET): Always set to zero.
30524
30525 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
30526
30527         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
30528         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
30529         fixed-point types, and vectors of the same.
30530
30531 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
30532
30533         * config/mips/sync.md (*mb_barrier): Rename to...
30534         (*memory_barrier): ...this.
30535
30536 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
30537
30538         * doc/extend.texi (Function Attributes): Move @cindex after @item
30539         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
30540         and put in alphabetical order. Fix 'target' name and put in order.
30541         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
30542         typos.
30543
30544 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
30545
30546         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
30547         (memory_barrier): Expand as unspec instead of unspec_volatile.
30548         Remove mem:BLK from insn operands.  Use Pmode scratch register.
30549         (*memory_barrier): Define as unspec instead of unspec_volatile.
30550         Use (match_dup 0) as input operand.
30551
30552         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
30553         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
30554         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
30555         scratch register.  Remove operand 1.
30556         (*stbar): Define as unspec instead of unspec_volatile.
30557         Use (match_dup 0) as input operand, remove (const_int 8).
30558         (*membar): Define as unspec instead of unspec_volatile.
30559         Use (match_dup 0) as input operand, remove input operand 2.
30560
30561         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
30562         (memory_barrier): Expand as unspec instead of unspec_volatile.
30563         Remove mem:BLK from insn operands.  Use Pmode scratch register.
30564         (*memory_barrier): Define as unspec instead of unspec_volatile.
30565         Use (match_dup 0) as input operand.
30566
30567         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
30568         Remove mem:BLK from insn operands.  Use Pmode scratch register.
30569         Set volatile flag on operand 0.
30570         (*memory_barrier): New insn pattern.
30571
30572         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
30573         insn operands.
30574         (*memory_barrier): Use (match_dup 0) as input operand.
30575
30576         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
30577         Remove mem:BLK from insn operands.  Use Pmode scratch register.
30578         Set volatile flag on operand 0.
30579         (*mb_internal): New insn pattern.
30580
30581         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
30582
30583 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
30584
30585         PR middle-end/38586
30586         * function.c (struct temp_slot): Move to the section of the file
30587         that deals with temp slots.  Remove field 'address'.
30588         (temp_slot_address_table): New hash table of address -> temp slot.
30589         (struct temp_slot_address_entry): New struct, items for the table.
30590         (temp_slot_address_compute_hash, temp_slot_address_hash,
30591         temp_slot_address_eq, insert_temp_slot_address): Support functions
30592         for the new table.
30593         (find_temp_slot_from_address): Rewrite to use the new hash table.
30594         (remove_unused_temp_slot_addresses): Remove addresses of temp
30595         slots that have been made available.
30596         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
30597         worker function for remove_unused_temp_slot_addresses.
30598         (assign_stack_temp_for_type): Don't clear the temp slot address list.
30599         Add the temp slot address to the address -> temp slot map.
30600         (update_temp_slot_address): Update via insert_temp_slot_address.
30601         (free_temp_slots): Call remove_unused_temp_slot_addresses.
30602         (pop_temp_slots): Likewise.
30603         (init_temp_slots): Allocate the address -> temp slot map, or empty
30604         the map if it is already allocated.
30605         (prepare_function_start): Initialize temp slot processing.
30606
30607 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
30608
30609         PR middle-end/38584
30610         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
30611         Calculate the size of all stack vars assuming no packing of stack
30612         vars will happen, replacing a quadratic algorithm with a linear one.
30613
30614 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
30615
30616         PR target/38707
30617         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
30618         can't be used.
30619
30620 2009-01-03  Diego Novillo  <dnovillo@google.com>
30621
30622         * doc/contrib.texi: Update contributions.
30623
30624 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
30625
30626         PR c++/38705
30627         * builtins.c (fold_builtin_memory_op): Give up if either operand
30628         is volatile.  Set srctype or desttype to non-qualified version
30629         of the other type.
30630
30631         PR c/38700
30632         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
30633         and FUNCTION_DECLs.
30634
30635 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
30636
30637         PR rtl-optimization/35805
30638         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
30639         problem if fast dce is able to remove any instructions.
30640         * dce.c (dce_process_block): Fix dump message.
30641
30642 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
30643
30644         PR 33649
30645         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
30646
30647 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
30648
30649         PR middle-end/38690
30650         * tree-flow.h (op_code_prio, op_prio): New prototypes.
30651         * tree-pretty-print.c (op_code_prio): New function.
30652         (op_prio): No longer static.  Use op_code_prio.
30653         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
30654         Use op_prio and op_code_prio to determine if () should be
30655         printed around operand(s) or not.
30656
30657         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
30658         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
30659         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
30660         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
30661         pp_character instead of pp_string for single letter printing.
30662
30663 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
30664
30665         * doc/extend.texi: Fix '#pragma GCC option' typo.
30666
30667 2009-01-02  Richard Guenther  <rguenther@suse.de>
30668
30669         * doc/install.texi (--enable-checking): Mention different
30670         default for stage1.
30671         (--enable-stage1-checking): Document.
30672
30673 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
30674
30675         PR middle-end/30142
30676         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
30677         case to be an error.
30678
30679 2009-01-02  Ben Elliston  <bje@au.ibm.com>
30680
30681         * config/fp-bit.h (pack_d): Constify argument.
30682         * config/fp-bit.c (makenan): Constify return type. Remove casts.
30683         (isnan): Constify argument.
30684         (isinf): Likewise.
30685         (iszero): Likewise.
30686         (pack_d): Likewise.
30687         (_fpadd_parts): Constify return type.
30688         (_fpmul_parts): Likewise.
30689         (_fpdiv_parts): Likewise.
30690
30691 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
30692
30693         PR c/36489
30694         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
30695         warn about overwriting initializer with side-effects or
30696         -Woverride-init if !IMPLICIT.
30697         (output_init_element): Likewise.  Pass IMPLICIT down to
30698         add_pending_init.
30699         (process_init_element): Add IMPLICIT argument.  Pass it down
30700         to output_init_element.
30701         (push_init_element, pop_init_level, set_designator): Adjust
30702         process_init_element callers.
30703         (set_nonincremental_init, set_nonincremental_init_from_string):
30704         Adjust add_pending_init callers.
30705         (output_pending_init_elements): Adjust output_init_element callers.
30706         * c-tree.h (process_init_element): Adjust prototype.
30707         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
30708         process_init_element callers.
30709
30710 \f
30711 Copyright (C) 2009 Free Software Foundation, Inc.
30712
30713 Copying and distribution of this file, with or without modification,
30714 are permitted in any medium without royalty provided the copyright
30715 notice and this notice are preserved.