OSDN Git Service

721c69e6482f614d6e65a05b59faa9b32e2ace99
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-11-02  Jakub Jelinek  <jakub@redhat.com>
2
3         PR c++/41774
4         * c-pragma.c (visstack): Change into vector of ints rather than
5         enum symbol_visibility.
6         (push_visibility): Add kind argument, push default_visibility together
7         with kind.
8         (pop_visibility): Add kind argument, return true if successful, fail
9         if visibility stack is empty or if stack top is of different kind.
10         (handle_pragma_visibility): Don't check length of visstack, instead
11         call pop_visibility and issue diagnostics if it failed.  Pass 0
12         as last argument to push_visibility and pop_visibility.
13         * c-pragma.h (push_visibility): Add kind argument.
14         (pop_visibility): Likewise.  Return bool instead of void.
15
16 2009-11-01  Eric Botcazou  <ebotcazou@adacore.com>
17
18         * tree.def (TARGET_MEM_REF): Update comment.
19         * alias.c (get_alias_set): Retrieve the original memory reference for
20         a TARGET_MEM_REF before proceeding.
21
22 2009-10-31  Anatoly Sokolov  <aesok@post.ru>
23
24         * config/frv/frv.c (frv_function_value, frv_libcall_value,
25         frv_function_value_regno_p): New functions.
26         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
27         * config/frv/frv.h: (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
28         (FUNCTION_VALUE_REGNO_P): Redefine, use frv_function_value_regno_p.
29         * config/frv/frv-protos.h (frv_function_value_regno_p): Declare.
30
31 2009-10-31  Anatoly Sokolov  <aesok@post.ru>
32
33         * config/mn10300/mn10300.c (mn10300_function_value): Make static, add
34         new 'outgoing' argument.
35         (mn10300_libcall_value, mn10300_function_value_regno_p): New
36         functions.
37         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
38         * config/mn10300/mn10300.h: (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
39         LIBCALL_VALUE): Remove.
40         (FUNCTION_VALUE_REGNO_P): Redefine, use mn10300_function_value_regno_p.
41         * config/mn10300/mn10300-protos.h (mn10300_function_value): Remove.
42         (mh10300_function_value_regno_p): Declare.
43
44 2009-10-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
45
46         * config/arm/cortex-a9.md: New - integer pipeline description.
47
48 2009-10-31  Eric Botcazou  <ebotcazou@adacore.com>
49
50         * tree-ssa-sccvn.c (vn_reference_lookup_3): Bail out instead of
51         aborting if the sizes of the two references don't match.
52
53 2009-10-31  Toon Moene  <toon@moene.org>
54
55         * ipa-inline.c (cgraph_decide_inlining):
56         Include reason for not inlining called-once functions in dump file.
57
58 2009-10-30  Daniel Gutson  <dgutson@codesourcery.com>
59
60         * config/arm/linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added.
61         * config/arm/bpapi.h (BE8_LINK_SPEC): New define.
62         (LINK_SPEC): BE_LINK_SPEC added.
63
64 2009-10-30  Richard Guenther  <rguenther@suse.de>
65
66         PR lto/41858
67         * lto-streamer.h (struct lto_file_decl_data): Remove fd member.
68
69 2009-10-30  Nathan Sidwell  <nathan@codesourcery.com>
70
71         * target-def.h (TARGET_ASM_TTYPE): Correct typo of TARGET_ARM_TTYPE.
72         * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): Remove unused
73         label.
74
75 2009-10-30  Martin Jambor  <mjambor@suse.cz>
76
77         * tree-sra.c (build_ref_for_offset_1): Remove a comment.
78
79 2009-10-30  H.J. Lu  <hongjiu.lu@intel.com>
80
81         PR target/40838
82         * cfgexpand.c (expand_stack_alignment): Call update_stack_boundary
83         first.  Move assert on stack_alignment_estimated just before
84         setting stack_realign_needed.
85         (gimple_expand_cfg): Initialize stack_alignment_estimated to 0.
86         Don't call update_stack_boundary.
87
88         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): New.
89         (verride_options): Don't check ix86_force_align_arg_pointer here.
90         (ix86_function_ok_for_sibcall): Use it.
91         (ix86_update_stack_boundary): Likewise.
92
93         * config/i386/i386.h (STACK_REALIGN_DEFAULT): Update comments.
94
95 2009-10-30  Richard Earnshaw  <rearnsha@arm.com>
96
97         * arm.md (QHSI): New mode iterator.
98         (movqi): If generating for thumb, then truncate any immediate to
99         8 bits.
100         * thumb2.md (thumb2_movsi_shortim and peephole2 generator): Replace
101         with...
102         (thumb2_mov<mode>_shortim and peephole2 generator): ... iterator based
103         version.
104
105 2009-10-29  Cary Coutant  <ccoutant@google.com>
106
107         PR debug/41700
108         * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hook (two
109         locations in the source).
110         (store_vcall_insn): New function.
111         (lookup_vcall_insn): New function.
112         (dwarf2out_virtual_call_token): Use store_vcall_insn.
113         (dwarf2out_copy_call_info): New function.
114         (dwarf2out_virtual_call): Use lookup_vcall_insn.
115         * emit-rtl.c (try_split): Call copy_call_info debug hook.
116         * debug.h (struct gcc_debug_hooks): Add copy_call_info hook.
117         * debug.c (do_nothing_debug_hooks): Add dummy entry for new hook.
118         (debug_nothing_rtx_rtx): New dummy hook.
119         * dbxout.c (dbx_debug_hooks): Add dummy entry for new hook.
120         (xcoff_debug_hooks): Likewise.
121         * sdbout.c (sdb_debug_hooks): Likewise.
122         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
123
124 2009-10-29  David Daney  <ddaney@caviumnetworks.com>
125
126         * doc/invoke.texi (mmcount-ra-address): Document new command line
127         option.
128         * config/mips/mips.opt (mmcount-ra-address): New option.
129         * config/mips/mips-protos.h (mips_function_profiler): Declare new
130         function.
131         * config/mips/mips.c (struct mips_frame_info): Add ra_fp_offset
132         member.
133         (mips_for_each_saved_gpr_and_fpr): Set ra_fp_offset.
134         (mips_function_profiler): Moved from FUNCTION_PROFILER, and
135         rewritten.
136         * config/mips/mips.h (FUNCTION_PROFILER): Body of macro moved to
137         mips_function_profiler.
138
139 2009-10-29  Steve Ellcey  <sje@cup.hp.com>
140
141         PR middle-end/37565
142         PR target/38018
143         * doc/tm.texi (OVERRIDE_OPTIONS): Update.
144         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
145         * optc-gen.awk (cl_target_option_restore): Include call to 
146         targetm.override_options_after_change.
147         * target-def.h (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
148         * target.h (override_options_after_change): New.
149         * c-common.c (parse_optimize_options): Call
150         targetm.override_options_after_change.
151         * config/ia64/ia64.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
152         (ia64_override_options_after_change): New.
153         (ia64_override_options) Add call to above.
154
155 2009-10-29  Michael Matz  <matz@suse.de>
156
157         * tree-ssa-math-opts.c (execute_convert_to_rsqrt): Remove.
158         (gate_convert_to_rsqrt): Ditto.
159         (pass_convert_to_rsqrt): Ditto.
160         * tree-pass.h (pass_convert_to_rsqrt): Don't declare.
161         * passes.c (init_optimization_passes): Don't add pass_convert_to_rsqrt
162         to pass list.
163
164         * config/i386/i386.c (ix86_emit_swdivsf): Change evaluation order.
165
166 2009-10-29  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
167
168         * config/arm/arm.c (find_best_start): Fix type of remainder to be
169         unsigned .
170
171 2009-10-29  Martin Jambor  <mjambor@suse.cz>
172
173         PR tree-optimization/41775
174         * tree-sra.c (build_ref_for_offset): Unshare *expr if not NULL.
175         (generate_subtree_copies): Do not unshare agg.
176         (load_assign_lhs_subreplacements): Do not unshare rhs.
177         (sra_modify_assign): Do not unshare exprs.
178         (propagate_subacesses_accross_link): Renamed to
179         propagate_subaccesses_across_link.
180
181 2009-10-29  Richard Earnshaw  <rearnsha@arm.com>
182
183         * arm.c (count_insns_for_constant): Rework to support counting for
184         thumb2 immediates as well.
185         (find_best_start): Split out from arm_gen_constant.
186         (arm_gen_constant): Rework to support XOR with immediate.
187
188 2009-10-29  Chao-ying Fu  <fu@mips.com>
189
190         * config/mips/mips.c (mips_emit_unary, mips_force_unary): New
191         functions.
192         (mips_expand_synci_loop):  Use the length rtx to control the
193         synci loop from the begin rtx that points to the first byte of
194         the cache line.
195
196 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
197
198         * doc/invoke.texi: Rename -use-linker-plugin -fuse-linker-plugin.
199         
200 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
201
202         * dbxout.c (dbxout_common_check): Accept non public trees.
203         * dwarf2out.c (fortran_common): Accept non public trees.
204
205 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
206
207         * common.opt (fuse-linker-plugin): New option.
208         * gcc.c (LINK_COMMAND_SPEC, main): Rename use-linker-plugin to
209         fuse-linker-plugin.
210         * opts.c (common_handle_option): Ignore OPT_fuse_linker_plugin.
211
212 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
213
214         PR rtl-optimization/39715
215         * config/arm/arm.md (cstoresi4): Use gen_cstoresi_ltu_thumb1.
216         (gen_cstoresi_ltu_thumb1): New splitter.
217
218 2009-10-28  Richard Guenther  <rguenther@suse.de>
219
220         PR lto/41808
221         PR lto/41839
222         * tree-ssa.c (useless_type_conversion_p): Do not treat
223         conversions to pointers to incomplete types as useless.
224         * gimple.c (gimple_types_compatible_p): Compare struct tags,
225         not typedef names.
226
227 2009-10-28  Jakub Jelinek  <jakub@redhat.com>
228
229         * var-tracking.c (emit_note_insn_var_location): Don't call the second
230         vt_expand_loc unnecessarily when location is not a register nor
231         memory.
232
233         PR middle-end/41837
234         * ipa-struct-reorg.c (find_field_in_struct_1): Return NULL if
235         fields don't have DECL_NAME.
236
237         PR debug/41801
238         * builtins.c (get_builtin_sync_mem): Expand loc in ptr_mode,
239         call convert_memory_address on addr.
240
241         PR target/41762
242         * config/i386/i386.c (ix86_pic_register_p): Don't call
243         rtx_equal_for_cselib_p for VALUEs discarded as useless.
244
245 2009-10-28  Richard Sandiford  <rdsandiford@googlemail.com>
246
247         * var-tracking.c (emit_note_insn_var_location): Get the mode of
248         a variable part from its REG, MEM or VALUE.
249
250 2009-10-28  Richard Guenther  <rguenther@suse.de>
251
252         * gimple.c (gimple_get_alias_set): Fix comment typo.
253
254 2009-10-28  Richard Guenther  <rguenther@suse.de>
255
256         * tree.c (free_lang_data_in_type): Do not call get_alias_set.
257         (free_lang_data): Unconditionally compute alias sets for all
258         standard integer types.  Bail out if gate bailed out previously.
259         Do not reset the types_compatible_p langhook.
260         (gate_free_lang_data): Remove.
261         (struct pass_ipa_free_lang_data): Enable unconditionally.
262         * gimple.c (gimple_get_alias_set): Use the same alias-set for
263         all pointer types.
264
265 2009-10-28  Richard Guenther  <rguenther@suse.de>
266
267         PR middle-end/41855
268         * tree-ssa-alias.c (refs_may_alias_p_1): Deal with CONST_DECLs
269         (ref_maybe_used_by_call_p_1): Fix bcopy handling.
270         (call_may_clobber_ref_p_1): Likewise.
271         * tree-ssa-structalias.c (find_func_aliases): Likewise.
272         * alias.c (nonoverlapping_memrefs_p): Deal with CONST_DECLs.
273
274 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
275
276         PR rtl-optimization/41812
277
278         Revert:
279         2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
280
281         * df-problems.c (df_md_scratch): New.
282         (df_md_alloc, df_md_free): Allocate/free it.
283         (df_md_local_compute): Only include live registers in init.
284         (df_md_transfer_function): Prune the in-set computed by
285         the confluence function, and the gen-set too.
286
287 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
288
289         PR rtl-optimization/39715
290         * combine.c (simplify_comparison): Use extensions to
291         widen comparisons.  Try an ANDing first.
292
293 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
294
295         PR rtl-optimization/40741
296         * config/arm/arm.c (thumb1_rtx_costs): IOR or XOR with
297         a small constant is cheap.
298         * config/arm/arm.md (andsi3, iorsi3): Try to place the result of
299         force_reg on the LHS.
300         (xorsi3): Likewise, and split the XOR if the constant is complex
301         and not in Thumb mode.
302
303 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
304
305         * expmed.c (emit_store_flag): Check costs before
306         transforming to the opposite representation.
307
308 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
309
310         * config/sh/sh.md (cbranchfp4_media): Remove hack extending
311         cstore result to DImode.
312
313 2009-10-28  Kaz Kojima  <kkojima@gcc.gnu.org>
314
315         * config/sh/sh.md (stuff_delay_slot): Move const_int pattern
316         inside the unspec vector.
317
318 2009-10-27  Richard Henderson  <rth@redhat.com>
319
320         * cgraphunit.c (cgraph_optimize): Maintain timevar stack properly.
321
322 2009-10-27  Richard Henderson  <rth@redhat.com>
323
324         PR c++/41819
325         * tree-eh.c (eh_region_may_contain_throw_map): Rename from
326         eh_region_may_contain_throw; update users.
327         (eh_region_may_contain_throw): New function.
328         (lower_catch): Check flag_exceptions before creating exception region.
329         (lower_eh_filter, lower_eh_must_not_throw): Likewise.
330         (lower_cleanup): Tidy existing flag_exceptions check to match.
331
332 2009-10-27  Kai Tietz <kai.tietz@onevision.com>
333
334         PR/41799
335         * config/i386/mingw32.h (CHECK_EXECUTE_STACK_ENABLED): New macro.
336         * config/i386/mingw.opt: Add fset-stack-executable.
337         * config/i386/i386.c (ix86_trampoline_init): Make call to
338         emit_library_call conditional, if CHECK_EXECUTE_STACK_ENABLED is
339         defined and its value is not zero.
340         * doc/invoke.texi
341
342 2009-10-27  Richard Guenther  <rguenther@suse.de>
343
344         * tree-ssa-structalias.c (find_func_aliases): In IPA mode
345         handle calls to externally visible functions like in regular mode.
346         (create_variable_info_for): Do not create function infos here.
347         (have_alias_info): Remove write-only variable.
348         (solve_constraints): New function split out from common code
349         in compute_points_to_sets and ipa_pta_execute.
350         (compute_points_to_sets): Adjust.
351         (ipa_pta_execute): Likewise.  Handle clones and externally visible
352         functions like in non-IPA mode.
353
354 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
355
356         PR c/41842
357         * c-typeck.c (convert_arguments): Return -1 if any of the arguments is
358         error_mark_node.
359
360 2009-10-27  Richard Guenther  <rguenther@suse.de>
361
362         * tree-complex.c (expand_complex_div_wide): Check for
363         INTEGER_CST, not TREE_CONSTANT on comparison folding result.
364
365 2009-10-27  Revital Eres  <eres@il.ibm.com>
366
367         PR tree-optimization/40648
368         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
369         Change decision of when to peel for alignment.
370
371 2009-10-27  Richard Guenther  <rguenther@suse.de>
372
373         PR lto/41821
374         * gimple.c (gimple_types_compatible_p): Handle OFFSET_TYPE.
375
376 2009-10-27  Aldy Hernandez  <aldyh@redhat.com>
377
378         PR bootstrap/41451
379         * fold-const.c (fold_binary_loc): Do not call
380         protected_set_expr_location.
381
382 2009-10-27  Wei Guozhi  <carrot@google.com>
383
384         PR target/41705
385         * target.h (have_conditional_execution): Add a new target hook
386         function.
387         * target-def.h (TARGET_HAVE_CONDITIONAL_EXECUTION): Likewise.
388         * targhooks.h (default_have_conditional_execution): Likewise.
389         * targhooks.c (default_have_conditional_execution): Likewise.
390         * doc/tm.texi (TARGET_HAVE_CONDITIONAL_EXECUTION): Document it.
391         * config/arm/arm.c (TARGET_HAVE_CONDITIONAL_EXECUTION): Define it.
392         (arm_have_conditional_execution): New function.
393         * ifcvt.c (noce_process_if_block, find_if_header,
394         cond_exec_find_if_block, dead_or_predicable): Change the usage of
395         macro HAVE_conditional_execution to a target hook call.
396         * recog.c (peephole2_optimize): Likewise.
397         * sched-rgn.c (add_branch_dependences): Likewise.
398         * final.c (asm_insn_count, final_scan_insn): Likewise.
399         * bb-reorder.c (HAVE_conditional_execution): Remove it.
400
401 2009-10-26  Ben Elliston  <bje@au.ibm.com>
402             Michael Meissner  <meissner@linux.vnet.ibm.com>
403             Ulrich Weigand  <uweigand@de.ibm.com>
404
405         * config.gcc (spu-*-elf*): Add spu_cache.h to extra_headers.
406         * config/spu/spu_cache.h: New file.
407
408         * config/spu/cachemgr.c: New file.
409         * config/spu/cache.S: New file.
410
411         * config/spu/spu.h (ASM_OUTPUT_SYMBOL_REF): Define.
412         (ADDR_SPACE_EA): Define.
413         (TARGET_ADDR_SPACE_KEYWORDS): Define.
414         * config/spu/spu.c (EAmode): New macro.
415         (TARGET_ADDR_SPACE_POINTER_MODE): Define.
416         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
417         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
418         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
419         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
420         (TARGET_ADDR_SPACE_CONVERT): Likewise.
421         (TARGET_ASM_SELECT_SECTION): Likewise.
422         (TARGET_ASM_UNIQUE_SECTION): Likewise.
423         (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
424         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
425         (ea_symbol_ref): New function.
426         (spu_legitimate_constant_p): Handle __ea qualified addresses.
427         (spu_addr_space_legitimate_address_p): New function.
428         (spu_addr_space_legitimize_address): Likewise.
429         (cache_fetch): New global.
430         (cache_fetch_dirty): Likewise.
431         (ea_alias_set): Likewise.
432         (ea_load_store): New function.
433         (ea_load_store_inline): Likewise.
434         (expand_ea_mem): Likewise.
435         (spu_expand_mov): Handle __ea qualified memory references.
436         (spu_addr_space_pointer_mode): New function.
437         (spu_addr_space_address_mode): Likewise.
438         (spu_addr_space_subset_p): Likewise.
439         (spu_addr_space_convert): Likewise.
440         (spu_section_type_flags): Handle "._ea" section.
441         (spu_select_section): New function.
442         (spu_unique_section): Likewise.
443         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Support __EA32__
444         and __EA64__ predefined macros.
445         * config/spu/spu-elf.h (LIB_SPEC): Handle -mcache-size= and
446         -matomic-updates switches.
447
448         * config/spu/t-spu-elf (MULTILIB_OPTIONS): Define.
449         (EXTRA_MULTILIB_PARTS): Add libgcc_cachemgr.a,
450         libgcc_cachemgr_nonatomic.a, libgcc_cache8k.a, libgcc_cache16k.a,
451         libgcc_cache32k.a, libgcc_cache64k.a, libgcc_cache128k.a.
452         ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o): New target.
453         ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache64k.o,
454         $(T)cache128k.o): Likewise.
455         ($(T)libgcc_%.a): Likewise.
456
457         * config/spu/spu.h (TARGET_DEFAULT): Add MASK_ADDRESS_SPACE_CONVERSION.
458         * config/spu/spu.opt (-mea32/-mea64): Add switches.
459         (-maddress-space-conversion): Likewise.
460         (-mcache-size=): Likewise.
461         (-matomic-updates): Likewise.
462         * doc/invoke.texi (-mea32/-mea64): Document.
463         (-maddress-space-conversion): Likewise.
464         (-mcache-size=): Likewise.
465         (-matomic-updates): Likewise.
466
467 2009-10-26  Ben Elliston  <bje@au.ibm.com>
468             Michael Meissner  <meissner@linux.vnet.ibm.com>
469             Ulrich Weigand  <uweigand@de.ibm.com>
470
471         * doc/tm.texi (TARGET_ADDR_SPACE_KEYWORDS): Document.
472
473         * c-common.c (c_common_reswords): If TARGET_ADDR_SPACE_KEYWORDS is
474         defined, add the named address space keywords.
475         (c_addr_space_name): New function.
476         (complete_array_type): Preserve named address space.
477         (handle_mode_attribute): Use targetm.addr_space.valid_pointer_mode
478         instead of targetm.valid_pointer_mode.
479
480         * c-common.h (enum rid): Add RID_ADDR_SPACE_0 .. RID_ADDR_SPACE_15,
481         RID_FIRST_ADDR_SPACE and RID_LAST_ADDR_SPACE.
482         (ADDR_SPACE_KEYWORD): New macro.
483         (c_addr_space_name): Add prototype.
484
485         * c-tree.h (struct c_declspecs): Add address_space member.
486         (declspecs_add_addrspace): Add prototype.
487
488         * c-pretty-print.c (pp_c_type_qualifier_list): Handle address spaces.
489
490         * c-parser.c (c_parse_init): Add assertion.
491         (typedef enum c_id_kind): Add C_ID_ADDRSPACE.
492         (c_lex_one_token): Handle address space keywords.
493         (c_token_starts_typename): Likewise.
494         (c_token_starts_declspecs): Likewise.
495         (c_parser_declspecs): Likewise.
496         (c_parser_postfix_expression_after_paren_type): Diagnose compound
497         literal within function qualified with named address space.
498
499         * c-decl.c (diagnose_mismatched_decls): Diagnose conflicting named
500         address space qualifiers.
501         (shadow_tag_warned): Warn about useless address space qualifiers.
502         (quals_from_declspecs): Handle address space qualifiers.
503         (grokdeclarator): Likewise.
504         (build_null_declspecs): Likewise.
505         (declspecs_add_addrspace): New function.
506
507         * c-typeck.c (addr_space_superset): New function.
508         (qualify_type): Handle named address spaces.
509         (composite_type): Likewise.
510         (common_pointer_type): Likewise.
511         (comp_target_types): Likewise.
512         (build_conditional_expr): Likewise.
513         (handle_warn_cast_qual): Likewise.
514         (build_c_cast): Likewise.
515         (convert_for_assignment): Likewise.
516         (build_binary_op): Likewise.
517         (pointer_diff): Handle named address spaces.  Use intermediate
518         integer type of sufficient size if required.
519
520 2009-10-26  Ben Elliston  <bje@au.ibm.com>
521             Michael Meissner  <meissner@linux.vnet.ibm.com>
522             Ulrich Weigand  <uweigand@de.ibm.com>
523
524         * doc/tm.texi (TARGET_ADDR_SPACE_POINTER_MODE): Document.
525         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
526         (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
527
528         * target.h (struct target_def): Add pointer_mode, address_mode,
529         and valid_pointer_mode to addr_space substructure.
530         * target-def.h (TARGET_ADDR_SPACE_POINTER_MODE): Define.
531         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
532         (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
533         (TARGET_ADDR_SPACE_HOOKS): Add them.
534         * targhooks.c (target_default_pointer_address_modes_p): New function.
535         * target.h (target_default_pointer_address_modes_p): Add prototype.
536         * targhooks.c (default_addr_space_pointer_mode): New function.
537         (default_addr_space_address_mode): Likewise.
538         (default_addr_space_valid_pointer_mode): Likewise.
539         * targhooks.h (default_addr_space_pointer_mode): Add prototype.
540         (default_addr_space_address_mode): Likewise.
541         (default_addr_space_valid_pointer_mode): Likewise.
542         * output.h (default_valid_pointer_mode): Move to ...
543         * targhooks.h (default_valid_pointer_mode): ... here.
544         * varasm.c (default_valid_pointer_mode): Move to ...
545         * targhooks.c (default_valid_pointer_mode): ... here.
546
547         * varasm.c (output_constant): Use targetm.addr_space.valid_pointer_mode
548         instead of targetm.valid_pointer_mode.
549
550         * fold-const.c (fit_double_type): Use int_or_pointer_precision.
551         * tree.c (integer_pow2p): Likewise.
552         (tree_log2): Likewise.
553         (tree_floor_log2): Likewise.
554         (signed_or_unsigned_type_for): Support pointer type of different size.
555         (int_or_pointer_precision): New function.
556         * tree.h (int_or_pointer_precision): Add prototype.
557         * stor-layout.c (layout_type): Set TYPE_PRECISION for offset types.
558         * varasm.c (initializer_constant_valid_p): Use TYPE_PRECISION of
559         incoming pointer type instead of POINTER_SIZE.
560
561         * tree.c (build_pointer_type): Use appropriate pointer mode
562         instead of ptr_mode.
563         (build_reference_type): Likewise.
564         * expr.c (store_expr): Likewise.
565         (expand_expr_addr_expr): Likewise.
566         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
567         * cfgexpand.c (expand_debug_expr): Likewise.
568
569         * auto-inc-dec.c: Include "target.h".
570         (try_merge): Use appropriate address mode instead of Pmode.
571         (find_inc): Likewise.
572         * combine.c (find_split_point): Likewise.
573         * cselib.c (cselib_record_sets): Likewise.
574         * dse.c (replace_inc_dec): Likewise.
575         (canon_address): Likewise.
576         * var-tracking.c (replace_expr_with_values): Likewise.
577         (count_uses): Likewise.
578         (add_uses): Likewise.
579         (add_stores): Likewise.
580         * emit-rtl.c: Include "target.h".
581         (adjust_address_1): Use appropriate address mode instead of Pmode.
582         (offset_address): Likewise.
583         * explow.c (break_out_memory_refs): Likewise.
584         (memory_address_addr_space): Likewise.
585         (promote_mode): Likewise.
586         * expr.c (move_by_pieces): Likewise.
587         (emit_block_move_via_loop): Likewise.
588         (store_by_pieces): Likewise.
589         (store_by_pieces_1): Likewise.
590         (expand_assignment): Likewise.
591         (store_constructor): Likewise.
592         (expand_expr_addr_expr): Likewise.
593         (expand_expr_real_1): Likewise.
594         * cfgexpand.c (expand_debug_expr): Likewise.
595         * ifcvt.c (noce_try_cmove_arith): Likewise.
596         * regcprop.c (kill_autoinc_value): Likewise.
597         * regmove.c (try_auto_increment): Likewise.
598         * reload.c (find_reloads): Likewise.
599         (find_reloads_address): Likewise.
600         (find_reloads_address_1): Likewise.
601         * sched-deps.c: Include "target.h".
602         (sched_analyze_1): Use appropriate address mode instead of Pmode.
603         (sched_analyze_2): Likewise.
604         * sel-sched-dump.c: Include "target.h".
605         (debug_mem_addr_value): Use appropriate address mode instead of Pmode.
606         * stor-layout.c (layout_type): Likewise.
607         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
608         (multiplier_allowed_in_address_p): Likewise.
609         (get_address_cost): Likewise.
610         * varasm.c (make_decl_rtl): Likewise.
611
612         * expr.c (expand_assignment): Always convert offsets to appropriate
613         address mode.
614         (store_expr): Likewise.
615         (store_constructor): Likewise.
616         (expand_expr_real_1): Likewise.
617
618         * reload.h (form_sum): Add MODE argument.
619         * reload.c (form_sum): Add MODE argument, use it instead of Pmode.
620         Update recursive calls.
621         (subst_indexed_address): Update calls to form_sum.
622
623         * tree-flow.h (addr_for_mem_ref): Add ADDRSPACE argument.
624         * tree-ssa-address.c: Include "target.h".
625         (templates): Replace by ...
626         (mem_addr_template_list): ... this new vector.
627         (TEMPL_IDX): Handle address space numbers.
628         (gen_addr_rtx): Add address mode argument, use it instead of Pmode.
629         (addr_for_mem_ref): Add ADDRSPACE argument.  Use per-address-space
630         instead of global cache.  Update call to gen_addr_rtx.
631         (valid_mem_ref_p): Update call to addr_for_mem_ref.
632         * expr.c (expand_expr_real_1): Update call to addr_for_mem_ref.
633
634         * rtl.h (convert_memory_address_addr_space): Add prototype.
635         (convert_memory_address): Define as macro.
636         * explow.c (convert_memory_address): Rename to ...
637         (convert_memory_address_addr_space): ... this.  Add ADDRSPACE argument.
638         Use appropriate pointer and address modes instead of ptr_mode / Pmode.
639         Update recursive calls.
640         (memory_address_addr_space): Call convert_memory_address_addr_space.
641         * expmed.c (make_tree): Likewise.
642         * expr.c (expand_assignment): Likewise.
643         (expand_expr_addr_expr_1): Likewise.  Also, add ADDRSPACE argument.
644         (expand_expr_addr_expr): Likewise.  Also, update call.
645
646         * alias.c (find_base_value): Guard pointer size optimizations.
647         (find_base_term): Likewise.
648         * rtlanal.c (nonzero_bits1): Likewise.
649         (num_sign_bit_copies1): Likewise.
650         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
651
652         * Makefile.in (tree-ssa-address.o): Add $(TARGET_H) dependency.
653         (emit-rtl.o): Likewise.
654         (auto-inc-dec.o): Likewise.
655         (sched-deps.o): Likewise.
656
657 2009-10-26  Ben Elliston  <bje@au.ibm.com>
658             Michael Meissner  <meissner@linux.vnet.ibm.com>
659             Ulrich Weigand  <uweigand@de.ibm.com>
660
661         * doc/extend.texi (Named Address Spaces): New section.
662         * coretypes.h (addr_space_t): New type.
663         (ADDR_SPACE_GENERIC): New define.
664         (ADDR_SPACE_GENERIC_P): New macro.
665
666         * doc/tm.texi (Named Address Spaces): New section.
667         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Document.
668         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Document.
669         (TARGET_ADDR_SPACE_SUBSET_P): Document.
670         (TARGET_ADDR_SPACE_CONVERT): Document.
671         * target.h (struct gcc_target): Add addr_space substructure.
672         * target-def.h (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
673         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
674         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
675         (TARGET_ADDR_SPACE_CONVERT): Likewise.
676         (TARGET_ADDR_SPACE_HOOKS): Likewise.
677         (TARGET_INITIALIZER): Initialize addr_space hooks.
678         * targhooks.c (default_addr_space_legitimate_address_p): New function.
679         (default_addr_space_legitimize_address): Likewise.
680         (default_addr_space_subset_p): Likewise.
681         (default_addr_space_convert): Likewise.
682         * targhooks.h (default_addr_space_legitimate_address_p): Add prototype.
683         (default_addr_space_legitimize_address): Likewise.
684         (default_addr_space_subset_p): Likewise.
685         (default_addr_space_convert): Likewise.
686
687         * doc/rtl.texi (MEM_ADDR_SPACE): Document.
688         * rtl.h (mem_attrs): Add ADDRSPACE memory attribute.
689         (MEM_ADDR_SPACE): New macro.
690         * emit-rtl.c (get_mem_attrs): Add ADDRSPACE argument and set
691         address space memory attribute.
692         (mem_attrs_htab_hash): Handle address space memory attribute.
693         (mem_attrs_htab_eq): Likewise.
694         (set_mem_attributes_minus_bitpos): Likewise.
695         (set_mem_alias_set): Likewise.
696         (set_mem_align): Likewise.
697         (set_mem_expr): Likewise.
698         (set_mem_offset): Likewise.
699         (set_mem_size): Likewise.
700         (adjust_address_1): Likewise.
701         (offset_address): Likewise.
702         (widen_memoy_address): Likewise.
703         (get_spill_slot_decl): Likewise.
704         (set_mem_attrs_for_spill): Likewise.
705         (set_mem_addr_space): New function.
706         * emit-rtl.h (set_mem_addr_space): Add prototype.
707         * print-rtl.c (print_rtx): Print address space memory attribute.
708         * expr.c (expand_assignment): Set address space memory attribute
709         of generated MEM RTXes as appropriate.
710         (expand_expr_real_1): Likewise.
711         * cfgexpand.c (expand_debug_expr): Likewise.
712         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
713
714         * tree.h (struct tree_base): Add address_space bitfield.  Reduce
715         size of "spare" bitfield.
716         (TYPE_ADDR_SPACE): New macro.
717         (ENCODE_QUAL_ADDR_SPACE): Likewise.
718         (DECODE_QUAL_ADDR_SPACE): Likewise.
719         (CLEAR_QUAL_ADDR_SPACE): Likewise.
720         (KEEP_QUAL_ADDR_SPACE): Likewise.
721         (TYPE_QUALS): Encode type address space.
722         (TYPE_QUALS_NO_ADDR_SPACE): New macro.
723         * tree.c (set_type_quals): Set type address space.
724         (build_array_type): Inherit array address space from element type.
725         * print-tree.c (print_node_brief): Print type address space.
726         (print_node): Likewise.
727         * tree-pretty-print.c (dump_generic_node): Likewise.
728
729         * explow.c (memory_address): Rename to ...
730         (memory_address_addr_space): ... this.  Add ADDRSPACE argument.
731         Use address-space aware variants of memory address routines.
732         * recog.c (memory_address_p): Rename to ...
733         (memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
734         Use address-space aware variants of memory address routines.
735         (offsettable_address_p): Rename to ...
736         (offsettable_address_addr_space_p): ... this.  Add ADDRSPACE argument.
737         Use address-space aware variants of memory address routines.
738         * reload.c (strict_memory_address_p): Rename to ...
739         (strict_memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
740         Use address-space aware variants of memory address routines.
741         (maybe_memory_address_p): Rename to ...
742         (maybe_memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
743         Use address-space aware variants of memory address routines.
744         * expr.h (memory_address_addr_space): Add prototype.
745         (memory_address): Define as macro.
746         * recog.h (memory_address_addr_space_p): Add prototype.
747         (memory_address_p): Define as macro.
748         (offsettable_address_addr_space_p): Add prototype.
749         (offsettable_address_p): Define as macro.
750         (strict_memory_address_addr_space_p): Add prototype.
751         (strict_memory_address_p): Define as macro.
752
753         * combine.c (find_split_point): Use address-space aware variants
754         of memory address routines.
755         * emit-rtl.c (operand_subword): Likewise.
756         (change_address_1): Likewise.
757         (adjust_address_1): Likewise.
758         (offset_address): Likewise.
759         * expr.c (emit_move_insn): Likewise.
760         (expand_assignment): Likewise.
761         (expand_expr_real_1): Likewise.
762         * recog.c (verify_changes): Likewise.
763         (general_operand): Likewise.
764         (offsettable_memref_p): Likewise.
765         (offsettable_nonstrict_memref_p): Likewise.
766         (constrain_operands): Likewise.
767         * reload.c (get_secondary_mem): Likewise.
768         (find_reloads_toplev): Likewise.
769         (find_reloads_address): Likewise.
770         (find_reloads_subreg_address): Likewise.
771         * reload1.c (reload): Likewise.
772         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
773         * rtl.h (address_cost): Add ADDRSPACE argument.
774         * rtlanal.c (address_cost): Add ADDRSPACE argument.  Use address-space
775         aware variant of memory address routines.
776         * loop-invariant.c (create_new_invariant): Update address_cost call.
777         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
778         * fwprop.c (should_replace_address): Add ADDRSPACE argument.
779         Use address-space aware variant of memory address routines.
780         (propagate_rtx_1): Update call to should_replace_address.
781         * tree-flow.h (multiplier_allowed_in_address_p): Add ADDRSPACE
782         argument.
783         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Add
784         ADDRSPACE argument.  Use per-address-space instead of global cache.
785         Use address-space aware variant of memory address routines.
786         (get_address_cost): Likewise.
787         (get_computation_cost_at): Update calls.
788         * tree-ssa-address.c (valid_mem_ref_p): Add ADDRSPACE argument.
789         Use address-space aware variant of memory address routines.
790         (create_mem_ref_raw): Update call to valid_mem_ref_p.
791         (most_expensive_mult_to_index): Update call to
792         multiplier_allowed_in_address_p.
793
794         * dwarf2out.c (modified_type_die): Output DW_AT_address_class
795         attribute to indicate named address spaces.
796
797         * varasm.c (get_variable_section): DECLs in named address spaces
798         cannot be "common".
799
800         * reload.c (find_reloads_address): Do not use LEGITIMIZE_RELOAD_ADDRESS
801         for addresses in a non-generic address space.
802
803         * expr.c (emit_block_move_hints): Do not use libcalls for
804         memory in non-generic address spaces.
805         (clear_storage_hints): Likewise.
806         (expand_assignment): Likewise.
807
808         * fold-const.c (operand_equal_p): Expressions refering to different
809         address spaces are not equivalent.
810
811         * rtl.c (rtx_equal_p_cb): MEMs refering to different address
812         spaces are not equivalent.
813         (rtx_equal_p): Likewise.
814         * cse.c (exp_equiv_p): Likewise.
815         * jump.c (rtx_renumbered_equal_p): Likewise.
816         * reload.c (operands_match_p): Likewise.
817
818         * alias.c (nonoverlapping_memrefs_p): MEMs refering to different
819         address spaces may alias.
820         (true_dependence): Likewise.
821         (canon_true_dependence): Likewise.
822         (write_dependence_p): Likewise.
823
824         * dse.c (canon_address): Handle named address spaces.
825         * ifcvt.c (noce_try_cmove_arith): Likewise.
826
827         * tree.def (ADDR_SPACE_CONVERT_EXPR): New tree code.
828         * expr.c (expand_expr_real_2): Expand ADDR_SPACE_CONVERT_EXPR.
829         * convert.c (convert_to_pointer): Generate ADDR_SPACE_CONVERT_EXPR
830         to handle conversions between different address spaces.
831         * fold-const.c (fold_convert_loc): Likewise.
832         (fold_unary_loc): Handle ADDR_SPACE_CONVERT_EXPR.
833         * tree-pretty-print.c (dump_generic_node): Likewise.
834         * gimple-pretty-print.c (dump_unary_rhs): Likewise.
835         * tree-cfg.c (verify_gimple_assign_unary): Likewise.
836         * tree-inline.c (estimate_operator_cost): Likewise.
837         * tree-ssa.c (useless_type_conversion_p): Conversions between pointers
838         to different address spaces are not useless.
839
840 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
841
842         PR bootstrap/41345
843         * cfgcleanup.c (trivially_empty_bb_p): New function.
844         (try_optimize_bb): Use it instead of checking BB_HEAD == BB_END.
845
846         PR debug/41828
847         * dwarf2out.c (add_pubname, add_pubtype, generic_parameter_die,
848         add_name_and_src_coords_attributes, gen_namespace_die,
849         dwarf2out_set_name): Handle dwarf2_name returning NULL.
850
851 2009-10-26  Nick Clifton  <nickc@redhat.com>
852
853         * config.gcc: Add support for RX target.
854         * config/rx: New directory.
855         * config/rx/constraints.md: New file.
856         * config/rx/predicates.md: New file.
857         * config/rx/rx.c: New file.
858         * config/rx/rx.h: New file.
859         * config/rx/rx.md: New file.
860         * config/rx/rx.opt: New file.
861         * config/rx/rx-protos.h: New file.
862         * config/rx/t-rx: New file.
863         * doc/extend.texi: Document RX function attributes.
864         * doc/invoke.texi: Document RX specific command line options.
865         * doc/contrib.texi: Document RX contribution.
866         * doc/md.texi: Document RX constraints.
867         * doc/install.texi: Document RX support.
868
869 2009-10-26  Michael Matz  <matz@suse.de>
870
871         PR tree-optimization/41783
872         * tree-ssa-alias.c (get_continuation_for_phi): Export, add a special
873         case for simple diamonds.
874         * tree-ssa-alias.h (get_continuation_for_phi): Declare.
875         * tree-ssa-pre.c (translate_vuse_through_block): Add same_valid
876         argument, use alias oracle to skip some vdefs.
877         (phi_translate_1): Change call to above, don't allocate new
878         value ids if they can stay the same.
879         (compute_avail): Allow vuse walking when looking up references.
880
881 2009-10-26  Richard Guenther  <rguenther@suse.de>
882
883         PR tree-optimization/41826
884         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Avoid
885         access to re-allocated vector fields.
886
887 2009-10-26  Richard Guenther  <rguenther@suse.de>
888
889         * graphite-sese-to-poly.c (check_poly_representation): Fix
890         compile without checking.
891
892 2009-10-26  Janus Weil  <janus@gcc.gnu.org>
893
894         PR fortran/41714
895         * gimple.h (tree_annotate_all_with_location): Remove prototype.
896         * gimplify.c (tree_should_carry_location_p,
897         tree_annotate_one_with_location,tree_annotate_all_with_location):
898         Remove obsolete functions.
899
900 2009-10-25  Kaz Kojima  <kkojima@gcc.gnu.org>
901
902         PR target/41813
903         * config/sh/sh.md (stuff_delay_slot): Don't set T_REG in pattern.
904
905 2009-10-25  Richard Guenther  <rguenther@suse.de>
906
907         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
908         Stream DECL_RESTRICTED_P.
909         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
910
911 2009-10-25  Richard Sandiford  <rdsandiford@googlemail.com>
912
913         * config/mips/mips.c (mips_restore_gp_from_cprestore_slot): Emit
914         a note when expanding to nothing.
915
916 2009-10-25  Richard Guenther  <rguenther@suse.de>
917
918         PR middle-end/41814
919         * tree.c (find_decls_types_r): Deal with Java overloading
920         BINFO_VIRTUALS for its own purpose.
921
922 2009-10-24  Adam Nemet  <anemet@caviumnetworks.com>
923
924         * config/mips/predicates.md (hilo_operand): New predicate.
925         * config/mips/mips.md (<u>mulsidi3_64bit): Change it to a
926         define_insn.  Correct !ISA_HAS_EXT_INS length from 24 to 28.  Move
927         splitter part from here ...:
928         (<u>mulsidi3_64bit splitter for !ISA_HAS_EXT_INS): ... to here.  Swap
929         op0 and op4 to match the DINS case.
930         (<u>mulsidi3_64bit splitter for ISA_HAS_EXT_INS): New splitter.
931
932 2009-10-24  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
933
934         PR middle-end/19154
935         * avr.md (QIDI): Add new mode iterator.
936         (sbrx_branch<mode>): Create new zero extract bit, test and jump
937         patterns for all QI thru DI modes combinations.
938         (sbrx_and_branch<mode>): Create new and based bit test and jump
939         patterns for QI thru SI modes.
940         avr.c (avr_out_sbxx_branch): Use only bit number.
941
942 2009-10-24  Jan Hubicka  <jh@suse.cz>
943
944         * ipa-reference.c (check_call): Noreturn notrhow calls do not write
945         to memory.
946         (analyze_function): When analyzing noreturn nothrow call, do not
947         compute written stats; free bitmaps of vars early if possible.
948         (generate_summary): Only update bitmaps if computed.
949         (propagate): Only dump bitmaps if computed.
950         (ipa_reference_read_summary): Fix pasto.
951
952 2009-10-24  Eric Botcazou  <ebotcazou@adacore.com>
953
954         * tree-ssa-alias.c (nonaliasing_component_refs_p): Rename into...
955         (aliasing_component_refs_p): ...this.  Return true if there is no
956         common base and the base access types have the same alias set.
957         (indirect_ref_may_alias_decl_p): Adjust for above renaming.
958         (indirect_refs_may_alias_p): Likewise.
959
960 2009-10-23  Joseph Myers  <joseph@codesourcery.com>
961
962         PR c/40033
963         * c-typeck.c (c_finish_stmt_expr): Do not wrap error_mark_node in
964         a C_MAYBE_CONST_EXPR.
965
966 2009-10-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
967
968         PR target/41787
969         * config/rs6000/rs6000.c (struct machine_function): Add
970         vsx_or_altivec_used_p to record if vector types are used.
971         (rs6000_expand_to_rtl_hook): Rename from
972         rs6000_alloc_sdmode_stack_slot.  If VSX, check to see if there are
973         any vector operations, so if there are, we can set VRSAVE to
974         non-zero when only floating point vector registers are used.
975         (TARGET_EXPAND_TO_RTL_HOOK): Use rs6000_expand_to_rtl_hook.
976         (rs6000_check_vector_mode): Inner function to check if vector
977         types are used in the code.
978         (compute_vrsave_mask): If VSX, make sure VRSAVE is non-zero if
979         vector instructions are used.
980
981         * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED):
982         Indicate that VSX registers which overlap floating point
983         registers, can't be used across a call, since the ABI only states
984         the scalar part of the register will be saved and restored.
985
986 2009-10-23  Joseph Myers  <joseph@codesourcery.com>
987
988         PR c/41673
989         * alias.c (get_alias_set): Call langhook before returning 0 for
990         types with structural equality.
991         * c-common.c (c_common_get_alias_set): Use alias set of element
992         type for arrays with structural comparison.
993
994 2009-10-23  Richard Guenther  <rguenther@suse.de>
995
996         PR middle-end/41805
997         * cfgexpand.c (expand_call_stmt): Use gimple_has_side_effects and
998         gimple_call_nothrow_p.
999
1000 2009-10-23  Richard Guenther  <rguenther@suse.de>
1001
1002         PR tree-optimization/41778
1003         * tree-ssa-pre.c (do_regular_insertion): Only insert if a
1004         redundancy along a path in the CFG we want to optimize for speed
1005         is going to be removed.
1006         (execute_pre): Do partial-PRE only if the function is to be
1007         optimized for speed.
1008         (gate_pre): Do not turn off all of PRE when not optimizing a
1009         function for speed.
1010
1011 2009-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1012
1013         * builtins.c (fold_builtin_cabs): Use validate_arg().
1014         (fold_builtin_cexp): Fix if-logic.
1015         (fold_builtin_1): Check subtype for BUILT_IN_CIMAG.
1016
1017 2009-10-22  Jeff Law  <law@redhat.com>
1018
1019         * ira-lives.c (process_single_reg_class_operands): Update the
1020         hard reg costs for all the hard registers desired by the
1021         single reg class operand.
1022
1023 2009-10-22  Richard Sandiford  <rdsandiford@googlemail.com>
1024
1025         * simplify-rtx.c (simplify_replace_fn_rtx): Add a fallback case
1026         for rtxes that aren't handled specially.
1027
1028 2009-10-22  Richard Sandiford  <rdsandiford@googlemail.com>
1029
1030         * rtl.h (shallow_copy_rtvec): Declare.
1031         * rtl.c (shallow_copy_rtvec): New function.
1032         * cselib.c (cselib_subst_to_values): Use it.  Only modify an
1033         rtx field if the subrtx has changed.
1034
1035 2009-10-22  Anatoly Sokolov  <aesok@post.ru>
1036
1037         * config/m32c/m32c.c (m32c_function_value_regno_p): New function.
1038         (m32c_function_value): Make static, add new 'outgoing' argument.
1039         (m32c_libcall_value): Make static, add new 'fun' argument.
1040         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
1041         * config/m32c/m32c.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
1042         (FUNCTION_VALUE_REGNO_P): Redefine, use m32c_function_value_regno_p.
1043         * config/m32c/m32c-protos.h (m32c_function_value_regno_p): Declare.
1044         (m32c_function_value, m32c_libcall_value): Delete declaration.
1045
1046 2009-10-22  Diego Novillo  <dnovillo@google.com>
1047
1048         * Makefile.in (PLUGIN_HEADERS): Add output.h and IPA_UTILS_H.
1049
1050 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
1051
1052         * tree-cfg.c (gimple_duplicate_sese_tail): Fix typos/indentation/white
1053         space.
1054
1055 2009-10-22  Richard Guenther  <rguenther@suse.de>
1056
1057         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Declare.
1058         * lto-symtab.c (struct lto_symtab_entry_def): Add node member.
1059         (lto_symtab_merge): Do not merge cgraph nodes here.
1060         (lto_symtab_resolve_can_prevail_p): Simplify.
1061         (lto_symtab_resolve_symbols): Store cgraph node.
1062         (lto_symtab_merge_decls_1): Simplify.  Do not drop non-prevailing
1063         functions from the symtab.
1064         (lto_symtab_merge_cgraph_nodes_1): New function.
1065         (lto_symtab_merge_cgraph_nodes): Likewise.
1066
1067 2009-10-22  Richard Guenther  <rguenther@suse.de>
1068
1069         PR lto/41791
1070         * lto-streamer-out.c (lto_output_location): Stream the
1071         system header flag.
1072         * lto-streamer-in.c (lto_input_location): Likewise.
1073
1074 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
1075
1076         * cfgloopmanip.c (duplicate_subloops): Export.
1077         * tree-parloops.c (loop_parallel_p): Dump if loop is innermost.
1078         (transform_to_exit_first_loop): Duplicate bbs starting from
1079         header up to loop->latch instead of exit->src.
1080         Initialize control variable to the correct number of iterations.
1081         (gather_scalar_reductions): Do not register double reductions.
1082         (parallelize_loops): Dump which loop is tested.
1083         Indicate whether the parallelized loop is inner or not.
1084         Remove the innermost-loop requirement.
1085         * cfgloop.h (duplicate_subloops): Export.
1086         * tree-cfg.c (add_phi_args_after_redirect): New function.
1087         (gimple_duplicate_sese_tail): Remove the no-subloops constraint.
1088         Call duplicate_subloops.
1089         Update number of iterations at the exit condition.
1090         Don't redirect nexits always to the loop exit.
1091         Redirect copied edges from latch to the loop exit.
1092
1093 2009-10-22  Jan Hubicka  <jh@suse.cz>
1094
1095         * ipa-cp.c (ipcp_read_summary): Remove now invalid FIXME and
1096         flag_ltrans check.
1097         * ipa-inline.c (cgraph_mark_inline_edge,
1098         cgraph_decide_inlining_of_small_function,
1099         cgraph_decide_inlining, inline_read_summary): Disable indirect
1100         inlining for WPA for time being.
1101
1102         PR tree-optimize/40556
1103         * ipa-inline.c (cgraph_early_inlining): Fix iterations condition.
1104
1105 2009-10-22  Richard Guenther  <rguenther@suse.de>
1106
1107         * lto-streamer.h (lto_symtab_clear_resolution): Remove.
1108         * lto-symtab.c (lto_symtab_clear_resolution): Likewise.
1109
1110 2009-10-22  Jan Hubicka  <jh@suse.cz>
1111
1112         PR lto/41730
1113         * ipa-reference.c (has_proper_scope_for_analysis): Add fixme about
1114         global vars.
1115         (check_call): Handle only indirect calls.
1116         (propagate_bits): Update comment.
1117         (write_node_summary_p): Turn bogus check to assert.
1118         (ipa_reference_write_summary): Stream calls_read_all properly.
1119         (ipa_reference_read_summary): Stream in calls_read_all properly.
1120         (read_write_all_from_decl): New function.
1121         (propagate): Handle OVERWRITABLE nodes and external calls here.
1122         * ipa-pre-const.c (check_call): In IPA mode handle indirect
1123         calls only.
1124         (analyze_function): Do not check visibility here.
1125         (add_new_function): We summary OVERWRITABLE too.
1126         (generate_summary): Stream OVERWRITABLE nodes too.
1127         (propagate): Handle external calls and OVERWRITABLE nodes here.
1128         (local_pure_const): Check visibility here.
1129
1130 2009-10-22  Jan Hubicka  <jh@suse.cz>
1131
1132         * ipa-cp.c (ipcp_write_summary, ipcp_read_summary): New functions.
1133         (pass_ipa_cp): Register them.
1134         (ipcp_init_stage): Analyze all functions for whopr/lto.
1135         (ipcp_propagate_stage): Skip external calls.
1136         (ipcp_iterate_stage): Call ipa_update_after_lto_read if needed.
1137         * ipa-reference.c (write_node_summary_p): Fix thinko about
1138         availability.
1139         * cgraphunit.c (ipa_passes): When in lto, ne er produce new summaries;
1140         when in ltrans, skip executing of ipa passes since everything
1141         should've been done.
1142         * ipa-inline.c (cgraph_decide_inlining): Remove FIXMEs.
1143         (inline_generate_summary): Likewise.
1144         (inline_read_summary): New function.
1145         (inline_write_summary): New function.
1146         (pass_ipa_inline): Register new hooks.
1147         * ipa-prop.c: Inlcude lto-streamer.h
1148         (ipa_edge_args_vector): Update declaration.
1149         (ipa_count_arguments, ipa_compute_jump_functions,
1150         ipa_free_edge_args_substructures): Move ipa_edge_args_vector into ggc.
1151         (ipa_write_jump_function, ipa_read_jump_function, ipa_write_node_info,
1152         ipa_read_node_info): New static functions.
1153         (ipa_prop_write_jump_functions, ipa_prop_read_jump_functions): Update.
1154         (duplicate_array): Use xmalloc.
1155         (duplicate_ggc_array): New.
1156         (ipa_edge_duplication_hook): Use it.
1157         (ipa_update_after_lto_read): New function.
1158         * ipa-prop.h (ipa_prop_write_jump_functions,
1159         ipa_prop_read_jump_functions): Declare.
1160         (ipa_pass_through_data, ipa_ancestor_jf_data, ipa_member_ptr_cst,
1161         jump_func_value, ipa_member_ptr_cst, ipa_edge_args): Add GTY markers.
1162         (ipa_edge_args_vector): Move into GGC.
1163         (ipa_check_create_edge_args): Update.
1164         (ipa_update_after_lto_read): New.
1165         * passes.c (ipa_write_summaries_1): When in wpa, do not write
1166         summaries.
1167         (ipa_read_summaries): When in ltrans, so not read summaries.
1168         * lto-streamer.c (lto_get_section_name): Add
1169         LTO_section_jump_functions.
1170         * lto-streamer.h (LTO_section_jump_functions): New section.
1171         (produce_asm): Declare.
1172         * lto-cgraph.c (output_cgraph): Output edges in reverse order.
1173         * lto-streamer-out.c (produce_asm): Export.
1174         * lto-streamer-in.c: Include tree-pass.h
1175         (input_function): Free dominance info when done.
1176         (lto_read_body): Push ipa_inline in ltrans stage.
1177         * gengtype.c (open_base_files): Add ipa-prop.h into includes.
1178         * Makefile.in (GTFILES): Add ipa-prop.h
1179
1180 2009-10-22  Matthias Klose  <doko@ubuntu.com>
1181
1182         * doc/install.texi: Document --enable-browser-plugin.
1183
1184 2009-10-21  Vladimir Makarov  <vmakarov@redhat.com>
1185
1186         * doc/invoke.texi (fira-loop-pressure): Update default value.
1187         * opts.c (decode_options): Remove default value setting for
1188         flag_ira_loop_pressure.
1189         * config/ia64/ia64.c (ia64_override_options): Set
1190         flag_ira_loop_pressure up for -O3.
1191         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
1192
1193 2009-10-21  Sebastian Pop  <sebastian.pop@amd.com>
1194
1195         PR tree-optimization/41497
1196         * tree-scalar-evolution.c (analyze_evolution_in_loop): Return
1197         chrec_dont_know if the evolution function returned by follow_ssa_edge
1198         is constant in the analyzed loop and is not compatible with the
1199         initial value before the loop.
1200         * tree-chrec.h (no_evolution_in_loop_p): Call STRIP_NOPS.
1201
1202 2009-10-21  Joseph Myers  <joseph@codesourcery.com>
1203
1204         * config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
1205
1206 2009-10-21  Jakub Jelinek  <jakub@redhat.com>
1207
1208         PR other/25507
1209         * doc/invoke.texi: Document -print-multi-os-directory.
1210
1211 2009-10-21  Jack Howarth  <howarth@bromo.med.uc.edu>
1212
1213         PR c++/41313
1214         * gcc/config/darwin10.h: Use default_emit_unwind_label.
1215         * gcc/config/darwin.c: Disable -freorder-blocks-and-partition
1216         when darwin_emit_unwind_label is used.
1217
1218 2009-10-21  Eric Botcazou  <ebotcazou@adacore.com>
1219
1220         * tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak
1221         order of checks.
1222
1223 2009-10-20  Richard Henderson  <rth@redhat.com>
1224
1225         * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1
1226         before emit_post_landing_pad.
1227
1228 2009-10-20  Adam Nemet  <anemet@caviumnetworks.com>
1229
1230         * config/mips/mips.c (mips_binary_cost): Add new argument speed.
1231         Use when calling rtx_costs.
1232         (mips_rtx_costs): Fix formatting.  Use argument speed rather than the
1233         global optimize_size.  Pass speed to mips_binary_cost.
1234
1235 2009-10-20  Jakub Jelinek  <jakub@redhat.com>
1236
1237         * config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
1238         of TREE_CONSTANT.
1239
1240 2009-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
1241
1242         * rtl.h (simplify_replace_fn_rtx): Declare.
1243         (wrap_constant, unwrap_constant): Delete.
1244         * cfgexpand.c (unwrap_constant, wrap_constant): Delete.
1245         (expand_debug_expr): Don't call wrap_constant.
1246         * combine.c (rtx_subst_pair): Only define for AUTO_INC_DEC.
1247         (auto_adjust_pair): Fold into...
1248         (propagate_for_debug_subst): ...here.  Only define for AUTO_INC_DEC.
1249         Just return a new value.
1250         (propagate_for_debug): Use simplify_replace_fn_rtx for AUTO_INC_DEC,
1251         otherwise use simplify_replace_rtx.
1252         * cselib.c (wrap_constant): Reinstate old definition.
1253         (cselib_expand_value_rtx_1): Don't wrap constants.
1254         * gcse.c (try_replace_reg): Don't use copy_rtx in the call to
1255         simplify_replace_rtx.
1256         (bypass_block): Fix formatting in calls to simplify_replace_rtx.
1257         * reload1.c (reload): Skip all uses for an insn before adjusting it.
1258         Use simplify_replace_rtx.
1259         * simplify-rtx.c (simplify_replace_fn_rtx): New function,
1260         adapted from...
1261         (simplify_replace_rtx): ...here.  Turn into a wrapper for
1262         simplify_replace_fn_rtx.
1263         (simplify_unary_operation): Don't unwrap CONSTs.
1264         * var-tracking.c (check_wrap_constant): Delete.
1265         (vt_expand_loc_callback): Don't call it.
1266         (vt_expand_loc): Likewise.
1267
1268 2009-10-20  Pascal Obry  <obry@adacore.com>
1269             Eric Botcazou  <ebotcazou@adacore.com>
1270
1271         * config/i386/cygming.h (DWARF_FRAME_REGNUM): Add enclosing parens.
1272
1273 2009-10-20  Michael Matz  <matz@suse.de>
1274
1275         * loop-invariant.c (create_new_invariant): Use different magic number.
1276
1277 2009-10-20  Richard Earnshaw  <rearnsha@arm.com>
1278
1279         PR target/39247
1280         * arm.c (arm_override_options): Forcibly disable hot/cold block
1281         partitioning.
1282
1283 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
1284
1285         PR debug/41739
1286         * haifa-sched.c (try_ready): Skip debug deps updating speculation
1287         status.
1288
1289 2009-10-20  Richard Guenther  <rguenther@suse.de>
1290
1291         * ggc-page.c: Include cfgloop.h.
1292         (struct max_alignment): Drop long double, add void *.
1293         (extra_order_size_table): Add low non-power-of-two multiples
1294         of MAX_ALIGNMENT.  Drop small type-based entries, add
1295         tree_type, cgraph_node and loop.
1296         * alloc-pool.c (struct allocation_object_def): Drop long double
1297         aligning element.
1298
1299 2009-10-20  Jakub Jelinek  <jakub@redhat.com>
1300
1301         PR debug/41340
1302         * loop-invariant.c (calculate_loop_reg_pressure): Don't count regs
1303         referenced just in DEBUG_INSNs.
1304
1305 2009-10-20  Richard Guenther  <rguenther@suse.de>
1306
1307         PR lto/41761
1308         * gimple.c (gimple_register_type): Make sure we register
1309         the types main variant first.
1310
1311 2009-10-20  Richard Guenther  <rguenther@suse.de>
1312
1313         * gimple.c (gimple_types_compatible_p): Simplify.  Move
1314         cheap checks before hashtable queries.  Add checks for
1315         TYPE_NONALIASED_COMPONENT and DECL_NONADDRESSABLE_P.
1316
1317 2009-10-20  Eric Botcazou  <ebotcazou@adacore.com>
1318
1319         * tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
1320         without size or with size that can't be represented as a host integer.
1321
1322 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
1323
1324         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
1325         the removal of a debug stmt as a significant change.
1326
1327 2009-10-20  Wolfgang Gellerich  <gellerich@de.ibm.com>
1328
1329         * config/s390/s390.md: Added agen condition to operand
1330         forwarding bypasses.  Added bypass for early address generation
1331         use of int results.  Updated comments.
1332
1333 2009-10-20  Stefan Dösinger  <stefan@codeweavers.com>
1334
1335         * config/i386/i386.c: Remove signal.h #include.
1336
1337 2009-10-20  Jie Zhang  <jie.zhang@analog.com>
1338
1339         * simplify-rtx.c (simplify_const_unary_operation): Handle SS_ABS.
1340         * doc/rtl.texi: Document ss_abs.
1341
1342 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
1343
1344         * c-common.c (c_parse_error): Handle CPP_UTF8STRING.
1345         * c-lex.c (c_lex_with_flags): Likewise.  Test C_LEX_STRING_NO_JOIN
1346         instead of C_LEX_RAW_STRINGS.
1347         (lex_string): Handle CPP_UTF8STRING.
1348         * c-parser.c (c_parser_postfix_expression): Likewise.
1349         * c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
1350         (C_LEX_STRING_NO_JOIN): ... this.
1351
1352 2009-10-19  Anatoly Sokolov  <aesok@post.ru>
1353
1354         * config/cris/cris.c (cris_function_value, cris_libcall_value,
1355         cris_function_value_regno_p): New functions.
1356         (cris_promote_function_mode): Update comment.
1357         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
1358         * config/cris/cris.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
1359         (FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
1360         * config/cris/cris-protos.h (cris_function_value_regno_p): Declare.
1361
1362 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
1363
1364         * unwind-dw2.c (execute_stack_op): Fix operand order for
1365         DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
1366
1367 2009-10-19  Eric Botcazou  <ebotcazou@adacore.com>
1368
1369         * gimple-low.c (struct lower_data): Add cannot_fallthru field.
1370         (lower_stmt) <GIMPLE_BIND>: Add comment.
1371         <GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
1372         and return.
1373         <GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
1374         Otherwise lower it and set cannot_fallthru to true.
1375         <GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
1376         <GIMPLE_CATCH, GIMPLE_EH_FILTER>: Set cannot_fallthru to false.
1377         <GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
1378         to true for a noreturn call.  Do not remove statements.
1379         <GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
1380         Set cannot_fallthru to false on function exit.
1381         (gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
1382         <GIMPLE_ASSIGN>: Remove.
1383
1384 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1385
1386         * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
1387
1388 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1389
1390         * config/s390/s390.c (s390_z10_optimize_cmp): Use
1391         next/prev_active_insn to skip DEBUG_INSNs as well.
1392
1393 2009-10-19  Joseph Myers  <joseph@codesourcery.com>
1394
1395         * config/arm/arm.c (output_move_neon): Use DImode in call to
1396         adjust_address.
1397
1398 2009-10-19  Matthias Klose  <doko@ubuntu.com>
1399
1400         PR target/40134
1401         * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
1402
1403 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
1404
1405         * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM op0.
1406
1407 2009-10-17  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
1408
1409         PR middle-end/41738
1410         * optabs.c (expand_binop): Make mode of shift count expression mode
1411         of shift count not target.
1412         Remove indent nit.
1413
1414 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1415
1416         * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
1417         case.  Force using values to replace references within the statement.
1418         (convert_local_reference_stmt): Likewise.
1419
1420 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1421
1422         * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
1423         remove a subsequent GOTO or RETURN statement.
1424
1425 2009-10-17  Andy Hutchinson  <hutchinsonandy@aim.com>
1426
1427         * config/avr.md (*movqi): Add zero as equally preferable constraint
1428         as general register.
1429         (*movhi): Ditto.
1430
1431 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1432
1433         * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
1434
1435 2009-10-17  Richard Guenther  <rguenther@suse.de>
1436
1437         * lto-streamer-in.c (lto_input_location): Try to reuse previous maps.
1438
1439 2009-10-17  Richard Guenther  <rguenther@suse.de>
1440
1441         * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
1442         operands in COMPONENT_REFs.
1443
1444 2009-10-17  Anatoly Sokolov  <aesok@post.ru>
1445
1446         * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
1447         if not defined. Change type of second argument to const_rtx.
1448         (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
1449         macro not defined.
1450         * targhooks.h (default_libcall_value): Update prototype.
1451         * target.h (struct gcc_target): Change type of second argument of
1452         libcall_value to const_rtx.
1453         * config/arm/arm.c (arm_libcall_value): Change type of second argument
1454         to const_rtx.
1455         (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
1456         * doc/tm.texi (TARGET_LIBCALL_VALUE):  Revise documentation.
1457
1458 2009-10-17  Jakub Jelinek  <jakub@redhat.com>
1459
1460         PR debug/40521
1461         * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
1462         * cgraphunit.c (cgraph_optimize): Call it.
1463         * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
1464         (dwarf2out_assembly_start): ... here.  New hook.
1465         (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
1466         * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
1467         hook.
1468         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
1469         * sdbout.c (sdb_debug_hooks): Likewise.
1470         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
1471         (vmsdbgout_assembly_start): New hook.
1472
1473 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
1474
1475         * rtl.h (RTL_LOCATION): Fix typo.
1476
1477 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
1478
1479         * print-rtl.c (print_rtx): Print locators in asm_operands
1480         and asm_input.
1481
1482 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
1483
1484         PR debug/41535
1485         * sched-deps.c (depl_on_debug_p): New.
1486         (attach_dep_link): Reject debug deps before nondebug deps.
1487         (add_to_deps_list): Insert debug deps after nondebug deps.
1488         (sd_lists_empty_p): Stop at first nonempty list.  Disregard debug
1489         deps.
1490         (sd_add_dep): Do not reject debug deps.
1491         (add_insn_mem_dependence): Don't count debug deps.
1492         (remove_from_deps): Likewise.
1493         (sched_analyze_2): Set up mem deps on debug insns.
1494         (sched_analyze_insn): Record reg uses for deps on debug insns.
1495         * haifa-sched.c (schedule_insn): Reset deferred debug insn.  Don't
1496         try_ready nondebug insn after debug insn.
1497         * ddg.c (create_ddg_dep_from_intra_loop_link,
1498         create_ddg_dep_no_link): Don't reject debug deps.
1499
1500 2009-10-16  Richard Guenther  <rguenther@suse.de>
1501
1502         * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
1503         (maybe_merge_incomplete_and_complete_type): Likewise.
1504         (lto_symtab_merge): Do not call them.  Do not warn for
1505         complete vs. incomplete compatible types.
1506         (lto_symtab_merge_decls_2): Simplify.
1507         * gimple.c (gimple_force_type_merge): Remove.
1508         (gimple_types_compatible_p): Make it static.
1509         * gimple.h (gimple_force_type_merge): Remove.
1510         (gimple_types_compatible_p): Likewise.
1511
1512 2009-10-16  Jakub Jelinek  <jakub@redhat.com>
1513
1514         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
1515         DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
1516
1517 2009-10-16  Richard Guenther  <rguenther@suse.de>
1518
1519         PR tree-optimization/41728
1520         * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
1521         if fold_stmt did anything.
1522
1523 2009-10-16  Richard Guenther  <rguenther@suse.de>
1524
1525         PR lto/41715
1526         * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
1527         (maybe_fixup_handled_component): New function.
1528         (input_gimple_stmt): Fixup mismatched decl replacements.
1529
1530 2009-10-16  Richard Guenther  <rguenther@suse.de>
1531
1532         PR lto/41713
1533         * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
1534         the same as VAR_DECL.
1535
1536 2009-10-16  Richard Guenther  <rguenther@suse.de>
1537
1538         * gimple.c (iterative_hash_gimple_type): For integer types
1539         also hash their minimum and maximum values and the string flag.
1540         For array types hash their domain and the string flag.
1541
1542 2009-10-16  Richard Guenther  <rguenther@suse.de>
1543
1544         * gimple.c (gimple_types_compatible_p): Restrict completing
1545         types to record or unions.  Simplify completion.
1546         Do not merge records or unions with different
1547         TYPE_STRUCTURAL_EQUALITY_P tag.
1548         (iterative_hash_gimple_type): Restrict non-recursing into
1549         pointer targets for records and unions.
1550
1551 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
1552
1553         PR debug/41717
1554         * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
1555         * dwarf2out.c (mem_loc_descriptor): Don't handle
1556         POST_INT/POST_DEC/POST_MODIFY like SUBREG.  For SUBREG
1557         punt if it is not lowpart subreg or if inner mode isn't
1558         MODE_INT.
1559
1560 2009-10-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1561
1562         * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
1563         investigating previous or next insns.
1564
1565 2009-10-16  Eric Botcazou  <ebotcazou@adacore.com>
1566
1567         * tree-sra.c (build_ref_for_offset_1): Update comment.
1568
1569 2009-10-16  Wolfgang Gellerich  <gellerich@de.ibm.com>
1570
1571         * config/s390/s390.md (atype): Added missing values.
1572
1573 2009-10-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1574
1575         PR target/41702
1576         * pa.md (casesi): Use sign extended index in call to gen_casesi64p.
1577         (casesi64p): Update pattern to reflect above.
1578
1579 2009-10-15  Steve Ellcey  <sje@cup.hp.com>
1580
1581         PR rtl-optimization/41697
1582         * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
1583
1584 2009-10-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
1585
1586         PR target/23983
1587         * config/rs6000/predicates.md: Update copyright year.
1588         * config/rs6000/altivec.md: Ditto.
1589
1590         * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
1591         (MD_INCLUDES): Add a2.md.
1592
1593         * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
1594         RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
1595         (builtin_classify): New static vector to classify various builtins
1596         to get the tree attributes correct.
1597         (def_builtin): Set the attributes of builtins based on what the
1598         builtin does (i.e. memory operation, floating point, saturation
1599         need special attributes, others are pure functions).
1600
1601         * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
1602         the builtins.
1603         (enum rs6000_builtins): Include rs6000-builtin.def to define the
1604         builtins.  Change the end marker to MAX_RS6000_BUILTINS from
1605         RS6000_BUILTIN_COUNT.
1606         (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
1607         MAX_RS6000_BUILTINS.
1608
1609         * config/rs6000/rs6000-builtin.def: New file that combines the
1610         builtin enumeration name and attributes.
1611
1612 2009-10-15  H.J. Lu  <hongjiu.lu@intel.com>
1613
1614         * config/i386/linux.h (ASM_SPEC): Add --32.
1615
1616 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
1617
1618         * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
1619         and DW_TAG_template_alias.
1620         (dwarf_attr_name): Handle DW_AT_main_subprogram,
1621         DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
1622         DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
1623         DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
1624         DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
1625         and DW_AT_GNU_odr_signature.
1626         (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
1627         DW_FORM_flag_present and DW_FORM_ref_sig8.
1628         (output_signature): Only print name on the first byte.
1629         (output_die): Likewise for dw_val_class_data8.
1630
1631 2009-10-15  Alexander Monakov  <amonakov@ispras.ru>
1632
1633         * doc/invoke.texi: Clarify that most optimizations are not enabled
1634         without -O.
1635
1636 2009-10-15  Richard Guenther  <rguenther@suse.de>
1637
1638         PR lto/41668
1639         * gimple.c (compare_type_names_p): Handle anonymous names
1640         differently based on new mode argument.
1641         (gimple_types_compatible_p): For structs also compare the tags.
1642         (iterative_hash_type_name): Rename to ...
1643         (iterative_hash_name): ... this.  Hash all names.
1644         (iterative_hash_gimple_type): Fix hashing the struct tag of
1645         pointer targets.  Hash field decl names.
1646
1647 2009-10-15  Richard Guenther  <rguenther@suse.de>
1648
1649         PR lto/41669
1650         * gimple.c (gimple_get_alias_set): Avoid recursing on
1651         invalid type topology.
1652
1653 2009-10-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1654
1655         * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
1656
1657 2009-10-15  Richard Guenther  <rguenther@suse.de>
1658
1659         * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
1660
1661 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
1662
1663         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
1664         add --with-tune{,-32,-64} configured default for -mtune if explicit
1665         -mcpu is used.
1666
1667 2009-10-14  Daniel Gutson  <dgutson@codesourcery.com>
1668
1669         * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
1670
1671 2009-10-14  DJ Delorie  <dj@redhat.com>
1672
1673         * config/h8300/h8300.c (F): New.
1674         (Fpa): New.
1675         (h8300_emit_stack_adjustment): Call them.
1676         (push): Likewise.
1677         (h8300_push_pop): Likewise.
1678         (h8300_expand_prologue): Likewise.
1679         * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
1680         (MUST_USE_SJLJ_EXCEPTIONS): Define.
1681         (INCOMING_RETURN_ADDR_RTX): Define.
1682         (INCOMING_FRAME_SP_OFFSET): Define.
1683         (DWARF_CIE_DATA_ALIGNMENT): Define.
1684
1685 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
1686
1687         * stor-layout.c (place_field): Don't emit -Wpadded warnings for
1688         fields in builtin structs.
1689         (finalize_record_size): Likewise.
1690
1691 2009-10-14  Richard Guenther  <rguenther@suse.de>
1692
1693         * gimple.c (gtc_ob): New global.
1694         (struct type_pair_d): Replace pointers with type UIDs.
1695         (type_pair_hash): Adjust.
1696         (type_pair_eq): Likewise.
1697         (lookup_type_pair): Likewise.  Allocate from an obstack.
1698         (gimple_force_type_merge): Adjust.
1699         (gimple_types_compatible_p): Likewise.
1700         (free_gimple_type_tables): Free the obstack.
1701
1702 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
1703
1704         * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
1705         stmts setting DEBUG_EXPR_DECLs.
1706
1707         * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
1708         Don't crash if mode1 is VOIDmode.
1709
1710 2009-09-26  Vladimir Makarov  <vmakarov@redhat.com>
1711
1712         * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
1713         * params.h (IRA_LOOP_RESERVED_REGS): New.
1714         * tree-pass.h (pass_subregs_of_mode_init,
1715         pass_subregs_of_mode_finish): Remove.
1716         * passes.c (pass_subregs_of_mode_init,
1717         pass_subregs_of_mode_finish): Remove.
1718         (pass_reginfo_init): Move before loop optimizations.
1719         * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
1720         * common.opt (fira-loop-pressure): New.
1721         * toplev.h (flag_ira_loop_pressure): New.
1722         * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New externals.
1723         * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
1724         Make external and void type functions.
1725         (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
1726         pass_subregs_of_mode_finish): Remove.
1727         * ira-costs.c (init_costs): Call init_subregs_of_mode.
1728         * regmove.c: Include ira.h.
1729         (regmove_optimize): Call ira_set_pseudo_classes after IRA based
1730         register pressure calculation in loops.
1731         * loop-invariant.c: Include REGS_H and ira.h.
1732         (struct loop_data): New members max_reg_pressure, regs_ref, and
1733         regs_live.
1734         (struct invariant): New member orig_regno.
1735         (curr_loop): New variable.
1736         (find_exits): Initialize regs_ref and regs_live.
1737         (create_new_invariant): Initialize orig_regno.
1738         (get_cover_class_and_nregs): New.
1739         (get_inv_cost): Make aregs_needed an array.  Use regs_needed as an
1740         array.  Add code for flag_ira_loop_pressure.
1741         (gain_for_invariant): Make new_regs an array.  Add code for
1742         flag_ira_loop_pressure.
1743         (best_gain_for_invariant): Ditto.
1744         (set_move_mark): New parameter gain.  Use it for debugging output.
1745         (find_invariants_to_move): Make regs_needed and new_regs an array.
1746         Add code for flag_ira_loop_pressure.
1747         (move_invariant_reg): Set up orig_regno.
1748         (move_invariants): Set up reg classes for pseudos for
1749         flag_ira_loop_pressure.
1750         (free_loop_data): Clear regs_ref and regs_live.
1751         (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
1752         get_regno_cover_class, change_pressure, mark_regno_live,
1753         mark_regno_death, mark_reg_store, mark_reg_clobber,
1754         mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
1755         (move_loop_invariants): Calculate pressure.  Initialize curr_loop.
1756         * ira.c (ira): Call ira_set_pseudo_classes after IRA based
1757         register pressure calculation in loops if new regs were added.
1758         Call finish_subregs_of_mode.
1759         * opts.c (decode_options): Set up flag_ira_loop_pressure.
1760         * Makefile.in (loop-invariant.o): Add ira.h.
1761         (regmove.o): Ditto.
1762         * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
1763         Describe.
1764         * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
1765
1766 2009-10-14  Richard Guenther  <rguenther@suse.de>
1767
1768         * lto-symtab.c (lto_symtab_compatible): Fold in ...
1769         (lto_symtab_merge): ... here.  Rewrite both to take the
1770         prevailing and a to-be-merged entry and to queue diagnostics properly.
1771         (lto_symtab_resolve_replaceable_p): New predicate for
1772         symbol resolution.
1773         (lto_symtab_resolve_can_prevail_p): Likewise.
1774         (lto_symtab_resolve_symbols): Rewrite.  Fold in code that
1775         handles merging commons by choosing the largest decl.  Fold
1776         in code that gives ODR errors.
1777         (lto_symtab_merge_decls_2): Simplify a lot.  Emit queued
1778         diagnostics here.
1779         (lto_symtab_merge_decls_1): Re-structure.  Deal with the
1780         case of no prevailing decl here.  Diagnose mismatches
1781         in object types here.  Drop all but the prevailing decls.
1782         (lto_symtab_prevailing_decl): Return the single prevailing decl.
1783         * lto-streamer-in.c (lto_input_tree_ref): Deal with
1784         VIEW_CONVERT_EXPRs in decl slots.  Unshare the tree in this case.
1785
1786 2009-10-14  Richard Guenther  <rguenther@suse.de>
1787
1788         PR lto/41521
1789         * lto-streamer-in.c (input_bb): Replace debug stmts with
1790         nops instead of dropping them.
1791
1792 2009-10-14  Nick Clifton  <nickc@redhat.com>
1793
1794         * gcc/doc/extended.texi: Replace the dash character with @minus{}
1795         in situations where it is being used as a minus symbol.
1796         * gcc/doc/tm.texi: Likewise.
1797         * gcc/doc/md.texi: Likewise.
1798
1799 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
1800
1801         PR preprocessor/41543
1802         * input.h (BUILTINS_LOCATION): Change to 1 from 2.
1803         Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
1804         * tree.c: Include intl.h.
1805         (expand_location): Handle BUILTINS_LOCATION.
1806         * Makefile.in (tree.o): Depend on intl.h.
1807
1808         PR debug/41695
1809         * dwarf2out.c (dwarf2out_var_location): Always clear
1810         last_postcall_label when changing last_label.
1811
1812 2009-10-14  Pascal Obry  <obry@adacore.com>
1813
1814         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
1815         (process_command): Handle -E as done with -c and -S.  Do not add
1816         the target executable suffix to the output file when -E is used.
1817         (main): Adjust error message accordingly.
1818
1819 2009-10-14  Alexandre Oliva  <aoliva@redhat.com>
1820
1821         PR debug/41343
1822         PR debug/41447
1823         PR debug/41264
1824         PR debug/41338
1825         * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
1826         decl with rtl.
1827         (tree_code_size): Likewise.
1828
1829 2009-10-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1830
1831         * builtins.c (fold_builtin_1): Support complex "arc" functions.
1832         * real.h (HAVE_mpc_arc): Define.
1833
1834 2009-10-14  Kaz Kojima  <kkojima@gcc.gnu.org>
1835
1836         * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
1837         (struct builtin_description): Add fndecl field.
1838         (bdesc): Remove const qualifier.  Update initializer.
1839         (sh_media_init_builtins): Remove const qualifier for d.  Record
1840         the result of add_builtin_function to the fndecl field.
1841         (sh_builtin_decl): New.
1842         (sh_media_builtin_decl): New.
1843
1844 2009-10-14  Hans-Peter Nilsson  <hp@axis.com>
1845
1846         PR target/38948
1847         * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
1848         requests between special registers.
1849
1850 2009-10-13  Eric Botcazou  <ebotcazou@adacore.com>
1851
1852         * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
1853
1854 2009-10-13  Richard Henderson  <rth@redhat.com>
1855
1856         PR tree-optimization/41377
1857         * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
1858         (cleanup_empty_eh_merge_phis): New change_region parameter;
1859         pass it on to redirect_eh_edge_1.  Update callers.
1860         (cleanup_empty_eh_unsplit): Don't require an existing EH label
1861         at the destination block.
1862
1863 2009-10-13  Basile Starynkevitch  <basile@starynkevitch.net>
1864
1865         * passes.c (register_pass): Replaced gcc_unreachable by
1866         fatal_error on failure. Mentions plugins in comments & messages.
1867
1868 2009-10-13  Jakub Jelinek  <jakub@redhat.com>
1869
1870         PR target/41693
1871         * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
1872         * sched-vis.c (print_value): Use it.
1873         * cselib.c (cselib_hash_rtx): Likewise.
1874         * print-rtl.c (print_rtx): Likewise.
1875         * cfgexpand.c (expand_debug_rtx): Likewise.
1876         * var-tracking.c (vt_expand_loc_callback): Likewise.
1877
1878 2009-10-13  Richard Guenther  <rguenther@suse.de>
1879
1880         PR lto/41565
1881         * opts.c (handle_option): Split out code to handle setting
1882         the options flag var ...
1883         (set_option): ... here.
1884         * opts.h (set_option): Declare.
1885         * lto-opts.c (register_user_option_p): Include -fexceptions
1886         and all position independent code variants.
1887         (handle_common_option): Remove.
1888         (lto_reissue_options): Use set_option.
1889
1890 2009-10-13  Martin Jambor  <mjambor@suse.cz>
1891
1892         PR tree-optimization/41661
1893         * ipa-prop.c (compute_complex_pass_through): Allow only operations
1894         that are tcc_comparisons or do not change the type in any
1895         un-usleless way.
1896         * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
1897         folding tcc_comparison operations.
1898
1899 2009-10-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1900
1901         * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
1902         properly.
1903
1904 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
1905
1906         PR debug/41343
1907         PR debug/41447
1908         PR debug/41264
1909         PR debug/41338
1910         * tree.def (DEBUG_EXPR_DECL): New.
1911         * rtl.def (DEBUG_EXPR): New.
1912         * gengtype.c (adjust_field_rtx_def): Handle it.
1913         * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
1914         (insert_debug_temp_for_var_def): ... this.  Drop support for
1915         moving.  Take iterator for def stmt; insert debug stmt before it.
1916         Scan early for use count and kind in debug stmts.
1917         (propagate_defs_into_debug_stmts): Rename to...
1918         (insert_debug_temps_for_defs): ... this.  Likewise.
1919         * tree.h (DEBUG_TEMP_UID): New.
1920         * tree.c (next_debug_decl_uid): New.
1921         (make_node_stat): Count debug decls separately.
1922         (copy_node_stat): Likewise.
1923         * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
1924         * var-tracking.c (dv_is_decl_p): Recognize it.
1925         (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
1926         (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
1927         (vt_expand_loc_callback): Expand DEBUG_EXPRs.
1928         (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
1929         * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
1930         (cselib_hash_rtx): Likewise.
1931         (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
1932         * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
1933         debug bind stmts.
1934         * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
1935         (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
1936         * rtl.c (copy_rtx): Likewise.
1937         (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
1938         * print-rtl.c (print_rtx): Likewise.
1939         * sched-vis.c (print_value): Likewise.
1940         (print_insn): Handle DEBUG_EXPR_DECL.
1941         * tree-dump.c (dequeue_and_dump): Likewise.
1942         * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
1943         * gimple-iterator (gsi_replace): Check for same lhs.
1944         (gsi_remove): Insert debug temps.
1945         * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
1946         (move_computations_stmt): Drop explicit propagation into debug stmts.
1947         (rewrite_bittest): Likewise.  Use gsi_remove for propagation.
1948         * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
1949         * tree-ssa-sink.c (statement_sink_location): Likewise.
1950         * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
1951         * tree-ssanames.c (release_ssa_name): Adjust for rename.
1952         * tree-flow.h: Likewise.
1953         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
1954         debug temps without values.
1955         (eliminate_unnecessary_stmts): Don't discard just-inserted
1956         debug stmts.
1957
1958 2009-10-12  Hans-Peter Nilsson  <hp@axis.com>
1959
1960         PR target/26515
1961         * config/cris/cris.md (andu): Check that operand 1 is one of the
1962         general registers.  Fix typo in head comment.
1963
1964 2009-10-12  Stefan Dösinger  <stefan@codeweavers.com>
1965
1966         * config/i386/i386.md (vswapmov): New.
1967         * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
1968         (ix86_function_ms_hook_prologue): New.
1969         (ix86_expand_prologue): Handle ms_hook_prologue attribute.
1970         * configure.ac: Test for swap suffix support in as.
1971         * configure: Rebuild.
1972
1973 2009-10-12  Jakub Jelinek  <jakub@redhat.com>
1974
1975         PR target/41680
1976         * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
1977         paradoxical subregs to prevent partial register stalls if the inner
1978         mode is integer mode.
1979
1980 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
1981
1982         * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
1983
1984 2009-10-12  Dodji Seketeli  <dodji@redhat.com>
1985
1986         PR c++/41570
1987         * gcc/dwarf2out.c (template_parameter_pack_die,
1988         gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
1989
1990 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
1991
1992         PR debug/41616
1993         * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
1994         on updates too.
1995         (maybe_register_def): Likewise.  Take stmt iterator.
1996         (rewrite_update_stmt): Take stmt iterator and pass it on.
1997         (rewrite_update_enter_block): Pass stmt iterator.
1998
1999 2009-10-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2000
2001         * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
2002         (spu_builtin_decl): New function.
2003
2004 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
2005
2006         * config/i386/i386.md (SWIM): New mode iterator.
2007         (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
2008         using SWIM mode iterator.
2009         (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
2010         patterns using SWI48 mode iterator.
2011         (*x86_mov<mode>cc_0_m1_se):  Macroize insn from
2012         *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
2013         (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
2014         (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
2015         patterns using SWI248 mode iterator.
2016         * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
2017         gen_x86_movdicc_0_m1_rex64 for renamed function
2018
2019 2009-10-11  Jose Ruiz  <ruiz@adacore.com>
2020             Eric Botcazou  <ebotcazou@adacore.com>
2021
2022         PR target/33743
2023         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
2024         * config/sparc/sol2-unwind.h: New file.
2025
2026 2009-10-11  Olivier Hainque  <hainque@adacore.com>
2027             Eric Botcazou  <ebotcazou@adacore.com>
2028
2029         PR target/33743
2030         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
2031         * config/i386/sol2-unwind.h: New file.
2032
2033 2009-10-11  H.J. Lu  <hongjiu.lu@intel.com>
2034
2035         PR target/41665
2036         * config/i386/i386.md (addsi_1_zext): Get the proper second
2037         operand for lea.
2038
2039 2009-10-11  Richard Sandiford  <rdsandiford@googlemail.com>
2040
2041         * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
2042         all OLD_RTXes, not just REGs.  Use copy_rtx to create the
2043         replacement value.
2044
2045 2009-10-11  Richard Guenther  <rguenther@suse.de>
2046
2047         * gimple.c (iterative_hash_type_name): Do not handle special
2048         anonymous names.
2049
2050 2009-10-11  Uros Bizjak  <ubizjak@gmail.com>
2051
2052         * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
2053         (*setcc_si_1_and): Ditto.
2054         (*setcc_si_1_movzbl): Ditto.
2055         (*setcc_<mode>_2): Ditto.
2056         (*setcc_qi): Rename from *setcc_1.
2057         (*setcc_qi_slp): Rename from *setcc_2.
2058
2059         (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
2060         (*zero_extendqisi2_movzbw_and splitter): Ditto.
2061
2062         * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
2063         "if" condition, there is already assert with reload_completed present.
2064
2065 2009-10-11  Gerald Pfeifer  <gerald@pfeifer.com>
2066
2067         * plugin.c (try_init_one_plugin): Improve constness of variable err.
2068
2069 2009-10-10  Gerald Pfeifer  <gerald@pfeifer.com>
2070
2071         * doc/install.texi (Final install): Refer to
2072         http://gcc.gnu.org/bugs/ for bug reporting.
2073
2074 2009-10-10  Peter Bergner  <bergner@vnet.ibm.com>
2075
2076         * configure.ac: Add test for dci instruction.
2077         * configure: Regenerate.
2078         * config.in: Likewise.
2079         * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
2080         * doc/invoke.texi: Add cpu_type 476 and 476fp.
2081         (-mmulhw): Add 476 to description.
2082         (-mdlmzb): Likewise.
2083         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
2084         * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
2085         (processor_target_table): Add 476 and 476fp entries.
2086         (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
2087         (rs6000_issue_rate): Add CPU_PPC476.
2088         * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
2089         (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
2090         (processor_type): Add PROCESSOR_PPC476.
2091         (EXTRA_SPECS): Add asm_cpu_476 string.
2092         * config/rs6000/rs6000.md (define_attr "type"): Add isel attribute.
2093         (define_attr "cpu"): Add ppc476.
2094         Include 476.md.
2095         Update comments for 476.
2096         (isel_signed, isel_unsigned): Change to use "isel" type attribute.
2097         * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
2098         Update copyright year.
2099         * config/rs6000/476.md: New file.
2100         * config/rs6000/40x.md: Add description for "isel" attribute.
2101         Update copyright year.
2102         * config/rs6000/440.md: Likewise.
2103         * config/rs6000/603.md: Likewise.
2104         * config/rs6000/6xx.md: Likewise.
2105         * config/rs6000/7450.md: Likewise.
2106         * config/rs6000/7xx.md: Likewise.
2107         * config/rs6000/8540.md: Likewise.
2108         * config/rs6000/cell.md: Likewise.
2109         * config/rs6000/e300c2c3.md: Likewise.
2110         * config/rs6000/e500mc.md: Likewise.
2111         * config/rs6000/mpc.md: Likewise.
2112         * config/rs6000/power4.md: Likewise.
2113         * config/rs6000/power5.md: Likewise.
2114         * config/rs6000/power6.md: Likewise.
2115         * config/rs6000/power7.md: Likewise.
2116         * config/rs6000/rios1.md: Likewise.
2117         * config/rs6000/rios2.md: Likewise.
2118         * config/rs6000/rs64.md: Likewise.
2119
2120 2009-10-10  Richard Guenther  <rguenther@suse.de>
2121
2122         PR tree-optimization/41654
2123         * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
2124         a cond expr before calling gimple_cond_set_condition_from_tree.
2125         (ifcombine_iforif): Likewise.
2126
2127 2009-10-09  Ian Lance Taylor  <iant@google.com>
2128
2129         * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
2130         * configure: Rebuild.
2131
2132 2009-10-09  Neil Vachharajani <nvachhar@google.com>
2133
2134         * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
2135         deprecated.
2136
2137 2009-10-09  Richard Guenther  <rguenther@suse.de>
2138
2139         PR lto/41638
2140         * target-def.h (TARGET_BUILTIN_DECL): Define.
2141         (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
2142         * target.h (struct gcc_target): Add builtin_decl target hook.
2143         * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
2144         * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
2145         target builtins.
2146         * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
2147         not gcc_unreachable.
2148         (lto_output_builtin_tree): Sorry if the target does not support
2149         streaming target builtins.
2150         * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
2151         (rs6000_builtin_decl): New function.
2152         * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
2153         (ix86_builtin_decl): New function.
2154
2155 2009-10-09  Jakub Jelinek  <jakub@redhat.com>
2156
2157         PR preprocessor/41445
2158         * c-ppoutput.c (do_line_change): New function.
2159         (cb_line_change): Use it.
2160         (scan_translation_unit): Call do_line_change if
2161         avoid_paste or PREV_WHITE and token location is on a different line
2162         than print.src_line.
2163
2164         PR debug/40521
2165         * dwarf2out.c (dwarf2out_init): Test whether
2166         HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
2167         it is defined.
2168
2169         PR rtl-optimization/41646
2170         * calls.c (expand_call): For BLKmode types returned in registers
2171         avoid likely spilled hard regs in copy_blkmode_from_reg generated
2172         insns.
2173
2174 2009-10-09  Richard Guenther  <rguenther@suse.de>
2175
2176         PR tree-optimization/41634
2177         * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
2178         we remove the correct elements.
2179         (optimize_stmt): Make sure to update stmt operands before
2180         optimizing redundancies.
2181
2182 2009-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2183
2184         * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
2185
2186 2009-10-09  Richard Guenther  <rguenther@suse.de>
2187
2188         PR driver/41637
2189         * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
2190         globals.
2191         (lto_wrapper_exit): New function.
2192         (fatal): Use it.
2193         (fatal_perror): Likewise.
2194         (fork_execute): Use global args_name, do not free it.
2195         (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
2196         * lto-streamer.h: Remove duplicate prototypes.
2197
2198 2009-10-09  Richard Guenther  <rguenther@suse.de>
2199
2200         * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
2201         before calling stmt_can_throw_external.
2202
2203 2009-10-09  Eric Botcazou  <ebotcazou@adacore.com>
2204
2205         PR tree-optimization/40071
2206         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
2207         pointer if the original data reference doesn't conflict with the
2208         created vector data reference.  Fix long line.
2209
2210 2009-10-09  Uros Bizjak  <ubizjak@gmail.com>
2211
2212         * config/i386/i386.md (any_div): New code iterator.
2213         (u): Handle div and udiv.
2214         (sgnprefix): Ditto.
2215         (<u>divqi3): Macroize insn from {,u}divqi3  using any_div
2216         code iterator.
2217         (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
2218         lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
2219         (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
2220         lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
2221
2222 2009-10-08  Joseph Myers  <joseph@codesourcery.com>
2223
2224         * gcc.c (main): Remove trailing "." from diagnostics.
2225
2226 2009-10-08  Cary Coutant  <ccoutant@google.com>
2227
2228         Add support for debugging with ICF (Identical Code Folding).
2229         * calls.c (debug.h): New #include.
2230         (emit_call_1): Call virtual_call_token debug hook.
2231         * common.opt (-fenable-icf-debug): New option.
2232         * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
2233         locations in the source).
2234         (poc_label_num): New variable.
2235         (dcall_entry, vcall_entry): New typedefs.
2236         (dcall_table, vcall_table): New variables.
2237         (struct vcall_insn): New type.
2238         (vcall_insn_table): New variable.
2239         (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
2240         (size_of_dcall_table): New function.
2241         (output_dcall_table): New function.
2242         (size_of_vcall_table): New function.
2243         (output_vcall_table): New function.
2244         (dwarf2out_direct_call): New function.
2245         (vcall_insn_table_hash): New function.
2246         (vcall_insn_table_eq): New function.
2247         (dwarf2out_virtual_call_token): New function.
2248         (dwarf2out_virtual_call): New function.
2249         (dwarf2out_init): Allocate new tables and sections.
2250         (prune_unused_types): Mark DIEs referenced from direct call table.
2251         (dwarf2out_finish): Output direct and virtual call tables.
2252         * final.c (final_scan_insn): Call direct_call and virtual_call
2253         debug hooks.
2254         * debug.h (struct gcc_debug_hooks): Add direct_call,
2255         virtual_call_token, virtual_call hooks.
2256         (debug_nothing_uid): New function.
2257         * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
2258         (debug_nothing_uid): New function.
2259         * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
2260         (xcoff_debug_hooks): Likewise.
2261         * sdbout.c (sdb_debug_hooks): Likewise.
2262         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2263         * doc/invoke.texi (-fenable-icf-debug): New option.
2264
2265 2009-10-08  Alexandre Oliva  <aoliva@redhat.com>
2266
2267         PR debug/41353
2268         * regmove.c (regmove_backward_pass): Replace src with dst in the
2269         debug insn, and check for dst before rather than after.
2270
2271 2009-10-08  Janis Johnson <janis187@us.ibm.com>
2272
2273         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
2274         (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
2275
2276 2009-10-08  Jan Hubicka  <jh@suse.cz>
2277
2278         PR middle-end/41626
2279         * cgraphbuild.c (record_reference): When parameter DATA is NULL,
2280         do not mark cgraph nodes as needed.
2281         (record_references_in_initializer): Add new only_vars parameter.
2282         * cgraph.h (record_references_in_initializer): New parameter.
2283         * varasm.c (assemble_variable): Update call.
2284         * varpool.c (varpool_analyze_pending_decls): Always look for
2285         referenced vars.
2286
2287 2009-10-08  Anatoly Sokolov  <aesok@post.ru>
2288
2289         * config/avr/avr.c (last_insn_address) Remove variable.
2290         (expand_prologue): Don't initialise last_insn_address variable.
2291         (final_prescan_insn): Don't output insn size.
2292         * config/avr/avr.opt (msize): Remove switch.
2293         * doc/invoke.texi (AVR Options): Remove documentation of -msize
2294         switch.
2295
2296 2009-10-08  Adam Nemet  <anemet@caviumnetworks.com>
2297
2298         * combine.c (label_tick_ebb_start): Fix comment.
2299         (combine_instructions): Set label_tick and label_tick_ebb_start before
2300         calling setup_incoming_promotions.  Start them from 1.  Increment
2301         label_tick instead of deriving it from the BB index.  Rather than
2302         comparing ticks use the block from the previous iteration to decide
2303         whether to start a new EBB.  Remove empty lines before function.
2304
2305 2009-10-08  Michael Matz  <matz@suse.de>
2306
2307         PR middle-end/41573
2308         * builtins.c (fold_builtin_isascii): Use fold_build2.
2309         (fold_builtin_isdigit): Ditto.
2310         * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
2311         * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
2312         remove_useless_stmts_cond, remove_useless_stmts_tf,
2313         remove_useless_stmts_tc, remove_useless_stmts_bind,
2314         remove_useless_stmts_goto, remove_useless_stmts_label,
2315         remove_useless_stmts_1, remove_useless_stmts,
2316         pass_remove_useless_stmts): Remove.
2317         * tree-pass.h (pass_remove_useless_stmts): Don't declare.
2318         * passes.c (init_optimization_passes): Don't add
2319         pass_remove_useless_stmts.
2320         * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
2321         * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
2322         static constants.
2323         * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
2324         for static constants.
2325         * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
2326         * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
2327
2328 2009-10-08  Richard Guenther  <rguenther@suse.de>
2329
2330         * gimple.c (free_gimple_type_tables): New function.
2331         * gimple.h (free_gimple_type_tables): Declare.
2332
2333 2009-10-07  Mark Heffernan  <meheff@google.com>
2334
2335         * ipa-prop.c (ipa_print_node_params) Only print
2336         names of named arguments.
2337
2338 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
2339
2340         * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
2341         being statically linked.
2342
2343 2009-10-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2344
2345         * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
2346
2347 2009-10-08  Jan Hubicka  <jh@suse.cz>
2348
2349         PR bootstrap/41620
2350         * ipa.c (cgraph_externally_visible_p,
2351         function_and_variable_visibility,
2352         whole_program_function_and_variable_visibility): Skip non-finalized
2353         nodes.
2354
2355 2009-10-08  Nick Clifton  <nickc@redhat.com>
2356
2357         * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
2358         CONST_DOUBLEs.
2359
2360 2009-10-08  Andreas Tobler  <a.tobler@schweiz.org>
2361
2362         PR bootstrap/37739
2363         * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
2364
2365 2009-10-07  Joseph Myers  <joseph@codesourcery.com>
2366
2367         PR c/41182
2368         * c-common.c (c_fully_fold_internal): Strip nops from the result
2369         of recursive calls to c_fully_fold_internal.
2370         (c_wrap_maybe_const): New.
2371         (c_save_expr): Use c_wrap_maybe_const.
2372         * c-common.h (c_wrap_maybe_const): Declare.
2373         * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
2374         build_binary_op): Use c_wrap_maybe_const.
2375
2376 2009-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2377
2378         * real.c: Fix comment to reflect actual exponent size.
2379
2380 2009-10-08  Ben Elliston  <bje@au.ibm.com>
2381
2382         * config/rs6000/a2.md: Add FSF comment header.
2383
2384 2009-10-07  Uros Bizjak  <ubizjak@gmail.com>
2385
2386         * config/i386/i386.md (any_extend): New code iterator.
2387         (u, s): New code attributes.
2388         (sgnprefix): Ditto.
2389         (DWIH): Rewrite as code iterator for SI and DI modes.
2390         (DWI): Rewrite as mode attribute.
2391         (dwi): New mode attribute.
2392         (di): Depend on SI mode and DI mode.
2393         (doubleint_general_operand): Remove mode attribute.
2394
2395         (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
2396         DWIH mode iterator.
2397
2398         (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
2399         (*sub<mode>3_doubleword): Ditto.
2400
2401         (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
2402         using SWIM248 mode iterator.
2403         (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
2404         using SWI48 mode iterator.
2405         (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
2406         patterns using DWIH mode iterator and any_extend code iterator.
2407         (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
2408         using any_extend code iterator.
2409         (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
2410         patterns using DWIH mode iterator and any_extend code iterator.
2411         (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
2412         using any_extend code iterator.
2413         (<s>mul<mode>3_highpart): Macroize expander from
2414         {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
2415         and any_extend code iterator.
2416         (*<s>muldi3_highpart_1): Macroize insn from
2417         *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
2418         (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
2419         patterns using any_extend code iterator.
2420         (*<s>mulsi3_highpart_zext): Macroize insn from
2421         *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
2422
2423 2009-10-07  Jakub Jelinek  <jakub@redhat.com>
2424
2425         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
2426         DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
2427         refering to a DIE with DW_AT_const_value.
2428
2429 2009-10-07  Vladimir Makarov  <vmakarov@redhat.com>
2430
2431         PR middle-end/22072
2432         * ira-lives.c (check_and_make_def_conflict): Process all operands.
2433
2434 2009-10-06  Jan Hubicka  <jh@suse.cz>
2435
2436         * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
2437         correctly.
2438
2439 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
2440
2441         * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
2442         *lea_2_rex64): Move before *add<mode>_1 pattern.
2443
2444 2009-10-07  Jan Hubicka  <jh@suse.cz>
2445
2446         * collect2.c (main): Add -fno-whole-program.
2447         * gcc.c (set_collect_gcc_options): Do not remove whole program here.
2448
2449 2009-10-07  Jan Hubicka  <jh@suse.cz>
2450
2451         * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
2452         has no address taken.
2453         * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
2454         never needed.
2455         (cgraph_clone_node): Clear externally_visible flag for clones.
2456         * cgraph.h (cgraph_only_called_directly_p,
2457         cgraph_can_remove_if_no_direct_calls_p): New predicates.
2458         * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
2459         * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
2460         (ipcp_initialize_node_lattices, ipcp_estimate_growth,
2461         ipcp_insert_stage): Likwise.
2462         * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
2463         externally_visible flag.
2464         (verify_cgraph_node): Verify that inline clones look right.
2465         (process_function_and_variable_attributes): Do not set
2466         externally_visible flags.
2467         (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
2468         been already run.
2469         * lto-cgraph.c (lto_output_node): Assert that inline clones are not
2470         boundaries.
2471         * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
2472         clear externally_visible when turning into inline clones
2473         (cgraph_mark_inline_edge): Use new predicates.
2474         (cgraph_estimate_growth): Likewise.
2475         (cgraph_decide_inlining): Likewise.
2476         * ipa.c (cgraph_postorder): Likewise.
2477         (cgraph_remove_unreachable_nodes): Likewise; sanity check
2478         that inline clones are not needed.
2479         (cgraph_externally_visible_p): New predicate.
2480         (function_and_variable_visibility): Add whole_program parameter;
2481         always set externally_visible flag; handle COMDAT function
2482         privatization.
2483         (local_function_and_variable_visibility): New function.
2484         (gate_whole_program_function_and_variable_visibility): New function.
2485         (whole_program_function_and_variable_visibility): New function.
2486         (pass_ipa_whole_program_visibility): New function.
2487         * passes.c  (init_optimization_passes): Add whole program visibility
2488         pass.
2489         (do_per_function_toporder, function_called_by_processed_nodes_p): Do
2490         not care about needed/reachable flags.
2491         * varpool.c: Include flags.h
2492         (decide_is_variable_needed): When doing LTO assume whole-program mode.
2493         (varpool_finalize_decl): When we are in LTO read-back, all variables
2494         are analyzed.
2495         (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
2496
2497 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2498
2499         * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
2500         add MASK_HARD_DFP.
2501
2502 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2503
2504         * config.gcc: Don't include the makefile fragments intended for
2505         libgcc.
2506         * config/s390/fixdfdi.h: File removed.
2507         * config/s390/libgcc-glibc.ver: File removed.
2508         * config/s390/s390.h: Remove the fixdfdi.h hack.
2509         * config/s390/t-crtstuff: File moved to libgcc dir.
2510         * config/s390/t-linux: Likewise.
2511         * config/s390/t-tpf: libgcc specific parts removed.
2512         * config/s390/t-linux64: Likewise.
2513
2514 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
2515
2516         * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
2517         (lto-compress.o): Likewise.
2518
2519 2009-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
2520
2521         PR target/41512
2522         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
2523         dllexport to class members here.
2524         (i386_pe_determine_dllimport_p): Only check static class data for
2525         definition.
2526         (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
2527         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
2528         functions for vague linkage.
2529         (i386_pe_type_dllexport_p): Fix formatting.
2530         (maybe_add_dllexport) New function.
2531         (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
2532         to class members.
2533
2534 2009-10-07  Ben Elliston  <bje@au.ibm.com>
2535
2536         * config/rs6000/a2.md: Remove duplicated lines.
2537
2538 2009-10-07  Ben Elliston  <bje@au.ibm.com>
2539
2540         * config.gcc (powerpc*-*-*): Handle a2.
2541         * config/rs6000/rs6000.md (cpu): Add ppca2.  Include "a2.md".
2542         * config/rs6000/a2.md: New file.
2543         * config/rs6000/rs6000.opt (mno-update): New.
2544         (mupdate): Return to using a mask, not a var.
2545         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
2546         (enum processor_type): Add PROCESSOR_PPCA2.
2547         * config/rs6000/rs6000.c (ppca2_cost): New costs.
2548         (rs6000_override_options): Add "a2" to processor_target_table.
2549         Update rs6000_always_hint logic.  Correctly set rs6000_cost for a2.
2550         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
2551
2552 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
2553
2554         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
2555         Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
2556         reference to nonexistent gen_truncxfxf2 function.
2557
2558 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
2559
2560         * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
2561         (DWIH, g, di, doubleint_general_operand): New mode attributes.
2562         (general_operand): Handle TI mode.
2563         (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
2564         using SDWIM mode iterator.
2565         (*add<mode>3_doubleword): New insn_and_split pattern.  Macroize
2566         pattern from *add{di,ti}3_1 patterns and corresponding splitters
2567         using DWI mode iterator.
2568         (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
2569         patterns using SWI mode iterator.
2570         (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
2571         using SWI48 mode iterator.
2572         (*add<mode>_1): Ditto from add{si,di}_1 patterns.
2573         (*add<mode>_2): Ditto from add{si,di}_2 patterns.
2574         (*add<mode>_3): Ditto from add{si,di}_3 patterns.
2575         (*add<mode>_5): Ditto from add{si,di}_5 patterns.
2576         (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
2577         using SDWIM mode iterator.
2578         (*sub<mode>3_doubleword): New insn_and_split pattern.  Macroize
2579         pattern from *sub{di,ti}3_1 patterns and corresponding splitters
2580         using DWI mode iterator.
2581         (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
2582         patterns using SWI mode iterator.
2583         (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
2584         (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
2585         (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
2586         (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
2587         patterns using plusminus code iterator.
2588         (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
2589         sub<mode>3 patterns using plusminus code iterator.
2590         * config/i386/i386.c (override_options): Update the call to
2591         gen_subdi_carry_rex64 for renamed function.
2592         (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
2593         and gen_adddi3_carry_rex64 for renamed functions.  Use indirect
2594         calls to instruction expanders.
2595
2596 2009-10-06  Martin Jambor  <mjambor@suse.cz>
2597
2598         PR bootstrap/41395
2599         * opts.c (decode_options): Run IPA-SRA at -O2.
2600
2601 2009-10-06  Richard Guenther  <rguenther@suse.de>
2602
2603         * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
2604
2605 2009-10-06  Tobias Burnus  <burnus@net-b.de>
2606
2607         PR lto/41591
2608         * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
2609         -flto and -fwhole-program flags can be combined.
2610
2611 2009-10-06  Ryan Mansfield  <rmansfield@qnx.com>
2612
2613         PR driver/41217
2614         * gcc.c (process_command): Check that -o argument was specified.
2615
2616 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
2617
2618         * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
2619
2620 2009-10-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2621
2622         * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
2623         * doc/invoke.texi (Warning Options): Annotate allowed languages
2624         for -Wunsuffixed-float-constants.
2625
2626 2009-10-05  Jakub Jelinek  <jakub@redhat.com>
2627
2628         * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
2629         DW_TAG_{const,volatile}_type if its DW_AT_type already has the
2630         same name and isn't the main variant.
2631
2632         PR debug/41558
2633         * dwarf2out.c (loc_by_reference): Removed.
2634         (dw_loc_list_1): New function.
2635         (dw_loc_list): Remove toplev argument, add want_address argument.
2636         Don't look at decl_by_reference_p at all.  Use dw_loc_list_1.
2637         (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
2638         want_address == 2 to dw_loc_list.  For successful dw_loc_list
2639         set have_address to 1 only if want_address is not 0.
2640
2641 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
2642
2643         * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
2644         * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
2645         a code block followed by two pointers.
2646         (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
2647         * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
2648         (MIPS_MOVE): Likewise.
2649         (MIPS_LUI): Likewise.
2650         (MIPS_JR): Likewise.
2651         (MIPS_BAL): Likewise.
2652         (MIPS_NOP): Likewise.
2653         (mips_asm_trampoline_template): Delete.
2654         (mips_trampoline_code_size): New function.
2655         (mips_trampoline_init): Add shorter sequences for all cases
2656         except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
2657         Calculate the opcodes directly, rather than copying from a template.
2658         Only flush the code part of the trampoline.
2659         (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
2660
2661 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
2662
2663         * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
2664         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
2665         (INCOMING_RETURN_ADDR_RTX): Likewise.
2666         (FUNCTION_PROFILER): Likewise.  Replace GP_REG_FIRST + 1
2667         with AT_REGNUM.
2668         * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
2669         with RETURN_ADDR_REGNUM.
2670         (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
2671         * config/mips/mips.c (mips16_build_call_stub): Replace
2672         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
2673         with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
2674         (mips_print_operand_punctuation): Likewise.
2675         (mips_frame_set): Likewise.
2676         (mips16e_output_save_restore): Likewise.
2677         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
2678         (mips_save_reg_p): Likewise.
2679         (mips_return_addr): Likewise.
2680         (mips_set_return_address): Likewise.
2681         (mips_direct_save_slot_move_p): Likewise.
2682         (mips_output_function_prologue): Likewise.
2683         (mips_restore_reg): Likewise.
2684         (mips_expand_epilogue): Likewise.
2685         (mips_epilogue_uses): Likewise.
2686         * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
2687         (*mov<mode>_ra): Use it instead of a hard-coded 31.
2688         (clear_hazard_<mode>): Likewise.
2689         (call_internal): Likewise.
2690         (call_internal_direct): Likewise.
2691         (call_direct_split): Likewise.
2692         (call_value_internal): Likewise.
2693         (call_value_split): Likewise.
2694         (call_value_internal_direct): Likewise.
2695         (call_value_direct_split): Likewise.
2696         (call_value_multiple_internal): Likewise.
2697         (call_value_multiple_split): Likewise.
2698
2699 2009-10-05  Eric Botcazou  <ebotcazou@adacore.com>
2700             Jakub Jelinek  <jakub@redhat.com>
2701
2702         PR rtl-optimization/41511
2703         * combine.c (record_value_for_reg): Pass explicit values as argument
2704         to get_last_value_validate.
2705         (get_last_value_validate): Document INSN parameter.
2706         For non-readonly MEMs, assume they might have been modified if INSN
2707         was in another basic block.
2708         (get_last_value): Minor reformatting.
2709
2710 2009-10-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2711
2712         PR tree-opt/40992
2713         * final.c (asm_str_count): Split out from asm_insn_count.
2714         * rtl.h (asm_str_count): New prototype.
2715         * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
2716         asm_str_count.
2717
2718 2009-10-05  Sriraman Tallam  <tmsriram@google.com>
2719
2720         * doc/plugins.texi: Change plugin_pass to register_pass_info.
2721
2722 2009-10-05  Basile Starynkevitch  <basile@starynkevitch.net>
2723             Rafael Espindola  <espindola@google.com>
2724
2725         * gengtype.c (write_types): Moved call to write_func_for_structure
2726         into seperate loops.
2727
2728 2009-10-05  Richard Guenther  <rguenther@suse.de>
2729
2730         PR lto/41281
2731         * lto-cgraph.c (output_cgraph): Output toplevel asms.
2732         (input_cgraph_1): Input toplevel asms.
2733
2734 2009-10-05  Richard Guenther  <rguenther@suse.de>
2735
2736         PR lto/40902
2737         * lto-symtab.c (lto_compatible_attributes_p): Remove.
2738         (external_aggregate_decl_p): Likewise.
2739         (lto_symtab_compatible): Re-structure.  Remove dead code.
2740         For variables ignore toplevel qualifiers when comparing types.
2741         Issue warnings, not errors for mismatched user-alignment.
2742
2743 2009-10-05  Richard Guenther  <rguenther@suse.de>
2744
2745         PR lto/41552
2746         PR lto/41487
2747         * lto-symtab.c (struct lto_symtab_base_def): Remove.
2748         (struct lto_symtab_identifier_def): Likewise.
2749         (struct lto_symtab_decl_def): Likewise.
2750         (struct lto_symtab_entry_def): New.
2751         (lto_symtab_identifier_t): Rename to ...
2752         (lto_symtab_entry_t): ... this.
2753         (lto_symtab_decls): Remove.
2754         (lto_symtab_base_hash): Rename to ...
2755         (lto_symtab_entry_hash): ... this.
2756         (lto_symtab_base_eq): Rename to ...
2757         (lto_symtab_entry_eq): ... this.
2758         (lto_symtab_base_marked_p): Rename to ...
2759         (lto_symtab_entry_marked_p): ... this.
2760         (lto_symtab_identifier_marked_p): Remove.
2761         (lto_symtab_decl_marked_p): Likewise.
2762         (lto_symtab_maybe_init_hash_tables): Rename to ...
2763         (lto_symtab_maybe_init_hash_table): ... this.
2764         (lto_symtab_set_resolution_and_file_data): Remove.
2765         (lto_symtab_register_decl): New function.
2766         (lto_symtab_get_identifier): Remove.
2767         (lto_symtab_get): New function.
2768         (lto_symtab_get_resolution): Adjust.
2769         (lto_symtab_get_identifier_decl): Remove.
2770         (lto_symtab_set_identifier_decl): Likewise.
2771         (lto_symtab_merge_decl): Rename to ...
2772         (lto_symtab_merge): ... this.  Rewrite.
2773         (lto_symtab_merge_var): Remove.
2774         (lto_symtab_merge_fn): Likewise.
2775         (lto_symtab_prevailing_decl): Adjust.
2776         (lto_cgraph_replace_node): New function.
2777         (lto_symtab_merge_decls_2): Likewise.
2778         (lto_symtab_merge_decls_1): Likewise.
2779         (lto_symtab_fixup_var_decls): Likewise.
2780         (lto_symtab_resolve_symbols): Likewise.
2781         (lto_symtab_merge_decls): Likewise.
2782         (lto_symtab_prevailing_decl): Adjust.
2783         (lto_symtab_get_symtab_def): Remove.
2784         (lto_symtab_get_file_data): Likewise.
2785         (lto_symtab_clear_resolution): Adjust.
2786         (lto_symtab_clear_resolution): Likewise.
2787         * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
2788         (input_cgraph_1): Likewise.
2789         * lto-streamer-in.c (get_resolution): Do not provide fake
2790         symbol resolutions here.
2791         (deferred_global_decls): Remove.
2792         (lto_register_deferred_decls_in_symtab): Likewise.
2793         (lto_register_var_decl_in_symtab): Change signature, register
2794         variable via lto_symtab_register_decl.
2795         (lto_register_function_decl_in_symtab): Likewise.
2796         (lto_read_tree): Adjust.
2797         * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
2798         (lto_symtab_merge_var): Likewise.
2799         (lto_symtab_merge_fn): Likewise.
2800         (lto_symtab_register_decl): Declare.
2801         (lto_symtab_merge_decls): Likewise.
2802
2803 2009-10-05  Richard Guenther  <rguenther@suse.de>
2804
2805         PR tree-optimization/23821
2806         * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
2807         * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
2808         simple IV increments.
2809
2810 2009-10-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2811
2812         * config/arm/arm.c (arm_override_options): Really initialize
2813         flag_dwarf2_cfi_asm to 0.
2814
2815 2009-10-05  Doug Kwan  <dougkwan@google.com>
2816
2817         PR rtl-optimization/41574
2818         * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
2819         floating point and we are not doing unsafe math optimizations.
2820
2821 2009-10-03  Simon Baldwin  <simonb@google.com>
2822             Cary Coutant  <ccoutant@google.com>
2823             Rafael Espindola  <espindola@google.com>
2824             Richard Guenther  <rguenther@suse.de>
2825             Jan Hubicka  <jh@suse.cz>
2826             Doug Kwan <dougkwan@google.com>
2827             H.J. Lu  <hongjiu.lu@intel.com>
2828             Bill Maddox  <maddox@google.com>
2829             Ryan Mansfield  <rmansfield@qnx.com>
2830             Diego Novillo  <dnovillo@google.com>
2831             Ollie Wild  <aaw@google.com>
2832             Kenneth Zadeck <zadeck@naturalbridge.com>
2833
2834         * lto-cgraph.c: New file.
2835         * lto-compress.c: New file.
2836         * lto-compress.h: New file.
2837         * lto-opts.c: New file.
2838         * lto-section-in.c: New file.
2839         * lto-section-out.c: New file.
2840         * lto-streamer-in.c: New file.
2841         * lto-streamer-out.c: New file.
2842         * lto-streamer.c: New file.
2843         * lto-streamer.h: New file.
2844         * lto-symtab.c: New file.
2845         * lto-wpa-fixup.c: New file.
2846         * lto-wrapper.c: New file.
2847
2848 2009-10-03  Simon Baldwin  <baldwin@google.com>
2849             Ben Elliston  <bje@au.ibm.com>
2850             Rafael Espindola  <espindola@google.com>
2851             Nathan Froyd  <froydnj@codesourcery.com>
2852             Jan Hubicka  <jh@suse.cz>
2853             Doug Kwan  <dougkwan@google.com>
2854             Diego Novillo  <dnovillo@google.com>
2855             Kenneth Zadeck  <zadeck@naturalbridge.com>
2856
2857         * Makefile.in (enable_lto): New.
2858         (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
2859         (LINKER_PLUGIN_API_H): Define.
2860         (LTO_SYMTAB_H): Define.
2861         (LTO_STREAMER_H): Define.
2862         (TREE_VECTORIZER_H): Define.
2863         (INCLUDES): Add LIBELFINC.
2864         (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
2865         lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
2866         lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
2867         (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
2868         (native): Add lto-wrapper$(exeext)
2869         (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
2870         lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
2871         lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
2872         (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
2873         (varasm.o): Add dependency on tree-iterator.h.
2874         (cgraph.o): Add dependency on cif-code.def.
2875         (ipa-reference.o): Add dependency on LTO_STREAMER_H.
2876         (ipa-pure-const.o): Likewise.
2877         (GTFILES): Add lto-symtab.c.
2878         (install-lto-wrapper): New.
2879         * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
2880         and enable_lto.  If LIBELFLIBS is set, define HAVE_libelf.
2881         * config.in: Regenerate.
2882
2883 2009-10-03  Rafael Espindola  <espindola@google.com>
2884             Diego Novillo  <dnovillo@google.com>
2885
2886         * cgraphunit.c (ipa_passes): Prevent lto1 from calling
2887         ipa_write_summaries.
2888         Call execute_ipa_summary_passes for all_regular_ipa_passes and
2889         all_lto_gen_passes.
2890         (cgraph_optimize): Make extern.
2891
2892 2009-10-03  Nathan Froyd  <froydnj@codesourcery.com>
2893             Kenneth Zadeck <zadeck@naturalbridge.com>
2894
2895         * toplev.c (in_lto_p): Declare.
2896         * collect2.c (scan_prog_file): Read all the output when reading
2897         information for LTO.
2898         (enum lto_mode_d): Declare.
2899
2900 2009-10-03  Richard Guenther  <rguenther@suse.de>
2901             Diego Novillo  <dnovillo@google.com>
2902
2903         * gimple.c: Include target.h and alias.h.
2904         (gimple_types): Declare.
2905         (type_hash_cache): Declare.
2906         (gimple_alloc_stat): Make extern.
2907         (gimple_build_eh_must_not_throw): Call
2908         gimple_eh_must_not_throw_set_fndecl.
2909         (struct type_pair_d): Declare.
2910         (type_pair_t): Declare.
2911         (type_pair_hash): New.
2912         (type_pair_eq): New.
2913         (lookup_type_pair): New.
2914         (gimple_force_type_merge): New.
2915         (compare_type_names_p): New.
2916         (compare_field_offset): New.
2917         (gimple_types_compatible_p): New.
2918         (struct sccs): Declare.
2919         (next_dfs_num): Declare.
2920         (iterative_hash_gimple_type): New.
2921         (visit): New.
2922         (iterative_hash_type_name): New.
2923         (iterative_hash_gimple_type): New.
2924         (gimple_type_hash): New.
2925         (gimple_type_eq): New.
2926         (gimple_register_type): New.
2927         (print_gimple_types_stats): New.
2928         (gimple_signed_or_unsigned_type): New.
2929         (gimple_unsigned_type): New.
2930         (gimple_signed_type): New.
2931         (gimple_get_alias_set): New.
2932         (gimple_decl_printable_name): Do not use DMGL_TYPES.
2933         * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
2934         (gimple_force_type_merge): Declare.
2935         (gimple_types_compatible_p): Declare.
2936         (gimple_register_type): Declare.
2937         (print_gimple_types_stats): Declare.
2938         (gimple_unsigned_type): Declare.
2939         (gimple_signed_type): Declare.
2940         (gimple_get_alias_set): Declare.
2941         (gimple_eh_must_not_throw_set_fndecl): New.
2942
2943 2009-10-03  Jan Hubicka  <jh@suse.cz>
2944             Kenneth Zadeck <zadeck@naturalbridge.com>
2945
2946         * ipa-pure-const.c: Include lto-streamer.h.
2947         (register_hooks): Factor out of ...
2948         (generate_summary): ... here.
2949         (pure_const_write_summary): New.
2950         (pure_const_read_summary): New.
2951         (pass_ipa_pure_const): Add pure_const_write_summary and
2952         pure_const_read_summary.
2953         * ipa-reference.c: Include lto-streamer.h.
2954         (add_new_function): New.
2955         (remove_node_data): New.
2956         (duplicate_node_data): New.
2957         (ipa_init): Guard against multiple calls.
2958         Move hook setup from analyze_function.
2959         (write_node_summary_p): New.
2960         (ipa_reference_write_summary): New.
2961         (ipa_reference_read_summary): New.
2962         (pass_ipa_reference): Add ipa_reference_write_summary and
2963         ipa_reference_read_summary.
2964         * cgraph.h (cgraph_local_info): Add field lto_file_data.
2965         (struct cgraph_edge): Add fields lto_stmt_uid and
2966         call_stmt_cannot_inline_p.
2967         (cgraph_optimize): Declare.
2968         (cgraph_decide_is_function_needed): Declare.
2969         (reset_inline_failed): Declare.
2970         (enum LTO_cgraph_tags): Declare.
2971         (LTO_cgraph_tag_names): Declare.
2972         (LCC_NOT_FOUND): Define.
2973
2974 2009-10-03  Doug Kwan  <dougkwan@google.com>
2975             Rafael Espindola  <espindola@google.com>
2976             Jan Hubicka  <jh@suse.cz>
2977             Diego Novillo  <dnovillo@google.com>
2978             Kenneth Zadeck  <zadeck@naturalbridge.com>
2979
2980         * passes.c (all_regular_ipa_passes): New.
2981         (all_ipa_passes): Rename to all_small_ipa_passes.
2982         (init_optimization_passes): Init all_regular_ipa_passes.
2983         * tree-pass.h (all_regular_ipa_passes): New.
2984         (all_ipa_passes): Rename to all_small_ipa_passes.
2985         * passes.c (all_lto_gen_passes): New.
2986         (init_optimization_passes): Initialize all_lto_gen_passes.
2987         (execute_ipa_summary_passes): Make non-static.
2988         (ipa_write_summaries_1): New.
2989         (ipa_write_summaries_2): New.
2990         (ipa_write_summaries): New.
2991         (ipa_write_summaries_of_cgraph_node_set): New.
2992         (ipa_read_summaries_1): New.
2993         (ipa_read_summaries): New.
2994         (execute_ipa_pass_list): Call cgraph_process_new_functions.
2995         (execute_regular_ipa_pass_list): Remove.
2996         (init_optimization_passes): Schedule
2997         pass_rebuild_cgraph_edges and pass_early_inline outside
2998         of pass_all_early_optimizations.  Document reason.
2999         (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
3000         pass_ipa_lto_finish_out): New pass.
3001         (pass_ipa_summary_passes): Start and stop timers if the pass has them.
3002         (execute_all_ipa_transforms): New.
3003         (execute_one_pass): Don't call execute_one_ipa_transform_pass.
3004         (dump_properties, debug_properties): New.
3005         * tree-optimize.c (gate_all_early_local_passes): Return
3006         false if we are in lto1.
3007         (tree_rest_of_compilation): Call execute_all_ipa_transforms.
3008         * tree-pass.h (execute_all_ipa_transforms): Declare.
3009         (pass_ipa_function_and_variable_visibility): Declare.
3010         (pass_ipa_early_inline): Declare.
3011         (pass_ipa_lto_gimple_out): Declare.
3012         (pass_ipa_lto_wpa_fixup): Declare.
3013         (pass_ipa_lto_finish_out): Declare.
3014         (all_small_ipa_passes, all_regular_ipa_passes,
3015         all_lto_gen_passes): Declare.
3016         (execute_ipa_summary_passes): Declare.
3017         (execute_all_ipa_transforms): Declare.
3018         (ipa_write_summaries): Declare
3019         (ipa_write_summaries_of_cgraph_node_set): Declare.
3020         (ipa_read_summaries): Declare.
3021
3022 2009-10-03  Doug Kwan  <dougkwan@google.com>
3023             Ollie Wild  <aaw@google.com>
3024
3025         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
3026
3027         * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
3028         (lto_mode): New variable.
3029         (maybe_run_lto_and_relink): Handle the -fwpa option.
3030         (main): Handle the -fwpa option.
3031         (maybe_unlink_list): New function.
3032         * gcc.c (link_lto_options): Replace -flto with -fwpa.
3033         * common.opt (flto): New flag.
3034         * toplev.c (flag_generate_lto): Declare.
3035
3036 2009-10-03  Simon Baldwin  <simonb@google.com>
3037
3038         * common.opt (flto-compression-level): New flag.
3039
3040         * opts.c: Include lto-opts.h.
3041         (handle_option): Call lto_register_user_option for each
3042         valid option handled.
3043         (decode_options): Clear registered options before the options
3044         handling loop.
3045
3046 2009-10-03  Cary Coutant  <ccoutant@google.com>
3047
3048         * collect2.c (is_elf): New function.
3049         (scan_prog_file): Require LTO object to be in ELF format.
3050
3051 2009-10-03  Rafael Espindola  <espindola@google.com>
3052
3053         * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
3054         libgcc to the linker.
3055
3056         * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
3057
3058         * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
3059         (collect_execute): Add flags argument. Pass flags to pex_run. Update
3060         all callers.
3061         * collect2.h (collect_execute): Add flags argument.
3062         * tlink.c (tlink_execute): Update call to collect_execute.
3063         * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
3064         (use_linker_plugin): New.
3065         (use_linker_plugin_spec_function): New.
3066         (LINK_COMMAND_SPEC): Pass plugin options to the linker.
3067         (linker_plugin_file_spec): New.
3068         (lto_wrapper_spec): New.
3069         (lto_gcc_spec): New.
3070         (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
3071         (static_spec_functions): Add use-linker-plugin.
3072         (process_command): Handle -use-linker-plugin.
3073         (main): Use lto_wrapper_spec instead of lto_wrapper. Set
3074         linker_plugin_file_spec and lto_gcc_spec.
3075         (use_linker_plugin_spec_function): New.
3076
3077 2009-10-03  Richard Guenther  <rguenther@suse.de>
3078
3079         PR lto/41547
3080         PR lto/41548
3081         * tree.h (is_lang_specific): Include LANG_TYPE.
3082         * tree.c (find_decls_types_r): Manually add interesting parts
3083         of TYPE_FIELDS.  Walk BINFO_VIRTUALS.  Do not walk TYPE_METHODS.
3084
3085         * gimple.c (type_pair_hash): Make symmetric.
3086         (type_pair_eq): Likewise.
3087         (lookup_type_pair): Increase initial hashtable size.
3088         (gimple_force_type_merge): Rely on type-pair symmetry.
3089         (visit): Remove excessive checking code.
3090         (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
3091         (gimple_register_type): Remove getenv calls, shrink initial
3092         hashtable size.
3093
3094         PR middle-end/41502
3095         * cgraphunit.c (ipa_passes): Do not remove bodies of extern
3096         inline functions if not generating lto output.
3097
3098         PR lto/41379
3099         * toplev.c (finalize): In WPA mode remove the asm file.
3100
3101 2009-10-03  Doug Kwan  <dougkwan@google.com>
3102
3103         * ipa-inline.c (cgraph_mark_inline): Check
3104         edge->call_stmt_cannot_inline_p instead of calling
3105         gimple_call_cannot_inline_p.
3106         (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
3107         (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
3108         (inline_generate_summary): Do nothing in LTRANS.
3109         * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
3110         exists before calling gimple_call_cannot_inline_p.
3111         (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
3112         (cgraph_clone_edge): Add argument STMT_UID.  Modify all callers.
3113         Update new_edge->lto_stmt_uid.
3114         * cgraphbuild.c (reset_inline_failed): New.
3115
3116         * common.opt (fwpa): New flag.
3117         (fltrans): New option.
3118         * gcc.c (gcc_lto_option_t): New type.
3119         (current_lto_option): New variable.
3120         (lto_single_spec_function): Remove and is replaced by ..
3121         (lto_option_spec_function): New function.
3122         (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
3123         passing the -flto flag.
3124         (cc1_options): Separate non-LTO related parts into ..
3125         (cc1_non_lto_options): Non-LTO related options shared by all FEs.
3126         (lto1_options): New spec for lto FE.
3127         (link_lto_options): New spec for handling LTO flags in linker.
3128         (invoke_lto_single): Re-format to fit in 80 column.  Replace
3129         lto-single with lto-option.
3130         (static_specs): Add cc1_non_lto_options, lto1_options and
3131         link_lto_options.
3132         (static_spec_function): Replace lto-single with lto-option.
3133         (process_command): Handle -flto, -fwpa and -fltran by setting
3134         current_lto_option and not passing it to subprocess unconditionally.
3135
3136 2009-10-03  Bill Maddox  <maddox@google.com>
3137
3138         Add `gcc' driver support for link-time code generation (LTO).
3139
3140         * collect2.c (enum pass): Add new literal PASS_LTOINFO.
3141         (lto_flag, lto_objects, lto_o_file): New variables.
3142         (struct lto_object, struct lto_object_list): New structures.
3143         (collect_exit, handler): Remove LTO temporary output file on exit.
3144         (add_lto_object): New function.
3145         (maybe_run_lto_and_relink): New function. Perform link time code
3146         generation and relinking for object files containing LTO information.
3147         (main): Invoke maybe_run_lto_and_relink().
3148         (dump_argv): New function.  For debugging, currently disabled.
3149         (scan_prog_file): Add LTO information pass.
3150         * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
3151         collect2.
3152         * toplev.c (compile_file): Emit assembler directive to create
3153         the `gnu_lto_v1' marker symbol when compiling with `-flto'.
3154
3155 2009-10-03  Diego Novillo  <dnovillo@google.com>
3156
3157         * c.opt: Add LTO to warn_abi and warn_psabi.
3158
3159         * tree.c (fld_worklist_push): Rename from PUSH.  Convert to static
3160         inline function.  Ignore language-specific nodes.  Update all users.
3161         (find_decls_types_r): Do not traverse the subtrees of
3162         language-specific nodes.  Do not traverse DECL_INITIAL for TYPE_DECLs.
3163         * tree.h (is_lang_specific): New.
3164         * langhooks.h (struct lang_hooks_for_decls): Remove
3165         may_need_assembler_name_p.  Update all users.
3166
3167         * c-common.c (set_builtin_user_assembler_name): Move ...
3168         * builtins.c (set_builtin_user_assembler_name): ... here.
3169         (is_builtin_name): Add comment
3170         (is_builtin_fn): New.
3171         * except.c (output_ttype): Only call
3172         lookup_type_for_runtime if TYPE is not a runtime type.
3173
3174         * passes.c (register_pass): Call position_pass on
3175         all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
3176         * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
3177         (TV_IPA_LTO_DECL_IO): Define.
3178         (TV_IPA_LTO_CGRAPH_IO): Define.
3179         (TV_LTO): Define.
3180         (TV_WHOPR_WPA): Define.
3181         (TV_WHOPR_WPA_IO): Define.
3182         (TV_WHOPR_LTRANS): Define.
3183         (TV_WHOPR_WPA_FIXUP): Define.
3184         (TV_WHOPR_WPA_LTRANS_EXEC): Define.
3185         * tree-cfg.c (tree_node_can_be_shared): Make extern.
3186         * tree-flow.h (tree_node_can_be_shared): Declare.
3187         * tree-inline.c (tree_can_inline_p): Check that E has a
3188         statement associated with it.
3189         * tree.c (free_lang_data_in_binf): Factor out of ...
3190         (free_lang_data_in_type): ... here.
3191         Call RECORD_OR_UNION_TYPE_P.
3192         (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
3193         set.  Call lang_hooks.decls.may_need_assembler_name_p if set.
3194         (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
3195         (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE.  Set
3196         write_symbols to NO_DEBUG.  Set debug_hooks to do_nothing_debug_hooks.
3197         (gate_free_lang_data): Return true if flag_generate_lto is set.
3198         (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
3199         * c-common.h (set_builtin_user_assembler_name): Move ...
3200         * tree.h (set_builtin_user_assembler_name): ... here.
3201
3202         * common.opt (flto-report): New flag.
3203         * opts.c (complain_wrong_lang): Do not complain if running lto1.
3204         * collect2.c (scan_prog_file): Send the error output of
3205         'nm' to HOST_BIT_BUCKET.
3206
3207 2009-10-03  Ollie Wild  <aaw@google.com>
3208
3209         * langhooks-def.h (lhd_begin_section): New function declaration.
3210         (lhd_write_section): New function declaration.
3211         (lhd_end_section): New function declaration.
3212         (LANG_HOOKS_BEGIN_SECTION): New macro.
3213         (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
3214         (LANG_HOOKS_END_SECTION): New macro.
3215         (LANG_HOOKS_LTO): New macro.
3216         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
3217         * langhooks.c (output.h): Add include.
3218         (saved_section): New static variable.
3219         (lhd_begin_section): New function.
3220         (lhd_write_section_data): New function.
3221         (lhd_end_section): New function.
3222         * langhooks.h (struct lang_hooks_for_lto): New structure.
3223         (struct lang_hooks): Add member lto.
3224         * Makefile.in (langhooks.o): Add dependency on output.h.
3225
3226         * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
3227
3228 2009-10-03  Richard Guenther  <rguenther@suse.de>
3229
3230         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
3231         Handle LTO.
3232
3233 2009-10-03  Simon Baldwin  <simonb@google.com>
3234             Richard Guenther  <rguenther@suse.de>
3235             Janis Johnson  <janis187@us.ibm.com>
3236             Doug Kwan  <dougkwan@google.com>
3237             Diego Novillo  <dnovillo@google.com>
3238             Ramana Radhakrishnan  <ramana.r@gmail.com>
3239             Ollie Wild  <aaw@google.com>
3240
3241         * doc/install.texi: Add documentation for libelf and --enable-lto.
3242         * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
3243         -flto-report, -flto-compression-level and -use-linker-plugin.
3244         * doc/sourcebuild.texi: Document use of zlib.  Document lto-plugin.
3245         Add section for LTO Testing.
3246
3247 2009-10-02  Cary Coutant  <ccoutant@google.com>
3248
3249         Add support for comdat type sections for DWARF v4.
3250         Merge from dwarf4 branch.
3251
3252         * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
3253         (dw_die_ref): Define vector type.
3254         (enum dw_val_class): Add dw_val_class_data8.
3255         (struct dw_val_struct): Add v.val_data8.
3256         (comdat_type_node_ref): New type.
3257         (struct die_struct): Move die_symbol into a union; add new field
3258         die_type_node.  Change all uses.
3259         (comdat_type_node): New type.
3260         (skeleton_chain_node): New type.
3261         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
3262         (comdat_type_list): New variable.
3263         (dwarf_tag_name): Add DW_TAG_type_unit.
3264         (dwarf_attr_name): Add DW_AT_signature.
3265         (add_AT_data8): New function.
3266         (replace_child): New function.
3267         (move_all_children): New function.
3268         (print_signature): New function.
3269         (print_die): Print signature information; add dw_val_class_data8.
3270         (attr_checksum): Support dw_val_class_data8.
3271         (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
3272         (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
3273         (checksum_sleb128, checksum_uleb128): New functions.
3274         (checksum_die_context): New function.
3275         (loc_checksum_ordered): New function.
3276         (attr_checksum_ordered): New function.
3277         (struct checksum_attributes): New structure.
3278         (collect_checksum_attributes): New function.
3279         (die_checksum_ordered): New function.
3280         (generate_type_signature): New function.
3281         (same_dw_val_p): Add dw_val_class_data8.
3282         (is_symbol_die): Use new is_declaration_die function.
3283         (is_declaration_die): New function.
3284         (should_move_die_to_comdat): New function.
3285         (clone_die): New function.
3286         (clone_tree): New function.
3287         (clone_as_declaration): New function.
3288         (copy_declaration_context): New function.
3289         (generate_skeleton_ancestor_tree): New function.
3290         (generate_skeleton_bottom_up): New function.
3291         (generate_skeleton): New function.
3292         (remove_child_or_replace_with_skeleton): New function.
3293         (break_out_comdat_types): New function.
3294         (struct decl_table_entry): New type.
3295         (htab_decl_hash): New function.
3296         (htab_decl_eq): New function.
3297         (htab_decl_del): New function.
3298         (copy_ancestor_tree): New function.
3299         (copy_decls_walk): New function.
3300         (copy_decls_for_unworthy_types): New function.
3301         (build_abbrev_table): Don't assert on missing die_symbol when doing
3302         comdat type sections.
3303         (size_of_die): Use DW_FORM_sig8 for external references.  Add
3304         dw_val_class_data8.
3305         (unmark_dies): Don't assert for unmarked dies when doing comdat
3306         type sections.
3307         (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
3308         (output_signature): New function.
3309         (output_die): Likewise.
3310         (output_compilation_unit_header): Mark output as DWARF version 3
3311         even if generating DWARF 4.
3312         (output_comdat_type_unit): New function.
3313         (output_line_info): Mark output as DWARF version 3 even if generating
3314         DWARF 4.
3315         (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
3316         DWARF-4.
3317         (dwarf2out_end_source_file): Likewise.
3318         (prune_unused_types_walk_attribs): Don't follow references into
3319         comdat type sections.
3320         (prune_unused_types_mark): When generating type units, do not mark
3321         children of non-defining declarations of types; do mark children of
3322         type entries.
3323         (prune_unused_types): Process comdat type sections.
3324         (htab_ct_hash): New function.
3325         (htab_ct_eq): New function.
3326         (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
3327         Add a pointer to the line table from type unit entries so
3328         DW_AT_decl_file has meaning.
3329         * varasm.c (default_elf_asm_named_section): Use identifier name as
3330         comdat key instead of lang hook.
3331
3332 2009-10-02  Neil Vachharajani  <nvachhar@google.com>
3333
3334         * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
3335
3336 2009-10-02  Uros Bizjak  <ubizjak@gmail.com>
3337
3338         * config/i386/i386.md (SWIM248): New mode iterator.
3339         (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
3340         divmodhi4 patterns using SWIM248 macro.
3341         (*divmod<mode>4): Macroize insn_and_split pattern from
3342         *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
3343         and their corresponding splitters usign SWIM248 macro.  Split SImode
3344         insn to generate cltd and DImode insn to generate cqto instead of
3345         move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
3346         (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
3347         (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
3348         *divmodsi_noext patterns using SWIM248 macro.
3349         (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
3350         udivmodhi4 patterns using SWIM248 macro.
3351         (*udivmod<mode>4): Macroize insn_and_split pattern from
3352         *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
3353         corresponding splitters using SWIM248 macro.
3354         (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
3355         *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
3356
3357 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
3358
3359         * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
3360         of zero-sized element is zero-sized regardless of its extent.
3361
3362 2009-10-02  Jakub Jelinek  <jakub@redhat.com>
3363
3364         PR debug/40521
3365         * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
3366         * configure: Regenerated.
3367         * config.in: Regenerated.
3368         * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
3369         !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
3370         (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
3371         not emitting .eh_frame, emit .cfi_sections .debug_frame
3372         directive.
3373
3374         PR debug/41404
3375         PR debug/41353
3376         * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
3377         CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
3378         with '\0'.
3379         (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
3380         vars use DECL_RTL with resetting it back to NULL afterwards.
3381         * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
3382         rtx_equal_p instead of asserting it is a SYMBOL_REF.
3383         (value_format): For dw_val_class_addr only use DW_FORM_addr if
3384         the attribute type allows it, otherwise use DW_FORM_dataN.
3385         (mem_loc_descriptor): Handle CONST_STRING.
3386         (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
3387         Handle MEM with CONST_STRING address using add_AT_string.
3388         (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
3389         CONST_STRING for const arrays initialized with a string literal.
3390         (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
3391         (dwarf2out_finish): Call resolve_addr.
3392
3393 2009-10-02  Andreas Schwab  <schwab@linux-m68k.org>
3394             Maxim Kuvyrkov  <maxim@codesourcery.com>
3395
3396         * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
3397
3398 2009-10-02  Nick Clifton  <nickc@redhat.com>
3399
3400         * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
3401         (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
3402
3403 2009-10-01  Jan Hubicka  <jh@suse.cz>
3404
3405         * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
3406         (cgraph_create_virtual_clone): Just pass redirect_callers
3407         around.
3408         * cgraph.h (cgraph_clone_node): Update prototype.
3409         * ipa-pure-const.c (self_recursive_p): New function.
3410         (propagate): Use it.
3411         * ipa-inline.c (cgraph_clone_inlined_nodes,
3412         cgraph_decide_recursive_inlining): Update.
3413
3414 2009-10-01  David Daney  <ddaney@caviumnetworks.com>
3415
3416         * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
3417         instructions for TARGET_OCTEON.
3418
3419 2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3420
3421         * config/arm/arm.c (arm_override_options): Turn off
3422         flag_dwarf2_cfi_asm for AAPCS variants.
3423
3424 2009-10-01  Martin Jambor  <mjambor@suse.cz>
3425
3426         PR middle-end/12392
3427         * tree-sra.c (convert_callers): Do not call
3428         compute_inline_parameters on one caller more than once.
3429
3430 2009-10-01  Nick Clifton  <nickc@redhat.com>
3431
3432         * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
3433         an empty string if not already defined.
3434
3435 2009-10-01  Martin Jambor  <mjambor@suse.cz>
3436
3437         PR bootstrap/41395
3438         * tree-sra.c (is_va_list_type): New function.
3439         (find_var_candidates): Call is_va_list_type.
3440         (find_param_candidates): Check that the type or the type pointed
3441         to are not va_list types.
3442
3443 2009-10-01  Martin Jambor  <mjambor@suse.cz>
3444
3445         PR c++/41503
3446         * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
3447         DECL_ARTIFICIAL (param_decl) is true.
3448
3449 2009-09-30  Gabriel Dos Reis  <gdr@cs.tamu.edu>
3450
3451         * tree.h (tree_decl_common::lang_flag_8): New.
3452         * c-common.c (c_common_reswords): Include "constexpr" as C++0x
3453         keyword.
3454         * c-common.h (RID_CONSTEXPR): New.
3455
3456 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
3457
3458         * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
3459         Use ref-all pointers.
3460         (alpha_gimplify_va_arg): Ditto.
3461
3462 2009-09-30  Jakub Jelinek  <jakub@redhat.com>
3463
3464         PR target/41279
3465         * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
3466         before insn counting loop now that BB_END (bb) is counted.  Ensure
3467         the return value isn't zero.
3468
3469 2009-09-30  Nick Clifton  <nickc@redhat.com>
3470
3471         * config.gcc (sh-symbianelf): Replace definition of extra_objs
3472         with separate definitions of c_target_objs and cxx_target_objs.
3473         * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
3474         and symbian-base.o.
3475         * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
3476         sh_symbian_import_export_class.
3477         * config/sh/sh-protos.h: Fix names of exported symbian functions.
3478         * config/sh/symbian.c: Delete, moving code into...
3479         * config/sh/symbian-base.c: ... here
3480         * config/sh/symbian-c.c: ... and here
3481         * config/sh/symbian-cxx.c: ... and here.
3482
3483 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
3484
3485         PR target/22093
3486         * config/alpha/alpha.md (unaligned_storehi_be): Force operand
3487         of plus RTX into register.
3488
3489 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3490
3491         * doc/install.texi: Linguistic and markup fixes.
3492         (Configuration) <--disable-cpp>: Remove description.
3493         <--enable-maintainer-mode>: Autotools files are affected, too.
3494         <--with-sysroot>: Improve description.
3495         (Building): Bump required GNU make version.
3496
3497 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
3498
3499         * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
3500         (x86_64-*-*): Ditto.
3501
3502         * config/i386/fma4intrin.h: New file, provide common x86 compiler
3503         intrinisics for FMA4.
3504         * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
3505         * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
3506         Add FMA4 check and fma4intrin.h.
3507         * config/i386/i386-c.c(ix86_target_macros_internal): Check
3508         ISA_FLAG for FMA4.
3509         * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
3510         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
3511         constant for FMA4 support.
3512         (UNSPEC_FMA4_FMADDSUB): Ditto.
3513         (UNSPEC_FMA4_FMSUBADD): Ditto.
3514         * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
3515         * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
3516         (ix86_expand_fma4_multiple_memory): Ditto.
3517         * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
3518         (OPTION_MASK_ISA_FMA4_UNSET): New.
3519         (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
3520         (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
3521         (ix86_handle_option): Handle -mfma4.
3522         (isa_opts): Handle -mfma4.
3523         (enum pta_flags): Add PTA_FMA4.
3524         (override_options): Add FMA4 support.
3525         (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
3526         (IX86_BUILTIN_VFMADDSD): Ditto.
3527         (IX86_BUILTIN_VFMADDPS): Ditto.
3528         (IX86_BUILTIN_VFMADDPD): Ditto.
3529         (IX86_BUILTIN_VFMSUBSS): Ditto.
3530         (IX86_BUILTIN_VFMSUBSD): Ditto.
3531         (IX86_BUILTIN_VFMSUBPS): Ditto.
3532         (IX86_BUILTIN_VFMSUBPD): Ditto.
3533         (IX86_BUILTIN_VFMADDSUBPS): Ditto.
3534         (IX86_BUILTIN_VFMADDSUBPD): Ditto.
3535         (IX86_BUILTIN_VFMSUBADDPS): Ditto.
3536         (IX86_BUILTIN_VFMSUBADDPD): Ditto.
3537         (IX86_BUILTIN_VFNMADDSS): Ditto.
3538         (IX86_BUILTIN_VFNMADDSD): Ditto.
3539         (IX86_BUILTIN_VFNMADDPS): Ditto.
3540         (IX86_BUILTIN_VFNMADDPD): Ditto.
3541         (IX86_BUILTIN_VFNMSUBSS): Ditto.
3542         (IX86_BUILTIN_VFNMSUBSD): Ditto.
3543         (IX86_BUILTIN_VFNMSUBPS): Ditto.
3544         (IX86_BUILTIN_VFNMSUBPD): Ditto.
3545         (IX86_BUILTIN_VFMADDPS256): Ditto.
3546         (IX86_BUILTIN_VFMADDPD256): Ditto.
3547         (IX86_BUILTIN_VFMSUBPS256): Ditto.
3548         (IX86_BUILTIN_VFMSUBPD256): Ditto.
3549         (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
3550         (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
3551         (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
3552         (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
3553         (IX86_BUILTIN_VFNMADDPS256): Ditto.
3554         (IX86_BUILTIN_VFNMADDPD256): Ditto.
3555         (IX86_BUILTIN_VFNMSUBPS256): Ditto.
3556         (IX86_BUILTIN_VFNMSUBPD256): Ditto.
3557         (enum multi_arg_type): New enum for describing the various FMA4
3558         intrinsic argument types.
3559         (bdesc_multi_arg): New table for FMA4 intrinsics.
3560         (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
3561         (ix86_expand_multi_arg_builtin): New function for creating FMA4
3562         intrinsics.
3563         (ix86_expand_builtin): Add FMA4 intrinsic support.
3564         (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
3565         operand instructions.
3566         (ix86_expand_fma4_multiple_memory): New function to split the
3567         second memory reference from FMA4 instructions.
3568         * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
3569         (ssemodesuffixf2s): Ditto.
3570         (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
3571         instructions.
3572         (fma4_fmsub<mode>4): Ditto.
3573         (fma4_fnmadd<mode>4): Ditto.
3574         (fma4_fnmsub<mode>4): Ditto.
3575         (fma4_vmfmadd<mode>4): Ditto.
3576         (fma4_vmfmsub<mode>4): Ditto.
3577         (fma4_vmfnmadd<mode>4): Ditto.
3578         (fma4_vmfnmsub<mode>4): Ditto.
3579         (fma4_fmadd<mode>4256): Ditto.
3580         (fma4_fmsub<mode>4256): Ditto.
3581         (fma4_fnmadd<mode>4256): Ditto.
3582         (fma4_fnmsub<mode>4256): Ditto.
3583         (fma4_fmaddsubv8sf4): Ditto.
3584         (fma4_fmaddsubv4sf4): Ditto.
3585         (fma4_fmaddsubv4df4): Ditto.
3586         (fma4_fmaddsubv2df4): Ditto.
3587         (fma4_fmsubaddv8sf4): Ditto.
3588         (fma4_fmsubaddv4sf4): Ditto.
3589         (fma4_fmsubaddv4df4): Ditto.
3590         (fma4_fmsubaddv2df4): Ditto.
3591         (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
3592         instructions for intrinsics.
3593         (fma4i_fmsub<mode>4): Ditto.
3594         (fma4i_fnmadd<mode>4): Ditto.
3595         (fma4i_fnmsub<mode>4): Ditto.
3596         (fma4i_vmfmadd<mode>4): Ditto.
3597         (fma4i_vmfmsub<mode>4): Ditto.
3598         (fma4i_vmfnmadd<mode>4): Ditto.
3599         (fma4i_vmfnmsub<mode>4): Ditto.
3600         (fma4i_fmadd<mode>4256): Ditto.
3601         (fma4i_fmsub<mode>4256): Ditto.
3602         (fma4i_fnmadd<mode>4256): Ditto.
3603         (fma4i_fnmsub<mode>4256): Ditto.
3604         (fma4i_fmaddsubv8sf4): Ditto.
3605         (fma4i_fmaddsubv4sf4): Ditto.
3606         (fma4i_fmaddsubv4df4): Ditto.
3607         (fma4i_fmaddsubv2df4): Ditto.
3608         (fma4i_fmsubaddv8sf4): Ditto.
3609         (fma4i_fmsubaddv4sf4): Ditto.
3610         (fma4i_fmsubaddv4df4): Ditto.
3611         (fma4i_fmsubaddv2df4): Ditto.
3612
3613         * doc/invoke.texi (-mfma4): Add documentation.
3614         * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
3615
3616 2009-09-29  Richard Henderson  <rth@redhat.com>
3617
3618         * tree-eh.c (unsplit_eh): Do not unsplit if there's already
3619         an edge to the new destination block.
3620
3621 2009-09-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3622
3623         PR target/41393
3624         * pa.c (hppa_profile_hook): Use
3625         make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
3626
3627 2009-09-29  Steve Ellcey  <sje@cup.hp.com>
3628             Alexander Monakov  <amonakov@ispras.ru>
3629
3630         PR target/41365
3631         * config/ia64/predicates.md (not_postinc_destination_operand): New.
3632         (not_postinc_memory_operand): New.
3633         (not_postinc_move_operand): New.
3634         * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
3635         (*cmovsi_internal): Ditto.
3636
3637 2009-09-29  Pat Haugen  <pthaugen@us.ibm.com>
3638
3639         * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
3640         restrict issue_rate in first pass when scheduling for register
3641         pressure.
3642
3643 2009-09-29  Basile Starynkevitch  <basile@starynkevitch.net>
3644             Rafael Avila de Espindola  <espindola@google.com>
3645
3646         * gengtype.c (plugin_output): New.
3647         (get_output_file_with_visibility): Return plugin_output for plugins.
3648         (main): Parse and use the -P option.
3649         * gty.texi: Update the command line format.
3650
3651 2009-09-29  Jakub Jelinek  <jakub@redhat.com>
3652
3653         PR debug/41438
3654         * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
3655         functions.
3656         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
3657         out if !const_ok_for_output.
3658
3659         PR debug/41474
3660         * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
3661         case VAR_LOCATION>: Remove gcc_unreachable ().
3662
3663 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
3664
3665         * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
3666         (x86_64-*-*): Ditto.
3667         * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
3668         back to smmintrin.h.
3669         * config/i386/cpuid.h (bit_SSE5): Remove SSE5 bit.
3670         * config/i386/x86intrin.h: Remove SSE5.
3671         * config/i386/mmintrin-common.h: Delete file.
3672         * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
3673
3674 2009-09-29  Richard Guenther  <rguenther@suse.de>
3675
3676         * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
3677         resulting from stack temporaries on STRICT_ALIGNMENT targets.
3678
3679 2009-09-29  Nick Clifton  <nickc@redhat.com>
3680
3681         * function.c (current_function_name): If there is no current
3682         function just return "<none>".
3683
3684 2009-09-28  Sriraman Tallam  <tmsriram@google.com>
3685
3686         * tree-pass.h (register_pass_info): New structure.
3687         (pass_positioning_ops): Move enum from gcc-plugin.h.
3688         (register_pass): New function.
3689         * gcc-plugin.h (plugin_pass): Delete structure.
3690         (pass_positioning_ops): Delete enum.
3691         * plugin.c (regsiter_pass): Delete function.
3692         (position_pass): Delete function.
3693         (added_pass_nodes): Delete variable.
3694         (prev_added_pass_nodes): Delete variable.
3695         (pass_list_node): Delete structure.
3696         * passes.c (make_pass_instance): New function.
3697         (next_pass_1): Change to call make_pass_instance.
3698         (pass_list_node): Move structure from gcc-plugin.h.
3699         (added_pass_nodes): Move variable from plugin.c.
3700         (prev_added_pass_nodes): Move variable from plugin.c.
3701         (position_pass): New function.
3702         (register_pass): New function.
3703
3704 2009-09-28  Easwaran Raman  <eraman@google.com>
3705
3706         * ifcvt.c (noce_try_abs): Recognize pattern and call
3707         expand_one_cmpl_abs_nojump.
3708         * optabs.c (expand_one_cmpl_abs_nojump): New function.
3709         * optabs.h (expand_one_cmpl_abs_nojump): Declare.
3710
3711 2009-09-28  Ian Lance Taylor  <iant@google.com>
3712
3713         PR middle-end/40500
3714         * c-opts.c (c_common_handle_option): Don't set
3715         warn_jump_misses_init for -Wall.
3716         * doc/invoke.texi (Warning Options): Update documentation.
3717
3718 2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3719
3720         * Makefile.in ($(out_object_file)): Depend on
3721         gt-$(basename $(notdir $(out_file))).h.
3722
3723 2009-09-28  Richard Henderson  <rth@redhat.com>
3724
3725         * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
3726         * except.c (gen_eh_region): Set it.
3727         (duplicate_eh_regions_1): Copy it.
3728         * tree-eh.c (lower_resx): Use it to determine which function
3729         to call to resume.
3730
3731         * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
3732         * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
3733         * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
3734         * tree.c (build_common_builtin_nodes): Remove parameter.  Build
3735         BUILT_IN_CXA_END_CLEANUP if necessary.
3736
3737         * c-common.c (c_define_builtins): Update call to
3738         build_common_builtin_nodes.
3739
3740 2009-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3741
3742         * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
3743
3744 2009-09-28  Michael Matz  <matz@suse.de>
3745
3746         * builtins.c (interclass_mathfn_icode): New helper.
3747         (expand_builtin_interclass_mathfn): Use it here, and split folding
3748         into ...
3749         (fold_builtin_interclass_mathfn): ... this new folder.
3750         (build_call_nofold_loc): New static helper.
3751         (build_call_nofold): New wrapper macro for above.
3752         (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
3753         (expand_builtin_pow): Ditto.
3754         (expand_builtin_memset_args): Ditto.
3755         (expand_builtin_printf): Ditto.
3756         (expand_builtin_fprintf): Ditto.
3757         (expand_builtin_sprintf): Ditto.
3758         (expand_builtin_memory_chk): Ditto.
3759         (expand_builtin_mempcpy_args): Ditto and don't call folders.
3760         (expand_builtin_stpcpy): Ditto.
3761         (expand_builtin_strcmp): Ditto.
3762         (expand_builtin_strncmp): Ditto.
3763         (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
3764         (expand_builtin_strcpy_args): Don't call folders.
3765         (expand_builtin_memcmp): Ditto.
3766         (expand_builtin_strncpy): Ditto, and use target.
3767         (expand_builtin_memcpy): Ditto.
3768         (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
3769         expand_builtin_strpbrk, expand_builtin_memmove,
3770         expand_builtin_memmove_args, expand_builtin_bcopy,
3771         expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
3772         expand_builtin_strspn, expand_builtin_strcspn,
3773         expand_builtin_fputs): Remove these.
3774         (expand_builtin): Don't call the above, change calls to other
3775         expanders that changed prototype.
3776         (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
3777         (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
3778         fold_builtin_interclass_mathfn.
3779         (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
3780         (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
3781
3782         * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
3783         * passes.c (init_optimization_passes): Move pass_fold_builtins
3784         after last phiopt pass.
3785         * tree-inline.c (fold_marked_statements): When folding builtins
3786         iterate over all instruction potentially generated.
3787         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
3788         earlier.
3789         (fold_gimple_call): Use it to always fold calls (into potentially
3790         multiple instructions).
3791         * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
3792         calls into zero at this time.
3793         * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
3794         statements generated by builtin folding.
3795
3796 2009-09-28  Nick Clifton  <nickc@redhat.com>
3797
3798         * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
3799
3800 2009-09-28  Duncan Sands  <baldrick@free.fr>
3801
3802         * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
3803         * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
3804         (register_callback): Dispatch it.
3805         (invoke_plugin_callbacks): Incorporate in sanity check.
3806         * ggc.h (ggc_register_cache_tab): Add declaration.
3807         * ggc-common.c (ggc_register_root_tab): Simplify.
3808         (const_ggc_cache_tab_t): New typedef.
3809         (extra_cache_vec): New vector of dynamically added cache tables.
3810         (ggc_register_cache_tab): New function.
3811         (ggc_scan_cache_tab): New function.
3812         (ggc_mark_roots): Simplify dynamic roots.  Handle dynamic caches.
3813         * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
3814
3815 2009-09-27  Richard Henderson  <rth@redhat.com>
3816
3817         * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
3818         which we remove __builtin_stack_restore.
3819
3820 2009-09-27  Bernd Schmidt  <bernd.schmidt@analog.com>
3821
3822         * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
3823         to test for GRD_INVARIANT.
3824         (simple_rhs_p): Anything that's function_invariant_p is fine.
3825
3826 2009-09-27  Rafael Avila de Espindola  <espindola@google.com>
3827
3828         * gengtype.c (main): Use plunge_files instead of plugin_output.
3829
3830 2009-09-27  Basile Starynkevitch  <basile@starynkevitch.net>
3831             Rafael Avila de Espindola  <espindola@google.com>
3832
3833         * gengtype.c (write_root, write_roots): Add a emit_pch argument.
3834         Don't print pch related info if it is false.
3835         (main): Don't print pch info in plugin mode.
3836
3837 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
3838
3839         * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
3840         with dw_val_class_const_double.
3841         (struct dw_val_struct): Replace val_long_long with val_double and
3842         adjust for above change.
3843         (output_loc_operands): Likewise.
3844         (add_AT_long_long): Rename into...
3845         (add_AT_double): ...this.
3846         (print_die): Replace dw_val_class_long_long with
3847         dw_val_class_const_double and adjust.
3848         (attr_checksum): Likewise.
3849         (same_dw_val_p): Likewise.
3850         (size_of_die): Likewise.
3851         (value_format): Likewise.
3852         (output_die): Likewise.
3853         (loc_descriptor) <CONST_DOUBLE>: Likewise.
3854         (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
3855         instead of add_AT_long_long.
3856         (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
3857         value with the precision of its type.
3858
3859 2009-09-27  Andreas Schwab  <schwab@linux-m68k.org>
3860
3861         PR c/41476
3862         * c-typeck.c (build_conditional_expr): Use the readonly and
3863         volatile flags of the operand types, not of the operands itself.
3864
3865 2009-09-27  Peter O'Gorman  <pogma@thewrittenword.com>
3866
3867         * collect2.c (main): Look for -brtl before adding libraries.
3868
3869 2009-09-27  Jonathan Gray  <jsg@openbsd.org>
3870
3871         * config.gcc: Update OpenBSD targets.
3872         * config/openbsd-stdint.h: New file.
3873         * config/openbsd-libpthread.h: New file.
3874         * config/openbsd.h: Update and break out LIB_SPEC definition.
3875         * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
3876         * config/i386/openbsdelf.h: Correct types.
3877         * config/m68k/openbsd.h: Likewise.
3878         * config/mips/openbsd.h: Likewise.
3879         * config/vax/openbsd.h: Likewise.
3880
3881 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
3882
3883         * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
3884         (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
3885         * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
3886         of the length and zero.
3887
3888 2009-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3889
3890         * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
3891         (FLAGS_H): Add options.h $(REAL_H).
3892         (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
3893         (TREE_VECTORIZER_H): New.
3894         (EBITMAP_H): Renamed from EBIMAP_H.
3895         (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
3896         (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
3897         (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
3898         (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
3899         (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
3900         (graphite-clast-to-gimple.o, graphite-dependences.o)
3901         (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
3902         (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
3903         (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
3904         (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
3905         (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
3906         (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
3907         (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
3908         (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
3909         (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
3910         updated and fixed as per above changes and per
3911         check_makefile_deps.sh output.
3912
3913         PR bootstrap/40928
3914         * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
3915         * configure: Regenerate.
3916
3917 2009-09-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3918
3919         * doc/install.texi: Update minimum MPC version to 0.7.
3920
3921 2009-09-26  Gerald Pfeifer  <gerald@pfeifer.com>
3922
3923         * doc/install.texi (Binaries): Remove reference to the binary
3924         distribution CD-ROM from the FSF.
3925
3926 2009-09-26  Michael Matz  <matz@suse.de>
3927
3928         PR lto/40758
3929         PR middle-end/41470
3930         * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
3931         that are mentioned in the body.
3932
3933 2009-09-26  Michael Matz  <matz@suse.de>
3934
3935         PR tree-optimization/41454
3936         * tree-ssa-dom (stmts_to_rescan): Remove variable.
3937         (tree_ssa_dominator_optimize): Don't allocate and free it.
3938         (dom_opt_leave_block): Don't iterate over it.
3939         (eliminate_redundant_computations): Don't return a value.
3940         (cprop_operand, cprop_into_stmt): Ditto.
3941         (optimize_stmt): Don't defer updating stmts.
3942
3943 2009-09-25  Dodji Seketeli  <dodji@redhat.com>
3944
3945         * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
3946         generic_parameter_die, template_parameter_pack_die,
3947         gen_formal_parameter_die, gen_subprogram_die): Adjust after
3948         renaming DW_TAG_formal_parameter_pack and
3949         DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
3950         and DW_TAG_GNU_template_parameter_pack.
3951
3952 2009-09-25  Anatoly Sokolov  <aesok@post.ru>
3953
3954         * config/v850/v850.h (FUNCTION_VALUE): Remove.
3955         * config/v850/v850.c (v850_function_value): New function.
3956         (TARGET_FUNCTION_VALUE): Define.
3957
3958 2009-09-25  Jakub Jelinek  <jakub@redhat.com>
3959
3960         * tree-vect-stmts.c (vectorizable_call): Call
3961         mark_symbols_for_renaming after vect_finish_stmt_generation.
3962
3963         * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
3964         to loc_descriptor_from_tree.
3965         (add_location_or_const_value_attribute): Pass 0 instead of 2
3966         for decl_by_reference_p decls.
3967
3968 2009-09-25  Richard Guenther  <rguenther@suse.de>
3969
3970         PR middle-end/41463
3971         * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
3972         arrays again.
3973
3974 2009-09-25  Ben Elliston  <bje@au.ibm.com>
3975
3976         * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
3977         after `power7'.
3978
3979 2009-09-25  Alan Modra  <amodra@bigpond.net.au>
3980
3981         * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
3982         form of instruction.
3983
3984 2009-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3985
3986         PR middle-end/41435
3987         * fold-const.c (const_binop): Handle complex int division.
3988         * tree-complex.c (expand_complex_div_straight,
3989         expand_complex_div_wide): Update comments.
3990
3991 2009-09-24  DJ Delorie  <dj@redhat.com>
3992
3993         PR target/41456
3994         * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
3995         (reg_class): Likewise.
3996         (REG_CLASS_NAMES): Likewise.
3997         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
3998         (m32c_override_options): Disable -fivopts for M32C.
3999
4000 2009-09-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
4001
4002         * config/rs6000/predicates.md (indexed_or_indirect_operand):
4003         Delete VSX load/store with update support.
4004         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
4005         * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
4006         (vsx_movti): Ditto.
4007         (VSX_U): Delete.
4008         (VSbit): Ditto.
4009         (VStype_load_update): Ditto.
4010         (VStype_store_update): Ditto.
4011         (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
4012         (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
4013
4014         * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
4015         load/store with update builtins.
4016
4017 2009-09-24  Kai Tietz  <kai.tietz@onevision.com>
4018
4019         * libgcc2.c (L_trampoline): Prototype for getpagesize
4020         and mprotect in WINNT case.
4021
4022 2009-09-24  Anatoly Sokolov  <aesok@post.ru>
4023
4024         * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
4025         * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
4026         * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
4027         'outgoing' argument.
4028         (TARGET_FUNCTION_VALUE): Define.
4029
4030 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
4031
4032         * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
4033
4034 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
4035
4036         PR bootstrap/41405
4037         * common.opt: Initialize dwarf_strict to -1.
4038         * toplev.c (process_options): Catch unset dwarf_strict
4039         and set to 0 for all targets not overriding.
4040         * config/darwin.c (darwin_override_options): Catch unset
4041         dwarf_strict and override to 1.
4042
4043 2009-09-24  Jeff Law  <law@redhat.com>
4044
4045         * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
4046
4047 2009-09-24  Richard Guenther  <rguenther@suse.de>
4048
4049         PR tree-optimization/36143
4050         PR tree-optimization/38747
4051         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
4052         create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
4053
4054 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
4055
4056         PR bootstrap/41457
4057         * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
4058         return false instead of gcc_unreachable ().  For CONST return the
4059         value returned by recursive call instead of always returning true.
4060         (tree_add_const_value_attribute): Return the value returned by
4061         add_const_value_attribute instead of always returning true if rtl
4062         is non-NULL.
4063
4064 2009-09-23  Justin Seyster  <jrseys@gmail.com>
4065
4066         * Makefile.in (PLUGIN_HEADERS): Include real.h.
4067
4068 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
4069
4070         * cgraphunit.c (cgraph_lower_function): Revert last change.
4071         * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
4072         instead of DECL_NO_STATIC_CHAIN.
4073         * tree-cfg.c (verify_gimple_call): Likewise.
4074         * tree-nested.c (get_chain_decl, get_chain_field,
4075         convert_tramp_reference_op, convert_gimple_call): Likewise.
4076         (convert_all_function_calls): Likewise.  Always set or clear
4077         DECL_STATIC_CHAIN initially, for !n->outer clear it.
4078         (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
4079         * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
4080         if nested.
4081         * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
4082         DECL_NO_STATIC_CHAIN.
4083         * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
4084         instead of DECL_NO_STATIC_CHAIN.
4085         (ix86_function_regparm, find_drap_reg): Likewise.  Don't test
4086         decl_function_context.
4087         * varasm.c (initializer_constant_valid_p): Likewise.
4088         * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
4089         (DECL_STATIC_CHAIN): ... this.
4090         * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
4091         instead of DECL_NO_STATIC_CHAIN.
4092
4093 2009-09-23  Basile Starynkevitch  <basile@starynkevitch.net>
4094             Rafael Avila de Espindola  <espindola@google.com>
4095
4096         * gengtype.c (nb_plugin_files): Make it unsigned to match
4097         num_gt_files. Adjust other variables to avoid warnings.
4098         (main): Allocate an all zero lang_bitmap before each plugin file name
4099         to match regular file names.
4100
4101 2009-09-23  Richard Henderson  <rth@redhat.com>
4102
4103         * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
4104         (TARGET_STATIC_CHAIN): Mention that this hook must be used for
4105         static chain passed in memory.
4106         * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
4107         * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
4108         STATIC_CHAIN_INCOMING.  Issue a sorry if there's no
4109         STATIC_CHAIN_REGNUM defined.
4110
4111         * config/picochip/picochip-protos.h: s/class/klass/.
4112         * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
4113         (picochip_static_chain): New.
4114         * config/picochip/picochip.h (STATIC_CHAIN): Remove.
4115         (STATIC_CHAIN_INCOMING): Remove.
4116
4117         * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
4118         (xtensa_static_chain): New.
4119         * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
4120         (STATIC_CHAIN_INCOMING): Remove.
4121
4122 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
4123
4124         * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
4125         * config/pa/pa-protos.h (function_value): Remove.
4126         * config/pa/pa.c (pa_function_value): Rename from function_value.
4127         Make static, add 'outgoing' argument.
4128         (TARGET_FUNCTION_VALUE): Define.
4129
4130 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
4131
4132         * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
4133         instead of cfun->machine->is_leaf.
4134         * config/avr/avr.h (machine_function): Remove is_leaf field.
4135
4136 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
4137
4138         PR debug/41439
4139         * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
4140         DW_OP_piece after DW_OP_stack_value, adjust size calculations
4141         for it, when DW_OP_stack_value and DW_OP_implicit_value has
4142         the same size, prefer DW_OP_stack_value.
4143         (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
4144         loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
4145
4146 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
4147
4148         PR debug/41353
4149         * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
4150
4151 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
4152
4153         PR debug/41248
4154         * cfgexpand.c (convert_debug_memory_address): New.
4155         (expand_debug_expr): Convert base address and offset to the same
4156         mode.  Use it to convert addresses to other modes.  Accept
4157         ptr_mode addresses.
4158
4159 2009-09-23  Richard Guenther  <rguenther@suse.de>
4160
4161         * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
4162         produced for bigendian targets with promoted subregs.
4163
4164 2009-09-23  Richard Guenther  <rguenther@suse.de>
4165
4166         * value-prof.c (gimple_ic): Purge old EH edges only after building
4167         the new ones.
4168
4169 2009-09-23  Nick Clifton  <nickc@redhat.com>
4170
4171         * config/arc/arc.c (arc_trampoline_init): Fix typo.
4172
4173 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
4174
4175         PR bootstrap/41405
4176         * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
4177
4178         PR bootstrap/41436
4179         * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
4180         on non-nested functions.
4181
4182 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
4183             Jan Hubicka  <jh@suse.cz>
4184
4185         * dwarf2out.c (loc_list_plus_const): Only define if
4186         DWARF2_DEBUGGING_INFO.
4187         (address_of_int_loc_descriptor): Likewise.
4188
4189         PR debug/41411
4190         * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
4191
4192 2009-09-23  Uros Bizjak  <ubizjak@gmail.com>
4193
4194         PR c/39779
4195         * c-typeck.c (build_binary_op) <short_shift>: Check that integer
4196         constant is more than zero.
4197
4198 2009-09-23  Alan Modra  <amodra@bigpond.net.au>
4199
4200         PR target/40473
4201         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
4202         call final to emit non-scheduled prologue, instead insert at entry.
4203
4204 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
4205             Joseph S. Myers  <joseph@codesourcery.com>
4206
4207         * doc/install.texi (*-*-freebsd*): Add proper format codes.
4208
4209 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
4210             Rafael Avila de Espindola  <espindola@google.com>
4211
4212         * gengtype.c (is_file_equal): New function.
4213         (close_output_files): Use is_file_equal. Free of->buf.
4214
4215 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
4216             Rafael Avila de Espindola  <espindola@google.com>
4217
4218         * gengtype.c (write_types, write_local): Add the output_header
4219         argument. Update all callers.
4220
4221 2009-09-22  Dodji Seketeli  <dodji@redhat.com>
4222
4223         * dwarf2out.c (template_parameter_pack_die,
4224         gen_formal_parameter_pack_die ): New functions.
4225         (make_ith_pack_parameter_name): Remove this function.
4226         (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
4227         DW_TAG_formal_parameter_pack.
4228         (gen_generic_params_dies): Represent each template parameter pack
4229         by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
4230         represented by usual DW_TAG_template_*_parameter DIEs that are
4231         children of the DW_TAG_template_parameter_pack element DIE.
4232         (generic_parameter_die): This doesn't deal with parameter pack
4233         names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
4234         of parameter pack DIEs.
4235         (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
4236         in certain cases, e.g. for pack elements.
4237         (gen_formal_types_die, gen_decl_die): Adjust usage of
4238         gen_formal_parameter_die.
4239         (gen_subprogram_die): Represent each function parameter pack by a
4240         DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
4241         represented by usual DW_TAG_formal_parameter DIEs that are children
4242         of the DW_TAG_formal_parameter_pack DIE. Remove references to
4243         ____builtin_va_alist decls as no part of the compiler uses those
4244         anymore.
4245         * langhooks.h (struct lang_hooks_for_decls): Add
4246         function_parm_expanded_from_pack_p, get_generic_function_decl
4247         and function_parameter_pack_p hooks.  Fix comment for
4248         get_innermost_generic_parms hook.
4249         * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
4250         LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
4251         macros and use them to initialize lang_hook.
4252
4253 2009-09-22  Richard Henderson  <rth@redhat.com>
4254
4255         * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
4256         (TRAMPOLINE_ADJUST_ADDRESS): Poison.
4257         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
4258         on TRAMPOLINE_TEMPLATE.
4259         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
4260         TRAMPOLINE_ADJUST_ADDRESS.
4261         * targhooks.c (default_asm_trampoline_template): Remove.
4262         (default_trampoline_adjust_address): Remove.
4263         (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
4264         * targhooks.h: Update decls.
4265
4266 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
4267
4268         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
4269         * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
4270         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
4271
4272 2009-09-22  Alexandre Oliva  <aoliva@redhat.com>
4273
4274         PR debug/41295
4275         * reload1.c (reload): Reset debug insns with pseudos without
4276         equivalences.
4277
4278 2009-09-22  Janis Johnson  <janis187@us.ibm.com>
4279
4280         * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
4281         unconditional true for decimal float modes.
4282         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
4283         * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
4284
4285 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
4286
4287         * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
4288         Enable a new case for __FreeBSD__ >= 7.
4289         * crtstuff.c:  Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
4290         * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
4291         * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
4292         and USE_LD_AS_NEEDED.
4293
4294         * doc/install.texi (*-*-freebsd*): Update target information.
4295
4296 2009-09-22  Richard Guenther  <rguenther@suse.de>
4297
4298         PR middle-end/41395
4299         * tree-dfa.c (get_ref_base_and_extent): Handle trailing
4300         arrays really properly.
4301
4302 2009-09-22  Richard Henderson  <rth@redhat.com>
4303
4304         PR target/41246
4305         * target.h (struct gcc_target): Add asm_out.trampoline_template,
4306         calls.static_chain, calls.trampoline_init,
4307         calls.trampoline_adjust_address.
4308         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4309         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
4310         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
4311         * builtins.c (expand_builtin_setjmp_receiver): Use
4312         targetm.calls.static_chain; only clobber registers.
4313         (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
4314         set up memory attributes properly for the trampoline block.
4315         (expand_builtin_adjust_trampoline): Use
4316         targetm.calls.trampoline_adjust_address.
4317         * calls.c (prepare_call_address): Add fndecl argument.  Use
4318         targetm.calls.static_chain.
4319         * df-scan.c (df_need_static_chain_reg): Remove.
4320         (df_get_entry_block_def_set): Use targetm.calls.static_chain;
4321         consolodate static chain handling.
4322         * doc/tm.texi: Document new hooks.
4323         * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
4324         (init_emit_regs): Don't initialize them.
4325         * expr.h (prepare_call_address): Update decl.
4326         * final.c (profile_function): Use targetm.calls.static_chain.
4327         * function.c (expand_function_start): Likewise.
4328         * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
4329         * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
4330         only clobber registers.
4331         * targhooks.c (default_static_chain): New.
4332         (default_asm_trampoline_template, default_trampoline_init): New.
4333         (default_trampoline_adjust_address): New.
4334         * targhooks.h: Declare them.
4335         * varasm.c (assemble_trampoline_template): Use
4336         targetm.asm_out.trampoline_template.  Make the memory block const
4337         and set its size.
4338
4339         * config/alpha/alpha.c (alpha_trampoline_init): Rename from
4340         alpha_initialize_trampoline.  Make static.  Merge VMS parameter
4341         differences into the TARGET_ABI_OPEN_VMS code block.
4342         (TARGET_TRAMPOLINE_INIT): New.
4343         * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
4344         (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
4345         * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
4346         (INITIALIZE_TRAMPOLINE): Remove.
4347
4348         * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
4349         (TRAMPOLINE_TEMPLATE): Merge with ...
4350         (INITIALIZE_TRAMPOLINE): ... this and move ...
4351         * config/arc/arc.c (arc_trampoline_init): ... here.
4352         (TARGET_TRAMPOLINE_INIT): New.
4353
4354         * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4355         (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
4356         (arm_asm_trampoline_template): New.
4357         (arm_trampoline_init, arm_trampoline_adjust_address): New.
4358         * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
4359         THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
4360         code to arm_asm_trampoline_template.
4361         (TRAMPOLINE_ADJUST_ADDRESS): Move code to
4362         arm_trampoline_adjust_address.
4363         (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
4364         adjust for target hook parameters.
4365
4366         * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
4367         Remove.
4368
4369         * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
4370         * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
4371         (bfin_trampoline_init): Rename from initialize_trampoline;
4372         make static; update for target hook parameters.
4373         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
4374         * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
4375         bfin_asm_trampoline_template.
4376         (INITIALIZE_TRAMPOLINE): Remove.
4377
4378         * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4379         TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
4380         cris_trampoline_init): New.
4381         * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
4382         cris_asm_trampoline_template.
4383         (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
4384         adjust for target hook parameters.
4385
4386         * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
4387
4388         * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4389         TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
4390         fr30_trampoline_init): New.
4391         * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
4392         fr30_asm_trampoline_template.
4393         (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
4394         adjust for target hook parameters.
4395
4396         * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
4397         (frv_trampoline_init): Rename from frv_initialize_trampoline;
4398         make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
4399         * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
4400         * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
4401
4402         * config/h8300/h8300.c (h8300_trampoline_init): New.
4403         (TARGET_TRAMPOLINE_INIT): New.
4404         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
4405         to h8300_trampoline_init and adjust for hook parameters.
4406
4407         * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
4408         * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
4409         (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
4410         make static; adjust for hook parameters.
4411         * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
4412
4413         * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4414         (TARGET_TRAMPOLINE_INIT): New.
4415         (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
4416         * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
4417         iq2000_asm_trampoline_template.
4418         (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
4419         (TRAMPOLINE_CODE_SIZE): New.
4420         (TRAMPOLINE_SIZE): Use it.
4421         (TRAMPOLINE_ALIGNMENT): Follow Pmode.
4422
4423         * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
4424         * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
4425         (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
4426         adjust for hook parameters.
4427         * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
4428
4429         * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
4430         (m32r_trampoline_init): New.
4431         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
4432         m32r_trampoline_init.
4433
4434         * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
4435         (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
4436         make static; update for hook parameters.
4437         * config/m68hc11/m68hc11-protos.h: Update.
4438         * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
4439
4440         * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4441         (TARGET_TRAMPOLINE_INIT): New.
4442         (mcore_function_value): Fix typo.
4443         (mcore_asm_trampoline_template, mcore_trampoline_init): New.
4444         * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
4445         to mcore_asm_trampoline_template.
4446         (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
4447
4448         * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
4449         * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
4450         (mep_trampoline_init): Rename from mep_init_trampoline; make static;
4451         update for hook parameters.
4452         * config/mep/mep-protos.h (mep_init_trampoline): Remove.
4453
4454         * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4455         mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
4456         mips_trampoline_init): New.
4457         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
4458         mips_asm_trampoline_template.
4459         (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
4460         update for hook parameters.
4461
4462         * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4463         (TARGET_TRAMPOLINE_INIT): New.
4464         (mmix_trampoline_size): Remove.
4465         (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
4466         make static.  Remove out-of-date tetra vs octa comment.
4467         (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
4468         make static; update for hook parameters.
4469         * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
4470         (INITIALIZE_TRAMPOLINE): Remove.
4471         (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
4472         (TRAMPOLINE_ALIGNMENT): New.
4473         * gcc/config/mmix/mmix-protos.h: Update.
4474
4475         * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4476         mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
4477         mn10300_trampoline_init): New.
4478         * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
4479         mn10300_asm_trampoline_template.
4480         (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
4481
4482         * config/moxie/moxie.c (moxie_static_chain,
4483         moxie_asm_trampoline_template, moxie_trampoline_init,
4484         TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
4485         TARGET_TRAMPOLINE_INIT): New.
4486         * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
4487         moxie_trampoline_init.
4488         (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
4489         (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
4490
4491         * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4492         pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
4493         pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
4494         pa_trampoline_adjust_address): New.
4495         * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
4496         pa_asm_trampoline_template.
4497         (TRAMPOLINE_ALIGNMENT): New.
4498         (TRAMPOLINE_CODE_SIZE): Move to pa.c.
4499         (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
4500         adjust for hook parameters.
4501         (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
4502
4503         * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
4504         (TARGET_TRAMPOLINE_INIT): New.
4505         * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
4506         (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
4507
4508         * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
4509
4510         * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
4511         * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
4512         (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
4513         make static; adjust parameters for the hook.
4514         * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
4515
4516         * config/s390/s390.c (s390_asm_trampoline_template): Rename from
4517         s390_trampoline_template; make static.
4518         (s390_trampoline_init): Rename from s390_initialize_trampoline;
4519         make static; adjust for target hook.
4520         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
4521         * config/s390/s390-protos.h: Remove trampoline decls.
4522         * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
4523         (TRAMPOLINE_TEMPLATE): Remove.
4524         (TRAMPOLINE_ALIGNMENT): New.
4525
4526         * config/score/score-protos.h (score_initialize_trampoline): Remove.
4527         * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4528         (TARGET_TRAMPOLINE_INIT): New.
4529         (score_asm_trampoline_template): New.
4530         (score_trampoline_init): Rename from score_initialize_trampoline;
4531         make static; adjust for hook parameters.
4532         * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
4533         score[37]_asm_trampoline_template.
4534         (INITIALIZE_TRAMPOLINE): Remove.
4535         * config/score/score3.c (score3_asm_trampoline_template): New.
4536         (score3_trampoline_init): Rename from score3_initialize_trampoline;
4537         adjust for target hook.
4538         * config/score/score7.c (score7_asm_trampoline_template): New.
4539         (score7_trampoline_init): Rename from score7_initialize_trampoline;
4540         adjust for target hook.
4541         * config/score/score3.h, config/score/score7.h: Update.
4542
4543         * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
4544         * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
4545         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
4546         (sh_trampoline_init): Rename from sh_initialize_trampoline;
4547         make static; adjust for target hook parameters.
4548         (sh_trampoline_adjust_address): New.
4549         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
4550         (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
4551
4552         * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
4553         (sparc32_initialize_trampoline): Rename from
4554         sparc_initialize_trampoline; make static; replace tramp parameter
4555         with m_tramp and update memory accesses.
4556         (sparc64_initialize_trampoline): Similarly.
4557         (sparc_trampoline_init): New.
4558         * config/sparc/sparc-protos.h: Remove trampoline decls.
4559         * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
4560         * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
4561
4562         * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
4563         (array_to_constant): Make ARR parameter const.
4564         (spu_trampoline_init): Rename from spu_initialize_trampoline;
4565         make static; update for hook parameters.
4566         * config/spu/spu-protos.h: Update decls.
4567         * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
4568
4569         * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
4570         from xstormy16_initialize_trampoline; make static; update for
4571         hook parameters.
4572         (TARGET_TRAMPOLINE_INIT): New.
4573         * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
4574
4575         * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4576         (TARGET_TRAMPOLINE_INIT): New.
4577         (v850_can_eliminate): Make static.
4578         (v850_asm_trampoline_template, v850_trampoline_init): New.
4579         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
4580         v850_asm_trampoline_template.
4581         (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
4582         and adjust for target hook parameters.
4583
4584         * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4585         (TARGET_TRAMPOLINE_INIT): New.
4586         (vax_asm_trampoline_template, vax_trampoline_init): New.
4587         * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
4588         vax_asm_trampoline_template.
4589         (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
4590
4591         * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4592         (TARGET_TRAMPOLINE_INIT): New.
4593         (xtensa_asm_trampoline_template): Rename from
4594         xtensa_trampoline_template; make static.
4595         (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
4596         make static; update for hook parameters.
4597         * config/xtensa/xtensa-protos.h: Remove trampoline decls.
4598         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
4599         (INITIALIZE_TRAMPOLINE): Remove.
4600
4601         * config/i386/i386.c (ix86_function_regparm): Do not issue an
4602         error for nested functions with regparm=3.
4603         (ix86_compute_frame_layout): Adjust frame pointer offset for
4604         ix86_static_chain_on_stack.
4605         (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
4606         (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
4607         don't reset to UNITS_PER_WORD.
4608         (ix86_emit_leave): Adjust ix86_cfa_state.
4609         (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
4610         (ix86_static_chain): New.
4611         (ix86_trampoline_init): Rename from x86_initialize_trampoline;
4612         make static; update for target hook parameters; use ix86_static_chain.
4613         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
4614         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
4615         (INITIALIZE_TRAMPOLINE): Remove.
4616         (TRAMPOLINE_SIZE): Use 24 for 64-bit.
4617         (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
4618         to the end.  Add static_chain_on_stack.
4619         (ix86_static_chain_on_stack): New.
4620
4621         * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
4622         (m68k_output_mi_thunk): Don't use static_chain_rtx.
4623         (m68k_trampoline_init): New.
4624         * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
4625         m68k_trampoline_init and adjust for hook parameters.
4626         * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
4627         (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
4628
4629 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
4630
4631         * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
4632         for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
4633
4634         * reload1.c (reload): Call wrap_constant when substituting
4635         reg for equiv inside of DEBUG_INSNs.
4636
4637         PR bootstrap/41405
4638         * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
4639         add_call_src_coords_attributes, add_high_low_attributes,
4640         gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
4641         gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
4642         dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
4643         when -gdwarf-2 -gstrict-dwarf.
4644         (loc_list_from_tree): Likewise.  Avoid using DWARF4 additions when
4645         -gdwarf-[23] -gstrict-dwarf.
4646         (address_of_int_loc_descriptor, loc_descriptor,
4647         loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
4648         DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
4649         * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
4650
4651 2009-09-22  Richard Guenther  <rguenther@suse.de>
4652
4653         PR tree-optimization/41428
4654         * tree-ssa-ccp.c (ccp_fold_stmt): New function.
4655         (ccp_finalize): Pass it to substitute_and_fold.
4656
4657 2009-09-22  Richard Guenther  <rguenther@suse.de>
4658
4659         * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
4660         (substitute_and_fold): Adjust prototype.
4661         * tree-vrp.c (vrp_evaluate_conditional): Make static.
4662         (simplify_stmt_using_ranges): Likewise.
4663         (fold_predicate_in): Move here from tree-ssa-propagate.c.
4664         (vrp_fold_stmt): New function.
4665         (vrp_finalize): Pass it to substitute_and_fold.
4666         * tree-flow.h (vrp_evaluate_conditional): Remove.
4667         (simplify_stmt_using_ranges): Likewise.
4668         * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
4669         * tree-ssa-copy.c (fini_copy_prop): Likewise.
4670         * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
4671         member.
4672         (fold_predicate_in): Move to tree-vrp.c.
4673         (substitute_and_fold): Use the callback instead of calling into
4674         tree-vrp.c functions directly.
4675
4676 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
4677
4678         * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
4679         comparison warning on rs6000.
4680
4681         PR middle-end/41429
4682         * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
4683         GIMPLE_EH_MUST_NOT_THROW cleanup.
4684         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
4685
4686 2009-09-22  Jack Howarth  <howarth@bromo.med.uc.edu>
4687
4688         PR middle-end/41260
4689         * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
4690         * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
4691         LIB_SPEC for darwin10 and later since it always uses the unwinder in
4692         libSystem which is derived from the gcc 4.2.1 unwinder.
4693
4694 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
4695
4696         PR middle-end/41357
4697         * varasm.c (default_encode_section_info): Copy TLS model into
4698         sym_ref flags regardless of backend support for TLS, for all
4699         model types except TLS_MODEL_EMULATED.
4700
4701 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
4702
4703         PR bootstrap/41404
4704         * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
4705         we can handle it correctly.
4706
4707 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
4708
4709         * doc/install.texi (os2): Remove section.
4710
4711 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
4712
4713         * doc/standards.texi (Objective-C): Adjust two URLs.
4714
4715 2009-09-21  Giuseppe Scrivano <gscrivano@gnu.org>
4716
4717         * tree-tailcall.c (process_assignment): Don't check if a
4718         multiplication or an addition are already present.
4719         (find_tail_calls): Combine multiple additions and multiplications.
4720         (adjust_accumulator_values): Emit accumulators.
4721
4722 2009-09-21  Kai Tietz  <kai.tietz@onevision.com>
4723
4724         * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
4725         xmm register restore.
4726
4727 2009-09-21  Jan Hubicka  <jh@suse.cz>
4728
4729         * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
4730         (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
4731         restore at the end.
4732
4733 2009-09-21  Eric Botcazou  <ebotcazou@adacore.com>
4734
4735         * stor-layout.c (layout_type): Remove obsolete code.
4736
4737 2009-09-20  H.J. Lu  <hongjiu.lu@intel.com>
4738
4739         PR middle-end/41395
4740         * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
4741
4742 2009-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4743
4744         PR middle-end/30789
4745         * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
4746         (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
4747         (fold_builtin_2, do_mpc_arg1): Update accordingly.
4748         * fold-const.c (const_binop): Likewise.
4749         * real.h (do_mpc_arg2): Update prototype.
4750
4751 2009-09-20  Jan Hubicka  <jh@suse.cz>
4752
4753         * dwarf2out.c (add_const_value_attribute): Return true if successful.
4754         (add_location_or_const_value_attribute): Rewrite using
4755         loc_list_from_tree.
4756         (tree_add_const_value_attribute): Return true if successful.
4757         (tree_add_const_value_attribute_for_decl): Likewise.
4758
4759         * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
4760         (loc_descriptor): ... here;
4761         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
4762         (cst_pool_loc_descr): Break out from ...; do not reffer constant
4763         pool items that was not marked for output.
4764         (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
4765         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
4766         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
4767         handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
4768         IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
4769         CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
4770         DW_OP_stack_value to get address of items that are not available
4771         as addresses.
4772         (dw_loc_list): Handle single element lists correctly.
4773
4774 2009-09-20  Kai Tietz  <kai.tietz@onevision.com>
4775             Pascal Obry  <obry@adacore.com>
4776
4777         * unwind-dw2-fde.c (classify_object_over_fdes):
4778         Cast the constant 1 to _Unwind_Ptr.
4779         (add_fdes): Likewise.
4780         (linear_search_fdes): Likewise.
4781
4782 2009-09-20  Eric Botcazou  <ebotcazou@adacore.com>
4783
4784         * stor-layout.c (set_sizetype): Avoid useless type copy.
4785
4786 2009-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
4787
4788         * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
4789         feature check.
4790         (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
4791         * configure, config.in: Regenerate.
4792         * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
4793         DW_EH_PE_absptr.
4794         * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
4795         (ASM_PREFERRED_EH_DATA_FORMAT): Define.  Use MIPS_EH_INDIRECT
4796         for global data if the output could be used in a shared library.
4797         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
4798         to 0 if TARGET_WRITABLE_EH_FRAME.
4799
4800 2009-09-20  Paolo Bonzini <bonzini@gnu.org>
4801
4802         PR rtl-optimization/39886
4803         * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
4804         just when insn is equal to BB_END (bb).
4805
4806 2009-09-19  Adam Nemet  <anemet@caviumnetworks.com>
4807
4808         * config/mips/mips.opt (mrelax-pic-calls): New option.
4809         * config/mips/mips.c (mips_strip_unspec_address): Move it up in
4810         the file.
4811         (mips_unspec_call): Change "unspec_call" expander into this.
4812         (mips_strip_unspec_call): New function.
4813         (mips_got_load): Call mips_unspec_call instead of
4814         gen_unspec_call<mode>.
4815         (mips16_build_call_stub): Fix comment for fp_code.  Adjust call to
4816         MIPS_CALL.
4817         (mips_cfg_in_reorg): New function.
4818         (mips16_lay_out_constants): Use it to decide whether to call
4819         CFG-aware insn splitting.
4820         (r10k_insert_cache_barriers): Move CFG set-up code from here to
4821         mips_reorg.  Move DF set-up code from here ...
4822         (mips_df_reorg): ... to here.  Call r10k_insert_cache_barriers
4823         from here.
4824         (mips_reorg): Call mips_df_reorg instead of
4825         r10k_insert_cache_barriers.  Move CFG set-up code here from
4826         r10k_insert_cache_barriers.
4827         (mips_call_expr_from_insn): New function.
4828         (mips_pic_call_symbol_from_set): Likewise.
4829         (mips_find_pic_call_symbol): Likewise.
4830         (mips_annotate_pic_call_expr): Likewise.
4831         (mips_get_pic_call_symbol): Likewise.
4832         (mips_annotate_pic_calls): Likewise.
4833         (mips_override_options): Disable -mrelax-pic-calls unless PIC
4834         calls are used.
4835         (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
4836         * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
4837         * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
4838         directive.
4839         * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
4840         (unspec_call<mode>): Remove it.
4841         (sibcall_internal, sibcall_value_internal,
4842         sibcall_value_multiple_internal, call_internal, call_split,
4843         call_value_internal, call_value_split,
4844         call_value_multiple_internal, call_value_multiple_split): Pass
4845         SIZE_OPNO to MIPS_CALL.
4846         (call_internal_direct, call_direct_split,
4847         call_value_internal_direct, call_value_direct_split): Pass -1 as
4848         SIZE_OPNO to MIPS_CALL.
4849         * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
4850         * configure: Regenerate.
4851         * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
4852         and -mno-relax-pic-calls.
4853         (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
4854
4855 2009-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4856
4857         PR bootstrap/35619
4858         * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
4859         in the directory this rule is called from, rather than the
4860         toplevel 'gcc' directory, to fix in-tree build.
4861
4862 2009-09-19  Chris Demetriou  <cgd@google.com>
4863
4864         PR preprocessor/28435:
4865         * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
4866         to cpplib that the preprocessor output is needed.
4867
4868 2009-09-19  Jakub Jelinek  <jakub@redhat.com>
4869
4870         * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
4871         *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
4872         *return_and_restore_fpregs_<mode>,
4873         *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
4874
4875         PR bootstrap/41397
4876         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
4877         instead of assuming it has always a REG inside of it.
4878
4879 2009-09-18  Gerald Pfeifer  <gerald@pfeifer.com>
4880
4881         * config/freebsd.h: Update comment on types.
4882         (WINT_TYPE): Define.
4883
4884 2009-09-18  Jason Merrill  <jason@redhat.com>
4885
4886         * c.opt: Add -fno-deduce-init-list.
4887
4888 2009-09-18  Neil Vachharajani  <nvachhar@google.com>
4889
4890         * value-prof.c (interesting_stringop_to_profile_p): Added output
4891         argument to indicate which parameter is the size parameter.
4892         * value-prof.c (gimple_stringop_fixed_value): Use
4893         INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
4894         * value-prof.c (gimple_stringops_transform): Update call sites to
4895         INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
4896
4897 2009-09-18  Uros Bizjak  <ubizjak@gmail.com>
4898
4899         PR target/38288
4900         From David Binderman <dcb314@hotmail.com>:
4901         * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
4902         local variable f.  Remove stale comments.
4903         (ix86_compute_frame_layout): Remove useless local variable total_size.
4904         Remove #if 0'd code.
4905         (legitimate_address_p): Remove useless local variables
4906         reason_rtx and reason.
4907         (ix86_split_copysign_const): Remove useless local variable op1.
4908         (scale_counter): Remove useless local variable piece_size_mask.
4909
4910 2009-09-18  Jakub Jelinek  <jakub@redhat.com>
4911
4912         * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
4913         output decl.
4914
4915 2009-09-17  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
4916
4917         PR target/40913
4918         * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
4919
4920 2009-09-17  Jakub Jelinek  <jakub@redhat.com>
4921
4922         * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
4923         TYPE_STUB_DECL.
4924
4925 2009-09-17  Alexandre Oliva  <aoliva@redhat.com>
4926
4927         * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
4928         DW_OP_implicit_value even without dwarf_version 4.
4929
4930 2009-09-17  Jan Hubicka  <jh@suse.cz>
4931
4932         * dwarf2out.c: Include tree-pass.h and gimple.h.
4933         (loc_list_plus_const): New function.
4934         (loc_descriptor_from_tree_1): Rename to ...
4935         (loc_descriptor_from_tree): ... remove original.
4936         (loc_list_from_tree): New function.
4937         (add_AT_location_description): Accept location list.
4938         (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
4939         (concatn_mem_loc_descriptor): Remove.
4940         (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
4941         returning NULL.
4942         (secname_for_decl): Move up.
4943         (hidden_reference_p): New function; break out from ...
4944         (loc_by_refernece): ... here; move up.
4945         (dw_loc_list): New function.
4946         (single_element_loc_list): New function.
4947         (single_element_loc_list_p): New function.
4948         (add_loc_descr_to_each): New function.
4949         (add_loc_list): New function.
4950         (loc_descr_from_tree): Make wraper of loc_list_from_tree.
4951         (loc_list_from_tree): Reroganized from loc_descr_from_tree;
4952         add diagnostics why expansion failed.
4953         (add_location_or_const_value_attribute): Support location lists.
4954         (add_bound_info): Likewise.
4955         (descr_info_loc): Update call of loc_descriptor_from_tree.
4956         (gen_variable_die): Work on location lists.
4957         * final.c (pass_final): Add dump file.
4958         * Makefile.in (dwarf2out.o): Add new dependencies.
4959
4960 2009-09-17  Janis Johnson  <janis187@us.ibm.com>
4961
4962         PR c/41049
4963         * real.c decimal_from_integer, decimal_integer_string): New.
4964         (real_from_integer): Use them as special case for decimal float.
4965         * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
4966         (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
4967         Do not append zero after the decimal point in string to convert.
4968
4969 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
4970
4971         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
4972         for ARRAY_REFs.  Use array_ref_{low,up}_bound to determine bounds.
4973
4974 2009-09-17  Martin Jambor  <mjambor@suse.cz>
4975
4976         * common.opt (fipa-sra): New switch.
4977         * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
4978         * timevar.def (TV_IPA_SRA): New timevar.
4979         * params.def (ipa-sra-ptr-growth-factor): New parameter.
4980         * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
4981         * tree-sra.c: Include cgraph.c.
4982         (enum sra_mode): Added SRA_MODE_EARLY_IPA.
4983         (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
4984         and grp_not_necessarilly_dereferenced.
4985         (func_param_count): New variable.
4986         (encountered_apply_args): New variable.
4987         (bb_dereferences): New variable.
4988         (final_bbs): New variable.
4989         (no_accesses_representant): New variable.
4990         (no_accesses_p): New function.
4991         (dump_access): Dump the new fields.
4992         (sra_initialize): Set encountered_apply_args to false.
4993         (get_ssa_base_param): New function.
4994         (mark_parm_dereference): New function.
4995         (create_access): Caring for INIDRECT_REFs and different handling of
4996         varialble length accesses in early IPA SRA.  Store the stmt - a new
4997         parameter - to the new access.
4998         (build_access_from_expr_1): New parameter stmt, passed to
4999         create_access.  Handle INDIRECT_REFs.
5000         (build_access_from_expr): Pass the current statement to
5001         build_access_from_expr_1.
5002         (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
5003         passes.
5004         (build_accesses_from_assign): Pass the current statement to
5005         build_access_from_expr_1.  Do not create assign links in IPA-SRA.
5006         (scan_function): Call handle_ssa_defs on phi nodes.  Set bits in
5007         final_bbs when necessary.  Check for calls to __builtin_apply_args.
5008         Fixup EH info if anythng was changed.
5009         (is_unused_scalar_param): New function.
5010         (ptr_parm_has_direct_uses): New function.
5011         (find_param_candidates): New function.
5012         (mark_maybe_modified): New function.
5013         (analyze_modified_params): New function.
5014         (propagate_dereference_distances): New function.
5015         (dump_dereferences_table): New function.
5016         (analyze_caller_dereference_legality): New function.
5017         (unmodified_by_ref_scalar_representative): New function.
5018         (splice_param_accesses): New function.
5019         (decide_one_param_reduction): New function.
5020         (enum ipa_splicing_result): New type.
5021         (splice_all_param_accesses): New function.
5022         (get_param_index): New function.
5023         (turn_representatives_into_adjustments): New function.
5024         (analyze_all_param_acesses): New function.
5025         (get_replaced_param_substitute): New function.
5026         (get_adjustment_for_base): New function.
5027         (replace_removed_params_ssa_names): New function.
5028         (sra_ipa_reset_debug_stmts): New function.
5029         (sra_ipa_modify_expr): New function.
5030         (sra_ipa_modify_assign): New function.
5031         (convert_callers): New function.
5032         (modify_function): New function.
5033         (ipa_sra_preliminary_function_checks): New function.
5034         (ipa_early_sra): New function.
5035         (ipa_early_sra_gate): New function.
5036         (pass_early_ipa_sra): New variable.
5037         * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
5038
5039 2009-09-17  Michael Matz  <matz@suse.de>
5040
5041         PR middle-end/41347
5042         * tree.c (build_type_attribute_qual_variant): Export.
5043         * tree.h (build_type_attribute_qual_variant): Declare.
5044         * tree-inline.c (remap_type_1): Use it to build variants with
5045         the original qualifiers and attributes.
5046
5047 2009-09-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5048
5049         * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
5050         without a fallthrough edge.
5051
5052 2009-09-16  DJ Delorie  <dj@redhat.com>
5053
5054         * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
5055         chip and ignore the "fast_interrupt" attribute if so.
5056
5057 2009-09-16  Richard Henderson  <rth@redhat.com>
5058
5059         PR middle-end/41360
5060         * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
5061         barrier fix.
5062
5063 2009-09-16  Richard Henderson  <rth@redhat.com>
5064
5065         PR target/41246
5066         * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
5067         is set only if DECL_NO_STATIC_CHAIN is unset.
5068         * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
5069         (FOR_EACH_NEST_INFO): New.
5070         (walk_all_functions): Use it.
5071         (finalize_nesting_tree): Likewise.
5072         (unnest_nesting_tree): Likewise.
5073         (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
5074         (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
5075         (convert_gimple_call): Early out if gimple_call_chain already set.
5076         (convert_all_function_calls): Iterate until no new functions
5077         require a static chain.
5078         (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
5079         when building a trampoline.  Use dump_function_to_file instead
5080         of dump_function.
5081         (lower_nested_functions): Open dump_file.  Validate that decls
5082         that have DECL_NO_STATIC_CHAIN from the front end don't have that
5083         bit reset by this pass.
5084
5085 2009-09-16  Michael Matz  <matz@suse.de>
5086
5087         PR fortran/41212
5088         * tree.h (struct tree_decl_common): Add decl_restricted_flag,
5089         shorten decl_common_unused.
5090         (DECL_RESTRICTED_P): New accessor.
5091         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
5092         to disambiguate marked decls and restrict pointers.
5093
5094 2009-09-16  Richard Henderson  <rth@redhat.com>
5095
5096         PR middle-end/41360
5097         * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
5098
5099 2009-09-16  Jakub Jelinek  <jakub@redhat.com>
5100
5101         * integrate.c (set_block_abstract_flags): Call
5102         set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
5103
5104 2009-09-16  Richard Guenther  <rguenther@suse.de>
5105
5106         PR middle-end/34011
5107         * tree-flow-inline.h (may_be_aliased): Compute readonly variables
5108         as non-aliased.
5109
5110 2009-09-16  DJ Delorie  <dj@redhat.com>
5111             Kaz Kojima  <kkojima@gcc.gnu.org>
5112
5113         * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
5114         (sh_expand_prologue): Update calls to output_stack_adjust.
5115         (sh_expand_epilogue): Likewise.
5116
5117 2009-09-15  Adam Nemet  <anemet@caviumnetworks.com>
5118
5119         PR bootstrap/41349
5120         * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
5121         trying to limit the extent of searches in the insn stream.
5122
5123 2009-09-15  Nathan Froyd  <froydnj@codesourcery.com>
5124             Jakub Jelinek  <jakub@redhat.com>
5125
5126         PR target/41175
5127         PR target/40677
5128         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
5129         problem.
5130         (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
5131         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
5132         (rs6000_savres_strategy): Always save FP registers inline if the
5133         target doesn't support hardware double-precision.  Set the above
5134         bits in return value when needed.
5135         (rs6000_savres_routine_sym): Fix computation for cache selector.
5136         Mark the generated symbol as a function.  Rename exitp argument to
5137         lr.  Move code for determining the name of the symbol...
5138         (rs6000_savres_routine_name): ...here.  New function.  Add cases for
5139         getting the names right on AIX and 64-bit Linux.
5140         (savres_routine_name): New variable.
5141         (rs6000_make_savres_rtx): Rename exitp argument to lr.  Don't assert
5142         lr isn't set when savep.  Use r12 resp. r1 instead of r11 depending
5143         on what the target routine uses as a base register.  If savep && lr
5144         describe saving of r0 into memory slot.
5145         (rs6000_emit_prologue): Correct use of call_used_regs.  Fix out of
5146         line calls for AIX ABI.
5147         (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
5148         determine FP save/restore functions.
5149         (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
5150         frame_reg_rtx != sp_reg_rtx.  Use gen_add3_insn instead of
5151         gen_addsi3.
5152         (rs6000_emit_epilogue): Adjust computation of restore_lr.
5153         Duplicate restoration of LR and execute the appropriate one
5154         depending on whether GPRs are being restored inline.  Set r11 from
5155         offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
5156         r11, adjust sp_offset.  Use gen_add3_insn instead of gen_addsi3.
5157         Fix out of line calls for AIX ABI.
5158         * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
5159         New insn.
5160         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
5161         register 11.
5162         (*restore_gpregs_spe): Likewise.
5163         (*return_and_restore_gpregs_spe): Likewise.
5164         * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
5165         Define to empty string unconditionally.
5166         * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
5167         Define to empty string unconditionally.
5168         (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
5169         !TARGET_64BIT.
5170
5171 2009-09-15  Jan Hubicka  <jh@suse.cz>
5172
5173         * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
5174         * params.def (inline-insns-auto): Likewise.
5175
5176 2009-09-15  Martin Jambor  <mjambor@suse.cz>
5177
5178         * ipa-inline.c (estimate_function_body_sizes): Dump info about
5179         individual statements only at TDF_DETAILS dump level.  Format
5180         source for 80 characters per line.
5181
5182 2009-09-15  Christian Bruel  <christian.bruel@st.com>
5183
5184         * regrename.c (do_replace): Update REG_DEAD notes.
5185
5186 2009-09-15  Revital Eres  <eres@il.ibm.com>
5187
5188         * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
5189         * targhooks.c (default_builtin_support_vector_misalignment):
5190         New builtin function.
5191         * targhooks.h (default_builtin_support_vector_misalignment):
5192         Declare.
5193         * target.h (builtin_support_vector_misalignment):
5194         New field in struct gcc_target.
5195         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
5196         new builtin function.
5197         * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
5198         Define.
5199         * config/rs6000/rs6000.c
5200         (rs6000_builtin_support_vector_misalignment): New function.
5201         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
5202
5203 2009-09-15  Jie Zhang  <jie.zhang@analog.com>
5204
5205         * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
5206         instead of INSN_P.
5207         (bfin_optimize_loop): Likewise.
5208         (bfin_gen_bundles): Likewise.
5209         (workaround_speculation): Likewise.
5210         (find_load): Return NULL_RTX for debug_insn.
5211
5212 2009-09-15  Uros Bizjak  <ubizjak@gmail.com>
5213
5214         * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
5215         (sminsf3): Ditto.
5216
5217 2009-09-14  DJ Delorie  <dj@redhat.com>
5218
5219         * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
5220         * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
5221         VLIW mode.
5222
5223 2009-09-14  Richard Henderson  <rth@redhat.com>
5224             Jakub Jelinek  <jakub@redhat.com>
5225
5226         * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
5227         * cfgbuild.c (make_edges): Handle asm goto.
5228         * cfglayout.c (fixup_reorder_chain): Likewise.
5229         * cfgrtl.c (patch_jump_insn): Likewise.
5230         * gimple-pretty-print.c (dump_gimple_asm): Likewise.
5231         * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
5232         (gimple_build_asm_vec): Add and use labels parameter.
5233         (gimple_build_asm): Remove.
5234         (walk_gimple_asm): Walk labels too.
5235         * gimple.def (GIMPLE_ASM): Update docs.
5236         * gimple.h: Update decls.
5237         (struct gimple_statement_asm): Change nc to use unsigned char;
5238         add nl member.
5239         (gimple_asm_nlabels): New.
5240         (gimple_asm_label_op, gimple_asm_set_label_op): New.
5241         * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
5242         into gimple_build_asm_vec.
5243         * jump.c (mark_jump_label_asm): New.
5244         (mark_jump_label): Use it.
5245         (redirect_jump_1): Handle asm goto.
5246         (invert_jump_1): Soft fail if X is null.
5247         * recog.c (extract_asm_operands): New.
5248         (asm_noperands): Use it; handle asm labels.
5249         (decode_asm_operands): Use extract_asm_operands.
5250         (asm_operand_ok): Properly handle empty string.
5251         * reg-stack.c (get_asm_operands_in_out): Rename from
5252         get_asm_operand_n_inputs; use extract_asm_operands; return both
5253         inputs and outputs by reference; update all callers.
5254         * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
5255         * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
5256         (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
5257         (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
5258         (extract_asm_operands): Declare.
5259         * stmt.c (expand_asm_operands): Add and use labels parameter.
5260         (check_unique_operand_names): Likewise.
5261         (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
5262         (expand_asm_stmt): Handle asm labels.
5263         * tree-cfg.c (make_gimple_asm_edges): New.
5264         (make_edges): Use it.
5265         (cleanup_dead_labels): Handle asm labels.
5266         (is_ctrl_altering_stmt): Likewise.
5267         (gimple_redirect_edge_and_branch): Likewise.
5268         * tree.def (ASM_EXPR): Add 5th operand.
5269         * tree.h (ASM_LABELS): New.
5270         (resolve_asm_operand_names): Update decl.
5271
5272         * c-parser.c (c_parser_asm_statement): Parse asm goto.
5273         (c_parser_asm_goto_operands): New.
5274         * c-tree.h (build_asm_expr): Update decl.
5275         * c-typeck.c (build_asm_expr): Add and use labels parameter.
5276         * doc/extend.texi: Document asm goto.
5277
5278 2009-09-14  Richard Henderson  <rth@redhat.com>
5279
5280         * except.h: Update declarations.
5281         (struct pointer_map_t): Forward declare.
5282         (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
5283         (struct eh_landing_pad_d, eh_landing_pad): New.
5284         (struct eh_catch_d, eh_catch): New.
5285         (struct eh_region_d): Remove next_region_sharing_label, aka,
5286         label, tree_label, landing_pad, post_landing_pad, resume,
5287         may_contain_throw.  Rename region_number to index.  Remove
5288         u.eh_catch, u.eh_throw.  Rename u.eh_try.eh_catch to first_catch.
5289         Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
5290         (VEC(eh_landing_pad,gc)): New.
5291         (struct eh_status): Remove last_region_number.  Add lp_array,
5292         throw_stmt_table, ttype_data, ehspec_data.
5293         (ehr_next, FOR_ALL_EH_REGION_AT): New.
5294         (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
5295         * except.c (lang_protect_cleanup_actions): Return tree.
5296         (struct ehl_map_entry): Remove.
5297         (init_eh_for_function): Push zero entries for region and lp_array.
5298         (gen_eh_region): Add to region_array immediately.
5299         (gen_eh_region_catch): Operate on eh_catch objects.
5300         (gen_eh_landing_pad): New.
5301         (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
5302         (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
5303         (get_eh_region_from_number, get_eh_region_from_number_fn): New.
5304         (get_eh_landing_pad_from_number_fn): New.
5305         (get_eh_landing_pad_from_number): New.
5306         (get_eh_region_from_lp_number_fn): New.
5307         (get_eh_region_from_lp_number): New.
5308         (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
5309         (get_exception_pointer, get_exception_filter): Remove.
5310         (collect_eh_region_array, can_be_reached_by_runtime): Remove.
5311         (current_function_has_exception_handlers): Simplify.
5312         (bring_to_root, eh_region_replaceable_by_p): Remove.
5313         (replace_region, hash_type_list, hash_eh_region): Remove.
5314         (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
5315         (label_to_region_map, num_eh_regions): Remove.
5316         (get_next_region_sharing_label, must_not_throw_labels): Remove.
5317         (find_exception_handler_labels): Remove.
5318         (duplicate_eh_regions_0, find_prev_try): Remove.
5319         (struct duplicate_eh_regions_data): New.
5320         (duplicate_eh_regions_1): Rewrite.
5321         (duplicate_eh_regions): Return a pointer map instead of an
5322         integer offset.
5323         (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
5324         (redirect_eh_edge_to_label): Remove.
5325         (eh_region_outermost): Rewrite using eh_region pointers
5326         instead of integers.
5327         (add_ttypes_entry): Update for ttype_data move to eh_status.
5328         (add_ehspec_entry): Rewrite with VEC instead of varray.
5329         (assign_filter_values): Likewise.  Export.
5330         (build_post_landing_pads, connect_post_landing_pads): Remove.
5331         (dw2_build_landing_pads): Rewrite to use lp_array.
5332         (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
5333         (sjlj_assign_call_site_values): Rewrite to use lp_array.
5334         (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
5335         (sjlj_mark_call_sites): Update for landing pad numbers.
5336         (finish_eh_generation): Rewrite.
5337         (gate_handle_eh): Do nothing for no eh tree.
5338         (pass_rtl_eh): Move up near finish_eh_generation.
5339         (remove_eh_landing_pad): New.
5340         (remove_eh_handler): Export.
5341         (remove_eh_region, remove_eh_handler_and_replace): Remove.
5342         (for_each_eh_label): Rewrite to use lp_array.
5343         (make_reg_eh_region_note): New.
5344         (make_reg_eh_region_note_nothrow_nononlocal): New.
5345         (insn_could_throw_p): New.
5346         (copy_reg_eh_region_note_forward): New.
5347         (copy_reg_eh_region_note_backward): New.
5348         (check_handled, add_reachable_handler): Remove.
5349         (reachable_next_level, foreach_reachable_handler): Remove.
5350         (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
5351         (get_eh_region_and_lp_from_rtx): New.
5352         (get_eh_region_from_rtx): New.
5353         (can_throw_internal_1, can_throw_external_1): Remove.
5354         (can_throw_internal): Use get_eh_region_from_rtx.
5355         (can_throw_external): Use get_eh_region_and_lp_from_rtx.
5356         (insn_nothrow_p, can_nonlocal_goto): New.
5357         (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
5358         (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
5359         (add_action_record): Use VEC not varray.
5360         (collect_one_action_chain): Update for eh_region changes.
5361         (convert_to_eh_region_ranges): Make static.  Use VEC not varray.
5362         Use get_eh_region_and_lp_from_rtx.
5363         (gate_convert_to_eh_region_ranges): New.
5364         (pass_convert_to_eh_region_ranges): Use it.
5365         (push_uleb128, push_sleb128): Use VEC not varray.
5366         (output_one_function_exception_table): Likewise.
5367         (dump_eh_tree): Update for eh_region changes.
5368         (verify_eh_tree): Likewise.
5369         (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
5370         * tree-eh.c: Include target.h.
5371         (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
5372         Don't disallow GIMPLE_RESX; adjust argument check.
5373         (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
5374         (record_stmt_eh_region): Update for landing pad numbers;
5375         generate a landing pad if necessary.
5376         (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
5377         (remove_stmt_from_eh_lp_fn): Similarly.
5378         (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
5379         Update for lp numbers; don't special case missing throw_stmt_table.
5380         (lookup_expr_eh_lp): Similarly.
5381         (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
5382         (eh_seq, eh_region_may_contain_throw): New.
5383         (struct leh_state): Add ehp_region.
5384         (struct leh_tf_state): Remove eh_label.
5385         (emit_post_landing_pad): New.
5386         (emit_resx, emit_eh_dispatch): New.
5387         (note_eh_region_may_contain_throw): New.
5388         (frob_into_branch_around): Take eh_region not eh label;
5389         emit eh code into eh_seq.
5390         (honor_protect_cleanup_actions): Early exit for no actions.  Don't
5391         handle EXC_PTR_EXPR, FILTER_EXPR.  Use gimple_build_eh_must_not_throw,
5392         lower_eh_must_not_throw.  Emit code to eh_seq.
5393         (lower_try_finally_nofallthru): Emit eh code to eh_seq.
5394         (lower_try_finally_onedest): Likewise.
5395         (lower_try_finally_copy): Likewise.
5396         (lower_try_finally_switch): Likewise.
5397         (lower_try_finally): Initialize ehp_region.
5398         (lower_catch): Update for eh_catch objects.
5399         (lower_eh_filter): Don't handle must_not_throw.
5400         (lower_eh_must_not_throw): New.
5401         (lower_cleanup): Don't set eh_label.
5402         (lower_eh_constructs_2): Resolve eh builtins.
5403         Handle GIMPLE_EH_MUST_NOT_THROW.
5404         (lower_eh_constructs): Initialize eh_region_may_contain_throw.
5405         Add eh_seq to the end of the function body.
5406         (make_eh_dispatch_edges): New.
5407         (make_eh_edge): Remove.
5408         (make_eh_edges): Simplify for landing pads.
5409         (redirect_eh_edge_1): New.
5410         (redirect_eh_edge): Use it.
5411         (redirect_eh_dispatch_edge): New.
5412         (stmt_could_throw_p): Use a switch.  Allow RESX.
5413         (stmt_can_throw_external): Use lookup_stmt_eh_lp.
5414         (stmt_can_throw_internal): Likewise.
5415         (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
5416         (maybe_clean_or_replace_eh_stmt): Update for landing pads.
5417         (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
5418         (gate_refactor_eh): New.
5419         (pass_refactor_eh): Use it.
5420         (lower_resx, execute_lower_resx, pass_lower_resx): New.
5421         (lower_eh_dispatch, execute_lower_eh_dispatch): New.
5422         (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
5423         (remove_unreachable_handlers): Rename from
5424         tree_remove_unreachable_handlers; rewrite for landing pads;
5425         call remove_eh_handler directly.
5426         (remove_unreachable_handlers_no_lp): New.
5427         (unsplit_eh, unsplit_all_eh): New.
5428         (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
5429         (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
5430         (cleanup_empty_eh_unsplit): New.
5431         (cleanup_empty_eh): Rewrite.
5432         (cleanup_all_empty_eh): New.
5433         (execute_cleanup_eh): Rename from cleanup_eh.  Remove unreachable
5434         handlers first.  Use unsplit_all_eh, cleanup_all_empty_eh.
5435         (gate_cleanup_eh): New.
5436         (pass_cleanup_eh): Use it.
5437         (verify_eh_edges): Move later in file.  Expect one EH edge.
5438         (verify_eh_dispatch_edge): New.
5439
5440         * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
5441         (gtype-desc.o): Add TARGET_H.
5442         (tree.o): Use EXCEPT_H, not except.h.
5443         (cfgbuild.o): Add EXPR_H.
5444         (GTFILES): Add vecprim.h.
5445         * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
5446         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
5447         * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
5448         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
5449         * calls.c (emit_call_1): Use make_reg_eh_region_note.
5450         * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
5451         calls to can_throw_internal.
5452         (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
5453         (make_edges): Don't handle RESX; use can_nonlocal_goto.
5454         * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
5455         (expand_gimple_stmt): Use make_reg_eh_region_note.
5456         (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
5457         (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
5458         or find_exception_handler_labels.
5459         * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX.  Assert
5460         there is exacly one EH edge.  Use can_nonlocal_goto and
5461         can_throw_internal.
5462         * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
5463         (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
5464         * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
5465         * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
5466         * dce.c (deletable_insn_p_1): Don't test may_trap_p.
5467         (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
5468         * dse.c (scan_insn): Use insn_could_throw_p.
5469         * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
5470         * expr.c (expand_expr_real): Use make_reg_eh_region_note.
5471         (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
5472         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
5473         EXC_PTR_EXPR or FILTER_EXPR.
5474         (tree_expr_nonzero_warnv_p): Likewise.
5475         * function.h: Include vecprim.h, not varray.h
5476         (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
5477         move ttype_data and ehspec_data members to struct eh_status; change
5478         action_record_data member to a VEC.
5479         * gcse.c (hash_scan_set): Use can_throw_internal.
5480         * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
5481         * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
5482         * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
5483         (block_may_fallthru): Don't handle RESX_EXPR.
5484         * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
5485         (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
5486         (dump_gimple_stmt): Dump landing pad information with TDF_EH;
5487         handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
5488         * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
5489         GIMPLE_EH_DISPATCH, GIMPLE_RESX.
5490         (gimple_size): Likewise.
5491         (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
5492         (gimple_build_resx): Use gimple_build_with_ops.
5493         (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
5494         (is_gimple_val): Likewise.
5495         (is_gimple_stmt): Remove RESX_EXPR.
5496         * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
5497         (GIMPLE_RESX): Reorder with other EH constructs.
5498         * gimple.h (struct gimple_statement_eh_mnt): New.
5499         (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
5500         (gimple_eh_filter_must_not_throw): Remove.
5501         (gimple_eh_filter_set_must_not_throw): Remove.
5502         (gimple_eh_must_not_throw_fndecl): New.
5503         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
5504         (is_gimple_resx): New.
5505         * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
5506         Don't copy EH_FILTER_MUST_NOT_THROW.
5507         * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
5508         * ipa-inline.c (estimate_function_body_sizes): Don't try to
5509         handle must_not_throw_labels specially.
5510         * ipa-pure-const.c (check_call): Update debug statement for LP.
5511         * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
5512         * ipa-utils.c (get_base_var): Likewise.
5513         * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
5514         * lower-subreg.c (move_eh_region_note): Remove.
5515         (resolve_simple_move): Use copy_reg_eh_region_note_forward.
5516         * omp-low.c (new_omp_context): Update for eh_lp_nr.
5517         (create_task_copyfn): Likewise.
5518         (maybe_catch_exception): Use gimple_build_eh_filter.
5519         * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
5520         REG_EH_REGION.  Use make_reg_eh_region_note_nothrow_nononlocal.
5521         * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
5522         and pass_lower_resx.
5523         * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
5524         * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
5525         can_throw_internal, can_nonlocal_goto.
5526         * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
5527         copy_reg_eh_region_note_forward.
5528         (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
5529         (emit_output_reload_insns): Likewise.
5530         (copy_eh_notes): Remove.
5531         * rtl.def (RESX): Remove.
5532         * rtl.h: Update declarations.
5533         * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
5534         * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
5535         (update_eh_label): Remove.
5536         (cleanup_dead_labels_eh): New.
5537         (cleanup_deal_labels): Use it instead of update_eh_label.
5538         (gimple_merge_blocks): Update landing pad data structure when
5539         removing a landing pad label.
5540         (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
5541         test; handle GIMPLE_EH_MUST_NOT_THROW.
5542         (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
5543         (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
5544         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
5545         (verify_stmt): Likewise.  Verify landing pads.
5546         (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
5547         (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
5548         (struct move_stmt_d): Add eh_map.
5549         (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
5550         (move_stmt_r): Remap eh region numbers in builtin calls,
5551         resx and eh_dispatch.
5552         (move_block_to_fn): Remove eh_offset parameter.  Use
5553         maybe_duplicate_eh_stmt_fn.
5554         (find_outermost_region_in_block): Operate on eh_region pointers
5555         instead of region numbers.
5556         (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
5557         duplicate_eh_regions.
5558         * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
5559         test earlier.  Disallow EH landing pads.
5560         * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
5561         * tree-flow.h: Update declarations.
5562         (struct tree_ann_common_d): Replace rn with lp_nr.
5563         * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
5564         (remap_eh_region_nr, remap_eh_region_tree_nr): New.
5565         (remap_gimple_stmt): Remap eh region numbers in builtin calls,
5566         resx and eh_dispatch.
5567         (copy_bb): Use maybe_duplicate_eh_stmt_fn.
5568         (copy_edges_for_bb): Use make_eh_dispatch_edges.
5569         (copy_cfg_body): Expect eh_map instead of eh_region_offset
5570         from duplicate_eh_regions.
5571         (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
5572         update RESX; handle EH_DISPATCH.
5573         (expand_call_inline): Set eh_lp_nr, not eh_region.
5574         (maybe_inline_call_in_expr): Likewise.
5575         * tree-inline.h (struct copy_body_data): Replace eh_region with
5576         eh_lp_nr, eh_region_offset with eh_map.
5577         * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
5578         * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
5579         * tree-pretty-print.c (dump_generic_node): Don't handle
5580         EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
5581         * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
5582         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
5583         EXC_PTR_EXPR, FILTER_EXPR.
5584         * tree-ssa-operands.c (get_expr_operands): Likewise.
5585         * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
5586         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5587         (ao_ref_init_from_vn_reference): Likewise.
5588         * tree-ssa-sink.c (statement_sink_location): Likewise.
5589         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
5590         (mark_virtual_phi_result_for_renaming): Export.  Tidy.
5591         * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
5592         EXC_PTR_EXPR, FILTER_EXPR.
5593         (is_exception_related): Remove.
5594         (compute_avail): Don't call it.
5595         * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
5596         * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
5597         (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
5598         (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
5599         Build EH builtins.
5600         (build_resx): Remove.
5601         * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
5602         * tree.h: Update declarations.
5603         (EH_FILTER_MUST_NOT_THROW): Remove.
5604         (struct tree_label_decl): Add eh_landing_pad_nr.
5605         (EH_LANDING_PAD_NR): New.
5606         * value-prof.c (gimple_ic): Tidy variable names.  Update for
5607         landing pad numbers.
5608         (gimple_stringop_fixed_value): Tidy variable names.  Assert
5609         that neither call stmt can throw.
5610         * vecprim.h (uchar): New.
5611         (VEC(uchar,heap), VEC(uchar,gc)): New.
5612
5613         * c-common.c (c_define_builtins): Update call to
5614         build_common_builtin_nodes.
5615         * c-parser.c (c_parse_file): Don't call
5616         default_init_unwind_resume_libfunc.
5617
5618 2009-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
5619
5620         * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
5621         (mips_cprestore_address_p): Likewise.
5622         (mips_save_gp_to_cprestore_slot): Likewise.
5623         (mips_restore_gp): Rename to...
5624         (mips_restore_gp_from_cprestore_slot): ...this.
5625         (mips_must_initialize_gp_p): Declare.
5626         (mips_emit_save_slot_move): Likewise.
5627         (mips_output_load_label): Return nothing.
5628         (mips_eh_uses): Declare.
5629         * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
5630         (TARGET_CPRESTORE_DIRECTIVE): New macro.
5631         (TARGET_ABSOLUTE_JUMPS): Likewise.
5632         (EH_USES): Likewise.
5633         (FIRST_PSEUDO_REGISTER): Update comment.
5634         (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
5635         (MIPS_CALL): ...here.
5636         (REGISTER_NAMES): Add $cprestore.
5637         * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
5638         Add load_label_length, has_inflexible_gp_insn_p,
5639         has_flexible_gp_insn_p, must_initialize_gp_p and
5640         must_restore_gp_when_clobbered_p.
5641         (mips_expand_call): Don't generate split instructions here.
5642         (mips_split_call): Update the call to mips_restore_gp after
5643         the above name change.
5644         (mips16_cfun_returns_in_fpr_p): Move earlier in file.
5645         (mips_find_gp_ref): New function.
5646         (mips_insn_has_inflexible_gp_ref_p): Likewise.
5647         (mips_cfun_has_inflexible_gp_ref_p): Likewise.
5648         (mips_insn_has_flexible_gp_ref_p): Likewise.
5649         (mips_cfun_has_flexible_gp_ref_p): Likewise.
5650         (mips_function_has_gp_insn): Delete.
5651         (mips_global_pointer): Drop the df_regs_ever_live_p check.
5652         Use the new functions above.  Only return INVALID_REGNUM
5653         for TARGET_ABSOLUTE_JUMPS.
5654         (mips_must_initialize_gp_p): New function.
5655         (mips_get_cprestore_base_and_offset): New function, extracted from...
5656         (mips_cprestore_slot): ...here.  Take a bool parameter.
5657         (mips_cfun_has_cprestore_slot_p): New function.
5658         (mips_cprestore_address_p): Likewise.
5659         (mips_save_gp_to_cprestore_slot): Likewise.
5660         (mips_restore_gp): Rename to...
5661         (mips_restore_gp_from_cprestore_slot): ...this.  Assert
5662         epilogue_completed.  Update the call to mips_cprestore_slot.
5663         Test cfun->machine->must_restore_gp_when_clobbered_p.
5664         (mips_direct_save_slot_move_p): New function.
5665         (mips_emit_save_slot_move): Likewise.
5666         (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
5667         of cfun->machine->global_pointer.
5668         (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
5669         (mips_save_reg): Use mips_emit_save_slot_move.
5670         (mips_expand_prologue): Set must_initialize_gp_p.
5671         Use mips_cfun_has_cprestore_slot_p.  Use gen_potential_cprestore
5672         for all cprestore saves.  Emit a use_cprestore instruction after
5673         setting up the cprestore slot.
5674         (mips_restore_reg): Use mips_emit_save_slot_move.
5675         (mips_process_load_label): New function.
5676         (mips_load_label_length): Likewise.
5677         (mips_output_load_label): Don't return asm: output it here instead.
5678         Use mips_process_load_label.
5679         (mips_adjust_insn_length): Adjust the length of branch instructions
5680         that have length MAX_PIC_BRANCH_LENGTH.
5681         (mips_output_conditional_branch): Update the call to
5682         mips_output_load_label.  Assume the branch target is OPERANDS[0]
5683         rather than OPERANDS[1].  Use MIPS_ABSOLUTE_JUMP for absolute jumps.
5684         (mips_output_order_conditional_branch): Swap the meaning of
5685         OPERANDS[0] and OPERANDS[1].
5686         (mips_variable_issue): Don't count ghost instructions.
5687         (mips_expand_ghost_gp_insns): New function.
5688         (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
5689         (mips_output_mi_thunk): Set must_initialize_gp_p.
5690         (mips_eh_uses): New function.
5691         * config/mips/predicates.md (cprestore_save_slot_operand)
5692         (cprestore_load_slot_operand): New predicates.
5693         * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
5694         (UNSPEC_MOVE_GP): Likewise.
5695         (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
5696         (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
5697         (CPRESTORE_SLOT_REGNUM): New register.
5698         (MAX_PIC_BRANCH_LENGTH): New constant.
5699         (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
5700         (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
5701         branches.  Fix commentary.
5702         (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
5703         Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
5704         Change type to "ghost".
5705         (loadgp_absolute_<mode>): Likewise.
5706         (loadgp_rtp_<mode>): Likewise.
5707         (copygp_mips16): Likewise.
5708         (loadgp_blockage): Remove redundant mode attribute.
5709         (potential_cprestore): New instruction.
5710         (cprestore): Turn into an unspec set.
5711         (use_cprestore): New instruction.
5712         (*branch_fp): Swap operands 0 and 1.  Remove redundant mode attribute.
5713         (*branch_fp_inverted): Likewise.
5714         (*branch_order<mode>): Likewise.
5715         (*branch_order<mode>_inverted): Likewise.
5716         (*branch_equality<mode>): Likewise.
5717         (*branch_equality<mode>_inverted): Likewise.
5718         (*branch_bit<bbv><mode>): Likewise.
5719         (*branch_bit<bbv><mode>_inverted): Likewise.
5720         (*branch_equality<mode>_mips16): Remove redundant mode.
5721         (jump): Turn into a define_expand.
5722         (*jump_absolute): New instruction.
5723         (*jump_pic): Likewise.
5724         (*jump_mips16): Rename previously-unnamed pattern.  Remove
5725         redundant mode attribute.
5726         (restore_gp): Split on epilogue_completed rather than
5727         reload_completed.  Change type to "ghost".
5728         (move_gp<mode>): New instruction.
5729         * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
5730         Remove redundant mode attribute.
5731         * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
5732         (bc1any4f, bc1any2t, bc1any2f): Likewise.
5733         (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
5734
5735 2009-09-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
5736
5737         PR target/41210
5738         * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
5739         are returned in the same register (vs34 or v2) that Altivec vector
5740         types are returned in.
5741         (rs6000_libcall_value): Ditto.
5742
5743         PR target/41331
5744         * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
5745         instead of explicit addsi3/adddi3 calls.
5746         (rs6000_split_multireg_move): Ditto.
5747         (rs6000_emit_allocate_stack): Ditto.
5748         (rs6000_emit_prologue): Ditto.
5749         (rs6000_output_mi_thunk): Ditto.
5750
5751         * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
5752         size is 64 bits if we can use 64-bit registers.
5753
5754 2009-09-14  Bernd Schmidt  <bernd.schmidt@analog.com>
5755
5756         * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
5757         symbols.
5758
5759         From Jie Zhang <jie.zhang@analog.com>:
5760         * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
5761         save FP and RETS with saveall attribute.
5762         (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
5763         with saveall attribute.
5764
5765         * config/bfin/bfin.c (bfin_expand_builtin,
5766         case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
5767         operands.
5768
5769         From Jie Zhang <jie.zhang@analog.com>:
5770         * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
5771         before use in two places.
5772         * config/bfin/bfin.md (AREG): Define mode iterator.
5773         (reload_in, reload_out): Use mode iterator AREG.
5774
5775 2009-09-14  Richard Guenther  <rguenther@suse.de>
5776
5777         PR middle-end/41350
5778         * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
5779         EH personality path.
5780
5781 2009-09-13  Richard Guenther  <rguenther@suse.de>
5782             Rafael Avila de Espindola  <espindola@google.com>
5783
5784         * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
5785         (LANG_HOOKS_EH_PERSONALITY): Likewise.
5786         (LANG_HOOKS_INITIALIZER): Adjust.
5787         (lhd_pass_through_t): Declare.
5788         * langhooks.h (struct lang_hooks): Add eh_runtime_type and
5789         eh_personality.
5790         * langhooks.c (lhd_pass_through_t): New function.
5791         * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
5792         dwarf2out_begin_prologue): Use personality from current_function_decl.
5793         * expr.h (get_personality_function): Declare.
5794         * expr.c (get_personality_function): New function.
5795         (build_personality_function): Likewise.
5796         * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
5797         (eh_personality_libfunc): Remove.
5798         * optabs.c (build_libfunc_function): New function split out from ...
5799         (init_one_libfunc): ... here.
5800         * tree.h (DECL_FUNCTION_PERSONALITY): New.
5801         (tree_function_decl): Add personality.
5802         (lhd_gcc_personality): Declare.
5803         (build_personality_function): Likewise.
5804         * tree.c (gcc_eh_personality_decl): New.
5805         (lhd_gcc_personality): New function.
5806         * except.h (lang_eh_runtime_type): Remove.
5807         (enum eh_personality_kind): New.
5808         (build_personality_function): Declare.
5809         (function_needs_eh_personality): Declare.
5810         * except.c (lang_eh_runtime_type): Remove.
5811         (function_needs_eh_personality): New function.
5812         (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
5813         (sjlj_emit_function_enter, output_function_exception_table):
5814         Use personality from current_function_decl.
5815         * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
5816         * tree-inline.c (tree_can_inline_p): Do not inline across different
5817         EH personalities.
5818         (expand_call_inline): Likewise.  Adjust the callers EH personality.
5819         (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
5820         * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
5821         * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
5822         (c-parser.o): Likewise
5823         * c-tree.h (c_eh_initialized_p): Remove.
5824         (c_maybe_initialize_eh): Likewise.
5825         * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
5826         (finish_decl): Don't call c_maybe_initialize_eh.
5827         (c_eh_initialized_p): Remove.
5828         (c_maybe_initialize_eh): Likewise.
5829         * c-parser.c (c_parser_omp_construct): Likewise.
5830         (c_parse_file): Initialize exception handling.
5831
5832 2009-09-13  Kai Tietz  <kai.tietz@onevision.com>
5833
5834         * config.gcc (tm_file): Remove i386/biarch32.h
5835         for i?86-w64-mingw* case.
5836         (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
5837         support.
5838         * config.host: Set for x64 mingw the option
5839         use_long_long_for_widest_fast_int to yes.
5840
5841 2009-09-13  Eric Botcazou  <ebotcazou@adacore.com>
5842
5843         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
5844         * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
5845         (dbxout_begin_function): Likewise.
5846         * final.c (dwarf2_debug_info_emitted_p): New predicate.
5847         (final_start_function): Do not emit debug info if DECL_IGNORED_P is
5848         set on the function.
5849         (final_end_function): Likewise.
5850         (final_scan_insn): Likewise.
5851         (rest_of_handle_final): Likewise.
5852         * varasm.c (assemble_start_function): Likewise.
5853         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5854
5855 2009-09-12  Jason Merrill  <jason@redhat.com>
5856
5857         * dbgcnt.c (dbg_cnt_process_single_pair): constify.
5858         * opts.c (common_handle_option): constify.
5859
5860 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
5861
5862         * doc/install.texi (avr): Remove obsolete reference site.
5863
5864 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
5865
5866         * doc/install.texi (Binaries): Adjust AIX link.
5867
5868 2009-09-12  Akim Demaille  <demaille@gostai.com>
5869
5870         * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
5871         Use an imperative sentence.
5872
5873 2009-09-11  Richard Henderson  <rth@redhat.com>
5874
5875         * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
5876         structure-name and has-tree-operands arguments; update all entries.
5877         * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
5878         update all entries.
5879         * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
5880         (gsstruct_code_size): New.
5881         (gss_for_code_): New.
5882         (gss_for_code): Remove.
5883         (gimple_size): Rewrite using gsstruct_code_size.
5884         (gimple_statement_structure): Move to gimple.h.
5885         * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
5886         (gss_for_code, gimple_statement_structure): New.
5887         (gimple_ops): Use new arrays; tidy.
5888
5889 2009-09-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5890
5891         * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
5892         operand to be a PLUS expression.
5893         * config/pa/pa.c (pa_secondary_reload): Likewise.
5894
5895 2009-09-11  Jakub Jelinek  <jakub@redhat.com>
5896
5897         * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
5898
5899         * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
5900         XEXP (in_rtx, 8).
5901
5902 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
5903
5904         From Jie Zhang <jie.zhang@analog.com>:
5905         * doc/extend.texi (node Function Attributes): Document l2
5906         function attribute.
5907         (node Blackfin Variable Attributes): Document l2 variable attributes.
5908
5909 2009-09-11  Loren J. Rittle  <ljrittle@acm.org>
5910
5911         * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
5912         to match the system compiler's configuration at inflection point.
5913         Add comment to remark a remaining difference with system compiler.
5914
5915         * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
5916         * configure: Regenerate.
5917
5918 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
5919
5920         From Jie Zhang <jie.zhang@analog.com>:
5921         * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
5922         (bfin_handle_l2_attribute): New.
5923         (bfin_attribute_table): Add l2 attribute.
5924
5925 2009-09-11  Michael Matz  <matz@suse.de>
5926
5927         PR middle-end/41275
5928         * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
5929         on the local_decls list.
5930
5931 2009-09-11  Alexandre Oliva  <aoliva@redhat.com>
5932
5933         PR debug/41276
5934         PR debug/41307
5935         * cselib.c (cselib_expand_value_rtx_cb): Document callback
5936         interface.
5937         (cselib_expand_value_rtx_1): Use callback for SUBREGs.  Adjust
5938         for VALUEs, to implement the documented interface.
5939         * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
5940         Adjust for VALUEs and anything else, to implement the
5941         documented interface.
5942
5943 2009-09-10  Nathan Froyd  <froydnj@codesourcery.com>
5944
5945         * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
5946         with actual SPE/paired vector modes before using 64-bit alignment.
5947         Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
5948
5949 2009-09-10  DJ Delorie  <dj@redhat.com>
5950
5951         * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
5952         emitted.
5953
5954         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
5955         * config/mep/mep.c (mep_legitimate_constant_p): New.
5956         * config/mep/mep-protos.h: Prototype it.
5957
5958 2009-09-10  Richard Henderson  <rth@redhat.com>
5959
5960         * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
5961
5962 2009-09-10  Jason Merrill  <jason@redhat.com>
5963
5964         * tree.c (chain_index): New fn.
5965         * tree.h: Declare it.
5966
5967 2009-09-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5968
5969         * config/sol2-c.c (cmn_err_length_specs): Initialize
5970         scalar_identity_flag.
5971
5972 2009-09-10  Richard Henderson  <rth@redhat.com>
5973
5974         * tree.h (struct tree_decl_common): Move align member earlier;
5975         move label_decl_uid member ...
5976         (struct tree_label_decl): ... here.
5977         (LABEL_DECL_UID): Update to match.
5978
5979         * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
5980         not TDF_DETAILS.
5981
5982         * tree-cfg.c (gimple_redirect_edge_and_branch): Do
5983         gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
5984
5985         * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
5986         dest_prev if the edge is complex.
5987
5988         * tree-cfg.c (is_ctrl_stmt): Use a switch.
5989
5990         * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
5991         loop latch tests earlier.
5992
5993         * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
5994         before GIMPLE_RETURN, not after its predecessor; insert
5995         before GIMPLE_RESX.
5996
5997         * gimple-iterator.c (gimple_find_edge_insert_loc): Use
5998         gimple_seq_empty_p to test for no PHI nodes.
5999         * tree-cfg.c (split_critical_edges): Likewise.
6000
6001         * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
6002
6003 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
6004
6005         * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
6006         introduced by the VTA branch merge.
6007
6008 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
6009
6010         * ira-conflicts.c: Use fputs or putc instead of fprintf
6011         where appropriate.
6012         * cfg.c: Ditto.
6013         * toplev.c: Ditto.
6014         * tree-switch-conversion.c: Ditto.
6015
6016 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
6017
6018         * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
6019         introduced by the VTA branch merge.
6020
6021 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
6022
6023         Revert:
6024         2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
6025
6026         PR rtl-optimization/39779
6027         * expr.c (convert_modes): Return when mode == oldmode after
6028         CONST_INTs are processed.
6029
6030 2009-09-10  Nick Clifton  <nickc@redhat.com>
6031
6032         * config/mep/mep.c (mep_encode_section_info): Copy weakness
6033         attribute and referring decl when creating renamed symbol.
6034
6035 2009-09-10  Richard Guenther  <rguenther@suse.de>
6036
6037         PR middle-end/41257
6038         * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
6039         reachable nodes.
6040         (cgraph_finalize_compilation_unit): Compute reachability
6041         before emitting thunks.  Properly process aliases before
6042         possibly removing unreachable nodes.
6043
6044 2009-09-10  Richard Guenther  <rguenther@suse.de>
6045
6046         PR middle-end/41254
6047         * tree.c (struct free_lang_data_d): Add worklist member.
6048         (find_decls_types_r): Push onto the worklist instead of recursing.
6049         Handle TREE_BINFOs properly.
6050         (find_decls_types): New function wrapped around find_decls_types_r
6051         to process the worklist.
6052         (find_decls_types_in_eh_region): Use it.
6053         (find_decls_types_in_node): Likewise.
6054         (find_decls_types_in_var): Likewise.
6055         (free_lang_data_in_cgraph): Likewise.  Free the worklist.
6056         * tree.h (RECORD_OR_UNION_TYPE_P): New.
6057         (AGGREGATE_TYPE_P): Adjust.
6058
6059 2009-09-09  Jason Merrill  <jason@redhat.com>
6060
6061         * configure.ac: Check glibc version even if we have an in-tree
6062         assembler.
6063
6064 2009-09-09  Anthony Green  <green@moxielogic.com>
6065
6066         * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
6067         the constant 0 when appropriate.
6068         * config/moxie/constraints.md: Add constraint O.
6069
6070         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
6071         to pass up to 6 32-bit argument values in registers.
6072         (moxie_function_arg): Ditto.
6073         (moxie_arg_partial_bytes): Ditto.
6074         * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
6075         (REG_PARM_STACK_SPACE): Ditto.
6076         (FUNCTION_ARG_REGNO_P): Ditto.
6077
6078         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
6079         instruction to allocate stack space.
6080
6081 2009-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
6082
6083         * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
6084         unnecessarily stringent constraints.  Fix address
6085         calculation in the splitters.
6086
6087 2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
6088
6089         PR rtl-optimization/39779
6090         * expr.c (convert_modes): Return when mode == oldmode after
6091         CONST_INTs are processed.
6092
6093 2009-09-09  Kai Tietz  <kai.tietz@onevision.com>
6094
6095         PR/41315
6096         * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
6097         (ix86_expand_prologue): Take frame.padding0 into logic of
6098         to_allocate checks.
6099         (ix86_expand_epilogue): Likewise.
6100
6101 2009-09-09  Jakub Jelinek  <jakub@redhat.com>
6102
6103         * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
6104         New variables.
6105         (SHLIB_LINK, SHLIB_INSTALL): Use them.
6106         * config/t-slibgcc-libgcc: New file.
6107         * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
6108
6109 2009-09-09  Martin Jambor  <mjambor@suse.cz>
6110
6111         PR tree-optimization/41089
6112         * tree-sra.c (find_var_candidates): Do not consider va_lists in
6113         early SRA.
6114
6115 2009-09-09  Richard Henderson  <rth@redhat.com>
6116
6117         * gimple.h (CASE_GIMPLE_OMP): New.
6118         (is_gimple_omp): Use it.
6119         * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
6120         (verify_gimple_debug): Likewise.
6121
6122 2009-09-09  Richard Guenther  <rguenther@suse.de>
6123
6124         PR tree-optimization/41101
6125         * tree-ssa-pre.c (maximal_set): Remove.
6126         (compute_antic_aux): Treat the maximal set as implicitly all ones.
6127         Defer all blocks we didn't visit at least one successor.
6128         (add_to_exp_gen): Do not add to the maximal set.
6129         (make_values_for_phi): Likewise.
6130         (compute_avail): Likewise.
6131         (init_pre): Do not allocate the maximal set.
6132         (execute_pre): Do not dump it.
6133
6134 2009-09-09  Martin Jambor  <mjambor@suse.cz>
6135
6136         * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
6137         an SSA_NAME rather than a is_gimple_variable.
6138
6139 2009-09-09  Richard Guenther  <rguenther@suse.de>
6140
6141         PR middle-end/41317
6142         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
6143         code dealing with plain pointer bases.
6144         (maybe_fold_offset_to_reference): Likewise.
6145         (maybe_fold_stmt_addition): Adjust.
6146
6147 2009-09-09  Richard Guenther  <rguenther@suse.de>
6148
6149         * tree.c (free_lang_data_in_type): Do not free the type variant
6150         chains.
6151         (free_lang_data): Merge char_type_node with its properly signed
6152         variant.
6153         (pass_ipa_free): Collect after freeing language specific data.
6154
6155 2009-09-09  Michael Matz  <matz@suse.de>
6156
6157         PR middle-end/41268
6158         * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
6159         SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
6160         * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
6161         to reflect reality.
6162
6163 2009-09-08  DJ Delorie  <dj@redhat.com>
6164
6165         * config/mep/mep.c (conversions[]): Add "ml" pattern.
6166
6167 2009-09-04  Jason Merrill  <jason@redhat.com>
6168
6169         * tree.c (tree_find_value): Remove.
6170         * tree.h: Remove prototype.
6171         * varasm.c (assemble_external): Use value_member instead.
6172
6173 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
6174
6175         * toplev.c (process_options): Choose default debugging type when
6176         gtoggle enables debug info and type is unset.
6177
6178 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
6179
6180         PR debug/41276
6181         PR debug/41307
6182         * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
6183         invalid subreg.
6184
6185 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
6186
6187         * configure: Rebuilt with modified libtool.m4.
6188
6189 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
6190
6191         PR debug/41229
6192         PR debug/41291
6193         PR debug/41300
6194         * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
6195
6196 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
6197
6198         * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
6199         (remove_statement): Likewise.
6200         (rewrite_use_nonlinear_expr): Adjust.
6201         (remove_unused_ivs): Collect SSA NAMEs to remove and call...
6202         * tree-ssa.c (release_defs_bitset): ... this.  New.
6203         * tree-flow.h (release_defs_bitset): Declare.
6204
6205 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
6206
6207         PR debug/41232
6208         * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
6209         in the middle block.
6210
6211 2009-09-08  Kai Tietz  <kai.tietz@onevision.com>
6212
6213         * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
6214         via intptr_t to long type.
6215         (insert_operand_rank): Cast long type via intptr_t to
6216         pointer type.
6217         * genattrtab.c (RTL_HASH): Use intptr_t to cast from
6218         pointer to scalar.
6219         * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
6220         from pointer to unsigned via uintptr_t.
6221
6222         * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
6223         uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
6224         and HAVE_INTPTR_T.
6225         * configure: Regenerated.
6226         * config.in: Regenerated
6227         * system.h (stdint.h): Add include.
6228         (inttypes.h): Likewise.
6229         * Makefile.in (aclocal): Add config/stdint.m4.
6230         * aclocal.m4: Regenerated.
6231
6232 2009-09-08  Bernd Schmidt  <bernd.schmidt@analog.com>
6233
6234         * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
6235         variables.
6236         (note_np_check_stores): New function.
6237         (harmless_null_pointer_p): New function.
6238         (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH.  Callers
6239         changed.  Take into account whether we're in the shadow of a condjump
6240         that tested NP_REG for NULL.
6241         Lose all code that tested for SEQUENCEs.
6242         (workaround_speculation): Avoid inserting NOPs for loads that are
6243         either always executed or a NULL pointer.
6244
6245 2009-09-08  Jan Hubicka  <jh@suse.cz>
6246
6247         * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
6248         * params.def (early-inlining-insns): Likewise.
6249
6250 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
6251
6252         PR rtl-optimization/41239
6253         * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
6254         * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
6255         lists.
6256         * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
6257         across calls, as the calls might not always return normally.
6258         (call_may_noreturn_p): New function.
6259         (deps_analyze_insn): Update last_function_call_may_noreturn list.
6260         (init_deps): Initialize it.
6261         (remove_from_deps): Also remove calls from
6262         last_function_call_may_noreturn list.
6263
6264 2009-09-07  Richard Henderson  <rth@redhat.com>
6265
6266         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
6267         more VR->OPERANDS than LHS operands.  Free LHS before returning.
6268
6269 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
6270
6271         * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
6272         (attr "addrtype"): New member "spreg".
6273         Use it if mem_spfp_address_operand is true for the address.
6274         (attr "type"): New entry "stall".
6275         (cpu_unit "load"): New.
6276         (insn_reservations "load32", "loadp", "loadi"): Add reservation of
6277         "load".
6278         (insn_reservation "loadsp"): New.
6279         (insn_reservation "load_stall1"): New.
6280         (insn_reservation "load_stall3"): New.
6281         (stall): New insn.
6282         * config/bfin/predicates.md (const1_operand, const3_operand): New.
6283         (mem_p_address_operand): Exclude stack and frame pointer based
6284         addresses.
6285         (mem_spfp_address_operand): New; match them here.
6286         * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
6287         (bfin_reorg): Call it if scheduling insns.
6288         (bfin_gen_bundles): Remove dummy insns created by
6289         add_sched_insns_for_speculation.
6290
6291         From Jie Zhang <jie.zhang@analog.com>:
6292         * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
6293         bfin_si_revision, bfin_workarounds): Move these ...
6294         * config/bfin/bfin.h: ... here.
6295
6296         From Mike Frysinger  <michael.frysinger@analog.com>
6297         * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
6298         BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
6299         * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
6300         bf547m, bf548m, and bf549m.
6301         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
6302         for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
6303         __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
6304         BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
6305         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
6306         bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
6307         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
6308         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
6309         * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
6310         bf542m, bf544m, bf547m, bf548m, and bf549m.
6311
6312         From Jie Zhang <jie.zhang@analog.com>:
6313         * config/bfin/predicates.md (p_register_operand): New predicate.
6314         (dp_register_operand): New predicate.
6315         * config/bfin/bfin-protos.h (WA_05000074): Define.
6316         (ENABLE_WA_05000074): Define.
6317         * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
6318         (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
6319         * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
6320         (define_attr addrtype): Allow load/store register to be P register.
6321         (define_attr storereg): New.
6322         (define_cpu_unit anomaly_05000074): New.
6323         (define_insn_reservation dsp32shiftimm): New.
6324         (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
6325         (define_insn_reservation loadp): Cannot use slot2.
6326         (define_insn_reservation loadsp): Cannot use slot2.
6327         (define_insn_reservation storep): Cannot use slot2. Does not
6328         apply when working around 05000074.
6329         (define_insn_reservation storep_anomaly_05000074): New.
6330         (define_insn_reservation storei): Does not apply when working
6331         around 05000074.
6332         (define_insn_reservation storei_anomaly_05000074): New.
6333         (define_attr length): Add dsp32shiftimm case.
6334         (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
6335         ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
6336         movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
6337         ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
6338         Set type as dsp32shiftimm for dsp32shiftimm alternatives.
6339
6340 2009-09-07  Martin Jambor  <mjambor@suse.cz>
6341
6342         PR middle-end/41282
6343         * tree-sra.c (create_artificial_child_access): Return NULL if
6344         build_ref_for_offset fails.
6345         (propagate_subacesses_accross_link): Allow build_ref_for_offset
6346         and create_artificial_child_access to fail.
6347
6348 2009-09-06  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
6349
6350         PR c++/41214
6351         * unwind-dw2.c (uw_init_context_1): Mark noinline.
6352         * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
6353         * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
6354
6355 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
6356
6357         * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
6358         block, ensure it has an exit edge.  Emit a barrier after a jump.
6359
6360 2009-09-07  Nick Clifton  <nickc@redhat.com>
6361
6362         * gcc.c (this_is_linker_script): New variable.  Like
6363         this_is_library_file but for the %T constructor.
6364         (end_going_arg): If this_is_linker_script is set then locate the
6365         script and insert a --script switch before it
6366         (do_spec_2): Initialise this_is_linker_script.
6367         (do_spec_1): Likewise.  Handle %T construct.
6368         (eval_spec_function): Preserve this_is_linker_script.
6369         * doc/invoke.texi: Document %T construct in spec files.
6370         * config/m32c/m32c.h (LIB_SPEC): Use it.
6371
6372 2009-09-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6373
6374         * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
6375         * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
6376         when volatile flag is set.
6377         * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
6378
6379 2009-09-06  Eric Botcazou  <ebotcazou@adacore.com>
6380
6381         PR bootstrap/41241
6382         * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
6383         (combine_stack_adjustments_for_block): Allow insns between stack
6384         adjustments and stores with corresponding pre-(dec|inc)rement or
6385         pre-modify operation.
6386
6387 2009-09-06  Jakub Jelinek  <jakub@redhat.com>
6388
6389         PR bootstrap/41241
6390         * combine-stack-adj.c (struct csa_memlist): Rename to...
6391         (struct csa_reflist): ... this.  Rename mem field to ref.
6392         (free_csa_memlist): Rename to...
6393         (free_csa_reflist): ... this.
6394         (record_one_stack_memref): Rename to...
6395         (record_one_stack_ref): ... this.  Handle also REG_P.
6396         (try_apply_stack_adjustment): Handle also REG_P.
6397         (struct record_stack_memrefs_data): Rename to...
6398         (struct record_stack_refs_data): ... this.  Rename memlist field to
6399         reflist.
6400         (record_stack_memrefs): Rename to...
6401         (record_stack_refs): ... this.  For DEBUG_INSNs keep traversing
6402         subexpressions instead of failing when a MEM contains SP references.
6403         For SP itself in DEBUG_INSNs queue it also onto reflist chain.
6404         (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
6405
6406 2009-09-06  Richard Guenther  <rguenther@suse.de>
6407
6408         PR middle-end/41144
6409         * tree.c (build_array_type): Do not record types marked
6410         with structural equality in the canonical type hashtable.
6411
6412 2009-09-06  Richard Guenther  <rguenther@suse.de>
6413
6414         PR middle-end/41261
6415         * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
6416
6417 2009-09-05  Richard Guenther  <rguenther@suse.de>
6418
6419         PR middle-end/41181
6420         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
6421
6422 2009-09-05  Richard Guenther  <rguenther@suse.de>
6423
6424         PR debug/41273
6425         * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
6426
6427 2009-09-05  Richard Guenther  <rguenther@suse.de>
6428
6429         PR middle-end/41271
6430         * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
6431         before comparing function argument types.
6432
6433 2009-09-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6434
6435         PR target/41024
6436         * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
6437         the assembler.
6438
6439 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
6440
6441         Revert:
6442         2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
6443
6444         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
6445         locators before emit_insn is called.
6446
6447 2009-09-04  Vladimir Makarov  <vmakarov@redhat.com>
6448
6449         PR bootstrap/41241
6450         * ira.c (update_equiv_reg): Revert my previous patch for the PR.
6451         * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
6452         (reginfo_init): Don't call allocate_reg_info.
6453
6454 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
6455
6456         PR target/41262
6457         * config/alpha/alpha.c (alpha_does_function_need_gp): Use
6458         NONDEBUG_INSN_P instead of INSN_P.
6459
6460 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
6461
6462         PR debug/41225
6463         * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
6464
6465 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
6466
6467         PR target/41252
6468         * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
6469         pattern of the split.
6470
6471 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
6472
6473         * toplev.c (process_options): Move setter of flag_var_tracking
6474         before other tests that depend on it.  Move down setter of
6475         flag_rename_registers.  Don't enable var-tracking-assignments
6476         by default if selective scheduling is enabled.  Warn if both
6477         are enabled.
6478
6479 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
6480
6481         * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
6482         comment.  Use switch statement to catch overlaps between rtx
6483         and tree codes.  Accept FUNCTION_DECLs in addition to those in...
6484         (IS_DECL_CODE): ... here. Remove.
6485         (check_value_is_not_decl): Remove.
6486         (dv_from_decl, dv_from_value): Check after conversion.
6487
6488 2009-09-04  Richard Guenther  <rguenther@suse.de>
6489
6490         PR middle-end/41257
6491         * (cgraph_finalize_compilation_unit): Move finalizing aliases
6492         after emitting tunks.  Move emitting thunks and ctors from ...
6493         (cgraph_optimize): ... here.  Remove redundant
6494         cgraph_analyze_functions.
6495         * varasm.c (find_decl_and_mark_needed): Remove no longer
6496         necessary check.
6497         (finish_aliases_1): Adjust check for thunk aliases.
6498
6499 2009-09-04  Daniel Gutson  <dgutson@codesourcery.com>
6500
6501         * config/arm/arm.md (ctzsi2): Added braces
6502         to avoid warning that broke booststrap.
6503
6504 2009-09-04  Martin Jambor  <mjambor@suse.cz>
6505
6506         PR tree-optimization/41112
6507         * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
6508         handle variable-bounded arrays.
6509         (expr_with_var_bounded_array_refs_p): New function.
6510         (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
6511
6512 2009-09-04  Wolfgang Gellerich  <gellerich@de.ibm.com>
6513
6514         * config/s390/2097.md: Removed two incorrect bypasses.
6515         (z10_fsimpdf): Fixed latency.
6516         (z10_fhex): New insn_reservation.
6517         (z10_floaddf): Fixed latency.
6518         (z10_floadsf): Fixed latency.
6519         (z10_ftrunctf): Fixed latency.
6520         (z10_ftruncdf): Fixed latency.
6521         * config/s390/s390.c (z10_cost): Fixed values.
6522         (s390_adjust_priority): Added z10 path.
6523         * config/s390/s390.md (type): Added fhex.
6524         (*mov<mode>_64dfp): Updated type attribute.
6525         (*mov<mode>_64): Updated type attribute.
6526         (*mov<mode>_31): Updated type attribute.
6527         (*mov<mode>"): Likewise.
6528         * config/s390/2084.md (x_fsimpdf): Updated condition.
6529
6530 2009-09-04  Andreas Krebbel  <krebbel1@de.ibm.com>
6531
6532         * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
6533         RTXs in the predicate for operand 1.
6534
6535 2009-09-03  Daniel Gutson  <dgutson@codesourcery.com>
6536
6537         * config/arm/arm.md (UNSPEC_RBIT): New constant.
6538         (rbitsi2): New insn.
6539         (ctzsi2): New expand.
6540         * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
6541
6542 2009-09-03  Martin Jambor  <mjambor@suse.cz>
6543
6544         * tree-sra.c (duplicate_expr_for_different_base): Removed.
6545         (create_artificial_child_access): Use build_ref_for_offset instead
6546         of duplicate_expr_for_different_base.
6547         (propagate_subacesses_accross_link): Likewise.
6548
6549 2009-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
6550
6551         * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
6552         of INSN_P.
6553         (mips16e_collect_argument_saves): Skip debug instructions.
6554         (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
6555         (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
6556         (r10k_insert_cache_barriers): Likewise.
6557         (mips_reorg_process_insns): Likewise.
6558
6559 2009-09-03  Vladimir Makarov  <vmakarov@redhat.com>
6560
6561         PR bootstrap/41241
6562         * ira.c (update_equiv_reg): Remove check on class likely spill.
6563
6564 2009-09-03  Jakub Jelinek  <jakub@redhat.com>
6565
6566         PR debug/41236
6567         * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
6568         SIGN_EXTEND or ZERO_EXTEND.  Don't assume there is a REG inside of
6569         it or SUBREG.
6570
6571         PR debug/41238
6572         * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
6573         the stack slot if it is passed by invisible reference.
6574         * var-tracking.c (vt_add_function_parameters): Handle arguments passed
6575         by invisible reference.
6576
6577 2009-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
6578
6579         * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
6580         * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
6581         * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
6582         0.
6583         * config/bfin/sync.md: New file.
6584         * config/bfin/bfin.md: Include it.
6585         (UNSPEC_ATOMIC): New.
6586         (UNSPEC_ONES): Provide a unique number.
6587
6588         From Jie Zhang <jie.zhang@analog.com>:
6589         * config/bfin/bfin.c (ret_regs): New.
6590         (must_save_fp_p): Don't return true because of frame_pointer_needed.
6591         (must_save_rets_p): New.
6592         (n_regs_saved_by_prologue): Use must_save_rets_p instead of
6593         current_function_is_leaf.
6594         (do_link): Likewise.
6595         (do_unlink): Likewise.
6596         (expand_interrupt_handler_prologue): Use ret_regs array.
6597         (expand_interrupt_handler_epilogue): Use ret_regs array and
6598         pass return register to gen_return_internal.
6599         (bfin_expand_epilogue): Pass return register to
6600         gen_return_internal.
6601         (bfin_expand_call): Explicitly clobber RETS.
6602         * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
6603         * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
6604         call_insn_fdpic, call_value_insn_fdpic, call_symbol,
6605         call_value_symbol, call_insn, call_value_insn): Explicitly clobber
6606         RETS.
6607         (return_internal): Take a reg rtx rather than the register number.
6608
6609 2009-09-03  H.J. Lu  <hongjiu.lu@intel.com>
6610
6611         * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
6612         when comparing against estimated_loop_iterations_int return.
6613
6614 2009-09-03  Richard Guenther  <rguenther@suse.de>
6615
6616         * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
6617         eh_personality_libfunc.
6618
6619 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
6620
6621         * tree-parloops.c (separate_decls_in_region): Add space.
6622
6623 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
6624
6625         * tree-parloops.c (separate_decls_in_region): Change the condition
6626         checking if there are reductions in the loop.
6627
6628 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
6629
6630         PR tree-optimization/38275
6631         * tree-parloops.c (parallelize_loops): Replace profitability condition
6632         for expected number of iterations.
6633
6634 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
6635
6636         * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
6637         (bootstrap-debug): Explain conditions in which it becomes default.
6638         (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
6639         make it add to it.
6640
6641 2009-09-03  Namhyung Kim  <namhyung@gmail.com>
6642
6643         * doc/invoke.texi (Optimize Options): Move
6644         -finline-small-functions to the -O2 list.
6645
6646 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
6647
6648         * toplev.c (process_options): Enable var-tracking-assignments
6649         by default if var-tracking is enabled.
6650
6651 2009-09-02  David Daney  <ddaney@caviumnetworks.com>
6652
6653         * cfgbuild.c (find_bb_boundaries): Split blocks containing a
6654         barrier.
6655         * emit-rtl.c (prev_nonnote_insn_bb): New function.
6656         * rtl.h (prev_nonnote_insn_bb): Declare it.
6657
6658 2009-09-03  Diego Novillo  <dnovillo@google.com>
6659
6660         * cgraph.c (cgraph_node_for_decl): New.
6661         * cgraph.h (cgraph_node_for_decl): Declare.
6662         * tree.c (host_integerp): Return 0 if T is NULL.
6663
6664 2009-09-03  Diego Novillo  <dnovillo@google.com>
6665
6666         * tree.h (struct alias_pair): Move from varasm.c.
6667         (alias_pairs): Likewise.
6668         (TYPE_MAXVAL): Define.
6669         (TYPE_MINVAL): Define.
6670         (iterative_hash_host_wide_int): Declare.
6671         (remove_unreachable_alias_pairs): Declare.
6672         * tree-pass.h (pass_ipa_free_lang_data): Declare.
6673         * diagnostic.c (default_diagnostic_starter): Make extern.
6674         (default_diagnostic_finalizer): Make extern.
6675         * diagnostic.h (default_diagnostic_starter): Declare.
6676         (default_diagnostic_finalizer): Declare.
6677         (default_tree_printer): Declare.
6678         * toplev.c (default_tree_printer): Make extern.
6679
6680 2009-09-03  Richard Guenther  <rguenther@suse.de>
6681             Diego Novillo  <dnovillo@google.com>
6682
6683         * cgraph.c (cgraph_add_new_function): Remove gimplification.
6684         * cgraphunit.c (cgraph_expand_function): Do not emit
6685         associated thunks from here.
6686         (cgraph_emit_thunks): New.
6687         (cgraph_optimize): Call it.
6688         Return if any IPA pass finds an error.
6689         * varasm.c (finish_aliases_1): Ignore errorneous aliases used
6690         by thunks.
6691
6692 2009-09-03  Simon Baldwin  <simonb@google.com>
6693             Rafael Espindola  <espindola@google.com>
6694             Richard Guenther  <rguenther@suse.de>
6695             Doug Kwan  <dougkwan@google.com>
6696             Diego Novillo  <dnovillo@google.com>
6697
6698         * tree.c: Include tree-pass.h, langhooks-def.h,
6699         diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
6700         (free_lang_data_in_type): New.
6701         (need_assembler_name_p): New.
6702         (free_lang_data_in_block): New.
6703         (free_lang_data_in_decl): New.
6704         (struct free_lang_data_d): New.
6705         (add_tree_to_fld_list): New.
6706         (find_decls_types_r): New.
6707         (get_eh_types_for_runtime): New.
6708         (find_decls_types_in_eh_region): New.
6709         (find_decls_types_in_node): New.
6710         (find_decls_types_in_var): New.
6711         (free_lang_data_in_cgraph): New.
6712         (free_lang_data): New.
6713         (gate_free_lang_data): New.
6714         (pass_ipa_free_lang_data): New.
6715
6716 2009-09-03  Diego Novillo  <dnovillo@google.com>
6717
6718         * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
6719         * langhooks.h (struct lang_hooks): Add field free_lang_data.
6720         (lang_hooks): Remove const qualifier.
6721         * ipa.c (cgraph_remove_unreachable_nodes): Call
6722         remove_unreachable_alias_pairs.
6723         * except.c (add_type_for_runtime): Check if TYPE has
6724         already been converted.
6725         (lookup_type_for_runtime): Likewise.
6726         (check_handled): Handle converted types.
6727         * varasm.c (remove_unreachable_alias_pairs): New.
6728         * gimple.c: Include demangle.h.
6729         (gimple_decl_printable_name): New.
6730         (gimple_fold_obj_type_ref): New.
6731         * gimple.h (gimple_decl_printable_name): Declare.
6732         (gimple_fold_obj_type_ref): Declare.
6733         * passes.c (init_optimization_passes): Add pass
6734         pass_ipa_free_lang_data.
6735         * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
6736         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
6737
6738 2009-09-03  Diego Novillo  <dnovillo@google.com>
6739
6740         * c-lang.c (lang_hooks): Remove const qualifier.
6741
6742 2009-09-02  Loren James Rittle  <ljrittle@acm.org>
6743
6744         * doc/install.texi (*-*-freebsd*): Update target information.
6745
6746 2009-09-02  Anatoly Sokolov  <aesok@post.ru>
6747
6748         * hard-reg-set.h (call_fixed_regs): Remove.
6749         * reginfo.c (call_fixed_regs): Remove.
6750         (init_reg_sets_1): Remove initialization of call_fixed_regs.
6751         (globalize_reg): Don't use call_fixed_regs.
6752         * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
6753         call_fixed_regs.
6754
6755 2009-09-01  Michael Matz  <matz@suse.de>
6756
6757         * expr.h (emit_storent_insn, expand_expr_real_1,
6758         expand_expr_real_2): Declare.
6759         * expr.c (emit_storent_insn, expand_expr_real_1,
6760         expand_expr_real_2): Export.
6761         (store_expr): Setting and evaluating dont_return_target is useless.
6762         (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
6763         LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
6764         * except.c (expand_resx_expr): Rename to ...
6765         (expand_resx_stmt): ... this.  Rewrite to take gimple statement.
6766         * except.h (expand_resx_stmt): Declare.
6767         * stmt.c: Add include gimple.h
6768         (expand_asm_expr): Rename to ...
6769         (expand_asm_stmt): ... this. Rewrite to take gimple statement.
6770         (expand_case): Rewrite to take gimple statement.
6771         * tree.h (expand_asm_stmt): Declare.
6772         (expand_case): Change prototype.
6773         * Makefile.in (stmt.o): Depend on gimple.h.
6774         * builtins.c (expand_builtin_synchronize): Build gimple asm
6775         statement, not an ASM_EXPR.
6776         * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
6777         gimple_to_tree, release_stmt_tree): Remove.
6778         (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
6779         ggc_free, but hold comparison code and operands separately.
6780         Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
6781         (expand_call_stmt, expand_gimple_stmt_1,
6782         expand_gimple_stmt): New helpers.
6783         (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
6784         release_stmt_tree.  Call expand_gimple_stmt instead.
6785         (expand_gimple_basic_block): Ditto.
6786
6787         * calls.c (emit_call_1): Don't look at EH regions here, make
6788         fntree parameter useless.
6789         (expand_call): New local rettype for TREE_TYPE(exp), use it
6790         throughout.  Remove local p, use addr instead.
6791         Don't look at EH regions here.
6792
6793 2009-09-02  Vladimir Makarov  <vmakarov@redhat.com>
6794
6795         * doc/invoke.texi (-fsched-pressure): Document it.
6796         (-fsched-reg-pressure-heuristic): Remove it.
6797
6798         * reload.c (ira.h): Include.
6799         (find_reloads): Add choosing reload on number of small spilled
6800         classes.
6801
6802         * haifa-sched.c (ira.h): Include.
6803         (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
6804         saved_reg_pressure, curr_reg_live, saved_reg_live,
6805         region_ref_regs): New variables.
6806         (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
6807         initiate_reg_pressure_info, setup_ref_regs,
6808         initiate_bb_reg_pressure_info, save_reg_pressure,
6809         restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
6810         functions.
6811         (setup_insn_reg_pressure_info): New function.
6812         (rank_for_schedule): Add pressure checking and insn issue time.
6813         Remove comparison of insn reg weights.
6814         (ready_sort): Set insn reg pressure info.
6815         (update_register_pressure, setup_insn_max_reg_pressure,
6816         update_reg_and_insn_max_reg_pressure,
6817         sched_setup_bb_reg_pressure_info): New functions.
6818         (schedule_insn): Add code for printing and updating reg pressure info.
6819         (find_set_reg_weight, find_insn_reg_weight): Remove.
6820         (ok_for_early_queue_removal): Do nothing if pressure_only_p.
6821         (debug_ready_list): Print reg pressure info.
6822         (schedule_block): Ditto.  Check insn issue time.
6823         (sched_init): Set up sched_pressure_p.  Allocate and set up some
6824         reg pressure related info.
6825         (sched_finish): Free some reg pressure related info.
6826         (fix_tick_ready): Make insn always ready if pressure_p.
6827         (init_h_i_d): Don't call find_insn_reg_weight.
6828         (haifa_finish_h_i_d): Free insn reg pressure info.
6829
6830         * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
6831         ira_memory_move_cost, ira_class_hard_regs,
6832         ira_class_hard_regs_num, ira_no_alloc_regs,
6833         ira_available_class_regs, ira_reg_class_cover_size,
6834         ira_reg_class_cover, ira_class_translate): Move to ira.h.
6835
6836         * ira-lives.c (single_reg_class): Check mode to find how many
6837         registers are necessary for operand.
6838         (ira_implicitly_set_insn_hard_regs): New.
6839
6840         * common.opt (fsched-pressure): New options.
6841         (fsched-reg-pressure-heuristic): Remove.
6842
6843         * ira.c (setup_eliminable_regset): Rename to
6844         ira_setup_eliminable_regset.  Make it external.
6845         (expand_reg_info): Pass cover class to setup_reg_classes.
6846         (ira): Call resize_reg_info instead of allocate_reg_info.
6847
6848         * sched-deps.c: Include ira.h.
6849         (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
6850         (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
6851         reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
6852         mark_insn_hard_regno_birth, mark_insn_reg_birth,
6853         mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
6854         mark_insn_reg_store, mark_insn_reg_clobber,
6855         setup_insn_reg_pressure_info): New.
6856         (sched_analyze_1): Update implicit_reg_pending_uses.
6857         (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
6858         Use them to create dependencies.  Set insn reg uses and pressure
6859         info.  Process reg_pending_uses in one place.
6860         (free_deps): Free implicit sets.
6861         (remove_from_deps): Remove implicit sets if necessary.  Check
6862         implicit sets when clearing reg_last_in_use.
6863         (init_deps_global): Clear implicit_reg_pending_clobbers and
6864         implicit_reg_pending_uses.
6865
6866         * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
6867         ira_memory_move_cost, ira_class_hard_regs,
6868         ira_class_hard_regs_num, ira_no_alloc_regs,
6869         ira_available_class_regs, ira_reg_class_cover_size,
6870         ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
6871         (ira_setup_eliminable_regset, ira_set_pseudo_classes,
6872         ira_implicitly_set_insn_hard_regs): New prototypes.
6873
6874         * ira-costs.c (pseudo_classes_defined_p, allocno_p,
6875         cost_elements_num): New variables.
6876         (allocno_costs, total_costs): Rename to costs and
6877         total_allocno_costs.
6878         (COSTS_OF_ALLOCNO): Rename to COSTS.
6879         (allocno_pref): Rename to pref.
6880         (allocno_pref_buffer): Rename to pref_buffer.
6881         (common_classes): Rename to regno_cover_class.
6882         (COST_INDEX): New.
6883         (record_reg_classes): Set allocno attributes only if allocno_p.
6884         (record_address_regs): Ditto.  Use COST_INDEX instead of ALLOCNO_NUM.
6885         (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
6886         and COSTS_OF_ALLOCNO.
6887         (print_costs): Rename to print_allocno_costs.
6888         (print_pseudo_costs): New.
6889         (process_bb_node_for_costs): Split into 2 functions with new
6890         function process_bb_for_costs.  Pass BB to process_bb_for_costs.
6891         (find_allocno_class_costs): Rename to find_costs_and_classes.  Add
6892         new parameter dump_file.  Use cost_elements_num instead of
6893         ira_allocnos_num.  Make one iteration if preferred classes were
6894         already calculated for scheduler.  Make 2 versions of code
6895         depending on allocno_p.
6896         (setup_allocno_cover_class_and_costs): Check allocno_p.  Use
6897         regno_cover_class and COSTS instead of common_classes and
6898         COSTS_OF_ALLOCNO.
6899         (init_costs, finish_costs): New.
6900         (ira_costs): Set up allocno_p and cost_elements_num.  Call
6901         init_costs and finish_costs.
6902         (ira_set_pseudo_classes): New.
6903
6904         * rtl.h (allocate_reg_info): Remove.
6905         (resize_reg_info): Change return type.
6906         (reg_cover_class): New.
6907         (setup_reg_classes): Add new parameter.
6908
6909         * sched-int.h (struct deps_reg): New member implicit_sets.
6910         (sched_pressure_p, sched_regno_cover_class): New external definitions.
6911         (INCREASE_BITS): New macro.
6912         (struct reg_pressure_data, struct reg_use_data): New.
6913         (struct _haifa_insn_data): Remove reg_weight.  Add members
6914         reg_pressure, reg_use_list, reg_set_list, and
6915         reg_pressure_excess_cost_change.
6916         (struct deps): New member implicit_sets.
6917         (pressure_p): New variable.
6918         (COVER_CLASS_BITS, INCREASE_BITS): New macros.
6919         (struct reg_pressure_data, struct reg_use_data): New.
6920         (INSN_REG_WEIGHT): Remove.
6921         (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
6922         INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
6923         (sched_init_region_reg_pressure_info,
6924         sched_setup_bb_reg_pressure_info): New prototypes.
6925
6926         * reginfo.c (struct reg_pref): New member coverclass.
6927         (reg_cover_class): New function.
6928         (reginfo_init, pass_reginfo_init): Move after free_reg_info.
6929         (reg_info_size): New variable.
6930         (allocate_reg_info): Make static.  Setup reg_info_size.
6931         (resize_reg_info): Use reg_info_size.  Return flag of resizing.
6932         (setup_reg_classes): Add a new parameter.  Setup cover class too.
6933
6934         * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
6935         the dependencies.
6936
6937         * sched-rgn.c (deps_join): Set up implicit_sets.
6938         (schedule_region): Set up region and basic blocks pressure
6939         relative info.
6940
6941         * passes.c (init_optimization_passes): Move
6942         pass_subregs_of_mode_init before pass_sched.
6943
6944 2009-09-02  Martin Jambor  <mjambor@suse.cz>
6945
6946         * tree-sra.c (struct access): New field grp_hint.
6947         (dump_access): Dump grp_hint.
6948         (sort_and_splice_var_accesses): Set grp_hint if a group is read
6949         multiple times.
6950         (analyze_access_subtree): Only scalarize accesses with grp_hint set or
6951         those which have been specifically read and somehow written to.
6952         (propagate_subacesses_accross_link): Set grp_hint of right child and
6953         also possibly of the left child.
6954
6955 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
6956
6957         * tree-object-size.c (addr_object_size): Always use object_size_type
6958         0 or 2 when determining the pointer pointed object size.
6959
6960 2009-09-02  Richard Guenther  <rguenther@suse.de>
6961
6962         Revert
6963         2009-08-31  Richard Guenther  <rguenther@suse.de>
6964
6965         * builtins.c (fold_builtin_memory_op): Use the alias oracle
6966         to query if the memory regions for memmove overlap.
6967         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
6968         asserts on pointers, instead deal with odd trees.
6969         (ptr_derefs_may_alias_p): Likewise.
6970         (refs_may_alias_p_1): Constructor bases also never alias.
6971
6972 2009-08-01  Christian Bruel  <christian.bruel@st.com>
6973
6974         Revert:
6975         2009-07-31  Christian Bruel  <christian.bruel@st.com>
6976         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
6977
6978 2009-09-01  Alexandre Oliva  <aoliva@redhat.com>
6979
6980         * doc/invoke.texi (-fvar-tracking-assignments): New.
6981         (-fvar-tracking-assignments-toggle): New.
6982         (-fdump-final-insns=file): Mark filename as optional.
6983         (--param min-nondebug-insn-uid): New.
6984         (-gdwarf-@{version}): Mention version 4.
6985         * opts.c (common_handle_option): Accept it.
6986         * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
6987         * regrename.c (regrename_optimize): Drop last.  Don't count debug
6988         insns as uses.  Don't reject change because of debug insn.
6989         (do_replace): Reject DEBUG_INSN as chain starter.  Take base_regno
6990         from the chain starter, and check for inexact matches in DEBUG_INSNS.
6991         (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
6992         (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
6993         * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
6994         * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
6995         * doc/gimple.texi (is_gimple_debug): New.
6996         (gimple_debug_bind_p): New.
6997         (is_gimple_call, gimple_assign_cast_p): End sentence with period.
6998         * doc/install.texi (bootstrap-debug): More details.
6999         (bootstrap-debug-big, bootstrap-debug-lean): Document.
7000         (bootstrap-debug-lib): More details.
7001         (bootstrap-debug-ckovw): Update.
7002         (bootstrap-time): New.
7003         * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
7004         (insert_phi_nodes_for): Insert debug stmts.
7005         (rewrite_stmt): Take iterator.  Insert debug stmts.
7006         (rewrite_enter_block): Adjust.
7007         (maybe_replace_use_in_debug_stmt): New.
7008         (rewrite_update_stmt): Use it.
7009         (mark_use_interesting): Return early for debug stmts.
7010         * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
7011         stmts before replacing stmt.
7012         (move_computations_stmt): Likewise.
7013         * ira-conflicts.c (add_copies): Skip debug insns.
7014         * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
7015         (regstat_bb_compute_ri): Skip debug insns.
7016         * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
7017         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
7018         check_loop_closed_ssa_stmt): Skip debug stmts.
7019         * tree-tailcall.c (find_tail_calls): Likewise.
7020         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7021         * tree.h (MAY_HAVE_DEBUG_STMTS): New.
7022         (build_var_debug_value_stat): Declare.
7023         (build_var_debug_value): Define.
7024         (target_for_debug_bind): Declare.
7025         * reload.c (find_equiv_reg): Skip debug insns.
7026         * rtlanal.c (reg_used_between_p): Skip debug insns.
7027         (side_effects_p): Likewise.
7028         (canonicalize_condition): Likewise.
7029         * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
7030         insns never depend on debug insns.
7031         (create_ddg_dep_no_link): Likewise.
7032         (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
7033         Don't add inter-loop dependencies for debug insns.
7034         (build_intra_loop_deps): Likewise.
7035         (create_ddg): Count debug insns.
7036         * ddg.h (struct ddg::num_debug): New.
7037         (num_backargs): Pair up with previous int field.
7038         * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
7039         -fcompare-debug-second.
7040         * final.c (get_attr_length_1): Skip debug insns.
7041         (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
7042         * gcc.c (invoke_as): Call compare-debug-dump-opt.
7043         (driver_self_specs): Map -fdump-final-insns to
7044         -fdump-final-insns=..
7045         (get_local_tick): New.
7046         (compare_debug_dump_opt_spec_function): Test for . argument and
7047         compute output name.  Compute temp output spec without flag name.
7048         Compute -frandom-seed.
7049         (OPT): Undef after use.
7050         * cfgloopanal.c (num_loop_insns): Skip debug insns.
7051         (average_num_loop_insns): Likewise.
7052         * params.h (MIN_NONDEBUG_INSN_UID): New.
7053         * gimple.def (GIMPLE_DEBUG): New.
7054         * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
7055         * auto-inc-dec.c (merge_in_block): Skip debug insns.
7056         (merge_in_block): Fix whitespace.
7057         * toplev.c (flag_var_tracking): Update comment.
7058         (flag_var_tracking_assignments): New.
7059         (flag_var_tracking_assignments_toggle): New.
7060         (process_options): Don't open final insns dump file if we're not
7061         going to write to it.  Compute defaults for var_tracking.
7062         * df-scan.c (df_insn_rescan_debug_internal): New.
7063         (df_uses_record): Handle debug insns.
7064         * haifa-sched.c (ready): Initialize n_debug.
7065         (contributes_to_priority): Skip debug insns.
7066         (dep_list_size): New.
7067         (priority): Use it.
7068         (rank_for_schedule): Likewise.  Schedule debug insns as soon as
7069         they're ready.  Disregard previous debug insns to make decisions.
7070         (queue_insn): Never queue debug insns.
7071         (ready_add, ready_remove_first, ready_remove): Count debug insns.
7072         (schedule_insn): Don't reject debug insns because of issue rate.
7073         (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
7074         (queue_to_ready): Skip and discount debug insns.
7075         (choose_ready): Let debug insns through.
7076         (schedule_block): Check boundary debug insns.  Discount debug
7077         insns, schedule them early.  Adjust whitespace.
7078         (set_priorities): Check for boundary debug insns.
7079         (add_jump_dependencies): Use dep_list_size.
7080         (prev_non_location_insn): New.
7081         (check_cfg): Use it.
7082         * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
7083         stmts.
7084         (remove_unused_ivs): Reset debug stmts.
7085         * modulo-sched.c (const_iteration_count): Skip debug insns.
7086         (res_MII): Discount debug insns.
7087         (loop_single_full_bb_p): Skip debug insns.
7088         (sms_schedule): Likewise.
7089         (sms_schedule_by_order): Likewise.
7090         (ps_has_conflicts): Likewise.
7091         * caller-save.c (refmarker_fn): New.
7092         (save_call_clobbered_regs): Replace regs with saved mem in
7093         debug insns.
7094         (mark_referenced_regs): Take pointer, mark and arg.  Adjust.
7095         Call refmarker_fn mark for hardregnos.
7096         (mark_reg_as_referenced): New.
7097         (replace_reg_with_saved_mem): New.
7098         * ipa-pure-const.c (check_stmt): Skip debug stmts.
7099         * cse.c (cse_insn): Canonicalize debug insns.  Skip them when
7100         searching back.
7101         (cse_extended_basic_block): Skip debug insns.
7102         (count_reg_usage): Likewise.
7103         (is_dead_reg): New, split out of...
7104         (set_live_p): ... here.
7105         (insn_live_p): Use it for debug insns.
7106         * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
7107         (execute_optimize_stdarg): Likewise.
7108         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
7109         * tree-ssa-propagate.c (substitute_and_fold): Don't regard
7110         changes in debug stmts as changes.
7111         * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
7112         (moveup_expr): Don't move across debug insns.  Don't move
7113         debug insn if it would create a bookkeeping block.
7114         (moveup_expr_cached): Don't use cache for debug insns that
7115         are heads of blocks.
7116         (compute_av_set_inside_bb): Skip debug insns.
7117         (sel_rank_for_schedule): Schedule debug insns first.  Remove
7118         dead code.
7119         (block_valid_for_bookkeeping_p); Support lax searches.
7120         (create_block_for_bookkeeping): Adjust block numbers when
7121         encountering debug-only blocks.
7122         (find_place_for_bookkeeping): Deal with debug-only blocks.
7123         (generate_bookkeeping_insn): Accept no place to insert.
7124         (remove_temp_moveop_nops): New argument full_tidying.
7125         (prepare_place_to_insert): Deal with debug insns.
7126         (advance_state_on_fence): Debug insns don't start cycles.
7127         (update_boundaries): Take fence as argument.  Deal with
7128         debug insns.
7129         (schedule_expr_on_boundary): No full_tidying on debug insns.
7130         (fill_insns): Deal with debug insns.
7131         (track_scheduled_insns_and_blocks): Don't count debug insns.
7132         (need_nop_to_preserve_insn_bb): New, split out of...
7133         (remove_insn_from_stream): ... this.
7134         (fur_orig_expr_not_found): Skip debug insns.
7135         * rtl.def (VALUE): Move up.
7136         (DEBUG_INSN): New.
7137         * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
7138         (nearest_common_dominator_of_uses): Take debug_stmts argument.
7139         Set it if debug stmts are found.
7140         (statement_sink_location): Skip debug stmts.  Propagate
7141         moving defs into debug stmts.
7142         * ifcvt.c (first_active_insn): Skip debug insns.
7143         (last_active_insns): Likewise.
7144         (cond_exec_process_insns): Likewise.
7145         (noce_process_if_block): Likewise.
7146         (check_cond_move_block): Likewise.
7147         (cond_move_convert_if_block): Likewise.
7148         (block_jumps_and_fallthru_p): Likewise.
7149         (dead_or_predicable): Likewise.
7150         * dwarf2out.c (debug_str_hash_forced): New.
7151         (find_AT_string): Add comment.
7152         (gen_label_for_indirect_string): New.
7153         (get_debug_string_label): New.
7154         (AT_string_form): Use it.
7155         (mem_loc_descriptor): Handle non-TLS symbols.  Handle MINUS , DIV,
7156         MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING.  Accept but
7157         discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
7158         several operations that cannot be represented with DWARF opcodes.
7159         (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND.  Require
7160         dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
7161         (dwarf2out_var_location): Take during-call mark into account.
7162         (output_indirect_string): Update comment.  Output if there are
7163         label and references.
7164         (prune_indirect_string): New.
7165         (prune_unused_types): Call it if debug_str_hash_forced.
7166         More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
7167         (dw_long_long_const): Remove.
7168         (struct dw_val_struct): Change val_long_long type to rtx.
7169         (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
7170         val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
7171         (output_die): Likewise.  Use HOST_BITS_PER_WIDE_INT size of each
7172         component instead of HOST_BITS_PER_LONG.
7173         (output_loc_operands): Likewise.  For const8* assert
7174         HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
7175         (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
7176         rather than HOST_BITS_PER_LONG is >= 64.
7177         (add_AT_long_long): Remove val_hi and val_lo arguments, add
7178         val_const_double.
7179         (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
7180         HOST_BITS_PER_LONG for dw_val_class_long_long.
7181         (add_const_value_attribute): Adjust add_AT_long_long caller.  Don't
7182         handle TLS SYMBOL_REFs.  If CONST wraps a constant, tail recurse.
7183         (dwarf_stack_op_name): Handle DW_OP_implicit_value and
7184         DW_OP_stack_value.
7185         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
7186         Handle DW_OP_implicit_value.
7187         (extract_int): Move prototype earlier.
7188         (mem_loc_descriptor): For SUBREG punt if inner
7189         mode size is wider than DWARF2_ADDR_SIZE.  Handle SIGN_EXTEND
7190         and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}.  Handle
7191         EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
7192         UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
7193         (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
7194         instead of Pmode size.
7195         (loc_descriptor): Add MODE argument.  Handle CONST_INT, CONST_DOUBLE,
7196         CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
7197         attempt to handle other expressions.  Don't handle TLS SYMBOL_REFs.
7198         (concat_loc_descriptor, concatn_loc_descriptor,
7199         loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
7200         (add_location_or_const_value_attribute): Likewise.  For single
7201         location loc_lists attempt to use add_const_value_attribute
7202         for constant decls.  Add DW_AT_const_value even if
7203         NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
7204         in its expression.
7205         * cfgbuild.c (inside_basic_block_p): Handle debug insns.
7206         (control_flow_insn_p): Likewise.
7207         * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
7208         (separate_decls_in_region_debug_bind): New.
7209         (separate_decls_in_region): Process debug bind stmts afterwards.
7210         * recog.c (verify_changes): Handle debug insns.
7211         (extract_insn): Likewise.
7212         (peephole2_optimize): Skip debug insns.
7213         * dse.c (scan_insn): Skip debug insns.
7214         * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
7215         Pass it on.
7216         (setup_id_for_insn): Handle debug insns.
7217         (maybe_tidy_empty_bb): Adjust whitespace.
7218         (tidy_control_flow): Skip debug insns.
7219         (sel_remove_insn): Adjust for debug insns.
7220         (sel_estimate_number_of_insns): Skip debug insns.
7221         (create_insn_rtx_from_pattern): Handle debug insns.
7222         (create_copy_of_insn_rtx): Likewise.
7223         * sel-sched-.h (sel_bb_end): Declare.
7224         (sel_bb_empty_or_nop_p): New.
7225         (get_all_loop_exits): Use it.
7226         (_eligible_successor_edge_p): Likewise.
7227         (return_nop_to_pool): Adjust.
7228         * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
7229         * ira-lives.c (process_bb_node_lives): Skip debug insns.
7230         * gimple-pretty-print.c (dump_gimple_debug): New.
7231         (dump_gimple_stmt): Use it.
7232         (dump_bb_header): Skip gimple debug stmts.
7233         * regmove.c (optimize_reg_copy_1): Discount debug insns.
7234         (fixup_match_2): Likewise.
7235         (regmove_backward_pass): Likewise.  Simplify combined
7236         replacement.  Handle debug insns.
7237         * function.c (instantiate_virtual_regs): Handle debug insns.
7238         * function.h (struct emit_status): Add x_cur_debug_insn_uid.
7239         * print-rtl.h: Include cselib.h.
7240         (print_rtx): Print VALUEs.  Split out and recurse for VAR_LOCATIONs.
7241         * df.h (df_inns_rescan_debug_internal): Declare.
7242         * gcse.c (alloc_hash_table): Estimate n_insns.
7243         (cprop_insn): Don't regard debug insns as changes.
7244         (bypass_conditional_jumps): Skip debug insns.
7245         (one_pre_gcse_pass): Adjust.
7246         (one_code_hoisting_pass): Likewise.
7247         (compute_ld_motion_mems): Skip debug insns.
7248         (one_cprop_pass): Adjust.
7249         * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
7250         (if_convertible_stmt_p): Handle debug stmts.
7251         * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
7252         * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
7253         * ira-build.c (create_bb_allocnos): Skip debug insns.
7254         * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
7255         (has_single_use): Likewise.
7256         (single_imm_use): Likewise.
7257         (num_imm_uses): Likewise.
7258         * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
7259         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
7260         (create_outofssa_var_map): Likewise.
7261         * lower-subreg.c (adjust_decomposed_uses): New.
7262         (resolve_debug): New.
7263         (decompose_multiword_subregs): Use it.
7264         * tree-dfa.c (find_referenced_vars): Skip debug stmts.
7265         * emit-rtl.c: Include params.h.
7266         (cur_debug_insn_uid): Define.
7267         (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
7268         (copy_rtx_if_shared_1): Handle debug insns.
7269         (reset_used_flags): Likewise.
7270         (set_used_flags): LIkewise.
7271         (get_max_insn_count): New.
7272         (next_nondebug_insn): New.
7273         (prev_nondebug_insn): New.
7274         (make_debug_insn_raw): New.
7275         (emit_insn_before_noloc): Handle debug insns.
7276         (emit_jump_insn_before_noloc): Likewise.
7277         (emit_call_insn_before_noloc): Likewise.
7278         (emit_debug_insn_before_noloc): New.
7279         (emit_insn_after_noloc): Handle debug insns.
7280         (emit_jump_insn_after_noloc): Likewise.
7281         (emit_call_insn_after_noloc): Likewise.
7282         (emit_debug_insn_after_noloc): Likewise.
7283         (emit_insn_after): Take loc from earlier non-debug insn.
7284         (emit_jump_insn_after): Likewise.
7285         (emit_call_insn_after): Likewise.
7286         (emit_debug_insn_after_setloc): New.
7287         (emit_debug_insn_after): New.
7288         (emit_insn_before): Take loc from later non-debug insn.
7289         (emit_jump_insn_before): Likewise.
7290         (emit_call_insn_before): Likewise.
7291         (emit_debug_insn_before_setloc): New.
7292         (emit_debug_insn_before): New.
7293         (emit_insn): Handle debug insns.
7294         (emit_debug_insn): New.
7295         (emit_jump_insn): Handle debug insns.
7296         (emit_call_insn): Likewise.
7297         (emit): Likewise.
7298         (init_emit): Take min-nondebug-insn-uid into account.
7299         Initialize cur_debug_insn_uid.
7300         (emit_copy_of_insn_after): Handle debug insns.
7301         * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
7302         location of single rhs in place.
7303         (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
7304         (floor_sdiv_adjust): New.
7305         (cell_sdiv_adjust): New.
7306         (cell_udiv_adjust): New.
7307         (round_sdiv_adjust): New.
7308         (round_udiv_adjust): New.
7309         (wrap_constant): Moved from cselib.
7310         (unwrap_constant): New.
7311         (expand_debug_expr): New.
7312         (expand_debug_locations): New.
7313         (expand_gimple_basic_block): Drop hiding redeclaration.  Expand
7314         debug bind stmts.
7315         (gimple_expand_cfg): Expand debug locations.
7316         * cselib.c: Include tree-pass.h.
7317         (struct expand_value_data): New.
7318         (cselib_record_sets_hook): New.
7319         (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
7320         (cselib_clear_table): Move, and implemnet in terms of...
7321         (cselib_reset_table_with_next_value): ... this.
7322         (cselib_get_next_unknown_value): New.
7323         (discard_useless_locs): Don't discard preserved values.
7324         (cselib_preserve_value): New.
7325         (cselib_preserved_value_p): New.
7326         (cselib_preserve_definitely): New.
7327         (cselib_clear_preserve): New.
7328         (cselib_preserve_only_values): New.
7329         (new_cselib_val): Take rtx argument.  Dump it in details.
7330         (cselib_lookup_mem): Adjust.
7331         (expand_loc): Take regs_active in struct.  Adjust.  Silence
7332         dumps unless details are requested.
7333         (cselib_expand_value_rtx_cb): New.
7334         (cselib_expand_value_rtx): Rename and reimplment in terms of...
7335         (cselib_expand_value_rtx_1): ... this.  Adjust.  Silence dumps
7336         without details.  Copy more subregs.  Try to resolve values
7337         using a callback.  Wrap constants.
7338         (cselib_subst_to_values): Adjust.
7339         (cselib_log_lookup): New.
7340         (cselib_lookup): Call it.
7341         (cselib_invalidate_regno): Don't count preserved values as useless.
7342         (cselib_invalidate_mem): Likewise.
7343         (cselib_record_set): Likewise.
7344         (struct set): Renamed to cselib_set, moved to cselib.h.
7345         (cselib_record_sets): Adjust.  Call hook.
7346         (cselib_process_insn): Reset table when it would be cleared.
7347         (dump_cselib_val): New.
7348         (dump_cselib_table): New.
7349         * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
7350         (remove_forwarder_block): Support moving debug stmts.
7351         * cselib.h (cselib_record_sets_hook): Declare.
7352         (cselib_expand_callback): New type.
7353         (cselib_expand_value_rtx_cb): Declare.
7354         (cselib_reset_table_with_next_value): Declare.
7355         (cselib_get_next_unknown_value): Declare.
7356         (cselib_preserve_value): Declare.
7357         (cselib_preserved_value_p): Declare.
7358         (cselib_preserve_only_values): Declare.
7359         (dump_cselib_table): Declare.
7360         * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
7361         (try_crossjump_to_edge): Likewise.
7362         (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
7363         dominated blocks when debug stmts are present.
7364         * simplify-rtx.c (delegitimize_mem_from_attrs): New.
7365         * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
7366         (set_var_live_on_entry): Likewise.
7367         * loop-invariant.c (find_invariants_bb): Skip debug insns.
7368         * cfglayout.c (curr_location, last_location): Make static.
7369         (set_curr_insn_source_location): Don't avoid bouncing.
7370         (get_curr_insn_source_location): New.
7371         (get_curr_insn_block): New.
7372         (duplicate_insn_chain): Handle debug insns.
7373         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
7374         into debug stmts.
7375         * common.opt (fcompare-debug): Move to sort order.
7376         (fdump-unnumbered-links): Likewise.
7377         (fvar-tracking-assignments): New.
7378         (fvar-tracking-assignments-toggle): New.
7379         * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
7380         because of debug stmts.
7381         (mark_stmt_if_obviously_necessary): Mark debug stmts.
7382         (eliminate_unnecessary_stmts): Walk dominated blocks before
7383         dominators.
7384         * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
7385         * ira.c (memref_used_between_p): Skip debug insns.
7386         (update_equiv_regs): Likewise.
7387         * sched-deps.c (sd_lists_size): Accept empty list.
7388         (sd_init_insn): Mark debug insns.
7389         (sd_finish_insn): Unmark them.
7390         (sd_add_dep): Reject non-debug deps on debug insns.
7391         (fixup_sched_groups): Give debug insns group treatment.
7392         Skip debug insns.
7393         (sched_analyze_reg): Don't mark debug insns for sched before call.
7394         (sched_analyze_2): Handle debug insns.
7395         (sched_analyze_insn): Compute next non-debug insn.  Handle debug
7396         insns.
7397         (deps_analyze_insn): Handle debug insns.
7398         (deps_start_bb): Skip debug insns.
7399         (init_deps): Initialize last_debug_insn.
7400         * tree-ssa.c (target_for_debug_bind): New.
7401         (find_released_ssa_name): New.
7402         (propagate_var_def_into_debug_stmts): New.
7403         (propagate_defs_into_debug_stmts): New.
7404         (verify_ssa): Skip debug bind stmts without values.
7405         (warn_uninialized_vars): Skip debug stmts.
7406         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
7407         * rtl.c (rtx_equal_p_cb): Handle VALUEs.
7408         (rtx_equal_p): Likewise.
7409         * ira-costs.c (scan_one_insn): Skip debug insns.
7410         (process_bb_node_for_hard_reg_moves): Likewise.
7411         * rtl.h (DEBUG_INSN_P): New.
7412         (NONDEBUG_INSN_P): New.
7413         (MAY_HAVE_DEBUG_INSNS): New.
7414         (INSN_P): Accept debug insns.
7415         (RTX_FRAME_RELATED_P): Likewise.
7416         (INSN_DELETED_P): Likewise
7417         (PAT_VAR_LOCATION_DECL): New.
7418         (PAT_VAR_LOCATION_LOC): New.
7419         (PAT_VAR_OCATION_STATUS): New.
7420         (NOTE_VAR_LOCATION_DECL): Reimplement.
7421         (NOTE_VAR_LOCATION_LOC): Likewise.
7422         (NOTE_VAR_LOCATION_STATUS): Likewise.
7423         (INSN_VAR_LOCATION): New.
7424         (INSN_VAR_LOCATION_DECL): New.
7425         (INSN_VAR_LOCATION_LOC): New.
7426         (INSN_VAR_LOCATION_STATUS): New.
7427         (gen_rtx_UNKNOWN_VAR_LOC): New.
7428         (VAR_LOC_UNKNOWN_P): New.
7429         (NOTE_DURING_CALL_P): New.
7430         (SCHED_GROUP_P): Accept debug insns.
7431         (emit_debug_insn_before): Declare.
7432         (emit_debug_insn_before_noloc): Declare.
7433         (emit_debug_insn_beore_setloc): Declare.
7434         (emit_debug_insn_after): Declare.
7435         (emit_debug_insn_after_noloc): Declare.
7436         (emit_debug_insn_after_setloc): Declare.
7437         (emit_debug_insn): Declare.
7438         (make_debug_insn_raw): Declare.
7439         (prev_nondebug_insn): Declare.
7440         (next_nondebug_insn): Declare.
7441         (delegitimize_mem_from_attrs): Declare.
7442         (get_max_insn_count): Declare.
7443         (wrap_constant): Declare.
7444         (unwrap_constant): Declare.
7445         (get_curr_insn_source_location): Declare.
7446         (get_curr_insn_block): Declare.
7447         * tree-inline.c (insert_debug_decl_map): New.
7448         (processing_debug_stmt): New.
7449         (remap_decl): Don't create new mappings in debug stmts.
7450         (remap_gimple_op_r): Don't add references in debug stmts.
7451         (copy_tree_body_r): Likewise.
7452         (remap_gimple_stmt): Handle debug bind stmts.
7453         (copy_bb): Skip debug stmts.
7454         (copy_edges_for_bb): Likewise.
7455         (copy_debug_stmt): New.
7456         (copy_debug_stmts): New.
7457         (copy_body): Copy debug stmts at the end.
7458         (insert_init_debug_bind): New.
7459         (insert_init_stmt): Take id.  Skip and emit debug stmts.
7460         (setup_one_parameter): Remap variable earlier, register debug mapping.
7461         (estimate_num_insns): Skip debug stmts.
7462         (expand_call_inline): Preserve debug_map.
7463         (optimize_inline_calls): Check for no debug_stmts left-overs.
7464         (unsave_expr_now): Preserve debug_map.
7465         (copy_gimple_seq_and_replace_locals): Likewise.
7466         (tree_function_versioning): Check for no debug_stmts left-overs.
7467         Init and destroy debug_map as needed.  Split edges unconditionally.
7468         (build_duplicate_type): Init and destroy debug_map as needed.
7469         * tree-inline.h: Include gimple.h instead of pointer-set.h.
7470         (struct copy_body_data): Add debug_stmts and debug_map.
7471         * sched-int.h (struct ready_list): Add n_debug.
7472         (struct deps): Add last_debug_insn.
7473         (DEBUG_INSN_SCHED_P): New.
7474         (BOUNDARY_DEBUG_INSN_P): New.
7475         (SCHEDULE_DEBUG_INSN_P): New.
7476         (sd_iterator_cond): Accept empty list.
7477         * combine.c (create_log_links): Skip debug insns.
7478         (combine_instructions): Likewise.
7479         (cleanup_auto_inc_dec): New.  From Jakub Jelinek: Make sure the
7480         return value is always unshared.
7481         (struct rtx_subst_pair): New.
7482         (auto_adjust_pair): New.
7483         (propagate_for_debug_subst): New.
7484         (propagate_for_debug): New.
7485         (try_combine): Skip debug insns.  Propagate removed defs into
7486         debug insns.
7487         (next_nonnote_nondebug_insn): New.
7488         (distribute_notes): Use it.  Skip debug insns.
7489         (distribute_links): Skip debug insns.
7490         * tree-outof-ssa.c (set_location_for_edge): Likewise.
7491         * resource.c (mark_target_live_regs): Likewise.
7492         * var-tracking.c: Include cselib.h and target.h.
7493         (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
7494         MO_VAL_SET.
7495         (micro_operation_type_name): New.
7496         (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
7497         (struct micro_operation_def): Update comments.
7498         (decl_or_value): New type.  Use instead of decls.
7499         (struct emit_note_data_def): Add vars.
7500         (struct attrs_def): Use decl_or_value.
7501         (struct variable_tracking_info_def): Add permp, flooded.
7502         (struct location_chain_def): Update comment.
7503         (struct variable_part_def): Use decl_or_value.
7504         (struct variable_def): Make var_part a variable length array.
7505         (valvar_pool): New.
7506         (scratch_regs): New.
7507         (cselib_hook_called): New.
7508         (dv_is_decl_p): New.
7509         (dv_is_value_p): New.
7510         (dv_as_decl): New.
7511         (dv_as_value): New.
7512         (dv_as_opaque): New.
7513         (dv_onepart_p): New.
7514         (dv_pool): New.
7515         (IS_DECL_CODE): New.
7516         (check_value_is_not_decl): New.
7517         (dv_from_decl): New.
7518         (dv_from_value): New.
7519         (dv_htab_hash): New.
7520         (variable_htab_hash): Use it.
7521         (variable_htab_eq): Support values.
7522         (variable_htab_free): Free from the right pool.
7523         (attrs_list_member, attrs_list_insert): Use decl_or_value.
7524         (attrs_list_union): Adjust.
7525         (attrs_list_mpdv_union): New.
7526         (tie_break_pointers): New.
7527         (canon_value_cmp): New.
7528         (unshare_variable): Return possibly-modified slot.
7529         (vars_copy_1): Adjust.
7530         (var_reg_decl_set): Adjust.  Split out of...
7531         (var_reg_set): ... this.
7532         (get_init_value): Adjust.
7533         (var_reg_delete_and_set): Adjust.
7534         (var_reg_delete): Adjust.
7535         (var_regno_delete): Adjust.
7536         (var_mem_decl_set): Split out of...
7537         (var_mem_set): ... this.
7538         (var_mem_delete_and_set): Adjust.
7539         (var_mem_delete): Adjust.
7540         (val_store): New.
7541         (val_reset): New.
7542         (val_resolve): New.
7543         (variable_union): Adjust.  Speed up merge of 1-part vars.
7544         (variable_canonicalize): Use unshared slot.
7545         (VALUED_RECURSED_INTO): New.
7546         (find_loc_in_1pdv): New.
7547         (struct dfset_merge): New.
7548         (insert_into_intersection): New.
7549         (intersect_loc_chains): New.
7550         (loc_cmp): New.
7551         (canonicalize_loc_order_check): New.
7552         (canonicalize_values_mark): New.
7553         (canonicalize_values_star): New.
7554         (variable_merge_over_cur): New.
7555         (variable_merge_over_src): New.
7556         (dataflow_set_merge): New.
7557         (dataflow_set_equiv_regs): New.
7558         (remove_duplicate_values): New.
7559         (struct dfset_post_merge): New.
7560         (variable_post_merge_new_vals): New.
7561         (variable_post_merge_perm_vals): New.
7562         (dataflow_post_merge_adjust): New.
7563         (find_mem_expr_in_1pdv): New.
7564         (dataflow_set_preserve_mem_locs): New.
7565         (dataflow_set_remove_mem_locs): New.
7566         (dataflow_set_clear_at_call): New.
7567         (onepart_variable_different_p): New.
7568         (variable_different_p): Use it.
7569         (dataflow_set_different_1): Adjust.  Make detailed dump more verbose.
7570         (track_expr_p): Add need_rtl parameter.  Don't generate rtl
7571         if not needed.
7572         (track_loc_p): Pass it true.
7573         (struct count_use_info): New.
7574         (find_use_val): New.
7575         (replace_expr_with_values): New.
7576         (log_op_type): New.
7577         (use_type): New, partially split out of...
7578         (count_uses): ... this.  Count new micro-ops.
7579         (count_uses_1): Adjust.
7580         (count_stores): Adjust.
7581         (count_with_sets): New.
7582         (VAL_NEEDS_RESOLUTION): New.
7583         (VAL_HOLDS_TRACK_EXPR): New.
7584         (VAL_EXPR_IS_COPIED): New.
7585         (VAL_EXPR_IS_CLOBBERED): New.
7586         (add_uses): Adjust.  Generate new micro-ops.
7587         (add_uses_1): Adjust.
7588         (add_stores): Generate new micro-ops.
7589         (add_with_sets): New.
7590         (find_src_status): Adjust.
7591         (find_src_set_src): Adjust.
7592         (compute_bb_dataflow): Use dataflow_set_clear_at_call.
7593         Handle new micro-ops.  Canonicalize value equivalances.
7594         (vt_find_locations): Compute total size of hash tables for
7595         dumping.  Perform merge for var-tracking-assignments.  Don't
7596         disregard single-block loops.
7597         (dump_attrs_list): Handle decl_or_value.
7598         (dump_variable): Take variable.  Deal with decl_or_value.
7599         (dump_variable_slot): New.
7600         (dump_vars): Use it.
7601         (dump_dataflow_sets): Adjust.
7602         (set_slot_part): New, extended to support one-part variables
7603         after splitting out of...
7604         (set_variable_part): ... this.
7605         (clobber_slot_part): New, split out of...
7606         (clobber_variable_part): ... this.
7607         (delete_slot_part): New, split out of...
7608         (delete_variable_part): .... this.
7609         (check_wrap_constant): New.
7610         (vt_expand_loc_callback): New.
7611         (vt_expand_loc): New.
7612         (emit_note_insn_var_location): Adjust.  Handle values.  Handle
7613         EMIT_NOTE_AFTER_CALL_INSN.
7614         (emit_notes_for_differences_1): Adjust.  Handle values.
7615         (emit_notes_for_differences_2): Likewise.
7616         (emit_notes_for_differences): Adjust.
7617         (emit_notes_in_bb): Take pointer to set.  Emit AFTER_CALL_INSN notes.
7618         Adjust.  Handle new micro-ops.
7619         (vt_add_function_parameters): Adjust.  Create and bind values.
7620         (vt_initialize): Adjust.  Initialize scratch_regs and
7621         valvar_pool, flooded and perm..  Initialize and use cselib.  Log
7622         operations.  Move some code to count_with_sets and add_with_sets.
7623         (delete_debug_insns): New.
7624         (vt_debug_insns_local): New.
7625         (vt_finalize): Release permp, valvar_pool, scratch_regs.  Finish
7626         cselib.
7627         (var_tracking_main): If var-tracking-assignments is enabled
7628         but var-tracking isn't, delete debug insns and leave.  Likewise
7629         if we exceed limits or fail the stack adjustments tests, and
7630         after all var-tracking processing.
7631         More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
7632         (dataflow_set): Add traversed_vars.
7633         (value_chain, const_value_chain): New typedefs.
7634         (value_chain_pool, value_chains): New variables.
7635         (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
7636         add_value_chains, add_cselib_value_chains, remove_value_chain,
7637         remove_value_chains, remove_cselib_value_chains): New functions.
7638         (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
7639         shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
7640         static inlines.
7641         (shared_hash_find_slot_unshare, shared_hash_find_slot,
7642         shared_hash_find_slot_noinsert, shared_hash_find): Update.
7643         (dst_can_be_shared): New variable.
7644         (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
7645         Clear dst_can_be_shared.  If set->traversed_vars is non-NULL and
7646         different from set->vars, look up slot again instead of using the
7647         passed in slot.
7648         (dataflow_set_init): Initialize traversed_vars.
7649         (variable_union): Use shared_hash_*.  Use initially NO_INSERT
7650         lookup if set->vars is shared.  Don't keep slot cleared before
7651         calling unshare_variable.  Unshare set->vars if needed.  Adjust
7652         unshare_variable callers.  Clear dst_can_be_shared if needed.
7653         Even ->refcount == 1 vars must be unshared if set->vars is shared
7654         and var needs to be modified.
7655         (dataflow_set_union): Set traversed_vars during canonicalization.
7656         (VALUE_CHANGED, DECL_CHANGED): Define.
7657         (set_dv_changed, dv_changed_p): New static inlines.
7658         (track_expr_p): Clear DECL_CHANGED.
7659         (dump_dataflow_sets): Set it.
7660         (variable_was_changed): Call set_dv_changed.
7661         (emit_note_insn_var_location): Likewise.
7662         (changed_variables_stack): New variable.
7663         (check_changed_vars_1, check_changed_vars_2): New functions.
7664         (emit_notes_for_changes): Do nothing if changed_variables is
7665         empty.  Traverse changed_variables with check_changed_vars_1,
7666         call check_changed_vars_2 on each changed_variables_stack entry.
7667         (emit_notes_in_bb): Add SET argument.  Just clear it at the
7668         beginning, use it instead of local &set, don't destroy it at the end.
7669         (vt_emit_notes): Call dataflow_set_clear early on all
7670         VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
7671         computed set, dataflow_set_clear also VTI(bb)->in when we are
7672         done with the basic block.  Initialize changed_variables_stack,
7673         free it afterwards.  If ENABLE_CHECKING verify that after noting
7674         differences to an empty set value_chains hash table is empty.
7675         (vt_initialize): Initialize value_chains and value_chain_pool.
7676         (vt_finalize): Delete value_chains htab, free value_chain_pool.
7677         (variable_tracking_main): Call dump_dataflow_sets before calling
7678         vt_emit_notes, not after it.
7679         * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
7680         (propagate_var_def_into_debug_stmts): Declare.
7681         * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
7682         (df_set_note): Reject debug insns.
7683         (df_whole_mw_reg_dead_p): Take added_notes_p argument.  Don't
7684         add notes to debug insns.
7685         (df_note_bb_compute): Adjust.  Likewise.
7686         (df_simulate_uses): Skip debug insns.
7687         (df_simulate_initialize_backwards): Likewise.
7688         * reg-stack.c (subst_stack_regs_in_debug_insn): New.
7689         (subst_stack_regs_pat): Reject debug insns.
7690         (convert_regs_1): Handle debug insns.
7691         * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
7692         (print-rtl.o): Depend on cselib.h.
7693         (cselib.o): Depend on TREE_PASS_H.
7694         (var-tracking.o): Depend on cselib.h and TARGET_H.
7695         * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
7696         (init_ready_list): Skip boundary debug insns.
7697         (add_branch_dependences): Skip debug insns.
7698         (free_block_dependencies): Check for blocks with only debug insns.
7699         (compute_priorities): Likewise.
7700         * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
7701         (gimple_build_with_ops_stat): Take subcode as unsigned.  Adjust
7702         all callers.
7703         (gimple_build_debug_bind_stat): New.
7704         (empty_body_p): Skip debug stmts.
7705         (gimple_has_side_effects): Likewise.
7706         (gimple_rhs_has_side_effects): Likewise.
7707         * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
7708         (gimple_build_debug_bind_stat): Declare.
7709         (gimple_build_debug_bind): Define.
7710         (is_gimple_debug): New.
7711         (gimple_debug_bind_p): New.
7712         (gimple_debug_bind_get_var): New.
7713         (gimple_debug_bind_get_value): New.
7714         (gimple_debug_bind_get_value_ptr): New.
7715         (gimple_debug_bind_set_var): New.
7716         (gimple_debug_bind_set_value): New.
7717         (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
7718         (gimple_debug_bind_reset_value): New.
7719         (gimple_debug_bind_has_value_p): New.
7720         (gsi_next_nondebug): New.
7721         (gsi_prev_nondebug): New.
7722         (gsi_start_nondebug_bb): New.
7723         (gsi_last_nondebug_bb): New.
7724         * sched-vis.c (print_pattern): Handle VAR_LOCATION.
7725         (print_insn): Handle DEBUG_INSN.
7726         * tree-cfg.c (remove_bb): Walk stmts backwards.  Let loc
7727         of first insn prevail.
7728         (first_stmt): Skip debug stmts.
7729         (first_non_label_stmt): Likewise.
7730         (last_stmt): Likewise.
7731         (has_zero_uses_1): New.
7732         (single_imm_use_1): New.
7733         (verify_gimple_debug): New.
7734         (verify_types_in_gimple_stmt): Handle debug stmts.
7735         (verify_stmt): Likewise.
7736         (debug_loop_num): Skip debug stmts.
7737         (remove_edge_and_dominated_blocks): Remove dominators last.
7738         * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
7739         (linearize_expr): Likewise.
7740         * config/i386/i386.c (ix86_delegitimize_address): Call
7741         default implementation.
7742         * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
7743         (group_barrier_needed): Skip debug insns.
7744         (emit_insn_group_barriers): Likewise.
7745         (emit_all_insn_group_barriers): Likewise.
7746         (ia64_variable_issue): Handle debug insns.
7747         (ia64_dfa_new_cycle): Likewise.
7748         (final_emit_insn_group_barriers): Skip debug insns.
7749         (ia64_dwarf2out_def_steady_cfa): Take frame argument.  Don't
7750         def cfa without frame.
7751         (process_set): Likewise.
7752         (process_for_unwind_directive): Pass frame on.
7753         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
7754         (rs6000_delegitimize_address): New.
7755         (rs6000_debug_adjust_cost): Handle debug insns.
7756         (is_microcoded_insn): Likewise.
7757         (is_cracked_insn): Likewise.
7758         (is_nonpipeline_insn): Likewise.
7759         (insn_must_be_first_in_group): Likewise.
7760         (insn_must_be_last_in_group): Likewise.
7761         (force_new_group): Likewise.
7762         * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
7763         contains only debug insns.
7764         (rtl_merge_blocks): Skip debug insns.
7765         (purge_dead_edges): Likewise.
7766         (rtl_block_ends_with_call_p): Skip debug insns.
7767         * dce.c (deletable_insn_p): Handle VAR_LOCATION.
7768         (mark_reg_dependencies): Skip debug insns.
7769         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
7770         * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
7771         * tree-ssa-threadedge.c
7772         (record_temporary_equivalences_from_stmts): Skip debug stmts.
7773         * regcprop.c (replace_oldest_value_addr): Skip debug insns.
7774         (replace_oldest_value_mem): Use ALL_REGS for debug insns.
7775         (copyprop_hardreg_forward_1): Handle debug insns.
7776         * reload1.c (reload): Skip debug insns.  Replace unassigned
7777         pseudos in debug insns with their equivalences.
7778         (eliminate_regs_in_insn): Skip debug insns.
7779         (emit_input_reload_insns): Skip debug insns at first, adjust
7780         them later.
7781         * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
7782         (get_indirect_ref_operands): Pass opf_no_vops on.
7783         (get_expr_operands): Likewise.  Skip debug stmts.
7784         (parse_ssa_operands): Scan debug insns with opf_no_vops.
7785
7786 2009-09-01  Richard Henderson  <rth@redhat.com>
7787
7788         * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
7789         stmt_ends_pp_p statements at least once.
7790         * tree-vrp.c (vrp_initialize): Likewise.
7791         (vrp_visit_stmt): Be prepared for non-interesting stmts.
7792
7793 2009-09-01  Dodji Seketeli  <dodji@redhat.com>
7794
7795         PR bootstrap/41205
7796         Fix AIX bootstrap after PR debug/30161
7797         * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
7798         that is a GNU extension.
7799         (tmpl_value_parm_die_table): Move the definition of this global
7800         outside #ifdef DWARF2_DEBUGGING_INFO region.
7801
7802 2009-09-01  Richard Guenther  <rguenther@suse.de>
7803
7804         * tree.c (tree_expr_size): New function.
7805         * tree.h (tree_expr_size): Declare.
7806         * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
7807         * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
7808         * langhooks.c (lhd_expr_size): Remove.
7809         * langhooks.h (struct lang_hooks): Remove expr_size.
7810         * explow.c (expr_size): Use tree_expr_size.
7811         (int_expr_size): Likewise.
7812         * langhooks-def.h (lhd_expr_size): Remove.
7813         (LANG_HOOKS_EXPR_SIZE): Likewise.
7814         (LANG_HOOKS_INITIALIZER): Adjust.
7815
7816 2009-09-01  Richard Guenther  <rguenther@suse.de>
7817
7818         * tree-flow.h (mark_addressable): Move declaration ...
7819         * tree.h (mark_addressable): ... here.
7820         * stmt.c (expand_asm_operands): Use mark_addressable, not
7821         lang_hooks.mark_addressable.
7822         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
7823         LANG_HOOKS_MARK_ADDRESSABLE.
7824         * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
7825         * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
7826
7827 2009-08-31  Chris Demetriou  <cgd@google.com>
7828
7829         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
7830         vectorize if not TARGET_SSE2.
7831
7832 2009-08-31  DJ Delorie  <dj@redhat.com>
7833
7834         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
7835         registers if no coprocessor is enabled.
7836
7837 2009-08-31  Dodji Seketeli  <dodji@redhat.com>
7838
7839         PR debug/30161
7840         * cgraph.h (cgraph_get_node): Declare ...
7841         * cgraph.c (cgraph_get_node): ... new function.
7842         * dwarf2out.c (gen_generic_params_dies,
7843         generic_parameter_die, tree_add_const_value_attribute_for_decl,
7844         make_ith_pack_parameter_name,
7845         append_entry_to_tmpl_value_parm_die_table,
7846         gen_remaining_tmpl_value_param_die_attribute): New functions.
7847         (gen_subprogram_die): Generate debug info for template parameters
7848         if debug info level is higher than DINFO_LEVEL_TERSE.
7849         Use tree_add_const_value_attribute_for_decl instead of
7850         tree_add_const_value_attribute.
7851         (gen_const_die): Use tree_add_const_value_attribute_for_decl
7852         instead of tree_add_const_value_attribute.
7853         (gen_struct_or_union_type_die): Generate debug
7854         info for template parameters if debug info level is higher than
7855         DINFO_LEVEL_TERSE.
7856         (tree_add_const_value_attribute): Handle integral and pointer
7857         constants. Update comment.
7858         (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
7859         (dwarf_attr_name): Support DW_AT_GNU_template_name.
7860         (reference_to_unused): Fix thinko. Remove redundant predicates from
7861         tests.
7862         (tree_add_const_value_attribute): Make this work for constant
7863         expressions only.
7864         tree_add_const_value_attribute_for_decl is to be used for variable
7865         DECLs now.
7866         (add_location_or_const_value_attribute): Use
7867         tree_add_const_value_attribute_for_decl now.
7868         (dwarf2out_finish): Emit the DW_AT_const_value attribute of
7869         DW_TAG_template_value_param DIEs after function DIEs have been
7870         emitted.
7871         * langhooks.h (lang_hooks_for_types): Add
7872         get_argument_pack_elems.
7873         (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
7874         (lang_hooks): Added get_innermost_generic_parms,
7875         get_innermost_generic_args.
7876         * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
7877         LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
7878         LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
7879         LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
7880
7881 2009-08-31  DJ Delorie  <dj@redhat.com>
7882
7883         * config/mep/mep.c (machine_function): Add frame_locked flag.  Set
7884         it once we start generating the prologue or epilogue.
7885         (mep_call_saves_register): If the frame is locked, re-use
7886         cached values.
7887         (mep_assign_save_slots): New, broken out from mep_expand_prologue.
7888         (mep_expand_prologue): Call it.
7889         (mep_expand_epilogue): Likewise.
7890         (mep_start_function): Use the same logic as mep_expand_prologue.
7891         (mep_pass_by_reference): Make logic more readable.
7892         (mep_return_in_memory): Zero-sized objects are passed in memory.
7893         (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
7894
7895 2009-08-31  Richard Guenther  <rguenther@suse.de>
7896
7897         * builtins.c (fold_builtin_memory_op): Use the alias oracle
7898         to query if the memory regions for memmove overlap.
7899         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
7900         asserts on pointers, instead deal with odd trees.
7901         (ptr_derefs_may_alias_p): Likewise.
7902         (refs_may_alias_p_1): Constructor bases also never alias.
7903
7904 2009-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
7905
7906         * doc/install.texi (Final install): Adjust reference on where to
7907         order printed manuals.
7908
7909 2009-08-30  Olivier Hainque  <hainque@adacore.com>
7910
7911         * dwarf2out.c (switch_to_frame_table_section): Move
7912         definition prior to first use.
7913
7914 2009-08-30  Richard Guenther  <rguenther@suse.de>
7915
7916         PR tree-optimization/41186
7917         * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
7918         (ao_ref_init_from_ptr_and_size): New function.
7919         (ref_maybe_used_by_call_p_1): Be more precise tracking
7920         used ranges for builtin functions.
7921         (ref_maybe_used_by_call_p): Adjust.
7922         (call_may_clobber_ref_p_1): Be more precise tracking clobbered
7923         ranges for builtin functions.
7924         * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
7925
7926 2009-08-30  Alan Modra  <amodra@bigpond.net.au>
7927
7928         PR target/41081
7929         * fwprop.c (get_reg_use_in): Delete.
7930         (free_load_extend): New function.
7931         (forward_propagate_subreg): Use it.
7932
7933 2009-08-29  Kaz Kojima  <kkojima@gcc.gnu.org>
7934
7935         * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
7936
7937 2009-08-29  Kai Tietz<kai.tietz@onevision.com>
7938
7939         PR/41184
7940         * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
7941         padding.
7942
7943 2009-08-29  Douglas B Rupp  <rupp@gnat.com>
7944
7945         * crtstuff.c (__do_global_dtors_aux): Use atexit if no
7946         fini or fini_array section.
7947
7948 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
7949
7950         * graphite-dependences.c (graphite_legal_transform_bb): Call
7951         pbb_remove_duplicate_pdrs.
7952         * graphite-poly.c (can_collapse_pdr): Removed.
7953         (pdr_find_duplicate): Removed.
7954         (can_collapse_pdrs): New.
7955         (pbb_remove_duplicate_pdrs): New.
7956         (new_poly_dr): Do not look for duplicates.
7957         * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
7958         (PBB_PDR_DUPLICATES_REMOVED): New.
7959         (pbb_remove_duplicate_pdrs): Declared.
7960
7961 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
7962
7963         * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
7964         the strides by multiplying by PDR_NB_REFS.
7965         * graphite-poly.c (can_collapse_pdr): New.
7966         (pdr_find_duplicate): New.
7967         (new_poly_dr): Call pdr_find_duplicate.  Collapse duplicate PDRs.
7968         Initialize PDR_NB_REFS.
7969         * graphite-poly.h (struct poly_dr): Add field nb_refs.
7970         (PDR_NB_REFS): New.
7971         (new_poly_dr): Number of subscripts is a graphite_dim_t.
7972
7973 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
7974
7975         PR middle-end/40965
7976         * graphite-poly.c (apply_poly_transforms): Remove legality test before
7977         any transform.
7978
7979 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
7980
7981         * graphite-dependences.c (pddr_original_scattering): Return NULL
7982         for read-read dependence relations.
7983         * graphite-poly.h (enum poly_dr_type): Fix comment.
7984         (pdr_read_p): New.
7985         (pdr_write_p): New.
7986         (pdr_may_write_p): New.
7987
7988 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
7989
7990         * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
7991         (struct poly_dr): Same.
7992         (new_poly_dr): Same.
7993         * graphite-poly.c (new_poly_dr): Same.
7994         * graphite-dependences.c (dot_deps): Disable call to system.
7995
7996 2009-08-28  Cary Coutant  <ccoutant@google.com>
7997
7998         PR debug/41063
7999         * dwarf2out.c (gen_type_die_with_usage): Use proper context for
8000         struct/union/enum types local to a function.
8001
8002 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
8003             Sebastian Pop  <sebastian.pop@amd.com>
8004
8005         * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
8006         pbb_strip_mine_time_depth.  Changed the implementation so that
8007         transformation is expressed as a transformation on
8008         time (scatttering) dimensions.  Also, ensures that the 2d+1
8009         scheduling format is preserved.
8010         (pbb_strip_mine_profitable_p): Profitability is based on the
8011         iteration number of a given time (scattering) dimension,
8012         and not on a original loop depth dimension.
8013         (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
8014         (pbb_do_strip_mine): Call psct_dynamic_dim.
8015         * graphite-poly.c (pbb_number_of_iterations_at_time): New.
8016         * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
8017         (pbb_nb_dynamic_scattering_transform): New.
8018         (psct_dynamic_dim): New.
8019
8020 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
8021
8022         * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
8023         * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
8024         * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
8025         * graphite-interchange.c (build_linearized_memory_access): Same.
8026         (memory_stride_in_loop): Same.
8027
8028 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8029
8030         * graphite-dependences.c (pddr_original_scattering): New.
8031         (graphite_legal_transform_dr): Call pddr_original_scattering.
8032         (dot_deps_1): New.
8033         (dot_deps): New.
8034         * graphite-dependences.h (dot_deps): Declared.
8035         * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
8036         (print_pdr): Print PDR_ID.
8037         * graphite-poly.h (struct poly_dr): Add field id.
8038         (PDR_ID): New.
8039         (pbb_index): New.
8040         * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
8041
8042 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8043
8044         * graphite-dependences.c (graphite_carried_dependence_level_k): Do
8045         not delete the original dependence relation.
8046
8047 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8048
8049         * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
8050         (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
8051         (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
8052         (free_poly_ddr): New.
8053         (pddr_is_empty): New.
8054         (dependence_polyhedron_1): Now returns a poly_ddr_p.
8055         (dependence_polyhedron): Same.  Remove useless gcc_assert.
8056         Remove fprintfs.
8057         (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
8058         (graphite_carried_dependence_level_k): Call pddr_is_empty.
8059         * graphite-dependences.h (enum poly_dependence_kind): New.
8060         (poly_dr_pair): Renamed poly_ddr.  Added a field kind.
8061         (PDRP_SOURCE): Renamed PDDR_SOURCE.
8062         (PDRP_SINK): Renamed PDDR_SINK.
8063         (PDRP_DDP): Renamed PDDR_DDP.
8064         (PDDR_KIND): New.
8065         (free_poly_ddr): Declared.
8066         * graphite-poly.c (new_scop): Use the new hash function names.
8067         * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
8068         into original_pddrs.
8069         (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
8070
8071 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8072
8073         * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
8074         bounds with LT_EXPR to make niter analysis more precise on code
8075         generated by Graphite.
8076
8077 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
8078
8079         * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
8080         (graphite_legal_transform_bb): Same.
8081         (poly_drs_may_alias_p): Same.
8082
8083 2009-08-28  Richard Guenther  <rguenther@suse.de>
8084
8085         * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
8086
8087 2009-08-28  Jan Beulich  <jbeulich@novell.com>
8088
8089         * config/i386/netware.c: Include langhooks.h.
8090         (i386_nlm_encode_section_info): Simplify.
8091         (netware_override_options): Delete.
8092         * config/i386/netware.h (netware_override_options): Delete
8093         declaration.
8094         (OVERRIDE_OPTIONS): Delete definition.
8095         (SUBTARGET_OVERRIDE_OPTIONS): Define.
8096         (ASM_COMMENT_START): Define.
8097         * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
8098
8099 2009-08-28  Jan Beulich  <jbeulich@novell.com>
8100
8101         * configure.ac: For in-tree ld, do a plain version check to
8102         determine whether comdat groups are supported.
8103         * configure: Regenerate.
8104
8105 2009-08-28  Olivier Hainque  <hainque@adacore.com>
8106
8107         * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
8108         always defined.  Reflect definition or absence of such for
8109         COLLECT_EXPORT_LIST.  Readability helper.
8110         (scanfilter): New enum, to help control what symbols
8111         are to be considered or ignored by scan_prog_file.
8112         (enum pass): Rename as "scanpass", moved together with scanfilter
8113         prior to scan_prog_file's prototype.
8114         (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
8115         Group prototype with the scanpass/scanfilter definitions, factorize
8116         head comments for the several implementations at the prototype.
8117         (main): Reorganize the first pass link control to let AIX
8118         drag only the needed frame tables in executables.  Prevent
8119         frame tables collection during the scan aimed at static ctors.
8120         Pre-link and scan for frame tables later to compensate.
8121         * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
8122         A C statement to issue assembly directives that create a reference
8123         to the given DWARF table identifier label from the current function
8124         section.
8125         * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
8126         to differentiate first time section entry.  Only emit a .data
8127         tables start identifier label the first time around.
8128         (switch_to_frame_table_section): New function.  Helper for
8129         output_call_frame_info to switch possibly BACK into the eh_frame
8130         or the debug_frame section depending on FOR_EH.
8131         (output_call_frame_info): Use helper to first enter the proper
8132         frame section.
8133         (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
8134         emit a link to the frame table start label from each function
8135         section.
8136         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
8137         New function.  Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
8138         * config/rs6000/rs6000-protos.h: Declare it.
8139         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
8140
8141 2009-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
8142
8143         * config/sh/sh.c (split_branches): Check the result of
8144         next_active_insn.
8145
8146 2009-08-27  Steve Ellcey  <sje@cup.hp.com>
8147
8148         * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
8149         using -pthread -fopenmp
8150
8151 2009-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
8152
8153         * doc/service.texi (service directory): Update URL.
8154
8155 2009-08-27  Uros Bizjak  <ubizjak@gmail.com>
8156
8157         PR rtl-optimization/40861
8158         * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
8159         extract word from a multi-word subreg for negative byte positions.
8160
8161 2009-08-27  Tristan Gingold  <gingold@adacore.com>
8162             Douglas B Rupp  <rupp@gnat.com>
8163
8164         * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
8165         (SECTION_VMS_OVERLAY): Define.
8166         (ia64_vms_common_object_attribute): Added.  Handle the "common_object"
8167         attribute.
8168         (ia64_vms_elf_asm_named_section): Added.  Generate .section pseudo-op
8169         for common_object.
8170         (ia64_vms_output_aligned_decl_common): Added.  Generate pseudo-op for
8171         common_object declarations.
8172         (ia64_section_type_flags): Set section flag for common_object.
8173         * config/ia64/ia64-protos.h
8174         (ia64_vms_output_aligned_decl_common): Declare.
8175         (ia64_vms_elf_asm_named_section): Declare.
8176
8177 2009-08-27  Michael Matz  <matz@suse.de>
8178
8179         * expr.c (expand_expr_real_2): New function taking exploded
8180         unary or binary expression, split out from ...
8181         (expand_expr_real_1): ... here.  Move over all unary/binary
8182         switch parts to above function, in particular these codes:
8183         PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
8184         MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
8185         ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
8186         FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
8187         FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
8188         BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
8189         BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
8190         LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
8191         NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
8192         UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
8193         WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
8194         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
8195         VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
8196         VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
8197         VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
8198         VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
8199         VEC_PACK_FIX_TRUNC_EXPR.
8200         (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
8201         full expression.
8202
8203 2009-08-27  Richard Guenther  <rguenther@suse.de>
8204
8205         * gengtype.c (main): Handle uint64_t.
8206         * ipa-utils.c (get_base_var): Indent properly.
8207         * tree-ssa-live.c (debug_scope_block): New function.
8208         * tree-flow.h (debug_scope_block): Declare.
8209         * tree-ssa-copy.c (replace_exp_1): Add vertical space.
8210         * basic-block.h (enum profile_status): Rename to
8211         enum profile_status_d.
8212         (x_profile_status): Adjust type.
8213
8214 2009-08-27  Dodji Seketeli  <dodji@redhat.com>
8215
8216         PR debug/41170
8217         * dwarf2out.c (get_context_die): Declare this static function.
8218         (gen_type_die_with_usage): Make sure a DIE is a generated for
8219         the context of a typedef.
8220
8221 2009-08-26  Anatoly Sokolov  <aesok@post.ru>
8222
8223         * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
8224         switch.
8225
8226 2009-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
8227
8228         * config/mips/mips-protos.h (mips_output_sync): Declare.
8229         (mips_sync_loop_insns): Likewise.
8230         (mips_output_sync_loop): Replace first two parameters with an rtx.
8231         * config/mips/mips.c (mips_multi_member): New structure.
8232         (mips_multi_members): New variable.
8233         (mips_multi_start): New function.
8234         (mips_multi_add): Likewise.
8235         (mips_multi_add_insn): Likewise.
8236         (mips_multi_add_label): Likewise.
8237         (mips_multi_last_index): Likewise.
8238         (mips_multi_copy_insn): Likewise.
8239         (mips_multi_set_operand): Likewise.
8240         (mips_multi_write): Likewise.
8241         (mips_print_operand_punctuation): Remove '%|' and '%-'.
8242         (mips_init_print_operand_punct): Update accordingly.
8243         (mips_start_ll_sc_sync_block): New function.
8244         (mips_end_ll_sc_sync_block): Likewise.
8245         (mips_output_sync): Likewise.
8246         (mips_sync_insn1_template): Likewise.
8247         (mips_sync_insn2_template): Likewise.
8248         (mips_get_sync_operand): Likewise.
8249         (mips_process_sync_loop): Likewise.
8250         (mips_output_sync_loop): Use mips_process_sync_loop.
8251         (mips_sync_loop_insns): New function.
8252         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
8253         (MIPS_COMPARE_AND_SWAP_12): Likewise.
8254         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
8255         (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
8256         (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
8257         (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
8258         (MIPS_SYNC_OLD_OP_12): Likewise.
8259         (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
8260         (MIPS_SYNC_NEW_OP_12): Likewise.
8261         (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
8262         (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
8263         (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
8264         (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
8265         (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
8266         (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
8267         * config/mips/mips.md (sync_mem): New attribute.
8268         (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
8269         (sync_exclusive_mask, sync_required_oldval): Likewise.
8270         (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
8271         (sync_release_barrier): Likewise.
8272         (length): Handle sync loops.
8273         (sync): Use mips_output_sync.
8274         * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
8275         (sync_compare_and_swap<mode>): Set the new sync_* attributes
8276         and use mips_output_sync_loop.
8277         (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
8278         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
8279         (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
8280         (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
8281         (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
8282         (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
8283         (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
8284         (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
8285         (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
8286
8287 2009-08-26  Richard Guenther  <rguenther@suse.de>
8288
8289         PR middle-end/41163
8290         * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
8291         the types to not match.
8292         * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
8293         verification.
8294         * tree-ssa.c (useless_type_conversion_p): Conversions to
8295         pointers to unprototyped functions are useless.
8296
8297 2009-08-26  Richard Guenther  <rguenther@suse.de>
8298
8299         * tree-ssa-structalias.c (create_variable_info_for): Remove strange
8300         whole-program condition, prepare to be called for non-globals.
8301         (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
8302         params build a representative with known type and track its fields.
8303
8304 2009-08-26  Uros Bizjak  <ubizjak@gmail.com>
8305
8306         * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
8307         clearing by a taken branch.
8308         (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
8309         effectively after bbro pass.
8310         (sync_nand<mode>): Ditto.
8311         (sync_old_<fetchop_name><mode>): Ditto.
8312         (sync_old_nand<mode>): Ditto.
8313         (sync_new_<fetchop_name><mode>): Dito.
8314         (sync_new_nand<mode>): Ditto.
8315         (sync_compare_and_swap<mode>_1): Ditto.
8316         (*sync_compare_and_swap<mode>): Ditto.
8317         (sync_lock_test_and_set<mode>_1): Ditto.
8318         ("sync_lock_test_and_set<mode>): Ditto.
8319
8320 2009-08-25  Douglas B Rupp  <rupp@gnat.com>
8321
8322         * hwint.h (HOST_LONG_FORMAT): New macro
8323         * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
8324         Use HOST_PTR_PRINTF.
8325         * system.h (HOST_PTR_PRINTF): Resurrect old macro
8326         * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
8327         (HOST_PTR_PRINTF): Document.
8328
8329 2009-08-25 Jan Hubicka  <jh@suse.cz>
8330
8331         * config/i386/bmmintrin.h: Replace by #error.
8332
8333         Revert:
8334         Michael Meissner  <michael.meissner@amd.com>
8335         Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
8336         Tony Linthicum  <tony.linthicum@amd.com>
8337
8338         * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
8339         (TARGET_ROUND): New macro for the round/ptest instructions which
8340         are shared between SSE4.1 and SSE5.
8341         (OPTION_MASK_ISA_ROUND): Ditto.
8342         (OPTION_ISA_ROUND): Ditto.
8343         (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
8344         (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
8345
8346         * config/i386/i386.opt (-msse5): New switch for SSE5 support.
8347         (-mfused-madd): New switch to give users control over whether the
8348         compiler optimizes to use the multiply/add SSE5 instructions.
8349
8350         * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
8351         (ix86_handle_option): Turn off 3dnow if -msse5.
8352         (override_options): Add SSE5 support.
8353         (print_operand): %Y prints comparison codes for SSE5 com/pcom
8354         instructions.
8355         (ix86_expand_sse_movcc): Add SSE5 support.
8356         (ix86_expand_sse5_unpack): New function to use pperm to unpack a
8357         vector type to the next largest size.
8358         (ix86_expand_sse5_pack): New function to use pperm to pack a
8359         vector type to the next smallest size.
8360         (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
8361         (IX86_BUILTIN_FMADDSD): Ditto.
8362         (IX86_BUILTIN_FMADDPS): Ditto.
8363         (IX86_BUILTIN_FMADDPD): Ditto.
8364         (IX86_BUILTIN_FMSUBSS): Ditto.
8365         (IX86_BUILTIN_FMSUBSD): Ditto.
8366         (IX86_BUILTIN_FMSUBPS): Ditto.
8367         (IX86_BUILTIN_FMSUBPD): Ditto.
8368         (IX86_BUILTIN_FNMADDSS): Ditto.
8369         (IX86_BUILTIN_FNMADDSD): Ditto.
8370         (IX86_BUILTIN_FNMADDPS): Ditto.
8371         (IX86_BUILTIN_FNMADDPD): Ditto.
8372         (IX86_BUILTIN_FNMSUBSS): Ditto.
8373         (IX86_BUILTIN_FNMSUBSD): Ditto.
8374         (IX86_BUILTIN_FNMSUBPS): Ditto.
8375         (IX86_BUILTIN_FNMSUBPD): Ditto.
8376         (IX86_BUILTIN_PCMOV_V2DI): Ditto.
8377         (IX86_BUILTIN_PCMOV_V4SI): Ditto.
8378         (IX86_BUILTIN_PCMOV_V8HI): Ditto.
8379         (IX86_BUILTIN_PCMOV_V16QI): Ditto.
8380         (IX86_BUILTIN_PCMOV_V4SF): Ditto.
8381         (IX86_BUILTIN_PCMOV_V2DF): Ditto.
8382         (IX86_BUILTIN_PPERM): Ditto.
8383         (IX86_BUILTIN_PERMPS): Ditto.
8384         (IX86_BUILTIN_PERMPD): Ditto.
8385         (IX86_BUILTIN_PMACSSWW): Ditto.
8386         (IX86_BUILTIN_PMACSWW): Ditto.
8387         (IX86_BUILTIN_PMACSSWD): Ditto.
8388         (IX86_BUILTIN_PMACSWD): Ditto.
8389         (IX86_BUILTIN_PMACSSDD): Ditto.
8390         (IX86_BUILTIN_PMACSDD): Ditto.
8391         (IX86_BUILTIN_PMACSSDQL): Ditto.
8392         (IX86_BUILTIN_PMACSSDQH): Ditto.
8393         (IX86_BUILTIN_PMACSDQL): Ditto.
8394         (IX86_BUILTIN_PMACSDQH): Ditto.
8395         (IX86_BUILTIN_PMADCSSWD): Ditto.
8396         (IX86_BUILTIN_PMADCSWD): Ditto.
8397         (IX86_BUILTIN_PHADDBW): Ditto.
8398         (IX86_BUILTIN_PHADDBD): Ditto.
8399         (IX86_BUILTIN_PHADDBQ): Ditto.
8400         (IX86_BUILTIN_PHADDWD): Ditto.
8401         (IX86_BUILTIN_PHADDWQ): Ditto.
8402         (IX86_BUILTIN_PHADDDQ): Ditto.
8403         (IX86_BUILTIN_PHADDUBW): Ditto.
8404         (IX86_BUILTIN_PHADDUBD): Ditto.
8405         (IX86_BUILTIN_PHADDUBQ): Ditto.
8406         (IX86_BUILTIN_PHADDUWD): Ditto.
8407         (IX86_BUILTIN_PHADDUWQ): Ditto.
8408         (IX86_BUILTIN_PHADDUDQ): Ditto.
8409         (IX86_BUILTIN_PHSUBBW): Ditto.
8410         (IX86_BUILTIN_PHSUBWD): Ditto.
8411         (IX86_BUILTIN_PHSUBDQ): Ditto.
8412         (IX86_BUILTIN_PROTB): Ditto.
8413         (IX86_BUILTIN_PROTW): Ditto.
8414         (IX86_BUILTIN_PROTD): Ditto.
8415         (IX86_BUILTIN_PROTQ): Ditto.
8416         (IX86_BUILTIN_PROTB_IMM): Ditto.
8417         (IX86_BUILTIN_PROTW_IMM): Ditto.
8418         (IX86_BUILTIN_PROTD_IMM): Ditto.
8419         (IX86_BUILTIN_PROTQ_IMM): Ditto.
8420         (IX86_BUILTIN_PSHLB): Ditto.
8421         (IX86_BUILTIN_PSHLW): Ditto.
8422         (IX86_BUILTIN_PSHLD): Ditto.
8423         (IX86_BUILTIN_PSHLQ): Ditto.
8424         (IX86_BUILTIN_PSHAB): Ditto.
8425         (IX86_BUILTIN_PSHAW): Ditto.
8426         (IX86_BUILTIN_PSHAD): Ditto.
8427         (IX86_BUILTIN_PSHAQ): Ditto.
8428         (IX86_BUILTIN_FRCZSS): Ditto.
8429         (IX86_BUILTIN_FRCZSD): Ditto.
8430         (IX86_BUILTIN_FRCZPS): Ditto.
8431         (IX86_BUILTIN_FRCZPD): Ditto.
8432         (IX86_BUILTIN_CVTPH2PS): Ditto.
8433         (IX86_BUILTIN_CVTPS2PH): Ditto.
8434         (IX86_BUILTIN_COMEQSS): Ditto.
8435         (IX86_BUILTIN_COMNESS): Ditto.
8436         (IX86_BUILTIN_COMLTSS): Ditto.
8437         (IX86_BUILTIN_COMLESS): Ditto.
8438         (IX86_BUILTIN_COMGTSS): Ditto.
8439         (IX86_BUILTIN_COMGESS): Ditto.
8440         (IX86_BUILTIN_COMUEQSS): Ditto.
8441         (IX86_BUILTIN_COMUNESS): Ditto.
8442         (IX86_BUILTIN_COMULTSS): Ditto.
8443         (IX86_BUILTIN_COMULESS): Ditto.
8444         (IX86_BUILTIN_COMUGTSS): Ditto.
8445         (IX86_BUILTIN_COMUGESS): Ditto.
8446         (IX86_BUILTIN_COMORDSS): Ditto.
8447         (IX86_BUILTIN_COMUNORDSS): Ditto.
8448         (IX86_BUILTIN_COMFALSESS): Ditto.
8449         (IX86_BUILTIN_COMTRUESS): Ditto.
8450         (IX86_BUILTIN_COMEQSD): Ditto.
8451         (IX86_BUILTIN_COMNESD): Ditto.
8452         (IX86_BUILTIN_COMLTSD): Ditto.
8453         (IX86_BUILTIN_COMLESD): Ditto.
8454         (IX86_BUILTIN_COMGTSD): Ditto.
8455         (IX86_BUILTIN_COMGESD): Ditto.
8456         (IX86_BUILTIN_COMUEQSD): Ditto.
8457         (IX86_BUILTIN_COMUNESD): Ditto.
8458         (IX86_BUILTIN_COMULTSD): Ditto.
8459         (IX86_BUILTIN_COMULESD): Ditto.
8460         (IX86_BUILTIN_COMUGTSD): Ditto.
8461         (IX86_BUILTIN_COMUGESD): Ditto.
8462         (IX86_BUILTIN_COMORDSD): Ditto.
8463         (IX86_BUILTIN_COMUNORDSD): Ditto.
8464         (IX86_BUILTIN_COMFALSESD): Ditto.
8465         (IX86_BUILTIN_COMTRUESD): Ditto.
8466         (IX86_BUILTIN_COMEQPS): Ditto.
8467         (IX86_BUILTIN_COMNEPS): Ditto.
8468         (IX86_BUILTIN_COMLTPS): Ditto.
8469         (IX86_BUILTIN_COMLEPS): Ditto.
8470         (IX86_BUILTIN_COMGTPS): Ditto.
8471         (IX86_BUILTIN_COMGEPS): Ditto.
8472         (IX86_BUILTIN_COMUEQPS): Ditto.
8473         (IX86_BUILTIN_COMUNEPS): Ditto.
8474         (IX86_BUILTIN_COMULTPS): Ditto.
8475         (IX86_BUILTIN_COMULEPS): Ditto.
8476         (IX86_BUILTIN_COMUGTPS): Ditto.
8477         (IX86_BUILTIN_COMUGEPS): Ditto.
8478         (IX86_BUILTIN_COMORDPS): Ditto.
8479         (IX86_BUILTIN_COMUNORDPS): Ditto.
8480         (IX86_BUILTIN_COMFALSEPS): Ditto.
8481         (IX86_BUILTIN_COMTRUEPS): Ditto.
8482         (IX86_BUILTIN_COMEQPD): Ditto.
8483         (IX86_BUILTIN_COMNEPD): Ditto.
8484         (IX86_BUILTIN_COMLTPD): Ditto.
8485         (IX86_BUILTIN_COMLEPD): Ditto.
8486         (IX86_BUILTIN_COMGTPD): Ditto.
8487         (IX86_BUILTIN_COMGEPD): Ditto.
8488         (IX86_BUILTIN_COMUEQPD): Ditto.
8489         (IX86_BUILTIN_COMUNEPD): Ditto.
8490         (IX86_BUILTIN_COMULTPD): Ditto.
8491         (IX86_BUILTIN_COMULEPD): Ditto.
8492         (IX86_BUILTIN_COMUGTPD): Ditto.
8493         (IX86_BUILTIN_COMUGEPD): Ditto.
8494         (IX86_BUILTIN_COMORDPD): Ditto.
8495         (IX86_BUILTIN_COMUNORDPD): Ditto.
8496         (IX86_BUILTIN_COMFALSEPD): Ditto.
8497         (IX86_BUILTIN_COMTRUEPD): Ditto.
8498         (IX86_BUILTIN_PCOMEQUB): Ditto.
8499         (IX86_BUILTIN_PCOMNEUB): Ditto.
8500         (IX86_BUILTIN_PCOMLTUB): Ditto.
8501         (IX86_BUILTIN_PCOMLEUB): Ditto.
8502         (IX86_BUILTIN_PCOMGTUB): Ditto.
8503         (IX86_BUILTIN_PCOMGEUB): Ditto.
8504         (IX86_BUILTIN_PCOMFALSEUB): Ditto.
8505         (IX86_BUILTIN_PCOMTRUEUB): Ditto.
8506         (IX86_BUILTIN_PCOMEQUW): Ditto.
8507         (IX86_BUILTIN_PCOMNEUW): Ditto.
8508         (IX86_BUILTIN_PCOMLTUW): Ditto.
8509         (IX86_BUILTIN_PCOMLEUW): Ditto.
8510         (IX86_BUILTIN_PCOMGTUW): Ditto.
8511         (IX86_BUILTIN_PCOMGEUW): Ditto.
8512         (IX86_BUILTIN_PCOMFALSEUW): Ditto.
8513         (IX86_BUILTIN_PCOMTRUEUW): Ditto.
8514         (IX86_BUILTIN_PCOMEQUD): Ditto.
8515         (IX86_BUILTIN_PCOMNEUD): Ditto.
8516         (IX86_BUILTIN_PCOMLTUD): Ditto.
8517         (IX86_BUILTIN_PCOMLEUD): Ditto.
8518         (IX86_BUILTIN_PCOMGTUD): Ditto.
8519         (IX86_BUILTIN_PCOMGEUD): Ditto.
8520         (IX86_BUILTIN_PCOMFALSEUD): Ditto.
8521         (IX86_BUILTIN_PCOMTRUEUD): Ditto.
8522         (IX86_BUILTIN_PCOMEQUQ): Ditto.
8523         (IX86_BUILTIN_PCOMNEUQ): Ditto.
8524         (IX86_BUILTIN_PCOMLTUQ): Ditto.
8525         (IX86_BUILTIN_PCOMLEUQ): Ditto.
8526         (IX86_BUILTIN_PCOMGTUQ): Ditto.
8527         (IX86_BUILTIN_PCOMGEUQ): Ditto.
8528         (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
8529         (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
8530         (IX86_BUILTIN_PCOMEQB): Ditto.
8531         (IX86_BUILTIN_PCOMNEB): Ditto.
8532         (IX86_BUILTIN_PCOMLTB): Ditto.
8533         (IX86_BUILTIN_PCOMLEB): Ditto.
8534         (IX86_BUILTIN_PCOMGTB): Ditto.
8535         (IX86_BUILTIN_PCOMGEB): Ditto.
8536         (IX86_BUILTIN_PCOMFALSEB): Ditto.
8537         (IX86_BUILTIN_PCOMTRUEB): Ditto.
8538         (IX86_BUILTIN_PCOMEQW): Ditto.
8539         (IX86_BUILTIN_PCOMNEW): Ditto.
8540         (IX86_BUILTIN_PCOMLTW): Ditto.
8541         (IX86_BUILTIN_PCOMLEW): Ditto.
8542         (IX86_BUILTIN_PCOMGTW): Ditto.
8543         (IX86_BUILTIN_PCOMGEW): Ditto.
8544         (IX86_BUILTIN_PCOMFALSEW): Ditto.
8545         (IX86_BUILTIN_PCOMTRUEW): Ditto.
8546         (IX86_BUILTIN_PCOMEQD): Ditto.
8547         (IX86_BUILTIN_PCOMNED): Ditto.
8548         (IX86_BUILTIN_PCOMLTD): Ditto.
8549         (IX86_BUILTIN_PCOMLED): Ditto.
8550         (IX86_BUILTIN_PCOMGTD): Ditto.
8551         (IX86_BUILTIN_PCOMGED): Ditto.
8552         (IX86_BUILTIN_PCOMFALSED): Ditto.
8553         (IX86_BUILTIN_PCOMTRUED): Ditto.
8554         (IX86_BUILTIN_PCOMEQQ): Ditto.
8555         (IX86_BUILTIN_PCOMNEQ): Ditto.
8556         (IX86_BUILTIN_PCOMLTQ): Ditto.
8557         (IX86_BUILTIN_PCOMLEQ): Ditto.
8558         (IX86_BUILTIN_PCOMGTQ): Ditto.
8559         (IX86_BUILTIN_PCOMGEQ): Ditto.
8560         (IX86_BUILTIN_PCOMFALSEQ): Ditto.
8561         (IX86_BUILTIN_PCOMTRUEQ): Ditto.
8562         (enum multi_arg_type): New enum for describing the various SSE5
8563         intrinsic argument types.
8564         (bdesc_multi_arg): New table for SSE5 intrinsics.
8565         (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
8566         (ix86_expand_multi_arg_builtin): New function for creating SSE5
8567         intrinsics.
8568         (ix86_expand_builtin): Add SSE5 intrinsic support.
8569         (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
8570         operand instructions.
8571         (ix86_expand_sse5_multiple_memory): New function to split the
8572         second memory reference from SSE5 instructions.
8573         (type_has_variadic_args_p): Delete in favor of stdarg_p.
8574         (ix86_return_pops_args): Use stdarg_p to determine if the function
8575         has variable arguments.
8576         (ix86_setup_incoming_varargs): Ditto.
8577         (x86_this_parameter): Ditto.
8578
8579         * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
8580         declaration.
8581         (ix86_expand_sse5_pack): Ditto.
8582         (ix86_sse5_valid_op_p): Ditto.
8583         (ix86_expand_sse5_multiple_memory): Ditto.
8584
8585         * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
8586         constant for SSE5 support.
8587         (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
8588         (UNSPEC_SSE5_TRUEFALSE): Ditto.
8589         (UNSPEC_SSE5_PERMUTE): Ditto.
8590         (UNSPEC_SSE5_ASHIFT): Ditto.
8591         (UNSPEC_SSE5_LSHIFT): Ditto.
8592         (UNSPEC_FRCZ): Ditto.
8593         (UNSPEC_CVTPH2PS): Ditto.
8594         (UNSPEC_CVTPS2PH): Ditto.
8595         (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
8596         (PCOM_TRUE): Ditto.
8597         (COM_FALSE_S): Ditto.
8598         (COM_FALSE_P): Ditto.
8599         (COM_TRUE_S): Ditto.
8600         (COM_TRUE_P): Ditto.
8601         (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
8602         (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
8603         types.
8604         (memory attribute): Ditto.
8605         (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
8606         Use SSE4_1_ROUND_* constants instead of hard coded numbers.
8607         (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
8608         (floor<mode>2): Ditto.
8609         (ceil<mode>2): Ditto.
8610         (btrunc<mode>2): Ditto.
8611         (nearbyintdf2): Ditto.
8612         (nearbyintsf2): Ditto.
8613         (sse_setccsf): Disable if SSE5.
8614         (sse_setccdf): Ditto.
8615         (sse5_setcc<mode>): New support for SSE5 conditional move.
8616         (sse5_pcmov_<mode>): Ditto.
8617
8618         * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
8619         (SSEMODEF4): Ditto.
8620         (SSEMODEF2P): Ditto.
8621         (ssemodesuffixf4): New mode attribute for SSE5.
8622         (ssemodesuffixf2s): Ditto.
8623         (ssemodesuffixf2c): Ditto.
8624         (sserotatemax): Ditto.
8625         (ssescalarmode): Ditto.
8626         (sse_maskcmpv4sf3): Disable if SSE5.
8627         (sse_maskcmpv2df3): Ditto.
8628         (sse_vmmaskcmpv4sf3): Ditto.
8629         (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
8630         (sse5_vmfmadd<mode>4): Ditto.
8631         (sse5_fmsub<mode>4): Ditto.
8632         (sse5_vmfmsub<mode>4): Ditto.
8633         (sse5_fnmadd<mode>4): Ditto.
8634         (sse5_vmfnmadd<mode>4): Ditto.
8635         (sse5_fnmsub<mode>4): Ditto.
8636         (sse5_vmfnmsub<mode>4): Ditto.
8637         (sse5i_fmadd<mode>4): Ditto.
8638         (sse5i_fmsub<mode>4): Ditto.
8639         (sse5i_fnmadd<mode>4): Ditto.
8640         (sse5i_fnmsub<mode>4): Ditto.
8641         (sse5i_vmfmadd<mode>4): Ditto.
8642         (sse5i_vmfmsub<mode>4): Ditto.
8643         (sse5i_vmfnmadd<mode>4): Ditto.
8644         (sse5i_vmfnmsub<mode>4): Ditto.
8645         (mulv16qi3): Add SSE5 support.
8646         (mulv4si3): Ditto.
8647         (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
8648         (sse2_mulv4si3): Disable if SSE5.
8649         (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
8650         (sse4_1_roundps): Ditto.
8651         (sse4_1_roundsd): Ditto.
8652         (sse4_1_roundss): Ditto.
8653         (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
8654         be generated.
8655         (sse_maskcmpsf3): Ditto.
8656         (sse_vmmaskcmpv4sf3): Ditto.
8657         (sse2_maskcmpv2df3): Ditto.
8658         (sse2_maskcmpdf3): Ditto.
8659         (sse2_vmmaskcmpv2df3): Ditto.
8660         (sse2_eq<mode>3): Ditto.
8661         (sse2_gt<mode>3): Ditto.
8662         (sse5_pcmov_<mode>): Add SSE5 support.
8663         (vec_unpacku_hi_v16qi): Ditto.
8664         (vec_unpacks_hi_v16qi): Ditto.
8665         (vec_unpacku_lo_v16qi): Ditto.
8666         (vec_unpacks_lo_v16qi): Ditto.
8667         (vec_unpacku_hi_v8hi): Ditto.
8668         (vec_unpacks_hi_v8hi): Ditto.
8669         (vec_unpacku_lo_v8hi): Ditto.
8670         (vec_unpacks_lo_v8hi): Ditto.
8671         (vec_unpacku_hi_v4si): Ditto.
8672         (vec_unpacks_hi_v4si): Ditto.
8673         (vec_unpacku_lo_v4si): Ditto.
8674         (vec_unpacks_lo_v4si): Ditto.
8675         (sse5_pmacsww): New SSE5 intrinsic insn.
8676         (sse5_pmacssww): Ditto.
8677         (sse5_pmacsdd): Ditto.
8678         (sse5_pmacssdd): Ditto.
8679         (sse5_pmacssdql): Ditto.
8680         (sse5_pmacssdqh): Ditto.
8681         (sse5_pmacsdqh): Ditto.
8682         (sse5_pmacsswd): Ditto.
8683         (sse5_pmacswd): Ditto.
8684         (sse5_pmadcsswd): Ditto.
8685         (sse5_pmadcswd): Ditto.
8686         (sse5_pcmov_<move>): Conditional move support on SSE5.
8687         (sse5_phaddbw): New SSE5 intrinsic insn.
8688         (sse5_phaddbd): Ditto.
8689         (sse5_phaddbq): Ditto.
8690         (sse5_phaddwd): Ditto.
8691         (sse5_phaddwq): Ditto.
8692         (sse5_phadddq): Ditto.
8693         (sse5_phaddubw): Ditto.
8694         (sse5_phaddubd): Ditto.
8695         (sse5_phaddubq): Ditto.
8696         (sse5_phadduwd): Ditto.
8697         (sse5_phadduwq): Ditto.
8698         (sse5_phaddudq): Ditto.
8699         (sse5_phsubbw): Ditto.
8700         (sse5_phsubwd): Ditto.
8701         (sse5_phsubdq): Ditto.
8702         (sse5_pperm): Ditto.
8703         (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
8704         (sse5_pperm_zero_v16qi_v8hi): Ditto.
8705         (sse5_pperm_sign_v8hi_v4si): Ditto.
8706         (sse5_pperm_zero_v8hi_v4si): Ditto.
8707         (sse5_pperm_sign_v4si_v2di): Ditto.
8708         (sse5_pperm_sign_v4si_v2di): Ditto.
8709         (sse5_pperm_pack_v2di_v4si): Ditto.
8710         (sse5_pperm_pack_v4si_v8hi): Ditto.
8711         (sse5_pperm_pack_v8hi_v16qi): Ditto.
8712         (sse5_perm<mode>): New SSE5 intrinsic insn.
8713         (rotl<mode>3): Ditto.
8714         (sse5_rotl<mode>3): Ditto.
8715         (sse5_ashl<mode>3): Ditto.
8716         (sse5_lshl<mode>3): Ditto.
8717         (sse5_frcz<mode>2): Ditto.
8718         (sse5s_frcz<mode>2): Ditto.
8719         (sse5_cvtph2ps): Ditto.
8720         (sse5_cvtps2ph): Ditto.
8721         (sse5_vmmaskcmp<mode>3): Ditto.
8722         (sse5_com_tf<mode>3): Ditto.
8723         (sse5_maskcmp<mode>3): Ditto.
8724         (sse5_maskcmp_uns<mode>3): Ditto.
8725         (sse5_maskcmp_uns2<mode>3): Ditto.
8726         (sse5_pcom_tf<mode>3): Ditto.
8727
8728         * config/i386/predicates.md (sse5_comparison_float_operator):
8729         New predicate to match the comparison operators supported by
8730         the SSE5 com instruction.
8731         (ix86_comparison_int_operator): New predicate to match just the
8732         signed int comparisons.
8733         (ix86_comparison_uns_operator): New predicate to match just the
8734         unsigned int comparisons.
8735
8736         * doc/invoke.texi (-msse5): Add documentation.
8737         (-mfused-madd): Ditto.
8738
8739         * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
8740
8741         * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
8742         mmintrin-common.h.
8743         (x86_64-*-*): Ditto.
8744
8745         * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
8746
8747         * config/i386/bmmintrin.h: New file, provide common x86 compiler
8748         intrinisics for SSE5.
8749
8750         * config/i386/smmintrin.h: Move instructions shared with SSE5 to
8751         mmintrin-common.h.
8752
8753         * config/i386/mmintrin-common.h: New file, to contain common
8754         instructions between SSE4.1 and SSE5.
8755
8756         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
8757         FOREACH_FUNCTION_ARGS to iterate over the argument list.
8758         (gen_regparm_prefix): Ditto.
8759
8760         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
8761         FOREACH_FUNCTION_ARGS to iterate over the argument list.  Use
8762         prototype_p to determine if a function is prototyped.
8763
8764 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
8765
8766         * c-common.c (c_common_reswords) add the alignof keyword,
8767         with same RID as __alignof and __alignof__
8768
8769 2009-08-25  Anatoly Sokolov  <aesok@post.ru>
8770
8771         * hooks.h (hook_bool_const_int_const_int_true): Declare.
8772         * hooks.c (hook_bool_const_int_const_int_true): New function.
8773         * target.h (struct gcc_target): Add can_eliminate field.
8774         * target-def.h (TARGET_CAN_ELIMINATE): Define.
8775         (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
8776         * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
8777         * reload1.c (update_eliminables, init_elim_table): (Ditto.).
8778         (elim_table): Revise comment.
8779         * system.h (CAN_ELIMINATE): Poison.
8780         * defaults.h (CAN_ELIMINATE): Remove.
8781         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
8782
8783         * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
8784         * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
8785         Define macro.
8786         (alpha_vms_can_eliminate): Declare as static, change return type to
8787         bool.
8788         * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
8789
8790         * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
8791         * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
8792         (arm_can_eliminate): New function.
8793
8794         * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
8795         * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
8796         (avr_can_eliminate): Declare as static.
8797         * config/avr/avr-protos.h (avr_can_eliminate): Remove.
8798
8799         * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
8800         * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
8801         (bfin_can_eliminate): New function.
8802
8803         * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
8804         * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
8805         (crx_can_eliminate): New function.
8806
8807         * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
8808         * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
8809         (fr30_can_eliminate): New function.
8810
8811         * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
8812         * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
8813         (frv_can_eliminate): New function.
8814
8815         * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
8816         * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
8817         (h8300_can_eliminate): New function.
8818
8819         * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
8820         * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
8821         (i386_can_eliminate): Declare as static, change return type to bool.
8822         * config/i386/i386-protos.h (i386_can_eliminate): Remove.
8823
8824         * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
8825         * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
8826         (ia64_can_eliminate): New function.
8827
8828         * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
8829         * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
8830         (iq2000_can_eliminate): New function.
8831
8832         * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
8833         * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
8834         (m32r_can_eliminate): New function.
8835
8836         * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
8837         * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
8838         (m68hc11_can_eliminate): New function.
8839
8840         * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
8841         * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
8842         (m68k_can_eliminate): New function.
8843
8844         * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
8845         * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
8846         (mep_can_eliminate): New function.
8847
8848         * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
8849         * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
8850         (mips_can_eliminate): New function.
8851
8852         * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
8853         * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
8854         (rs6000_can_eliminate): New function.
8855
8856         * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
8857         * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
8858         (s390_can_eliminate): Declare as static.
8859         * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
8860
8861         * config/score/score.h (CAN_ELIMINATE): Remove macro.
8862         * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
8863         (score_can_eliminate): New function.
8864
8865         * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
8866         * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
8867         (sparc_can_eliminate): Declare as static.
8868         * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
8869
8870         * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
8871         * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
8872         (xstormy16_can_eliminate): New function.
8873
8874         * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
8875         * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
8876         (v850_can_eliminate): New function.
8877
8878 2009-08-25  Uros Bizjak  <ubizjak@gmail.com>
8879
8880         * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
8881         (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
8882         (*movdfcc_ext[1234]): Disable for IEEE mode.
8883
8884 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
8885
8886         * gimplify.c (prepare_gimple_addressable): New static function.
8887         (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
8888         it addressable.
8889         (gimplify_addr_expr): Invoke it similarly on the operand instead of
8890         manually fiddling with it.
8891
8892 2009-08-25  Michael Matz  <matz@suse.de>
8893
8894         * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
8895         * dojump.c (do_jump_by_parts_greater): Take two operands instead of
8896         full expression.
8897         (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
8898         (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
8899         (do_jump): Split out code for simple binary comparisons into ...
8900         (do_jump_1): ... this, taking the individual operands and code.
8901         Change callers to helper function above accordingly.
8902         * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
8903         comparisons.
8904
8905 2009-08-25  Michael Matz  <matz@suse.de>
8906
8907         * expr.h (struct separate_ops, sepops): New type for passing
8908         around an exploded simple expression.
8909         * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
8910         Use this structure instead of expression tree.
8911         (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
8912         expression, only its type.
8913         (expand_vec_cond_expr): Take type and individual operands instead
8914         of full expression.
8915         * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
8916         expand_vec_shift_expr): Change prototype accordingly.
8917         * tree-vect-stmts.c (vectorizable_condition): Change call of
8918         expand_vec_cond_expr_p to pass only type.
8919         * expr.c (do_store_flags): Change prototype and implementation
8920         to take an exploded expression.
8921         (expand_expr_real_1): New local ops initialized with details
8922         of the full expression.  Use it instead of full
8923         expression in calls to do_store_flags, expand_vec_cond_expr,
8924         expand_widen_pattern_expr and expand_vec_shift_expr.
8925
8926 2009-08-25  Michael Matz  <matz@suse.de>
8927
8928         * expr.c (expand_expr_real_1): New local treeop0, treeop1,
8929         treeop2 initialized with first three operands of the full expression.
8930         Substitute all TREE_OPERAND (exp, [012]) calls with them.
8931
8932 2009-08-25  Kai Tietz  <kai.tietz@onevision.com>
8933
8934         * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
8935         (__gthread_objc_condition_allocate): Mark arguments as unused.
8936         (__gthread_objc_condition_deallocate): Likewise.
8937         (__gthread_objc_condition_wait): Likewise.
8938         (__gthread_objc_condition_broadcast): Likewise.
8939         (__gthread_objc_condition_signal): Likewise.
8940         (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
8941         (__gthread_objc_thread_id): Likewise.
8942
8943 2009-08-25  Janus Weil  <janus@gcc.gnu.org>
8944
8945         PR middle-end/41149
8946         * tree-pretty-print.c (print_call_name): Print the correct call name
8947         for procedure pointer components.
8948
8949 2009-08-24  Steve Ellcey  <sje@cup.hp.com>
8950
8951         * config/ia64/ia64.c (ia64_promote_function_mode): Call
8952         default_promote_function_mode when not VMS.
8953
8954 2009-08-24  Olivier Hainque  <hainque@adacore.com>
8955
8956         * convert.c (convert_to_integer): Don't assume an input pointer is
8957         POINTER_SIZE wide.  Fetch from the type instead.
8958
8959 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8960
8961         * configure.ac (AC_PREREQ): Bump to 2.64.
8962
8963 2009-08-24  Rafael Avila de Espindola  <espindola@google.com>
8964
8965         * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
8966         (process_command): Don't search standard_exec_prefix_1 and
8967         standard_exec_prefix_2.
8968
8969 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8970
8971         * config/arm/arm.c (output_return_instruction): Handle for
8972         unified syntax.
8973
8974 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8975
8976         * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
8977
8978 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8979
8980         * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
8981         (*arm_movdf_vfp): Likewise.
8982
8983 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8984
8985         * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
8986         (vashr<mode>3): Rename from ashr<mode>3.
8987         (vlshr<mode>3): Rename from lshr<mode>3.
8988
8989 2009-08-24  Kai Tietz  <kai.tietz@onevision.com>
8990
8991         PR/40786
8992         * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
8993         (check_format_info_main): Use scalar_identify_flag.
8994         (check_format_types): Check for scalar size identity if
8995         scalar_identify_flag is set.
8996         (printf_length_specs): Extend by new field.
8997         (asm_fprintf_length_specs): Likewise.
8998         (gcc_diag_length_specs): Likewise.
8999         (scanf_length_specs): Likewise.
9000         (strfmon_length_specs): Likewise.
9001         (gcc_gfc_length_specs): Likewise.
9002         * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
9003         (ms_printf_flag_specs): Likewise.
9004         * c-format.h (format_length_info): Add new member scalar_identity_flag.
9005
9006 2009-08-23  Uros Bizjak  <ubizjak@gmail.com>
9007
9008         PR target/40718
9009         * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
9010         (*call_value_pop_1): Ditto.
9011         (*sibcall_pop_1): New insn pattern.
9012         (*sibcall_value_pop_1): Ditto.
9013
9014 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
9015
9016         PR target/41081
9017         * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
9018         ashrsi3_64): New.
9019
9020 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
9021
9022         PR target/41081
9023         * fwprop.c (try_fwprop_subst): Allow multiple sets.
9024         (get_reg_use_in): New function.
9025         (forward_propagate_subreg): Propagate through subreg of zero_extend
9026         or sign_extend.
9027
9028 2009-08-22  Kaz Kojima  <kkojima@gcc.gnu.org>
9029
9030         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
9031         * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
9032
9033 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9034
9035         * configure.ac: Remove --with-datarootdir, --with-docdir,
9036         --with-htmldir switches.  No need to call AC_SUBST for
9037         datarootdir, docdir, htmldir any more.
9038         * configure: Regenerate.
9039         * doc/install.texi (Configuration): Document --datarootdir,
9040         --docdir, --htmldir, --pdfdir; update documentation for
9041         --infodir, --mandir.
9042         (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
9043         M4 to 1.4.6.
9044
9045         * aclocal.m4: Regenerate.
9046         * config.in: Regenerate.
9047         * configure: Regenerate.
9048
9049 2009-08-21  Douglas B Rupp  <rupp@gnat.com>
9050             Olivier Hainque  <hainque@adacore.com>
9051
9052         * config/ia64/ia64.c: Include libfuncs.h.
9053         (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
9054         (ia64_expand_call): Use reg 25 on VMS.
9055         (ia64_initialize_trampoline): Fix for VMS ABI.
9056         (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
9057         (ia64_function_arg): Initialize reg 25 on VMS.
9058         Fix OpenVMS ABI issues for varargs.
9059         For OpenVMS, emit the Argument Information register set in the
9060         incoming/sibcall case as well.
9061         (ia64_arg_type): New function.
9062         (ia64_function_arg_advance): Keep track of cum->words.
9063         Fix OpenVMS ABI issues for varargs.
9064         (ia64_function_value): On VMS, promote mode of non-aggregate types.
9065         (ia64_override_options): Set flag_no_common on VMS.
9066         (ia64_init_builtins): Disable FWRITE builtin.
9067         (ia64_asm_output_external): Call DO_CRTL_NAMES.
9068         (ia64_vms_init_libfuncs): Add decc$ routines.
9069         (ia64_vms_valid_pointer_mode): New function.
9070         (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
9071         (ia64_promote_function_mode): New function
9072         * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
9073         (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
9074         (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
9075         (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
9076         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
9077         (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
9078         Suppress trailing '#' if VALUE is numeric.
9079         * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
9080         ia64_promote_function_mode.
9081         (TARGET_VALID_POINTER_MODE): Define.
9082
9083 2009-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9084
9085         PR target/40671
9086         * config/rs6000/rs6000.c (rs6000_override_options): Use
9087         TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
9088
9089         PR target/41145
9090         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
9091         reporting of vector + decimal/boolean/complex error.
9092
9093 2009-08-21  Jakub Jelinek  <jakub@redhat.com>
9094
9095         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
9096         __vector double TYPE_DECL.
9097
9098 2009-08-21  Richard Earnshaw  <rearnsha@arm.com>
9099
9100         * arm.h (MACHMODE): New define.  Include insn-modes.h if available.
9101         (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
9102         * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
9103         to pointer to enum machine_mode.  Update all callers as needed.
9104
9105 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
9106
9107         * config/alpha/alpha.md (exception_receiver): Emit alternative
9108         GP load sequence if flag_reorder_blocks_and_partition is set.
9109         (*exception_receiver_2): Also enable when
9110         flag_reorder_blocks_and_partition is set.
9111
9112 2009-08-20  Matt Rice  <ratmice@gmail.com>
9113             Diego Novillo  <dnovillo@google.com>
9114
9115         * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
9116         tree-ssa-sccvn.h.
9117
9118 2009-08-20  Richard Guenther  <rguenther@suse.de>
9119
9120         * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
9121         * c-tree.h (c_dup_lang_specific_decl): Remove.
9122         (struct lang_decl, struct lang_type): Move definitions ...
9123         * c-lang.h: ... here.  New file.
9124         * c-decl.c: Include c-lang.h.
9125         (c_dup_lang_specific_decl): Remove.
9126         * c-typeck.c: Include c-lang.h.
9127         * Makefile.in (c-decl.o): Add c-lang.h dependency.
9128         (c-typeck.o): Likewise.
9129         * c-config-lang.in (gtfiles): Add c-lang.h.
9130         * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
9131         like c-tree.h.
9132
9133 2009-08-20  Uros Bizjak  <ubizjak@gmail.com>
9134
9135         * config/alpha/alpha.c (alpha_end_function): Do not clear
9136         crtl->emit structure and free insn locators if cfun->is_thunk is true,
9137         this is now handled in generic code.
9138
9139 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
9140
9141         * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
9142         (s390_z10_fix_long_loop_prediction): New function.
9143         (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
9144         (s390_reorg): Walk over the INSNs and invoke
9145         s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
9146
9147 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
9148
9149         * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
9150         "*brx_64bit", "*brx_31bit"): New patterns.
9151         * config/s390/s390.c ('E'): New output modifier.
9152
9153 2009-08-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9154             Richard Earnshaw  <richard.earnshaw@arm.com>
9155
9156         * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
9157         * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
9158
9159 2009-08-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9160
9161         * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
9162         patterns.
9163         * pa.c (emit_move_sequence): Check if address of operand1 is valid
9164         for mode mode of operand0 when doing secondary reload for SAR.
9165
9166 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
9167
9168         PR middle-end/41123
9169         * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
9170         of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
9171
9172 2009-08-19  Jason Merrill  <jason@redhat.com>
9173
9174         * doc/invoke.texi (C++ Dialect Options): Note change of minimum
9175         supported template depth in C++0x.
9176
9177 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
9178
9179         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
9180         free_after_compilation.
9181         * config/score/score7.c (score7_output_mi_thunk): Likewise.
9182         * config/score/score3.c (score3_output_mi_thunk): Likewise.
9183         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
9184         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
9185         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9186         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
9187         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
9188
9189 2009-08-19  Ian Lance Taylor  <iant@google.com>
9190
9191         * doc/md.texi (Insn Canonicalizations): Correct canonicalization
9192         of (plus (mult (neg B) C) A).
9193
9194 2009-08-18  Michael Matz  <matz@suse.de>
9195
9196         * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
9197         instead of comparing TYPE_MAIN_VARIANT for equality.
9198         * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
9199         vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
9200         * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
9201         * gimplify.c (goa_lhs_expr_p): Ditto and use
9202         STRIP_USELESS_TYPE_CONVERSION.
9203
9204 2009-08-18  Michael Matz  <matz@suse.de>
9205
9206         * tree-ssa-structalias.c (create_variable_info_for): Also mark
9207         first field in a struct.
9208         (intra_create_variable_infos): Don't deal with flag_argument_noalias.
9209
9210 2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
9211
9212         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
9213         locators before emit_insn is called.  Remove assert that
9214         cfun->is_thunk.
9215         (alpha_end_function): Clear crtl->emit structure and free insn
9216         locators if cfun->is_thunk is true.
9217
9218 2009-08-18  Jason Merrill  <jason@redhat.com>
9219
9220         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
9221         type if available.
9222         * configure.ac: Test for it.
9223         * configure, config.in: Regenerate.
9224         * doc/install.texi: Document --enable-gnu-unique-object.
9225
9226 2009-08-18  Richard Guenther  <rguenther@suse.de>
9227
9228         PR middle-end/41094
9229         * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
9230         pow(x,y*z) only if x is nonnegative.
9231
9232 2009-08-18  Jakub Jelinek  <jakub@redhat.com>
9233
9234         * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
9235         on jumps.
9236
9237         PR target/40971
9238         * config/rs6000/rs6000.c (rs6000_legitimize_address): For
9239         [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
9240
9241 2009-08-17  DJ Delorie  <dj@redhat.com>
9242
9243         * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
9244         * config/m32c/prologue.md (epilogue_freit): New.
9245         (fset_b): New.
9246         * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
9247         (bank_switch_p): Likewise.
9248         (fast_interrupt_p): Likewise.
9249         (interrupt_p): Likewise.
9250         (m32c_conditional_register_usage): Round memregs size up.
9251         (need_to_save): We only need to save $a0 when we use ENTER.
9252         (interrupt_p): Check for fast_interrupt too.
9253         (bank_switch_p): New.
9254         (fast_interrupt_p): New.
9255         (m32c_attribute_table): Add bank_switch and fast_interrupt.
9256         (m32c_emit_prolog): Support bank switching and fast interrupts.
9257         * doc/extend.texi (Function Attributes): Add bank_switch and
9258         fast_interrupt.
9259
9260 2009-08-17  Douglas B Rupp  <rupp@gnat.com>
9261
9262         * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
9263         * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
9264
9265 2009-08-16  Douglas B Rupp  <rupp@gnat.com>
9266
9267         * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
9268         (menu): Add IA-64/VMS Options.
9269         (IA-64/VMS Options): Likewise.
9270
9271 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
9272
9273         PR target/38599
9274         * config/mips/mips.md (*lwxs): Use :P for pointer values.
9275
9276 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
9277
9278         * config/mips/mips-protos.h (mips_push_asm_switch): New function.
9279         (mips_pop_asm_switch): Likewise.
9280         * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
9281         with...
9282         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
9283         (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
9284         (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
9285         (mips_print_operand_punctuation): Use them.  Check mips_noreorder
9286         instead of set_noreorder.
9287         (mips_output_function_prologue): Use the new functions.
9288         (mips_output_function_epilogue): Likewise.
9289         (mips_need_noat_wrapper_p): New function, split out from...
9290         (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
9291         Use mips_push_asm_switch and mips_pop_asm_switch.
9292         * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
9293         and mips_pop_asm_switch.
9294         (ASM_OUTPUT_REG_POP): Likewise.
9295         (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
9296         Use mips_pop_asm_switch.
9297         (mips_asm_switch): New structure.
9298         (set_noreorder, set_nomacro): Replace with...
9299         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
9300         * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
9301         instead of set_nomacro.
9302         (fix_truncsfsi2_macro): Likewise.
9303         (cprestore): Likewise.
9304         (hazard): Use mips_noreorder instead of set_noreorder.
9305         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
9306
9307 2009-08-16  Uros Bizjak  <ubizjak@gmail.com>
9308
9309         * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
9310         from prev_active_insn.
9311
9312 2009-08-16  Anatoly Sokolov  <aesok@post.ru>
9313
9314         * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
9315         * config/avr/avr.c (avr_override_options): Initialize
9316         avr_current_arch variable.
9317         (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
9318         __AVR_HAVE_16BIT_SP__ according to the device type.
9319         (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
9320         TARGET_TINY_STACK.
9321         (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
9322         Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
9323
9324 2009-08-16  Dodji Seketeli  <dodji@redhat.com>
9325
9326         PR debug/37801
9327         * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
9328         generating inlined subroutine die only. We shouldn't be
9329         called for anything else.
9330         (gen_block_die): Don't generate inline subroutine debug info for
9331         abstract blocks.
9332
9333 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
9334
9335         * graphite-poly.c (print_pbb): Print PBB index.
9336
9337 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
9338
9339         PR middle-end/40981
9340         * graphite-interchange.c (ppl_max_for_le): Moved...
9341         * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
9342         * graphite-ppl.c (ppl_max_for_le): ... here.  Correct the use of
9343         ppl_Pointset_Powerset_C_Polyhedron_maximize.
9344         * graphite-ppl.h (ppl_max_for_le): Declared.
9345
9346 2009-08-14  Olatunji Ruwase <tjruwase@google.com>
9347
9348         * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
9349         supported on all platforms.
9350         * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
9351         * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
9352         * c-pragma.c: Likewise.
9353         * target-def.h (TARGET_INITIALIZER): Remove
9354         TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
9355         * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
9356
9357 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
9358
9359         * config/ia64/fde-vms.c: New file.
9360         * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
9361         * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
9362         (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
9363         (uw_frame_state_for): Only register a personality routine if it is
9364         known to be compatible with our expectations.
9365         (_Unwind_FindEnclosingFunction, uw_frame_state_for):
9366         Declare unw_table_entry stack variable and
9367         mod all calls to _Unwind_FindTableEntry to add arg.
9368         * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
9369         (_Unwind_FindTableEntry): Add arg to prototype.
9370
9371 2009-08-14  Eric Botcazou  <ebotcazou@adacore.com>
9372
9373         * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
9374         field 'signal_pfs_loc'.
9375         (uw_frame_state_for): Remove duplicate code dealing with leaf
9376         procedures without unwind info.
9377         If in the frame after unwinding through a signal handler, restore
9378         the AR.PFS register instead of the CFM if AR.PFS has not been saved.
9379         * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
9380         'pfs_loc' to the AR.PFS location in the signal context; instead
9381         set 'signal_pfs_loc'.
9382         Manually generate the unwind info for the AR.PFS register.
9383         (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
9384         ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
9385         (ia64_handle_unwabi): Test 'fs->unwabi' against them.
9386         Do not set 'pfs_loc' to the AR.PFS location in the signal context;
9387         instead set 'signal_pfs_loc'.
9388         Remove code preventing the AR.PFS register from being restored
9389         from the signal context.
9390
9391 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
9392             Tristan Gingold  <gingold@adacore.com>
9393
9394         * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
9395         * config/ia64/t-vms: New file.
9396         * config/ia64/vms64.h: New file.
9397         * config/ia64/vms.h: New file.
9398         * config/ia64/vms-crtinit.asm: New file.
9399         * config/ia64/vms_symvec_libgcc_s.opt: New file.
9400         * config/ia64/vms-unwind.h: New file.
9401
9402 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
9403
9404         * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
9405         TFmode compares.
9406
9407 2009-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9408
9409         PR middle-end/30789
9410         * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
9411         Move declaration...
9412         * real.h (do_mpc_arg2): ... here.
9413         * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
9414         and RDIV_EXPR.
9415
9416 2009-08-14  Rafael Avila de Espindola  <espindola@google.com>
9417
9418         * final.c (add_debug_prefix_map): Don't use GC memory for
9419         old_prefix and new_prefix.
9420
9421 2009-08-14  Richard Guenther  <rguenther@suse.de>
9422
9423         * ipa-prop.c (compute_complex_pass_through): If we cannot
9424         compute a non-varying offset for IPA_JF_ANCESTOR punt.
9425
9426 2009-08-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9427
9428         * c-lex.c (c_lex_with_flags): Increase size of local variable
9429         to avoid memory clobber.
9430
9431 2009-08-14  Paolo Bonzini  <bonzini@gnu.org>
9432
9433         PR target/40934
9434         * config/i386/i386.c (ix86_fp_comparison_strategy):
9435         Only enable/disable sahf at function granularity.
9436
9437 2009-08-14  Hans-Peter Nilsson  <hp@axis.com>
9438
9439         PR rtl-optimization/41064
9440         * reload1.c (reload_as_needed): Don't call extract_insn
9441         for known invalid replacements after calling
9442         validate_replace_rtx_group and verify_changes.
9443
9444 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
9445
9446         PR target/41019
9447         * config/i386/sse.md (SSEMODE124C8): New mode iterator.
9448         (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
9449         ix86_expand_fp_vcond.
9450         (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
9451         Assert that operation is supported by ix86_expand_int_vcond.
9452         (vcondu<SSEMODE124C8:mode>): Ditto.
9453
9454 2009-08-13  DJ Delorie  <dj@redhat.com>
9455
9456         * config/i386/djgpp-stdint.h: New.
9457         * config.gcc (djgpp): Use it.
9458
9459 2009-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
9460
9461         * config/sh/sh.c (sh_override_options): When flag_exceptions or
9462         flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
9463
9464 2009-08-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
9465
9466         * tree-ssa-loop-prefetch.c
9467         (prune_ref_by_group_reuse): Enhance probabilistic analysis
9468         for long-stride pruning.
9469         (compute_miss_rate): New function to compute the probability
9470         that two memory references access different cache lines.
9471
9472 2009-08-13  Dave Korn  <dave.korn.cygwin@gmail.com>
9473
9474         * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
9475
9476 2009-08-13  Richard Guenther  <rguenther@suse.de>
9477
9478         PR middle-end/41047
9479         * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
9480         use the constant pointer type.
9481         * gimplify.c (canonicalize_addr_expr): Canonicalize independent
9482         of CV qualifiers on the target pointer type.
9483         * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
9484         conversion check before restrict check.
9485
9486 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
9487
9488         PR target/41029
9489         * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
9490
9491 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
9492
9493         * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
9494
9495 2009-08-12  Richard Guenther  <rguenther@suse.de>
9496
9497         PR tree-optimization/41011
9498         * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
9499         and reference constructing.
9500
9501 2009-08-12  Xinliang David Li  <davidxl@google.com>
9502
9503         PR tree-optimization/41012
9504         * tree-flow.h : New external interface.
9505         * gimple-low.c (check_call_arg): Change to public function.
9506         Remove argument mismatch check in lowering.
9507         * tree-inline.h (tree_can_inline_p): Interface change.
9508         * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
9509         into this function.
9510         * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
9511         Call change to tree_can_inline_p function.
9512         (cgraph_decide_inlining_incrementally): Ditto.
9513
9514 2009-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
9515
9516         PR tree-optimization/41031
9517         * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
9518         on the partition variable rather than promote_mode on the source
9519         type.  Assert that the partition variable's type has the same
9520         mode as the source value's.
9521
9522 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
9523
9524         * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
9525         for for_return == 2.
9526         * function.c (assign_parm_setup_reg): Use for_return == 2, improve
9527         comments.
9528         * calls.c (expand_call): Fix typo.
9529         * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
9530         and PARM_DECL.
9531         * stmt.c (expand_value_return): Use promote_function_mode to copy out
9532         of pseudo.
9533         * targhooks.c (default_promote_function_mode): Handle for_return == 2.
9534         * config/cris/cris.c (cris_promote_function_mode): Likewise.
9535         * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
9536         * config/pa/pa.c (pa_promote_function_mode): Likewise.
9537
9538 2009-08-12  Andrew Haley  <aph@redhat.com>
9539
9540         * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
9541
9542 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9543
9544         PR bootstrap/40103
9545         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
9546
9547 2009-08-12  Richard Guenther  <rguenther@suse.de>
9548
9549         * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
9550         * gimplify.c (gimplify_modify_expr): Do not use
9551         lang_hooks.types_compatible_p.
9552         * tree-ssa.c (useless_type_conversion_p): For aggregates
9553         just return false if the canonical types differ.
9554
9555 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9556
9557         PR middle-end/40980
9558         * sese.c (convert_for_phi_arg): New.
9559         (add_guard_exit_phis): Use convert_for_phi_arg.
9560
9561 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9562
9563         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
9564         unknown subscript upper bounds.
9565
9566 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9567             Pranav Garg  <pranav.garg2107@gmail.com>
9568
9569         * graphite-interchange.c (gather_access_strides): Removed.
9570         (ppl_max_for_le): New.
9571         (build_linearized_memory_access): New.
9572         (memory_stride_in_loop): New.
9573         (pbb_interchange_profitable_p): Reimplemented.
9574         * graphite-ppl.h (ppl_new_id_map): New.
9575         (ppl_interchange): New.
9576
9577 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9578
9579         * graphite-interchange.c (compute_subscript): Removed.
9580         (compute_array_size_cstr): Removed.
9581         (compute_array_size_poly): Removed.
9582         (compute_array_size): Removed.
9583         (gather_access_strides_poly): Removed.
9584         (gather_access_strides): Empty.
9585
9586 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9587
9588         * graphite-dependences.c (dependence_polyhedron_1): Replace
9589         pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
9590         (graphite_legal_transform_dr): Same.
9591         (graphite_carried_dependence_level_k): Same.
9592         * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
9593         Initialize PDR_NB_SUBSCRIPTS.
9594         (print_pdr_access_layout): Replace pdr_nb_subscripts with
9595         PDR_NB_SUBSCRIPTS.
9596         * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
9597         (PDR_NB_SUBSCRIPTS): New.
9598         (pdr_nb_subscripts): Removed.
9599         (pdr_dim): Simplified.
9600         * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
9601         with PDR_NB_SUBSCRIPTS.
9602
9603 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9604
9605         * graphite-interchange.c (compute_array_size): Remove use of
9606         PDR_DATA_CONTAINER.
9607         * graphite-poly.c (new_poly_dr): Remove argument data_container.
9608         Do not initialize PDR_DATA_CONTAINER.
9609         (print_pdr): Do not print PDR_DATA_CONTAINER.
9610         * graphite-poly.h (struct poly_dr): Remove data_container field.
9611         (PDR_DATA_CONTAINER): Removed.
9612         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
9613         PDR_DATA_CONTAINER.
9614         (build_poly_dr): Same.
9615
9616 2009-08-12  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
9617             Sebastian Pop  <sebastian.pop@amd.com>
9618
9619         * graphite-dependences.c (graphite_legal_transform_dr): Work on a
9620         copy of the dependence polyhedron.  Free the temporary objects.
9621         (graphite_carried_dependence_level_k): Free unused objects before
9622         returning.
9623
9624 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9625
9626         * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
9627         Early return without analyzing the data dependences if no
9628         transform has been done.  Call restore_scattering if the transform
9629         is not legal.
9630         (graphite-interchange.c): Same.
9631         * graphite-poly.c (print_scattering_function): Test for
9632         PBB_TRANSFORMED.
9633         (graphite_read_transforms): Initialize PBB_TRANSFORMED.
9634         (apply_poly_transforms): Do not gcc_assert that
9635         the transform is legal.
9636         (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
9637         Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
9638         PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
9639         (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
9640         * graphite-poly.h (struct poly_scattering): New.
9641         (struct poly_bb): Add original, transformed, and saved fields.
9642         Remove transformed_scattering, original_scattering,
9643         nb_local_variables and nb_scattering_transform fields.
9644         (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
9645         (poly_scattering_new): New.
9646         (poly_scattering_free): New.
9647         (poly_scattering_copy): New.
9648         (store_scattering_pbb): New.
9649         (store_scattering): New.
9650         (restore_scattering_pbb): New.
9651         (restore_scattering): New.
9652         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
9653         Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
9654
9655 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9656
9657         * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
9658         (print_scop): Same.
9659
9660 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9661
9662         * Makefile.in (graphite.o): Depends on PREDICT_H.
9663         * graphite.c: Include predict.h.
9664         (graphite_finalize): Call tree_estimate_probability.
9665         * predict.c (predict_loops): Do not call scev_initialize and
9666         scev_finalize.
9667         (tree_estimate_probability_bb): New.
9668         (tree_estimate_probability): Do not initialize loops: move that
9669         code to the driver.  Call tree_estimate_probability_bb.
9670         (tree_estimate_probability_driver): New.
9671         (pass_profile): Use tree_estimate_probability_driver.
9672         * predict.h (tree_estimate_probability): Declared.
9673
9674 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9675
9676         * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
9677         * graphite-dependences.c (graphite_legal_transform): Add time to
9678         TV_GRAPHITE_DATA_DEPS.
9679         (dependency_between_pbbs_p): Same.
9680         * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
9681
9682 2009-08-12  Andrey Belevantsev  <abel@ispras.ru>
9683
9684         PR rtl-optimization/41033
9685         * alias.c (nonoverlapping_component_refs_p): Punt when strict
9686         aliasing is disabled.
9687
9688 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
9689
9690         * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
9691         si_mask_operand, and_load_operand, low_bitmask_operand,
9692         and_reg_operand, and_operand): New predicates.
9693         * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
9694         * config/mips/mips.c (and_operands_ok): New function.
9695         * config/mips/mips-protos.h (and_operands_ok): Declare it.
9696         * config/mips/mips.md (move_type): Add ext_ins and logical.
9697         (type): Handle them.
9698         (and<mode>3): Use and_reg_operand as the second operand's predicate.
9699         (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
9700         shift_shift.  Remove commutative constraint modifier.
9701         (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
9702         shift_shift.
9703         (*clear_upper32_dext): Remove define_insn_and_split.
9704         (*clear_upper32): Turn this define_insn_and_split ...
9705         (splitter for ANDing register with 0xffff_ffff): .. into this.
9706
9707 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
9708
9709         * combine.c (try_widen_shift_mode): Factor out code to check if an
9710         integer constant is a low-order bitmask from here ...
9711         * rtlanal.c (low_bitmask_len): ... to here.
9712         * rtl.h (low_bitmask_len): Declare.
9713
9714 2009-08-11  Uros Bizjak  <ubizjak@gmail.com>
9715
9716         PR target/8603
9717         * config/alpha/alpha.md (addsi3): Remove expander.
9718         (addsi3): Rename from *addsi3_internal insn pattern.
9719         (subsi3): Remove expander.
9720         (subsi3): Rename from *subsi3_internal insn pattern.
9721
9722 2009-08-11  Douglas B Rupp  <rupp@gnat.com>
9723
9724         * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
9725         FWRITE_UNLOCKED.
9726
9727 2009-08-11  Vasiliy Fofanov  <fofanov@adacore.com>
9728             Eric Botcazou  <botcazou@adacore.com>
9729             Douglas B Rupp  <rupp@gnat.com>
9730
9731         * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
9732         that records that fit in 64 bits are returned by immediate value,
9733         as required by OpenVMS Calling Standard.
9734         (function_value): Adjust for above modification.
9735         (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
9736         virtual_incoming_args_rtx as base object, not next_arg.
9737         * config/alpha/vms.h (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
9738
9739 2009-08-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9740
9741         * reload.c (find_reloads_subreg_address): Check the original
9742         req_equiv_mem address to detect the case where an address is
9743         not valid in the outer mode.
9744
9745 2009-08-11  Richard Guenther  <rguenther@suse.de>
9746
9747         PR bootstrap/40788
9748         * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
9749
9750 2009-08-10  Douglas B Rupp  <rupp@gnat.com>
9751
9752         * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
9753         (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
9754
9755 2009-08-10  Olivier Hainque  <hainqueu@adacore.com>
9756             Douglas B Rupp  <rupp@gnat.com>
9757
9758         * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
9759         PT_STACK when frame_pointer_needed on OpenVMS.
9760         (alpha_pv_save_size, alpha_using_fp): Remove.
9761         (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
9762         with proper processing for PT_NULL.
9763         (alpha_vms_initial_elimination_offset): New function. Support for
9764         INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
9765         (alpha_sa_size): Force procedure type to PT_STACK when
9766         frame_pointer_needed on OpenVMS.
9767         * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
9768         (alpha_using_fp): Likewise.
9769         (alpha_vms_can_eliminate): Add prototype.
9770         (alpha_vms_initial_elimination_offset): Likewise.
9771         * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
9772         Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
9773
9774 2009-08-10  Eric Botcazou  <botcazou@adacore.com>
9775             Douglas B Rupp  <rupp@gnat.com>
9776
9777         * config/alpha/alpha.c (common_object_handler): New function.
9778         (vms_attribute_table): Declare a single attribute "common_object".
9779         (vms_output_aligned_decl_common): New global function.
9780         (SECTION_VMS_OVERLAY): Delete.
9781         (SECTION_VMS_GLOBAL): Likewise.
9782         (SECTION_VMS_INITIALIZE): Likewise.
9783         (vms_asm_named_section): Remove support for above flags.
9784         (vms_section_type_flags): Delete.
9785         (TARGET_SECTION_TYPE_FLAGS): Likewise.
9786         * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
9787         * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
9788         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
9789
9790 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
9791
9792         PR target/41015
9793         * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
9794         (sub_ddmmss): Likewise.
9795
9796 2009-08-10  Andreas Tobler  <a.tobler@schweiz.org>
9797
9798         PR bootstrap/41018
9799         * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
9800         year.
9801
9802 2009-08-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9803
9804         PR target/37053
9805         * reload1.c (reload_as_needed): Use cancel_changes to completely
9806         undo a failed replacement attempt.
9807
9808 2009-08-10  Richard Guenther  <rguenther@suse.de>
9809
9810         PR middle-end/41006
9811         * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
9812         (useless_type_conversion_p): ... here.  Require pointer targets
9813         to be compatible.
9814
9815 2009-08-10  Dodji Seketeli  <dodji@redhat.com>
9816
9817         PR c++/40866
9818         * tree-inline.c (copy_statement_list): The resulting copy shouldn't
9819         loose the original type of the statement list.
9820
9821 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
9822
9823         * config/alpha/alpha.c: Include libfuncs.h
9824         (avms_asm_output_extern): New function.
9825         (alpha_init_libfuncs): Init some decc libfuncs.
9826         * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
9827         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
9828         (DO_CRTL_NAMES): Define.
9829         (LIB_SPEC): Remove.
9830         * config/alpha/vms64.h (POINTERS_EXTEND_UNSIGNED): Remove undef.
9831         (LONG_TYPE_SIZE): Define.
9832         (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
9833         (SUBTARGET_SWITCHES): Define malloc64 switch.
9834         (TARGET_DEFAULT): Default MASK_MALLOC64 set.
9835         (MASK_RETURN_ADDR): Define.
9836         doc/invoke.texi (mmalloc64): Document switch.
9837
9838 2009-08-09  Olivier Hainque  <hainque@adacore.com>
9839             Douglas B Rupp  <rupp@gnat.com>
9840
9841         * config/alpha/alpha.c (struct machine_function): New flag for VMS,
9842         uses_condition_handler.
9843         (alpha_expand_builtin_establish_vms_condition_handler): New expander.
9844         (alpha_expand_builtin_revert_vms_condition_handler): New expander.
9845         (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
9846         and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
9847         (code_for_builtin): New insn codes for the new alpha_builtins.
9848         (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
9849         (alpha_sa_size): Account for uses_condition_handler.
9850         (alpha_expand_prologue): Likewise.
9851         (alpha_start_function): Likewise.
9852         (alpha_expand_epilogue): Likewise.
9853         * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
9854         establish/revert expanders.
9855         * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
9856         * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
9857         New expander, resorting to the alpha.c associated function.
9858         (builtin_revert_vms_condition_handler): Likewise.
9859         * config/alpha/vms-gcc_shell_handler.c: New file. Implements
9860         __gcc_shell_handler, the static VMS condition handler used as
9861         an indirection wrapper to the current dynamically established
9862         handler.
9863         * config/alpha/vms-unwind.h: Complete rewrite.
9864         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
9865         * config/alpha/vms.h (MD_UNWIND_SUPPORT):
9866
9867 2009-08-09  Eric Botcazou  <botcazou@adacore.com>
9868             Douglas B Rupp  <rupp@gnat.com>
9869
9870         * config/alpha/alpha.c (alpha_links): Add 'target' field.
9871         (alpha_need_linkage): Handle aliases.  Return function symbol.
9872         (alpha_use_linkage): Rename 'linkage' argument to 'func'.
9873         Use ultimate alias target for the linkage name.
9874         * config/alpha/alpha.md (movmemdi): Use the symbol returned
9875         by alpha_need_linkage for the function symbol.
9876         (setmemdi): Likewise.
9877
9878 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
9879
9880         * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
9881         * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
9882         (ASM_WEAKEN_LABEL): Define.
9883         (CRT_CALL_STATIC_FUNCTION): Define.
9884         (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
9885         (ENDFILE_SPEC): Define.
9886         (INIT_SECTION_ASM_OP): Define.
9887         * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
9888         * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
9889         crtend.o crtendS.o.
9890         (MULTILIB_OSDIRNAMES): Define.
9891         (shlib_version): Define.
9892         (SHLIB_EXT): Define.
9893         (SHLIB_OBJS): Define.
9894         (SHLIB_NAME): Define.
9895         (SHLIB_MULTILIB): Define.
9896         (SHLIB_INSTALL): Define.
9897         (SHLIB_SYMVEC): Define.
9898         (SHLIB_SYMVECX2): Define.
9899         (SHLIB_LINK): Define.
9900
9901 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
9902
9903         * config/alpha/alpha.c (alpha_initialize_trampoline):
9904         Initialize VMS trampoline IAW ABI for bounded procedure calls.
9905         (alpha_start_function): Emit transfer address on nested functions
9906         for VMS trampoline call.
9907         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
9908         since no longer used.
9909         * config/alpha/vms-tramp.asm: Remove.
9910         * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
9911         since now only data initialized at runtime.
9912
9913 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
9914
9915         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
9916         (LINK_GCC_C_SEQUENCE_SPEC): Define.
9917         (MD_EXEC_PREFIX): Remove, no longer used.
9918         (MD_STARTFILE_PREFIX): Likewise.
9919         (INCLUDE_DEFAULTS): Likewise.
9920         * config/alpha/t-vms:
9921         (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
9922
9923 2009-08-09  Richard Guenther  <rguenther@suse.de>
9924
9925         PR tree-optimization/41016
9926         * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
9927         (operand_precision): Remove.
9928         (integral_operand_p): Likewise.
9929         (recognize_single_bit_test): Adjust.
9930
9931 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
9932
9933         * c-common.c (c_fully_fold_internal): Issue a warning if a binary
9934         operation overflows.  Likewise non-cast unary arithmetic.
9935         If one arm of a conditional expression is always taken,
9936         inhibit evaluation warnings for the other arm.  Likewise inhibit
9937         evaluation warnings for the second && or || operand if the first
9938         operand is enough to determine the result.
9939         * c-typeck.c (build_conditional_expr): Apply the same inhibition
9940         rules here.
9941         (build_binary_op): Prevent duplicate evaluation warnings.
9942
9943 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
9944
9945         * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
9946         and destination have different modes, Use promote_mode to
9947         determine the signedness of the conversion.  Assert that the
9948         promoted source mode matches the destination mode.  Don't pass
9949         the destination and destination mode to expand_expr if the source
9950         mode is different.  Simplify conversion logic.
9951
9952 2009-08-09  Ira Rosen  <irar@il.ibm.com>
9953
9954         PR tree-optimization/41008
9955         * tree-vect-loop.c (vect_is_simple_reduction): Get operands
9956         from condition only in case it's a comparison. Adjust checks.
9957
9958 2009-08-09  Bernd Schmidt  <bernd.schmidt@analog.com>
9959
9960         * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
9961         * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
9962         * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
9963         (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
9964         (dump_cand): Handle them.
9965         (struct iv_cand): New members COST_STEP and AINC_USE.
9966         (stmt_after_increment): Likewise.
9967         (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos.  All
9968         callers changed.  Use gimple_uid comparison instead of scanning.
9969         (add_candidate_1): When looking for identical candidates, take
9970         AINC_USE into account.  Set it for new candidates.
9971         (force_expr_to_var_cost): Cast target_spill_cost to int.
9972         (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
9973         All callers changed.  Check for availability of autoinc addressing
9974         modes, both in general for a given mode, and in the specific use case.
9975         (get_computation_cost_at): New argument CAN_AUTOINC.  All callers
9976         changed.
9977         (get_computation_cost): Likewise.
9978         (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
9979         add_autoinc_candidates): New static functions.
9980         (add_candidate): Call add_autoinc_candidates for candidates based on
9981         a USE_ADDRESS use.
9982         (find_iv_candidates): Call set_autoinc_for_original_candidates.
9983         (determine_use_iv_cost_address): If we have an autoinc candidate at
9984         the matching use, verify autoinc is possible and subtract the cost
9985         of the candidate's step from the cost.
9986         (determine_iv_cost): Record the cost of the increment in the COST_STEP
9987         member of the candidate.
9988         (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
9989         determine_use_iv_costs.  Call renumber_gimple_stmt_uids_in_blocks.
9990
9991 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
9992
9993         * config.build (ia64-hp-*vms*): New target.
9994         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
9995         with ia64-hp-*vms*.
9996         * config.gcc (ia64-hp-*vms*): New target.
9997         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
9998         with ia64-hp-*vms*.
9999         * config.host (ia64-hp-*vms*): New target.
10000         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
10001         with ia64-hp-*vms*.
10002
10003 2009-08-08  Richard Guenther  <rguenther@suse.de>
10004
10005         PR tree-optimization/40991
10006         * tree-ssa-pre.c (eliminate): Delay purging EH edges.
10007
10008 2009-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
10009
10010         * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
10011         mode check.  Do truncations in an integer mode.
10012         (force_to_mode): Handle subregs for all mode types.  Only do
10013         arithmetic simplifications on integer modes.
10014
10015 2009-08-07  Richard Guenther  <rguenther@suse.de>
10016
10017         PR tree-optimization/40999
10018         * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
10019         (maybe_fold_reference): Lookup constant initializers.
10020         (fold_gimple_assign): Likewise.
10021
10022 2009-08-07  Richard Guenther  <rguenther@suse.de>
10023
10024         * tree-ssa.c (useless_type_conversion_p_1): Only for types
10025         that require structural equality defer to the langhook.
10026
10027 2009-08-07  Martin Jambor  <mjambor@suse.cz>
10028
10029         * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
10030         comments.
10031         (struct ipa_pass_through_data): New type.
10032         (struct ipa_ancestor_jf_data): New type.
10033         (union jump_func_value): Removed field formal_id, added fields
10034         pass_through and ancestor.
10035         (struct ipa_param_call_note): Changed type of formal_id to int from
10036         unsigned.
10037         * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
10038         operations jump functions and ancestor jump functions.
10039         (compute_complex_pass_through): New function.
10040         (compute_scalar_jump_functions): Call compute_complex_pass_through,
10041         reflect changes in the jump function strucutre.
10042         (update_jump_functions_after_inlining): Ignore complex pass-through
10043         and ancestor jump functions.
10044         * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
10045         polynomial pass-through with operation jump functions.
10046
10047 2009-08-07  Jakub Jelinek  <jakub@redhat.com>
10048
10049         * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
10050         fde->dw_fde_begin as begin label instead of hot/cold label.
10051         Use LLSDAC label instead of LLSDA for second section lsda.
10052         (dwarf2out_do_cfi_startproc): Add SECOND argument.  Use LLSDAC
10053         label instead of LLSDA if it is true.
10054         (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
10055         callers.
10056         * except.c (add_call_site, dw2_size_of_call_site_table): Add
10057         SECTION argument.  Use it as index into crtl->eh.call_site_record
10058         array.
10059         (dw2_output_call_site_table): Likewise.  Add CS_FORMAT argument,
10060         use it to determine how to print table entries instead of using
10061         #ifdef HAVE_AS_LEB128.  For SECTION > 0 use hot resp. cold
10062         label instead of normal begin label as base.
10063         (sjlj_assign_call_site_values): Adjust add_call_site caller.
10064         (convert_to_eh_region_ranges): When doing hot/cold partitioning,
10065         ensure no EH range spans between sections and that landing pads
10066         are always in the corresponding section.
10067         (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
10068         for crtl->eh.call_site_record being an array rather than scalar.
10069         (output_one_function_exception_table): New function, copied
10070         from output_function_exception_table.  Adjust
10071         dw2_size_of_call_site_table, dw2_output_call_site_table
10072         callers.  For SECOND section use *C suffixed labels.
10073         (output_function_exception_table): Call
10074         output_one_function_exception_table and, when doing hot/cold
10075         partitioning, also another time for the second section.
10076         * opts.c: Include except.h.
10077         (decode_options): Allow -freorder-blocks-and-partition with
10078         exceptions, unless SJLJ or TARGET_UNWIND_INFO.
10079         * Makefile.in (opts.o): Depend on $(EXCEPT_H).
10080         * function.h (struct rtl_eh): Change call_site_record from
10081         scalar into array of 2 elements.
10082
10083 2009-08-07  Martin Jambor  <mjambor@suse.cz>
10084
10085         * ipa-prop.c (count_formal_params_1): New function.
10086         (ipa_get_vector_of_formal_parms): New function.
10087         (get_vector_of_formal_parm_types): New function.
10088         (ipa_modify_formal_parameters): New function.
10089         (ipa_modify_call_arguments): New function.
10090         (index_in_adjustments_multiple_times_p): New function.
10091         (ipa_combine_adjustments): New function.
10092         (ipa_dump_param_adjustments): New function.
10093         * ipa-prop.h (struct ipa_parm_adjustment): New type.
10094         (ipa_get_vector_of_formal_parms): Declare.
10095         (ipa_modify_formal_parameters): Declare.
10096         (ipa_modify_call_arguments): Declare.
10097         (ipa_combine_adjustments): Declare.
10098         (ipa_dump_param_adjustments): Declare.
10099         (build_ref_for_offset): Declare.
10100         * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
10101         * tree-sra.c: Include ipa-prop.c.
10102         (build_ref_for_offset): Make public.
10103
10104 2009-08-06  Neil Vachharajani  <nvachhar@gmail.com>
10105
10106         * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
10107
10108 2009-08-06  Thomas Schwinge  <tschwinge@gnu.org>
10109
10110         * gcc/doc/extend.texi (__builtin_extract_return_address)
10111         (__builtin_frob_return_address): Document.
10112
10113 2009-08-06  Paul Brook  <paul@codesourcery.com>
10114
10115         * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
10116         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
10117         implementation on ARMv6-M.
10118
10119 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
10120
10121         * doc/extend.texi (pcs): Document new attribute for ARM.
10122
10123 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
10124
10125         * arm.c (pcs_attribute_args): Comment out unsupported attribute
10126         variants.
10127
10128 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
10129
10130         * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
10131         warning ().
10132
10133 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
10134
10135         * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
10136
10137 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
10138
10139         Merge ARM/hard_vfp_branch to trunk.
10140
10141         2009-08-04  Richard Earnshaw  <rearnsha@arm.com>
10142
10143         * arm.c (libcall_eq): New function.
10144         (libcall_hash): New function.
10145         (add_libcall): New function.
10146         (arm_libcall_uses_aapcs_base): New function.
10147         (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
10148         libcalls using the base PCS.
10149         (arm_init_cumulative_args): Likewise.
10150
10151         2009-07-20  Joseph Myers  <joseph@codesourcery.com>
10152
10153         * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
10154         Use base ABI for conversion libfuncs between HFmode and SFmode.
10155
10156         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
10157
10158         * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
10159         V4SImode as representatives of all 64-bit and 128-bit vector
10160         types.  Allow vector types without vector modes.
10161         (aapcs_vfp_is_call_or_return_candidate): Handle vector types
10162         without vector modes like BLKmode.
10163         (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
10164         BLKmode.  Avoid unsupported vector modes or TImode moves for
10165         non-TARGET_NEON.
10166         (aapcs_vfp_allocate_return_reg): Likewise.
10167         (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
10168         V8QImode if TARGET_NEON || TARGET_IWMMXT.
10169
10170         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
10171
10172         * config/arm/arm.c (arm_handle_pcs_attribute): New.
10173         (arm_get_pcs_model): Pass attribute arguments to
10174         arm_pcs_from_attribute.
10175         (arm_init_cumulative_args): Use base AAPCS for conversions from
10176         floating-point types to DImode.
10177         (arm_attribute_table): Add pcs attribute.
10178         (arm_handle_pcs_attribute): New.
10179         * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
10180         conversions from floating-point types to DImode, also declare them
10181         to use base AAPCS and declare functions they call to use base
10182         AAPCS and their RTABI names.
10183
10184         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
10185
10186         * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
10187         -mfloat-abi=hard not being supported for VFP.
10188
10189         2009-05-11  Kazu Hirata  <kazu@codesourcery.com>
10190
10191         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
10192         SYMBOL_REF to hard_libcall_value.
10193
10194         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
10195             Richard Earnshaw  <rearnsha@arm.com>
10196
10197         * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
10198         has been put on the stack, all remaining co-processory arguments for
10199         that co-processor also go on the stack.
10200
10201         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
10202
10203         * config/arm/arm.c (arm_return_in_memory): Handle returning
10204         vectors of suitable size in registers also for AAPCS case.
10205
10206         2009-01-13  Richard Earnshaw <rearnsha@arm.com>
10207
10208         * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
10209
10210         2008-12-09  Richard Earnshaw <rearnsha@arm.com>
10211
10212         ARM Hard-VFP calling convention
10213         * target-def.h (TARGET_LIBCALL_VALUE): New hook.
10214         * target.h (gcc_target): Add libcall_value to table of call hooks.
10215         * targhooks.h (default_libcall_value): Default implementation.
10216         * targhooks.c (default_libcall_value): Likewise.
10217         * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
10218         * optabs.c (expand_unop): Use it.
10219         * expr.h (hard_libcall_value): Pass the function RTX through.
10220         * calls.c (emit_library_call_value_1): Update call to
10221         hard_libcall_value.
10222         * explow.c (hard_libcall_value): Use new target hook.
10223         * config/arm/arm.c: Include cgraph.h
10224         (TARGET_FUNCTION_VALUE): Override default hook.
10225         (arm_pcs_default): New variable.
10226         (arm_override_options): Don't fault hard calling convention with VFP.
10227         Add support for AAPCS variants.
10228         (arm_function_value): Make static.  Handle AAPCS variants.
10229         (arm_libcall_value): New function.
10230         (arm_apply_result_size): Handle VFP registers in results.
10231         (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
10232         conventions.
10233         (pcs_attribute_args): New variable.
10234         (arm_pcs_from_attribute): New function.
10235         (arm_get_pcs_model): New function.
10236         (aapcs_vfp_cum_init): New function.
10237         (aapcs_vfp_sub_candidate): New function.
10238         (aapcs_vfp_is_return_candidate): New function.
10239         (aapcs_vfp_is_call_candidate): New function.
10240         (aapcs_vfp_allocate): New function.
10241         (aapcs_vfp_allocate_return_reg): New function.
10242         (aapcs_vfp_advance): New function.
10243         (aapcs_cp_arg_layout): New variable.
10244         (aapcs_select_call_coproc): New function.
10245         (aapcs_select_return_coproc): New function.
10246         (aapcs_allocate_return_reg): New function.
10247         (aapcs_libcall_value): New function.
10248         (aapcs_layout_arg): New function.
10249         (arm_init_cumulative_args): Initialize AAPCS args data.
10250         (arm_function_arg): Handle AAPCS variants using new interface.
10251         (arm_arg_parital_bytes): Likewise.
10252         (arm_function_arg_advance): New function.
10253         (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
10254         calling conventions.
10255         (arm_setup_incoming_varargs): Handle new AAPCS args data.
10256         * arm.h (NUM_VFP_ARG_REGS): Define.
10257         (LIBCALL_VALUE): Update.
10258         (FUNCTION_VALUE): Delete.
10259         (FUNCTION_VALUE_REGNO_P): Add VFP regs.
10260         (arm_pcs): New enum.
10261         (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
10262         (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
10263         (FUNCTION_ARG_REGNO_P): Add VFP regs.
10264         * arm-protos.h (arm_function_arg_advance): Add.
10265         (aapcs_libcall_value): Add.
10266         (arm_function_value): Delete.
10267
10268 2009-08-06  Uros Bizjak  <ubizjak@gmail.com>
10269             H.J. Lu  <hongjiu.lu@intel.com>
10270
10271         PR target/40957
10272         * config/i386/i386.c (standard_sse_mode_p): Remove.
10273         (standard_sse_constant_p): Return 2 for integer mode
10274         vector_all_ones_operand when SSE2 is enabled.
10275         (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
10276         (ix86_expand_vector_move): Do not check for negative values from
10277         standard_sse_constant_p.
10278
10279 2009-08-06  Richard Guenther  <rguenther@suse.de>
10280
10281         * tree-ssa.c (useless_type_conversion_p_1): Make function and
10282         array type comparisons frontend independent.
10283         * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
10284         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
10285         out array reference lower bound and element size operands.
10286         (ao_ref_init_from_vn_reference): Properly compute the offset
10287         for ARRAY_RANGE_REF.
10288         (vn_reference_fold_indirect): Fill out array reference lower
10289         bound and element size operands.
10290         * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
10291         a non gimple valued reference operand which can happen for
10292         array reference lower bound or element size.
10293         (create_component_ref_by_pieces_1): Properly generate the
10294         element size operand for array references.
10295
10296 2009-08-06  Richard Guenther  <rguenther@suse.de>
10297
10298         PR tree-optimization/40964
10299         * tree.c (iterative_hash_host_wide_int): Export.
10300         * tree.h (iterative_hash_host_wide_int): Declare.
10301         * tree-ssa-structalias.c (heapvar_map): New struct.
10302         (heapvar_map_eq): New function.
10303         (heapvar_map_hash): Likewise.
10304         (heapvar_lookup): Adjust.
10305         (heapvar_insert): Likewise.
10306         (make_constraint_from_heapvar): Allow multiple heap variables
10307         per decl at different offsets.
10308         (init_alias_heapvars): Adjust.
10309
10310 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
10311
10312         * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
10313         * mips_output_sync_loop (mips_output_sync_loop): Only emit
10314         trailing sync if TARGET_SYNC_AFTER_SC.
10315
10316 2009-08-05  David Daney  <ddaney@caviumnetworks.com>
10317
10318         * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
10319         compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
10320         sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
10321         sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
10322         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
10323         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
10324         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
10325         sync_new_nand<mode>, sync_lock_test_and_set<mode>,
10326         test_and_set_12): Rewrite calls to mips_output_sync_loop.
10327         * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
10328         the prototype declaration match the definition.
10329         * gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
10330         instructions explicitly.  Add barrier_before and operands
10331         parameters.
10332         * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
10333         MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
10334         MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
10335         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
10336         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
10337         MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
10338
10339 2009-08-05  Andrew Pinski  <pinskia@gmail.com>
10340
10341         * tree-ssa-alias.c: Fix intervals to use [) syntax.
10342
10343 2009-08-05  Uros Bizjak  <ubizjak@gmail.com>
10344             Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
10345
10346         PR target/40906
10347         * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
10348         source operand.
10349
10350 2009-08-05  Jakub Jelinek  <jakub@redhat.com>
10351
10352         PR rtl-optimization/40924
10353         * dse.c (canon_address): Before calling cselib_expand_value_rtx
10354         make sure canon_rtx (mem_address) isn't simpler than
10355         canon_rtx (expanded_mem_address).
10356
10357 2009-08-05  Li Feng  <nemokingdom@gmail.com>
10358
10359         * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
10360         for each poly_bb_p.
10361         (build_scop_drs): Build alias set for each SCoP.
10362
10363 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
10364
10365         * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
10366         * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
10367         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
10368         (MIPS_ARCH_FLOAT_SPEC): Likewise.
10369         (BASE_DRIVER_SELF_SPECS): Likewise.
10370
10371 2009-08-04  Andrew Pinski  <pinskia@gmail.com>
10372
10373         * tree-ssa-alias.c: Fix some comment typos.
10374
10375 2009-08-04  Kaz Kojima  <kkojima@gcc.gnu.org>
10376
10377         * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
10378         ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
10379
10380 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
10381
10382         PR c/39902
10383         * simplify-rtx.c (simplify_binary_operation_1): Disable
10384         simplifications for decimal float operations.
10385
10386 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
10387
10388         PR middle-end/40943
10389         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
10390         operand of INDIRECT_REF.
10391
10392 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
10393
10394         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
10395         constants referencing TLS symbols.
10396
10397 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
10398
10399         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
10400         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
10401
10402 2009-08-03  Richard Guenther  <rguenther@suse.de>
10403
10404         * tree.c (make_vector_type): Build a main variant first,
10405         get the canonical one and then build the variant.
10406         * tree-ssa.c (useless_type_conversion_p_1): Handle
10407         fixed-point types.
10408         (useless_type_conversion_p): Conversions to pointers to
10409         incomplete record types are useless.
10410
10411 2009-08-03  Richard Guenther  <rguenther@suse.de>
10412
10413         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
10414         file will be created.
10415         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
10416         * toplev.c (compile_file): Adjust comment.
10417
10418 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
10419
10420         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
10421         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
10422         (TARGET_PROMOTE_FUNCTION_MODE): Define.
10423         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
10424         (sh_promote_function_mode): Fix typo.
10425
10426 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
10427
10428         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
10429
10430 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10431
10432         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
10433         declaration arguments.
10434
10435 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
10436
10437         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
10438         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
10439         (ix86_split_ashl): Ditto.
10440         (ix86_expand_vector_init_one_nonzero): Ditto.
10441         (ix86_expand_vector_set): Ditto.
10442         (ix86_expand_reduc_v4sf): Ditto.
10443
10444 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
10445
10446         * explow.c (promote_function_mode): Remove assert.
10447         * config/sh/sh.c (sh_promote_function_mode): Declare.
10448
10449 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10450
10451         * config/pa/pa.c (pa_promote_function_mode): Declare.
10452         Change to static.  Fix promote_mode call.
10453
10454         * gthr-dce.h (CONST_CAST2): Define if not defined.
10455         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
10456
10457         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
10458
10459 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
10460
10461         * expr.c (store_constructor): Use promote_decl_mode.  Remove
10462         now write-only variable unsignedp.
10463         (expand_expr_real_1): Use promote_decl_mode.
10464         * expr.h (promote_function_mode, promote_decl_mode): New.
10465         (promote_mode): Remove last argument.
10466         * function.c (assign_temp): Drop last argument of promote_mode.
10467         (assign_parm_find_data_types): Use promote_function_mode.
10468         (assign_parm_setup_reg): Likewise.
10469         (expand_function_end): Use promote_function_mode.
10470         * calls.c (initialize_argument_information): Use promote_function_mode.
10471         (precompute_arguments): Use promote_mode instead of checking if
10472         only PROMOTE_FUNCTION_MODE is defined.
10473         (expand_call): When making sibcall decisions, use promote_function_mode.
10474         Below, remove an if for targetm.calls.promote_function_return and
10475         and use promote_function_mode.
10476         (emit_library_call_value_1): Use promote_function_mode, fix bug
10477         where promote_mode was passed FOR_CALL == 0 for a return value in an
10478         assertion.
10479         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
10480         * explow.c (promote_function_mode, promote_decl_mode): New.
10481         (promote_mode): Keep only the FOR_CALL == 0 case.
10482         * combine.c (setup_incoming_promotion): Remove test of
10483         promote_function_args.  Use promote_function_mode.
10484         * stmt.c (expand_value_return): Use promote_decl_mode.
10485         (expand_decl): Use promote_decl_mode.
10486
10487         * expr.c (store_constructor): Use promote_decl_mode.  Remove
10488         now write-only variable unsignedp.
10489         (expand_expr_real_1): Use promote_decl_mode.
10490         * expr.h (promote_function_mode, promote_decl_mode): New.
10491         (promote_mode): Remove last argument.
10492         * function.c (assign_temp): Drop last argument of promote_mode.
10493         (assign_parm_find_data_types): Use promote_function_mode.
10494         (assign_parm_setup_reg): Likewise.
10495         (expand_function_end): Use promote_function_mode.
10496         * calls.c (initialize_argument_information): Use promote_function_mode.
10497         (precompute_arguments): Use promote_mode instead of checking if
10498         only PROMOTE_FUNCTION_MODE is defined.
10499         (expand_call): When making sibcall decisions, use promote_function_mode.
10500         Below, remove an if for targetm.calls.promote_function_return and
10501         and use promote_function_mode.
10502         (emit_library_call_value_1): Use promote_function_mode, fix bug
10503         where promote_mode was passed FOR_CALL == 0 for a return value in an
10504         assertion.
10505         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
10506         * explow.c (promote_function_mode, promote_decl_mode): New.
10507         (promote_mode): Keep only the FOR_CALL == 0 case.
10508         * combine.c (setup_incoming_promotion): Remove test of
10509         promote_function_args.  Use promote_function_mode.
10510         * stmt.c (expand_value_return): Use promote_decl_mode.
10511         (expand_decl): Use promote_decl_mode.
10512
10513         * explow.c (promote_function_mode): Just call the target hook.
10514         * targhooks.c (default_promote_function_mode,
10515         default_promote_function_mode_always_promote): New.
10516         * targhooks.h (default_promote_function_mode,
10517         default_promote_function_mode_always_promote): Declare.
10518         * target.h (promote_function_args, promote_function_return): Remove.
10519         (promote_function_mode): New.
10520         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
10521         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10522         (TARGET_PROMOTE_FUNCTION_MODE): New.
10523         (TARGET_CALLS): Adjust.
10524         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
10525         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
10526
10527         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
10528         * config/s390/s390.c (s390_promote_function_mode): ... here,
10529         with pointer handling.
10530         (TARGET_PROMOTE_FUNCTION_MODE): Define.
10531         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10532
10533         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
10534         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
10535         with pointer handling.
10536         (TARGET_PROMOTE_FUNCTION_MODE): Define.
10537         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10538
10539         * config/sh/sh-protos.h (sh_promote_function_mode): New.
10540         * config/sh/sh.c (sh_promote_function_mode): New.
10541         (TARGET_PROMOTE_FUNCTION_MODE): Define.
10542         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10543
10544         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
10545         * config/cris/cris.c (cris_promote_function_mode): ... here.
10546         (TARGET_PROMOTE_FUNCTION_MODE): Define.
10547         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
10548
10549         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
10550         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
10551         (TARGET_PROMOTE_FUNCTION_MODE): Define.
10552         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
10553
10554         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
10555         * config/arm/arm.c (arm_promote_function_mode): ... here, without
10556         complex type handling.
10557         (TARGET_PROMOTE_FUNCTION_MODE): Define.
10558         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10559
10560         * config/pa/pa.c (pa_promote_function_mode): New.
10561         (TARGET_PROMOTE_FUNCTION_MODE): Define.
10562         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10563
10564         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
10565         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10566         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
10567         * config/xtensa/xtensa.c: Likewise.
10568         * config/stormy16/stormy16.c: Likewise.
10569         * config/iq2000/iq2000.c: Likewise.
10570         * config/rs6000/rs6000.c: Likewise.
10571         * config/picochip/picochip.c: Likewise.
10572         * config/arc/arc.c: Likewise.
10573         * config/mcore/mcore.c: Likewise.
10574         * config/score/score.c: Likewise.
10575         * config/mips/mips.c: Likewise.
10576         * config/bfin/bfin.c: Likewise.
10577         * config/ia64/ia64.c: Likewise (disabled though).
10578
10579         * config/frv/frv.h: Remove pointless remark.
10580
10581         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
10582         TARGET_PROMOTE_FUNCTION_ARGS,
10583         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
10584         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
10585
10586 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
10587
10588         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
10589         -floop-parallelize-all.
10590         * toplev.c (process_options): Rename flag_graphite_force_parallel to
10591         flag_loop_parallelize_all.
10592         * tree-ssa-loop.c (gate_graphite_transforms): Same.
10593         * graphite.c (graphite_transform_loops): Same.
10594         * common.opt: Same.
10595         * graphite-poly.c (apply_poly_transforms): Same.
10596
10597 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
10598
10599         PR tree-optimization/40914
10600         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
10601         if set, then check the delta field of the PMF record.
10602         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
10603         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
10604         call is stored in the delta.
10605
10606 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
10607
10608         * config/mips/mips.md (*clear_upper32_dext): New pattern.
10609
10610 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
10611
10612         * config/i386/bsd.h (ASM_BYTE): New define.
10613         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
10614         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
10615         .byte.  Use fputs or putc instead of fprintf where appropriate.
10616         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
10617         fputs or putc instead of fprintf where appropriate.
10618         * config/i386/i386elf.h: Ditto.
10619         * config/i386/sysv4.h: Ditto.
10620
10621         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
10622         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
10623         (*tls_global_dynamic_64): Ditto.
10624
10625 2009-07-31  Christian Bruel  <christian.bruel@st.com>
10626
10627         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
10628
10629 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10630
10631         * config/arm/arm.c (arm_arm_address_cost): Fix typo.
10632         Remove dead code for MINUS.
10633
10634 2009-07-31  Anthony Green  <green@moxielogic.com>
10635
10636         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
10637         $r12 in prologue.
10638         (moxie_expand_epilogue): Ditto for epilogue.
10639         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
10640         incoming arguments.
10641         (moxie_function_arg): Ditto.
10642         (moxie_pass_by_reference): Ditto.
10643         (moxie_arg_partial_bytes): Ditto.
10644         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
10645         (FUNCTION_ARG_ADVANCE) Ditto.
10646         (REG_PARM_STACK_SPACE) Ditto.
10647         (FUNCTION_ARG_REGNO_P) Dito.
10648
10649         * config.gcc: Add moxie linux config support.
10650         * gcc/config/moxie/uclinux.h: New file.
10651
10652 2009-07-31  DJ Delorie  <dj@redhat.com>
10653
10654         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
10655         (UNSPECV_SP_SWITCH_E): New.
10656         (sp_switch_1): Change to an unspec.
10657         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
10658         replace $r15.
10659         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
10660         reference the new stack's address
10661
10662 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10663
10664         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
10665         graphite-clast-to-gimple.o, graphite-dependences.o,
10666         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
10667         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
10668         (graphite-blocking.o,
10669         graphite-clast-to-gimple.o, graphite-dependences.o,
10670         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
10671         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
10672         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
10673         * cfgloop.h (struct loop): Add can_be_parallel field.
10674         * common.opt (fgraphite-identity): Moved up.
10675         (fgraphite-force-parallel): New flag.
10676         * graphite.c: Rewrite.
10677         * graphite.h: Rewrite.
10678         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
10679         after Graphite.
10680         * toplev.c (graphite_out_file): New file descriptor.
10681         (graphite_in_file): New.
10682         (process_options): flag_graphite_force_parallel cannot be used without
10683         Graphite.
10684         * tree-ssa-loop.c: Include toplev.h.
10685         (gate_graphite_transforms): Enable flag_graphite for
10686         flag_graphite_force_parallel.
10687
10688 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10689
10690         * ChangeLog.graphite: New.
10691         * graphite-blocking.c: New.
10692         * graphite-clast-to-gimple.c: New.
10693         * graphite-clast-to-gimple.h: New.
10694         * graphite-dependences.c: New.
10695         * graphite-dependences.h: New.
10696         * graphite-interchange.c: New.
10697         * graphite-poly.c: New.
10698         * graphite-poly.h: New.
10699         * graphite-ppl.c: New.
10700         * graphite-ppl.h: New.
10701         * graphite-scop-detection.c: New.
10702         * graphite-scop-detection.h: New.
10703         * graphite-sese-to-poly.c: New.
10704         * graphite-sese-to-poly.h: New.
10705         * sese.c: New.
10706         * sese.h: New.
10707
10708 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10709
10710         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
10711         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
10712
10713 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10714
10715         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
10716         (scev_is_linear_expression): Return false if the evolution is not
10717         affine multivariate.
10718
10719 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10720
10721         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
10722         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
10723
10724 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10725
10726         * tree-data-ref.c (debug_data_references): New.
10727         (debug_data_reference): New.
10728         * tree-data-ref.h (debug_data_references): Declared.
10729         (debug_data_reference): Declared.
10730
10731 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10732
10733         * tree-data-ref.c (stmt_simple_memref_p: Removed.
10734         * tree-data-ref.h (scop_p): Removed.
10735         (struct data_reference): Remove field scop.
10736         (DR_SCOP): Removed.
10737         (stmt_simple_memref_p): Removed.
10738
10739 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10740
10741         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
10742         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
10743         basic block empty.
10744
10745 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10746
10747         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
10748
10749 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10750
10751         * doc/invoke.texi (-fgraphite-identity): Documented.
10752
10753 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10754
10755         * tree-scalar-evolution.c: Fix comment.
10756         (instantiate_scev_1): Return unknow from scev instantiation if the
10757         result is not above instantiate_below.
10758
10759 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10760
10761         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
10762         static anymore.  Instantiate the symbols that may have been introduced
10763         by chrec_apply.
10764         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
10765         Declared.
10766
10767 2009-07-30  DJ Delorie  <dj@redhat.com>
10768
10769         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
10770         .vliw directive to VLIW sections.
10771
10772 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10773
10774         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
10775         New variables.
10776         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
10777         (AUTOHEADER): New variable.
10778         ($(srcdir)/cstamp-h.in): Use it.
10779
10780 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
10781             Pat Haugen  <pthaugen@us.ibm.com>
10782             Revital Eres <ERES@il.ibm.com>
10783
10784         * config/rs6000/vector.md (VEC_F): Add VSX support.
10785         (VEC_A): Ditto.
10786         (VEC_N): Ditto.
10787         (mov<mode>): Ditto.
10788         (vector_load_<mode>): Ditto.
10789         (vector_store_<mode>): Ditto.
10790         (vector GPR move split): Ditto.
10791         (vec_reload_and_plus_<mptrsize>): Ditto.
10792         (vec_reload_and_reg_<mptrsize>): Ditto.
10793         (add<mode>3): Ditto.
10794         (sub<mode>3): Ditto.
10795         (mul<mode>3): Ditto.
10796         (neg<mode>2): Ditto.
10797         (abs<mode>2): Ditto.
10798         (smin<mode>3): Ditto.
10799         (smax<mode>3): Ditto.
10800         (vector_eq<mode>): Ditto.
10801         (vector_gt<mode>): Ditto.
10802         (vector_ge<mode>): Ditto.
10803         (vector_gtu<mode>): Ditto.
10804         (vector_select_<mode>_uns): Ditto.
10805         (vector_eq_<mode>_p): Ditto.
10806         (vector_gt_<mode>_p): Ditto.
10807         (vector_ge_<mode>_p): Ditto.
10808         (vector_gtu_<mode>_p): Ditto.
10809         (cr6_test_for_zero): Ditto.
10810         (cr6_test_for_zero_reverse): Ditto.
10811         (cr6_test_for_lt): Ditto.
10812         (cr6_test_for_lt_reverse): Ditto.
10813         (xor<mode>3): Ditto.
10814         (ior<mode>3): Ditto.
10815         (and<mode>3): Ditto.
10816         (one_cmpl<mode>2): Ditto.
10817         (nor<mode>2): Ditto.
10818         (andc<mode>2): Ditto.
10819         (float<VEC_int<mode>2): Ditto.
10820         (unsigned_float<VEC_int><mode>2): Ditto.
10821         (fix_trunc<mode><VEC_int>2): Ditto.
10822         (fixuns_trunc<mode><VEC_int>2): Ditto.
10823         (vec_init<mode>):
10824         (vec_set<mode>): Ditto.
10825         (vec_extract<mode>): Ditto.
10826         (vec_interleave_highv4sf): Ditto.
10827         (vec_interleave_lowv4sf): Ditto.
10828         (vec_realign_load_<mode>): Ditto.
10829         (vec_shl_<mode>): Ditto.
10830         (vec_shr_<mode>): Ditto.
10831         (div<mode>3): New patterns for VSX.
10832         (vec_interleave_highv2df): Ditto.
10833         (vec_interleave_lowv2df): Ditto.
10834         (vec_pack_trunc_v2df): Ditto.
10835         (vec_pack_sfix_trunc_v2df): Ditto.
10836         (vec_pack_ufix_trunc_v2df): Ditto.
10837         (vec_unpacks_hi_v4sf): Ditto.
10838         (vec_unpacks_lo_v4sf): Ditto.
10839         (vec_unpacks_float_hi_v4si): Ditto.
10840         (vec_unpacks_float_lo_v4si): Ditto.
10841         (vec_unpacku_float_hi_v4si): Ditto.
10842         (vec_unpacku_float_lo_v4si): Ditto.
10843         (movmisalign<mode>): Ditto.
10844         (vector_ceil<mode>2): New patterns for vectorizing math library.
10845         (vector_floor<mode>2): Ditto.
10846         (vector_btrunc<mode>2): Ditto.
10847         (vector_copysign<mode>3): Ditto.
10848
10849         * config/rs6000/predicates.md (easy_vector_constant_msb): New
10850         predicate for setting the high bit in each word, used for copysign.
10851
10852         * config/rs6000/ppc-asm.h (f19): Whitespace.
10853         (f32-f63): Define if VSX.
10854         (v0-v31): Define if Altivec.
10855         (vs0-vs63): Define if VSX.
10856
10857         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
10858
10859         * config/rs6000/power7.md: New file, provide tuning parameters for
10860         -mcpu=power7.
10861
10862         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
10863         (rs6000_cpu_cpp_builtins): Ditto.
10864         (altivec_overloaded_builtins): Ditto.
10865         (altivec_resolve_overloaded_builtin): Ditto.
10866
10867         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
10868         debug switch to disable vectorizing simple math builtin
10869         functions.
10870
10871         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
10872         Vectorize simple math builtin functions.
10873         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
10874         hook to vectorize math builtins.
10875         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
10876         (rs6000_builtin_conversion): Add VSX/power7 support.
10877         (rs6000_builtin_vec_perm): Ditto.
10878         (vsplits_constant): Add support for loading up a vector constant
10879         with just the high bit set in each part.
10880         (rs6000_expand_vector_init): Add VSX/power7 support.
10881         (rs6000_expand_vector_set): Ditto.
10882         (rs6000_expand_vector_extract): Ditto.
10883         (rs6000_emit_move): Ditto.
10884         (bdesc_3arg): Ditto.
10885         (bdesc_2arg): Ditto.
10886         (bdesc_1arg): Ditto.
10887         (rs6000_expand_ternop_builtin): Ditto.
10888         (altivec_expand_builtin): Ditto.
10889         (rs6000_expand_unop_builtin): Ditto.
10890         (rs6000_init_builtins): Ditto.
10891         (altivec_init_builtins): Ditto.
10892         (builtin_function_type): Ditto.
10893         (rs6000_common_init_builtins): Ditto.
10894         (rs6000_handle_altivec_attribute); Ditto.
10895         (rs6000_mangle_type): Ditto.
10896         (rs6000_vector_mode_supported_p): Ditto.
10897         (rs6000_mode_dependent_address): Altivec addresses with AND -16
10898         are mode dependent.
10899
10900         * config/rs6000/vsx.md: New file for VSX support.
10901
10902         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
10903         identifing values with just the most significant bit set.
10904         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
10905         vectorized builtins.
10906
10907         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
10908         (UNSPEC_VRFIM): Delete.
10909         (splitter for loading up vector with most significant bit): New
10910         splitter for vectorizing copysign.
10911         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
10912         vectorizing simple math functions.
10913         (altivec_vrfip): Add support for vectorizing simple math functions.
10914         (altivec_vrfim): Ditto.
10915         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
10916
10917         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
10918         (power7.md, vsx.md): Include for power7 support.
10919         (copysigndf3): Use VSX instructions if -mvsx.
10920         (negdf2_fpr): Ditto.
10921         (absdf2_fpr): Ditto.
10922         (nabsdf2_fpr): Ditto.
10923         (adddf3_fpr): Ditto.
10924         (subdf3_fpr): Ditto.
10925         (muldf3_fpr): Ditto.
10926         (divdf3_fpr): Ditto.
10927         (fix_truncdfdi2_fpr): Ditto.
10928         (cmpdf_internal1): Ditto.
10929         (fred, fred_fpr): Convert into expander/insn to add VSX support.
10930         (btruncdf2, btruncdf2_fpr): Ditto.
10931         (ceildf2, ceildf2_fpr): Ditto.
10932         (floordf2, floordf2_fpr): Ditto.
10933         (floatdidf2, floatdidf2_fpr): Ditto.
10934         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
10935         (fmsubdf4_fpr): Ditto.
10936         (fnmadddf4_fpr_1): Ditto.
10937         (fnmadddf4_fpr_2): Ditto.
10938         (fnmsubdf4_fpr_1): Ditto.
10939         (fnmsubdf4_fpr_2): Ditto.
10940         (fixuns_truncdfdi2): Add expander for VSX support.
10941         (fix_truncdfdi2): Ditto.
10942         (fix_truncdfsi2): Ditto.
10943         (ftruncdf2): Ditto.
10944         (btruncsf2): Whitespace.
10945         (movdf_hardfloat32): Add support for VSX registers.
10946         (movdf_softfloat32): Ditto.
10947         (movdf_hardfloat64): Ditto.
10948         (movdf_hardfloat64_mfpgpr): Ditto.
10949         (movdf_softfloat64): Ditto.
10950         (movti splitters): Add check for vector registers supporting
10951         TImode in the future.
10952         (bpermd): Add power7 bpermd instruction.
10953
10954         * config/rs6000/altivec.h (vec_div): Define if VSX.
10955         (vec_mul): Ditto.
10956         (vec_msub): Ditto.
10957         (vec_nmadd): Ditto.
10958         (vec_nearbyint): Ditto.
10959         (vec_rint): Ditto.
10960         (vec_sqrt): Ditto.
10961         (all predicates): Use the generic builtin function, and not the V4SF
10962         specific function so that the predicates will work with VSX's V2DF.
10963         (vec_all_*): Ditto.
10964         (vec_any_*): Ditto.
10965
10966         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
10967         Document new VSX functions and types.
10968
10969         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
10970         switches.
10971
10972         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
10973         "wa", and "j" constraints.  Modify "v" to talk about Altivec
10974         instead of just vector.
10975
10976 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
10977
10978         PR debug/26475
10979         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
10980         location for phi arguments.
10981         (rewrite_update_phi_arguments): Find locations for reaching defs.
10982         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
10983         Add location to add_phi_arg calls.
10984         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
10985         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
10986         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
10987         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
10988         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
10989         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
10990         * tree-phinodes.c (make_phi_node): Initialize location.
10991         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
10992         (add_phi_arg): Add location parameter.
10993         (remove_phi_arg_num): Move location when moving phi argument.
10994         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
10995         location.
10996         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
10997         slpeel_update_phi_nodes_for_guard1,
10998         slpeel_update_phi_nodes_for_guard2,
10999         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
11000         vect_loop_versioning): Set locations.
11001         * tree-parloops.c (create_phi_for_local_result,
11002         transform_to_exit_first_loop, create_parallel_loop): Add locations.
11003         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
11004         * tree-vect-loop.c (get_initial_def_for_induction,
11005         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
11006         locations.
11007         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
11008         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
11009         (gimple_phi_arg_set_location): New.  Set locus.
11010         (gimple_phi_arg_has_location): New.  Check for locus.
11011         (redirect_edge_var_map_location): New.  Return locus from var_map.
11012         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
11013         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
11014         combining PHI arguments.
11015         (cond_store_replacement): Set location.
11016         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
11017         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
11018         scop_add_exit_phis_edge): Add locations.
11019         * tree-cfgcleanup.c (remove_forwarder_block,
11020         remove_forwarder_block_with_phi): Add locations.
11021         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
11022         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
11023         locations.
11024         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
11025         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
11026         flush_pending_stmts): Add source location.
11027         * lambda-code.c (perfect_nestify): Maintain location stack with argument
11028         stack to preserve locations.
11029         * tree-vect-stmts.c (vectorizable_load): Add location.
11030         * tree-inline.c (copy_phis_for_bb): Copy locus.
11031         (setup_one_parameter): Add call locus to inlined parameter stmts.
11032         (initialize_inlined_parameters): Pass in call location as parameter
11033         assignment locus.
11034         (tree_function_versioning): Pass location to setup_one_parameter.
11035         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
11036         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
11037         copy and edge lists.
11038         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
11039         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
11040         locus parameter and override the stmt default if provided.
11041         (new_elim_graph, clear_elim_graph, delete_elim_graph,
11042         elim_graph_add_edge, elim_graph_remove_succ_edge,
11043         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
11044         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
11045         eliminate_phi):  Add locus info in elimination graph for each edge and
11046         value copy.
11047         (insert_backedge_copies): Copy locus if present.
11048         * tree-flow.h (struct _edge_var_map): Add locus field.
11049         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
11050         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
11051         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
11052         locations.
11053         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
11054
11055 2009-07-30  Martin Jambor  <mjambor@suse.cz>
11056
11057         PR tree-optimization/40570
11058         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
11059         use inlining loops.
11060
11061 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
11062
11063         * ssa-loop-manip.c: Include langhooks.h.
11064         (rewrite_phi_with_iv): New.
11065         (rewrite_all_phi_nodes_with_iv): New.
11066         (canonicalize_loop_ivs): Move here from tree-parloops.c.
11067         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
11068         * tree-parloops.c (loop_parallel_p): Move out all conditions
11069         except dependency check.
11070         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
11071         (gen_parallel_loop): Call canonicalize_loop_ivs without
11072         reduction_list argument.
11073         (build_new_reduction): New.
11074         (gather_scalar_reductions): New.
11075         (try_get_loop_niter): New.
11076         (try_create_reduction_list): New.
11077         (parallleize_loops): Change the parallel conditions check.
11078         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
11079         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
11080
11081 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
11082
11083         * opt-functions.awk (opt_args): Allow argument to be enclosed in
11084         curly braces.
11085         * doc/options.texi (Option properties):  Mention new quoting syntax.
11086
11087 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
11088
11089         * config/alpha/alpha.c (alpha_start_function):
11090         Handle VMS_DEBUG_MAIN_POINTER
11091         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
11092         * doc/invoke.texi: Document -mdebug-main switch.
11093
11094 2009-07-29  Richard Henderson  <rth@redhat.com>
11095
11096         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
11097         (cgraph_create_edge_including_clones): Likewise.
11098         * tree-inline.c (copy_bb): Operate on the correct edges
11099         when updating the callgraph.
11100
11101 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
11102
11103         * config/alpha/vms-cc.c: Deleted.
11104         * config/alpha/vms-ld.c: Deleted.
11105         * config/alpha/t-vms64: Moved to config/vms
11106         * config/alpha/vms-crt0-64.c: Moved to config/vms
11107         * config/alpha/vms-crt0.c: Moved to config/vms
11108         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
11109         * config/alpha/vms-psxcrt0.c: Moved to config/vms
11110         * config/alpha/xm-vms.h: Moved to config/vms
11111         * config/alpha/x-vms: Moved to config/vms
11112         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
11113         config/vms/t-vms.
11114         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
11115         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
11116         (version): Set.
11117         * config/vms/t-vms64: Moved here from config/alpha
11118         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
11119         (argc,argv,envp): Enforce 32bit malloc'ing.
11120         * config/vms/vms-psxcrt0-64.c: Likewise.
11121         * config/vms/vms-crt0.c: Moved here from config/alpha.
11122         * config/vms/vms-psxcrt0.c: Likewise.
11123         * config/vms/vms-crtl-64.h: New file.
11124         * config/vms/vms-crtl.h: New file.
11125         * config/vms/vms.opt: New file.
11126         * config/vms/xm-vms64.h: New file.
11127         * config/vms/xm-vms.h: Moved here from config/alpha.
11128         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
11129         Set.
11130         * config/vms/x-vms: Moved here from config/alpha.
11131         (version, VMS_EXTRA_PARTS): Moved to t-vms.
11132         (vms-ld.o, vms-cc.o): Removed.
11133         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
11134
11135 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
11136
11137         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
11138         correct stack (obvious VMS fix).
11139
11140 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
11141
11142         * dwarf2out.c (output_file_names): Output VMS style file name, size,
11143         date, version info if VMS_DEBUGGING_INFO defined.
11144         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
11145         size, date calculating code moved here.
11146
11147 2009-07-29  Paul Brook  <paul@codesourcery.com>
11148
11149         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
11150         do_push/do_pop.
11151
11152 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
11153
11154         PR target/40577
11155         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
11156         to DImode when generating insq_le insn.
11157
11158 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
11159
11160         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
11161         New macro set for VMS_DEBUGGGING_INFO.
11162         (AT_string_form): Use it.
11163
11164 2009-07-28  DJ Delorie  <dj@redhat.com>
11165
11166         * config/mep/mep.c (vtext_section): New.
11167         (vftext_section): New.
11168         (ftext_section): New.
11169         (mep_select_section): Add support for functions.
11170         (mep_unique_section): Likewise.
11171         (mep_asm_init_sections): Likewise.
11172         (mep_encode_section_info): Remove it from here.
11173
11174         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
11175
11176 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
11177
11178         * tree.h (TREE_DEPRECATED): Document it is used for types too.
11179         (TYPE_VECTOR_OPAQUE): Use default_def_flag
11180
11181 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
11182
11183         * dwarf2out.c (output_file_names): Test new macro
11184         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
11185         (add_comp_dir_attribute): Likewise.
11186
11187 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
11188
11189         * config/i386/mingw-w64.h (LINK_SPEC): Add
11190         separating space between commands.
11191
11192 2009-07-28  Jan Hubicka  <jh@suse.cz>
11193
11194         PR tree-optimization/40759
11195         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
11196         for renaming.
11197
11198 2009-07-27  DJ Delorie  <dj@redhat.com>
11199
11200         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
11201         types are dword-aligned.
11202         (mep_expand_va_start): Likewise.
11203
11204 2009-07-27  Olivier Hainque  <hainque@adacore.com>
11205             Douglas B Rupp  <rupp@gnat.com>
11206
11207         * convert.c (convert_to_pointer): Don't assume the target
11208         pointer type is POINTER_SIZE long. Fetch its precision instead.
11209
11210 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
11211
11212         * system.h (fopen): Undefine if macro.
11213
11214 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
11215
11216         * dwarf2out.c (output_cfi_p): Removed.
11217         (output_cfis): New function.
11218         (output_fde): New function, split from output_call_frame_info.
11219         (output_call_frame_info): Use it.
11220         (dwarf2out_switch_text_section): Use output_cfis.
11221
11222 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
11223
11224         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
11225         TARGET_BI_ARCH is specified without enabling SJLJ.
11226         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
11227         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
11228
11229 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
11230
11231         * arm.md (negdi2): Use DImode if forcing a value into a register.
11232
11233 2009-07-26  Ira Rosen  <irar@il.ibm.com>
11234
11235         PR tree-optimization/40801
11236         * tree-vect-stmts.c (vectorizable_call): Get previous copy
11237         of vector operand from the previous copy of vector statement.
11238         Pass the correct definition type value to
11239         vect_get_vec_def_for_stmt_copy().
11240
11241 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11242
11243         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
11244         const char ** conversion.
11245
11246 2009-07-25 David Daney <ddaney@caviumnetworks.com>
11247
11248         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
11249         fancy_abort() if !ENABLE_ASSERT_CHECKING.
11250         (gcc_unreachable): Invoke __builtin_unreachable() if
11251         !ENABLE_ASSERT_CHECKING.
11252
11253 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
11254
11255         PR rtl-optimization/40445
11256         * emit-rtl.c (next_nonnote_insn_bb): New function.
11257         * rtl.h (next_nonnote_insn_bb): Declare new function.
11258         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
11259         with no successors that is the successor of the ENTRY_BLOCK.
11260         Continue from the top after removing an empty fallthrough block.
11261         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
11262         of next_nonnote_insn.
11263
11264 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
11265
11266         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
11267
11268 2009-07-25  Martin Jambor  <mjambor@suse.cz>
11269
11270         * c-common.c (c_common_attribute_table): New element for noclone.
11271         (handle_noclone_attribute): New function. Forward-declare.
11272         * tree-inline.c (tree_versionable_function_p): Check for noclone
11273         attribute.
11274         * doc/extend.texi (Labels as Values): Document need for noclone.
11275         (Function Attributes): Document noclone attribute.
11276
11277 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
11278
11279         PR rtl-optimization/34999
11280         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
11281         and dw_fde_switched_cold_to_hot fields.
11282         (output_cfi_p): New function.
11283         (output_call_frame_info): If fde->dw_fde_switched_sections,
11284         output 2 FDEs instead of one with corrupted header.
11285         (dwarf2out_do_cfi_startproc): New function.
11286         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
11287         and fde->dw_fde_switched_cold_to_hot.
11288         (dwarf2out_switch_text_section): Compute
11289         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
11290         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
11291         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
11292         Otherwise, compute fde->dw_fde_switch_cfi.
11293
11294 2009-07-24  Cary Coutant  <ccoutant@google.com>
11295
11296         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
11297
11298 2009-07-24  Cary Coutant  <ccoutant@google.com>
11299
11300         * cfghooks.c (split_block): Copy discriminator to new block.
11301         * tree-cfg.c (assign_discriminator): Check location of last
11302         instruction in block as well as first.
11303
11304 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
11305
11306         * config/i386/linux.c: Use fputs or putc instead of fprintf
11307         where appropriate.
11308         * config/i386/gas.h: Ditto.
11309         * config/i386/x86-64.h: Ditto.
11310         * config/i386/att.h: Ditto.
11311
11312 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11313
11314         * expmed.c (emit_store_flag): Use a recursive call to optimize the
11315         xor case.
11316
11317 2009-07-24  Martin Jambor  <mjambor@suse.cz>
11318
11319         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
11320         (ipa_push_func_to_list_1): Declare.
11321         (ipa_push_func_to_list): New function.
11322
11323         * ipa-prop.c (ipa_push_func_to_list_1): New function.
11324         (ipa_init_func_list): Call ipa_push_func_to_list_1.
11325         (ipa_push_func_to_list): Removed.
11326         (ipa_pop_func_from_list): Clear node_enqueued flag.
11327
11328 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
11329
11330         * config/s390/s390.c (override_options): Default
11331         max-unrolled-insns to 100 for z10 tuning.
11332
11333 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
11334
11335         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
11336         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
11337         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
11338         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
11339         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
11340         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
11341         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
11342
11343 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
11344
11345         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
11346         use default set in mingw32.h header.
11347         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
11348         64-bit /mingw/include path.
11349         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
11350         path.
11351
11352 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
11353
11354         PR rtl-optimization/40209
11355         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
11356
11357 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
11358
11359         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
11360         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
11361         with the rest of string where appropriate.  Use fputs or putc
11362         instead of fprintf where appropriate.
11363
11364 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
11365             Pat Haugen  <pthaugen@us.ibm.com>
11366             Revital Eres <ERES@il.ibm.com>
11367
11368         * config/rs6000/vector.md: New file.  Move most of the vector
11369         expander support here from altivec.md to allow for the VSX vector
11370         unit in the future.  Add support for secondary_reload patterns.
11371         Rewrite the patterns for vector comparison, and vector comparison
11372         predicate instructions so that the RTL expresses the desired
11373         behavior, instead of using unspec.
11374
11375         * config/rs6000/constraints.md ("f" constraint): Use
11376         rs6000_constraints to hold the precalculated register class.
11377         ("d" constraint): Ditto.
11378         ("wd" constraint): New constraint for VSX.
11379         ("wf" constraint): Ditto.
11380         ("ws" constraint): Ditto.
11381         ("wa" constraint): Ditto.
11382         ("wZ" constraint): Ditto.
11383         ("j" constraint): Ditto.
11384
11385         * config/rs6000/predicates.md (vsx_register_operand): New
11386         predicate for VSX.
11387         (vfloat_operand): New predicate for vector.md.
11388         (vint_operand): Ditto.
11389         (vlogical_operand): Ditto.
11390         (easy_fp_constant): If VSX, 0.0 is an easy constant.
11391         (easy_vector_constant): Add VSX support.
11392         (altivec_indexed_or_indirect_operand): New predicate for
11393         recognizing Altivec style memory references with AND -16.
11394
11395         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
11396         for vector secondary reload support.
11397         (rs6000_vector_reg_class): Delete, replacing it with
11398         rs6000_constraints.
11399         (rs6000_vsx_reg_class): Ditto.
11400         (rs6000_constraints): New array to hold the register classes of
11401         each of the register constraints that can vary at runtime.
11402         (builtin_mode_to_type): New static array for builtin function type
11403         creation.
11404         (builtin_hash_table): New static hash table for builtin function
11405         type creation.
11406         (TARGET_SECONDARY_RELOAD): Define target hook.
11407         (TARGET_IRA_COVER_CLASSES): Ditto.
11408         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
11409         registers are 128 bits if VSX memory reference instructions are used.
11410         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
11411         unit is being used.
11412         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
11413         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
11414         Print several of the scheduling related parameters.
11415         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
11416         rs6000_constraints instead of rs6000_vector_reg_class.  Move
11417         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
11418         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
11419         Altivec.  Add VSX support.  Setup for secondary reload support on
11420         Altivec/VSX registers.
11421         (rs6000_override_options): Make power7 set the scheduling groups
11422         like the power5.  Add support for new debug switches to override
11423         the scheduling defaults.  Temporarily disable -mcpu=power7 from
11424         setting -mvsx.  Add support for debug switches -malways-hint,
11425         -msched-groups, and -malign-branch-targets.
11426         (rs6000_buitlin_conversion): Add support for returning unsigned
11427         vector conversion functions to fix regressions due to stricter
11428         type checking.
11429         (rs6000_builtin_mul_widen_even): Ditto.
11430         (rs6000_builtin_mul_widen_odd): Ditto.
11431         (rs6000_builtin_vec_perm): Ditto.
11432         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
11433         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
11434         to zero a register.
11435         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
11436         generated upstream.
11437         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
11438         VSX types for bit operations.  Changes to accomidate vector.md.
11439         (bdesc_2arg): Ditto.
11440         (bdesc_1arg): Ditto.
11441         (struct builtin_description_predicates): Rewrite predicate
11442         handling so that RTL describes the operation, instead of passing
11443         the instruction to be used as a string argument.
11444         (bdesc_altivec_preds): Ditto.
11445         (altivec_expand_predicate_builtin): Ditto.
11446         (altivec_expand_builtin): Ditto.
11447         (rs6000_expand_ternop_builtin): Use a switch instead of an if
11448         statement for vsldoi support.
11449         (altivec_expand_ld_builtin): Change to use new names from vector.md.
11450         (altivec_expand_st_builtin): Ditto.
11451         (paired_expand_builtin): Whitespace changes.
11452         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
11453         builtin_mode_to_type table for secondary reload.  Call
11454         builtin_function_type to build random builtin functions.
11455         (altivec_init_builtins): Change to use builtin_function_type to
11456         create builtin function types dynamically as we need them.
11457         (builtin_hash_function): New support for hashing the tree types
11458         for builtin function as we need it, rather than trying to build
11459         all of the trees that we need.  Add initial preliminary VSX support.
11460         (builtin_function_type): Ditto.
11461         (builtin_function_eq): Ditto.
11462         (builtin_hash_struct): Ditto.
11463         (rs6000_init_builtins): Ditto.
11464         (rs6000_common_init_builtins): Ditto.
11465         (altivec_init_builtins): Ditto.
11466         (rs6000_common_init_builtins): Ditto.
11467         (enum reload_reg_type): New enum for simplifing reg classes.
11468         (rs6000_reload_register_type): Simplify register classes into GPR,
11469         Vector, and other registers.  Altivec and VSX addresses in reload.
11470         (rs6000_secondary_reload_inner): Ditto.
11471         (rs6000_ira_cover_classes): New target hook, that returns the
11472         appropriate cover classes, based on -mvsx being used or not.
11473         (rs6000_secondary_reload_class): Add VSX support.
11474         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
11475         (get_vsel_insn): Ditto.
11476         (rs6000_emit_vector_compare): Rewrite vector conditional support
11477         so that where we can, we use RTL operators, instead of blindly use
11478         UNSPEC.
11479         (rs6000_emit_vector_select): Ditto.
11480         (rs6000_emit_vector_cond_expr): Ditto.
11481         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
11482         (create_TOC_reference): Add -mdebug=addr support.
11483         (emit_frame_save): VSX loads/stores need register indexed addressing.
11484
11485         * config/rs6000/rs6000.md: Include vector.md.
11486
11487         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
11488
11489         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11490         support for V2DI, V2DF in logical, permute, select operations.
11491
11492         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
11493         switch for vsx/power7.
11494         (-mvsx-scalar-memory): Ditto.
11495         (-mvsx-align-128): Ditto.
11496         (-mallow-movmisalign): Ditto.
11497         (-mallow-df-permute): Ditto.
11498         (-msched-groups): Ditto.
11499         (-malways-hint): Ditto.
11500         (-malign-branch-targets): Ditto.
11501
11502         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
11503         hook instead.
11504         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
11505         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
11506         (rs6000_vector_reg_class): Delete.
11507         (rs6000_vsx_reg_class): Ditto.
11508         (enum rs6000_reg_class_enum): New enum for the constraints that
11509         vary based on target switches.
11510         (rs6000_constraints): New array to hold the register class for all
11511         of the register constraints that vary based on the switches used.
11512         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
11513         (enum rs6000_builtins): Add unsigned varients for the builtin
11514         declarations returned by target hooks for expanding multiplies,
11515         select, and permute operations.  Add VSX builtins.
11516         (enum rs6000_builtin_type_index): Add entries for VSX.
11517         (V2DI_type_node): Ditto.
11518         (V2DF_type_node): Ditto.
11519         (unsigned_V2DI_type_node): Ditto.
11520         (bool_long_type_node): Ditto.
11521         (intDI_type_internal_node): Ditto.
11522         (uintDI_type_internal_node): Ditto.
11523         (double_type_internal_node): Ditto.
11524
11525         * config/rs6000/altivec.md (whole file): Move all expanders to
11526         vector.md from altivec.md.  Rename insn matching functions to be
11527         altivec_foo.
11528         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
11529         (altivec_vcmp*): Ditto.
11530         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
11531         (VM): New iterator for moves that includes the VSX types.
11532         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
11533         (altivec_vperm_<mode>_uns): New, for unsigned types.
11534         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
11535         (altivec_eq<mode>): Ditto.
11536         (altivec_gt<mode>): Ditto.
11537         (altivec_gtu<mode>): Ditto.
11538         (altivec_eqv4sf): Ditto.
11539         (altivec_gev4sf): Ditto.
11540         (altivec_gtv4sf): Ditto.
11541         (altivec_vcmpbfp_p): Ditto.
11542
11543 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
11544
11545         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
11546         unsigned HWI.
11547
11548 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
11549
11550         PR target/40832
11551         * config/i386/i386.c (output_387_ffreep): Rewrite to use
11552         ASM_SHORT instead of .word.
11553         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
11554         instead of .word in asm template.
11555
11556 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
11557
11558         PR target/37488
11559         * ira-lives.c (bb_has_abnormal_call_pred): New function.
11560         (process_bb_node_lives): Use it.
11561
11562         * ira.c (setup_cover_and_important_classes): Don't setup
11563         ira_important_class_nums.  Add cover classes to the end of
11564         important classes.
11565         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
11566         New.
11567         (find_reg_class_closure): Use reorder_important_classes.
11568
11569         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
11570
11571         * config/i386/i386.c (i386_ira_cover_classes): New function.
11572         (TARGET_IRA_COVER_CLASSES): Redefine.
11573
11574         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
11575         importance of order of cover classes in the array.
11576
11577 2009-07-22  Diego Novillo  <dnovillo@google.com>
11578
11579         * tree-pass.h (TDF_EH): Define.
11580         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
11581         contains TDF_EH, print the EH region number holding GS.
11582         * tree-dump.c (dump_options): Add "eh".
11583         * doc/invoke.texi: Document it.
11584
11585 2009-07-22  Doug Kwan  <dougkwan@google.com>
11586
11587         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
11588
11589 2009-07-22  Michael Matz  <matz@suse.de>
11590
11591         PR tree-optimization/35229
11592         PR tree-optimization/39300
11593
11594         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
11595         (inhibit_phi_insertion): New function.
11596         (insert_into_preds_of_block): Call it for REFERENCEs.
11597         (init_pre): Initialize and finalize scalar evolutions.
11598         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
11599
11600 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
11601
11602         * config/i386/predicates.md (zero_extended_scalar_load_operand):
11603         Use CONST_VECTOR_NUNITS to determine number of elements.
11604
11605 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
11606
11607         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
11608         (U, W): Constraints are now deprecated and will be removed if we
11609         run out of letters.
11610         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
11611         the file.
11612         ("prefetch"): Add the stcmh instruction for prefetching.
11613         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
11614         changes.
11615         (s390_short_displacement): Return always true if compiling for
11616         machines not providing the long displacement facility.
11617         (s390_mem_constraint): Support the new constraint letter Z.
11618         (s390_check_qrst_address): New function.
11619
11620 2009-07-21  DJ Delorie  <dj@redhat.com>
11621
11622         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
11623         alone too.
11624
11625 2009-07-21  Jason Merrill  <jason@redhat.com>
11626
11627         * c-common.c (max_tinst_depth): Increase default to 1024.
11628
11629 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
11630
11631         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
11632         (vec_unpacku_float_lo_v4si): Ditto.
11633
11634 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
11635
11636         PR target/40811
11637         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
11638         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
11639         (builtin_description): Add __builtin_ia32_cvtudq2ps.
11640         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
11641
11642 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
11643
11644         PR tree-optimization/40813
11645         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
11646         it.
11647
11648 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
11649
11650         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
11651         with a NOP_EXPR if needed.
11652
11653 2009-07-21  Paul Brook <paul@codesourcery.com>
11654
11655         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
11656         Terminate debug dump with newline.
11657
11658 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11659
11660         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
11661         Cast "1" to unsigned HOST_WIDE_INT.
11662         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
11663         deposit length to the maximum length - lsb.  Extend length if
11664         HOST_BITS_PER_WIDE_INT is 32.
11665
11666 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
11667
11668         * cgraph.h (constant_pool_htab): New function.
11669         (constant_descriptor_tree): Move from varasm.c.
11670         * varasm.c (constant_pool_htab): New function.
11671         (constant_descriptor_tree): Move to cgraph.h.
11672
11673 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
11674
11675         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
11676
11677 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
11678
11679         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
11680         $(VARRAY_H).
11681
11682 2009-07-20  Xinliang David Li  <davidxl@google.com>
11683
11684         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
11685
11686 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
11687
11688         * config/mips/mips.md (move_type): Add arith.
11689         (type): Handle arith.
11690         (zero_extendsidi2): Rename this into ...
11691         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
11692         (zero_extendsidi2): New expander.
11693         (*zero_extendsidi2_dext): New pattern.
11694
11695 2009-07-20  Nick Clifton  <nickc@redhat.com>
11696
11697         * config.gcc (mips64-*-*): Add definition of tm_defines in order
11698         to set MIPS_ABI_DEFAULT.
11699         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
11700
11701 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
11702
11703         * tree-object-size.c (addr_object_size): Handle unions with
11704         array in it as last field of structs in __bos (, 1) as __bos (, 0).
11705
11706         PR tree-optimization/40792
11707         * tree.c (build_function_type_skip_args): Remove bogus assert.
11708
11709 2009-07-20  Jan Hubicka  <jh@suse.cz>
11710             Martin Jambor  <mjambor@suse.cz>
11711
11712         * cgraph.h (combined_args_to_skip): New field.
11713         * cgraph.c (cgraph_create_virtual_clone): Properly handle
11714         combined_args_to_skip and args_to_skip.
11715         * tree-inline.c (update_clone_info): New function.
11716         (tree_function_versioning): Call update_clone_info.
11717         * cgraphunit.c (cgraph_materialize_clone): Dump materialized
11718         functions.
11719         (cgraph_materialize_all_clones): More extensive dumping, working
11720         with combined_args_to_skip rather than args_to_skip.
11721
11722 2009-07-20  Ira Rosen  <irar@il.ibm.com>
11723
11724         * tree-vectorizer.h (vectorizable_condition): Add parameters.
11725         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
11726         (get_initial_def_for_reduction): Likewise.
11727         (vectorizable_reduction): Skip the check of first operand in case
11728         of COND_EXPR. Add check that it is outer loop vectorization if
11729         nested cycle was detected. Call vectorizable_condition() for
11730         COND_EXPR. If reduction epilogue cannot be created do not fail for
11731         nested cycles (if it is not double reduction). Assert that there
11732         is only one type in the loop in case of COND_EXPR. Call
11733         vectorizable_condition() to vectorize COND_EXPR.
11734         * tree-vect-stmts.c (vectorizable_condition): Update comment.
11735         Add parameters. Allow nested cycles if called from
11736         vectorizable_reduction(). Use reduction vector variable if provided.
11737         (vect_analyze_stmt): Call vectorizable_reduction() before
11738         vectorizable_condition().
11739         (vect_transform_stmt): Update call to vectorizable_condition().
11740
11741 2009-07-20  Christian Bruel  <christian.bruel@st.com>
11742
11743         * config/sh/sh.opt (-mfmovd): Resurrect and document.
11744         * doc/invoke.texi (-mfmovd): Likewise.
11745         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
11746
11747 2009-07-20  Jan Hubicka  <jh@suse.cz>
11748
11749         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
11750         when handling SSA name.
11751
11752 2009-07-19  Jan Hubicka  <jh@suse.cz>
11753
11754         PR tree-optimization/40676
11755         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
11756         virtual PHIs in empty BBs.
11757
11758 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
11759
11760         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
11761         re-expanded the compound use gen_lowpart instead to convert to the
11762         desired mode.
11763
11764 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
11765
11766         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
11767         OUTER_CONST arguments.
11768         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
11769         the new wider mode will be masked off.
11770         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
11771
11772 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
11773
11774         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
11775         high-order bits are zero.
11776
11777 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
11778
11779         * combine.c (simplify_shift_const_1): Split code to determine
11780         shift_mode into ...
11781         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
11782         new bits shifted in are identical to the old sign bit.
11783
11784 2009-07-18  Richard Guenther  <rguenther@suse.de>
11785
11786         PR c/40787
11787         * gimplify.c (gimplify_call_expr): Reject code using results from
11788         functions returning void.
11789
11790 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
11791
11792         * doc/md.texi: Document the new PowerPC "es" constraint.
11793         Document that "m" can include automodified addresses on this target,
11794         and explain how %U must be used.  Extend the "Q" and "Z" documentation
11795         to suggest "es" as well as "m".
11796         * config/rs6000/constraints.md (es): New memory constraint.
11797         (Q, Z): Update strings to match new documentation.
11798
11799 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
11800
11801         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
11802         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
11803         * config/rs6000/predicates.md (volatile_mem_operand): Use
11804         offsettable_nonstrict_memref_p.
11805         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
11806         (*floatunssidf2_internal): Likewise.
11807         (*fix_truncdfsi2_internal): Likewise.
11808         (*fix_trunctfsi2_internal): Likewise.
11809
11810 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
11811
11812         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
11813         atmega32u2 devices.
11814         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
11815
11816 2009-07-17  Richard Guenther  <rguenther@suse.de>
11817
11818         PR c/40401
11819         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
11820         (pass_warn_unused_result): Likewise.
11821         (TODO_set_props): Remove.
11822         * omp-low.c (diagnose_omp_structured_block_errors): Change to
11823         run as a pass.
11824         (pass_diagnose_omp_blocks): Define.
11825         * c-decl.c (pop_file_scope): Do not finalize the CU here.
11826         (c_gimple_diagnostics_recursively): Remove.
11827         (finish_function): Do not call it.
11828         (c_write_global_declarations): Continue after errors.
11829         Finalize the CU here.
11830         * c-gimplify.c (c_genericize): Do not gimplify here.
11831         * c-common.c (c_warn_unused_result): Move ...
11832         * tree-cfg.c (do_warn_unused_result): ... here.
11833         (run_warn_unused_result): New function.
11834         (gate_warn_unused_result): New function.
11835         (pass_warn_unused_result): New pass.
11836         * c-common.h (c_warn_unused_result): Remove.
11837         * flags.h (flag_warn_unused_result): Declare.
11838         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
11839         * opts.c (flag_warn_unused_result): Initialize to false.
11840         * toplev.c (compile_file): Add comment.
11841         * omp-low.c (create_omp_child_function): Do not register
11842         the function with the frontend.
11843         (diagnose_omp_structured_block_errors): Prepare to be
11844         called as optimization pass.
11845         (gate_diagnose_omp_blocks): New function.
11846         (pass_diagnose_omp_blocks): New pass.
11847         * cgraph.h (cgraph_optimize): Remove.
11848         (cgraph_analyze_function): Likewise.
11849         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
11850         * cgraphunit.c (cgraph_lower_function): Lower nested functions
11851         before their parents here.
11852         (cgraph_finalize_function): Not here.
11853         (cgraph_analyze_function): Gimplify functions here.
11854         (cgraph_finalize_compilation_unit): Continue after errors.
11855         Optimize the callgraph from here.
11856         (cgraph_optimize): Make static.
11857         * langhooks.c (write_global_declarations): Finalize the CU.
11858         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
11859         (gimplify_function_tree): Assert we gimplify only once.
11860         Set PROP_gimple_any property.
11861         * tree-nested.c (gimplify_all_functions): New function.
11862         (lower_nested_functions): Gimplify all nested functions.
11863         * gimple.h (diagnose_omp_structured_block_errors): Remove.
11864         * passes.c (init_optimization_passes): Add pass_warn_unused_result
11865         and pass_diagnose_omp_blocks after gimplification.  Do not
11866         set TODO_set_props on all_lowering_passes.
11867         (execute_one_pass): Do not handle TODO_set_props.
11868         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
11869         (gimplify.o): Add tree-pass.h dependency.
11870         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
11871         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
11872         (unsave_r): Likewise.
11873         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
11874         temporary variable.
11875
11876 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
11877
11878         * doc/service.texi (Service): Restore previously removed link,
11879         which isn't broken after all.
11880
11881 2009-07-17  Richard Guenther  <rguenther@suse.de>
11882
11883         PR tree-optimization/40321
11884         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
11885         PHI nodes to the maximal set.
11886         (make_values_for_phi): Add PHI arguments to the maximal set.
11887         (execute_pre): Dump PHI_GEN and the maximal set.
11888
11889 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
11890
11891         PR c++/40780
11892         * gimplify.c (gimplify_conversion): Don't change non-conversions into
11893         VIEW_CONVERT_EXPR.
11894
11895 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
11896
11897         * doc/extend.texi (Nested Functions): Replace broken link with
11898         textual reference.
11899         * doc/service.texi (Service): Remove broken link.
11900
11901 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
11902
11903         PR bootstrap/40781
11904         * builtins.c (expand_builtin_memcmp): Use loc instead of
11905         EXPR_LOCATION (exp).
11906         (expand_builtin_strncmp): Likewise.
11907
11908 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
11909             Manuel López-Ibáñez  <manu@gcc.gnu.org>
11910
11911         PR 40435
11912         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
11913         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
11914         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
11915         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
11916         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
11917         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
11918         tree-inline.c, c-common.c, c-common.h, gimple.c,
11919         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
11920         convert.c: Add location argument to fold_{unary,binary,ternary},
11921         fold_build[123], build_call_expr, build_size_arg,
11922         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
11923         fold_build1_initializer, fold_build2_initializer,
11924         fold_build3_initializer, fold_build_call_array,
11925         fold_build_call_array_initializer, fold_single_bit_test,
11926         omit_one_operand, omit_two_operands, invert_truthvalue,
11927         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
11928         combine_comparisons, fold_builtin_*, fold_call_expr,
11929         build_range_check, maybe_fold_offset_to_address, round_up,
11930         round_down.
11931
11932 2009-07-16  Jason Merrill  <jason@redhat.com>
11933
11934         PR libstdc++/37907
11935         * c-common.c (c_common_reswords): Add __is_standard_layout
11936         and __is_trivial.
11937         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
11938         * doc/implement-cxx.texi: New.
11939         * doc/gcc.texi: Include it.
11940
11941 2009-07-16  DJ Delorie  <dj@redhat.com>
11942
11943         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
11944         compares that may be indirectly affected by previous instructions.
11945
11946 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11947
11948         * builtins.c (do_mpc_arg2): New.
11949         (fold_builtin_2): Fold builtin cpow.
11950         * real.h (HAVE_mpc_pow): New.
11951
11952 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
11953
11954         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
11955         comparison to skip unprofitable schedule
11956
11957 2009-07-16  Simon Baldwin  <simonb@google.com>
11958
11959         * gcc.c (option_map): New flag -no-canonical-prefixes.
11960         * (display_help): Print help text for new flag.
11961         * (process_command): Move options translation and language specifics
11962         and handle new flag early.  Use it to set a function pointer to a
11963         prefix builder.  Replace make_relative_prefix calls with calls to
11964         the function pointed to.  Ignore new flag in regular options handling.
11965         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
11966
11967 2009-07-15  DJ Delorie  <dj@redhat.com>
11968
11969         * config/mep/mep.md (sibcall_internal): Change register to avoid
11970         argument registers.
11971         (sibcall_value_internal): Likewise.
11972
11973 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
11974
11975         PR rtl-optimization/40710
11976         * resource.c (mark_target_live_regs): Reset DF problem to LR.
11977
11978 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
11979
11980         * config/mips/mips.md (*extenddi_truncate<mode>,
11981         *extendsi_truncate<mode>): Change type attribute to move_type
11982         with shift_shift.  Split out code handling exts from here ...
11983         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
11984         pattern.
11985         (*extendhi_truncateqi): Change type attribute to move_type with
11986         shift_shift.  Split out code handling exts from here ...
11987         (*extendhi_truncateqi_exts): ... to this new pattern.
11988
11989 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
11990
11991         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
11992         instead of "and" with inverted sign bit mask value.  Use
11993         "nonimmediate_operand" for operand 1 and operand 2 predicate.
11994         Allocate registers only for operand 4 and operand 5.
11995
11996 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
11997
11998         PR middle-end/40747
11999         * fold-const.c (fold_cond_expr_with_comparison): When folding
12000         < and <= to MIN, make sure the MIN uses the same type as the
12001         comparison's operands.
12002
12003 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
12004
12005         * arm.md (ior_xor): New code iterator.
12006         (split for ior/xor with shift and zero-extend): New split pattern.
12007         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
12008
12009 2009-07-15  Richard Guenther  <rguenther@suse.de>
12010
12011         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
12012         offset member.
12013
12014 2009-07-15  Richard Guenther  <rguenther@suse.de>
12015
12016         PR middle-end/40753
12017         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
12018
12019 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
12020
12021         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
12022         handle 2.6.30 kernel.
12023
12024 2009-07-15  DJ Delorie  <dj@redhat.com>
12025
12026         * config/mep/mep.md (sibcall_internal): Change register to allow
12027         for 24-bit addresses.
12028         (sibcall_value_internal): Likewise.
12029
12030 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
12031
12032         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
12033         that are enabled/disabled by the flags introduced by a previous patch.
12034
12035 2009-07-14  DJ Delorie  <dj@redhat.com>
12036
12037         * config/mep/mep.md (sibcall_internal): Include non-toggling
12038         non-jmp case.
12039         (sibcall_value_internal): Likewise.
12040
12041 2009-07-14  Taras Glek  <tglek@mozilla.com>
12042             Rafael Espindola  <espindola@google.com>
12043
12044         * doc/sourcebuild.texi: Document install-plugin target.
12045         * configure.ac: Added install-plugin target to language makefiles.
12046         * configure: Regenerate.
12047         * Makefile.in (install-plugin): Install more headers,
12048         depend on lang.install-plugin.
12049
12050 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12051
12052         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
12053         translation.
12054
12055 2009-07-14  DJ Delorie  <dj@redhat.com>
12056
12057         * config/mep/mep.c (mep_vliw_jmp_match): New function.
12058         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
12059         * config/mep/mep.md (sibcall_internal): Change test from
12060         mep_vliw_mode_match to mep_vliw_jmp_match.
12061         (sibcall_value_internal): Likewise.
12062
12063 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
12064
12065         * config/i386/sse.md (copysign<mode>3): New expander.
12066         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
12067         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
12068         Use ix86_build_const_vector.
12069         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
12070         IX86_BUILTIN_CPYSGNPD.
12071         (builtin_description): Add __builtin_ia32_copysignps and
12072         __builtin_ia32_copysignpd.
12073         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
12074         and BUILT_IN_COPYSIGNF.
12075
12076 2009-07-13  Jason Merrill  <jason@redhat.com>
12077
12078         * builtins.c (can_trust_pointer_alignment): New fn.
12079         (get_pointer_alignment): Factor it out from here.
12080         * tree.h: Declare it.
12081
12082 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
12083
12084         * config/rs6000/predicates.md (offsettable_mem_operand): Test
12085         RTX_AUTOINC class.
12086
12087 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
12088
12089         PR debug/40705
12090         PR c++/403057
12091         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
12092
12093 2009-07-14  Richard Guenther  <rguenther@suse.de>
12094             Andrey Belevantsev <abel@ispras.ru>
12095
12096         PR middle-end/40745
12097         * cfgexpand.c (partition_stack_vars): Do not bother to update
12098         alias information when not optimizing.
12099
12100 2009-07-14  Richard Guenther  <rguenther@suse.de>
12101             Andrey Belevantsev <abel@ispras.ru>
12102
12103         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
12104         (pt_solution_set): Likewise.
12105         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
12106         * tree-ssa-structalias.c (pt_solution_set): New function.
12107         * final.c (rest_of_clean_state): Free SSA data structures.
12108         * print-rtl.c (print_decl_name): Remove.
12109         (print_mem_expr): Implement in terms of print_generic_expr.
12110         * alias.c (ao_ref_from_mem): New function.
12111         (rtx_refs_may_alias_p): Likewise.
12112         (true_dependence): Query alias-export info.
12113         (canon_true_dependence): Likewise.
12114         (write_dependence_p): Likewise.
12115         * tree-dfa.c (get_ref_base_and_extent): For void types leave
12116         size unknown.
12117         * emit-rtl.c (component_ref_for_mem_expr): Remove.
12118         (mem_expr_equal_p): Use operand_equal_p.
12119         (set_mem_attributes_minus_bitpos): Do not use
12120         component_ref_for_mem_expr.
12121         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
12122         (update_alias_info_with_stack_vars): Likewise.
12123         (partition_stack_vars): Call update_alias_info_with_stack_vars.
12124         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
12125         explicitly nor clear stmt operands.
12126         Free the decl-to-pointer map.
12127         * tree-optimize.c (execute_free_datastructures): Do not free
12128         SSA data structures here.
12129         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
12130         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
12131         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
12132         dependencies.
12133         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
12134
12135 2009-07-13  DJ Delorie  <dj@redhat.com>
12136
12137         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
12138         unrolling at the right iteration count.
12139
12140         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
12141         calculations.
12142
12143 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
12144
12145         * haifa-sched.c (rank_for_schedule): Introduced flags to
12146         enable/disable individual scheduling heuristics.
12147         * common.opt: Introduced flags to enable/disable individual
12148         heuristics in the scheduler.
12149         * doc/invoke.texi: Introduced flags to enable/disable individual
12150         heuristics in the scheduler.
12151
12152 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
12153
12154         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
12155         config/i386/mingw-tls.c.
12156         * config/i386/mingw-tls.c: Removed.
12157
12158 2009-07-13  Ira Rosen  <irar@il.ibm.com>
12159
12160         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
12161         checks access only relevant statements.
12162         (vectorizable_reduction): Likewise.
12163
12164 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
12165
12166         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
12167         just for 32-bit case.
12168
12169 2009-07-12  Jan Hubicka  <jh@suse.cz>
12170
12171         PR tree-optimization/40585
12172         * except.c (expand_resx_expr): When there already is resume
12173         instruction, produce linked list.
12174         (build_post_landing_pads): Assert that resume is empty.
12175         (connect_post_landing_pads): Handle resume lists.
12176         (dump_eh_tree): Dump resume list.
12177
12178 2009-07-12  Ira Rosen  <irar@il.ibm.com>
12179
12180         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
12181         with additional argument.
12182         * tree-vectorizer.h (enum vect_def_type): Add
12183         vect_double_reduction_def.
12184         (vect_is_simple_reduction): Add argument.
12185         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
12186         indentation.
12187         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
12188         vect_is_simple_reduction with additional argument.
12189         (vect_analyze_loop_operations): Handle exit phi nodes in case of
12190         double reduction.
12191         (reduction_code_for_scalar_code): Handle additional codes by
12192         returning ERROR_MARK for them. Fix comment and indentation.
12193         (vect_is_simple_reduction): Fix comment, add argument to specify
12194         double reduction. Detect double reduction.
12195         (get_initial_def_for_induction): Fix indentation.
12196         (get_initial_def_for_reduction): Fix comment and indentation.
12197         Handle double reduction. Create initial definitions that do not
12198         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
12199         (vect_create_epilog_for_reduction): Fix comment, add argument to
12200         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
12201         epilogue result extraction. Create double reduction phi node and
12202         replace relevant uses.
12203         (vectorizable_reduction): Call vect_is_simple_reduction with
12204         additional argument. Fix indentation. Update epilogue code treatment
12205         according to the changes in reduction_code_for_scalar_code. Check
12206         for double reduction. Call vect_create_epilog_for_reduction with
12207         additional argument.
12208         * tree-vect-stmts.c (process_use): Handle double reduction, update
12209         documentation.
12210         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
12211         (vect_get_vec_def_for_operand): Likewise.
12212
12213 2009-07-12  Danny Smith  <dansmister@gmail.com>
12214
12215         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
12216         dllexport if !TREE_PUBLIC.
12217         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
12218
12219 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
12220
12221         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
12222         (avr_extra_arch_macro) Remove declatation.
12223         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
12224         (avr_extra_arch_macro) Declare as static.
12225         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
12226
12227 2009-07-11  Jan Hubicka  <jh@suse.cz>
12228
12229         PR middle-end/48388
12230         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
12231
12232 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
12233
12234         PR debug/40713
12235         * dwarf2out.c (dw_fde_struct): Add in_std_section and
12236         cold_in_std_section bits.
12237         (dwarf2out_begin_prologue): Initialize them.
12238         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
12239         if already covered by text_section or cold_text_section range.
12240
12241         PR rtl-optimization/40667
12242         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
12243         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
12244         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
12245         * config/i386/i386.c (ix86_minimum_alignment): New function.
12246         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
12247         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
12248         * emit-rtl.c (gen_reg_rtx): Likewise.
12249         * function.c (assign_parms): Likewise.  If nominal_type needs
12250         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
12251         rather than passed_type's alignment.
12252
12253         PR target/40668
12254         * function.c (assign_parm_setup_stack): Adjust
12255         MEM_OFFSET (data->stack_parm) if promoted_mode is different
12256         from nominal_mode on big endian.
12257
12258 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
12259
12260         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
12261
12262 2009-07-10  DJ Delorie  <dj@redhat.com>
12263
12264         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
12265
12266 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
12267
12268         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
12269         attribute.
12270         (thumb2_cbnz): Likewise.
12271
12272 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
12273
12274         PR target/39079
12275         * config.gcc (supported_defaults): Add synci.
12276         (with_synci): Add validation.
12277         (all_defaults): Add synci.
12278         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
12279         ISA_HAS_SYNCI.
12280         (synci): Same.
12281         * config/mips/mips.opt (msynci): New option.
12282         * config/mips/mips.c (mips_override_options): Warn on use of
12283         -msynci for targets that do now support it.
12284         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
12285         msynci.
12286         * gcc/doc/invoke.texi (-msynci): Document the new option.
12287         * doc/install.texi (--with-synci): Document the new option.
12288
12289 2009-07-10  Richard Guenther  <rguenther@suse.de>
12290
12291         PR tree-optimization/40496
12292         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
12293         the PHI result with a compatible type.
12294
12295 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12296
12297         PR 25509
12298         PR 40614
12299         * c.opt (Wunused-result): New.
12300         * doc/invoke.texi: Document it.
12301         * c-common.c (c_warn_unused_result): Use it.
12302
12303 2009-07-09  DJ Delorie  <dj@redhat.com>
12304
12305         * targhooks.c (default_target_can_inline_p): Rename from
12306         default_target_option_can_inline_p.
12307         * targhooks.h (default_target_can_inline_p): Likewise.
12308         * target-def.h (TARGET_CAN_INLINE_P): Rename from
12309         TARGET_OPTION_CAN_INLINE_P.
12310         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
12311         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
12312         (mep_target_can_inline_p): Rename from
12313         mep_target_option_can_inline_p.
12314
12315         PR target/40626
12316         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
12317         registers used to pass vectors.
12318
12319         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
12320
12321 2009-07-09  Tom Tromey  <tromey@redhat.com>
12322
12323         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
12324         * config/mmix/mmix.c: Include dwarf2.h.
12325         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
12326         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
12327         * config/sh/sh.c: Include dwarf2.h.
12328         * config/i386/i386.c: Include dwarf2.h.
12329         * Makefile.in (DWARF2_H): Remove 'elf'.
12330         * except.c: Include dwarf2.h.
12331         * unwind-dw2.c: Include dwarf2.h.
12332         * dwarf2out.c: Include dwarf2.h.
12333         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
12334         * unwind-dw2-fde.c: Include dwarf2.h.
12335         * dwarf2asm.c: Include dwarf2.h.
12336
12337 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
12338
12339         * haifa-sched.c (insn_finishes_cycle_p): New static function.
12340         (max_issue): Use it.
12341         * sched-int.h (struct sched_info: insn_finishes_block_p): New
12342         scheduler hook.
12343         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
12344         (region_sched_info): Update.
12345         * sched-ebb.c (ebb_sched_info): Update.
12346         * modulo-sched.c (sms_sched_info): Update.
12347         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
12348
12349 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
12350
12351         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
12352
12353 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
12354
12355         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
12356
12357 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
12358
12359         PR middle-end/40692
12360         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
12361         arg1 with arg01 if arg1 is already INTEGER_CST.
12362
12363 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
12364
12365         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
12366         Transform (and (truncate)) into (truncate (and)).
12367
12368 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
12369
12370         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
12371         creating LHS paradoxical subregs.  Fix surrounding returns to
12372         use NULL_RTX rather than 0.
12373
12374 2009-07-08  DJ Delorie  <dj@redhat.com>
12375
12376         * config/mep/mep.c (mep_option_can_inline_p): New.
12377         (TARGET_OPTION_CAN_INLINE_P): Define.
12378
12379 2009-07-08  Mark Wielaard  <mjw@redhat.com>
12380
12381         PR debug/40659
12382         * dwarf2out.c (add_data_member_location_attribute): When we have
12383         only a constant offset don't emit a new location description using
12384         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
12385         dwarf_version > 2.
12386
12387 2009-07-08  Richard Henderson  <rth@redhat.com>
12388
12389         PR target/38900
12390         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
12391         (enum reg_class): Add CLOBBERED_REGS.
12392         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
12393         * config/i386/i386.c (ix86_conditional_register_usage): Moved
12394         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
12395         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
12396         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
12397         force 64-bit sibcalls into R11.
12398         * config/i386/constraints.md (U): New constraint.
12399         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
12400         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
12401         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
12402
12403 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
12404
12405         * basic-block.h (dump_regset, debug_regset): Remove duplicate
12406         prototypes.
12407         * c-objc-common.h (c_initialize_diagnostics): Ditto.
12408         * ebitmap.h (dump_ebitmap): Ditto.
12409         * optabs.h (optab_libfunc): Ditto.
12410         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
12411         * tree-flow.h (vect_can_force_dr_alignment_p,
12412         get_vectype_for_scalar_type): Ditto.
12413         (vectorize_loops): Move prototype to ...
12414         * tree-vectorizer.h: ... here. Also, adjust comment.
12415         (vect_set_verbosity_level): Remove duplicate prototype.
12416         * tree-ssa-loop.c: Include tree-vectorizer.h.
12417         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
12418
12419 2009-07-08  Nick Clifton  <nickc@redhat.com>
12420
12421         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
12422         forward slash.
12423
12424 2009-07-08  DJ Delorie  <dj@redhat.com>
12425
12426         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
12427         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
12428         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
12429         written to.
12430         * config/mep/intrinsics.md: Regenerated.
12431         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
12432         registers when asm() or calls are detected.
12433
12434 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12435
12436         PR c++/31246
12437         * gimplify.c (gimplify_expr): Propagate no_warning flag when
12438         gimplifying.
12439         * gimple (gimple_build_call_from_tree): Likewise.
12440         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
12441         no_warning flag before warning.
12442
12443 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12444
12445         * tree.c (set_expr_locus): Remove.
12446         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
12447         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
12448         EXPR_LOCATION.
12449         * gimplify.c (internal_get_tmp_var): Likewise.
12450         (gimplify_call_expr): Likewise.
12451         (gimplify_one_sizepos): Likewise.
12452
12453 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
12454
12455         PR debug/40666
12456         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
12457         to variables for debugging purposes.
12458
12459 2009-06-23  Mark Loeser  <mark@halcy0n.com>
12460
12461         PR build/40010
12462         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
12463
12464 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12465
12466         * pretty-print.c (pp_base_format): Remove %J.
12467         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
12468         gcc_cxxdiag_char_table): Likewise.
12469         (init_dynamic_diag_info): Likewise.
12470
12471 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12472
12473         * pretty-print.c (pp_base_format): Remove %H.
12474         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
12475         gcc_cxxdiag_char_table): Likewise.
12476         (init_dynamic_diag_info): Likewise.
12477         * config/mep/mep.c (mep_select_section): Likewise.
12478
12479 2009-07-07  Duncan Sands  <baldrick@free.fr>
12480
12481         * final.c (pass_clean_state): Give the pass a name.
12482         * passes.c (pass_rest_of_compilation): Likewise.
12483         * tree-optimize.c (pass_all_optimizations): Likewise.
12484
12485 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
12486
12487         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
12488         an extra 'decl' for error_at.
12489
12490 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
12491
12492         PR middle-end/40669
12493         * tree-tailcall.c (adjust_return_value_with_ops,
12494         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
12495         if it has complex or vector type.
12496
12497 2009-07-07  Olivier Hainque  <hainque@adacore.com>
12498
12499         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
12500         pthread symbols.
12501
12502 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
12503
12504         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
12505
12506 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12507
12508         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
12509         * c-decl.c: Likewise.
12510         * function.c: Likewise.
12511         * varasm.c: Likewise.
12512         * tree-ssa.c: Likewise.
12513         * c-common.c: Likewise.
12514         * tree-cfg.c: Likewise.
12515         * config/spu/spu.c: Likewise.
12516         * config/ia64/ia64.c: Likewise.
12517         * config/v850/v850.c: Likewise.
12518
12519 2009-07-06  DJ Delorie  <dj@redhat.com>
12520
12521         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
12522         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
12523         unspecified accesses to control registers.
12524         * config/mep/intrinsics.md: Regenerate.
12525         * config/mep/intrinsics.h: Regenerate.
12526         * config/mep/mep-intrin.h: Regenerate.
12527
12528 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12529
12530         * c-lex.c: Replace %H by an explicit location. Update all calls.
12531         * c-common.c: Likewise.
12532         * c-decl.c: Likewise.
12533         * c-typeck.c: Likewise.
12534         * fold-const.c: Likewise.
12535         * gimplify.c: Likewise.
12536         * stmt.c: Likewise.
12537         * tree-cfg.c: Likewise.
12538         * tree-ssa-loop-niter.c: Likewise.
12539         * tree-vrp.c: Likewise.
12540         * value-prof.c: Likewise.
12541
12542 2009-07-06  Diego Novillo  <dnovillo@google.com>
12543
12544         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
12545         if it has one.  Handle cases where VAR does not have an
12546         annotation or cfun is NULL.
12547
12548 2009-07-06  Diego Novillo  <dnovillo@google.com>
12549
12550         * tree.c: Include debug.h.
12551         (initialize_tree_contains_struct): New.
12552         (init_ttree): Call it.
12553         (tree_node_structure_for_code): Factor out of ...
12554         (tree_node_structure): ... here.
12555         * treestruct.def (TS_PHI_NODE): Remove.
12556         (TS_GIMPLE_STATEMENT): Remove.
12557
12558 2009-07-06  Diego Novillo  <dnovillo@google.com>
12559
12560         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
12561         (debug_tree_chain): Handle cycles.
12562
12563 2009-07-06  Nick Clifton  <nickc@redhat.com>
12564             DJ Delorie  <dj@redhat.com>
12565
12566         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
12567         __FMOVD_ENABLED__ is defined.
12568         * config/sh/sh.h
12569         (TARGET_FMOVD): Provide a default definition.
12570         (MASK_FMOVD): Likewise.
12571         (TARGET_CPU_CPP_BUILTINS): Define
12572         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
12573         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
12574         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
12575         (split for DF load from memory into register): Also handle
12576         MEMs which consist of REG+DISP addressing.
12577         (split for DF store from register to memory): Likewise.
12578         (movsf_ie): Always use single fp_mode.
12579         * config/sh/sh.c (sh_override_options): Do not automatically
12580         enable TARGET_MOVD for the SH2A when supporting doubles - leave
12581         that to the -mfmovd command line switch.
12582         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
12583         (fldi_ok): Always allow.
12584         * config/sh/sh.opt (mfmovd): Remove this switch.
12585         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
12586
12587 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
12588             Kaz Kojima  <kkojima@gcc.gnu.org>
12589
12590         PR rtl-optimization/30807
12591         * postreload.c (reload_combine): For every new use of REG_SUM,
12592         record the use of BASE.
12593
12594 2009-07-06  Jan Hubicka  <jh@suse.cz>
12595
12596         * params.def: Revert my accidental commit at 2009-06-30.
12597
12598 2009-07-04  Ian Lance Taylor  <iant@google.com>
12599
12600         PR target/40636
12601         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
12602         EXPORTED_CONST.
12603         (mingw_format_attribute_overrides): Likewise.
12604
12605 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
12606
12607         PR debug/40596
12608         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
12609         don't check cfa.reg.  Instead of cfa.indirect use
12610         fde && fde->drap_reg != INVALID_REGNUM test.
12611
12612 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
12613
12614         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
12615
12616 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
12617
12618         PR target/40587
12619         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
12620
12621 2009-07-03  Richard Guenther  <rguenther@suse.de>
12622
12623         PR tree-optimization/40640
12624         * tree-switch-conversion.c (build_arrays): Perform arithmetic
12625         in original type.
12626
12627 2009-07-03  Jan Hubicka  <jh@suse.cz>
12628
12629         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
12630         for size, reduce amount of inlining.
12631
12632 2009-07-03  Richard Guenther  <rguenther@suse.de>
12633
12634         PR middle-end/34163
12635         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
12636         if t +- x is known to not overflow and the conversion widens the
12637         operation.
12638         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
12639
12640 2009-07-03  Jan Hubicka  <jh@suse.cz>
12641
12642         * ipa-pure-const.c (analyze): Update loop optimizer init.
12643         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
12644         try_remove_empty_loop, remove_empty_loops): Remove.
12645         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
12646         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
12647         to mark regular loops as neccesary.
12648         (degenerate_phi_p): New function.
12649         (propagate_necessity, remove_dead_phis): Use it.
12650         (forward_edge_to_pdom): Likewise.
12651         (eliminate_unnecessary_stmts): Take care to remove uses of results of
12652         virtual PHI nodes that became unreachable.
12653         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
12654         * tree-flow.h (remove_empty_loops): Remove.
12655         * passes.c (init_optimization_passes): Remove.
12656
12657 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
12658
12659         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
12660         can_create_pseudo_p.
12661         (*fix_trunc<mode>_i387_1): Ditto.
12662         (*floathi<mode>2_1): Ditto.
12663         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
12664         (*fistdi2_1): Ditto.
12665         (*fist<mode>2_1): Ditto.
12666         (frndintxf2_floor): Ditto.
12667         (*fist<mode>2_floor_1): Ditto.
12668         (frndintxf2_ceil): Ditto.
12669         (*fist<mode>2_ceil_1): Ditto.
12670         (frndintxf2_trunc): Ditto.
12671         (frndintxf2_mask_pm): Ditto.
12672         (fxam<mode>2_i387_with_temp): Ditto.
12673         * config/i386/sse.md (mulv16qi3): Ditto.
12674         (*sse2_mulv4si3): Ditto.
12675         (mulv2di3): Ditto.
12676         (sse4_2_pcmpestr): Ditto.
12677         (sse4_2_pcmpistr): Ditto.
12678
12679 2009-07-03  Jan Hubicka  <jh@suse.cz>
12680
12681         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
12682         (mark_stmt_necessary): Set it.
12683         (mark_operand_necessary): Set it.
12684         (mark_control_dependent_edges_necessary): Set it.
12685         (mark_virtual_phi_result_for_renaming): New function.
12686         (get_live_post_dom): New function.
12687         (forward_edge_to_pdom): New function.
12688         (remove_dead_stmt): Fix handling of control dependences.
12689         (tree_dce_init): Init new bitmap.
12690         (tree_dce_done): Free it.
12691
12692 2009-07-02  Richard Guenther  <rguenther@suse.de>
12693
12694         PR bootstrap/40617
12695         * tree-ssa-structalias.c (new_var_info): Initialize
12696         is_restrict_var.
12697
12698 2009-07-02  Jan Hubicka  <jh@suse.cz>
12699
12700         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
12701         local.
12702
12703 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
12704
12705         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
12706         instead of recomputing it.  Adjust calls.
12707         (emit_store_flag): Adjust recursive calls.
12708
12709 2009-07-02  Richard Guenther  <rguenther@suse.de>
12710
12711         * tree-ssa-live.c (remove_unused_locals): Do not remove
12712         heap variables.
12713         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
12714         of DECL_EXTERNAL for HEAP variables.
12715         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
12716         HEAP variables.  Do not adjust RESTRICT vars.
12717         (find_what_var_points_to): Nobody cares if something
12718         points to READONLY.
12719
12720 2009-07-02  Ben Elliston  <bje@au.ibm.com>
12721
12722         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
12723         pc_low and pc_high declarations to the top of the function.
12724
12725 2009-07-01  DJ Delorie  <dj@redhat.com>
12726
12727         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
12728         registers as fixed.
12729         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
12730         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
12731         unspecified accesses to control registers.
12732         * config/mep/intrinsics.md: Regenerate.
12733         * config/mep/intrinsics.h: Regenerate.
12734         * config/mep/mep-intrin.h: Regenerate.
12735
12736 2009-07-01  Anthony Green  <green@moxielogic.com>
12737
12738         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
12739         instruction when possible.
12740         (moxie_expand_prologue): Ditto.  Also, save an instruction and
12741         some complexity by popping off of $r12 instead of $sp.
12742         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
12743         operands.
12744
12745 2009-07-01  Richard Henderson  <rth@redhat.com>
12746
12747         PR bootstrap/40347
12748         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
12749         contained no insns, reposition note before last insn.
12750
12751 2009-07-01  Richard Henderson  <rth@redhat.com>
12752
12753         PR debug/40431
12754         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
12755         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
12756
12757 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
12758
12759         PR bootstrap/40558
12760         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
12761         darwin9 for printing reg addresses with %y.
12762
12763 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
12764
12765         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
12766         truncation from operands in binary operations.
12767
12768 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
12769
12770         Revert:
12771         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
12772         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
12773         subreg of op0 to the original op0.
12774
12775         * expmed.c (store_bit_field_1): Use a temporary as the destination
12776         instead of a paradoxical subreg when we need to truncate the result.
12777
12778 2009-07-01  DJ Delorie  <dj@redhat.com>
12779
12780         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
12781         names to VLIW variants.
12782         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
12783         * config/mep/intrinsics.md: Regenerate.
12784         * config/mep/intrinsics.h: Regenerate.
12785         * config/mep/mep-intrin.h: Regenerate.
12786
12787 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
12788
12789         PR debug/40462
12790         * jump.c (returnjump_p): Revert last patch.
12791         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
12792
12793 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12794
12795         PR target/40575
12796         * pa.md (casesi32p): Use jump table label to determine the offset
12797         of the jump table.
12798         (casesi64p): Likewise.
12799
12800         * pa.c (forward_branch_p): Return bool type.  Use instruction
12801         addresses when available.  Assert that INSN has a jump label.
12802         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
12803         have a jump label.
12804
12805 2009-07-01  Richard Guenther  <rguenther@suse.de>
12806
12807         PR tree-optimization/19831
12808         * tree-ssa-dce.c (propagate_necessity): Calls to functions
12809         that only act as barriers do not make any previous stores necessary.
12810         * tree-ssa-structalias.c (handle_lhs_call): Delay making
12811         HEAP variables global, do not add a constraint from nonlocal.
12812         (find_func_aliases): Handle escapes through return statements.
12813         (compute_points_to_sets): Make escaped HEAP variables global.
12814
12815 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
12816
12817         PR bootstrap/40597
12818         * expmed.c (emit_store_flag): Perform a conversion if necessary,
12819         after reducing a DImode cstore to SImode.
12820
12821 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
12822
12823         * expr.c (expand_expr_real_1): Reinstate fallthrough to
12824         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
12825
12826 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
12827
12828         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
12829         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
12830         to 0.
12831         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
12832         and umod_optab if TARGET_BSD_DIVMOD.
12833         * config/vax/lib1funcs.asm: New file.
12834         * config/vax/t-linux: New file.
12835         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
12836
12837 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
12838
12839         PR c++/40566
12840         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
12841         to type arguments that have void type.
12842
12843         PR debug/40573
12844         * dwarf2out.c (gen_formal_parameter_die): Call
12845         equate_decl_number_to_die if node is different from origin.
12846
12847 2009-06-30  Anthony Green  <green@moxielogic.com>
12848
12849         Clean up moxie port for --enable-build-with-cxx.
12850         * config/moxie/moxie.c (moxie_function_value): First two
12851         parameters are const_tree, not tree.
12852         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
12853         (REG_CLASS_NAMES): Ditto.
12854         (REGNO_REG_CLASS): Ditto.
12855         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
12856         (moxie_function_value): Fix constyness of arguments.
12857
12858 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
12859
12860         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
12861         finalize_size_functions before further processing.
12862         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
12863         (variable_size): Call self_referential_size on size expressions
12864         that contain a PLACEHOLDER_EXPR.
12865         (size_functions): New static variable.
12866         (copy_self_referential_tree_r): New static function.
12867         (self_referential_size): Likewise.
12868         (finalize_size_functions): New global function.
12869         * tree.c: Include tree-inline.h.
12870         (push_without_duplicates): New static function.
12871         (find_placeholder_in_expr): New global function.
12872         (substitute_in_expr) <tcc_declaration>: Return the replacement object
12873         on equality.
12874         <tcc_expression>: Likewise.
12875         <tcc_vl_exp>: If the replacement object is a constant, try to inline
12876         the call in the expression.
12877         * tree.h (finalize_size_functions): Declare.
12878         (find_placeholder_in_expr): Likewise.
12879         (FIND_PLACEHOLDER_IN_EXPR): New macro.
12880         (substitute_placeholder_in_expr): Update comment.
12881         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
12882         is true.
12883         (copy_tree_body_r): Likewise.
12884         (copy_tree_body): New static function.
12885         (maybe_inline_call_in_expr): New global function.
12886         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
12887         (maybe_inline_call_in_expr): Declare.
12888         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
12889         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
12890         GIMPLE_H.
12891
12892 2009-06-30  Richard Guenther  <rguenther@suse.de>
12893
12894         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
12895         continue walking.
12896         (propagate_necessity): Do not mark reaching defs of stores
12897         as necessary.
12898
12899 2009-06-30  Jan Hubicka  <jh@suse.cz>
12900
12901         * cfgloopanal.c (check_irred): Move into ...
12902         (mark_irreducible_loops): ... here; return true if ireducible
12903         loops was found.
12904         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
12905         (analyze_function): Try to prove loop finiteness.
12906         * cfgloop.h (mark_irreducible_loops): Update prototype.
12907         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
12908
12909 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
12910
12911         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
12912
12913 2009-06-30  Ira Rosen  <irar@il.ibm.com>
12914
12915         PR tree-optimization/40542
12916         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
12917         types.
12918
12919 2009-06-30  Martin Jambor  <mjambor@suse.cz>
12920
12921         PR tree-optimization/40582
12922         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
12923         than useless_type_conversion_p.
12924         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
12925         proper place.
12926
12927 2009-06-30  Martin Jambor  <mjambor@suse.cz>
12928
12929         PR middle-end/40554
12930         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
12931
12932 2009-06-30  Richard Guenther  <rguenther@suse.de>
12933
12934         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
12935         use ao_ref references.
12936         (walk_aliased_vdefs): Likewise.
12937         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
12938         * tree-ssa-dce.c (struct ref_data): Remove.
12939         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
12940         (mark_aliased_reaching_defs_necessary): Adjust.
12941         (mark_all_reaching_defs_necessary_1): Likewise.
12942
12943 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
12944
12945         PR boostrap/40597
12946         * expmed.c (emit_cstore): New name of emit_store_flag_1.
12947         (emit_store_flag_1): Extract from emit_store_flag, adjust
12948         calls to (what now is) emit_cstore.
12949         (emit_store_flag): Call emit_store_flag_1 and also use it
12950         for what used to be recursive calls.
12951
12952 2009-06-30  Wei Guozhi  <carrot@google.com>
12953
12954         PR/40416
12955         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
12956         if the target bb post dominates from bb.
12957         * config/i386/i386.c (memory_address_length): Check existence of base
12958         register before using it.
12959
12960 2009-06-30  Nick Clifton  <nickc@redhat.com>
12961             DJ Delorie  <dj@redhat.com>
12962
12963         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
12964         __FMOVD_ENABLED__ is defined.
12965         * config/sh/sh.h
12966         (TARGET_FMOVD): Provide a default definition.
12967         (MASK_FMOVD): Likewise.
12968         (TARGET_CPU_CPP_BUILTINS): Define
12969         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
12970         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
12971         two fmov instructions depending upon whether TARGET_FMOVD is
12972         enabled.
12973         (split for DF load from memory into register): Also handle
12974         MEMs which consist of REG+DISP addressing.
12975         (split for DF store from register to memory): Likewise.
12976         * config/sh/sh.opt (mfmovd): Remove this switch.
12977         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
12978         * config/sh/sh.c (sh_override_options): Do not automatically
12979         enable TARGET_MOVD for the SH2A when supporting doubles - leave
12980         that to the -mfmovd command line switch.
12981
12982         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
12983         the SH4 and SH4A.
12984         (fldi_ok): Always allow.
12985         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
12986
12987 2009-06-29  DJ Delorie  <dj@redhat.com>
12988
12989         * doc/install.texi (mep-x-elf): Correct chip's full name.
12990
12991 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
12992
12993         * doc/extend.texi: Fix typo.
12994
12995 2009-06-29  Tom Tromey  <tromey@redhat.com>
12996
12997         * dwarf2.h: Remove.
12998         * Makefile.in (DWARF2_H): New variable.
12999         (except.o): Use it.
13000         (dwarf2out.o): Likewise.
13001         (dwarf2asm.o): Likewise.
13002         * config/i386/t-i386: Use DWARF2_H.
13003         * except.c: Include elf/dwarf2.h.
13004         * unwind-dw2.c: Include elf/dwarf2.h.
13005         * dwarf2out.c: Include elf/dwarf2.h.
13006         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
13007         <dtprel>: New field.
13008         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
13009         (size_of_loc_descr): Likewise.
13010         (output_loc_operands_raw): Likewise.
13011         (output_loc_operands): Handle new dtprel field.
13012         (loc_checksum): Update.
13013         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
13014         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
13015         * unwind-dw2-fde.c: Include elf/dwarf2.h.
13016         * dwarf2asm.c: Include elf/dwarf2.h.
13017         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
13018         * config/mmix/mmix.c: Include elf/dwarf2.h.
13019         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
13020         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
13021         * config/sh/sh.c: Include elf/dwarf2.h.
13022         * config/i386/i386.c: Include elf/dwarf2.h.
13023
13024 2009-06-29  DJ Delorie  <dj@redhat.com>
13025
13026         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
13027
13028         * doc/extend.texi: Add MeP attributes and pragmas.
13029         * doc/invoke.text: Add MeP Options.
13030         * doc/contrib.texi: Add MeP contribution.
13031         * doc/md.texi: Add MeP constraints.
13032         * doc/install.texi: Add MeP target.
13033
13034 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
13035
13036         * target.h (struct gcc_target): Add frame_pointer_required field.
13037         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
13038         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
13039         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
13040         hook.
13041         * reload1.c (update_eliminables): (Ditto.).
13042         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
13043         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
13044         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
13045
13046         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
13047
13048         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
13049         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13050         (arm_frame_pointer_required): New function.
13051
13052         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
13053         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13054         (avr_frame_pointer_required_p): Declare as static.
13055         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
13056
13057         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
13058         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13059         (bfin_frame_pointer_required): Make as static, change return type
13060         to bool.
13061         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
13062
13063         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
13064         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13065         (cris_frame_pointer_required): New function.
13066
13067         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
13068
13069         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
13070         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13071         (fr30_frame_pointer_required): New function.
13072
13073         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
13074         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13075         (frv_frame_pointer_required): Make as static, change return type
13076         to bool.
13077         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
13078
13079         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
13080         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13081         (ix86_frame_pointer_required): Make as static, change return type to
13082         bool.
13083         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
13084
13085         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
13086         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13087
13088         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
13089
13090         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
13091
13092         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
13093
13094         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
13095         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13096         (mips_frame_pointer_required): Make as static.
13097         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
13098
13099         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
13100         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13101         (mmix_frame_pointer_required): Mew function.
13102
13103         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
13104         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13105
13106         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
13107
13108         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
13109
13110         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
13111
13112         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
13113         (CAN_ELIMINATE): Redefine.
13114         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
13115         (sparc_frame_pointer_required): New function.
13116         (sparc_can_eliminate): New function.
13117         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
13118
13119         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
13120         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13121
13122         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
13123         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
13124         (xtensa_frame_pointer_required): Make as static, change return type
13125         to bool.
13126         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
13127         Remove.
13128
13129 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
13130
13131         * doc/plugins.texi: Document PLUGIN_START_UNIT.
13132         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
13133         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
13134         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
13135         (register_callback): Handle PLUGIN_START_UNIT.
13136         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
13137
13138 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
13139
13140         * tree.c (process_call_operands): Propagate TREE_READONLY from the
13141         operands.
13142         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
13143         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
13144
13145 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
13146
13147         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
13148         move cost.
13149
13150 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
13151
13152         * doc/extend.texi (Additional Floating Types): __float128 is also
13153         supported on i386 targets.
13154
13155 2009-06-29  Richard Guenther  <rguenther@suse.de>
13156
13157         PR middle-end/14187
13158         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
13159         flag.
13160         (pt_solutions_same_restrict_base): Declare.
13161         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
13162         flag.
13163         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
13164         (make_constraint_from, make_copy_constraint): Move earlier.
13165         (make_constraint_from_heapvar): New function.
13166         (make_constraint_from_restrict): Likewise.
13167         (handle_lhs_call): Use it.
13168         (find_func_aliases): Use it to track conversions to restrict
13169         qualified pointers.
13170         (struct fieldoff): Add only_restrict_pointers flag.
13171         (push_fields_onto_fieldstack): Initialize it.
13172         (create_variable_info_for): Track global restrict qualified pointers.
13173         (intra_create_variable_infos): Use make_constraint_from_heapvar.
13174         Track restrict qualified pointer arguments.
13175         (set_uids_in_ptset): Use varinfo is_global_var flag.
13176         (find_what_var_points_to): Set the vars_contains_restrict flag.
13177         Always create the points-to solution for sets including restrict tags.
13178         (pt_solutions_same_restrict_base): New function.
13179         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
13180         qualified pointers use pt_solutions_same_restrict_base as
13181         additional source for disambiguation.
13182
13183 2009-06-29  Richard Guenther  <rguenther@suse.de>
13184
13185         PR middle-end/38212
13186         * alias.c (find_base_decl): Remove.
13187         (get_deref_alias_set_1): Remove restrict handling.
13188         * c-common.c (c_apply_type_quals_to_decl): Do not set
13189         DECL_POINTER_ALIAS_SET.
13190         * gimplify.c (find_single_pointer_decl_1): Remove.
13191         (find_single_pointer_decl): Likewise.
13192         (internal_get_tmp_var): Remove restrict handling.
13193         (gimple_regimplify_operands): Likewise.
13194         * omp-low.c (expand_omp_atomic_pipeline): Do not set
13195         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
13196         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
13197         * tree.c (restrict_base_for_decl): Remove.
13198         (init_ttree): Do not allocate it.
13199         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
13200         LABEL_DECL_UID for label decls.
13201         (copy_node_stat): Do not copy restrict information.
13202         (decl_restrict_base_lookup): Remove.
13203         (decl_restrict_base_insert): Likewise.
13204         (print_restrict_base_statistics): Likewise.
13205         (dump_tree_statistics): Do not call print_restrict_base_statistics.
13206         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
13207         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
13208         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
13209         (LABEL_DECL_UID): Adjust.
13210         (DECL_BASED_ON_RESTRICT_P): Remove.
13211         (DECL_GET_RESTRICT_BASE): Likewise.
13212         (SET_DECL_RESTRICT_BASE): Likewise.
13213         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
13214
13215         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
13216         instead of DECL_POINTER_ALIAS_SET.
13217         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
13218         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
13219         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
13220
13221 2009-06-29  Richard Guenther  <rguenther@suse.de>
13222
13223         PR tree-optimization/40579
13224         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
13225         the IL to simplify has constants that overflowed.
13226
13227 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
13228
13229         PR tree-optimization/40550
13230         * tree-vect-generic.c (expand_vector_operations_1): Compute in
13231         vector_compute_type only when the size of vector_compute_type is
13232         less than the size of type.
13233
13234 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
13235
13236         * fold-const.c (contains_label_1): Fix comments.
13237         (contains_label_p): Do not walk trees multiple time.
13238
13239 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
13240
13241         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
13242         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
13243         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
13244         ix86_fp_comparison_operator.
13245         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
13246         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
13247         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
13248         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
13249         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
13250         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
13251         (related splits): Change predicate to ix86_fp_comparison_operator.
13252         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
13253         instead of ix86_fp_comparison_codes.
13254         (ix86_trivial_fp_comparison_operator,
13255         ix86_fp_comparison_operator): New.
13256         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
13257         (ix86_expand_compare): Eliminate last two parameters.
13258         (ix86_fp_jump_nontrivial_p): Kill.
13259         * config/i386/i386.c (put_condition_code): Eliminate call to
13260         ix86_fp_comparison_codes and subsequent assertion.
13261         (ix86_fp_comparison_codes): Eliminate.
13262         (ix86_fp_swap_condition): New.
13263         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
13264         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
13265         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
13266         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
13267         and ix86_fp_swap_condition.
13268         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
13269         Use ix86_fp_comparison_strategy.
13270         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
13271         (ix86_fp_jump_nontrivial_p): Eliminate.
13272         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
13273         call to ix86_expand_compare.
13274         (ix86_split_fp_branch, ix86_expand_setcc,
13275         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
13276         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
13277
13278 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
13279
13280         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
13281         related to jump_clobbers.
13282         * config/arm/arm.md (conds): Remove jump_clob case.
13283         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
13284         splits): Change comparison_operator to arm_comparison_operator.
13285         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
13286         Eliminate.
13287
13288 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
13289
13290         * dojump.c (do_compare_rtx_and_jump): Try swapping the
13291         condition for floating point modes.
13292         * expmed.c (emit_store_flag_1): Move here a bigger part
13293         of emit_store_flag.
13294         (emit_store_flag): Try swapping the condition for floating point
13295         modes.
13296         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
13297
13298 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
13299
13300         * expr.c (expand_expr_real_1): Just use do_store_flag.
13301         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
13302         emit_store_flag_force.
13303         * expmed.c (emit_store_flag_force): Copy here trick
13304         previously in expand_expr_real_1.  Try reversing the comparison.
13305         (emit_store_flag_1): Work if target is NULL.
13306         (emit_store_flag): Work if target is NULL, using the result mode
13307         from the comparison.  Use split_comparison, restructure final part
13308         to simplify conditionals.
13309
13310 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
13311
13312         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
13313         * dojump.c (do_jump): Change handling of floating-point
13314         ops to use just do_compare_and_jump.
13315         (split_comparison): New.
13316         (do_compare_rtx_and_jump): Add here logic coming previously
13317         in do_jump, using split_comparison.
13318
13319 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
13320
13321         PR target/40489
13322         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
13323
13324 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13325
13326         * tree-ssa-alias.c: Fix unintentional commit.
13327
13328 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13329
13330         * passes.c (execute_one_pass): Fix unintentional commit.
13331
13332 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13333
13334         * df-problems.c (df_set_seen, df_unset_seen): Delete.
13335         (df_rd_local_compute, df_md_local_compute): Inline them.
13336
13337         (df_md_scratch): New.
13338         (df_md_alloc, df_md_free): Allocate/free it.
13339         (df_md_local_compute): Only include live registers in init.
13340         (df_md_transfer_function): Prune the in-set computed by
13341         the confluence function, and the gen-set too.
13342
13343 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13344
13345         PR rtl-optimization/26854
13346         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
13347         * df-problems.c (df_rd_add_problem): Fix comment.
13348         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
13349         df_md_simulate_artificial_defs_at_top,
13350         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
13351         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
13352         df_md_transfer_function, df_md_init, df_md_confluence_0,
13353         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
13354         problem_MD, df_md_add_problem): New.
13355         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
13356         df_md_get_bb_info): New.
13357         (DF_LAST_PROBLEM_PLUS1): Adjust.
13358
13359         * Makefile.in (fwprop.o): Include domwalk.h.
13360         * fwprop.c: Include domwalk.h.
13361         (reg_defs, reg_defs_stack): New.
13362         (bitmap_only_bit_between): Remove.
13363         (process_defs): New.
13364         (process_uses): Use reg_defs and local_md instead of
13365         bitmap_only_bit_between and local_rd.
13366         (single_def_use_enter_block): New, from build_single_def_use_links.
13367         (single_def_use_leave_block): New.
13368         (build_single_def_use_links): Remove code moved to
13369         single_def_use_enter_block, invoke domwalk.
13370         (use_killed_between): Adjust comment.
13371
13372 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13373
13374         * bitmap.h (bitmap_ior_and_into): New.
13375         * bitmap.c (bitmap_ior_and_into): New.
13376
13377 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13378
13379         * domwalk.h (struct dom_walk_data): Remove all callbacks except
13380         before_dom_children_before_stmts and after_dom_children_after_stmts.
13381         Rename the two remaining callbacks to just before_dom_children and
13382         after_dom_children. Remove other GIMPLE statement walking bits.
13383         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
13384         * graphite.c: Do not include domwalk.h.
13385         * tree-into-ssa.c (interesting_blocks): New global.
13386         (struct mark_def_sites_global_data): Remove it and names_to_rename.
13387         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
13388         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
13389         now that they're not domwalk callbacks.
13390         (rewrite_initialize_block): Rename to...
13391         (rewrite_enter_block): ... this, place after called functions.  Test
13392         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
13393         (rewrite_finalize_block): Rename to...
13394         (rewrite_leave_block): ... this, place after called functions.
13395         (rewrite_update_init_block): Rename to...
13396         (rewrite_update_enter_block): ... this, place after called functions.
13397         Test interesting_blocks, call rewrite_update_stmt and
13398         rewrite_update_phi_arguments.
13399         (rewrite_update_fini_block): Rename to...
13400         (rewrite_leave_block): ... this, place after called functions.
13401         (rewrite_blocks): Remove last argument, simplify initialization of
13402         walk_data.
13403         (mark_def_sites_initialize_block): Rename to...
13404         (mark_def_sites_block): ... this, call mark_def_sites.
13405         (mark_def_sites_blocks): Remove argument, simplify initialization of
13406         walk_data.
13407         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
13408         (update_ssa): Likewise.
13409         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
13410         callback.
13411         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
13412         (dom_opt_initialize_block): Rename to...
13413         (dom_opt_enter_block): ... this, place after called functions.  Walk
13414         statements here, inline propagate_to_outgoing_edges.
13415         (dom_opt_finalize_block): Rename to...
13416         (dom_opt_leave_block): ... this, place after called functions.
13417         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
13418         domwalk callback.
13419         (dse_enter_block, dse_record_phi): New.
13420         (dse_record_phis): Delete.
13421         (dse_finalize_block): Rename to...
13422         (dse_leave_block): ... this.
13423         (tree_ssa_dse): Simplify initialization of walk_data.
13424         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
13425         Adjust initialization of walk_data.
13426         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
13427         * tree-ssa-loop-phiopt.c (get_non_trapping):
13428         Adjust initialization of walk_data.
13429         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
13430         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
13431         it's not a domwalk callback.
13432         (uncprop_initialize_block): Rename to...
13433         (dse_enter_block): ... this, call uncprop_into_successor_phis.
13434         (dse_finalize_block): Rename to...
13435         (dse_leave_block): ... this.
13436         (tree_ssa_uncprop): Simplify initialization of walk_data.
13437         * Makefile.in: Adjust dependencies.
13438
13439 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
13440
13441         * arm.md (casesi): Fix test for Thumb1.
13442         (thumb1_casesi_internal_pic): Likewise.
13443         (thumb1_casesi_dispatch): Likewise.
13444
13445 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
13446
13447         * config/arm/arm-cores.def: Added core cortex-m0.
13448         * config/arm/arm-tune.md: Regenerated.
13449         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
13450
13451 2009-06-26  DJ Delorie  <dj@redhat.com>
13452
13453         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
13454
13455         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
13456         the scheduler doesn't tag jump insns.
13457
13458 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
13459
13460         * c-decl.c (merge_decls): Re-indent.
13461
13462 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
13463
13464         PR c/39902
13465         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
13466         Special-case decimal float constants.
13467
13468 2009-06-26  Richard Henderson  <rth@redhat.com>
13469
13470         * function.h (struct function): Add cannot_be_copied_reason,
13471         and cannot_be_copied_set.
13472         * tree-inline.c (has_label_address_in_static_1): Rename from
13473         inline_forbidden_p_2; don't set inline_forbidden_reason here.
13474         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
13475         don't set inline_forbidden_reason.
13476         (copy_forbidden): New function, split out of inline_forbidden_p.
13477         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
13478         (inline_forbidden_p): Use copy_forbidden.
13479         (tree_versionable_function_p): Likewise.
13480         (inlinable_function_p): Merge into tree_inlinable_function_p.
13481         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
13482         * ipa-cp.c (ipcp_versionable_function_p): New function.
13483         (ipcp_cloning_candidate_p): Use it.
13484         (ipcp_node_modifiable_p): Likewise.
13485
13486 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
13487
13488         * builtins.c (expand_builtin_alloca): Handle builtin alloca
13489         that is marked not to be inlined. Remove flag_mudflap use.
13490         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
13491         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
13492
13493 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
13494
13495         PR bootstrap/40338
13496         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
13497         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
13498
13499 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
13500
13501         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
13502         shared libgcc.
13503         (__mingwthr_remove_key_dtor): Likewise.
13504
13505 2009-06-26  Richard Guenther  <rguenther@suse.de>
13506
13507         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
13508
13509 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
13510
13511         PR middle-end/40525
13512         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
13513         try the non-cond_exec path also.
13514
13515 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13516
13517         PR target/40468
13518         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
13519         (output_cbranch): Use new functions.
13520         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
13521         Likewise.
13522
13523 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
13524             Pat Haugen  <pthaugen@us.ibm.com>
13525             Revital Eres <ERES@il.ibm.com>
13526
13527         * config/rs6000/rs6000.c (print_operand): Correct lossage message
13528         for %c error.  Add %x support to print VSX registers as a unified
13529         register set, instead of separate float and altivec registers.
13530         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
13531         %y case, and add support for VSX pre-modify addresses.
13532         (output_toc): Add assert for CONST containing an integer constant
13533         in the PLUS case.
13534         (rs6000_adjust_cost): Add POWER7 support.
13535         (insn_must_be_first_in_group): Ditto.
13536         (insn_must_be_last_in_group): Ditto.
13537         (rs6000_emit_popcount): Ditto.
13538         (rs6000_vector_mode_supported_p): Ditto.
13539
13540         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
13541         Change some of the functions called by macros to being called
13542         through a pointer, so debug functions can be inserted if
13543         -mdebug=addr or -mdebug=cost.
13544         (rs6000_preferred_reload_class_ptr): Ditto.
13545         (rs6000_secondary_reload_class_ptr): Ditto.
13546         (rs6000_secondary_memory_needed_ptr): Ditto.
13547         (rs6000_cannot_change_mode_class_ptr): Ditto.
13548         (rs6000_secondary_reload_inner): Ditto.
13549         (rs6000_legitimize_reload_address): Ditto.
13550         (rs6000_legitimize_reload_address_ptr): Ditto.
13551         (rs6000_mode_dependent_address): Ditto.
13552         (rs6000_mode_dependent_address_ptr): Ditto.
13553
13554         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
13555         function to return true if the mode allows reg + integer
13556         addresses.
13557         (virtual_stack_registers_memory_p): New function to return true if
13558         the address refers to a virtual stack register.
13559         (rs6000_legitimate_offset_address_p): Move code to say whether a
13560         mode supports reg+int addressing to reg_offset_addressing_ok_p and
13561         call it.
13562         (rs6000_legitimate_address_p): Add checks for modes that only can
13563         do reg+reg addressing.  Start adding VSX support.
13564         (rs6000_legitimize_reload_address): Ditto.
13565         (rs6000_legitimize_address): Ditto.
13566         (rs6000_debug_legitimate_address_p): New debug functions for
13567         -mdebug=addr and -mdebug=cost.
13568         (rs6000_debug_rtx_costs): Ditto.
13569         (rs6000_debug_address_costs): Ditto.
13570         (rs6000_debug_adjust_cost): Ditto.
13571         (rs6000_debug_legitimize_address): Ditto.
13572         (rs6000_legitimize_reload_address_ptr): Point to call normal
13573         function or debug function.  Make functions called via pointer
13574         static.
13575         (rs6000_mode_dependent_address_ptr): Ditto.
13576         (rs6000_secondary_reload_class_ptr): Ditto.
13577         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
13578         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
13579         into a friendlier error.
13580         (rs6000_init_builtins): Add initial VSX support.
13581         (rs6000_adjust_cost): Fix some spacing issues.
13582
13583         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
13584         (REG_CLASS_NAMES): Ditto.
13585         (REG_CLASS_CONTENTS): Ditto.
13586         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
13587         pointer, to add -mdebug=addr support.
13588         (CANNOT_CHANGE_MODE_CLASS): Ditto.
13589         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
13590         -mdebug=addr support.
13591         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
13592         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
13593         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
13594
13595         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
13596         16-bit values.
13597         (bswapsi*): Set attribute types for load/store.  Add combiner
13598         patterns to eliminate zero extend on 64-bit.
13599         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
13600         stdbrx if the hardware supports those instructions.
13601
13602 2009-06-25  Ian Lance Taylor  <iant@google.com>
13603
13604         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
13605         (Link Options): Document -static-libstdc++.
13606
13607 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13608
13609         PR target/38731
13610         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
13611         DATA_ALIGNMENT instead.
13612
13613 2009-06-25  Richard Guenther  <rguenther@suse.de>
13614
13615         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
13616         indirect references against the callused/escaped solutions.
13617         (call_may_clobber_ref_p_1): Likewise.
13618
13619 2009-06-25  Martin Jambor  <mjambor@suse.cz>
13620
13621         PR tree-optimization/40493
13622         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
13623         (enum unscalarized_data_handling): New type.
13624         (handle_unscalarized_data_in_subtree): Return what has been done.
13625         (load_assign_lhs_subreplacements): Handle left flushes differently.
13626         (sra_modify_assign): Use unscalarized_data_handling, simplified
13627         condition determining whether to remove the statement.
13628
13629 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
13630
13631         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
13632         excerpt - @ should be doubled for texinfo.
13633
13634 2009-06-24  Ian Lance Taylor  <iant@google.com>
13635
13636         * config/arc/arc.c: Include "df.h".
13637         (arc_attribute_table): Make static.  Move higher in file.
13638         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
13639         (output_shift): Initialize n later to avoid warning.
13640         * config/arm/arm.c (arm_attribute_table): Make static.  Move
13641         higher in file.
13642         * config/avr/avr.c (avr_attribute_table): Make static.  Move
13643         higher in file.
13644         (reg_class_tab): Change array type from int to enum reg_class.
13645         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
13646         LABEL_REF.
13647         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
13648         (lshrhi3_out): Likewise.
13649         (class_likely_spilled_p): Change return type to bool.
13650         (avr_rtx_costs): Use local code variable with enum type.
13651         * config/avr/avr.md (movmemhi): Use add_reg_note.
13652         (andhi3, andsi3): Don't use AS2 with "and".
13653         (iorhi3, iorsi3): Don't use AS2 with "or".
13654         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
13655         * config/crx/crx.c: Include "df.h".
13656         (crx_attribute_table): Make static.
13657         * config/m32r/m32r.c: Include "df.h".
13658         (m32r_attribute_table): Make static.  Move higher in file.
13659         (pop): Use add_reg_note.
13660         (block_move_call): Change 0 to LCT_NORMAL in function call.
13661         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
13662         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
13663         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
13664         declare, not just when TREE_CODE is defined.
13665         * config/m68hc11/m68hc11.c: Include "expr.h".
13666         (m68hc11_attribute_table): Make static.  Move higher in file.
13667         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
13668         function call.
13669         (m68hc11_register_indirect_p): Likewise.
13670         (m68hc11_function_arg_padding): Change return type to enum
13671         direction.
13672         (emit_move_after_reload): Use add_reg_note.
13673         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
13674         (m68hc11_split_logical): Likewise.
13675         (m68hc11_rtx_costs): Add local code_and outer_code variables with
13676         enum type.
13677         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
13678         to VOIDmode in function call.
13679         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
13680         tree is defined.
13681         (m68hc11_split_logical): Update declaration.
13682         (m68hc11_function_arg_padding): Update declaration.
13683         * config/mcore/mcore.c (regno_reg_class): Change form array of int
13684         to array of enum reg_class.
13685         (mcore_attribute_table): Make static.  Move higher in file.
13686         (mcore_rtx_costs): Add cast to enum type.
13687         * config/mcore/mcore.h (regno_reg_class): Update declaration.
13688         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
13689         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
13690         in file.
13691         * config/sh/predicates.md (trapping_target_operand): Rename and to
13692         and_expr.
13693         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
13694         higher in file.
13695         * config/spu/spu.c (spu_attribute_table): Make static.  Move
13696         higher in file.
13697         * config/v850/v850.c (v850_attribute_table): Make static.  Move
13698         higher in file.
13699         (v850_rtx_costs): Use local code with enum type.
13700         (expand_epilogue): Add cast.
13701         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
13702
13703 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
13704
13705         PR target/40515
13706         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
13707         -m2a-single-only and -m2a-nofpu.
13708         * config/sh/sh.opt: Document m2a generates FPU code.
13709
13710 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
13711
13712         * defaults.h (CAN_ELIMINATE): Provide default.
13713         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
13714         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
13715         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
13716         * config/spu/spu.h (CAN_ELIMINATE): Delete.
13717         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
13718         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
13719         * config/cris/cris.h (CAN_ELIMINATE): Delete.
13720         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
13721         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
13722         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
13723
13724 2009-06-24  DJ Delorie  <dj@redhat.com>
13725
13726         * mep-ext-cop.cpu: Fix copyright notice.
13727         * mep-default: Fix copyright notice.
13728         * mep-core: Fix copyright notice.
13729         * mep: Fix copyright notice.
13730         * mep-ivc2: Fix copyright notice.
13731         * mep-c5: Fix copyright notice.
13732
13733 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
13734
13735         * doc/contrib.texi (Contributors):
13736
13737 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
13738
13739         PR middle-end/40501
13740         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
13741         src and dst operands if necessary.
13742
13743 2009-06-23  DJ Delorie  <dj@redhat.com>
13744
13745         Add MeP port.
13746         * config.gcc: Add mep support.
13747         * recog.c: Resurrect validate_replace_rtx_subexp().
13748         * recog.h: Likewise.
13749         * config/mep/: Add new port:
13750         * config/mep/constraints.md: New file.
13751         * config/mep/default.h: New file.
13752         * config/mep/intrinsics.h: New file.
13753         * config/mep/intrinsics.md: New file.
13754         * config/mep/ivc2-template.h: New file.
13755         * config/mep/mep-c5.cpu: New file.
13756         * config/mep/mep-core.cpu: New file.
13757         * config/mep/mep-default.cpu: New file.
13758         * config/mep/mep-ext-cop.cpu: New file.
13759         * config/mep/mep-intrin.h: New file.
13760         * config/mep/mep-ivc2.cpu: New file.
13761         * config/mep/mep-lib1.asm: New file.
13762         * config/mep/mep-lib2.c: New file.
13763         * config/mep/mep-pragma.c: New file.
13764         * config/mep/mep-protos.h: New file.
13765         * config/mep/mep-tramp.c: New file.
13766         * config/mep/mep.c: New file.
13767         * config/mep/mep.cpu: New file.
13768         * config/mep/mep.h: New file.
13769         * config/mep/mep.md: New file.
13770         * config/mep/mep.opt: New file.
13771         * config/mep/predicates.md: New file.
13772         * config/mep/t-mep: New file.
13773
13774 2009-06-23  Ian Lance Taylor  <iant@google.com>
13775
13776         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
13777         from loose_warn into c_loose_warn and from strict_warn into
13778         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
13779         --enable-build-with-cxx.  Set and substitute
13780         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
13781         * Makefile.in (CXXFLAGS): New variable.
13782         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
13783         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
13784         the default is the same as $(STRICT_WARN).
13785         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
13786         (CXX): New variable.
13787         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
13788         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
13789         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
13790         (HOST_LIBS): New variable.
13791         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
13792         (ALL_CXXFLAGS): New variable.
13793         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
13794         * doc/install.texi (Configuration): Document
13795         --enable-build-with-cxx, --with-stage1-ldflags,
13796         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
13797         * configure: Rebuild.
13798
13799 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13800
13801         * config/arm/arm.c (arm_override_options): Fix braces and formatting
13802         from previous commit.
13803
13804 2009-06-23  Ian Lance Taylor  <iant@google.com>
13805
13806         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
13807
13808 2009-06-23  Ian Lance Taylor  <iant@google.com>
13809
13810         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
13811         with ATTRIBUTE_UNUSED.
13812
13813 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
13814             Pat Haugen  <pthaugen@us.ibm.com>
13815             Revital Eres  <eres@il.ibm.com>
13816
13817         * config.in (HAVE_AS_POPCNTD): Add default definition.
13818         (HAVE_AS_LWSYNC): Ditto.
13819
13820         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
13821         release number.
13822         (gcc_cv_as_powerpc_cmpb): Ditto.
13823         (gcc_cv_as_powerpc_dfp): Ditto.
13824         (gcc_cv_as_powerpc_vsx): Ditto.
13825         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
13826         supporting the popcntd/lwsync instructions.
13827         (gcc_cv_as_powerpc_lwsync): Ditto.
13828         * configure: Regenerate.
13829
13830         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
13831         -mcpu=native and -mcpu=power7.
13832         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
13833
13834         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
13835         a variable instead of a mask to reduce the number of mask bits.
13836         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
13837         (-mbit-word): Ditto.
13838         (-mregnames): Ditto.
13839         * config/rs6000/rs6000.opt (-mupdate): Ditto.
13840         (-mfused-madd): Ditto.
13841
13842         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
13843         2.06 instructions.
13844         (-mvsx): New switch for VSX instructions.
13845         (-misel): Move from a variable to a mask to allow it to be set by
13846         -mcpu=.
13847
13848         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
13849         function declaration to an array declaration.
13850         (rs6000_hard_regno_nregs): New external array declaration.
13851
13852         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
13853         files included by rs6000.md.
13854
13855         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
13856         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
13857
13858         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
13859         a target mask.
13860         (rs6000_debug_reg): New -mdebug= variables.
13861         (rs6000_debug_addr): Ditto.
13862         (rs6000_debug_cost): Ditto.
13863         (rs6000_pmode): New variable to hold Pmode.
13864         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
13865         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
13866         calculated at compiler start.
13867         (rs6000_hard_regno_nregs): Change function to an array which holds
13868         HARD_REGNO_NREGS calculated at compiler start.
13869         (rs6000_explicit_options): Delete isel field.
13870         (rs6000_vector_unit): New array to hold which vector unit
13871         supports arithmetic options for a given type.
13872         (rs6000_vector_mem): New array to hold which vector unit supports
13873         memory reference operations for a given type.
13874         (rs6000_vector_align): New array to given the alignment of each
13875         vector type.
13876         (power7_cost): New basic costs for power7.
13877         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
13878         (rs6000_hard_regno_nregs_internal): New function, moved from
13879         HARD_REGNO_NREGS, to calculate the number of registers each hard
13880         register takes for each type.
13881         (rs6000_debug_reg_print): New function for -mdebug=reg support.
13882         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
13883         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
13884         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
13885         unit information here so it is calculated once at compiler startup
13886         time.
13887         (rs6000_override_options): Make -misel a target mask.  Add more
13888         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
13889         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
13890         -mdebug=cost.
13891         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
13892         (rs6000_handle_option): Move -misel from variable to target mask.
13893         (rs6000_builtin_mask_for_load): Add VSX support.
13894         (rs6000_conditional_register_usage): Ditto.
13895         (USE_ALTIVEC_FOR_ARG_P): Ditto.
13896         (function_arg_boundary): Ditto.
13897         (rs6000_expand_builtin): Ditto.
13898         (def_builtin): Make abort message a little friendlier.
13899         (rs6000_emit_int_cmove): Add support for 64-bit isel.
13900
13901         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
13902         assembler support the popcntd instruction instead of a vsx
13903         instruction to enable power7 support.
13904         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
13905         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
13906         option to the assembler if -mcpu=native.
13907         (ASM_CPU_NATIVE_SPEC): Ditto.
13908         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
13909         ISA 2.06 features.
13910         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
13911         the lwsync instruction.
13912         (enum processor_type): Add PROCESSOR_POWER7.
13913         (rs6000_debug_reg): New -mdebug= options.
13914         (rs6000_debug_addr): Ditto.
13915         (rs6000_debug_cost): Ditto.
13916         (rs6000_isel): Delete.
13917         (enum rs6000_vector): New enum to say what vector unit we have.
13918         (VECTOR_UNIT_*): New macros to say which vector unit has
13919         arithmetic operations for a given type.
13920         (VECTOR_MEM_*): New macros to say which vector unit has memory
13921         operations for a given type.
13922         (TARGET_LDBRX): Whether the machine supports the ldbrx
13923         instruction.
13924         (TARGET_ISEL): Delete, -misel moved to be a mask.
13925         (TARGET_ISEL64): New macro for 64-bit isel support.
13926         (UNITS_PER_VSX_WORD): New macro.
13927         (POINTER_SIZE): Move to be an external variable, rather than
13928         calculating whether we are generating 32 ot 64-bit code.
13929         (Pmode): Ditto.
13930         (STACK_BOUNDARY): Add VSX support.
13931         (LOCAL_ALIGNMENT): Ditto.
13932         (SLOW_UNALIGNED_ACCESS): Ditto.
13933         (VSX_REGNO_P): New macro for VSX support.
13934         (VFLOAT_REGNO_P): Ditto.
13935         (VINT_REGNO_P): Ditto.
13936         (VLOGICAL_REGNO_P): Ditto.
13937         (VSX_VECTOR_MODE): Ditto.
13938         (VSX_SCALAR_MODE): Ditto.
13939         (VSX_MODE): Ditto.
13940         (VSX_MOVE_MODE): Ditto.
13941         (VSX_REG_CLASS_P): Ditto.
13942         (HARD_REGNO_NREGS): Instead of calling a function, use an array
13943         lookup.
13944         (UNITS_PER_SIMD_WORD): Add VSX support.
13945         (MODES_TIEABLE_P): Ditto.
13946         (STARTING_FRAME_OFFSET): Ditto.
13947         (STACK_DYNAMIC_OFFSET): Ditto.
13948         (EPILOGUE_USES): Ditto.
13949         (REGNO_REG_CLASS): Move to array lookup.
13950         (CLASS_MAX_NREGS): Ditto.
13951         (rs6000_vector_reg_class): Add declaration.
13952         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
13953         overlap with the floating point and Altivec registers.
13954
13955         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
13956
13957         * config/rs6000/driver-rs6000.c (asm_names): New static array to
13958         give the appropriate asm switches if -mcpu=native.
13959         (host_detect_local_cpu): Add support for "asm".
13960         (host_detect_local_cpu): Follow GNU code guidelines for name.
13961
13962         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
13963         -mbit-word to a variable instead of being a target mask.
13964
13965         * config/rs6000/sync.md (lwsync): If the assembler supports it,
13966         emit the lwsync instruction instead of emitting the instruction as
13967         an integer constant.
13968
13969         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
13970         fixuns_trundfsi2, move expander into rs6000.md.
13971
13972         * config/rs6000/rs6000.md (cpu): Add power7.
13973         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
13974         (logical predicate patterns): Change the single instruction
13975         primitives that set CR0 to be fast_compare instead of compare.
13976         (norsi*): Ditto.
13977         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
13978         (popcntddi2): Ditto.
13979         (popcount<mode>): Ditto.
13980         (floating multiply/add insns): Name the floating point
13981         multiply/add insns.
13982         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
13983         (isel_unsigned_<mode>): Ditto.
13984         (fixuns_trundfsi2): Move expander here from spe.md.
13985         (smindi3): Define if we have -misel on 64-bit systems.
13986         (smaxdi3): Ditto.
13987         (umindi3): Ditto.
13988         (umaxdi3): Ditto.
13989
13990 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
13991
13992         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
13993         extra_objs.
13994         * config/avr/avr.c (avr_current_device): New variable.
13995         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
13996         (avr_arch, mcu_type_s): Move to avr.h.
13997         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
13998         default_data_section_start fields.
13999         (avr_arch): Moved from avr.c.
14000         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
14001         library_name fields.
14002         (avr_current_device, avr_mcu_types, avr_arch_types,
14003         avr_device_to_arch, avr_device_to_data_start,
14004         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
14005         (EXTRA_SPEC_FUNCTIONS): Define.
14006         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
14007         options mapping. Use device_to_arch and device_to_data_start insted.
14008         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
14009         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
14010         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
14011         * config/avr/driver-avr.c: New file.
14012         * config/avr/avr-devices.c: New file.
14013
14014 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
14015
14016         * var-tracking.c (unshare_variable): Force initialized to
14017         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
14018         (set_variable_part): Likewise.
14019         (struct variable_union_info): Remove pos_src field.
14020         (vui_vec, vui_allocated): New variables.
14021         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
14022         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
14023         == 1 use a simpler sorting algorithm.  Compute pos field right
14024         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
14025         Avoid quadratic comparison if !flag_var_tracking_uninit.
14026         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
14027         unshare_variable unconditionally.
14028         (dataflow_set_different_2): Removed.
14029         (dataflow_set_different): Don't traverse second hash table.
14030         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
14031         unconditionally to var_reg_set or var_mem_set.
14032         (emit_notes_in_bb): Likewise.
14033         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
14034         unshare_variable.
14035         (emit_note_insn_var_location): Don't set initialized to
14036         VAR_INIT_STATUS_INITIALIZED early.
14037         (vt_finalize): Free vui_vec if needed, clear vui_vec and
14038         vui_allocated.
14039         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
14040
14041         * tree-object-size.c (addr_object_size): Instead of checking
14042         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
14043         are no FIELD_DECLs following it.
14044
14045 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
14046
14047         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
14048         order to match bswaps with signed source operands.
14049
14050 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14051
14052         * sdbout.c (sdbout_one_type): Fix braces in switch.
14053
14054 2009-06-23  Richard Guenther  <rguenther@suse.de>
14055
14056         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
14057         member.
14058         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
14059         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
14060         var_callused, callused_tree, var_storedanything, storedanything_tree,
14061         var_integer, integer_tree): Remove global variables.
14062         (new_var_info): Do not pass new id, append the new var to the
14063         global variable vector.
14064         (do_ds_constraint): Use is_global_var member of the variable-info.
14065         (new_scalar_tmp_constraint_exp): Adjust.
14066         (create_function_info_for): Likewise.
14067         (create_variable_info_for): Likewise.
14068         (find_what_var_points_to): Remove dead code.
14069         (init_base_vars): Simplify.
14070         (compute_points_to_sets): Adjust.
14071
14072 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
14073
14074         * combine.c (try_combine): Dump information about the insns we're
14075         combining.
14076
14077 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
14078
14079         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
14080         check when calling force_to_mode on TRUNCATE's operand.
14081
14082 2009-06-22  Ian Lance Taylor  <iant@google.com>
14083
14084         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
14085
14086 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
14087
14088         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
14089
14090 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14091
14092         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
14093         override library linkage flags such as -static-libgcc or
14094         -shared-libgcc.
14095
14096 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
14097
14098         * config/m68k/m68k-devices.def: Add line for MCF5221x.
14099
14100 2009-06-22  Ian Lance Taylor  <iant@google.com>
14101
14102         * config/linux.opt: Put mglibc ahead of muclibc.
14103
14104         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
14105         for duplicate decls.
14106
14107 2009-06-22  Matthias Klose  <doko@ubuntu.com>
14108
14109         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
14110
14111 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
14112
14113         PR objc/28050
14114         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
14115         instead of NULL if a parser error occurs.
14116
14117 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14118
14119         * dwarf2out.c (dwarf2_debug_hooks): Initialize
14120         non-DWARF2_DEBUGGING_INFO version.
14121
14122 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
14123
14124         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
14125         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
14126
14127         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
14128         (LIBGCC2_TF_CEXT): Define.
14129         (TF_SIZE): Define.
14130
14131 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14132
14133         PR target/40463
14134         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
14135
14136 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14137
14138         * config/arm/arm.c (arm_override_options): Disable
14139         -mcaller-super-interworking and -mcallee-super-interworking.
14140         * doc/invoke.texi (ARM Options): Document this.
14141
14142 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
14143
14144         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
14145         * config/arm/constraints.md (j): New constraint for movw operands.
14146         (N): Remove thumb2 meaning.
14147         * config/arm/arm.md (*arm_movw): Delete.
14148         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
14149         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
14150         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
14151
14152 2009-06-22  Martin Jambor  <mjambor@suse.cz>
14153
14154         PR tree-optimization/40492
14155         * tree-sra.c (sra_modify_assign): Pass zero offsets to
14156         build_ref_for_offset.
14157
14158 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
14159
14160         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
14161         JUMP_TABLE_DATA_P predicates where applicable.
14162         * auto-inc-dec.c: Ditto.
14163         * builtins.c: Ditto.
14164         * caller-save.c: Ditto.
14165         * calls.c: Ditto.
14166         * cfgcleanup.c: Ditto.
14167         * cfglayout.c: Ditto.
14168         * cfgrtl.c: Ditto.
14169         * combine.c: Ditto.
14170         * combine-stack-adj.c: Ditto.
14171         * cse.c: Ditto.
14172         * cselib.c: Ditto.
14173         * dbxout.c: Ditto.
14174         * df-scan.c: Ditto.
14175         * dse.c: Ditto.
14176         * dwarf2asm.c: Ditto.
14177         * dwarf2out.c: Ditto.
14178         * emit-rtl.c: Ditto.
14179         * except.c: Ditto.
14180         * explow.c: Ditto.
14181         * expmed.c: Ditto.
14182         * expr.c: Ditto.
14183         * final.c: Ditto.
14184         * function.c: Ditto.
14185         * fwprop.c: Ditto.
14186         * gcse.c: Ditto.
14187         * genpreds.c: Ditto.
14188         * genrecog.c: Ditto.
14189         * ifcvt.c: Ditto.
14190         * ira-costs.c: Ditto.
14191         * ira-lives.c: Ditto.
14192         * jump.c: Ditto.
14193         * loop-iv.c: Ditto.
14194         * lower-subreg.c: Ditto.
14195         * modulo-sched.c: Ditto.
14196         * optabs.c: Ditto.
14197         * postreload.c: Ditto.
14198         * print-rtl.c: Ditto.
14199         * recog.c: Ditto.
14200         * reginfo.c: Ditto.
14201         * regmove.c: Ditto.
14202         * reload1.c: Ditto.
14203         * reload.c: Ditto.
14204         * reorg.c: Ditto.
14205         * rtlanal.c: Ditto.
14206         * rtl.c: Ditto.
14207         * sched-vis.c: Ditto.
14208         * sdbout.c: Ditto.
14209         * sel-sched-ir.c: Ditto.
14210         * simplify-rtx.c: Ditto.
14211         * targhooks.c: Ditto.
14212         * var-tracking.c: Ditto.
14213         * vmsdbgout.c: Ditto.
14214
14215 2009-06-22  Matthias Klose  <doko@ubuntu.com>
14216
14217         * Makefile.in (install-plugin): Always use DESTDIR.
14218
14219 2009-06-22  Olivier Hainque  <hainque@adacore.com>
14220
14221         * config/pa/pa.c (output_call): Don't optimize post call jumps
14222         into return address adjustments if the call may throw.
14223
14224 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
14225
14226         * arm.c (thumb1_output_casesi): New function.
14227         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
14228         optimizing for size or PIC.
14229         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
14230         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
14231         (casesi): Handle Thumb-1 when optimizing for size or PIC.
14232         (thumb1_casesi_internal_pic): New expand rule.
14233         (thumb1_casesi_dispatch): New pattern.
14234         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
14235         thumb-1 mode.
14236         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
14237         in the text seciton when PIC or optimizing for size.
14238         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
14239         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
14240         preservation properties of code.
14241         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
14242         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
14243         (__gnu_thumb1_case_si): New function.
14244         * t-arm (LIB1ASMSRC): Define here.
14245         (LIB1ASMFUNCS): Add some common functions.
14246         * t-arm-elf (LIB1ASMSRC): Delete.
14247         (LIB1ASMFUNCS): Append to existing set.
14248         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14249         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14250         * t-symbian (LIB1ASMFUNCS): Likewise.
14251         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14252         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
14253
14254 2009-06-21  Richard Guenther  <rguenther@suse.de>
14255
14256         PR tree-optimization/38729
14257         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
14258         to loops with a single exit if -fno-expensive-optimizations.
14259
14260 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
14261
14262         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
14263         (dataflow_set): Change vars type from htab_t to shared_hash.
14264         (shared_hash_pool, empty_shared_hash): New variables.
14265         (vars_clear): Removed.
14266         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
14267         shared_hash_find_slot_unshare, shared_hash_find_slot,
14268         shared_hash_find_slot_noinsert, shared_hash_find): New
14269         static inlines.
14270         (shared_hash_unshare, shared_hash_destroy): New functions.
14271         (unshare_variable): Unshare set->vars if shared, use
14272         shared_hash_htab.
14273         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
14274         (get_init_value, find_src_set_src, dump_dataflow_set,
14275         clobber_variable_part, emit_notes_for_differences): Use
14276         shared_hash_htab.
14277         (dataflow_set_init): Remove second argument, set vars to
14278         empty_shared_hash instead of creating a new htab.
14279         (dataflow_set_clear): Call shared_hash_destroy and set vars
14280         to empty_shared_hash instead of calling vars_clear.
14281         (dataflow_set_copy): Don't call vars_copy, instead just share
14282         the src htab with dst.
14283         (variable_union): Use shared_hash_*, use initially NO_INSERT
14284         lookup if set->vars is shared.  Don't keep slot cleared before
14285         calling unshare_variable.  Unshare set->vars if needed.
14286         Even ->refcount == 1 vars must be unshared if set->vars is shared
14287         and var needs to be modified.
14288         (variable_canonicalize): New function.
14289         (dataflow_set_union): If dst->vars is empty, just share src->vars
14290         with dst->vars and traverse with variable_canonicalize to canonicalize
14291         and unshare what is needed.
14292         (dataflow_set_different): If old_set and new_set use the same shared
14293         htab, they aren't different.  If number of htab elements is different,
14294         htabs are different.  Use shared_hash_*.
14295         (dataflow_set_destroy): Call shared_hash_destroy instead of
14296         htab_delete.
14297         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
14298         second argument to dataflow_set_init.
14299         (vt_initialize): Likewise.  Initialize shared_hash_pool and
14300         empty_shared_hash, move bb in/out initialization afterwards.
14301         Use variable_htab_free instead of NULL as changed_variables del hook.
14302         (variable_was_changed): Change type of second argument to pointer to
14303         dataflow_set.  When inserting var into changed_variables, bump
14304         refcount.  Unshare set->vars if set is shared htab and slot needs to
14305         be cleared.
14306         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
14307         lookup if set->vars is shared.  Unshare set->vars if needed.
14308         Even ->refcount == 1 vars must be unshared if set->vars is shared
14309         and var needs to be modified.  Adjust variable_was_changed caller.
14310         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
14311         vars must be unshared if set->vars is shared and var needs to be
14312         modified.  Adjust variable_was_changed caller.
14313         (emit_note_insn_var_location): Don't pool_free var.
14314         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
14315         instead of 1.
14316         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
14317         free_alloc_pool on shared_hash_pool.
14318
14319 2009-06-20  Anthony Green  <green@moxielogic.com>
14320
14321         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
14322         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
14323
14324 2009-06-20  Richard Guenther  <rguenther@suse.de>
14325
14326         * tree-ssa-structalias.c (find_func_aliases): For memset use
14327         a constraint from NULL if we memset to zero.
14328         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
14329         we explicitly handle that do not read from memory.
14330         (call_may_clobber_ref_p_1): Properly handle builtins that may
14331         set errno.
14332
14333 2009-06-20  Richard Guenther  <rguenther@suse.de>
14334
14335         PR tree-optimization/40495
14336         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
14337         (new_scalar_tmp_constraint_exp): New function.
14338         (process_constraint): Do not create temporary decls.
14339         (process_all_all_constraints): Likewise.
14340         (handle_const_call): Likewise.
14341         (create_function_info_for): Do not set decl.
14342
14343 2009-06-19  Ian Lance Taylor  <iant@google.com>
14344
14345         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
14346         (rs6000_attribute_table): Make static; move before use.
14347
14348 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
14349
14350         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
14351         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
14352         Propagate the TREE_READONLY flag without overwriting it.
14353         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
14354         Propagate the TREE_READONLY flag onto the result.
14355         (process_call_operands): Move around.  Use correct constant value.
14356
14357 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14358
14359         PR target/40482
14360         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
14361         * config/arm/arm.md: Likewise.
14362
14363 2009-06-19  Ian Lance Taylor  <iant@google.com>
14364
14365         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
14366         to GIMPLE_ERROR_MARK.
14367
14368         * c-typeck.c (build_conditional_expr): Add op1_original_type and
14369         op2_original_type parameters.  Warn about using different enum types.
14370         * c-parser.c (c_parser_conditional_expression): Pass original
14371         types to build_conditional_expr.
14372         * c-tree.h (build_conditional_expr): Update declaration.
14373
14374 2009-06-19  Ian Lance Taylor  <iant@google.com>
14375
14376         * config/i386/i386.c (ix86_function_specific_save): Test that
14377         fields match values, rather than testing the values are in a
14378         certain range.
14379
14380 2009-06-19  Richard Guenther  <rguenther@suse.de>
14381
14382         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
14383         ADDR_EXPR pointers.
14384         (ptr_derefs_may_alias_p): Likewise.
14385         (ptr_deref_may_alias_ref_p_1): New function.
14386         (ptr_deref_may_alias_ref_p): Likewise.
14387         (ref_maybe_used_by_call_p_1): Handle builtins that are not
14388         covered by looking at the ESCAPED solution.
14389         (call_may_clobber_ref_p_1): Likewise.
14390         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
14391         Handle NULL_TREE offset.  Do not produce redundant constraints.
14392         (process_all_all_constraints): New helper function.
14393         (do_structure_copy): Use it.
14394         (handle_lhs_call): Likewise.
14395         (find_func_aliases): Handle some builtins with pointer arguments
14396         and/or return values explicitly.
14397
14398 2009-06-19  Ian Lance Taylor  <iant@google.com>
14399
14400         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
14401
14402 2009-06-19  Ian Lance Taylor  <iant@google.com>
14403
14404         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
14405
14406 2009-06-19  Ian Lance Taylor  <iant@google.com>
14407
14408         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
14409         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
14410         version.
14411
14412         * c-decl.c (finish_decl): If -Wc++-compat, warn about
14413         uninitialized const.
14414
14415 2009-06-19  Ian Lance Taylor  <iant@google.com>
14416
14417         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
14418         all uses.
14419
14420         * c-decl.c (in_struct, struct_types): Remove.
14421         (struct c_binding): Add in_struct field.
14422         (c_binding_ptr): Define type, along with VEC.
14423         (struct c_struct_parse_info): Define.
14424         (struct_parse_info): New static variable.
14425         (bind): Initialize in_struct field.
14426         (start_struct): Remove enclosing_in_struct and
14427         enclosing_struct_types parameters.  Add
14428         enclosing_struct_parse_info parameter.  Change all callers.  Set
14429         struct_parse_info rather than in_struct and struct_types.
14430         (grokfield): If -Wc++-compat and there is a symbol binding for the
14431         field name, set the in_struct flag and push it on the
14432         struct_parse_info->fields vector.
14433         (warn_cxx_compat_finish_struct): New static function.
14434         (finish_struct): Remove enclosing_in_struct and
14435         enclosing_struct_types parameters.  Add
14436         enclosing_struct_parse_info parameter.  Change all callers.  Don't
14437         set C_TYPE_DEFINED_IN_STRUCT here.  Call
14438         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
14439         parameter.  Only push on struct_types if warn_cxx_compat.
14440         (finish_enum): Only push on struct_types if warn_cxx_compat.
14441         (declspecs_add_type): Add loc parameter.  Change all callers.
14442         Change all error calls to error_at.  Pass loc, not input_location,
14443         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
14444         defined in a struct.  If -Wc++-compat and parsing a struct, record
14445         that a typedef name was used.
14446         * c-parser.c (c_parser_declspecs): Get location to pass to
14447         declspecs_add_type.
14448         (c_parser_struct_or_union_specifier): Update calls to start_struct
14449         and finish_struct.
14450         * c-tree.h (struct c_struct_parse_info): Declare.
14451         (finish_struct, start_struct): Update declarations.
14452         (declspecs_add_type): Update declaration.
14453
14454 2009-06-19  Ian Lance Taylor  <iant@google.com>
14455
14456         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
14457         variable with an anonymous type.
14458
14459 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
14460
14461         * see.c: Remove for real.
14462
14463 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
14464
14465         * optabs.h (enum optab_index): Add new OTI_significand.
14466         (significand_optab): Define corresponding macro.
14467         * optabs.c (init_optabs): Initialize significand_optab.
14468         * genopinit.c (optabs): Implement significand_optab using
14469         significand?f2 patterns.
14470         * builtins.c (expand_builtin_mathfn): Handle
14471         BUILT_IN_SIGNIFICAND{,F,L}.
14472         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
14473         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
14474
14475         * config/i386/i386.md (significandxf2, significand<mode>2): New
14476         expanders to implement significandf, significand and significandl
14477         built-ins as inline x87 intrinsics.
14478
14479 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
14480
14481         * config/avr/avr.c (avr_override_options): Remove setting value of
14482         PARAM_INLINE_CALL_COST.
14483
14484 2009-06-18  Richard Henderson  <rth@redhat.com>
14485
14486         PR 40488
14487         * tree-pass.h (TDF_ASMNAME): New.
14488         * tree-dump.c (dump_options): Add asmname.
14489         * doc/invoke.texi: Document it.
14490
14491         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
14492         (dump_decl_name): ...here.
14493         (dump_function_name): New flags arg; mind TDF_ASMNAME.
14494         (dump_generic_node): Update dump_function_name calls.
14495         (print_call_name): New flags arg; update all dump calls.
14496         * diagnostic.h (print_call_name): Update.
14497         * gimple-pretty-print.c (dump_gimple_call): Update.
14498
14499 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
14500
14501         PR target/40470
14502         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
14503
14504 2009-06-18  Diego Novillo  <dnovillo@google.com>
14505
14506         * doc/plugins.texi: Document plugin_is_GPL_compatible.
14507         * plugin.c (str_license): Declare.
14508         (try_init_one_plugin): Assert that the symbol
14509         'plugin_is_GPL_compatible' exists.
14510
14511 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
14512
14513         * see.c: Remove.
14514         * Makefile.in (OBJS-common): Remove see.o.
14515         (see.o): Remove.
14516         * common.opt (fsee): Mark as preserved for backward compatibility.
14517         * opts.c (common_handle_option): Add OPT_fsee to the backward
14518         compatibility section.
14519         * passes.c (init_optimization_passes, pass_see): Remove pass.
14520         * timevar.def (TV_SEE): Remove.
14521         * tree-pass.h (pass_see): Remove declaration.
14522         * doc/invoke.texi (-fsee): Remove documentation.
14523
14524 2009-06-18  Martin Jambor  <mjambor@suse.cz>
14525
14526         * tree-sra.c: Include statistics.h
14527         (sra_stats): New variable.
14528         (sra_initialize): Clear sra_stats.
14529         (create_access_replacement): Increment sra_stats.replacements.
14530         (get_access_replacement): Do not return twice.
14531         (analyze_all_variable_accesses): Increment statistics counter by the
14532         number of scalarized aggregates.
14533         (generate_subtree_copies): Increment sra_stats.subtree_copies.
14534         (sra_modify_expr): Increment sra_stats.exprs.
14535         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
14536         (sra_modify_assign): Increment sra_stats.exprs,
14537         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
14538         (perform_intra_sra): Update statistics counters.
14539         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
14540
14541 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
14542
14543         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
14544         (arm_scalar_mode_supported_p): New function.
14545
14546 2009-06-18  Paul Brook  <paul@codesourcery.com>
14547             Sandra Loosemore  <sandra@codesourcery.com>
14548
14549         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
14550         (__extendhfsf2, __truncsfhf2): Define.
14551         * config/arm/fp16.c: New file.
14552         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
14553         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
14554
14555 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
14556
14557         * doc/extend.texi (Half-Precision): New section.
14558         * doc/invoke.texi (Option Summary): List -mfp16-format.
14559         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
14560         * config/arm/arm.opt (mfp16-format=): New.
14561         * config/arm/arm.c: Include intl.h.
14562         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
14563         (TARGET_INVALID_RETURN_TYPE): Redefine.
14564         (TARGET_PROMOTED_TYPE): Redefine.
14565         (TARGET_CONVERT_TO_TYPE): Redefine.
14566         (arm_fp16_format): Define.
14567         (all_fpus): Add entry for neon-fp16.
14568         (fp_model_for_fpu): Likewise.
14569         (struct fp16_format): Declare.
14570         (all_fp16_formats): Define.
14571         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
14572         functions.
14573         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
14574         and no ldrh.
14575         (arm_legitimate_index_p): Treat HFmode like HImode.
14576         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
14577         (coproc_secondary_reload_class): Special-case HFmode.
14578         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
14579         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
14580         (arm_init_fp16_builtins): New.
14581         (arm_init_builtins): Call it.
14582         (arm_invalid_parameter_type): New.
14583         (arm_invalid_return_type): New.
14584         (arm_promoted_type): New.
14585         (arm_convert_to_type).
14586         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
14587         format.
14588         (arm_emit_fp16_const): New function.
14589         (arm_mangle_type): Mangle __fp16 as "Dh".
14590         * config/arm/arm.h (TARGET_VFPD32): Make it know about
14591         FPUTYPE_NEON_FP16.
14592         (TARGET_NEON_FP16): New.
14593         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
14594         (enum fputype): Add FPUTYPE_NEON_FP16.
14595         (enum arm_fp16_format_type): Declare.
14596         (arm_fp16_format): Declare.
14597         (LARGEST_EXPONENT_IS_NORMAL): Define.
14598         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
14599         * config/arm/arm-modes.def (HFmode): Define.
14600         * config/arm/vfp.md (*movhf_vfp): New.
14601         (extendhfsf2): New.
14602         (truncsfhf2): New.
14603         * config/arm/arm.md (fpu): Add neon_fp16.
14604         (floatsihf2, floatdihf2): New.
14605         (fix_trunchfsi2, fix_trunchfdi2): New.
14606         (truncdfhf2): New.
14607         (extendhfdf2): New.
14608         (movhf): New.
14609         (*arm32_movhf): New.
14610         (*thumb1_movhf): New.
14611         (consttable_2): Add check for HFmode constants.
14612         (consttable_4): Handle HFmode constants.
14613
14614 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
14615
14616         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
14617
14618 2009-06-17  Olivier Hainque  <hainque@adacore.com>
14619
14620         * collect2.c (main): Use CONST_CAST2 to perform char ** to
14621         const char ** conversion in AIX specific section.
14622
14623 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
14624
14625         * config/i386/i386.c (ix86_special_builtin_type): Remove
14626         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
14627         (bdesc_special_args): Updated.
14628         (ix86_init_mmx_sse_builtins): Likewise.
14629         (ix86_expand_special_args_builtin): Likewise.
14630
14631 2009-06-17  Richard Henderson  <rth@redhat.com>
14632
14633         * tree-pretty-print.c (maybe_dump_asm_name): New.
14634         (dump_decl_name): Use it.
14635         (PRINT_FUNCTION_NAME): Merge into...
14636         (dump_function_name): ... here.  Use maybe_dump_asm_name.
14637
14638 2009-06-17  Cary Coutant  <ccoutant@google.com>
14639
14640         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
14641         Change caller.
14642         * debug.c (struct gcc_debug_hooks): Change placeholder for
14643         source_line hook.
14644         (debug_nothing_int_charstar_int): Replaced by...
14645         (debug_nothing_int_charstar_int_bool): ...this.
14646         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
14647         source_line prototype.
14648         (debug_nothing_int_charstar_int): Replaced by...
14649         (debug_nothing_int_charstar_int_bool): ...this.
14650         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
14651         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
14652         Output is_stmt operand when necessary.
14653         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
14654         (notice_source_line): Add is_stmt parameter.
14655         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
14656         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
14657         Change callers.
14658         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
14659         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
14660
14661 2009-06-17  Ian Lance Taylor  <iant@google.com>
14662
14663         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
14664         Change all uses.
14665         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
14666         call uses.
14667
14668 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
14669
14670         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
14671         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
14672         tree_strip_sign_nop_conversions and
14673         tree_ssa_strip_useless_type_conversions rather than stripping
14674         the operations here.
14675         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
14676         Declare them.
14677         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
14678         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
14679         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
14680         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
14681         functions.
14682
14683 2009-06-17  Michael Eager  <eager@eagercon.com>
14684
14685         * config/rs6000/constraints.md (register_constraint "d"): New.
14686         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
14687         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
14688         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
14689         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
14690         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
14691         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
14692         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
14693         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
14694         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
14695         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
14696         __fctiwz): Same.
14697         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
14698         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
14699         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
14700         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
14701         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
14702         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
14703         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
14704         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
14705         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
14706         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
14707         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
14708         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
14709         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
14710         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
14711
14712 2009-06-16  Ian Lance Taylor  <iant@google.com>
14713
14714         * profile.c (total_num_never_executed): Don't define.
14715         (compute_branch_probabilities): Don't count or print
14716         num_never_executed.
14717         (init_branch_prob): Don't set total_num_never_executed.
14718         (end_branch_prob): Don't print total_num_never_executed.
14719
14720 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
14721
14722         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
14723
14724 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
14725
14726         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
14727         (nabstd2_fpr): Same.
14728
14729 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
14730
14731         * expr.c (expand_assignment): Change complex type check.
14732
14733 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
14734
14735         * doc/plugins.texi (Building GCC plugins): Added new section.
14736
14737 2009-06-17  Ian Lance Taylor  <iant@google.com>
14738
14739         * c-pch.c (get_ident): Don't set size of templ array.
14740         (pch_init): Don't set size of partial_pch array.
14741
14742         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
14743         string constant to intialize an array whose size is the length of
14744         the string.
14745
14746 2009-06-17  Richard Guenther  <rguenther@suse.de>
14747
14748         PR tree-optimization/40389
14749         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
14750         to addressable types.
14751         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
14752
14753 2009-06-17  Richard Guenther  <rguenther@suse.de>
14754
14755         PR middle-end/40460
14756         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
14757         if there is no evolution of left in the loop bail out.
14758         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
14759         chrec_fold_multiply.
14760
14761 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
14762             Janis Johnson  <janis187@us.ibm.com>
14763
14764         PR target/39254
14765         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
14766         for the symbol ref of a constant that is the source of a move
14767         - nor for any other not-obvious-label-ref constants.
14768
14769 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
14770
14771         * plugin.c (position_pass): Skip newly inserted pass during list
14772         traversal to avoid repeated insertion.
14773
14774 2009-06-16  Ian Lance Taylor  <iant@google.com>
14775
14776         * vec.h (VEC_stack_alloc): Define different version if
14777         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
14778         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
14779         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
14780         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
14781
14782 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
14783
14784         * config.gcc (extra_headers): Add ia32intrin.h for x86.
14785
14786         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
14787         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
14788         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
14789         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
14790         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
14791         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
14792         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
14793         (bdesc_special_args): Add __builtin_ia32_rdtsc and
14794         __builtin_ia32_rdtscp.
14795         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
14796         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
14797         and __builtin_ia32_rorhi.
14798         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
14799         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
14800         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
14801         (ix86_expand_args_builtin): Likewise.
14802         (ix86_expand_special_args_builtin): Likewise.
14803
14804         * config/i386/i386.md (UNSPECV_RDTSCP): New.
14805         (UNSPECV_RDTSC): Likewise.
14806         (UNSPECV_RDPMC): Likewise.
14807         (*bsr): Renamed to ...
14808         (bsr): This
14809         (*bsr_rex64): Renamed to ...
14810         (bsr_rex64): This.
14811         (rdpmc): New.
14812         (*rdpmc): Likewise.
14813         (*rdpmc_rex64): Likewise.
14814         (rdtsc): Likewise.
14815         (*rdtsc): Likewise.
14816         (*rdtsc_rex64): Likewise.
14817         (rdtscp): Likewise.
14818         (*rdtscp): Likewise.
14819         (*rdtscp_rex64): Likewise.
14820
14821         * config/i386/ia32intrin.h: New.
14822
14823         * config/i386/x86intrin.h: Include <ia32intrin.h>.
14824
14825 2009-06-16  Ian Lance Taylor  <iant@google.com>
14826
14827         * ira-build.c (copy_info_to_removed_store_destinations):
14828         Initialize parent_a.
14829
14830 2009-06-16  Ian Lance Taylor  <iant@google.com>
14831
14832         * c-decl.c (grokdeclarator): Change size_varies to bool.
14833
14834 2009-06-16  Ian Lance Taylor  <iant@google.com>
14835
14836         * sel-sched.c: Make forward declarations of move_op_hooks and
14837         fur_hooks explicitly extern.
14838
14839 2009-06-16  Ian Lance Taylor  <iant@google.com>
14840
14841         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
14842         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
14843
14844 2009-06-16  Ian Lance Taylor  <iant@google.com>
14845
14846         * resource.c (mark_referenced_resources): Change
14847         include_delayed_effects parameter to bool.  Change all callers.
14848         (mark_end_of_function_resources): Likewise.
14849         * reorg.c (insn_references_resource_p): Likewise.
14850         (insn_sets_resource_p): Likewise.
14851         * resource.h (mark_referenced_resources): Update declaration.
14852         (mark_end_of_function_resources): Update declaration.
14853
14854 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
14855
14856         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
14857
14858 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
14859
14860         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
14861         GCC can bootstrap on AIX with GNU Binutils 2.20.
14862
14863 2009-06-16  Ian Lance Taylor  <iant@google.com>
14864
14865         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
14866
14867 2009-06-16  Ian Lance Taylor  <iant@google.com>
14868
14869         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
14870         inline, not extern inline.
14871         (exact_log2): Likewise.
14872         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
14873         test CLZ_HWI.
14874         (exact_log2): Likewise, but don't test CTZ_HWI.
14875
14876 2009-06-16  Ian Lance Taylor  <iant@google.com>
14877
14878         * bitmap.c (bitmap_clear): Don't declare as inline.
14879         * gimple.c (gimplify_assign): Likewise.
14880         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
14881         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
14882         (sched_scan_info): Remove duplicate definition.
14883
14884 2009-06-16  Ian Lance Taylor  <iant@google.com>
14885
14886         * c-common.c (skip_evaluation): Don't define.
14887         (c_inhibit_evaluation_warnings): Define global variable.
14888         (overflow_warning): Check c_inhibit_evaluation_warnings rather
14889         than skip_evaluation.
14890         (convert_and_check, warn_for_div_by_zero): Likewise.
14891         * c-common.h (skip_evaluation): Don't declare.
14892         (c_inhibit_evaluation_warnings): Declare.
14893         * c-parser.c (c_parser_typeof_specifier): Set
14894         c_inhibit_evaluation_warnings rather than skip_evaluation.
14895         (c_parser_conditional_expression): Likewise.
14896         (c_parser_binary_expression): Likewise.
14897         (c_parser_sizeof_expression): Likewise.
14898         (c_parser_alignof_expression): Likewise.
14899         * c-typeck.c (build_indirect_ref): Check
14900         c_inhibit_evaluation_warnings rather than skip_evaluation.
14901         (build_conditional_expr, build_binary_op): Likewise.
14902
14903 2009-06-16  Richard Guenther  <rguenther@suse.de>
14904
14905         * tree-ssa-alias.c (is_escape_site): Remove.
14906         * tree-ssa-alias.h (enum escape_type): Remove.
14907         (is_escape_site): Likewise.
14908         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
14909         via casts and asms without deferring to is_escape_site.
14910
14911 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
14912
14913         PR middle-end/40446
14914         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
14915         use gen_lowpart if op0 has complex mode.
14916
14917 2009-06-16  Richard Guenther  <rguenther@suse.de>
14918
14919         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
14920         variables add them to ESCAPED.
14921         (find_func_aliases): Do not make all indirectly stored values escaped.
14922
14923 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
14924
14925         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
14926         make_decl_one_only.
14927
14928 2009-06-16  Martin Jambor  <mjambor@suse.cz>
14929
14930         PR tree-optimization/40432
14931         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
14932         check whether we need to force gimple register operand.
14933
14934 2009-06-16  Martin Jambor  <mjambor@suse.cz>
14935
14936         PR tree-optimization/40413
14937         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
14938         build_ref_for_offset.
14939         (propagate_subacesses_accross_link): Fix a typo in a comment.
14940
14941 2009-06-16  Ira Rosen  <irar@il.ibm.com>
14942
14943         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
14944         with additional parameter.
14945         * tree-vectorizer.h (enum vect_def_type): Add new value
14946         vect_nested_cycle.
14947         (enum vect_relevant): Add comments.
14948         (vect_is_simple_reduction): Add new argument.
14949         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
14950         Detect nested cycles.
14951         (vect_is_simple_reduction): Update documentation, add an argument to
14952         distinguish inner-loop reduction from nested cycle, detect nested
14953         cycles, fix printings and indentation, don't swap operands in case
14954         of nested cycle.
14955         (get_initial_def_for_reduction): Handle subtraction.
14956         (vect_create_epilog_for_reduction): Add new argument to specify
14957         reduction variable.
14958         (vect_finalize_reduction): Handle subtraction, fix comments.
14959         (vectorizable_reduction): Handle nested cycles. In case of nested
14960         cycle keep track of the reduction variable position. Call
14961         vect_is_simple_reduction with additional parameter. Use original
14962         statement code in reduction epilogue for nested cycle. Call
14963         vect_create_epilog_for_reduction with additional parameter.
14964         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
14965         inner-loop vectorization.
14966         (vect_recog_widen_sum_pattern): Likewise.
14967         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
14968         and reductions.
14969         (vect_mark_stmts_to_be_vectorized): Likewise.
14970         (vect_get_vec_def_for_operand): Handle nested cycles.
14971
14972 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14973
14974         * doc/invoke.texi (Debugging Options): Fix option index entries
14975         for -fdump-statistics, -frandom-seed add entries for
14976         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
14977         (FRV Options): Fix entries for -mTLS, -mtls.
14978         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
14979         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
14980         (M68hc1x Options): Fix @itemx for -mnominmax.
14981         (MCore Options): Fix entry for -mno-lsim.
14982         (MMIX Options): Fix entry for -mabi=mmixware.
14983         (PDP-11 Options): Fix entry for -mbcopy-builtin.
14984
14985 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
14986
14987         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
14988         Mention the plugin mode of gengtype.
14989         * doc/gty.texi (Source Files Containing Type Information): Likewise.
14990         * gengtype.c: Updated copyright.
14991         (plugin_files, nb_plugin_files) Added new static variables.
14992         (measure_input_list) Care about plugin_files.
14993         (write_rtx_next): Added early return in plugin mode.
14994         (create_file): Updated copyright year in generated file. Added
14995         asserts.
14996         (oprintf): Added early return if NULL outf.
14997         (get_output_file_with_visibility): Care of plugin_files.
14998         (get_output_file_name): May return null.
14999         (write_local): Added early return.
15000         (put_mangled_filename): Ditto.
15001         (finish_root_table): Added check for base_files.
15002         (write_roots): Care about null when plugins.
15003         (main): Added plugin mode.
15004
15005 2009-06-15  Ian Lance Taylor  <iant@google.com>
15006
15007         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
15008         * gcov.c (read_count_file): Add braces around variables declared
15009         before label.
15010
15011         * c.opt (Wjump-misses-init): New warning.
15012         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
15013         -Wall and -Wc++-compat if not already set.
15014         (c_common_post_options): Clear warn_jump_misses_init if it was not
15015         set.
15016         * c-decl.c (struct c_binding): Change type field to a union with
15017         new label field.  Make it the first field in the struct.  Update
15018         references to type to use u.type instead.
15019         (struct c_spot_bindings): Define.
15020         (struct c_goto_bindings): Define.
15021         (c_goto_bindings_p): Define, along with VECs.
15022         (struct c_label_vars): Define.
15023         (struct c_scope): Add has_label_bindings field.
15024         (bind_label, set_spot_bindings): New static functions.
15025         (decl_jump_unsafe, update_spot_bindings): New static functions.
15026         (update_label_decls): New static function.
15027         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
15028         Update binding u.label field to shadowed field.
15029         (c_binding_start_stmt_expr): New function.
15030         (c_binding_end_stmt_expr): New function.
15031         (pushdecl): Don't call c_begin_vm_scope.
15032         (make_label): Add defining and p_label_vars parameters.  Change
15033         all callers.
15034         (lookup_label): Correct test for whether a label has not yet been
15035         defined.  Call bind_label rather than bind.
15036         (warn_about_goto): New static function.
15037         (lookup_label_for_goto): New function.
15038         (declare_label): Call bind_label rather than bind.
15039         (check_earlier_gotos): New static function.
15040         (define_label): Don't give errors about jumping into statement
15041         expressions or scopes of variably modified types.  Call
15042         set_spot_bindings and check_earlier_gotos.  Call bind_label
15043         instead of bind.  Don't set label_context_stack_se or
15044         label_context_stack_vm.
15045         (c_get_switch_bindings): New function.
15046         (c_release_switch_bindings): New function.
15047         (c_check_switch_jump_warnings): New function.
15048         (start_function): Don't set label_context_stack_se or
15049         label_context_stack_vm.
15050         (finish_function): Likewise.
15051         * c-typeck.c (label_context_stack_se): Don't define.
15052         (label_context_stack_vm): Don't define.
15053         (c_finish_goto_label): Call lookup_label_for_goto rather than
15054         lookup_label.  Don't give errors about jumping into a statement
15055         expression or the scope of a variably modified type.  Don't set
15056         label_context_stack_se or label_context_stack_vm.
15057         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
15058         fields.  Add bindings field.
15059         (c_start_case): Don't set deleted fields.  Set bindings field.
15060         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
15061         or blocked_vm.  Call c_check_switch_jump_warnings.
15062         (c_finish_case): Don't test blocked_stmt_expr field.  Call
15063         c_release_switch_bindings.
15064         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
15065         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
15066         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
15067         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
15068         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
15069         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
15070         (c_begin_vm_scope, c_end_vm_scope): Don't define.
15071         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
15072         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
15073         (C_DECL_UNJUMPABLE_VM): Don't define.
15074         (C_DECL_UNDEFINABLE_VM): Don't define.
15075         (struct c_label_list): Don't define.
15076         (struct c_label_context_se): Don't define.
15077         (struct c_label_context_vm): Don't define.
15078         (struct c_spot_bindings): Declare.
15079         (c_bindings_start_stmt_expr): Declare.
15080         (c_bindings_end_stmt_expr): Declare.
15081         (lookup_label_for_goto): Declare.
15082         (c_get_switch_bindings, c_release_switch_bindings): Declare.
15083         (c_check_switch_jump_warnings): Declare.
15084         (label_context_stack_se, label_context_stack_vm): Don't declare.
15085         (c_finish_goto_label): Update declaration.
15086         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
15087         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
15088         (Warning Options): Document -Wjump-misses-init.
15089
15090 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
15091
15092         * tree-object-size.c (addr_object_size): Fix a pasto in the last
15093         change.
15094
15095 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
15096
15097         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
15098
15099 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
15100
15101         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
15102
15103 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
15104
15105         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
15106
15107 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
15108
15109         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
15110         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15111         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
15112         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
15113         * dwarf2asm.c (dw2_force_const_mem): Update call to
15114         make_decl_one_only.
15115         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
15116         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
15117         * langhooks.c (lhd_comdat_group): Remove.
15118         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
15119         * tree.h (DECL_COMDAT_GROUP): New.
15120         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
15121         (tree_decl_with_vis): Add comdat_group. Remove one_only.
15122         (make_decl_one_only): Change signature.
15123         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
15124         make_decl_one_only.
15125         (make_decl_one_only): Change signature.
15126         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
15127
15128 2009-06-15  Richard Guenther  <rguenther@suse.de>
15129
15130         PR middle-end/40439
15131         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
15132
15133 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15134
15135         * tree-ssa-math-opts.c: Remove extra divide.
15136
15137 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15138
15139         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
15140
15141 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15142
15143         * passes.c: Add bswap pass.
15144         * tree-pass.h: Add pass_optimize_bswap declaration.
15145         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
15146         Include rtl.h, expr.h and optabs.h for optab_handler check.
15147         (struct symbolic_number, pass_optimize_bswap): New definition.
15148         (do_shift_rotate, verify_symbolic_number_p): New functions.
15149         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
15150         (gate_optimize_bswap): New function.
15151         * tree.c (widest_int_cst_value): New function.
15152         * tree.h (widest_int_cst_value): Prototype added.
15153
15154 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
15155
15156         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
15157         REG_EQUAL/REG_EQUIV notes.
15158
15159 2009-06-14  Richard Guenther  <rguenther@suse.de>
15160
15161         PR middle-end/40389
15162         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
15163         has its address taken if NRV was applied and it is addressable.
15164         * tree-ssa-structalias.c (get_constraint_for_address_of): New
15165         function split out from ...
15166         (get_constraint_for_1): ... here.
15167         (handle_rhs_call): Use it to mark the return slot escaped if
15168         it is addressable and NRV was applied.
15169
15170 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
15171
15172         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
15173         Change first argument type to location_t.
15174         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
15175         Do not set input_location.
15176         Use loc instead of input_location throughout.
15177
15178 2009-06-13  Richard Guenther  <rguenther@suse.de>
15179
15180         PR tree-optimization/40421
15181         * tree-predcom.c (should_unroll_loop_p): Remove.
15182         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
15183
15184 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
15185
15186         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15187         Add location argument.
15188
15189 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
15190
15191         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
15192         build_decl.
15193         * config/s390/s390.c (s390_build_builtin_va_list): Same.
15194         (s390_gimplify_va_arg): Pass location to create_artificial_label.
15195         * config/spu/spu-protos.h: Add location to
15196         spu_resolve_overloaded_builtin.
15197         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
15198         spu_build_builtin_va_list.
15199         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
15200         argument.  Pass location to build_function_call_vec.
15201         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
15202         build_decl.
15203         (emit_fpu_switch): Same.
15204         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
15205         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
15206         to build_decl and create_artificial_label.
15207         (xtensa_gimplify_va_arg_expr): Same.
15208         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
15209         (xstormy16_gimplify_va_arg_expr): Same.
15210         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
15211         * config/arm/arm.c (arm_build_builtin_va_list): Same.
15212         * config/mips/mips.c (mips_build_builtin_va_list): Same.
15213         (mips16_build_function_stub): Same.
15214         (mips16_build_call_stub): Same.
15215
15216 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
15217
15218         PR target/40327
15219         * arm/constraints.md (Pa, Pb): New constraints.
15220         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a
15221         split pattern to deal with them.
15222
15223 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
15224
15225         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
15226         fix index entry for -Xpreprocessor.
15227
15228 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
15229
15230         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15231         Add location argument to build_decl call.
15232         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
15233         (rs6000_init_builtins): Same.
15234         (spe_init_builtins): Same.
15235         (rs6000_gimplify_va_arg): Add location argument to
15236         create_artificial_label call.
15237
15238 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
15239
15240         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
15241         * combine-stack-adj.c (pass_stack_adjustments): Use it.
15242         * Makefile.in: Fix GGC dependency for gcse.o.
15243
15244 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
15245
15246         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
15247         * gimple-pretty-print.c (dump_gimple_stmt): Same.
15248         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
15249         created.
15250         * c-parser.c (c_parser_binary_expression): Use current column while
15251         building binary operations.
15252         * common.opt (fshow-column): Enable by default.
15253         * tree-vrp.c (check_array_ref): Use warning_at.
15254         (check_array_bounds): Use location from call back if expr has no
15255         location.
15256         * tree.h: Add location argument to maybe_fold_*.
15257         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
15258         (maybe_fold_offset_to_array_ref): Add location argument and use it.
15259         (maybe_fold_offset_to_component_ref): Same.
15260         (maybe_fold_offset_to_reference): Same.
15261         (maybe_fold_offset_to_address): Same.
15262         (maybe_fold_stmt_indirect): Same.
15263         (maybe_fold_stmt_addition): Same.
15264         (fold_stmt_r): Pass location to maybe_fold_*.
15265         (fold_gimple_assign): Same.
15266         * c-tree.h: Add location argument to finish_decl,
15267         default_function_array_conversion, store_init_value.
15268         * c-decl.c (define_label): Use error_at.
15269         (c_make_fname_decl): Pass location to finish_decl.
15270         (finish_decl): New location argument.
15271         (build_compound_literal): Pass location to store_init_value.
15272         (grokdeclarator): Pass location to finish_decl.
15273         (grokfield): Same.
15274         * c-typeck.c (array_to_pointer_conversion): New location argument.
15275         (function_to_pointer_conversion): Same.
15276         (default_function_array_conversion): Same.
15277         (parser_build_unary_op): Pass location to overflow_warning.
15278         (parser_build_binary_op): Same.  Use warning_at.
15279         (build_unary_op): Pass location to array_to_pointer_conversion.
15280         (build_c_cast): Pass location to digest_init.
15281         (build_modify_expr): New location argument.
15282         (convert_for_assignment): Same.
15283         (store_init_value): Same.
15284         (digest_init): Same.
15285         (output_init_element): Pass location to digest_init and
15286         array_to_pointer_conversion.
15287         (c_finish_return): Pass location to convert_for_assignment.
15288         * gimplify.c (gimplify_conversion): Pass location to
15289         maybe_fold_offset_to_address.
15290         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
15291         to maybe_fold_stmt_addition.
15292         * c-omp.c (c_finish_omp_atomic): Pass new location to
15293         build_modify_expr.
15294         (c_finish_omp_for): Same.
15295         * c-common.c (overflow_warning): New argument.
15296         * c-common.h: New argument to build_modify_expr, overflow_warning.
15297         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
15298         finish_decl.
15299         (c_parser_initializer): Pass location to
15300         default_function_array_conversion.
15301         (c_parser_initelt): Same.
15302         (c_parser_initval): Same.
15303         (c_parser_asm_operands): Same.
15304         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
15305         (c_parser_conditional_expression): Same.
15306         (c_parser_binary_expression): Add location info to stack.  Use it.
15307         (c_parser_unary_expression): Pass location to
15308         default_function_array_conversion, parser_build_unary_op,
15309         build_indirect_ref, c_parser_postfix_expression_after_primary.
15310         (c_parser_postfix_expression_after_primary): New location argument.
15311         Use it.
15312         (c_parser_expression_conv): Pass location to
15313         default_function_array_conversion.
15314         (c_parser_expr_list): Same.
15315         (c_parser_omp_atomic): Same.
15316         (c_parser_omp_for_loop): Same.
15317         * c-tree.h (struct c_declarator): Add comment to id_loc.
15318         (build_array_declarator): New argument.
15319         * c-decl.c (build_array_declarator): Add location argument.
15320         (grokdeclarator): Set id_loc for cdk_array.
15321         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
15322         build_array_declarator.
15323         * tree.c (build_omp_clause): Add location argument.
15324         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
15325         (OMP_CLAUSE_LOCATION): New macro.
15326         (struct tree_omp_clause): Add location field.
15327         (build_omp_clause): Add argument.
15328         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
15329         build_omp_clause.
15330         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
15331         (cp_parser_omp_clause_collapse): Same.
15332         (cp_parser_omp_clause_default): Same.
15333         (cp_parser_omp_clause_if): Same.
15334         (cp_parser_omp_clause_nowait): Same.
15335         (cp_parser_omp_clause_num_threads): Same.
15336         (cp_parser_omp_clause_ordered): Same.
15337         (cp_parser_omp_clause_schedule): Same.
15338         (cp_parser_omp_clause_untied): Same.
15339         (cp_parser_omp_for_loop): Same.
15340         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
15341         * c-tree.h (c_start_case): Add location argument.
15342         (c_process_expr_stmt): Same.
15343         (c_finish_goto_*): Same.
15344         * tree-parloops.c (initialize_reductions): Pass location to
15345         build_omp_clause.
15346         (create_parallel_loop): Same.
15347         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
15348         (gfc_trans_omp_reduction_list): Same.
15349         (gfc_trans_omp_clauses): Same.
15350         (gfc_trans_omp_do): Same.
15351         * c-typeck.c (c_finish_goto_label): Same.
15352         (c_finish_goto_ptr): New location argument.
15353         (c_start_case): Same.
15354         (emit_side_effect_warnings): Same.
15355         (c_process_expr_stmt): Same.
15356         (c_finish_stmt_expr): Same.
15357         (c_finish_omp_clauses): Use error_at instead of error.
15358         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
15359         build_omp_clause.
15360         * c-omp.c (c_split_parallel_clauses): New location argument.
15361         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
15362         to build_omp_clause.
15363         (convert_local_reference_stmt): Same.
15364         (convert_gimple_call): Same.
15365         * c-common.h (c_split_parallel_clauses): New argument.
15366         * c-parser.c (c_parser_statement_after_labels): Pass location to
15367         c_finish_goto_label.
15368         (c_parser_switch_statement): Pass location to c_start_case.
15369         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
15370         and c_process_expr_stmt.
15371         (c_parser_omp_variable_list): Add location argument.
15372         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
15373         (c_parser_omp_clause_default): Same.
15374         (c_parser_omp_clause_if): Same.
15375         (c_parser_omp_clause_num_threads): Same.
15376         (-c_parser_omp_clause_ordered): Same.
15377         (c_parser_omp_clause_reduction): Pass location to
15378         c_parser_omp_variable_list.
15379         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
15380         (c_parser_omp_clause_untied): Same.
15381         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
15382         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
15383
15384         * c-tree.h (check_for_loop_decls, undeclared_variable,
15385         build_component_ref, build_array_ref, build_external_ref,
15386         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
15387         build_conditional_expr, build_compound_expr, c_cast_expr,
15388         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
15389         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
15390         argument.
15391         * c-semantics.c (build_stmt): Same.
15392         (build_case_label): Same.
15393         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
15394         (undeclared_variable): New argument.
15395         (make_label): Same.
15396         (lookup_label): Pass location on down.
15397         (define_label): Same.
15398         (finish_decl): Same.
15399         (build_compound_literal): Same.
15400         (finish_struct): Same.
15401         (finish_function): Do not set location here.
15402         (check_for_loop_decls): New argument.
15403         * tree.c (save_expr): Set location.
15404         (build_empty_stmt): New argument.
15405         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
15406         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
15407         * builtins.c (gimplify_va_arg_expr): Use locations.
15408         (expand_builtin_sync_operation): Same.
15409         * c-typeck.c (build_component_ref): New argument.
15410         (build_array_ref): Same.
15411         (build_external_ref): Same.
15412         (c_expr_sizeof_expr): Same.
15413         (c_expr_sizeof_type): Same.
15414         (parser_build_unary_op): Same.
15415         (build_conditional_expr): Same.
15416         (build_compound_expr): Pass location on down.
15417         (build_compound_expr): New argument.
15418         (build_c_cast): Same.
15419         (c_cast_expr): Same.
15420         (build_asm_expr): Same.
15421         (c_finish_return): Same.
15422         (c_process_expr_stmt): Pass location on down.
15423         (c_finish_stmt_expr): New argument.
15424         (push_clenaup): Same.
15425         (c_finish_omp_parallel): Same.
15426         (c_finish_omp_task): Same.
15427         * gimplify.c (gimplify_call_expr): Pass location on down.
15428         * c-omp.c (c_finish_omp_master): New argument.
15429         (c_finish_omp_critical): Same.
15430         (c_finish_omp_ordered): Same.
15431         (c_finish_omp_barrier): Same.
15432         (-c_finish_omp_taskwait): Same.
15433         (c_finish_omp_atomic): Same.
15434         (c_finish_omp_flush): Same.
15435         * tree-inline.c (copy_tree_body_r): Pass location on down.
15436         (inline_forbidden_p): Remove use of input_location.
15437         * c-gimplify.c (c_build_bind_expr): New argument.
15438         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
15439         (c_sizeof_or_alignof_type): New argument.
15440         (c_alignof_expr): Same.
15441         (build_va_arg): Same.
15442         (c_add_case_label): Same.
15443         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
15444         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
15445         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
15446         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
15447         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
15448         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
15449         New argument.
15450         * stub-objc.c (objc_build_selector_expr): Same.
15451         (objc_build_throw_stmt): Same.
15452         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
15453         (c_parser_initelt): Same.
15454         (c_parser_compound_statement): Same.
15455         (c_parser_compound_statement_nostart): Same.
15456         (c_parser_label): Same.
15457         (c_parser_statement_after_labels): Same.
15458         (c_parser_if_body): Same.
15459         (c_parser_else_body): Same.
15460         (c_parser_if_statement): Same.
15461         (c_parser_switch_statement): Same.
15462         (c_parser_while_statement): Same.
15463         (c_parser_do_statement): Same.
15464         (c_parser_for_statement): Same.
15465         (c_parser_asm_statement): Same.
15466         (c_parser_conditional_expression): Same.
15467         (c_parser_binary_expression): Same.
15468         (c_parser_cast_expression): Same.
15469         (c_parser_unary_expression): Same.
15470         (c_parser_sizeof_expression): Same.
15471         (c_parser_alignof_expression): Same.
15472         (c_parser_postfix_expression): Same.
15473         (c_parser_expression): Same.
15474         (c_parser_objc_receiver): Same.
15475         (c_parser_omp_variable_list): Same.
15476         (c_parser_omp_structured_block): Same.
15477         (c_parser_omp_atomic): New argument.
15478         (c_parser_omp_barrier): Same.
15479         (c_parser_omp_critical): Same.
15480         (c_parser_omp_flush): Pass location on down.
15481         (c_parser_omp_for_loop): New argument.
15482         (c_parser_omp_for): Same.
15483         (c_parser_omp_master): Same.
15484         (c_parser_omp_ordered): Same.
15485         (c_parser_omp_sections_scope): Same.
15486         (c_parser_omp_sections): Same.
15487         (c_parser_omp_parallel): Same.
15488         (c_parser_omp_single): Same.
15489         (c_parser_omp_task): Same.
15490         (c_parser_omp_taskwait): Pass location on down.
15491         (c_parser_omp_construct): Same.
15492         (c_parser_omp_threadprivate): Same.
15493         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
15494         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
15495         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
15496         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
15497         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
15498         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
15499         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
15500         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
15501         config/i386/i386.c, stmt.c:
15502         Add location argument to the following function definitions and/or
15503         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
15504         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
15505         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
15506         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
15507         do_case, c_finish_bc_stmt, build_compound_literal,
15508         build_function_call.
15509         * c-decl.c (build_compound_literal): Add location argument.
15510         Make all diagnostic calls use location.
15511         (start_struct): Same.
15512         (finish_struct): Same.
15513         (start_enum): Same.
15514         (build_enumerator): Same.
15515         (start_function): Same.
15516         (grokdeclarator): Make all diagnostic calls use location.
15517         (store_parm_decls_oldstyle): Same.
15518         * c-typeck.c (build_function_call): Add location argument.
15519         Make all diagnostic calls use location.
15520         (do_case): Same.
15521         (c_finish_bc_stmt): Same.
15522         * tree-nested.c (get_trampoline_type): Add argument.
15523         Pass location to build_decl.
15524         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
15525         * rtl.h (RTL_LOCATION): New.
15526         * c-common.c (c_add_case_label): Add location argument.
15527         Make all diagnostic calls use location.
15528         * c-common.h: Add location argument to make_fname_decl, do_case,
15529         c_add_case_label, build_function_call, resolve_overloaded_builtin.
15530         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
15531         Set it appropriately for every case.  Pass enum_loc to start_enum
15532         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
15533         parser_xref_tag.
15534         (c_parser_struct_or_union_specifier): Save location.  Use it for
15535         start_struct, finish_struct, and parser_xref_tag.
15536
15537 2009-06-12  Ian Lance Taylor  <iant@google.com>
15538
15539         * fold-const.c (fold_unary): Rename local variable and to and_expr.
15540
15541         * c-opts.c (c_common_handle_option): For -Wc++-compat set
15542         cpp_opts->warn_cxx_operator_names.
15543
15544 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15545
15546         PR tree-opt/38865
15547         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
15548         is returns NULL and OP is a VCE, look through the VCE.
15549
15550 2009-06-12  Ian Lance Taylor  <iant@google.com>
15551
15552         PR bootstrap/40430
15553         * collect2.c (main): Use CONST_CAST2 in code inside #if
15554         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
15555
15556 2009-06-12  Joey Ye  <joey.ye@intel.com>
15557
15558         PR middle-end/39146
15559         * cfgexpand.c (get_decl_align_unit): Update
15560         max_used_stack_slot_alignment with align instead of
15561         stack_alignment_needed.
15562
15563         * function.c (assign_stack_local_1): Update
15564         max_used_stack_slot_alignment with alignment_in_bits instead
15565         of stack_alignment_needed.
15566         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
15567         here.
15568
15569 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
15570
15571         * dwarf2out.c (last_var_location_insn): New variable.
15572         (dwarf2out_end_epilogue): Clear last_var_location_insn.
15573         (dwarf2out_var_location): Don't record anything after last real
15574         insn.  Only change labels if there were any real instructions
15575         in between last note and this one, or if changed sections.
15576
15577 2009-06-11  Richard Henderson  <rth@redhat.com>
15578
15579         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
15580         note when storing the frame pointer in a register.
15581         (FRP): Don't redefine to nothing for epilogue.
15582         (alpha_expand_epilogue): Mark register and sp restores.
15583         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
15584
15585         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
15586         when gen_lowpart is needed.
15587
15588 2009-06-11  Richard Henderson  <rth@redhat.com>
15589
15590         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
15591
15592         * dwarf2out.c (need_data_align_sf_opcode): New.
15593         (div_data_align): Move earlier.
15594         (def_cfa_1, reg_save): Use it.
15595
15596 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
15597
15598         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
15599         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
15600         (ix86_handle_option): Handle OPT_mcrc32.
15601         (ix86_target_string): Add -mcrc32.
15602         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
15603
15604         * config/i386/i386.h (TARGET_CRC32): New.
15605
15606         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
15607         (sse4_2_crc32di): Likewise.
15608
15609         * config/i386/i386.opt (mcrc32): New.
15610
15611         * doc/invoke.texi: Document -mcrc32.
15612
15613 2009-06-11  Richard Henderson  <rth@redhat.com>
15614
15615         * common.opt (gdwarf-): Accept a version number.
15616         * doc/invoke.texi (gdwarf-): Update docs.
15617         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
15618         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
15619         version level, and record it.
15620
15621         * dwarf2.h (DW_CIE_VERSION): Remove.
15622         * dwarf2out.c (DWARF_VERSION): Remove.
15623         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
15624         (output_call_frame_info): Use CIE version 3 for dwarf3,
15625         or if the return register column is out of range for version 1.
15626         (dwarf_stack_op_name): Add all dwarf3 values.
15627         (DEBUG_PUBTYPES_SECTION): New.
15628         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
15629         encoding change for dwarf3.
15630         (output_die) [dw_val_class_die_ref]: Likewise.
15631         (output_compilation_unit_header): Emit correct version for dwarf3.
15632         (output_line_info): Likewise.
15633         (output_pubnames): Update for DWARF_VERSION removal.
15634         (output_aranges): Likewise.
15635         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
15636         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
15637         (dwarf2out_finish): Likewise.
15638
15639 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
15640
15641         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
15642         in r148403.
15643
15644 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
15645
15646         PR c/39252
15647         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
15648         * builtins.c (expand_builtin_unreachable): New function.
15649         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
15650         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
15651         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
15652         successors.
15653         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
15654         searching for missing barriers.
15655
15656 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15657
15658         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
15659         when -fprofile-generate* was passed.
15660         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
15661
15662 2009-06-11  Anthony Green  <green@moxielogic.com>
15663
15664         * config/moxie/moxie.md: Define length attribute for all instructions.
15665         (rCC): Define.
15666         (*b<cond:code>): Support limited branch ranges for new PC-relative
15667         branch instructions.
15668         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
15669
15670 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
15671
15672         * config/i386/i386.c (min_insn_size): Use get_attr_length
15673         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
15674         For __asm return 0.
15675
15676         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
15677         instead of emit_insn_before.
15678
15679 2009-06-10  Ian Lance Taylor  <iant@google.com>
15680
15681         PR bootstrap/40408
15682         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
15683         GIMPLE_SWITCH.
15684
15685 2009-06-10  Revital Eres  <eres@il.ibm.com>
15686
15687         * passes.c (init_optimization_passes): Reschedule
15688         predictive-commoning pass before complete unroll pass.
15689
15690 2009-06-10  Martin Jambor  <mjambor@suse.cz>
15691
15692         * cgraph.c (cgraph_node_can_be_local_p): New function.
15693         (cgraph_make_node_local): New function.
15694         * cgraph.h (cgraph_node_can_be_local_p): Declare.
15695         (cgraph_make_node_local): Declare.
15696
15697 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
15698
15699         * tree.h (tree_base): Add packed_flag and user_align fields.
15700         Decrease size of spare field.
15701         (TYPE_USER_ALIGN): Use user_align from tree_base.
15702         (DECL_USER_ALIGN): Likewise.
15703         (TYPE_PACKED): Use packed_flag from tree_base.
15704         (DECL_PACKED): Likewise.
15705         (tree_type): Delete packed_flag and user_align fields.  Widen
15706         precision field.  Widen mode field and shuffle fields to align
15707         mode on an 8-bit boundary.
15708         (tree_decl_common): Delete decl_flag_1 and user_align fields.
15709         Renumber decl_flag_* fields.  Fix comments.  Widen
15710         decl_common_unused field.
15711         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
15712         (DECL_EXTERNAL): Likewise.
15713         (DECL_BIT_FIELD): Likewise.
15714         (DECL_NONADDRESSABLE_P): Likewise.
15715         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
15716         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
15717
15718 2009-06-10  Ian Lance Taylor  <iant@google.com>
15719
15720         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
15721         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
15722         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
15723         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
15724         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
15725         DEF_VEC_ALLOC_FUNC_P.
15726         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
15727         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
15728         DEF_VEC_ALLOC_FUNC_O.
15729         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
15730         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
15731         DEF_VEC_ALLOC_FUNC_I.
15732         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
15733         (vec_stack_p_reserve_exact_1): Declare.
15734         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
15735         (vec_stack_free): Declare.
15736         (VEC_stack_alloc): Define.
15737         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
15738         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
15739         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
15740         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
15741         for void_p.
15742         (stack_vecs): New static variable.
15743         (vec_stack_p_reserve_exact_1): New function.
15744         (vec_stack_o_reserve_1): New static function.
15745         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
15746         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
15747         (vec_stack_free): New function.
15748         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
15749         (VEC_df_ref_stack_alloc): Define.
15750         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
15751         DEF_VEC_ALLOC_P_STACK.
15752         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
15753         (struct df_collection_rec): Change _vec fields to VEC.  Remove
15754         _use fields.
15755         (df_free_collection_rec): Adjust for new fields.
15756         (df_insn_rescan): Use new df_collection_rec fields.
15757         (df_notes_rescan, df_canonize_collection_rec): Likewise.
15758         (df_ref_create_structure, df_ref_record): Likewise.
15759         (df_get_conditional_uses, df_get_call_refs): Likewise.
15760         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
15761         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
15762         (df_record_exit_block_uses, df_bb_verify): Likewise.
15763         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
15764         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
15765         Remove count parameter.  Change return type to void.  Change all
15766         callers.
15767         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
15768         Remove count parameter.  Change return type to void.  Change all
15769         callers.
15770         (df_install_refs): Change old_vec parameter to VEC.  Remove count
15771         parameter.  Change all callers.
15772         (df_install_mws): Change old_vec parameter to VEC.  Remove count
15773         parameter.  Change all callers.
15774         (df_refs_verify): Change new_rec parameter to VEC.  Change call
15775         callers.
15776         (df_mws_verify): Likewise.
15777
15778 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
15779
15780         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
15781
15782 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
15783
15784         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
15785
15786 2009-06-10  Anthony Green  <green@moxielogic.com>
15787
15788         * config/moxie/crti.asm: New file.
15789         * config/moxie/crtn.asm: New file.
15790         * config/moxie/moxie.c: New file.
15791         * config/moxie/moxie.h: New file.
15792         * config/moxie/sfp-machine.h: New file.
15793         * config/moxie/moxie-protos.h: New file.
15794         * config/moxie/t-moxie: Created.
15795         * config/moxie/t-moxie-softfp: Created.
15796         * config/moxie/moxie.md: Created.
15797         * config/moxie/constraints.md: Created.
15798         * config.gcc: Add moxie support.
15799         * doc/md.texi (Machine Constraints): Add moxie constraints.
15800         * doc/contrib.texi (Contributors): Mention moxie port.
15801         * doc/install.texi (Specific): Mention the moxie port.
15802
15803 2009-06-09  Ian Lance Taylor  <iant@google.com>
15804
15805         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
15806         compiling with C++.
15807         * optabs.c (optab_table): Only use designated initializers if
15808         HAVE_DESIGNATED_INITIALIZERS is defined.
15809         (convert_optab_table): Likewise.
15810         (init_optabs): Always call init_insn_codes if
15811         HAVE_DESIGNATED_INITIALIZERS is not defined.
15812
15813 2009-06-09  Ian Lance Taylor  <iant@google.com>
15814
15815         * targhooks.c (default_builtin_vectorized_function): Change fn
15816         parameter to unsigned int.
15817         (default_builtin_vectorized_conversion): Change code parameter to
15818         unsigned int.
15819         (default_builtin_reciprocal): Change fn parameter to unsigned int.
15820         * targhooks.h: Update declarations.
15821         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
15822         parameter to unsigned int.
15823
15824         * c-typeck.c (comptypes_check_enum_int): New static function.
15825         (comptypes_internal): Add enum_and_int_p parameter.  Change all
15826         callers.
15827         (comp_target_types): Add location parameter.  Change all callers.
15828         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
15829         Change all callers.
15830         (function_types_compatible_p, type_lists_compatible_p): Likewise.
15831         (build_conditional_expr): Add colon_loc parameter.  Change all
15832         callers.
15833         (convert_for_assignment): Add location parameter.  Change all callers.
15834         * c-parser.c (c_parser_conditional_expression): Pass location of
15835         colon to build_conditional_expr.
15836         * c-tree.h (build_conditional_expr): Update declaration.
15837
15838 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
15839
15840         * graphite.c: Revert previous patch.
15841
15842 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
15843
15844         PR bootstrap/40103
15845         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
15846
15847 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
15848
15849         * tree-ssa-loop-prefetch.c
15850         (loop_prefetch_arrays): Fixed a portability problem in printf format
15851         string.
15852
15853 2009-06-09  Martin Jambor  <mjambor@suse.cz>
15854
15855         PR tree-optimization/40351
15856         * tree-sra.c (propagate_subacesses_accross_link): Check that a
15857         refrence to a potential artifical subaccess can be constructed.
15858
15859 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
15860
15861         * config/sh/sh-protos.h (sh_optimization_options): Declare.
15862         (sh_override_options): Likewise.
15863         * config/sh/sh.c: Include params.h.
15864         (sh_optimization_options): New.
15865         (sh_override_options): Likewise.
15866         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
15867         (OVERRIDE_OPTIONS): Use sh_override_options.
15868
15869 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
15870
15871         * dwarf2out.c (emit_cfa_remember): New variable.
15872         (add_fde_cfi): If emit_cfa_remember, recurse to add
15873         DW_CFA_remember_state first.
15874         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
15875         instead just set emit_cfa_remember.
15876
15877 2009-06-08  Jan Hubicka  <jh@suse.cz>
15878
15879         PR debug/40126
15880         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
15881
15882 2009-06-08  Jan Hubicka  <jh@suse.cz>
15883
15884         PR middle-end/39834
15885         * cgraphunit.c (save_inline_function_body): Do not copy transform
15886         hooks for saved inline bodies.
15887         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
15888         for given function.
15889
15890 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
15891
15892         * jump.c (returnjump_p): Handle delayed branches.  Add missing
15893         function comment.
15894
15895 2009-06-08  Jan Hubicka  <jh@suse.cz>
15896
15897         PR middle-end/40102
15898         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
15899         original node might've been modified.
15900         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
15901
15902 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
15903
15904         * tree-object-size.c (addr_object_size): Add OSI argument.
15905         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
15906         (compute_builtin_object_size, expr_object_size): Adjust callers.
15907         (plus_stmt_object_size): Call addr_object_size instead of
15908         compute_builtin_object_size.
15909
15910 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
15911             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
15912
15913         * tree-ssa-loop-prefetch.c
15914         (gather_memory_references): Introduced a counter for the number of
15915         memory references.
15916         (anything_to_prefetch_p): Introduced a counter for the number of
15917         prefetches.
15918         (is_loop_prefetching_profitable): New function with a cost model
15919         for prefetching.
15920         (loop_prefetch_arrays): Use the new cost model to determine if
15921         prefetching is profitable.
15922         * params.def (MIN_INSN_TO_PREFETCH_RATIO,
15923         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
15924         * params.h (MIN_INSN_TO_PREFETCH_RATIO,
15925         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
15926         * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
15927         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
15928
15929 2009-06-08  Michael Matz  <matz@suse.de>
15930
15931         PR debug/40012
15932         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
15933         partitions use the same.
15934         (expand_one_var): Deal with DECL_RTL sometimes begin set also
15935         for basevars of SSA_NAMEs.
15936         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
15937         to not expand them twice.
15938         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
15939         multiple places.
15940
15941 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
15942
15943         * common.opt (fcompare-debug=, fcompare-debug-second): New.
15944         (fdump-final-insns=, gtoggle): New.
15945         * doc/invoke.texi: Document them.
15946         * final.c (rest_of_clean_state): Dump final insn stream.
15947         * gcc.c (invoke_as): Hook in -fcompare-debug.
15948         (static_spec_functions): Add compare-debug-dump-opt,
15949         compare-debug-self-opt and compare-debug-auxbase-opt.
15950         (compare_debug, compare_debug_second, compare_debug_opt): New.
15951         (switches_debug_check, n_switches_debug_check): New.
15952         (debug_auxbase_opt, debug_check_temp_file): New.
15953         (process_command): Handle -fno-compare-debug, -fcompare-debug and
15954         -fcompare-debug=*.
15955         (do_self_spec): Handle arguments after switches.
15956         (do_spec_1): Add .gk extension to temp file basenames for compare.
15957         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
15958         (cc1_options): Use it instead of normal auxbase computation for
15959         the second compare-debug compilation.
15960         (compare_files): New.
15961         (main): Set up and implement compare debug mode.
15962         (compare_debug_dump_opt_spec_function): New.
15963         (compare_debug_self_opt_spec_function): New.
15964         (compare_debug_auxbase_opt_spec_function): New.
15965         * toplev.c (process_options): Handle flag_gtoggle,
15966         flag_dump_final_insns.
15967         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
15968         during -fcompare-debug-second compilation.
15969
15970 2009-06-07  Ian Lance Taylor  <iant@google.com>
15971
15972         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
15973         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
15974
15975         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
15976         with no default node.  Change warning with %H to warning_at.
15977         Don't clear warn_switch around case checking.
15978         * doc/invoke.texi (Warning Options): Clarify distinction between
15979         -Wswitch and -Wswitch-enum.
15980
15981 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15982
15983         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
15984
15985 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15986
15987         * gbl-ctors.h: Add header guard.
15988
15989 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15990
15991         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
15992         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
15993         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
15994         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
15995         prototypes for removed functions.
15996         (expressions_equal_p): Move to ...
15997         * tree-ssa-sccvn.h: ... here and ...
15998         * matrix-reorg.c: ... adjust includes.
15999
16000 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16001
16002         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
16003
16004 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16005
16006         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
16007         (finish_function): Remove erroneous whitespace.
16008
16009 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16010
16011         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
16012         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
16013
16014 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16015
16016         * errors.c (internal_error): Commentary typo fix.
16017         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
16018         * tree-ssa-pre.c: Ditto.
16019
16020 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16021
16022         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
16023         them is supposed to hold actual statements.
16024
16025 2009-06-06  Ian Lance Taylor  <iant@google.com>
16026
16027         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
16028         empty statements can now have attributes.
16029
16030 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
16031
16032         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
16033         * config/mips/mips.md: Ditto.
16034
16035 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
16036
16037         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
16038         _RELOCATABLE.
16039         (__eabi_uconvert): Likewise.
16040
16041 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
16042
16043         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
16044         CFI_* definitions with IN_GCC.
16045
16046 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
16047
16048         * xcoffout.h (xcoffout_source_line): Update prototype.
16049
16050 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16051
16052         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
16053         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
16054
16055 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
16056
16057         PR middle-end/40340
16058         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
16059         inlined_function_outer_scope_p blocks for artificial inlines
16060         even at -g0/-g1.
16061         * tree.c (tree_nonartificial_location): Rewrite using
16062         block_nonartificial_location.
16063
16064 2009-06-05  Revital Eres  <eres@il.ibm.com>
16065             Leehod Baruch  <leehod@il.ibm.com>
16066
16067         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
16068         (expand_expr_real_1): Remove comment.
16069         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
16070         Vectorize misaligned access when the target supports it.
16071         (vect_supportable_dr_alignment): Check for unaligned access support.
16072         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
16073         and remove asset.
16074
16075 2009-06-05  Julian Brown  <julian@codesourcery.com>
16076
16077         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
16078         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
16079
16080 2009-06-05  Richard Guenther  <rguenther@suse.de>
16081
16082         PR bootstrap/40350
16083         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
16084         as possibly unused.
16085
16086 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
16087
16088         * config/s390/s390.c (global_not_special_regno_p): New static inline.
16089         (save_gprs): Don't tell unwinder when a global register is saved.
16090         (s390_emit_epilogue): Emit needed epilogue unwind info.
16091
16092 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
16093
16094         * dwarf2out.c (deferred_asm_name): New.
16095         (add_name_and_src_coords_attributes): Defer creation of
16096         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
16097         computed yet.
16098         (move_linkage_attr): New.
16099         (dwarf2out_finish): Revisit deferrals and emit attributes at the
16100         right place.
16101
16102 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
16103
16104         * tree-nested.c (finalize_nesting_tree_1): Declare the
16105         frame_decl in the binding tree.
16106
16107 2009-06-04  Cary Coutant  <ccoutant@google.com>
16108
16109         * basic-block.h (struct basic_block_def): Add discriminator field.
16110         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
16111         callers.
16112         * debug.c (do_nothing_debug_hooks): Add additional entry.
16113         (debug_nothing_int_charstar_int): New function.
16114         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
16115         (debug_nothing_int_charstar_int): New declaration.
16116         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
16117         discriminator value in .loc directive.
16118         * final.c (last_discriminator): New variable.
16119         (discriminator): New variable.
16120         (final_start_function): Initialize above variables, pass current
16121         discriminator to debug hook.
16122         (notice_source_line): Check for discriminator change.
16123         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
16124         * sdbout.c (sdbout_source_line): New parameter.
16125         * tree-cfg.c (struct locus_discrim_map): New structure type.
16126         (discriminator_per_locus): New hash table.
16127         (build_gimple_cfg): Allocate and free discriminator hash table.
16128         (make_edges): Call assign_discriminator.
16129         (locus_map_hash): New function.
16130         (locus_map_eq): New function.
16131         (next_discriminator_for_locus): New function.
16132         (same_line_p): New function.
16133         (assign_discriminator): New function.
16134         (make_cond_expr_edges): Call assign_discriminator.
16135         (make_gimple_switch_edges): Likewise.
16136         (first_non_label_stmt): New function.
16137         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
16138         all callers.
16139         * xcoffout.c (xcoffout_source_line): Add new parameter.
16140
16141         * configure.ac (gcc_cv_as_discriminator): New configury check for
16142         gas support for discriminator.
16143         * configure: Regenerate.
16144         * config.in: Regenerate.
16145
16146 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16147
16148         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
16149         val after checking for integers.
16150
16151 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
16152
16153         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
16154         X64_REGPARM_MAX.
16155         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
16156         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
16157         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
16158         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
16159         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
16160         X64_SSE_REGPARM_MAX.
16161         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
16162         X64_SSE_REGPARM_MAX.
16163
16164 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
16165
16166         * gcc.c (report_times_to_file): New.
16167         (execute): Implement it.
16168         (process_command): Support -time=.
16169         * doc/invoke.texi: Document it.
16170
16171 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
16172
16173         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
16174         that have value exprs.
16175
16176 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
16177
16178         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
16179         declarations for constants until...
16180         (dw2_output_indirect_constant_1): ... this point.
16181
16182 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
16183
16184         PR target/10242
16185         * arm.md (arm_addsi3): Don't try to split an add with an
16186         eliminable register until after reload has completed.
16187
16188 2009-06-03  Ian Lance Taylor  <iant@google.com>
16189
16190         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
16191         * genattrtab.c (write_length_unit_log): Likewise.
16192         * genchecksum.c (dosum): Likewise.
16193         * gengtype.c (write_rtx_next): Likewise.
16194         (finish_root_table, write_roots): Likewise.
16195         * gimple.c (gimple_ops_offset_): Likewise.
16196         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
16197         * config/arc/arc.c (arc_attribute_table): Likewise.
16198         * config/arm/arm.c (arm_attribute_table): Likewise.
16199         * config/avr/avr.c (avr_attribute_table): Likewise.
16200         * config/crx/crx.c (crx_attribute_table): Likewise.
16201         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
16202         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
16203         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
16204         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
16205         * config/sh/sh.c (sh_attribute_table): Likewise.
16206         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
16207         * config/spu/spu.c (spu_attribute_table): Likewise.
16208         * config/v850/v850.c (v850_attribute_table): Likewise.
16209
16210         * config/alpha/alpha.c (vms_attribute_table): Make static.
16211         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
16212         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
16213         * config/mips/mips.c (mips_attribute_table): Likewise.
16214
16215         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
16216         $(SYSTEM_H).
16217         (cc1-checksum.o): Likewise.
16218
16219 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
16220
16221         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
16222
16223 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
16224
16225         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
16226         insn if it is changing sp.  Use gen_add3_insn instead of
16227         conditionally gen_addsi3 and gen_adddi3.
16228         (offset_below_red_zone_p): New static inline function.
16229         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
16230         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
16231         * config/rs6000/ppc-asm.h: Include auto-host.h.
16232         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
16233         CFI_RESTORE): Define.
16234         * config/rs6000/crtresxgpr.asm: Add unwind info.
16235         * config/rs6000/crtresxfpr.asm: Likewise.
16236         * config/rs6000/crtresgpr.asm: Likewise.
16237         * config/rs6000/crtresfpr.asm: Likewise.
16238         * config/rs6000/crtsavgpr.asm: Likewise.
16239         * config/rs6000/crtsavfpr.asm: Likewise.
16240
16241         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
16242         argument of DWARF2_FRAME_REG_OUT macros.
16243
16244 2009-06-03  Julian Brown  <julian@codesourcery.com>
16245
16246         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
16247         words or less (including TImode) in core registers.
16248
16249 2009-06-03  Richard Guenther  <rguenther@suse.de>
16250
16251         PR middle-end/40328
16252         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
16253
16254 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
16255
16256         * statistics.c (statistics_counter_event): Do not record event
16257         in pass dump if its number == -1.
16258         (curr_statistics_hash): Add assert that we never get passes
16259         with static number == -1.
16260
16261 2009-06-03  Richard Guenther  <rguenther@suse.de>
16262             Andrey Belevantsev  <abel@ispras.ru>
16263
16264         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
16265         non-BLKmode arrays addressable.
16266
16267 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
16268
16269         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
16270         * config/m68k/m68k.h: ... here.
16271
16272 2009-06-03  Martin Jambor  <mjambor@suse.cz>
16273
16274         PR tree-optimization/40323
16275         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
16276         assignment.
16277
16278 2009-06-03  Richard Guenther  <rguenther@suse.de>
16279
16280         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
16281         consistently.
16282
16283 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
16284
16285         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
16286         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
16287         JUMP_TABLE_DATA_P where applicable.
16288         * config/sh/sh.c: Ditto.
16289         * config/sh/sh.h: Ditto.
16290         * config/sh/sh.md: Ditto.
16291         * config/sh/symbian.c: Ditto.
16292
16293 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
16294
16295         * config/i386/driver-i386.c (describe_cache): Optimize
16296         concatenation of strings.  Use snprintf instead of sprintf.
16297         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
16298         target when not compiling with GCC.
16299
16300 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
16301
16302         * config/sh/sh.c: Revert last change.
16303         (sh_expand_epilogue): Emit a blockage insn before the frame
16304         pointer adjustment unconditionally.
16305
16306 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
16307
16308         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
16309         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
16310         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
16311         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
16312         to COLLECT_GCC_OPTIONS.
16313
16314 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
16315
16316         * collect2.c (target_system_root): New variable.
16317         (main): Handle --sysroot=.
16318         (ignore_library): Strip the sysroot from the library path.
16319
16320 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
16321
16322         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
16323         (collect2.o): Depend on collect2-aix.h.
16324         (collect2-aix.o): New rule.
16325         * collect2-aix.h: New file.
16326         * collect2-aix.c: Likewise.
16327         * collect2.c: Include collect2-aix.h.  Don't undefine
16328         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
16329         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
16330         Use TARGET_AIX_VERSION instead of _AIX51.
16331         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
16332         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
16333         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
16334         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
16335         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
16336
16337 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
16338
16339         * collect2.c (ignore_library): Avoid premature post-increment
16340         and null deference.
16341
16342 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
16343
16344         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
16345         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
16346         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
16347         CROSS_DIRECTORY_STRUCTURE too.
16348         (LINK_LIBG_SPEC): Likewise.
16349         (LIB_SPEC): Add %R to sysroot paths.
16350         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
16351         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
16352         * config/rs6000/aix51.h: As for aix43.h.
16353         * config/rs6000/aix52.h: Likewise.
16354         * config/rs6000/aix53.h: Likewise.
16355         * config/rs6000/aix61.h: Likewise.
16356         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
16357         to the beginning of sysroot paths.
16358
16359 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
16360
16361         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
16362         INSN_LISTs that are out of the REG_NOTE range.
16363
16364 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
16365
16366         * loop-unroll.c (struct iv_to_split): Add pointer to next.
16367         (struct var_to_expand): Likewise.
16368         (struct opt_info): Add head and tail for linked lists of the above.
16369         (analyze_insn_to_expand_var): Initialize next.
16370         (analyze_iv_to_split_insn): Likewise.
16371         (analyze_insns_in_loop): Create linked lists.
16372         (allocate_basic_variable): Simplify for use without hash table.
16373         (insert_var_expansion_initialization): Likewise, make it type-safer.
16374         (combine_var_copies_in_loop_exit): Likewise.
16375         (apply_opt_in_copies): Walk lists rather than hash tables.
16376         (release_var_copies): Simplified and inlined by hand into...
16377         (free_opt_info): ... this function.
16378
16379 2009-06-02  Richard Guenther  <rguenther@suse.de>
16380
16381         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
16382         for field decls.
16383
16384 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
16385
16386         * cfgexpand.c (gimple_expand_cfg): Discard the source location
16387         only for builtins that are not overridden.
16388
16389 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
16390
16391         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
16392         label string.
16393
16394 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
16395
16396         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
16397
16398 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
16399
16400         * combine.c (move_deaths): Compare LUIDs within the same BB only.
16401
16402 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
16403
16404         * common.opt (fdump-unnumbered-links): New.
16405         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
16406         * print-rtl.c (flag_dump_unnumbered_links): New.
16407         (print_rtx): Test it.
16408
16409 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
16410
16411         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
16412         push/pop multiple to 8-byte alignment.
16413
16414 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
16415
16416         * config/i386/i386.c (queued_cfa_restores): New static variable.
16417         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
16418         functions.
16419         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
16420         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
16421         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
16422         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
16423         note unconditionally.
16424         (ix86_emit_restore_regs_using_mov): Likewise.
16425         (ix86_emit_restore_sse_regs_using_mov): Likewise.
16426         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
16427         it through to ix86_emit_restore_reg_using_pop.
16428         (ix86_emit_leave): Add RED_OFFSET argument.  Call
16429         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
16430         instead of adding REG_CFA_OFFSET note unconditionally.
16431         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
16432         the above functions.  Call ix86_add_queued_cfa_restore_notes when
16433         needed.
16434
16435         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
16436         force output of the label even for dwarf2out_do_cfi_asm.
16437         (add_fde_cfi): If -g2 and above and cfi might change CFA,
16438         force creation of CFI label and chain DW_CFA_set_loc jumping to it
16439         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
16440         caller.
16441         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
16442         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
16443         dwarf2out_cfi_label callers.
16444         * tree.h (dwarf2out_cfi_label): Adjust prototype.
16445         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
16446         Adjust dwarf2out_cfi_label callers.
16447         * config/vax/vax.c (vax_output_function_prologue): Likewise.
16448
16449         * config/i386/i386.h (struct machine_cfa_state,
16450         struct machine_function): Guard with ifndef USED_FOR_TARGET
16451         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
16452
16453         PR other/40024
16454         * emutls.c (__emutls_get_address): Change arr->size to mean number
16455         of allocated arr->data entries instead of # of slots + 1.
16456
16457         PR middle-end/40316
16458         * recog.c (peep2_reinit_state): New function.
16459         (peephole2_init_state): Use it at the end of a basic block and also
16460         when seeing a RTX_FRAME_RELATED_P insn.
16461
16462 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
16463
16464         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
16465         fixuns_truncrfdi2): New.
16466         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
16467         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
16468         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
16469         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
16470         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
16471         *recip_approx): Remove.
16472         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
16473         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
16474         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
16475         move to div.md.
16476         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
16477         setf_exp_rf): New.
16478
16479 2009-06-01  Ian Lance Taylor  <iant@google.com>
16480
16481         * attribs.c (register_attribute): Use CONST_CAST.
16482         * collect2.c (main): Use CONST_CAST2.
16483         (scan_prog_file): Likewise.
16484         * gcc.c (process_command, main): Likewise.
16485         * toplev.c (toplev_main): Likewise.
16486
16487         * c-typeck.c (handle_warn_cast_qual): New static function,
16488         partially broken out of build_c_cast.
16489         (build_c_cast): Call handle_warn_cast_qual.
16490         * doc/invoke.texi (Warning Options): Document new effect of
16491         -Wcast-qual.
16492
16493 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
16494
16495         * diagnostic.c (diagnostic_build_prefix): Always print columns.
16496         (diagnostic_report_current_module): Print columns.
16497         * common.opt (flag_show_column): Enable by default.
16498
16499 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
16500
16501         * alias.c (find_base_term): Check for NULL term before returning.
16502
16503 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
16504
16505         Revert due to PR40320:
16506         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
16507         * calls.c (emit_library_call_value_1): Don't force_operand for move
16508         and push insns.
16509
16510 2009-06-01  Olivier Hainque  <hainque@adacore.com>
16511             Eric Botcazou  <ebotcazou@adacore.com>
16512
16513         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
16514         to be processed as a bitfield for constructor output purposes.
16515         * output.h (initializer_constant_valid_for_bitfield_p): Declare
16516         new function.
16517         * varasm.c (oc_local_state): New type, output_constructor
16518         local state to support communication with helpers.
16519         (oc_outer_state): New type, output_constructor outer state of
16520         relevance in recursive calls.
16521         (output_constructor_array_range): New output_constructor helper,
16522         extracted code for an array range element.
16523         (output_constructor_regular_field): New output_constructor helper,
16524         extracted code for an element that is not a bitfield.
16525         (output_constructor_bitfield): New output_constructor helper,
16526         extracted code for a bitfield element.  Accept an OUTER state
16527         argument for recursive processing.  Recurse on record or array
16528         CONSTRUCTOR values, possibly past noop conversions.
16529         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
16530         VALUE is a valid constant-valued expression for use in a static
16531         bit-field initializer.
16532         (output_constructor): Rework to use helpers.  Accept and honor an
16533         OUTER state argument for recursive calls.  Return total size.  Be
16534         prepared for nested constructors initializing bitfields.
16535         (output_constant): Feed OUTER in calls to output_constructor.
16536
16537 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
16538
16539         * calls.c (emit_library_call_value_1): Don't force_operand for move
16540         and push insns.
16541
16542 2009-06-01  Nick Clifton  <nickc@redhat.com>
16543
16544         * doc/invoke.texi (IA-64 Options): Fix typo.
16545
16546 2009-06-01  Ira Rosen  <irar@il.ibm.com>
16547
16548         PR tree-optimization/39129
16549         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
16550         printed message.
16551         (vect_do_peeling_for_loop_bound): Use
16552         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
16553         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
16554         (vect_loop_versioning): Likewise.
16555         (vect_create_cond_for_alias_checks): Fix indentation.
16556         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
16557         macros.
16558         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
16559         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
16560         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
16561         "control flow in loop".
16562         (vect_estimate_min_profitable_iters): Use
16563         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
16564         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
16565         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
16566         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
16567         * tree-vect-stmts.c (vectorizable_store): Replace the check that the
16568         statement belongs to a group of strided accesses with the exact code
16569         check.
16570         (vectorizable_load): Likewise.
16571         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
16572         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
16573
16574 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
16575
16576         * config/freebsd-stdint.h: New file.
16577         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
16578         Add freebsd-stdint.h to tm_file.
16579
16580 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
16581
16582         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
16583         (thumb2_extendhidi2): Likewise.
16584
16585 2009-05-31  Ian Lance Taylor  <iant@google.com>
16586
16587         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
16588
16589 2009-05-31  Ian Lance Taylor  <iant@google.com>
16590
16591         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
16592         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
16593         (ipa-reference.o): Depend upon gt-ipa-reference.h.
16594
16595 2009-05-31  Jason Merrill  <jason@redhat.com>
16596
16597         * tree-pretty-print.c (print_call_name): Take the callee, not the
16598         call itself.  Make non-static.  Use dump_function_name for functions.
16599         (dump_generic_node): Adjust.
16600         * diagnostic.h: Declare print_call_name.
16601         * gimple-pretty-print.c (dump_gimple_call): Use it.
16602
16603 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
16604
16605         * config/sh/sh.md (ashldi3_std): New define_expand.
16606         (ashldi3): Use it.
16607
16608 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
16609
16610         PR target/40313
16611         * config/sh/sh.c: Include debug.h.
16612         (sh_expand_epilogue): Emit a blockage insn before the frame
16613         pointer adjustment also when dwarf2out_do_frame returns true.
16614
16615 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
16616
16617         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
16618         (thumb2_extendqidi2): New pattern.
16619
16620 2009-05-31  Ira Rosen  <irar@il.ibm.com>
16621
16622         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
16623         mark phis for renaming.
16624         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
16625         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
16626         Call mark_sym_for_renaming.
16627         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
16628         * tree-vect-loop.c (vect_transform_loop): Remove
16629         vect_memsyms_to_rename initialization and a call to
16630         mark_set_for_renaming.
16631
16632 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
16633
16634         PR middle-end/40304
16635         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
16636         frame related even if !set_cfa && style < 0.
16637
16638 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
16639
16640         * config/i386/mingw-tls.c: New file.
16641         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
16642         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
16643         defining _WIN32 but not __CYGWIN__.
16644
16645 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16646
16647         * configure.ac: Add MPC support.
16648
16649         * config.in, configure: Regenerate.
16650
16651 2009-05-29  Richard Henderson  <rth@redhat.com>
16652
16653         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
16654         NOTE_INSN_BASIC_BLOCK.
16655         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
16656         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
16657         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
16658         to be deleted.
16659         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
16660         add in_use field.
16661         (add_cfi): Disable check redefining cfa away from drap.
16662         (lookup_cfa_1): Add remember argument; handle remember/restore.
16663         (lookup_cfa): Pass remember argument.
16664         (cfa_remember): New.
16665         (compute_barrier_args_size_1): Remove sibcall check.
16666         (dwarf2out_frame_debug_def_cfa): New.
16667         (dwarf2out_frame_debug_adjust_cfa): New.
16668         (dwarf2out_frame_debug_cfa_offset): New.
16669         (dwarf2out_frame_debug_cfa_register): New.
16670         (dwarf2out_frame_debug_cfa_restore): New.
16671         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
16672         (dwarf2out_begin_epilogue): New.
16673         (dwarf2out_frame_debug_restore_state): New.
16674         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
16675         DW_CFA_restore_state.
16676         (output_cfi_directive): Likewise.
16677         (convert_cfa_to_fb_loc_list): Likewise.
16678         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
16679         * dwarf2out.h: Update.
16680         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
16681         (copy_insn_1): Early out for null.
16682         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
16683         and dwarf2out_frame_debug_restore_state.
16684         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
16685         (prologue_insn_hash, epilogue_insn_hash): New.
16686         (free_after_compilation): Adjust freeing accordingly.
16687         (record_insns): Create hash table if needed; push insns into
16688         hash instead of array.
16689         (maybe_copy_epilogue_insn): New.
16690         (contains): Search hash table instead of array.
16691         (sibcall_epilogue_contains): Remove.
16692         (thread_prologue_and_epilogue_insns): Split eh_return insns
16693         and mark them as epilogues.
16694         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
16695         scanning in terms of basic blocks.
16696         * insn-notes.def (CFA_RESTORE_STATE): New.
16697         * jump.c (returnjump_p_1): Accept EH_RETURN.
16698         (eh_returnjump_p_1, eh_returnjump_p): New.
16699         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
16700         CFA_REGISTER, CFA_RESTORE): New.
16701         * rtl.def (EH_RETURN): New.
16702         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
16703
16704         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
16705         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
16706
16707         * config/i386/i386.c (gen_push): Update cfa state.
16708         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
16709         add a CFA_ADJUST_CFA note.
16710         (ix86_dwarf_handle_frame_unspec): Remove.
16711         (ix86_expand_prologue): Update cfa state.
16712         (ix86_emit_restore_reg_using_pop): New.
16713         (ix86_emit_restore_regs_using_pop): New.
16714         (ix86_emit_leave): New.
16715         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
16716         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
16717         * config/i386/i386.h (struct machine_cfa_state): New.
16718         (ix86_cfa_state): New.
16719         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
16720         (eh_return_internal): Merge from eh_return_<mode>,
16721         use eh_return rtx, split w/ epilogue.
16722
16723 2009-05-29  Ian Lance Taylor  <iant@google.com>
16724
16725         * builtins.c (validate_gimple_arglist): Don't use va_arg with
16726         enum type.
16727         * calls.c (emit_library_call_value_1): Likewise.
16728
16729         * c-typeck.c (c_build_va_arg): New function.
16730         * c-tree.h (c_build_va_arg): Declare.
16731         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
16732         instead of build_va_arg.
16733
16734 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
16735
16736         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
16737         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
16738         (ptr_difference_cost): Use affine combinations to compute it.
16739         (difference_cost): Likewise.
16740         (get_computation_cost_at): Compute more accurate cost for addresses
16741         if the ratio is a multiplier allowed in addresses.
16742         For non-addresses, consider that an additional offset or symbol is
16743         added only once.
16744
16745 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
16746
16747         * config/i386/i386.c (ix86_decompose_address): Avoid useless
16748         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
16749
16750         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
16751         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
16752         (prefix_rex): For UNIT_MMX don't imply the prefix by default
16753         if MODE_DI.
16754         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
16755         to 1 for TYPE_SSE{IADD1,CVT1}.
16756         (prefix_vex_imm8): Removed.
16757         (length_vex): Only pass 1 as second argument to
16758         ix86_attr_length_vex_default if prefix_extra is 0.
16759         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
16760         (length): For prefix vex computation use length_immediate
16761         attribute instead of prefix_vex_imm8.
16762         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
16763         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
16764         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
16765         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
16766         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
16767         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
16768         a space in between the operands.
16769         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
16770         if one operand is 0xff and the other one si, di, bp or sp.
16771         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
16772         other one si, di, bp or sp.
16773         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
16774         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
16775         type and mode attributes.
16776         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
16777         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
16778         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
16779         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
16780         prefix_data16 attribute iff MODE_DF.
16781         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
16782         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
16783         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
16784         constm128_operand in length_immediate computation.
16785         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
16786         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
16787         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
16788         length_immediate attribute to 1.
16789         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
16790         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
16791         for certain alternatives.
16792         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
16793         prefix_data16 attribute if MODE_V1DF.
16794         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
16795         length_immediate to 1.
16796         (set_got_rex64, set_rip_rex64): Remove length attribute, set
16797         length_address to 4, set mode attribute to MODE_DI.
16798         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
16799         (fxam<mode>2_i387): Set length attribute to 4.
16800         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
16801         *prefetch_3dnow_rex): Override length_address attribute.
16802         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
16803         attributes.
16804         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
16805         (constm128_operand): Removed.
16806         * config/i386/i386.c (memory_address_length): For
16807         disp && !index && !base in 64-bit mode account for SIB byte if
16808         print_operand_address can't optimize disp32 into disp32(%rip)
16809         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
16810         for fs: or gs: segment.
16811         (ix86_attr_length_immediate_default): When checking if shortform
16812         is possible, truncate immediate to the length of the non-shortened
16813         immediate.
16814         (ix86_attr_length_address_default): Ignore MEM_P operands
16815         with X constraint.
16816         (ix86_attr_length_vex_default): Only check for DImode on
16817         GENERAL_REG_P operands.
16818         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
16819         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
16820         (sse_cvttps2pi): Clear prefix_rep attribute.
16821         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
16822         attribute.
16823         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
16824         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
16825         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
16826         iff operand 2 is const_int_operand.
16827         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
16828         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
16829         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
16830         instead of vex.
16831         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
16832         prefix_data16.
16833         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
16834         prefix_data16 attribute for movlpd and movhpd instructions.
16835         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
16836         length_immediate for shufpd instruction.
16837         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
16838         (avx_cmpp<avxmodesuffixf2c><mode>3,
16839         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
16840         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
16841         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
16842         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
16843         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
16844         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
16845         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
16846         prefix_data16 attribute for the first alternative to 1.
16847         (*avx_loadlps): Override length_immediate for the first alternative.
16848         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
16849         attributes for second alternative.
16850         (*vec_concatv2sf_sse4_1): Override length_immediate and
16851         prefix_data16 attributes for second alternative.
16852         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
16853         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
16854         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
16855         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
16856         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
16857         prefix_data16 and length_immediate to 1.
16858         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
16859         to 1.
16860         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
16861         prefix_extra attribute for variants that don't have 0f prefix alone.
16862         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
16863         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
16864         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
16865         *sse4_1_pextrd): Set length_immediate to 1.
16866         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
16867         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
16868         to 1.
16869         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
16870         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
16871         length_immediate to 1 for second alternative.
16872         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
16873         prefix_extra and length_immediate attributes for the first
16874         alternative.
16875         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
16876         first alternative.
16877         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
16878         to 1 for the first and third alternative.
16879         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
16880         alternative.
16881         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
16882         attribute.
16883         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
16884         attribute to 0.
16885         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
16886         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
16887         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
16888         *avx_psign<mode>3): Set prefix_extra attribute to 1.
16889         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
16890         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
16891         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
16892         ssse3_psign<mode>3): Override prefix_rex attribute.
16893         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
16894         (ssse3_palignrti): Override length_immediate to 1.
16895         (ssse3_palignrdi): Override length_immediate to 1, override
16896         prefix_rex attribute.
16897         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
16898         (sse4a_extrqi): Override length_immediate to 2.
16899         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
16900         (sse4a_insertq): Override prefix_data16 to 0.
16901         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
16902         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
16903         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
16904         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
16905         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
16906         and length_immediate to 1.
16907         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
16908         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
16909         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
16910         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
16911         and length_immediate to 1.
16912         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
16913         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
16914         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
16915         avx_ptest256): Override prefix_extra to 1.
16916         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
16917         Override prefix_data16 and length_immediate to 1.
16918         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
16919         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
16920         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
16921         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
16922         prefix_data16 to 0 and prefix_extra to 2.
16923         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
16924         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
16925         attribute.
16926         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
16927         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
16928         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
16929         and prefix_extra to 2.
16930         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
16931         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
16932         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
16933         avx_vpermilvar<mode>3,
16934         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
16935         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
16936         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
16937         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
16938         Override prefix_extra to 1.
16939         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
16940         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
16941         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
16942         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
16943         prefix_extra and length_immediate to 1.
16944         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
16945         modrm to 0.
16946         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
16947         to 1 for the first alternative.
16948         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
16949         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
16950         cases.
16951         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
16952         *movv2sf_internal_avx, *movv2sf_internal): Override
16953         prefix_rep attribute for certain alternatives.
16954         (*mov<mode>_internal): Override prefix_rep or prefix_data16
16955         attributes for certain alternatives.
16956         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
16957         attributes for certain alternatives.
16958         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
16959         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
16960         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
16961         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
16962         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
16963         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
16964         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
16965         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
16966         length_immediate to 1 if operand 2 is const_int_operand.
16967         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
16968         *vec_extractv2si_1): Set length_immediate attribute to 1.
16969         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
16970         using old 3DNOW insn rather than SSE/3DNOW_A.
16971         (mmx_emms, mmx_femms): Clear modrm attribute.
16972
16973 2009-05-29  Martin Jambor  <mjambor@suse.cz>
16974
16975         * tree-sra.c:  New implementation of SRA.
16976
16977         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
16978         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
16979         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
16980         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
16981         (SRA_MAX_STRUCTURE_COUNT): Removed.
16982         (SRA_FIELD_STRUCTURE_RATIO): Removed.
16983         * doc/invoke.texi (sra-max-structure-size): Removed.
16984         (sra-field-structure-ratio): Removed.
16985
16986 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
16987
16988         PR middle-end/40291
16989         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
16990         before expansion.
16991
16992 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
16993
16994         PR rtl-optimization/40101
16995         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
16996         seqno.  Adjust comment.
16997         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
16998         inserting bookkeeping before a jump, the jump is not scheduled.
16999         When no positive seqno found, provide a value.  Add comment.
17000
17001 2009-05-29  Richard Guenther  <rguenther@suse.de>
17002
17003         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
17004         short-cutting on the first component.
17005
17006 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
17007
17008         PR middle-end/39958
17009         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
17010         for trees other than decls/types.
17011
17012 2009-05-29  Richard Guenther  <rguenther@suse.de>
17013
17014         * tree-ssa-operands.c (get_expr_operands): Do not handle
17015         INDIRECT_REFs in the handled-component case.  Remove
17016         unused get_ref_base_and_extent case.
17017         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
17018         tree_low_cst and host_integerp where possible.
17019         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
17020         codes for equivalence.
17021         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
17022
17023 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
17024
17025         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
17026         to tmake_file for i[34567]86-*-cygwin*.
17027
17028 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
17029
17030         PR target/40017
17031         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
17032         (altivec_categorize_keyword, init_vector_keywords,
17033         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
17034         similar to bool.
17035
17036 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
17037
17038         * tree.c (handle_dll_attribute): Check if node is
17039         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
17040
17041 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
17042
17043         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
17044         component.
17045         (thumb2_zero_extendqidi2): Likewise.
17046
17047 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
17048
17049         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
17050         instead of gen_movrt.
17051         * config/sh/sh.md (movrt): Remove.
17052
17053 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
17054
17055         * doc/invoke.texi (IA-64 Options):
17056         Add -msdata, -mfused-madd, -mno-inline-float-divide,
17057         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
17058         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
17059         -msched-prefer-non-control-spec-insns,
17060         -msched-stop-bits-after-every-cycle,
17061         -msched-count-spec-in-critical-path,
17062         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
17063         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
17064         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
17065         and -msched-spec-verbose.
17066
17067 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
17068
17069         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
17070         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
17071         error if used.
17072         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
17073
17074 2009-05-28  Richard Guenther  <rguenther@suse.de>
17075
17076         * tree-ssa-alias.c (ao_ref_init): New function.
17077         (ao_ref_base): Likewise.
17078         (ao_ref_base_alias_set): Likewise.
17079         (ao_ref_alias_set): Likewise.
17080         (refs_may_alias_p_1): Change signature.
17081         (refs_may_alias_p): Adjust.
17082         (refs_anti_dependent_p): Likewise.
17083         (refs_output_dependent_p): Likewise.
17084         (call_may_clobber_ref_p_1): Change signature.
17085         (call_may_clobber_ref_p): Adjust.
17086         (stmt_may_clobber_ref_p_1): New function split out from ...
17087         (stmt_may_clobber_ref_p): ... here.
17088         (maybe_skip_until): Adjust signature.
17089         (get_continuation_for_phi): Likewise.
17090         (walk_non_aliased_vuses): Likewise.
17091         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
17092         (ao_ref_init): Declare.
17093         (ao_ref_base): Likewise.
17094         (ao_ref_alias_set): Likewise.
17095         (stmt_may_clobber_ref_p_1): Likewise.
17096         (walk_non_aliased_vuses): Adjust.
17097         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
17098         (get_ref_from_reference_ops): remove.
17099         (vn_reference_lookup_2): Adjust signature.
17100         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
17101         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
17102         (vn_reference_lookup): Adjust.
17103         (vn_reference_insert): Likewise.
17104         (vn_reference_insert_pieces): Adjust signature.
17105         (visit_reference_op_call): Adjust.
17106         * tree-ssa-pre.c (get_expr_type): Simplify.
17107         (phi_translate_1): Adjust.
17108         (compute_avail): Likewise.
17109         (translate_vuse_through_block): Do not re-build trees.
17110         (value_dies_in_block_x): Likewise.
17111         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
17112         fields.
17113         (vn_reference_lookup_pieces): Adjust declaration.
17114         (vn_reference_insert_pieces): Likewise.
17115
17116 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
17117
17118         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
17119         with checking disabled.
17120
17121 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
17122
17123         PR target/37216
17124
17125         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
17126         macro definition for support of three-operand format aligned
17127         .comm directive in assembler on cygwin/pe/mingw target OS.
17128         * configure:  Regenerate.
17129         * config.h:  Regenerate.
17130
17131         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
17132         aligned form of .comm directive if -mpe-aligned-commons is in effect.
17133         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
17134
17135         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
17136         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
17137
17138 2009-05-28  Ira Rosen  <irar@il.ibm.com>
17139
17140         PR tree-optimization/40254
17141         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
17142         in analysis of basic blocks.
17143
17144 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
17145
17146         PR middle-end/33699
17147         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
17148         * target-def.h (TARGET_CONST_ANCHOR): New macro.
17149         (TARGET_INITIALIZER): Use it.
17150         * cse.c (CHEAPER): Move it up to the other macros.
17151         (insert): Rename this ...
17152         (insert_with_costs): ... to this.  Add cost parameters.  Update
17153         function comment.
17154         (insert): New function.  Call insert_with_costs.
17155         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
17156         find_reg_offset_for_const, try_const_anchors): New functions.
17157         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
17158         when using a const-anchor.  Call insert_const_anchors.
17159         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
17160         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
17161
17162 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
17163
17164         * tree-inline.c (remap_decls): Enable nonlocalized variables
17165         when not optimizing.
17166
17167 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
17168
17169         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
17170         Simplify other tests involving optimize.
17171
17172 2009-05-27  Tom Tromey  <tromey@redhat.com>
17173
17174         * unwind-dw2.c (_Unwind_DebugHook): New function.
17175         (uw_install_context): Call _Unwind_DebugHook.
17176
17177 2009-05-27  Tom Tromey  <tromey@redhat.com>
17178
17179         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
17180
17181 2009-05-27  Ian Lance Taylor  <iant@google.com>
17182
17183         * Makefile.in (LINKER, LINKER_FLAGS): Define.
17184         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
17185         (ALL_LINKERFLAGS): Define.
17186         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
17187         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
17188         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
17189         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
17190         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
17191         $(LINKER_FOR_BUILD).
17192         (build/gcov-iov$(build_exeext)): Likewise.
17193
17194 2009-05-27  Julian Brown  <julian@codesourcery.com>
17195
17196         * gcse.c (target.h): Include.
17197         (can_assign_to_reg_without_clobbers_p): Check that the target allows
17198         copy of argument to a pseudo register.
17199
17200 2009-05-27  Diego Novillo  <dnovillo@google.com>
17201
17202         * tree-ssa-live.c (dump_scope_block): Document arguments.
17203         (dump_scope_blocks): Document.
17204         (debug_scope_blocks): New.
17205         * tree-flow.h (debug_scope_blocks): Declare.
17206
17207 2009-05-21  Denis Chertykov  <denisc@overta.ru>
17208
17209         * doc/contrib.texi (Contributors): Add myself to the list.
17210
17211 2009-05-27  Olivier Hainque  <hainque@adacore.com>
17212
17213         * expr.c (target_align): New function.  Alignment the TARGET of an
17214         assignment may be assume to have.
17215         (highest_pow2_factor_for_target): Use it instead of relying on
17216         immediate tree attributes of TARGET, not necessarily honored when
17217         intermediate bitfields are involved.
17218
17219 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
17220
17221         PR target/40266
17222         * config/i386/driver-i386.c (host_detect_local_cpu): Support
17223         AVX, SSE4, AES, PCLMUL and POPCNT.
17224
17225 2009-05-27  Diego Novillo  <dnovillo@google.com>
17226
17227         * tree-pretty-print.c (dump_location): New.
17228         (dump_generic_node): Call it.
17229         Factor code to handle BLOCK nodes ...
17230         (dump_block_node): ... here.
17231
17232 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
17233
17234         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
17235         with it.
17236         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
17237         included.
17238         * gcc-plugin.h: Include config.h and system.h.
17239         (IN_GCC): Define if not defined.
17240
17241 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
17242
17243         PR middle-end/40249
17244         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
17245         with -fno-inline.
17246
17247 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
17248
17249         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
17250         applicable.
17251         * config/m32r/m32r.h: Ditto.
17252         * config/m32r/m32r.md: Ditto.
17253         * config/m32r/predicates.md: Ditto.
17254
17255 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
17256
17257         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
17258
17259 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
17260
17261         * doc/plugins.texi
17262         (Loading plugins): typo.
17263         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
17264         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
17265         (Interacting with the GCC Garbage Collector): Added new section.
17266         (Giving information about a plugin): Added new section for
17267         PLUGIN_INFO.
17268         * ggc.h (ggc_register_root_tab): Added declaration.
17269         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
17270         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
17271         (register_callback): Improved comment in declaration.
17272         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
17273         (extra_root_vec) Added static variable for dynamic roots registration.
17274         (ggc_register_root_tab) Added new routine.
17275         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
17276         PLUGIN_GGC_MARKING event.
17277         * ggc-zone.c: Include plugin.h.
17278         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
17279         * ggc-page.c: Include plugin.h.
17280         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
17281         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
17282         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
17283         (register_callback): check lack of callbacks for
17284         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
17285         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
17286         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
17287         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
17288         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
17289         dependency on plugin.h.
17290         (plugin.o): Added dependency on ggc.h...
17291
17292 2009-05-26  Richard Guenther  <rguenther@suse.de>
17293
17294         PR middle-end/40248
17295         Revert
17296         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
17297         with mismatched comparison modes.
17298
17299         * expr.c (expand_expr_real_1): Expand the operand of a
17300         VIEW_CONVERT_EXPR in its natural mode.
17301
17302 2009-05-26  Ian Lance Taylor  <iant@google.com>
17303
17304         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
17305         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
17306         (ALL_COMPILERFLAGS): Define.
17307         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
17308         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
17309         (collect2$(exeext), collect2.o): Likewise.
17310         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
17311         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
17312         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
17313         (libbackend.o, intl.o, cppdefault.o): Likewise.
17314         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
17315         (build/%.o): Use $(COMPILER_FOR_BUILD).
17316         (build/gen%$(build_exeext)): Likewise.
17317         (build/gcov-iov$(build_exeext)): LIkewise.
17318         * config/t-darwin (darwin.o): Use $(COMPILER).
17319         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
17320         * config/t-sol2 (sol2-c.o): Likewise.
17321         (sol2.o): Likewise.
17322         * config/t-vxworks (vxworks.o): Likewise.
17323         * config/x-darwin (host-darwin.o): Likewise.
17324         * config/x-hpux (host-hpux.o): Likewise.
17325         * config/x-linux (host-linux.o): Likewise.
17326         * config/x-solaris (host-solaris.o): Likewise.
17327         * config/alpha/x-alpha (driver-alpha.o): Likewise.
17328         * config/arm/t-arm (arm-c.o): Likewise.
17329         * config/arm/t-pe (pe.o): Likewise.
17330         * config/arm/t-wince-pe (pe.o): Likewise.
17331         * config/i386/t-cygming (winnt.o): Likewise.
17332         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
17333         * config/i386/t-cygwin (cygwin1.o): Likewise.
17334         (cygwin2.o): Likewise.
17335         * config/i386/t-i386 (i386-c.o): Likewise.
17336         * config/i386/t-interix (winnt.o): Likewise.
17337         * config/i386/t-netware (netware.o): Likewise.
17338         * config/i386/t-nwld (nwld.o): Likewise.
17339         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
17340         * config/i386/x-i386 (driver-i386.o): Likewise.
17341         * config/i386/x-cygwin (host-cygwin.o): Likewise.
17342         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
17343         * config/ia64/t-ia64 (ia64-c.o): Likewise.
17344         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
17345         * config/mips/x-native (driver-native.o): Likewise.
17346         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
17347         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
17348         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
17349         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
17350         * config/score/t-score-elf (score7.o): Likewise.
17351         (score3.o): Likewise.
17352         * config/sh/t-sh (sh-c.o): Likewise.
17353         * config/sh/t-symbian (sh-c.o): Likewise.
17354         (symbian.o): Likewise.
17355         * config/spu/t-spu-elf (spu-c.o): Likewise.
17356         * config/v850/t-v850 (v850-c.o): Likewise.
17357         * config/v850/t-v850e (v850-c.o): Likewise.
17358
17359 2009-05-26  Richard Guenther  <rguenther@suse.de>
17360
17361         PR tree-optimization/40122
17362         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
17363         VECTOR_CSTs if possible.
17364         (fold_gimple_assign): Likewise.
17365
17366 2009-05-26  Richard Guenther  <rguenther@suse.de>
17367
17368         PR middle-end/40252
17369         * fold-const.c (fold_binary): Use the correct types for building
17370         rotates.
17371
17372 2009-05-26  Richard Guenther  <rguenther@suse.de>
17373
17374         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
17375         redundant calls to merge_alias_info.
17376         (bump_vector_ptr): Likewise.
17377         * tree-ssa-copy.c (merge_alias_info): Remove.
17378         (replace_exp_1): Remove call to merge_alias_info.
17379         (propagate_tree_value): Likewise.
17380         (fini_copy_prop): Propagate points-to info.
17381         * tree-flow.h (merge_alias_info): Remove.
17382
17383 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
17384
17385         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
17386
17387 2009-05-25  Jan Hubicka  <jh@suse.cz>
17388
17389         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
17390         * cgraph.h (struct inline_summary): New filed self_wize,
17391         size_inlining_benefit, self_time and time_inlining_benefit.
17392         (struct cgraph_global_info): Replace insns by time ans size fields.
17393         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
17394         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
17395         (ipcp_update_callgraph): Do not touch function bodies.
17396         * ipa-inline.c: Include except.h
17397         (MAX_TIME): New constant.
17398         (overall_insns): Remove.
17399         (leaf_node_p): New.
17400         (overall_size, max_benefit): New static variables.
17401         (cgraph_estimate_time_after_inlining): New function.
17402         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
17403         (cgraph_clone_inlined_nodes): Update size.
17404         (cgraph_mark_inline_edge): Update size.
17405         (cgraph_estimate_growth): Use size info.
17406         (cgraph_check_inline_limits): Check size.
17407         (cgraph_default_inline_p): Likewise.
17408         (cgraph_edge_badness): Compute badness based on benefit and size cost.
17409         (cgraph_decide_recursive_inlining): Check size.
17410         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
17411         and times.
17412         (cgraph_decide_inlining): Likewise.
17413         (cgraph_decide_inlining_incrementally): Likewise; honor
17414         PARAM_EARLY_INLINING_INSNS.
17415         (likely_eliminated_by_inlining_p): New predicate.
17416         (estimate_function_body_sizes): New function.
17417         (compute_inline_parameters): Use it.
17418         * except.c (must_not_throw_labels): New function.
17419         * except.h (must_not_throw_labels): Declare.
17420         * tree-inline.c (init_inline_once): Kill inlining_weigths
17421         * tree-ssa-structalias.c: Avoid uninitialized warning.
17422         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
17423         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
17424         (PARAM_INLINE_CALL_COST): Remove.
17425         (PARAM_EARLY_INLINING_INSNS): New.
17426
17427 2009-05-25  Richard Guenther  <rguenther@suse.de>
17428
17429         PR tree-optimization/36327
17430         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
17431         callback for reference translation or lookup at the point of may-defs.
17432         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
17433         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
17434         for union COMPONENT_REFs.
17435         (vn_reference_lookup_3): New callback.  Lookup from memset
17436         and CONSTRUCTOR assignment, translate through struct copies.
17437         (vn_reference_lookup_pieces): Make sure to not free the
17438         passed operands array.  Adjust walk_non_aliased_vuses call.
17439         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
17440         make sure we do not leak memory.
17441
17442 2009-05-25  Richard Guenther  <rguenther@suse.de>
17443
17444         * tree-ssa-alias.h (dump_points_to_solution): Declare.
17445         * tree-inline.c (expand_call_inline): Reset the escaped and
17446         callused solutions.
17447         * tree-ssa-structalias.c (pass_build_ealias): New.
17448         * tree-pass.h (pass_build_ealias): Declare.
17449         * passes.c (init_optimization_passes): Add PTA during
17450         early optimizations.
17451         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
17452         and CALLUSED solutions.
17453         (dump_points_to_solution): New function, split out from ...
17454         (dump_points_to_info_for): ... here.
17455         * tree-parloops.c (parallelize_loops): Reset the escaped and
17456         callused solutions.
17457
17458 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17459
17460         PR bootstrap/40027
17461         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
17462         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
17463
17464 2009-05-25  Ira Rosen  <irar@il.ibm.com>
17465
17466         PR tree-optimization/40238
17467         * tree-vect-stmts.c (vect_init_vector): Insert initialization
17468         statements after basic block's labels.
17469         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
17470         to free the allocated memory.
17471
17472 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
17473
17474         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
17475         return address with a USE.
17476
17477 2009-05-24  Richard Guenther  <rguenther@suse.de>
17478
17479         PR middle-end/40233
17480         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
17481         array type from the main variant of the inner type.
17482
17483 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17484
17485         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
17486         definition to bool (from int) to un-break build.
17487         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
17488
17489 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
17490
17491         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
17492         discard_stmt_changes): Delete.
17493         * tree-ssa-operands.c (scb_stack): Delete.
17494         (init_ssa_operands): Do not initialize it.
17495         (fini_ssa_operands): Do not free it.
17496         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
17497
17498         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
17499         update_stmt, remove the others.  Fix comments.
17500         * tree-dfa.c (optimize_stack_restore): Likewise.
17501         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
17502         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
17503         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
17504         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
17505         Likewise.
17506         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
17507         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
17508         (dom_opt_finalize_block): Likewise, adjusting access to
17509         stmts_to_rescan.
17510         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
17511         (stmts_to_rescan): Change item type to gimple.
17512         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
17513
17514 2009-05-24  Ira Rosen  <irar@il.ibm.com>
17515
17516         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
17517         * tree-pass.h (pass_slp_vectorize): New pass.
17518         * params.h (SLP_MAX_INSNS_IN_BB): Define.
17519         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
17520         * tree-vectorizer.c (timevar.h): Include.
17521         (user_vect_verbosity_level): Declare.
17522         (vect_location): Fix comment.
17523         (vect_set_verbosity_level): Update user_vect_verbosity_level
17524         instead of vect_verbosity_level.
17525         (vect_set_dump_settings): Add an argument. Ignore user defined
17526         verbosity if dump flags require higher level of verbosity. Print to
17527         stderr only for loop vectorization.
17528         (vectorize_loops): Update call to vect_set_dump_settings.
17529         (execute_vect_slp): New function.
17530         (gate_vect_slp): Likewise.
17531         (struct gimple_opt_pass pass_slp_vectorize): New.
17532         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
17533         access its members.
17534         (vec_info_for_bb): New function.
17535         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
17536         (VECTORIZATION_ENABLED): New macro.
17537         (SLP_ENABLED, SLP_DISABLED): Likewise.
17538         (vect_is_simple_use): Add bb_vec_info argument.
17539         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
17540         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
17541         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
17542         vect_schedule_slp, vect_analyze_slp): Likewise.
17543         (vect_analyze_stmt): Add slp_tree argument.
17544         (find_bb_location): Declare.
17545         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
17546         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
17547         (vect_analyze_loop_operations, vect_analyze_loop,
17548         get_initial_def_for_induction, vect_create_epilog_for_reduction,
17549         vect_finalize_reduction, vectorizable_reduction,
17550         vectorizable_live_operation, vect_transform_loop): Likewise.
17551         * tree-data-ref.c (dr_analyze_innermost): Update comment,
17552         skip evolution analysis if analyzing a basic block.
17553         (dr_analyze_indices): Likewise.
17554         (initialize_data_dependence_relation): Skip the test whether the
17555         object is invariant for basic blocks.
17556         (compute_all_dependences): Skip dependence analysis for data
17557         references in basic blocks.
17558         (find_data_references_in_stmt): Don't fail in case of invariant
17559         access in basic block.
17560         (find_data_references_in_bb): New function.
17561         (find_data_references_in_loop): Move code to
17562         find_data_references_in_bb and add a call to it.
17563         (compute_data_dependences_for_bb): New function.
17564         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
17565         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
17566         that STEP is 0.
17567         (vect_analyze_data_ref_dependence): Check for interleaving in case of
17568         unknown dependence in basic block and fail in case of dependence in
17569         basic block.
17570         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
17571         dependence instances from either loop or basic block vectorization
17572         info.
17573         (vect_compute_data_ref_alignment): Check if it is loop vectorization
17574         before calling nested_in_vect_loop_p.
17575         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
17576         dependence instances from either loop or basic block vectorization
17577         info.
17578         (vect_verify_datarefs_alignment): Likewise.
17579         (vect_enhance_data_refs_alignment): Adjust function calls.
17580         (vect_analyze_data_refs_alignment): Likewise.
17581         (vect_analyze_group_access): Fix printing. Skip different checks if
17582         DR_STEP is 0. Keep strided stores either in loop or basic block
17583         vectorization data structure. Fix indentation.
17584         (vect_analyze_data_ref_access): Fix comments, allow zero step in
17585         basic blocks.
17586         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
17587         dependence instances from either loop or basic block vectorization
17588         info.
17589         (vect_analyze_data_refs): Update comment. Call
17590         compute_data_dependences_for_bb to analyze basic blocks.
17591         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
17592         case of loop vectorization. In case of basic block vectorization use
17593         data-ref itself as a base.
17594         (vect_create_data_ref_ptr): In case of basic block vectorization:
17595         don't advance the pointer, add new statements before the current
17596         statement.  Adjust function calls.
17597         (vect_supportable_dr_alignment): Support only aligned accesses in
17598         basic block vectorization.
17599         * common.opt (ftree-slp-vectorize): New flag.
17600         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
17601         (vect_pattern_recog_1): Likewise.
17602         * tree-vect-stmts.c (process_use): Likewise.
17603         (vect_init_vector): Add new statements in the beginning of the basic
17604         block in case of basic block SLP.
17605         (vect_get_vec_def_for_operand): Adjust function calls.
17606         (vect_finish_stmt_generation): Likewise.
17607         (vectorizable_call): Add assert that it is loop vectorization, adjust
17608         function calls.
17609         (vectorizable_conversion, vectorizable_assignment): Likewise.
17610         (vectorizable_operation): In case of basic block SLP, take
17611         vectorization factor from statement's type and skip the relevance
17612         check. Adjust function calls.
17613         (vectorizable_type_demotion): Add assert that it is loop
17614         vectorization, adjust function calls.
17615         (vectorizable_type_promotion): Likewise.
17616         (vectorizable_store): Check for outer loop only in case of loop
17617         vectorization. Adjust function calls. For basic blocks, skip the
17618         relevance check and don't advance pointers.
17619         (vectorizable_load): Likewise.
17620         (vectorizable_condition): Add assert that it is loop vectorization,
17621         adjust function calls.
17622         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
17623         that it is not reduction, get vector type, call only supported
17624         functions, skip loop specific parts.
17625         (vect_transform_stmt): Check for outer loop only in case of loop
17626         vectorization.
17627         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
17628         (vect_is_simple_use): Fix comment, add new argument, fix conditions
17629         for external definition.
17630         * passes.c (pass_slp_vectorize): New pass.
17631         * tree-vect-slp.c (find_bb_location): New function.
17632         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
17633         check for patterns only in loops.
17634         (vect_build_slp_tree): Add argument, adjust function calls, fail in
17635         case of multiple types in basic block SLP.
17636         (vect_mark_slp_stmts_relevant): New function.
17637         (vect_supported_load_permutation_p): Fix comment.
17638         (vect_analyze_slp_instance): Add argument. In case of basic block
17639         SLP, take vectorization factor from statement's type, check that
17640         unrolling factor is 1. Adjust function call. Save SLP instance in
17641         either loop or basic block vectorization structure. Return FALSE,
17642         if SLP failed.
17643         (vect_analyze_slp): Add argument. Get strided stores groups from
17644         either loop or basic block vectorization structure. Return FALSE
17645         if basic block SLP failed.
17646         (new_bb_vec_info): New function.
17647         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
17648         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
17649         (vect_schedule_slp): Add argument. Get SLP instances from either
17650         loop or basic block vectorization structure. Set vectorization factor
17651         to be 1 for basic block SLP.
17652         (vect_slp_transform_bb): New function.
17653         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
17654
17655 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
17656
17657         * final.c (shorten_branches): Do not align labels for jump tables.
17658         (final_scan_insn): Use JUMP_TABLE_DATA_P.
17659
17660 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
17661
17662         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
17663         Remove outdated reference to flow.c and fix nits.
17664         * doc/gccint.texi: Tweak RTL description.
17665         * doc/rtl.texi: Likewise.
17666
17667 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
17668
17669         * config/avr/avr.c: Change my email address.
17670         * config/avr/avr.h: Likewise.
17671         * config/avr/avr.md: Likewise.
17672         * config/avr/avr-protos.h: Likewise.
17673         * config/avr/libgcc.S: Likewise.
17674
17675 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
17676
17677         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
17678         (spu_split_load, spu_split_store): Change return type to int.
17679         (spu_split_convert): Declare.
17680         * config/spu/predicates.md (spu_mem_operand): Remove.
17681         (spu_mov_operand): Update.
17682         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
17683         * config/spu/spu.c (regno_aligned_for_load): Remove.
17684         (reg_aligned_for_addr, spu_expand_load): Define.
17685         (spu_expand_extv): Reimplement and handle MEM.
17686         (spu_expand_insv): Handle MEM.
17687         (spu_sched_reorder): Handle insn's with length 0.
17688         (spu_legitimate_address_p): Reimplement.
17689         (store_with_one_insn_p): Return TRUE for any mode with size
17690         larger than 16 bytes.
17691         (address_needs_split): Define.
17692         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
17693         operands.
17694         (spu_convert_move): Define.
17695         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
17696         (spu_split_store): Change all MEM's to TImode.
17697         (spu_init_expanders): Preallocate registers that correspond to
17698         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
17699         mark_reg_pointer.
17700         (spu_split_convert): Define.
17701         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
17702         (_move<mode>, _movdi, _movti): Update predicate and condition.
17703         (load, store): Change to define_split.
17704         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
17705         extend<mode>ti2.
17706         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
17707         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
17708         define_insn_and_split of lshr<mode>3.
17709         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
17710         (<v>ashr<mode>3_imm): Define.
17711         (extv, extzv, insv): Allow MEM operands.
17712         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
17713         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
17714         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
17715         (_spu_convert2): Change to define_insn_and_split and remove the
17716         corresponding define_peephole2.
17717         (stack_protect_set, stack_protect_test, stack_protect_test_si):
17718         Change predicates to memory_operand.
17719
17720 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
17721
17722         * config/arm/thumb2.md: Add 16-bit multiply instructions.
17723
17724 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
17725
17726         PR tree-optimization/40219
17727         * tree.c (iterative_hash_expr): Make sure the builtin function is
17728         a normal builtin function and not a front end or back end builtin
17729         before indexing into the built_in_decls array.
17730
17731 2009-05-22  Richard Guenther  <rguenther@suse.de>
17732
17733         PR middle-end/38964
17734         * alias.c (write_dependence_p): Do not use TBAA for answering
17735         anti-dependence or output-dependence.
17736         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
17737         (emit_pointer_definition): Remove.
17738         (emit_alias_warning): Likewise.
17739         (find_what_var_points_to): Remove TBAA pruning code.
17740         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
17741         violations.
17742         (compute_points_to_sets): Remove code computing the set of
17743         dereferenced pointers.
17744         * tree-data-ref.c (dr_may_alias_p): Properly use the split
17745         oracle for querying anti and output dependencies.
17746         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
17747         if TBAA may be applied.
17748         (refs_anti_dependent_p): New function.
17749         (refs_output_dependent_p): Likewise.
17750         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
17751         (refs_output_dependent_p): Likewise.
17752         * doc/tree-ssa.texi (Memory model): New section.
17753         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
17754         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
17755         * cfgexpand.c (expand_gimple_basic_block): Do not handle
17756         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
17757         * expr.c (expand_expr_real_1): Likewise.
17758         * gimple-low.c (lower_stmt): Likewise.
17759         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
17760         (dump_gimple_cdt): Remove.
17761         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
17762         (gimple_size): Likewise.
17763         (walk_gimple_op): Likewise.
17764         (is_gimple_stmt): Likewise.
17765         (walk_stmt_load_store_addr_ops): Likewise.
17766         (gimple_build_cdt): Remove.
17767         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
17768         * gimple.h (gimple_cdt_new_type): Remove.
17769         (gimple_cdt_new_type_ptr): Likewise.
17770         (gimple_cdt_set_new_type): Likewise.
17771         (gimple_cdt_location): Likewise.
17772         (gimple_cdt_location_ptr): Likewise.
17773         (gimple_cdt_set_location): Likewise.
17774         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
17775         * tree-cfg.c (remove_useless_stmts_1): Do not handle
17776         GIMPLE_CHANGE_DYNAMIC_TYPE.
17777         (verify_types_in_gimple_stmt): Likewise.
17778         * tree-inline.c (estimate_num_insns): Likewise.
17779         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
17780         (copy_decl_to_var): Likewise.
17781         (copy_result_decl_to_var): Likewise.
17782         * tree-pretty-print.c (dump_generic_node): Do not handle
17783         CHANGE_DYNAMIC_TYPE_EXPR.
17784         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
17785         * tree-ssa-operands.c (get_expr_operands): Likewise.
17786         * tree-ssa-structalias.c (struct variable_info): Remove
17787         no_tbaa_pruning member.
17788         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
17789         (unify_nodes): Do not copy it.
17790         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
17791         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
17792         (set_uids_in_ptset): Do not check it.
17793         (find_what_var_points_to): Likewise.
17794         (compute_tbaa_pruning): Remove.
17795         (compute_points_to_sets): Do not call it.
17796         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
17797         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
17798         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
17799         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
17800         (DECL_NO_TBAA_P): Likewise.
17801         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
17802         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
17803         (expand_omp_atomic_pipeline): Do not set it.
17804         * print-tree.c (print_node): Do not dump it.
17805         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
17806         redundant check.
17807
17808 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
17809
17810         PR target/39856
17811         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
17812         for clobber.
17813
17814 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
17815
17816         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
17817         non-external.
17818
17819 2009-05-22  Ben Elliston  <bje@au.ibm.com>
17820
17821         * Makefile.in (bversion.h, s-bversion): New targets.
17822         (TOPLEV_H): Add bversion.h.
17823         * toplev.h: Include "bversion.h".
17824         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
17825         the __format__ attribute only if compiling with the same version
17826         of GCC as the sources (the "build version").
17827
17828 2009-05-22  Ben Elliston  <bje@au.ibm.com>
17829
17830         * c-format.c (handle_format_attribute): Fix comment typo.
17831
17832 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
17833
17834         PR target/37846
17835         * config/ia64/ia64.opt (mfused-madd): New.
17836         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
17837         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
17838         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
17839         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
17840         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
17841         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
17842         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
17843         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
17844         instruction if !TARGET_FUSED_MADD.
17845         (fpma, fpms): Remove colon from name.
17846
17847 2009-05-22  Richard Guenther  <rguenther@suse.de>
17848
17849         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
17850         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
17851         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
17852         TARGET_MEM_REF.
17853         (create_expression_by_pieces): Only convert if necessary.
17854         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
17855         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
17856
17857 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
17858
17859         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
17860         regular pattern from a template and rename it ...
17861         (*extzv_truncsi_exts): ... to this.
17862
17863 2009-05-21  Richard Guenther  <rguenther@suse.de>
17864
17865         * cgraph.h (struct cgraph_node): Remove inline_decl member.
17866         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
17867         (cgraph_default_inline_p): Likewise.
17868         (cgraph_decide_inlining_incrementally): Likewise.
17869
17870 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
17871             Uros Bizjak  <ubizjak@gmail.com>
17872
17873         * config/i386/cpuid.h (bit_MOVBE): New.
17874
17875         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
17876
17877         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
17878         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
17879         (ix86_handle_option): Handle OPT_mmovbe.
17880         (ix86_target_string): Add -mmovbe.
17881         (pta_flags): Add PTA_MOVBE.
17882         (processor_alias_table): Add PTA_MOVBE to "atom".
17883         (override_options): Handle PTA_MOVBE.
17884
17885         * config/i386/i386.h (TARGET_MOVBE): New.
17886
17887         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
17888         (*bswapsi_movbe): New.
17889         (*bswapdi_movbe): Likewise.
17890         (bswapdi2): Renamed to ...
17891         (*bswapdi_1): This.
17892         (bswapdi2): New expander.
17893
17894         * config/i386/i386.opt (mmovbe): New.
17895
17896         * doc/invoke.texi: Document -mmovbe.
17897
17898 2009-05-21  Taras Glek  <tglek@mozilla.com>
17899
17900         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
17901         * gcc-plugin.h (plugin_init): Updated signature.
17902         * gcc-plugin.h (plugin_name_args): Moved to this header.
17903         * doc/plugins.texi (plugin_init): Updated documention to reflect
17904         API change.
17905         * doc/plugins.texi (plugin_name_args): Added to documention.
17906
17907 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
17908
17909         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
17910         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
17911
17912 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
17913
17914         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
17915         JUMP_TABLE_DATA_P predicates where applicable.
17916         * config/i386/predicates.md: Ditto.
17917         * config/i386/sse.md: Ditto.
17918
17919 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
17920
17921         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
17922         operand2 -128 override length_immediate attribute to 1.
17923         * config/i386/predicates.md (constm128_operand): New predicate.
17924
17925         * config/i386/i386.c (memory_address_length): Handle %r12
17926         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
17927         also check REGNO.
17928         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
17929         mode look through optional ZERO_EXTEND and SUBREG.
17930         * config/i386/i386.md (R12_REG): New define_constant.
17931         (prefix_data16): For sse unit set also for MODE_TI insns.
17932         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
17933         insns set if operand 1 is ext_QIreg_operand.
17934         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
17935         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
17936         immediate.
17937         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
17938         mode from MODE_DI to MODE_SI.
17939         (movdi_1_rex64): Override modrm and length_immediate attributes
17940         only for movabs (TYPE_IMOV, alternative 2).
17941         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
17942         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
17943         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
17944         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
17945         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
17946         prefix_rex attribute if DImode.
17947         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
17948         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
17949         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
17950         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
17951         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
17952         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
17953         Likewise.  For TYPE_IMOV clear length_immediate attribute.
17954         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
17955         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
17956         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
17957         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
17958         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
17959         or one operand TYPE_ISHIFT.
17960         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
17961         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
17962         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
17963         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
17964         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
17965         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
17966         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
17967         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
17968         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
17969         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
17970         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
17971         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
17972         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
17973         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
17974         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
17975         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
17976         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
17977         set mode attribute, don't override length attribute.
17978         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
17979         to 1.
17980         (return_internal_long): Set length attribute to 2 instead of 1.
17981         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
17982         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
17983         prefix_rex attribute.
17984         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
17985         New predicates.
17986         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
17987
17988 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17989
17990         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
17991
17992 2009-05-20  Ian Lance Taylor  <iant@google.com>
17993
17994         * tree.c (build_tree_list_vec_stat): New function.
17995         (ctor_to_vec): New function.
17996         (build_nt_call_vec): New function.
17997         (build_call_array): Change args to be a const pointer.
17998         (build_call_vec): New function.
17999         * tree.h (build_nt_call_vec): Declare.
18000         (build_tree_list_vec_stat): Declare.
18001         (build_tree_list_vec): Define.
18002         (build_call_array): Update declaration.
18003         (build_call_vec): Declare.
18004         (ctor_to_vec): Declare.
18005         * c-common.c (tree_vector_cache): New static variable.
18006         (make_tree_vector): New function.
18007         (release_tree_vector): New function.
18008         (make_tree_vector_single): New function.
18009         (make_tree_vector_copy): New function.
18010         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
18011         (make_tree_vector_single, make_tree_vector_copy): Declare.
18012         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
18013         (c_parser_expr_list): Don't manage cache here, instead call
18014         make_tree_vector.
18015         (c_parser_release_expr_list): Remove static function.
18016         (c_parser_vec_to_tree_list): Remove static function.
18017         (c_parser_attributes): Call build_tree_list_vec instead of
18018         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
18019         c_parser_release_expr_list.
18020         (c_parser_postfix_expression_after_primary): Likewise.
18021         (c_parser_objc_keywordexpr): Likewise.
18022
18023 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
18024
18025         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
18026         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
18027         TARGET_CONVERT_TO_TYPE.
18028         * hooks.c (hook_tree_const_tree_null): Define.
18029         * hooks.h (hook_tree_const_tree_null): Declare.
18030         * target.h (struct gcc_target):  Add invalid_parameter_type,
18031         invalid_return_type, promoted_type, and convert_to_type fields.
18032         * target-def.h (TARGET_INVALID_PARAMETER_TYPE): Define.
18033         (TARGET_INVALID_RETURN_TYPE): Define.
18034         (TARGET_PROMOTED_TYPE): Define.
18035         (TARGET_CONVERT_TO_TYPE): Define.
18036         (TARGET_INITIALIZER): Update for new fields.
18037         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
18038         (grokparms): Check targetm.invalid_parameter_type.
18039         * c-typeck.c (default_conversion): Check targetm.promoted_type.
18040         * c-convert.c (convert): Check targetm.convert_to_type.
18041
18042 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
18043
18044         * config/mips/mips.md (*extenddi_truncate<mode>,
18045         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
18046         defintions.
18047         (*extendhi_truncateqi): New define_insn_and_sptit.
18048
18049 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
18050
18051         PR middle-end/40204
18052         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
18053         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
18054
18055 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
18056
18057         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
18058         the operand of VIEW_CONVERT_EXPR.
18059
18060 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
18061
18062         * config/i386/driver-i386.c (host_detect_local_cpu): Check
18063         extended family and model for Intel processors.  Support Intel Atom.
18064
18065 2009-05-20  Olivier Hainque  <hainque@adacore.com>
18066
18067         * gstab.h (stab_code_type): Define, to be used instead of the
18068         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
18069         notice.
18070         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
18071         occurrences by stab_code_type.
18072         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
18073
18074 2009-05-20  Martin Jambor  <mjambor@suse.cz>
18075
18076         * tree-flow.h (insert_edge_copies_seq): Undeclare.
18077         (sra_insert_before): Likewise.
18078         (sra_insert_after): Likewise.
18079         (sra_init_cache): Likewise.
18080         (sra_type_can_be_decomposed_p): Likewise.
18081         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
18082         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
18083         (sra_insert_before): Likewise.
18084         (sra_insert_after): Likewise.
18085         (sra_init_cache): Likewise.
18086         (insert_edge_copies_seq): Made static and moved upwards.
18087
18088         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
18089         case.
18090
18091         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
18092
18093         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
18094         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
18095         simple copies.
18096
18097 2009-05-20  Richard Guenther  <rguenther@suse.de>
18098
18099         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
18100         with mismatched comparison modes.
18101
18102 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18103
18104         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
18105         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
18106         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
18107         with shifts for Thumb2.
18108         (orsi_notsi): New for orn.
18109         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
18110         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
18111         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
18112         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
18113         Don't invert remainder for IOR.
18114
18115 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
18116
18117         PR tree-optimization/40087
18118         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
18119         number_of_iterations_ne): Rename never_infinite argument.
18120         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
18121         number_of_iterations_le): Handle pointer-type ivs when
18122         exit_must_be_taken is false.
18123         (number_of_iterations_cond):  Do not always assume that
18124         exit_must_be_taken if the control variable is a pointer.
18125
18126 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18127
18128         * c-typeck.c (build_binary_op): Allow % on integal vectors.
18129         * doc/extend.texi (Vector Extension): Document that % is allowed too.
18130
18131 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
18132
18133         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
18134         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
18135
18136 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18137
18138         PR c/40172
18139         * c.opt (Wlogical-op): Disabled by default.
18140         * c-opt (c_common_post_options): Do not enable Wlogical-op with
18141         Wextra.
18142         * doc/invoke.texi (Wlogical-op): Likewise.
18143
18144 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
18145
18146         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
18147         into CASE_CONVERT.
18148         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
18149         Propagate the type of the first operand.
18150         <ASSERT_EXPR>: Simplify.
18151         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
18152         Rewrite using the RHS code as discriminant.
18153         <NOP_EXPR>: Turn into CASE_CONVERT.
18154         <PLUS_EXPR>: Propagate the type of the first operand.
18155
18156 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
18157
18158         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
18159         (ia64_dconst_0_375): New.
18160         * config/ia64/ia64.c (ia64_override_options): Remove
18161         -minline-sqrt-min-latency warning.
18162         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
18163         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
18164         * config/ia64/ia64.md (*sqrt_approx): Remove.
18165         (sqrtsf2): Remove #if 0.
18166         (sqrtsf2_internal_thr): Rewrite and move to div.md.
18167         (sqrtdf): Remove assert.
18168         (sqrtdf2_internal_thr): Rewrite and move to div.md.
18169         (sqrtxf2): Remove #if 0.
18170         (sqrtxf2_internal_thr): Rewrite and move to div.md.
18171         * div.md (sqrt_approx_rf): New.
18172         (sqrtsf2_internal_thr): New implementation.
18173         (sqrtsf2_internal_lat): New.
18174         (sqrtdf2_internal_thr: New implementation.
18175         (sqrtxf2_internal): New implementation.
18176
18177 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
18178             Hans-Peter Nilsson  <hp@axis.com>
18179
18180         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
18181         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
18182         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
18183         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
18184         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
18185         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
18186         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
18187         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
18188         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
18189         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
18190         * c-common.c: ...from here.
18191
18192 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18193
18194         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
18195
18196 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18197
18198         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
18199
18200 2009-05-19  Ben Elliston  <bje@au.ibm.com>
18201
18202         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
18203         assignments with memcpy calls.
18204         (add_fdes): Likewise.
18205         (binary_search_unencoded_fdes): Likewise.
18206         (linear_search_fdes): Eliminate type puns.
18207
18208 2009-05-19  Richard Guenther  <rguenther@suse.de>
18209
18210         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
18211         not falsely claim to have propagated into all uses.
18212
18213 2009-05-19  Ben Elliston  <bje@au.ibm.com>
18214
18215         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
18216         version to v3.0.
18217
18218 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
18219
18220         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
18221         * config/sh/sh.c (sh_legitimate_address_p): Make static.
18222         (TARGET_LEGITIMATE_ADDRESS_P): New.
18223         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18224         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
18225
18226 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
18227
18228         PR debug/40109
18229         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
18230         child of the containing namespace's DIE.
18231
18232 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
18233
18234         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
18235         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
18236         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
18237         extend patterns.
18238
18239 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
18240
18241         PR target/39942
18242         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
18243         gen_align with gen_pad.
18244         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
18245         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
18246
18247         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
18248         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
18249
18250         * config/i386/i386.md (align): Renamed to ...
18251         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
18252         ASM_OUTPUT_MAX_SKIP_PAD.
18253
18254 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
18255
18256         * config.gcc: Fix variable syntax.
18257
18258         PR target/39531
18259         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
18260         before calling exact_log2.
18261         (output_iorsi3): Likewise.
18262         (output_xorsi3): Likewise.
18263
18264 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
18265
18266         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
18267         for the none zero constant operand except for EQ and NE
18268         comprisons even when the first operand is R0.
18269
18270 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
18271
18272         * config/s390/2064.md: Remove trailing whitespaces.
18273         * config/s390/2084.md: Likewise.
18274         * config/s390/constraints.md: Likewise.
18275         * config/s390/fixdfdi.h: Likewise.
18276         * config/s390/libgcc-glibc.ver: Likewise.
18277         * config/s390/s390-modes.def: Likewise.
18278         * config/s390/s390-protos.h: Likewise.
18279         * config/s390/s390.c: Likewise.
18280         * config/s390/s390.h: Likewise.
18281         * config/s390/s390.md: Likewise.
18282         * config/s390/tpf-unwind.h: Likewise.
18283
18284 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
18285
18286         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
18287
18288 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
18289
18290         M68K TLS support.
18291         * configure.ac (m68k-*-*): Check if binutils support TLS.
18292         * configure: Regenerate.
18293         * config/m68k/predicates.md (symbolic_operand): Extend comment.
18294         * config/m68k/constraints.md (Cu): New constraint.
18295         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
18296         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
18297         (movsi): Handle TLS symbols.
18298         (addsi3_5200): Handle XTLS symbols, indent.
18299         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
18300         (m68k_tls_reference_p): Declare.
18301         (m68k_legitimize_address): Declare.
18302         (m68k_unwrap_symbol): Declare.
18303         * config/m68k/m68k.opt (mxtls): New option.
18304         * config/m68k/m68k.c (ggc.h): Include.
18305         (m68k_output_dwarf_dtprel): Implement hook.
18306         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
18307         (m68k_expand_prologue): Load GOT pointer when function needs it.
18308         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
18309         (m68k_legitimate_constant_address_p): Same.
18310         (m68k_decompose_address): Handle TLS references.
18311         (m68k_get_gp): New static function.
18312         (enum m68k_reloc): New contants.
18313         (TLS_RELOC_P): New macro.
18314         (m68k_wrap_symbol): New static function.
18315         (m68k_unwrap_symbol): New function.
18316         (m68k_final_prescan_insn_1): New static function.
18317         (m68k_final_prescan_insn): New function.
18318         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
18319         functions.
18320         (legitimize_pic_address): Handle TLS references..
18321         (m68k_tls_get_addr, m68k_get_tls_get_addr)
18322         (m68k_libcall_value_in_a0_p)
18323         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
18324         (m68k_call_m68k_read_tp): Helper variables and functions for ...
18325         (m68k_legitimize_tls_address): Handle TLS references.
18326         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
18327         New functions.
18328         (m68k_legitimize_address): Handle TLS symbols.
18329         (m68k_get_reloc_decoration): New static function.
18330         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
18331         UNSPEC_RELOC32.
18332         (m68k_output_dwarf_dtprel): Implement hook.
18333         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
18334         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
18335         m68k_call_* routines.
18336         (sched_attr_op_type): Handle TLS symbols.
18337         (gt-m68k.h): Include.
18338         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
18339         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
18340
18341 2009-05-18  Martin Jambor  <mjambor@suse.cz>
18342
18343         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
18344         (visit_store_addr_for_mod_analysis): New function.
18345         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
18346         (determine_cst_member_ptr): Use gimple_assign_single_p.
18347         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
18348         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
18349         operands.  Don't check number of operands of a NOP_EXPR.
18350
18351 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
18352
18353         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
18354
18355 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18356
18357         PR c/40172
18358         * c-common.c (warn_logical_operator): Don't warn if one of
18359         expression isn't always true or false.
18360
18361 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
18362
18363         * config/i386/biarch32.h: New file.
18364         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
18365
18366 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
18367
18368         * config/mips/mips.md (*zero_extend<mode>_trunchi,
18369         *zero_extend<mode>_truncqi): Merge these into ...
18370         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
18371         Name the pattern following this as *zero_extendhi_truncqi.
18372
18373 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
18374
18375         PR middle-end/39301
18376         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
18377         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
18378         (output_info): Make field HOST_WIDEST_INT.
18379         (print_statistics): Use HOST_WIDEST_INT_PRINT.
18380         (dump_bitmat_statistics): Same.
18381
18382 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
18383
18384         * config.gcc (use_gcc_stdint):  Set to wrap.
18385         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
18386         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
18387         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
18388         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
18389         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
18390         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
18391         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
18392         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
18393
18394 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
18395
18396         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
18397         tune_64.
18398         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
18399         Move definitions earlier.
18400         (OPT_ARCH64, OPT_ARCH32): Define.
18401         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
18402         and tune_64.
18403
18404 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
18405
18406         PR target/40153
18407         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
18408         implies.
18409
18410 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
18411
18412         * arm.md (movdi2): Copy non-reg values to DImode registers.
18413
18414 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
18415
18416         PR target/39942
18417         * final.c (label_to_max_skip): New function.
18418         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
18419         CODE_LABEL_NUMBER <= max_labelno.
18420         * output.h (label_to_max_skip): New prototype.
18421         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
18422         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
18423         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
18424         Handle CODE_LABELs with >= 16 byte alignment or with
18425         max_skip == (1 << align) - 1.
18426         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
18427         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
18428
18429         PR target/39942
18430         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
18431         .p2align 3 if MAX_SKIP is smaller than 7.
18432         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
18433
18434 2009-05-15  Ian Lance Taylor  <iant@google.com>
18435
18436         * alias.c (struct alias_set_entry_d): Rename from struct
18437         alias_set_entry.  Change all uses.
18438         * except.c (struct call_site_record_d): Rename from struct
18439         call_site_record.  Change all uses.
18440         * except.h (struct eh_region_d): Rename from struct eh_region.
18441         Change all uses.
18442         * gcse.c (struct hash_table_d): Rename from struct hash_table.
18443         Change all uses.
18444         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
18445         ivtype_map_elt.  Change all uses.
18446         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
18447         Change all uses.
18448         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
18449         * graphite.h (struct name_tree_d): Rename from struct name_tree.
18450         Change all uses.
18451         (struct sese_d): Rename from struct sese.  Change all uses.
18452         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
18453         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
18454         * optabs.h (struct optab_d): Rename from struct optab.  Change all
18455         uses.
18456         (struct convert_optab_d): Rename from struct convert_optab.
18457         Change all uses.
18458         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
18459         ipa_opt_pass.  Change all uses.
18460         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
18461         all uses.
18462
18463         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
18464         defined as a typedef.
18465         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
18466         defined as a tag.
18467
18468 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18469
18470         PR 16302
18471         * fold-const.c (make_range,build_range_check,merge_ranges): Move
18472         declaration to...
18473         (merge_ranges): Returns bool.
18474         * tree.h (make_range): .. to here.
18475         (build_range_check): Likewise.
18476         (merge_ranges): Likewise. Renamed from merge_ranges.
18477         * c-typeck.c (parser_build_binary_op): Update calls to
18478         warn_logical_operator.
18479         * c-common.c (warn_logical_operator): Add new warning.
18480         * c-common.h (warn_logical_operator): Update declaration.
18481
18482 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18483
18484         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
18485
18486 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18487
18488         * doc/install.texi: Document MPC requirements, flags etc.
18489
18490         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
18491         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
18492         Evaluate constant arguments.
18493         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
18494         (fold_builtin_1): Likewise, also evaluate constant arguments.
18495         Remove superfluous break.
18496         (do_mpc_ckconv): New.
18497         * real.h: Include mpc.h.
18498         * toplev.c (print_version): Output MPC version info if available.
18499
18500 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
18501
18502         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
18503
18504 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18505
18506         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
18507         only once.
18508
18509 2009-05-15  Jan Hubicka  <jh@suse.cz>
18510
18511         * doc/invoke.texi (max-early-inliner-iterations): New flag.
18512         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
18513         (try_inline): Fix return value.
18514         (cgraph_decide_inlining_incrementally): Honor new value.
18515         (cgraph_early_inlining): Handle indirect inlining.
18516         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
18517
18518 2009-05-15  Jan Hubicka  <jh@suse.cz>
18519
18520         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
18521         * cgraphunit.c (cgraph_finalize_function): Set it.
18522         (cgraph_expand_function): Use it.
18523
18524 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
18525
18526         * real.c (encode_ieee_half): Define.
18527         (decode_ieee_half): Define.
18528         (ieee_half_format): Define.
18529         (arm_half_format): Define.
18530         * real.h (ieee_half_format): Declare.
18531         (arm_half_format): Declare.
18532
18533 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
18534
18535         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
18536         swapped, and reversed optabs exist before trying to use them.
18537
18538 2009-05-15  Paul Brook  <paul@codesourcery.com>
18539             Sandra Loosemore  <sandra@codesourcery.com>
18540
18541         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
18542         loads.  Allow PRE_DEC.
18543         (output_move_neon): Handle PRE_DEC.
18544         (arm_print_operand): Add 'A' for neon structure loads.
18545         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
18546         * config/arm/neon.md (neon_mov): Update comment.
18547         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
18548         calls.
18549         (Um): New constraint.
18550
18551 2009-05-15  Jan Hubicka  <jh@suse.cz>
18552
18553         Revert the following patch until testsuite fallout is fixed:
18554         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
18555         * cgraph.h (struct inline_summary): New filed self_wize,
18556         size_inlining_benefit, self_time and time_inlining_benefit.
18557         (struct cgraph_global_info): Replace insns by time ans size fields.
18558         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
18559         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
18560         (ipcp_update_callgraph): Do not touch function bodies.
18561         * ipa-inline.c: Include except.h
18562         (MAX_TIME): New constant.
18563         (overall_insns): Remove
18564         (overall_size, max_benefit): New static variables.
18565         (cgraph_estimate_time_after_inlining): New function.
18566         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
18567         (cgraph_clone_inlined_nodes): Update size.
18568         (cgraph_mark_inline_edge): Update size.
18569         (cgraph_estimate_growth): Use size info.
18570         (cgraph_check_inline_limits): Check size.
18571         (cgraph_default_inline_p): Likewise.
18572         (cgraph_edge_badness): Compute badness based on benefit and size cost.
18573         (cgraph_decide_recursive_inlining): Check size.
18574         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
18575         and times.
18576         (cgraph_decide_inlining): Likewise.
18577         (cgraph_decide_inlining_incrementally): Likewise; honor
18578         PARAM_EARLY_INLINING_INSNS.
18579         (likely_eliminated_by_inlining_p): New predicate.
18580         (estimate_function_body_sizes): New function.
18581         (compute_inline_parameters): Use it.
18582         * except.c (must_not_throw_labels): New function.
18583         * except.h (must_not_throw_labels): Declare.
18584         * tree-inline.c (init_inline_once): Kill inlining_weigths
18585         * tree-ssa-structalias.c: Avoid uninitialized warning.
18586         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
18587         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
18588         (PARAM_INLINE_CALL_COST): Remove.
18589         (PARAM_EARLY_INLINING_INSNS): New.
18590
18591 2009-05-15  Richard Guenther  <rguenther@suse.de>
18592
18593         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
18594         not TODO_update_ssa.
18595
18596 2009-05-15  Richard Guenther  <rguenther@suse.de>
18597
18598         PR tree-optimization/39999
18599         * gimple.h (gimple_expr_type): Use the expression type looking
18600         through useless conversions.
18601         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
18602         (vn_nary_op_insert_stmt): Likewise.
18603         (simplify_binary_expression): Likewise.
18604
18605 2009-05-15  Richard Guenther  <rguenther@suse.de>
18606
18607         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
18608         New options, enabled by default.
18609         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
18610         Document.
18611         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
18612         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
18613         * tree-ssa-structalias.c (gate_tree_pta): New function.
18614         (pass_build_alias): Use it.
18615
18616 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
18617
18618         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
18619         recurse on an invariant address if a conversion from a pointer
18620         type to a wider integer type is involved.
18621
18622 2009-05-15  Jan Hubicka  <jh@suse.cz>
18623
18624         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
18625         * cgraph.h (struct inline_summary): New filed self_wize,
18626         size_inlining_benefit, self_time and time_inlining_benefit.
18627         (struct cgraph_global_info): Replace insns by time ans size fields.
18628         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
18629         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
18630         (ipcp_update_callgraph): Do not touch function bodies.
18631         * ipa-inline.c: Include except.h
18632         (MAX_TIME): New constant.
18633         (overall_insns): Remove
18634         (overall_size, max_benefit): New static variables.
18635         (cgraph_estimate_time_after_inlining): New function.
18636         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
18637         (cgraph_clone_inlined_nodes): Update size.
18638         (cgraph_mark_inline_edge): Update size.
18639         (cgraph_estimate_growth): Use size info.
18640         (cgraph_check_inline_limits): Check size.
18641         (cgraph_default_inline_p): Likewise.
18642         (cgraph_edge_badness): Compute badness based on benefit and size cost.
18643         (cgraph_decide_recursive_inlining): Check size.
18644         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
18645         and times.
18646         (cgraph_decide_inlining): Likewise.
18647         (cgraph_decide_inlining_incrementally): Likewise; honor
18648         PARAM_EARLY_INLINING_INSNS.
18649         (likely_eliminated_by_inlining_p): New predicate.
18650         (estimate_function_body_sizes): New function.
18651         (compute_inline_parameters): Use it.
18652         * except.c (must_not_throw_labels): New function.
18653         * except.h (must_not_throw_labels): Declare.
18654         * tree-inline.c (init_inline_once): Kill inlining_weigths
18655         * tree-ssa-structalias.c: Avoid uninitialized warning.
18656         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
18657         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
18658         (PARAM_INLINE_CALL_COST): Remove.
18659         (PARAM_EARLY_INLINING_INSNS): New.
18660         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
18661         (inline-call-cost): Remove.
18662         (early-inlining-insns): New.
18663
18664 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
18665
18666         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
18667         for bounds.
18668         (print_int_cst_bounds_in_octal_p): Likewise.
18669         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
18670         with subtypes.
18671         * dwarf2out.c (base_type_die): Likewise.
18672         (is_subrange_type): Delete.
18673         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
18674         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
18675         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
18676         if the destination type is boolean.
18677         (build_range_check): Do not special-case subtypes.
18678         (fold_sign_changed_comparison): Likewise.
18679         (fold_unary): Likewise.
18680         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
18681         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
18682         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
18683         * tree.c (subrange_type_for_debug_p): New predicate based on the
18684         former is_subrange_type.
18685         * tree.h (subrange_type_for_debug_p): Declare.
18686         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
18687         (convert_affine_scev): Remove call to above function.
18688         (chrec_convert_aggressive): Likewise.
18689         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
18690         false for conversions involving subtypes.
18691         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
18692         (vrp_val_min): Likewise.
18693         (needs_overflow_infinity): Likewise.
18694         (extract_range_from_unary_expr): Likewise.
18695
18696 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
18697
18698         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
18699         * config/frv/frv.c: Likewise.
18700         * config/s390/s390.c: Likewise.
18701         * config/sparc/sparc.h: Likewise.
18702         * config/i386/i386.h: Likewise.
18703         * config/i386/i386.c: Likewise.
18704         * config/crx/crx.c: Likewise.
18705         * config/m68hc11/m68hc11.h: Likewise.
18706         * config/iq2000/iq2000.c: Likewise.
18707         * config/mn10300/mn10300.h: Likewise.
18708         * config/mn10300/mn10300.c: Likewise.
18709         * config/m68k/m68k.c: Likewise.
18710         * config/rs6000/rs6000.c: Likewise.
18711         * config/rs6000/xcoff.h: Likewise.
18712         * config/rs6000/linux64.h: Likewise.
18713         * config/rs6000/sysv4.h: Likewise.
18714         * config/score/score3.c: Likewise.
18715         * config/score/score7.c: Likewise.
18716         * config/score/score.c: Likewise.
18717         * config/arm/arm.md: Likewise.
18718         * config/mips/mips.c: Likewise.
18719         * config/mips/mips.md: Likewise.
18720         * config/bfin/bfin.h: Likewise.
18721         * config/pa/pa.c: Likewise.
18722         * config/pa/constraints.md: Likewise.
18723
18724         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
18725         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
18726         * config/pdp11/pdp11.h: Use memory_address_p instead.
18727
18728 2009-05-14  Ian Lance Taylor  <iant@google.com>
18729
18730         * passes.c (finish_optimization_passes): Change i to int.
18731         * plugin.c (plugins_active_p): Change event to int.
18732         (dump_active_plugins): Likewise.
18733         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
18734         Add cast.
18735         * tree.c (tree_range_check_failed): Change c to unsigned int.
18736         (omp_clause_range_check_failed): Likewise.
18737         (build_common_builtin_nodes): Change mode to int.  Add cast.
18738         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
18739         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
18740
18741         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
18742         ++ or -- with a variable of enum type.
18743
18744 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
18745
18746         PR driver/40144
18747         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
18748
18749 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
18750
18751         * store-motion.c: Do not include params.h
18752         * Makefile.in: Fix dependencies for various files.
18753
18754 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
18755
18756         * auto-inc-dec.c: Fix pass description, remove apparent
18757         accidental duplication.
18758
18759 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18760
18761         PR middle-end/40147
18762         * ipa-utils.h (memory_identifier_string): Moved to ...
18763         * tree.h (memory_identifier_string): Here.  Add GTY(()).
18764
18765 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
18766
18767         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
18768         in the former documentation of...
18769         (GO_IF_LEGITIMATE_ADDRESS): ... this.
18770         * ira-conflicts.c (get_dup_num): Use address_operand.
18771         * targhooks.c (default_legitimate_address_p): New.
18772         * targhooks.h (default_legitimate_address_p): New.
18773         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
18774         Call hook.
18775         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
18776         * target.h (struct target): Add legitimate_address_p.
18777         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
18778         (TARGET_INITIALIZER): Include it.
18779
18780         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18781         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
18782         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
18783         (TARGET_LEGITIMATE_ADDRESS_P): New.
18784
18785         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18786         (REG_OK_STRICT_P): Delete.
18787         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
18788         (frv_legitimate_address_p_1): ... this.
18789         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
18790         (frv_legitimate_address_p_1): ... the renamed old
18791         frv_legitimate_address_p.
18792         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
18793         (TARGET_LEGITIMATE_ADDRESS_P): New.
18794
18795         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18796         * config/s390/s390-protos.h (legitimate_address_p): Remove.
18797         * config/s390/s390.c (legitimate_address_p): Rename to...
18798         (s390_legitimate_address_p): ... this, make static.
18799         (legitimize_address): Adjust call.
18800         (TARGET_LEGITIMATE_ADDRESS_P): New.
18801         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
18802
18803         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18804         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
18805         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
18806         (TARGET_LEGITIMATE_ADDRESS_P): New.
18807
18808         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18809         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
18810         * config/spu/spu.c (spu_legitimate_address): Rename to...
18811         (spu_legitimate_address_p): ... this, make static.
18812         (TARGET_LEGITIMATE_ADDRESS_P): New.
18813
18814         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18815         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
18816         * config/sparc/sparc.c (legitimate_address_p): Rename to...
18817         (sparc_legitimate_address_p): ... this, make static and return bool.
18818         (legitimize_address): Adjust call.
18819         (TARGET_LEGITIMATE_ADDRESS_P): New.
18820
18821         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18822         * config/i386/i386-protos.h (legitimate_address_p): Remove.
18823         * config/i386/i386.c (legitimate_address_p): Rename to...
18824         (ix86_legitimate_address_p): ... this, make static.
18825         (constant_address_p): Move after it, adjust call.
18826         (TARGET_LEGITIMATE_ADDRESS_P): New.
18827
18828         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18829         * config/avr/avr-protos.h (legitimate_address_p): Remove.
18830         * config/avr/avr.c (legitimate_address_p): Rename to...
18831         (avr_legitimate_address_p): ... this, make static.
18832         (legitimize_address): Adjust call.
18833         (TARGET_LEGITIMATE_ADDRESS_P): New.
18834
18835         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18836         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
18837         * config/crx/crx.c (crx_legitimate_address_p): Make static.
18838         (TARGET_LEGITIMATE_ADDRESS_P): New.
18839
18840         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18841         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
18842         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
18843         (TARGET_LEGITIMATE_ADDRESS_P): New.
18844
18845         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18846         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
18847         Remove.
18848         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
18849         Make static.
18850         (TARGET_LEGITIMATE_ADDRESS_P): New.
18851
18852         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18853         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
18854         Remove.
18855         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
18856         Rename to...
18857         (m68hc11_legitimate_address_p): ... this, make static.
18858         (go_if_legitimate_address_internal): Rename to...
18859         (m68hc11_legitimate_address_p_1): ... this.
18860         (legitimize_address): Adjust call.
18861         (TARGET_LEGITIMATE_ADDRESS_P): New.
18862
18863         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18864         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
18865         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
18866         (TARGET_LEGITIMATE_ADDRESS_P): New.
18867
18868         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18869         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
18870         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
18871         (mn10300_legitimate_address_p): ... this, make static.
18872         (TARGET_LEGITIMATE_ADDRESS_P): New.
18873
18874         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18875         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
18876         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
18877         (TARGET_LEGITIMATE_ADDRESS_P): New.
18878
18879         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18880         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
18881         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
18882         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18883         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
18884         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
18885         (rs6000_legitimate_address_p): ... this, make static.
18886         (TARGET_LEGITIMATE_ADDRESS_P): New.
18887         (REG_MODE_OK_FOR_BASE_P): Delete.
18888         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
18889
18890         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18891         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
18892         Delete.
18893         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
18894         static, adjust types.
18895         (TARGET_LEGITIMATE_ADDRESS_P): New.
18896
18897         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18898         * config/score/score.c (score_address_p): Rename to...
18899         (score_legitimate_address_p): ... this.
18900         (TARGET_LEGITIMATE_ADDRESS_P): New.
18901         * config/score/score3.c (score3_address_p): Rename to...
18902         (score3_legitimate_address_p): ... this.
18903         * config/score/score7.c (score7_address_p): Rename to...
18904         (score7_legitimate_address_p): ... this.
18905
18906         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
18907         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
18908         GO_IF_LEGITIMATE_ADDRESS): Delete.
18909         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
18910         thumb2_legitimate_address_p): Delete.
18911         (arm_legitimate_address_p): Rename to...
18912         (arm_legitimate_address_outer_p): ... this.
18913         * config/arm/constraints.md ("Uq"): Adjust call.
18914         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
18915         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
18916         to...
18917         (arm_legitimate_address_outer_p): ... this.
18918         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
18919         static.
18920         (TARGET_LEGITIMATE_ADDRESS_P): New.
18921
18922         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18923         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
18924         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
18925         (TARGET_LEGITIMATE_ADDRESS_P): New.
18926
18927         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18928         * config/vax/vax-protos.h (legitimate_address_p): Remove.
18929         * config/vax/vax.c (legitimate_address_p): Rename to...
18930         (vax_legitimate_address_p): ... this, make static.
18931         (TARGET_LEGITIMATE_ADDRESS_P): New.
18932
18933         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18934         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
18935         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
18936         (TARGET_LEGITIMATE_ADDRESS_P): New.
18937
18938         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18939         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
18940         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
18941         (mmix_legitimate_address_p): ... this, make static.
18942         (TARGET_LEGITIMATE_ADDRESS_P): New.
18943
18944         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18945         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
18946         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
18947         (TARGET_LEGITIMATE_ADDRESS_P): New.
18948
18949 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
18950
18951         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
18952         of MODE_COMPLEX_INT.
18953
18954 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18955
18956         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
18957         LCT_NORMAL in function call.
18958         * mips-tdump.c (print_file_desc): Add cast to enum type.
18959         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
18960         (mark_stabs): Add casts to enum types.
18961         (parse_stabs_common): Add casts to enum types.
18962
18963 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
18964
18965         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
18966         Check for invalid values of LETTER.
18967
18968 2009-05-13  Taras Glek  <tglek@mozilla.com>
18969
18970         * attribs.c (register_attribute): moved out attribute registration
18971         into register_attribute.
18972         * doc/plugins.texi: Documented register_attribute and
18973         PLUGIN_ATTRIBUTES.
18974         * gcc-plugin.h: Added forward decl for register_attribute.
18975         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
18976         * plugin.c (register_callback, invoke_plugin_callbacks): Added
18977         PLUGIN_ATTRIBUTES boilerplate.
18978
18979 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
18980
18981         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
18982         values even in sentinel and empty entries.
18983         (ms_printf_flag_specs):  Likewise.
18984         (ms_scanf_flag_specs):  Likewise.
18985         (ms_strftime_flag_specs):  Likewise.
18986         (ms_print_char_table):  Likewise.
18987         (ms_scan_char_table):  Likewise.
18988         (ms_time_char_table):  Likewise.
18989
18990 2009-05-13  Doug Kwan  <dougkwan@google.com>
18991
18992         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
18993
18994 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
18995
18996         * config/mips/mips.md (store): Add attributes for QI and HI.
18997         Update comment.
18998         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
18999         (truncdi<mode>2): ... this new pattern.
19000
19001 2009-05-13  Brad Hards  <bradh@kde.org>
19002
19003         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
19004
19005 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
19006             Ben Elliston <bje@au.ibm.com>
19007
19008         PR middle-end/40035
19009         * dse.c (check_mem_read_rtx): Guard against width == -1.
19010
19011 2009-05-13  Michael Matz  <matz@suse.de>
19012
19013         PR middle-end/39976
19014         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
19015         (trivially_conflicts_p): New function.
19016         (insert_backedge_copies): Use it.
19017
19018 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
19019
19020         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
19021         (handle_stdc_pragma): Use new enum constant names.
19022         (handle_pragma_float_const_decimal64): Ditto.
19023
19024 2009-05-13  Ian Lance Taylor  <iant@google.com>
19025
19026         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
19027         tree.def.
19028
19029 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
19030
19031         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
19032         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
19033         multilibs.
19034         * config/m68k/m68k.h (FL_UCLINUX): Define.
19035
19036 2009-05-13  Jan Hubicka  <jh@suse.cz>
19037
19038         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
19039
19040 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
19041
19042         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
19043         unless -fschedule-insns is specified.
19044
19045 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
19046
19047         PR target/39561
19048         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
19049         TARGET_EXPAND_CBRANCHDI4.
19050         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
19051         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
19052         (cmpeqdi): Fix comment.
19053
19054 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
19055
19056         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
19057         (sh_legitimate_address_p): Likewise.
19058         * config/sh/sh.c (sh_legitimate_index_p): New.
19059         (sh_legitimate_address_p): Likewise.
19060         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
19061         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
19062         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
19063         (MAYBE_BASE_REGISTER_RTX_P): New macro.
19064         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
19065         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
19066         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
19067         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
19068         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
19069
19070 2009-05-12  Jan Hubicka  <jh@suse.cz>
19071
19072         * tree-inline.c (estimate_operator_cost): Add operands;
19073         when division happens by constant, it is cheap.
19074         (estimate_num_insns): Loads and stores are not having cost of 0;
19075         EH magic stuff is cheap; when computing runtime cost of switch,
19076         use log2 base of amount of its cases; builtin_expect has cost of 0;
19077         compute cost for moving return value of call.
19078         (init_inline_once): Initialize time_based flags.
19079         * tree-inline.h (eni_weights_d): Add time_based flag.
19080
19081 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
19082
19083         * df-core.c: Update head documentation.
19084
19085 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
19086
19087         PR bootstrap/40118
19088         * rs6000.c (rs6000_generate_compare): Use op1b instead of
19089         shadowing exisiting variable op1.
19090
19091 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
19092
19093         PR target/37179
19094         * config/i386/driver-i386.c (processor_signatures): New enum.
19095         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
19096         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
19097         processor signature to detect geode processor.
19098
19099 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
19100
19101         Revert:
19102
19103         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
19104
19105         * optabs.c (prepare_cmp_insn): Temporarily disable test that
19106         causes spurious differences between trunk and cond-optab branch.
19107
19108 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
19109
19110         * dojump.c (compare_from_rtx): Delete.
19111         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
19112         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
19113         if the comparison does not satisfy the predicate; test predicates for
19114         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
19115         further if one existing pattern fails.
19116         * expr.h (compare_from_rtx): Delete.
19117         (prepare_operand): Declare it.
19118         * optabs.c: Change "lib call" to "libcall" throughout.
19119         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
19120         HAVE_conditional_trap, emit_cmp_insn): Delete.
19121         (can_compare_p): Delete cmp_optab case.
19122         (prepare_float_lib_cmp): Return an rtx and a machine mode.
19123         Accept other parameters by value.
19124         (prepare_operand): Make non-static.
19125         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
19126         other parameters by value.  Try to widen operands here based on
19127         an optab_methods argument and looking at cbranch_optab.
19128         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
19129         loop.  Use cbranch_optab directly.
19130         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
19131         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
19132         assertion.
19133         (emit_conditional_move, emit_conditional_add): Inline what's needed
19134         of compare_from_rtx, using new prepare_cmp_insn for the rest.
19135         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
19136         with COMPARE.  Move cmov_optab and cstore_optab above
19137         with cbranch_optab, move cmp_optab down with ucmp_optab,
19138         remove tst_otpab.  Do not initialize trap_rtx.
19139         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
19140         for trap code.  Do not check HAVE_conditional_trap.  Use
19141         prepare_cmp_insn.  Accept no predicate for operand 3.
19142         * optabs.h (OTI_cmp): Mark as used only for libcalls.
19143         (OTI_ctrap, ctrap_optab): New.
19144         (tst_optab): Delete.
19145         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
19146         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
19147         with lookup of ctrap_optab.
19148         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
19149         Delete.
19150         (ctrap_optab): New.
19151
19152         * combine.c (combine_simplify_rtx, simplify_set): Do not
19153         special case comparing against zero for cc0 machines.
19154         * simplify-rtx.c (simplify_binary_operation_1): Never remove
19155         COMPARE on cc0 machines.
19156         (simplify_relational_operation): Return a new expression when
19157         a COMPARE could be removed.
19158         * final.c (final_scan_insn): Compare cc_status values
19159         against LHS of a (compare FOO (const_int 0)) cc0 source.
19160         Also check if cc_status.value is the full compare.
19161
19162         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
19163         (cstoreMM4): Document.
19164         (conditional_trap): Document ctrapMM4 instead.
19165         (sync_compare_and_swapMM): Refer to cbranchcc4.
19166         (Dependent Patterns): Eliminate obsolete information referring to
19167         the old jump optimization phase.
19168         (Canonicalization): Include cbranchcc4 case, omit canonicalization
19169         of compares with 0 on cc0 machines.
19170         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
19171         avoiding references to cc0.  Remove text about storing operands
19172         in cmpMM.
19173         * doc/tm.texi (Condition Codes): Include blurb on different
19174         condition code representations, separate into subsections for
19175         CC0, MODE_CC and conditional execution.
19176
19177         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
19178         alpha_emit_setcc): Accept operands and a machine mode.
19179         * config/alpha/alpha.c (alpha_emit_conditional_branch):
19180         Get code/op0/op1 from operands, use machine mode argument
19181         instead of alpha_compare.fp_p.  Emit the branch here.
19182         (alpha_emit_setcc): Likewise, and return boolean.
19183         (alpha_emit_conditional_move): Likewise.  Assert that
19184         cmp_op_mode == cmp_mode, and simplify accordingly.
19185         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
19186         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
19187         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
19188         Delete.
19189         (stack probe test): Use cbranchdi4.
19190         * config/alpha/predicates.md (alpha_cbranch_operator): New.
19191
19192         * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
19193         * config/arc/arc.h (movsicc, movsfcc): Use it.
19194         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
19195         (cbranchsi4, cstoresi4): New.
19196         (cmpsi, bCC and sCC expanders): Remove.
19197
19198         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
19199         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
19200         * config/arm/predicates.md (arm_comparison_operator): Only include
19201         floating-point operators if there is a hardware floating-point unit.
19202         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
19203         deferring to cbranch_cc and cstore_cc respectively.
19204         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
19205         cbranch_cc, cstore_cc): New.
19206         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
19207         arm_compare_op1.
19208         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
19209
19210         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
19211         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
19212         as an argument.
19213         (adjust_insn_length): Adjust calls.
19214         (avr_reorg): Handle (compare (foo) (const_int 0)).
19215         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
19216         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
19217         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
19218         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
19219         (bCC): Remove.
19220         (cbranchqi4, cbranchhi4, cbranchsi4): New.
19221         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
19222
19223         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
19224         (cbranchsi4, cstorebi4, cstoresi4): New.
19225         (movbisi): This insn is duplicate, split it to zero_extend.
19226         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
19227         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
19228         (bfin_optimize_loop): Use cbranch expander.
19229         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
19230         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
19231         (bfin_bimode_comparison_operator): ... this.
19232         (bfin_direct_comparison_operator): New.
19233
19234         * config/cris/cris.c (cris_normal_notice_update_cc): Look
19235         inside (compare FOO (const_int 0)).
19236         (cris_rtx_costs): Handle ZERO_EXTRACT.
19237         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
19238         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
19239         (*tstdi_v32): Delete.
19240         (*cmpdi_non_v32): Add M alternative for operand 1.
19241         (cmpsi, cmp<mode>): Make private.
19242         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
19243         with COMPARE.
19244         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
19245
19246         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
19247         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
19248         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
19249         (cc_reg_operand): New.
19250         (any_cond): Delete.
19251         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
19252         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
19253         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
19254         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
19255         crx_expand_scond): Delete.
19256
19257         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
19258         (cbranchsi4): New.
19259         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
19260         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
19261
19262         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
19263         cstoresi4, cstoresf4, cstoredf4): New.
19264         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
19265         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
19266         Receive the entire operands array.
19267         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
19268         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
19269         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
19270         Get test/op0/op1 from the operands array.
19271         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
19272
19273         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
19274         (h8300_expand_store): New.
19275         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
19276         (const_int 0)).
19277         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
19278         (h8300_expand_store): New.
19279         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
19280         or do not try to produce (set (cc0) REG).
19281         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
19282         change a compare into a move to a scratch register.  Disable some
19283         peepholes when comparing with zero.
19284         (tstsi, tsthi, tstsi, cmpqi): Make private.
19285         (cmphi): Delete.
19286         (bCC, sCC): Delete.
19287         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
19288         cstoresi4): New.
19289
19290         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
19291         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
19292         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
19293         (ix86_emit_i387_log1p): Use cbranchxf2.
19294         (ix86_expand_setcc): Return void.
19295         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
19296         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
19297         cmp<MODEF>, cmpcc): Remove.
19298         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
19299         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
19300         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
19301         (sCC and bCC expanders): Remove.
19302         (stack_protect_test): Use cbranchcc4.
19303
19304         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
19305         Delete.
19306         (ia64_expand_compare): Accept three rtx by reference and return void.
19307         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
19308         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
19309         from *expr.  Update *expr with the BImode comparison to do.
19310         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
19311         cmptf, bCC, sCC, conditional_trap): Delete.
19312         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
19313         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
19314         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
19315         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
19316         * config/ia64/predicates.md (ia64_cbranch_operator): New.
19317
19318         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
19319         type of last argument.
19320         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
19321         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
19322         use machine mode argument instead of branch_type.  Remove dead
19323         code for floating-point comparisons.
19324         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
19325         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
19326         Remove.
19327         (cbranchsi4, cstoresi4): New.
19328         * config/iq2000/predicates.md (reg_or_const_operand): New.
19329
19330         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
19331         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
19332         (b<code>_op): Rewrite to...
19333         (bcc_op): ... this, using match_operator.
19334         (s<code>_op): Rewrite to...
19335         (scc_op): ... this, using match_operator.
19336         (s<code>_24_op): Rewrite to...
19337         (scc_op_24): ... this, using match_operator.
19338         (s<code>_<mode>): Rewrite to...
19339         (cstore<mode>4): ... this, using match_operator.
19340         (s<code>_<mode>_24): Rewrite to...
19341         (cstore<mode>4_24): ... this, using match_operator.
19342         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
19343         m32c_unpend_compare, m32c_expand_scc): Delete.
19344         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
19345         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
19346         (m32c_expand_movcc): Change NE to EQ if necessary.
19347         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
19348
19349         * config/m32r/m32r-protos.h (gen_cond_store): New.
19350         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
19351         (gen_cond_store): New, from sCC patterns.
19352         (m32r_expand_block_move): Use cbranchsi4.
19353         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
19354         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
19355         (cbranchsi4, cstoresi4): New.
19356
19357         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
19358         Delete.
19359         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
19360         (m68hc11_notice_update_cc): Look into a compare with 0.
19361         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
19362         Delete.
19363         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
19364         cmphi, cmpqi, bCC): Delete.
19365         (cbranchsi4, cbranchhi4, cbranchqi4): New.
19366         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
19367         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
19368         sets with COMPARE.
19369
19370         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
19371         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
19372         * config/m68k/constraints.md (H): New.
19373         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
19374         the define_insn below.
19375         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
19376         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
19377         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
19378         patterns): Wrap RHS with COMPARE.
19379         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
19380         (*cmpdi_internal): Name this pattern.
19381         (cmpdi): Change to define_insn.
19382         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
19383         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
19384         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
19385         predicate.
19386         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
19387         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
19388         (conditional_trap): Change to...
19389         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
19390         (*conditional_trap): Use the ordered_comparison_operator and
19391         const1_operand predicates.
19392         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
19393         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
19394         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
19395         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
19396
19397         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
19398         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
19399         (mcore_gen_compare): New.
19400         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
19401         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
19402         (mcore_gen_compare): ... this.
19403         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
19404         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
19405         (stack probe pattern): Use cbranchsi4.
19406
19407         * config/mips/predicates.md (mips_cstore_operator): New.
19408         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
19409         * config/mips/mips.md (any_cond): Delete.
19410         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
19411         always succeed.
19412         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
19413         fixuns_truncsfdi2): Use cbranch patterns.
19414         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
19415         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
19416         Adjust call to mips_expand_conditional_branch.
19417         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
19418         cstore<GPR:mode>4.
19419         * config/mips/mips-protos.h (mips_expand_conditional_branch,
19420         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
19421         * config/mips/mips.c (cmp_operands): Delete.
19422         (mips_emit_compare): Get comparison operands from *op0/*op1.
19423         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
19424         that it succeeds.  Use op0/op1 instead of cmp_operands.
19425         (mips_expand_conditional_branch, mips_expand_conditional_move,
19426         mips_expand_conditional_trap): Likewise.
19427         (mips_block_move_loop): Use cbranch patterns.
19428         * config/mips/mips.h (cmp_operands): Delete.
19429
19430         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
19431         (mmix_gen_compare_reg): Just return a register in the right CC mode.
19432         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
19433         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
19434         (*cmpcc_folded): Rename to...
19435         (*cmpdi_folded): this.
19436         (*cmpcc): Rename to...
19437         (*cmps): ... this.
19438         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
19439         (bCC): Remove.
19440         (cbranchdi4): New.
19441         (cbranchdf4): New.  Handle invalid comparisons here.
19442         * config/mmix/predicates.md (float_comparison_operator): New.
19443
19444         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
19445         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
19446         * config/mn10300/mn10300.md (tst): Delete.
19447         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
19448         Name these patterns and wrap RHS in a compare.
19449         (*cmpsi): Make this pattern private.  Include tst.
19450         (*cmpsf): Make this pattern private.
19451         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
19452         (compare with zero peepholes): Likewise.
19453         (bCC): Remove.
19454         (cbranchsi4, cbranchsf4): New.
19455         (casesi): Use cbranchsi4.
19456
19457         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
19458         hppa_branch_type): Delete.
19459         (return_addr_rtx): Use cbranchsi4.
19460         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
19461         Emit CCFPmode comparison here.
19462         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
19463         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
19464         hppa_branch_type): Delete.
19465         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
19466         (movsicc, movdicc): Remove references to hppa_compare_op0,
19467         hppa_compare_op1 and compare_from_rtx.
19468         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
19469         (casesi): Use cbranchsi4.
19470
19471         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
19472         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
19473         * config/pdp11/pdp11.md (register_or_const0_operand): New.
19474         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
19475         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
19476         (bCC): Delete.
19477         (cbranchdf4, cbranchhi4, cbranchqi4): New.
19478         (*branch, *branch_inverted): New.
19479
19480         * config/picochip/picochip.md (cbranchhi4): Use
19481         ordered_comparison_operator.
19482         (cmphi, bCC): Remove.
19483
19484         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
19485         (trap_comparison_operator): Delete.
19486         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
19487         rs6000_emit_cbranch): Accept mode and operands.
19488         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
19489         rs6000_compare_fp_p): Delete.
19490         (rs6000_generate_compare): Accept mode and comparison.  Extract code
19491         and op0/op1 from there.  Replace references to rs6000_compare_op0
19492         and rs6000_compare_op1.
19493         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
19494         extract result from passed operands.
19495         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
19496         extract loc from passed operands.
19497         (rs6000_emit_cmove): Likewise.
19498         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
19499         rs6000_compare_fp_p): Delete.
19500         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
19501         (cbranch<GPR>4, cbranch<FP>4): New.
19502         (cstore<mode>4): New.  Consolidate here all choices about when to use
19503         portable or specialized sCC sequences.
19504         (stack_protect_test): Use cbranchsi4.
19505         (conditional_trap): Replace with ctrap<GPR>4.
19506         (conditional trap insn): Replace trap_comparison_operator with
19507         ordered_comparison_operator.
19508
19509         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
19510         (s390_emit_prologue): Use ctrap.
19511         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
19512         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
19513         New predicates replacing...
19514         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
19515         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
19516         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
19517         (add<mode>cc): Do not use s390_compare_op0/op1.
19518         (s<code>): Change to...
19519         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
19520         (seq): Change to...
19521         (cstorecc4): ... this.  Handle EQ or NE equally.
19522         (*sne): Un-privatize for use in cstorecc4.
19523         (b<code>): Change to...
19524         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
19525         (conditional_trap): Replace with...
19526         (ctrap<GPR>4, ctrap<FP>4): ... these.
19527         (stack_protect): Use cbranchcc4.
19528
19529         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
19530         * config/score/score-protos.h (score_gen_cmp): Delete.
19531         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
19532         (score_block_move-loop): Use cbranchsi4.
19533         * config/score/score.md (cbranchsi4): New.
19534         (cmpsi, bCC): Delete.
19535         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
19536         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
19537         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
19538         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
19539         * config/score/score3.h (score3_gen_cmp): Delete.
19540         * config/score/score7.h (score7_gen_cmp): Delete.
19541
19542         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
19543         (sh_emit_scc_to_t): ... this.  Return void.
19544         (from_compare): Rename to...
19545         (sh_emit_compare_and_branch): ... this.
19546         (sh_emit_compare_and_set): New.
19547         (sh_expand_t_scc): Accept operands.
19548         * config/sh/predicates.md (sh_float_comparison_operator): New.
19549         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
19550         (prepare_scc_operands): Rename to...
19551         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
19552         arguments.
19553         (sh_emit_cheap_store_flag): New.
19554         (sh_emit_set_t_insn): New.
19555         (from_compare): Rename to...
19556         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
19557         handling of TARGET_SH2E floating point to avoid recursive call.
19558         Generate branch here.
19559         (sh_emit_compare_and_set): New.
19560         (sh_expand_t_scc): Get op0/op1 from arguments.
19561         (sh_emit_cheap_store_flag): New.
19562         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
19563         cases.
19564         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
19565         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
19566         (movsicc, movdicc): Do nothing when it recreated operands from
19567         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
19568         prepare_scc_operands (now sh_emit_scc_to_t).
19569         (udivdi3): Use cstoresi4.
19570         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
19571         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
19572         (cbranchint4_media, cbranchfp4_media): New.
19573         (casesi): Use cbranchdi4.
19574         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
19575         Delete.
19576         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
19577         (movnegt): Remove second operand.
19578         (cbranchsf4, cbranchdf4): New.
19579         (stack_protect): Use cbranchdi4/cbranchsi4.
19580
19581         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
19582         (gen_compare_reg): Accept comparison, extract part of it to...
19583         (gen_compare_reg_1): ... this.
19584         (gen_compare_operator): Delete.
19585         (gen_v9_scc): Accept separate destination, comparison code and arms.
19586         Do not use sparc_compare_op0/sparc_compare_op1.
19587         (emit_scc_insn, emit_conditional_branch_insn): New.
19588         (emit_v9_brxx): Make static.  Remove useless assertion.
19589         (sparc_emit_float_lib_cmp): Return RTL instead of calling
19590         emit_cmp_insn.
19591         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
19592         * config/sparc/sparc-protos.h (gen_compare_reg,
19593         sparc_emit_float_lib_cmp): Adjust prototype.
19594         (emit_scc_insn, emit_conditional_branch_insn): New.
19595         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
19596         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
19597         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
19598         iterators to the top.
19599         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
19600         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
19601         snedi_special_trunc): Delete.
19602         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
19603         and snedi_special_trunc.
19604         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
19605         cbranchdi4, cbranch<F:mode>4): New.
19606         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
19607         here.  Use gen_compare_reg instead of gen_compare_operator.
19608         (conditional_trap): Replace with...
19609         (ctrapsi4, ctrapdi4): ... this.
19610         (stack_protect_test): Use cbranchcc4.
19611
19612         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
19613         argument to rtx.
19614         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
19615         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
19616         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
19617         from operands[0] or operands[3] depending on is_set.
19618         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
19619         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
19620         cmpdf, bCC), sCC: Remove.
19621         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
19622         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
19623         cstoredf4): New.
19624         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
19625         spu_emit_branch_or_set.
19626
19627         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
19628         Add two arguments.
19629         * config/stormy16/stormy16.h (xstormy16_compare_op0,
19630         xstormy16_compare_op1): Delete.
19631         * config/stormy16/stormy16.c (xstormy16_compare_op0,
19632         xstormy16_compare_op1): Delete.
19633         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
19634         Adjust calls.
19635         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
19636         (cmphi, cmpsi, bCC): Remove.
19637
19638         * config/v850/v850.md (tstsi, cmpsi): Fold into...
19639         (*cmpsi): ... this one.
19640         (cbranchsi4, cstoresi4): New.
19641         (bCC expanders): Delete.
19642         (sCC insns): Fold into...
19643         (*setcc): ... this one.
19644         (casesi): Do not use gen_cmpsi and gen_bgtu.
19645         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
19646         (movsicc): Simplify.
19647         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
19648
19649         * config/vax/vax-protos.h (cond_name): New.
19650         (vax_output_conditional_branch): Remove.
19651         * config/vax/vax.c (cond_name): New.
19652         (vax_output_conditional_branch): Remove.
19653         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
19654         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
19655         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
19656         (bit<VAXint>): Wrap source with (compare).
19657         (b<code> and following unnamed pattern): Rename to *branch and
19658         *branch_reversed.  Change macroization to match_operator.
19659         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
19660
19661         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
19662         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
19663         Change last argument to machine_mode.
19664         (xtensa_expand_scc): Add machine_mode argument.
19665         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
19666         (gen_conditional_move, xtensa_expand_conditional_branch,
19667         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
19668         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
19669         Adjust operand numbers.
19670         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
19671         Delete.
19672         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
19673         (cmpsi, cmpsf, b<code>, s<code>): Delete.
19674         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
19675
19676 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
19677
19678         * optabs.c (prepare_cmp_insn): Temporarily disable test that
19679         causes spurious differences between trunk and cond-optab branch.
19680
19681 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
19682
19683         PR target/37137
19684         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
19685
19686 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
19687
19688         * tree.c (iterative_hash_pointer): Delete.
19689         (iterative_hash_expr): Short-circuit handling of NULL pointer.
19690         Hash UIDs and versions of SSA names.  Don't special-case built-in
19691         function declarations.
19692
19693 2009-05-11  Ian Lance Taylor  <iant@google.com>
19694
19695         PR bootstrap/40103
19696         * graphite.c: Force -Wc++-compat to only be a warning before
19697         #including "cloog/cloog.h".
19698
19699 2009-05-11  Martin Jambor  <mjambor@suse.cz>
19700
19701         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
19702
19703 2009-05-11  Jan Hubicka  <jh@suse.cz>
19704
19705         * tree-ssa-loop-ivcanon.c: Include target.h
19706         (struct loop_size): new structure.
19707         (constant_after_peeling): New predicate.
19708         (tree_estimate_loop_size): New function.
19709         (estimated_unrolled_size): Rewrite for new estimates.
19710         (try_unroll_loop_completely): Use new estimates.
19711         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
19712
19713 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19714
19715         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
19716         libcpp interface change.
19717         (spu_macro_to_expand): Likewise.
19718
19719 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
19720
19721         PR tree-optimization/40026
19722         * gimplify.c (gimplify_init_constructor): Change initial conditional
19723         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
19724         optimize_compound_literals_in_ctor.
19725
19726 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
19727
19728         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
19729         New devices.
19730         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
19731
19732 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
19733
19734         * tree-vect-data-refs.c (vect_analyze_group_access): Use
19735         HOST_WIDE_INT for gap.
19736
19737 2009-05-11  Ira Rosen  <irar@il.ibm.com>
19738
19739         PR tree-optimization/40074
19740         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
19741         account in group size and step comparison.
19742
19743 2009-05-11  Richard Guenther  <rguenther@suse.de>
19744
19745         * passes.c (init_optimization_passes): Strip now incorrect comment.
19746         (execute_function_todo): Do not set PROP_alias.
19747         * tree-pass.h (PROP_alias): Remove.
19748         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
19749         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
19750         * tree-nrv.c (pass_return_slot): Likewise.
19751         * tree-object-size.c (pass_object_sizes): Likewise.
19752         * tree-ssa-dom.c (pass_dominator): Likewise.
19753         (pass_phi_only_cprop): Likewise.
19754         * tree-ssa-dse.c (pass_dse): Likewise.
19755         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
19756         (pass_cselim): Likewise.
19757         * tree-ssa-pre.c (pass_pre): Likewise.
19758         (pass_fre): Likewise.
19759         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
19760         * tree-ssa-sink.c (pass_sink_code): Likewise.
19761         * tree-stdarg.c (pass_stdarg): Likewise.
19762         * tree-tailcall.c (pass_tail_calls): Likewise.
19763         * tree-vrp.c (pass_vrp): Likewise.
19764
19765 2009-05-10  Ian Lance Taylor  <iant@google.com>
19766
19767         * basic-block.h (enum profile_status): Break out of struct
19768         control_flow_graph.
19769         * cgraph.h (struct inline_summary): Break out of struct
19770         cgraph_local_info.
19771         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
19772         of struct cgraph_order_sort.
19773         * combine.c (enum undo_kind): New enum, broken out of struct undo.
19774         * cse.c (struct branch_path): Break out of struct
19775         cse_basic_block_data.
19776         * except.h (enum eh_region_type): Break out of struct eh_region.
19777         * gcc.c (enum add_del): Break out of struct modify_target.
19778         * genrecog.c (enum decision_type): Break out of struct decision_test.
19779         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
19780         ggc_pch_data.
19781         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
19782         * regmove.c (enum match_use): New enum, broken out of struct match.
19783         * sched-int.h (enum post_call_group): New enum, broken out of
19784         struct deps.
19785         (struct deps_reg): Break out of struct deps.
19786         * target.h (struct asm_int_op): Break out of struct gcc_target.
19787         * tree-eh.c (struct goto_queue_node): Break out of struct
19788         leh_tf_state.
19789         * tree-inline.h (enum copy_body_cge_which): Break out of
19790         copy_body_data.
19791         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
19792
19793         * c-decl.c (in_struct, struct_types): New static variables.
19794         (pushtag): Add loc parameter.  Change all callers.
19795         (lookup_tag): Add ploc parameter.  Change all callers.
19796         (check_compound_literal_type): New function.
19797         (parser_xref_tag): Add loc parameter.  Change all callers.  If
19798         -Wc++-compat, warn about struct/union/enum types defined within a
19799         struct or union.
19800         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
19801         and loc parameters.  Change all callers.  Change error calls to
19802         error_at, using loc.  For a redefinition, if the location of the
19803         original definition is known, report it.  Set in_struct and
19804         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
19805         (finish_struct): Add new parameters enclosing_in_struct and
19806         enclosing_struct_types.  Change all callers.  Set
19807         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
19808         in the struct.  If in a struct, add this struct to struct_types.
19809         (start_enum): Add loc parameter.  Change all callers.  Use
19810         error_at for errors, using loc.  For a redefinition, if the
19811         location of the original definition is known, report it.  If in a
19812         struct, add this enum type to struct_types.  If -Wc++-compat warn
19813         if in sizeof, typeof, or alignof.
19814         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
19815         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
19816         (c_parser_enum_specifier): Get enum location for start_enum.
19817         (c_parser_struct_or_union_specifier): Get struct location for
19818         start_struct.  Save in_struct and struct_types status between
19819         start_struct and finish_struct.
19820         (c_parser_cast_expression): Get location of cast.
19821         (c_parser_alignof_expression): Get location of type.
19822         (c_parser_postfix_expression): Likewise.
19823         (c_parser_postfix_expression_after_paren_type): Add type_loc
19824         parameter.  Change all callers.  Call check_compound_literal_type.
19825         Use type_loc for error about variable size type.
19826         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
19827         of an enum constant from an enum type defined in a struct or union.
19828         (c_cast_expr): Add loc parameter.  Change all callers.  If
19829         -Wc++-compat, warn about defining a type in a cast.
19830         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
19831         (start_enum, start_struct, finish_struct): Update declarations.
19832         (parser_xref_tag, c_cast_expr): Update declarations.
19833         (check_compound_literal_type): Declare.
19834
19835 2009-05-11  Ben Elliston  <bje@au.ibm.com>
19836
19837         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
19838         for recent libcpp interface change.
19839         (rs6000_macro_to_expand): Likewise.
19840
19841 2009-05-10  Michael Matz  <matz@suse.de>
19842
19843         PR target/40031
19844         * config/arm/arm.c (require_pic_register): Emit on entry edge,
19845         not at entry of function.
19846
19847 2009-05-10  Richard Guenther  <rguenther@suse.de>
19848
19849         PR tree-optimization/40081
19850         Revert
19851         * tree-sra.c (instantiate_element): Instantiate scalar replacements
19852         using the main variant of the element type.  Do not fiddle with
19853         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
19854
19855         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
19856         structs with volatile fields.
19857
19858 2009-05-10  Jan Hubicka  <jh@suse.cz>
19859
19860         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
19861         (estimate_move_cost): Assert that it does not get called for
19862         VOID_TYPE_P.
19863         (estimate_num_insns): Skip VOID types in argument handling.
19864         (optimize_inline_calls): Delete unreachable blocks and verify that
19865         callgraph is valid.
19866
19867 2009-05-10  Jan Hubicka  <jh@suse.cz>
19868
19869         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
19870         * cgraph.c (cgraph_mark_address_taken_node): New function.
19871         (dump_cgraph_node): Dump new flag.
19872         * cgraph.h (struct cgraph_node): Add address_taken.
19873         (cgraph_mark_address_taken_node): New function.
19874         * ipa.c (cgraph_postorder): Prioritize functions with address taken
19875         since new direct calls can be born.
19876
19877 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
19878
19879         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
19880         tok->val.node.node.
19881
19882 2009-05-10  Jan Hubicka  <jh@suse.cz>
19883
19884         PR middle-end/40084
19885         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
19886         argument; rewrite.
19887         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
19888         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
19889         * tree-inline.c (copy_bb): Set frequency correctly.
19890         (fold_marked_statements): Update call to
19891         cgraph_update_edges_for_call_stmt.
19892
19893 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
19894
19895         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
19896         identifiers in diagnostics.
19897         * config/arm/arm.c (arm_handle_fndecl_attribute,
19898         arm_handle_isr_attribute): Likewise.
19899         * config/avr/avr.c (avr_handle_progmem_attribute,
19900         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
19901         * config/bfin/bfin.c (handle_int_attribute,
19902         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
19903         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
19904         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
19905         Likewise.
19906         * config/darwin.c (darwin_handle_kext_attribute,
19907         darwin_handle_weak_import_attribute): Likewise.
19908         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
19909         h8300_handle_eightbit_data_attribute,
19910         h8300_handle_tiny_data_attribute): Likewise.
19911         * config/i386/i386.c (ix86_handle_cconv_attribute,
19912         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
19913         * config/i386/winnt.c (ix86_handle_shared_attribute,
19914         ix86_handle_selectany_attribute): Likewise.
19915         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
19916         * config/m32c/m32c.c (function_vector_handler): Likewise.
19917         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
19918         m68hc11_handle_fntype_attribute): Likewise.
19919         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
19920         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
19921         * config/mips/mips.c (mips_insert_attributes,
19922         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
19923         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
19924         rs6000_handle_struct_attribute): Likewise.
19925         * config/sh/sh.c (sh_insert_attributes,
19926         sh_handle_resbank_handler_attribute,
19927         sh_handle_interrupt_handler_attribute,
19928         sh2a_handle_function_vector_handler_attribute,
19929         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
19930         Likewise.
19931         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
19932         * config/spu/spu.c (spu_handle_fndecl_attribute,
19933         spu_handle_vector_attribute): Likewise.
19934         * config/stormy16/stormy16.c
19935         (xstormy16_handle_interrupt_attribute): Likewise.
19936         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
19937         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
19938
19939 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
19940
19941         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
19942         (pp_translate_identifiers): New.
19943         (pp_identifier): Only conditionally translate identifier to locale
19944         character set.
19945         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
19946         (pp_base_tree_identifier): Only conditionally translate identifier
19947         to locale character set.
19948         * c-pretty-print.c (M_): Define.
19949         (pp_c_type_specifier, pp_c_primary_expression): Mark English
19950         fragments for conditional translation with M_.
19951         * tree-pretty-print.c (maybe_init_pretty_print): Disable
19952         identifier translation.
19953
19954 2009-05-10  Richard Guenther  <rguenther@suse.de>
19955
19956         PR tree-optimization/40081
19957         * tree-sra.c (instantiate_element): Instantiate scalar replacements
19958         using the main variant of the element type.  Do not fiddle with
19959         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
19960
19961 2009-05-09  Jan Hubicka  <jh@suse.cz>
19962
19963         PR middle-end/40080
19964         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
19965         indirect calls; verify cgraph afterwards.
19966
19967 2009-05-09  Jan Hubicka  <jh@suse.cz>
19968
19969         PR bootstrap/40082
19970         * ipa.c (update_inlined_to_pointer): New function.
19971         (cgraph_remove_unreachable_nodes): Use it.
19972
19973 2009-05-09  Jan Hubicka  <jh@suse.cz>
19974
19975         * tree-eh.c (struct leh_state): Remove prev_try.
19976         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
19977         not track prev_try.
19978         * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
19979         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
19980         remove_eh_handler_and_replace, foreach_reachable_handler,
19981         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
19982         * except.h (struct eh_region): Remove eh_region_u_cleanup.
19983         (gen_eh_region_cleanup): Update prototype.
19984
19985 2009-05-09  Jan Hubicka  <jh@suse.cz>
19986
19987         PR middle-end/40043
19988         * except.c (copy_eh_region): Always set prev_try.
19989         (redirect_eh_edge_to_label): Find outer try.
19990         (foreach_reachable_handler): When looking for prev try
19991         handle case where previous try is not going to be taken.
19992
19993 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
19994
19995         PR tree-optimization/40049
19996         * tree-vect-stmts.c (vectorizable_operation): If the machine has
19997         only vector/vector shifts, convert the type of the constant to the
19998         appropriate type to avoid building incorrect trees, which
19999         eventually have problems with garbage collection.
20000
20001 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
20002
20003         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
20004         -1 for complex floating-point types if honoring signed zeros.
20005
20006 2009-05-08  Jan Hubicka  <jh@suse.cz>
20007
20008         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
20009         argument; handle correctly when profile is absent.
20010         (build_cgraph_edges): Update.
20011         (rebuild_cgraph_edges): Update.
20012         * cgraph.c: Do not include varray.h.
20013         (cgraph_set_call_stmt_including_clones): New function.
20014         (cgraph_create_edge_including_clones): Likewise
20015         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
20016         (cgraph_update_edges_for_call_stmt): Handle clones.
20017         (cgraph_remove_node): Handle clone tree.
20018         (cgraph_remove_node_and_inline_clones): New function.
20019         (dump_cgraph_node): Dump clone tree.
20020         (cgraph_clone_node): Handle clone tree.
20021         (clone_function_name): Bring here from tree-inline.c.
20022         (cgraph_create_virtual_clone): New function.
20023         * cgraph.h (ipa_replace_map): Move here from ipa.h.
20024         (cgraph_clone_info): New function.
20025         (strut cgraph_node): Add clone_info and new clone tree pointers.
20026         (cgraph_remove_node_and_inline_clones,
20027         cgraph_set_call_stmt_including_clones,
20028         cgraph_create_edge_including_clones,
20029         cgraph_create_virtual_clone): Declare.
20030         (cgraph_function_versioning): Use VEC argument.
20031         (compute_call_stmt_bb_frequency): Update prototype.
20032         (cgraph_materialize_all_clones): New function.
20033         * ipa-cp.c (ipcp_update_cloned_node): Remove.
20034         (ipcp_create_replace_map): Update to VECtors.
20035         (ipcp_update_callgraph): Use virtual clones.
20036         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
20037         (ipcp_update_profiling): Do not update local profiling.
20038         (ipcp_insert_stage): Use VECtors and virtual clones.
20039         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
20040         (clone_of_p): New function.
20041         (cgraph_preserve_function_body_p): Use clone tree.
20042         (cgraph_optimize): Materialize clones.
20043         (cgraph_function_versioning): Update for VECtors.
20044         (save_inline_function_body): Use clone tree.
20045         (cgraph_materialize_clone): New function.
20046         (cgraph_materialize_all_clones): Likewise.
20047         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
20048         * ipa.c: Include gimple.h.
20049         (cgraph_remove_unreachable_nodes): Use clone tree.
20050         * ipa-prop.c (ipa_note_param_call): Update call to
20051         compute_call_stmt_bb_frequencycall.
20052         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
20053         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
20054         (copy_bb): Handle updating of clone tree; add new edge when new call
20055         appears.
20056         (expand_call_inline): Be strict about every call having edge.
20057         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
20058         (delete_unreachable_blocks_update_callgraph): New function.
20059         (tree_function_versioning): Use VECtors; always remove unreachable
20060         blocks and fold conditionals.
20061         * tree-inline.h: Do not include varray.h.
20062         (tree_function_versioning): Remove.
20063         * Makefile.in (GTFILES): Remove tree-inline.c
20064         * passes.c (do_per_function): Do only functions having body.
20065         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
20066         tree.
20067
20068 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
20069             Andrew Morrow  <acm@google.com>
20070
20071         PR c/36892
20072         * c-common.c (c_common_attribute_table): Permit deprecated
20073         attribute to take an optional argument.
20074         (handle_deprecated_attribute): If the optional argument to
20075         __attribute__((deprecated)) is not a string ignore the attribute
20076         and emit a warning.
20077
20078         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
20079         * c-typeck.c (build_component_ref): Likewise.
20080         (build_external_ref): Likewise.
20081
20082         * toplev.c (warn_deprecated_use): Add an attribute argument.
20083         Emit the message associated with __attribute__((deprecated)).
20084
20085         * toplev.h (warn_deprecated_use): Updated.
20086
20087         * doc/extend.texi: Document new optional parameter to
20088         __attribute__((deprecated))
20089
20090 2009-05-08  Michael Eager <eager@eagercon.com>
20091
20092         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
20093         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
20094
20095 2009-05-08  Richard Guenther  <rguenther@suse.de>
20096
20097         PR tree-optimization/40062
20098         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
20099         Avoid exponential behavior.
20100
20101 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
20102
20103         PR rtl-optimization/33928
20104         PR 26854
20105         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
20106         process_uses, build_single_def_use_links): New.
20107         (update_df): Update use_def_ref.
20108         (forward_propagate_into): Use get_def_for_use instead of use-def
20109         chains.
20110         (fwprop_init): Call build_single_def_use_links and let it initialize
20111         dataflow.
20112         (fwprop_done): Free use_def_ref.
20113         (fwprop_addr): Eliminate duplicate call to df_set_flags.
20114         * df-problems.c (df_rd_simulate_artificial_defs_at_top,
20115         df_rd_simulate_one_insn): New.
20116         (df_rd_bb_local_compute_process_def): Update head comment.
20117         (df_chain_create_bb): Use the new RD simulation functions.
20118         * df.h (df_rd_simulate_artificial_defs_at_top,
20119         df_rd_simulate_one_insn): New.
20120         * opts.c (decode_options): Enable fwprop at -O1.
20121         * doc/invoke.texi (-fforward-propagate): Document this.
20122
20123 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
20124
20125         PR c/24581
20126         * c-typeck.c (build_binary_op): Handle arithmetic between one real
20127         and one complex operand specially.
20128         * tree-complex.c (some_nonzerop): Do not identify a real value as
20129         zero if flag_signed_zeros.
20130
20131 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
20132
20133         PR rtl-optimization/33928
20134         * loop-invariant.c (record_use): Fix && vs. || mishap.
20135
20136 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
20137
20138         PR rtl-optimization/33928
20139         * loop-invariant.c (struct use): Add addr_use_p.
20140         (struct def): Add n_addr_uses.
20141         (struct invariant): Add cheap_address.
20142         (create_new_invariant): Set cheap_address.
20143         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
20144         (record_uses): Pass df_ref to record_use.
20145         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
20146         used only as such.
20147
20148 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
20149
20150         * config/sh/sh.c: Do not include c-pragma.h.
20151
20152 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20153
20154         * config/spu/spu.c: Remove include of c-common.h.
20155
20156 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
20157
20158         PR c/39037
20159         * c-common.h (mark_valid_location_for_stdc_pragma,
20160         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
20161         clear_float_const_decimal64, float_const_decimal64_p): New.
20162         * c.opt (Wunsuffixed-float-constants): New.
20163         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
20164         unsuffixed float constant, handle new warning.
20165         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
20166         * c-decl.c (c_scope): New flag float_const_decimal64.
20167         (set_float_const_decimal64, clear_float_const_decimal64,
20168         float_const_decimal64_p): New.
20169         (push_scope): Set new flag.
20170         * c-parser.c (c_parser_translation_unit): Mark when it's valid
20171         to use STDC pragmas.
20172         (c_parser_external_declaration): Ditto.
20173         (c_parser_compound_statement_nostart): Ditto.
20174         * c-pragma.c (valid_location_for_stdc_pragma,
20175         mark_valid_location_for_stdc_pragma,
20176         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
20177         handle_pragma_float_const_decimal64): New.
20178         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
20179         * cp/semantics.c (valid_location_for_stdc_pragma_p,
20180         set_float_const_decimal64, clear_float_const_decimal64,
20181         float_const_decimal64_p): New dummy functions.
20182         * doc/extend.texi (Decimal Float): Remove statement that the
20183         pragma, and suffix for double constants, are not supported.
20184         * doc/invoke.texi (Warning Options): List new option.
20185         (-Wunsuffixed-float-constants): New.
20186
20187 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
20188
20189         * config/i386/i386.c: Do not include c-common.h.
20190
20191 2009-05-07  Mark Heffernan  <meheff@google.com>
20192
20193         * doc/invoke.texi (Debugging Options): Document change of debugging
20194         dump location.
20195         * opts.c (decode_options): Make dump_base_name relative to
20196         aux_base_name directory.
20197
20198 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
20199
20200         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
20201         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
20202
20203 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
20204
20205         * Makefile.in (install-plugin): Simplify a bit.
20206
20207 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
20208
20209         * Makefile.in (OBJS-common): Add regcprop.o.
20210         (regcprop.o): New.
20211         * timevar.def (TV_CPROP_REGISTERS): New.
20212         * regrename.c (regrename_optimize): Return 0.
20213         (rest_of_handle_regrename): Delete.
20214         (pass_rename_registers): Point to regrename_optimize.
20215         (struct value_data_entry, struct value_data,
20216         kill_value_one_regno, kill_value_regno, kill_value,
20217         set_value_regno, init_value_data, kill_clobbered_value,
20218         kill_set_value, kill_autoinc_value, copy_value,
20219         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
20220         replace_oldest_value_reg, replace_oldest_value_addr,
20221         replace_oldest_value_mem, copyprop_hardreg_forward_1,
20222         debug_value_data, validate_value_data): Move...
20223         * regcprop.c: ... here.
20224         (rest_of_handle_cprop): Delete.
20225         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
20226
20227 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
20228
20229         PR middle-end/40057
20230         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
20231         GEN_INT for 1 << bitnum.
20232         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
20233         build_int_cst_type.
20234
20235 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
20236
20237         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
20238         Remove wrong description of "nand" operation.
20239
20240 2009-05-06  Richard Guenther  <rguenther@suse.de>
20241             Adam Nemet  <anemet@caviumnetworks.com>
20242
20243         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
20244         comment.  Add that if LHS is not a gimple register, then RHS1 has
20245         to be a single object (GIMPLE_SINGLE_RHS).
20246
20247 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
20248
20249         * expr.c (get_def_for_expr): Move it up in the file.
20250         (store_field): When expanding a bit-field store, look at the
20251         defining gimple stmt for the masking conversion.
20252
20253 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
20254
20255         PR middle-end/39986
20256         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
20257         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
20258         32-bit memcpy into long.
20259
20260 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
20261
20262         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
20263         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
20264         new_reg_loc_descr.
20265         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
20266         instead of appending DW_OP_deref*.
20267
20268 2009-05-06  Michael Matz  <matz@suse.de>
20269
20270         PR middle-end/40021
20271         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
20272         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
20273
20274 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
20275
20276         * Makefile.in (install-plugin): Fix srcdir handling.
20277
20278 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
20279
20280         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
20281         when processing for not_regs_needed bitmap.
20282         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
20283         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while
20284         handling it for rhs.
20285
20286 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
20287
20288         * config/i386/i386.md (unnamed inc/dec peephole): Use
20289         optimize_insn_for_size_p instead of optimize_size.
20290         * config/i386/predicates.md (incdec_operand): Likewise.
20291         (aligned_operand): Likewise.
20292         * config/i386/sse.md (divv8sf3): Likewise.
20293         (sqrtv8sf2): Likewise.
20294
20295 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
20296
20297         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
20298
20299         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
20300
20301 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
20302
20303         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
20304         ssemodesuffixf2c with avxmodesuffixf2c.
20305
20306 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
20307
20308         PR c/40032
20309         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
20310
20311 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
20312
20313         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
20314         (struct tree_base): Adjust spacing for 8 bit boundaries.
20315         (struct tree_decl_common): Add decl_by_reference_flag bit.
20316         (DECL_BY_REFERENCE): Adjust.
20317         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
20318         print DECL_BY_REFERENCE bit.
20319         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
20320         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
20321         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
20322         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
20323         unconditionally.
20324
20325         PR middle-end/39666
20326         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
20327         range of the type, but default label is missing, add it with one
20328         of the existing labels instead of adding a new label for it.
20329
20330 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
20331
20332         * dwarf.h: Remove.
20333
20334 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
20335
20336         * Makefile.in (enable_plugin, plugin_includedir): New.
20337         (install): Depend on install-plugin.
20338         (PLUGIN_HEADERS): New.
20339         (install-plugin): New.
20340         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
20341
20342 2009-05-05  Richard Guenther  <rguenther@suse.de>
20343
20344         PR tree-optimization/40022
20345         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
20346         the only vuse.
20347         (phivn_valid_p): Fix tuplification error, simplify.
20348         (phiprop_insert_phi): Add dumps.
20349         (propagate_with_phi): Simplify.
20350
20351 2009-05-05  Richard Guenther  <rguenther@suse.de>
20352
20353         PR middle-end/40023
20354         * builtins.c (gimplify_va_arg_expr): Properly build the address.
20355
20356 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
20357
20358         * tree.h (strip_float_extensions): Remove duplicate declaration.
20359         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
20360         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
20361         block_ultimate_origin): Rearrange the declarations line to match the
20362         comment that indicates the .c file which the functions are defined.
20363         (dwarf2out_*, set_decl_rtl): Add comment.
20364         (get_base_address): Adjust comment.
20365         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
20366         declarations line and add comment.
20367         (is_builtin_name): Add blank after function name, for clarity.
20368
20369 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
20370
20371         * attribs.c (decl_attributes): Use %qE for identifiers in
20372         diagnostics.
20373         * cgraphunit.c (verify_cgraph_node): Translate function names to
20374         locale character set in diagnostics.
20375         * coverage.c (get_coverage_counts): Use %qE for identifiers in
20376         diagnostics.
20377         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
20378         Document that functions are named in UTF-8.
20379         * expr.c (expand_expr_real_1): Translate function names to locale
20380         character set in diagnostics.
20381         * gimplify.c (omp_notice_variable, omp_is_private,
20382         gimplify_scan_omp_clauses): Use %qE for identifiers in
20383         diagnostics.
20384         * langhooks.c (lhd_print_error_function): Translate function names
20385         to locale character set.
20386         * langhooks.h (decl_printable_name): Document that return value is
20387         in internal character set.
20388         * stmt.c: Include pretty-print.h
20389         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
20390         diagnostics.
20391         (resolve_operand_name_1): Translate named operand name to locale
20392         character set.
20393         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
20394         diagnostics.
20395         * toplev.c (announce_function): Translate function names to locale
20396         character set.
20397         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
20398         (default_tree_printer): Use pp_identifier or translate identifiers
20399         to locale character set.  Mark "<anonymous>" for translation.
20400         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
20401         for identifiers in diagnostics.
20402         * tree.c (handle_dll_attribute): Use %qE for identifiers in
20403         diagnostics.
20404         * varasm.c (output_constructor): Use %qE for identifiers in
20405         diagnostics.
20406
20407 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
20408
20409         * configure.ac: use ` ` instead of $()
20410         * configure: Regenerate.
20411
20412 2009-05-05  Ben Elliston  <bje@au.ibm.com>
20413
20414         * config/pa/linux-atomic.c: Eliminate conditional include of
20415         errno.h on non-LP64 systems to simplify build requirements.
20416
20417 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
20418
20419         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
20420         diagnostics.
20421         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
20422         and pass value to identifier_to_locale.
20423         (warn_variable_length_array): Make name a tree.
20424         (grokdeclarator): Separate diagnostic texts for named and unnamed
20425         declarators.  Use %qE for named declarators.
20426         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
20427         diagnostics.
20428         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
20429         identifiers in diagnostics.
20430         * c-typeck.c (push_member_name, start_init): Pass identifiers to
20431         identifier_to_locale.  Mark "anonymous" strings for translation.
20432
20433 2009-05-04  Michael Eager <eager@eagercon.com>
20434
20435         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
20436         address for DImode/DFmode only if double-precision FP regs.
20437
20438 2009-05-04  Michael Eager <eager@eagercon.com>
20439
20440         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
20441         TARGET_SINGLE_FLOAT check.
20442
20443 2009-05-04  Michael Eager <eager@eagercon.com>
20444
20445         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
20446
20447 2009-05-04  Michael Eager <eager@eagercon.com>
20448
20449         * gcc/config.gcc (powerpc-xilinx-eabi*): Add tm t-xilinx
20450         * config/rs6000/t-xilinx: New
20451
20452 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
20453
20454         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
20455         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
20456         * gcc/explow.c (memory_address): Use target hook.
20457         * gcc/targhooks.c (default_legitimize_address): New.
20458         * gcc/targhooks.h (default_legitimize_address): New.
20459         * gcc/target.h (legitimize_address): New.
20460         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
20461         (TARGET_INITIALIZER): Include it.
20462         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
20463
20464         * config/bfin/bfin-protos.h (legitimize_address): Remove.
20465         * config/bfin/bfin.c (legitimize_address): Remove.
20466         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
20467         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
20468         Remove.
20469         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
20470         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
20471
20472         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
20473         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
20474         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
20475         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
20476         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
20477         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
20478         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
20479         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
20480         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
20481         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
20482         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
20483         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
20484         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
20485         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
20486         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
20487         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
20488         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
20489         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
20490         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
20491         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
20492         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
20493         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
20494         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
20495
20496         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
20497         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
20498         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
20499         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
20500         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
20501         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
20502         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
20503         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
20504         (thumb_legitimize_address): Delete.
20505         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
20506         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
20507         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
20508         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
20509         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
20510         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
20511         Delete.
20512         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
20513         Delete.
20514
20515         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
20516         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
20517         * config/m32r/m32r.c (m32r_legitimize_address): New.
20518         * config/m68k/m68k.c (m68k_legitimize_address): New.
20519         * config/score/score.c (score_legitimize_address): Standardize.
20520         * config/score/score3.c (score3_legitimize_address): Standardize.
20521         * config/score/score3.h (score3_legitimize_address): Adjust.
20522         * config/score/score7.c (score7_legitimize_address): Standardize.
20523         * config/score/score7.h (score7_legitimize_address): Adjust.
20524         * config/sh/sh.c (sh_legitimize_address): New.
20525         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
20526
20527         * gcc/config/s390/s390.c (legitimize_address): Rename to...
20528         (s390_legitimize_address): ... this.
20529         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
20530         (sparc_legitimize_address): ... this.
20531         * gcc/config/i386/i386.c (legitimize_address): Rename to...
20532         (ix86_legitimize_address): ... this.
20533         * gcc/config/avr/avr.c (legitimize_address): Rename to...
20534         (avr_legitimize_address): ... this.
20535         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
20536         (mn10300_legitimize_address): ... this.
20537         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
20538         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
20539         (alpha_expand_mov): Adjust call.
20540
20541         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
20542         * config/spu/spu.c (spu_legitimize_address): Likewise.
20543         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
20544         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
20545
20546 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
20547
20548         * intl.c (locale_encoding, locale_utf8): New.
20549         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
20550         * intl.h (locale_encoding, locale_utf8): Declare.
20551         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
20552         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
20553         New.
20554         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
20555         argument.
20556         (pp_tree_identifier): Define to call pp_base_tree_identifier.
20557         (pp_base_tree_identifier): Declare as function.
20558         (identifier_to_locale): Declare.
20559         * Makefile.in (pretty-print.o): Update dependencies.
20560         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
20561
20562 2009-05-04  Richard Guenther  <rguenther@suse.de>
20563
20564         PR middle-end/40015
20565         * builtins.c (fold_builtin_memory_op): Do not decay to element
20566         type if the size matches the whole array.
20567
20568 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
20569
20570         * expmed.c (synth_mult): When trying out a shift, pass the result
20571         of a signed shift.
20572
20573 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
20574
20575         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
20576         (shiftsub1_cost): New.
20577         (init_expmed): Compute shiftsub1_cost.
20578         (synth_mult): Optimize multiplications by constants of the form
20579         -(2^^m-1) for some constant positive integer m.
20580
20581 2009-05-03  Richard Guenther  <rguenther@suse.de>
20582
20583         PR c/39983
20584         * c-typeck.c (array_to_pointer_conversion): Do not built
20585         ADDR_EXPRs of arrays of pointer-to-element type.
20586         * c-gimplify.c (c_gimplify_expr): Revert change fixing
20587         up wrong ADDR_EXPRs after-the-fact.
20588         * c-common.c (strict_aliasing_warning): Strip pointer
20589         conversions for obtaining the original type.
20590         * builtins.c (fold_builtin_memset): Handle array types.
20591         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
20592         and array types
20593
20594 2009-05-03  Richard Guenther  <rguenther@suse.de>
20595
20596         PR middle-end/23329
20597         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
20598         Do not lose casts from array types with unknown extent to array
20599         types with known extent.
20600         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
20601         alias set compatibility.
20602
20603 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20604
20605         * flags.h (extra_warnings): Delete.
20606         * toplev.c (process_options): Handle Wuninitialized here.
20607         * opts.c (extra_warnings): Delete.
20608         (set_Wextra): Delete.
20609         (common_handle_option): -Wextra can be handled automatically.
20610         * c-opts.c (c_common_handle_option): Delete obsolete code.
20611         (c_common_post_options): Simplify comment.
20612         * common.opt (W): Add Var.
20613         (Wextra): Add Var.
20614         (Wuninitialized): Initialize to -1.
20615
20616 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
20617             Richard Guenther  <rguenther@suse.de>
20618
20619         * expr.c (get_def_for_expr): New function.
20620         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
20621         SSA rather than trees.
20622         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
20623         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
20624
20625 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
20626
20627         * c-common.c (reswords): Add _Imaginary.
20628         * c-common.c (enum rid): Add RID_IMAGINARY.
20629
20630 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
20631
20632         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
20633         Patch by Richard Guenther.
20634
20635 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
20636
20637         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
20638         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
20639         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
20640         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
20641         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
20642         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
20643         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
20644         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
20645         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
20646         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
20647         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
20648         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
20649         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
20650         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
20651         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
20652         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
20653         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
20654         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
20655
20656 2009-05-02  Richard Guenther  <rguenther@suse.de>
20657
20658         PR tree-optimization/39940
20659         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
20660         doing so.
20661
20662 2009-05-02  Richard Guenther  <rguenther@suse.de>
20663
20664         PR middle-end/40001
20665         * tree-ssa.c (execute_update_addresses_taken): Properly check
20666         if we can mark a variable DECL_GIMPLE_REG_P.
20667         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
20668         back to the end of the function.
20669         (is_gimple_reg_type): Remove complex type special casing.
20670         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
20671         if not optimizing.
20672
20673 2009-05-02  Ben Elliston  <bje@au.ibm.com>
20674
20675         * doc/collect2.texi (Collect2): Document search path behaviour
20676         when configured with --with-ld.
20677
20678 2009-05-02  Jan Hubicka  <jh@suse.cz>
20679
20680         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
20681         parameter; update callers.
20682         (coalesce_cost_edge): EH edges are costier because they needs
20683         splitting even if not critical and even more costier when there are
20684         multiple EH predecestors.
20685
20686 2009-05-02  Jan Hubicka  <jh@suse.cz>
20687
20688         * except.c (remove_eh_handler_and_replace): Handle updating after
20689         removing TRY blocks.
20690
20691 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
20692
20693         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
20694
20695 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
20696
20697         * varasm.c: Do not include c-pragma.h.
20698         * attribs.c: Do not incude c-common.h.
20699
20700 2009-05-01  Michael Matz  <matz@suse.de>
20701
20702         * calls.c (initialize_argument_information): Handle SSA names like
20703         decls with a non MEM_P DECL_RTL.
20704
20705 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
20706
20707         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
20708         * ipa-utils.c: Likewise.
20709         * ipa-type-escape.c: Likewise.
20710         * cgraphunit.c Do not include c-common.h.
20711         * ipa-pure-const.c: Likewise.
20712         * tree-if-conv.c: Likewise.
20713         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
20714         * ipa-struct-reorg.c: Likewise.
20715         * tree-nomudflap.c: Likewise.
20716         * tree-ssa-structalias.c: Likewise.
20717
20718 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
20719
20720         * store-motion.c: Many cleanups to make this pass a first-class
20721         citizen instead of an appendix to gcse load motion.  Add TODO list
20722         to make this pass faster/cleaner/better.
20723
20724         (struct ls_expr): Post gcse.c-split cleanups.
20725         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
20726         "stores" field to "avail_stores".
20727         (pre_ldst_mems): Rename to store_motion_mems.
20728         (pre_ldst_table): Rename to store_motion_mems_table.
20729         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
20730         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
20731         (ldst_entry): Rename to st_expr_entry, update users.
20732         (free_ldst_entry): Rename to free_st_expr_entry, update users.
20733         (free_ldst_mems): Rename to free_store_motion_mems, update users.
20734         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
20735         update caller.
20736         (first_ls_expr): Rename to first_st_expr, update users.
20737         (next_ls_expr): Rename to next_st_expr, update users.
20738         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
20739         fields properly for store motion instead of names inherited from load
20740         motion in gcse.c.
20741         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
20742         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
20743         are done with it.
20744
20745         (ae_kill): Rename to st_kill, update users.
20746         (ae_gen): Rename to st_avloc, update users.
20747         (transp): Rename to st_transp, update users.
20748         (pre_insert_map): Rename to st_insert_map, update users.
20749         (pre_delete_map): Rename to st_delete_map, update users.
20750         (insert_store, build_store_vectors, free_store_memory,
20751         one_store_motion_pass): Update for abovementioned changes.
20752
20753         (gcse_subst_count, gcse_create_count): Remove.
20754         (one_store_motion_pass): New statistics counters "n_stores_deleted"
20755         and "n_stores_created", local variables.
20756
20757         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
20758         use for_each_rtx.
20759
20760         (regvec, compute_store_table_current_insn): Remove.
20761         (reg_set_info, reg_clear_last_set): Remove.
20762         (compute_store_table): Use DF caches instead of local dataflow
20763         solvers.
20764
20765 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
20766
20767         * c-objc-common.c (c_tree_printer): Print identifiers with
20768         pp_identifier, not pp_string.  Mark "({anonymous})" for
20769         translation.
20770         * c-pretty-print.c (pp_c_ws_string): New.
20771         (pp_c_cv_qualifier, pp_c_type_specifier,
20772         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
20773         pp_c_storage_class_specifier, pp_c_function_specifier,
20774         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
20775         pp_c_primary_expression, pp_c_postfix_expression,
20776         pp_c_unary_expression, pp_c_shift_expression,
20777         pp_c_relational_expression, pp_c_equality_expression,
20778         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
20779         use pp_string and pp_c_ws_string in place of pp_identifier and
20780         pp_c_identifier for non-identifiers.  Mark English strings for
20781         translation.
20782         * c-pretty-print.h (pp_c_ws_string): Declare.
20783
20784 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
20785             Roland McGrath <roland@redhat.com>
20786
20787         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
20788         (ENABLE_LD_BUILDID): New configuration option.
20789         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
20790         (LINK_BUILDID_SPEC): New macro.
20791         (init_spec): If defined, prepend it between LINK_EH_SPEC and
20792         link_spec.
20793         * doc/install.texi: Document --enable-linker-build-id option.
20794         * configure: Rebuild.
20795         * config.in: Rebuild.
20796
20797 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
20798
20799         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
20800         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
20801         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
20802         MIPS_GP_SAVE_AREA_SIZE.
20803         * config/mips/mips.c (struct mips_frame_info): Update comment
20804         before arg_pointer_offset and hard_frame_pointer_offset.
20805         (mips_compute_frame_info): Update diagram before function: to
20806         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
20807         indicate the position of frame_pointer_rtx with -fstack-protector and
20808         to show args_size.  Don't allocate cprestore area for leaf functions
20809         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
20810         cprestore_size.
20811         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
20812
20813 2009-04-30  Michael Matz  <matz@suse.de>
20814
20815         PR tree-optimization/39955
20816         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
20817
20818 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
20819
20820         * ira.c (setup_cover_and_important_classes):  Use safe macro
20821         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
20822         directly.
20823         * genpreds.c (write_tm_preds_h):  Output suitable definition of
20824         REG_CLASS_FOR_CONSTRAINT.
20825
20826 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
20827
20828         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
20829         instead of an int.
20830         * bitmap.c (bitmap_descriptor): Likewise.
20831         * ggc-common.c (loc_descriptor): Likewise.
20832         * varray.c (varray_descriptor): Likewise.
20833         * vec.c (vec_descriptor): Likewise.
20834
20835 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
20836
20837         * Makefile.in (dce.o): Add $(EXCEPT_H).
20838         * dce.c: Include except.h and delete redundant vector definitions.
20839         (deletable_insn_p): Return false for non-call insns that can throw
20840         if DF is running.
20841
20842 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
20843
20844         * gcse.c (ae_gen): Remove.
20845         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
20846         and make non-static function to make it available in store-motion.c.
20847         Update call sites with search-and-replace.
20848         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
20849         extract_mentioned_regs, extract_mentioned_regs_helper,
20850         find_moveable_store, compute_store_table, load_kills_store, find_loads,
20851         store_killed_in_insn, store_killed_after, store_killed_before,
20852         build_store_vectors, insert_insn_start_basic_block, insert-store,
20853         remove_reachable_equiv_notes, replace_store_insn, delete_store,
20854         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
20855         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
20856         * store-motion.c: ...new file.  Also copy data structures from gcse.c
20857         and clean up to remove parts not used by store motion.
20858         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
20859         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
20860
20861 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20862
20863         PR target/38571
20864         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
20865         when optimizing for size.
20866
20867 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
20868
20869         * gcse.c (gcse_constant_p): Fix typo in last change.
20870
20871 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
20872
20873         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
20874
20875 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
20876
20877         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
20878
20879 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
20880
20881         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
20882         CONST_HIGH_PART result.
20883
20884 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
20885
20886         * config/avr/avr.c (initial_elimination_offset): Rename to
20887         avr_initial_elimination_offset.
20888         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
20889         change return type to bool.
20890         (avr_can_eliminate): New function.
20891         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
20892         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
20893         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
20894         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
20895         avr_initial_elimination_offset.
20896         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
20897         (avr_initial_elimination_offset): Define.
20898
20899 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
20900             Steven Bosscher  <steven@gcc.gnu.org>
20901
20902         PR rtl-optimization/39938
20903         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
20904         * cfgrtl.c: Include insn-attr.h.
20905         (rest_of_pass_free_cfg): New function.
20906         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
20907         * resource.c (init_resource_info): Remove call to df_analyze.
20908
20909 2009-04-29  Richard Guenther  <rguenther@suse.de>
20910
20911         PR target/39943
20912         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
20913         allow conversion to signed integers.
20914
20915 2009-04-29  Richard Guenther  <rguenther@suse.de>
20916
20917         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
20918         shifts of floating point vectors if the shift amount is
20919         a constant multiple of the element size.
20920
20921 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
20922             Michael Matz  <matz@suse.de>
20923
20924         PR middle-end/39927
20925         PR bootstrap/39929
20926         * tree-outof-ssa.c (emit_partition_copy): New function.
20927         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
20928         insert_part_to_rtx_on_edge): Perform the partition base var
20929         copy using emit_partition_copy.
20930         (insert_value_copy_on_edge): Convert constants to the right mode.
20931         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
20932         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
20933
20934 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
20935
20936         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
20937         scan backwards to try to find a constant to initialize it.
20938
20939         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
20940         insn before the loop_end instruction, don't look past labels.
20941
20942 2009-04-29  Richard Guenther  <rguenther@suse.de>
20943
20944         PR middle-end/39937
20945         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
20946         loose type conversions.
20947         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
20948         stmts only if there are no uses of its definition.
20949
20950 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
20951
20952         * config/bfin/bfin.h (splitting_loops): Declare.
20953         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
20954         Reorder bit definitions to be ascending.
20955         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
20956         * config/bfin/bfin.c (splitting_loops): New variable.
20957         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
20958         (struct loop_info): Remove members INIT and LOOP_INIT.
20959         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
20960         the LSETUP sequence.  Allow LC to be loaded from any register, but
20961         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
20962         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
20963         set to 1.
20964         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
20965         of reload_completed.
20966
20967         From Jie Zhang:
20968         * config/bfin/bfin.md (movsi_insn): Refine constraints.
20969
20970 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
20971
20972         * Makefile.in (PLUGIN_VERSION_H): New.
20973         (OBJS-common): Remove plugin-version.o.
20974         (plugin.o): Depend on (PLUGIN_VERSION_H).
20975         (plugin-version.o): Remove.
20976         * configure: Regenerate
20977         * configure.ac: Create plugin-version.h.
20978         * gcc-plugin.h (plugin_gcc_version): Remove.
20979         (plugin_default_version_check): Change signature.
20980         * plugin-version.c: Remove.
20981         * plugin.c: Include plugin-version.h.
20982         (str_plugin_gcc_version_name): Remove.
20983         (try_init_one_plugin): Pass gcc version to plugin_init.
20984         (plugin_default_version_check): Both gcc and plugin versions are now
20985         arguments.
20986
20987 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
20988
20989         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
20990         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
20991         Remove special case testing for last insn of inner loops. Don't fail
20992         if the loop ends with a jump, emit an extra nop instead.
20993
20994         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
20995         DREGS rather than comparing directly.  Remove code that tries to
20996         account for latencies.
20997
20998 2009-04-29  Richard Guenther  <rguenther@suse.de>
20999
21000         PR tree-optimization/39941
21001         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
21002         eliminating an indirect call.
21003
21004 2009-04-29  Richard Guenther  <rguenther@suse.de>
21005
21006         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
21007         parameter.  Allow invariants as base if !require_lvalue.
21008         (verify_gimple_assign_single): Adjust.
21009
21010 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
21011
21012         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
21013         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
21014         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
21015         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
21016         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
21017         a VEC_SELECT.
21018         * config/bfin/bfin.c (bfin_expand_builtin,
21019         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
21020
21021 2009-04-28  Richard Guenther  <rguenther@suse.de>
21022
21023         * tree-vect-loop.c (get_initial_def_for_induction): Use
21024         correct types for pointer increment.
21025
21026 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21027
21028         * toplev.c (print_version): Update GMP version string calculation.
21029
21030 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
21031
21032         PR rtl-optimization/39938
21033         * resource.c (init_resource_info): Add call to df_analyze.
21034
21035 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
21036
21037         * config/alpha/alpha.md (usegp): Cast the result of
21038         alpha_find_lo_sum_using_gp to enum attr_usegp.
21039         * config/alpha/alpha.c (override_options): Remove end-of-structure
21040         marker element from cpu_table.  Use array size of cpu_table to handle
21041         -mcpu and -mtune options.
21042         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
21043
21044 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
21045
21046         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
21047         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
21048         tune_32 and tune_64.
21049         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
21050         support on PowerPC.
21051         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
21052         * config/rs6000/option-defaults.h: ... here.  New file.
21053         (OPT_64, OPT_32): Define.
21054         (MASK_64BIT): Define to 0 if not already defined.
21055         (OPT_ARCH64, OPT_ARCH32): Define.
21056         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
21057         and tune_64.
21058
21059 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21060
21061         * config/arm/arm.c (arm_override_options): Emit error on using
21062         fpa with AAPCS.
21063
21064 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
21065
21066         PR rtl-optimization/39914
21067         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
21068         registers for allocnos created from user-defined variables only
21069         when not optimizing.
21070
21071 2009-04-28  Richard Guenther  <rguenther@suse.de>
21072
21073         PR middle-end/39937
21074         * fold-const.c (fold_binary): Use distribute_real_division only
21075         on float types.
21076
21077 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
21078
21079         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
21080         add hpux-stdint.h to tm_file.
21081         (hppa[12]*-*-hpux11*): Ditto.
21082         (ia64*-*-hpux*): Ditto.
21083         * config/hpux-stdint.h: New.
21084         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
21085         __STDC_EXT__ for all compiles.
21086         * config/pa/pa-hpux.h: Ditto.
21087         * config/pa/pa-hpux10.h: Ditto.
21088         * config/pa/pa-hpux11.h: Ditto.
21089
21090 2009-04-28  Catherine Moore  <clm@codesourcery.com>
21091
21092         * debug.h (set_name): Add comment.
21093
21094 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
21095
21096         PR target/39929
21097         * config/darwin.c (machopic_gen_offset): Check
21098         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
21099         * config/arm/arm.c (require_pic_register): Likewise.
21100
21101 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
21102
21103         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
21104         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
21105         m32c_promote_prototypes): Delete.
21106
21107 2009-04-28  Michael Matz  <matz@suse.de>
21108
21109         PR middle-end/39922
21110         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
21111         constants.
21112
21113 2009-04-28  Richard Guenther  <rguenther@suse.de>
21114
21115         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
21116
21117 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21118
21119         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
21120         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
21121         * config/arm/arm-tune.md: Regenerate.
21122
21123 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
21124
21125         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
21126         block if there are complex incoming edges.
21127         (sel_merge_blocks): Remove useless assert.
21128         (sel_redirect_edge_and_branch): Check that edge was redirected.
21129         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
21130         (sel_find_rgns): Delete declaration.
21131         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
21132         the region when it is not a preheader.
21133
21134 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
21135
21136         PR c/39323
21137         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
21138
21139 2009-04-28  Richard Guenther  <rguenther@suse.de>
21140
21141         * tree.h (SSA_NAME_VALUE): Remove.
21142         (struct tree_ssa_name): Remove value_handle member.
21143         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
21144         array for jump threading.
21145         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
21146         SSA_NAME_VALUEs.
21147         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
21148         * tree-flow.h (threadedge_initialize_values): Declare.
21149         (threadedge_finalize_values): Likewise.
21150         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
21151         (SSA_NAME_VALUE): Define.
21152         (threadedge_initialize_values): New function.
21153         (threadedge_finalize_values): Likewise.
21154         * tree-ssa-dom.c (ssa_name_values): New global variable.
21155         (SSA_NAME_VALUE): Define.
21156         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
21157
21158 2009-04-28  Ira Rosen  <irar@il.ibm.com>
21159
21160         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
21161         Use REPORT_VECTORIZED_LOCATIONS instead
21162         REPORT_VECTORIZED_LOOPS.
21163         * tree-vectorizer.c (vect_verbosity_level): Make static.
21164         (vect_loop_location): Rename to vect_location.
21165         (vect_set_verbosity_level): Update comment.
21166         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
21167         and vect_location.
21168         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
21169         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
21170         instead REPORT_UNVECTORIZED_LOOPS.
21171         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
21172         and vect_loop_def to vect_external_def and vect_internal_def.
21173         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
21174         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
21175         REPORT_UNVECTORIZED_LOCATIONS.
21176         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
21177         and vect_used_in_loop and to vect_unused_in_scope and
21178         vect_used_in_scope.
21179         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
21180         (vect_verbosity_level): Remove declaration.
21181         (vect_analyze_operations): Likewise.
21182         (vect_analyze_stmt): Declare.
21183         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
21184         REPORT_UNVECTORIZED_LOCATIONS.
21185         (vect_get_loop_niters): Fix indentation.
21186         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
21187         (vect_analyze_loop_operations): New function.
21188         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
21189         vect_analyze_operations.
21190         (vect_is_simple_reduction): Use new names.
21191         (vectorizable_live_operation, vect_transform_loop): Likewise.
21192         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
21193         to specify whether the data references can be a part of interleaving
21194         chain.
21195         (vect_analyze_data_ref_dependence): Use new names.
21196         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
21197         (vect_create_addr_base_for_vector_ref): Remove redundant code.
21198         * tree-vect-patterns.c (widened_name_p): Use new names.
21199         (vect_recog_dot_prod_pattern): Likewise.
21200         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
21201         (process_use, vect_mark_stmts_to_be_vectorized,
21202         vect_model_simple_cost, vect_model_store_cost,
21203         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
21204         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
21205         vectorizable_operation, vectorizable_type_demotion,
21206         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
21207         vectorizable_condition): Likewise.
21208         (vect_analyze_operations): Split into vect_analyze_loop_operations
21209         and ...
21210         (vect_analyze_stmt): ... new function.
21211         (new_stmt_vec_info): Use new names.
21212         (vect_is_simple_use): Use new names and fix comment.
21213         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
21214         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
21215
21216 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
21217
21218         PR target/39911
21219         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
21220         and integer modes for x87 operands.  Do not ICE for unsupported size,
21221         generate error instead.  Generate error for unsupported operand types.
21222         ['z']: Do not handle HImode memory operands specially.  Warning
21223         for floating-point operands.  Fallthru to 'Z' for unsupported operand
21224         types.  Do not ICE for unsupported size, generate error instead.
21225         (output_387_binary_op): Use %Z to output operands.
21226         (output_fp_compare): Ditto.
21227         (output_387_reg_move): Ditto.
21228
21229 2009-04-28  Ben Elliston  <bje@au.ibm.com>
21230
21231         PR c++/35652
21232         Revert:
21233
21234         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21235
21236         * builtins.c (c_strlen): Do not warn here.
21237         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
21238         * c-common.c (pointer_int_sum): Take an explicit location.
21239         Warn about offsets out of bounds.
21240         * c-common.h (pointer_int_sum): Adjust declaration.
21241
21242 2009-04-27  Ian Lance Taylor  <iant@google.com>
21243
21244         * collect2.c (is_ctor_dtor): Change type of ret field in struct
21245         names to symkind.
21246         * dce.c (run_fast_df_dce): Change type of old_flags to int.
21247         * df-core.c (df_set_flags): Change return type to int.  Change
21248         type of old_flags to int.
21249         (df_clear_flags): Likewise.
21250         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
21251         (df_get_conditional_uses): Likewise.
21252         * df.h (df_set_flags, df_clear_flags): Update declarations.
21253         * dwarf2out.c (struct indirect_string_node): Change type of form
21254         field to enum dwarf_form.
21255         (AT_string_form): Change return type to enum dwarf_form.
21256         * fixed-value.c (fixed_compare): Add cast to enum type.
21257         * fwprop.c (update_df): Change 0 to VOIDmode.
21258         * gensupport.c: Change 0 to UNKNOWN.
21259         * gimple.h (gimple_cond_code): Add cast to enum type.
21260         * haifa-sched.c (reemit_notes): Add cast to enum type.
21261         * hooks.c (hook_int_void_no_regs): Remove function.
21262         * hooks.h (hook_int_void_no_regs): Remove declaration.
21263         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
21264         * predict.c (combine_predictions_for_insn): Add casts to enum type.
21265         * real.c (real_arithmetic): Add cast to enum type.
21266         (real_compare): Likewise.
21267         * target.h (struct gcc_target): Change return type of
21268         branch_target_register_class to enum reg_class.
21269         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
21270         default_branch_target_register_class.
21271         * targhooks.c (default_branch_target_register_class): New function.
21272         * targhooks.h (default_branch_target_register_class): Declare.
21273         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
21274         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
21275         cast to int.
21276         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
21277         ERROR_MARK.
21278         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
21279         vect_uninitialized_def.  Change 0 to ERROR_MARK.
21280         * tree-vect-stmts.c (supportable_widening_operation): Don't
21281         initialize icode1 and icode2.
21282         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
21283         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
21284         and to STD_C89.
21285         (cmn_err_flag_specs): Change 0 to STD_C89.
21286         (cmn_err_char_table): Likewise.
21287         * config/arm/arm.c (get_arm_condition_code): Change type of code
21288         to enum arm_cond_code.
21289         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
21290         (IWMMXT_BUILTIN2): Likewise.
21291         (neon_builtin_type_bits): Don't define typedef.
21292         (neon_builtin_datum): Change type of bits field to int.
21293         (arm_expand_neon_args): Add cast to enum type.
21294         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
21295         TLS_MODEL_NONE.
21296         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
21297         casts to enum type.
21298         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
21299         MIPS_FP_COND_f.
21300         * config/mips/mips.md (jal_macro): Return enum constant.
21301         (single_insn): Likewise.
21302         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
21303         CODE_FOR_nothing.
21304         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21305         casts to enum type.
21306         * config/s390/s390.c (s390_tune_flags): Change type to int.
21307         (s390_arch_flags): Likewise.
21308         (s390_handle_arch_option): Change flags field of struct pta to int.
21309         * config/s390/s390.h (s390_tune_flags): Update declaration.
21310         (s390_arch_flags): Likewise.
21311         * config/sh/sh.c (prepare_move_operands): Compare
21312         tls_symbolic_operand result with enum constant.
21313         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
21314         (sh_expand_prologue): Add cast to enum type.
21315         (sh_expand_epilogue): Likewise.
21316         (tls_symbolic_operand): Change return type to enum tls_model.
21317         (fpscr_set_from_mem): Add cast to enum type.
21318         (legitimize_pic_address): Compare tls_symbolic_operand result with
21319         enum constant.
21320         (sh_target_reg_class): Change return type to enum reg_class.
21321         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
21322         PROCESSOR_xxx.
21323         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
21324         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
21325         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
21326         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
21327         (delayed_branch, tls_call_delay): Likewise.
21328         (eligible_for_sibcall_delay): Likewise.
21329         (eligible_for_return_delay): Likewise.
21330         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
21331         (spu_expand_builtin_1): Likewise.
21332
21333         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
21334         for all types of conversions.
21335         (output_init_element): Issue -Wc++-compat warning if needed when
21336         initializing a bitfield with enum type.
21337         * c-parser.c (c_parser_expression): Set original_type to
21338         original_type of right hand operand of comma operator.
21339
21340 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21341
21342         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
21343         grammar nits.
21344         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
21345         * doc/cpp.texi (Standard Predefined Macros)
21346         (Implementation-defined behavior): Likewise.
21347         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
21348         * doc/gimple.texi (GIMPLE Exception Handling)
21349         (@code{GIMPLE_ASSIGN}): Likewise.
21350         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
21351         * doc/invoke.texi (Warning Options, Optimize Options)
21352         (AVR Options, Darwin Options): Likewise.
21353         (Optimize Options): Reformulate -fwhole-program description.
21354         * doc/loop.texi (Lambda): Likewise.
21355         * doc/md.texi (Output Template, Define Constraints)
21356         (Standard Names, Insn Splitting): Likewise.
21357         * doc/options.texi (Option properties): Likewise.
21358         * doc/passes.texi (Tree-SSA passes): Likewise.
21359         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
21360         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
21361         (File Names and DBX): Likewise.
21362         * doc/trouble.texi (Incompatibilities): Likewise.
21363
21364 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
21365
21366         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
21367         instruction is correct.
21368
21369 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
21370
21371         Allow non-constant arguments to conversion intrinsics.
21372         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
21373         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
21374         * spu.c (print_operand): Handle 'v' and 'w'.
21375         (exp2_immediate_p, spu_gen_exp2): Define.
21376         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
21377         spu_convtf_1): Update parameter descriptions.
21378         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
21379         * constraints.md ('v', 'w'): New.
21380         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
21381         Remove.
21382         (i2f, I2F): New define_mode_attr.
21383         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
21384         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
21385         fixuns_truncv4sfv4si2):  Update to use mode attribute.
21386         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
21387         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
21388         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
21389         patterns for combine.
21390
21391 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
21392
21393         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
21394         (cprop, hoist, pre, store_motion): New debug counters.
21395         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
21396         is not an RTL pass anymore.
21397         (pass_profiling): Remove extern decl for pass removed in 2005.
21398         (pass_gcse, pass_jump_bypass): Remove.
21399         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
21400         to 0 for clean state.
21401         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
21402         * cse.c (gate_handle_cse_after_global_opts,
21403         rest_of_handle_cse_after_global_opts): New functions.
21404         (pass_cse_after_global_opts): New pass, does local CSE.
21405         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
21406         (TV_CPROP): New timevar.
21407         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
21408         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
21409         (gcse_main, recompute_all_luids): Remove.
21410         (compute_hash_table_work): Call max_reg_num instead of reading
21411         max_gcse_regno.
21412         (cprop_jump): Don't set run_jump_opt_after_gcse.
21413         (constprop_register): Always allow to alter jumps.
21414         (cprop_insn): Likewise.
21415         (do_local_cprop): Likewise.
21416         (local_cprop_pass): Likewise.  Return non-zero if something changed.
21417         (cprop): Remove function, fold interesting bits into one_cprop_pass.
21418         (find_implicit_sets): Add note about missed optimization opportunity.
21419         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
21420         pass_rtl_cprop execute function.
21421         Don't bother tracking the pass number, each pass gets its own dumpfile
21422         now anyway.
21423         Always allow to alter jumpsand bypass jumps.
21424         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
21425         will just find no suitable set.
21426         (pre_edge_insert): Fix dumping, this function is for PRE only.
21427         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
21428         pass_rtl_pre execute function.
21429         (hoist_code): Return non-zero if something changed.  Keep track of
21430         substitutions and insertions for statistics gathering similar to PRE.
21431         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
21432         called from the pass_rtl_hoist execute function.  Show pass statistics.
21433         (compute_store_table): Use max_reg_num directly instead of using the
21434         formerly global max_gcse_regno.
21435         (build_store_vectors): Likewise.
21436         (replace_store_insn): Fix dumping.
21437         (store_motion): Rename to ...
21438         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
21439         pass, called from the pass_rtl_store_motion execute function.  Keep
21440         track of substitutions and insertions for statistics gathering similar
21441         to PRE.
21442         (bypass_jumps): Remove, fold interesting bits into ...
21443         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
21444         from the pass_rtl_cprop execute function.
21445         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
21446         pass_jump_bypass): Remove.
21447         (gate_handle_gcse, rest_of_handle_gcse): Remove.
21448         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
21449         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
21450         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
21451         (gate_rtl_store_motion, execute_rtl_store_motion,
21452         pass_rtl_store_motion): New.
21453         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
21454         make it clear that -fcse-skip-blocks is a no-op for backward compat.
21455         * passes.c (init_optimization_passes): Remove pass_gcse and
21456         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
21457         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
21458         instead of pass_jump_bypass.
21459
21460 2009-04-27  Richard Guenther  <rguenther@suse.de>
21461
21462         PR middle-end/39928
21463         * gimplify.c (gimplify_expr): If we are required to create
21464         a temporary make sure it ends up as register.
21465
21466 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
21467
21468         PR target/39903
21469         * config/i386/i386.c (construct_container): Don't call
21470         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
21471         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
21472
21473 2009-04-27  Michael Matz  <matz@suse.de>
21474
21475         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
21476         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
21477         * tree-ssa-live.h (find_replaceable_exprs): Return a bitmap.
21478         (dump_replaceable_exprs): Take a bitmap.
21479         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
21480         array.
21481         (expand_gimple_basic_block): Likewise.
21482         * tree-ssa-ter.c (struct temp_expr_table_d): Make
21483         replaceable_expressions member a bitmap.
21484         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
21485         (mark_replaceable): Likewise.
21486         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
21487         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
21488
21489 2009-04-27  Richard Guenther  <rguenther@suse.de>
21490
21491         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
21492         (verify_stmts): Dispatch to gimple/type verification code.
21493         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
21494         issue with call argument types.
21495
21496 2009-04-27  Michael Matz  <matz@suse.de>
21497
21498         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
21499         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
21500         to above.
21501
21502 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
21503             Eric Botcazou  <ebotcazou@adacore.com>
21504
21505         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
21506         a label's basic block.
21507         (mark_target_live_regs): Tidy and rework obsolete comments.
21508         Change back DF problem to LIVE.  If a label starts a basic block,
21509         assume that all registers that used to be live then still are.
21510         (init_resource_info): If a label starts a basic block, set its
21511         BLOCK_FOR_INSN accordingly.
21512         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
21513
21514 2009-04-27  Richard Guenther  <rguenther@suse.de>
21515
21516         * tree-flow-inline.h (function_ann): Remove.
21517         (get_function_ann): Likewise.
21518         * tree-dfa.c (create_function_ann): Remove.
21519         * tree-flow.h (struct static_var_ann_d): Remove.
21520         (struct function_ann_d): Likewise.
21521         (union tree_ann_d): Remove fdecl member.
21522         (function_ann_t): Remove.
21523         (function_ann, get_function_ann, create_function_ann): Remove
21524         declarations.
21525
21526 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
21527
21528         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
21529
21530 2009-04-27  Jan Hubicka  <jh@suse.cz>
21531
21532         * ipa-pure-const.c (struct funct_state_d): New fields
21533         state_previously_known, looping_previously_known; remove
21534         state_set_in_source.
21535         (analyze_function): Use new fields.
21536         (propagate): Avoid assumption that state_set_in_source imply
21537         nonlooping.
21538
21539         * tree-ssa-loop-niter.c (finite_loop_p): New function.
21540         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
21541         * cfgloop.h (finite_loop_p): Declare.
21542
21543 2009-04-26  Michael Matz  <matz@suse.de>
21544
21545         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
21546
21547 2009-04-26  Michael Matz  <matz@suse.de>
21548
21549         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
21550         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
21551         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
21552         pass_mark_used_blocks): Remove.
21553         * tree-optimize.c (pass_free_datastructures,
21554         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
21555         * passes.c (init_optimization_passes): Don't call
21556         pass_mark_used_blocks, remove dead code.
21557
21558 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
21559
21560         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
21561         * tree-ssa-live.h (register_ssa_partition): Likewise.
21562
21563 2009-04-26  Michael Matz  <matz@suse.de>
21564
21565         Expand from SSA.
21566         * builtins.c (fold_builtin_next_arg): Handle SSA names.
21567         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
21568         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
21569         SSA names.
21570         (compare_pairs): Swap cost comparison.
21571         (coalesce_ssa_name): Don't use change_partition_var.
21572         * tree-nrv.c (struct nrv_data): Add modified member.
21573         (finalize_nrv_r): Set it.
21574         (tree_nrv): Use it to update statements.
21575         (pass_nrv): Require PROP_ssa.
21576         * tree-mudflap.c (mf_decl_cache_locals,
21577         mf_build_check_statement_for): Use make_rename_temp.
21578         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
21579         * alias.c (find_base_decl): Handle SSA names.
21580         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
21581         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
21582         * rtl.h (set_reg_attrs_for_parm): Declare.
21583         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
21584         to "optimized", remove unused locals at finish.
21585         (execute_free_datastructures): Make global, call
21586         delete_tree_cfg_annotations.
21587         (execute_free_cfg_annotations): Don't call
21588         delete_tree_cfg_annotations.
21589
21590         * ssaexpand.h: New file.
21591         * expr.c (toplevel): Include ssaexpand.h.
21592         (expand_assignment): Handle SSA names the same as register variables.
21593         (expand_expr_real_1): Expand SSA names.
21594         * cfgexpand.c (toplevel): Include ssaexpand.h.
21595         (SA): New global variable.
21596         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
21597         (SSAVAR): New macro.
21598         (set_rtl): New helper function.
21599         (add_stack_var): Deal with SSA names, use set_rtl.
21600         (expand_one_stack_var_at): Likewise.
21601         (expand_one_stack_var): Deal with SSA names.
21602         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
21603         before unique numbers.
21604         (expand_stack_vars): Use set_rtl.
21605         (expand_one_var): Accept SSA names, add asserts for them, feed them
21606         to above subroutines.
21607         (expand_used_vars): Expand all partitions (without default defs),
21608         then only the local decls (ignoring those expanded already).
21609         (expand_gimple_cond): Remove edges when jumpif() expands an
21610         unconditional jump.
21611         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
21612         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
21613         SSA name.
21614         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
21615         members of SA; deal with PARM_DECL partitions here; expand
21616         all PHI nodes, free tree datastructures and SA.  Commit instructions
21617         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
21618         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
21619         info and statements at start, collect garbage at finish.
21620         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
21621         (VAR_ANN_PARTITION) Remove.
21622         (change_partition_var): Don't declare.
21623         (partition_to_var): Always return SSA names.
21624         (var_to_partition): Only accept SSA names.
21625         (register_ssa_partition): Only check argument.
21626         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
21627         member.
21628         (delete_var_map): Don't free it.
21629         (var_union): Only accept SSA names, simplify.
21630         (partition_view_init): Mark only useful SSA names as used.
21631         (partition_view_fini): Only deal with SSA names.
21632         (change_partition_var): Remove.
21633         (dump_var_map): Use ssa_name instead of partition_to_var member.
21634         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
21635         basic blocks.
21636         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
21637         (struct _elim_graph): New member const_dests; nodes member vector of
21638         ints.
21639         (set_location_for_edge): New static helper.
21640         (create_temp): Remove.
21641         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
21642         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
21643         (new_elim_graph): Allocate const_dests member.
21644         (clean_elim_graph): Truncate const_dests member.
21645         (delete_elim_graph): Free const_dests member.
21646         (elim_graph_size): Adapt to new type of nodes member.
21647         (elim_graph_add_node): Likewise.
21648         (eliminate_name): Likewise.
21649         (eliminate_build): Don't take basic block argument, deal only with
21650         partition numbers, not variables.
21651         (get_temp_reg): New static helper.
21652         (elim_create): Use it, deal with RTL temporaries instead of trees.
21653         (eliminate_phi): Adjust all calls to new signature.
21654         (assign_vars, replace_use_variable, replace_def_variable): Remove.
21655         (rewrite_trees): Only do checking.
21656         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
21657         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
21658         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
21659         contains_tree_r, MAX_STMTS_IN_LATCH,
21660         process_single_block_loop_latch, analyze_edges_for_bb,
21661         perform_edge_inserts): Remove.
21662         (expand_phi_nodes): New global function.
21663         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
21664         functions, initialize new parameter, remember partitions having a
21665         default def.
21666         (finish_out_of_ssa): New global function.
21667         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
21668         don't reset in_ssa_p here, don't disable TER when mudflap.
21669         (pass_del_ssa): Remove.
21670         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
21671         partition members.
21672         (execute_free_datastructures): Declare.
21673         * Makefile.in (SSAEXPAND_H): New variable.
21674         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
21675         * basic-block.h (commit_one_edge_insertion): Declare.
21676         * passes.c (init_optimization_passes): Move pass_nrv and
21677         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
21678         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
21679         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
21680         (redirect_branch_edge): Deal with super block when expanding, split
21681         out jump patching itself into ...
21682         (patch_jump_insn): ... here, new static helper.
21683
21684 2009-04-26  Michael Matz  <matz@suse.de>
21685
21686         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
21687         beyond num_ssa_names.
21688         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
21689         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
21690
21691 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
21692
21693         PR inline-asm/39543
21694         * fwprop.c (forward_propagate_asm): New function.
21695         (forward_propagate_and_simplify): Propagate also into __asm, if it
21696         doesn't increase the number of referenced registers.
21697
21698         PR c/39889
21699         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
21700
21701 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
21702
21703         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
21704         note_nonlocal_vla_type for nonlocal VLAs.
21705         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
21706         contains_remapped_vars, remap_vla_decls): New functions.
21707         (convert_nonlocal_reference_stmt): If not optimizing, call
21708         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
21709         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
21710         if it wasn't found in var_map.
21711         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
21712         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
21713         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
21714         declare_vars.
21715         * gimplify.c (nonlocal_vlas): New variable.
21716         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
21717         referenced VLAs.
21718         (gimplify_body): Create and destroy nonlocal_vlas.
21719
21720         * dwarf2out.c (loc_descr_plus_const): New function.
21721         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
21722         mem_loc_descriptor, loc_descriptor_from_tree_1,
21723         descr_info_loc, gen_variable_die): Use it.
21724
21725         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
21726         !TREE_STATIC VAR_DECLs.
21727         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
21728         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
21729         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
21730         DECL_BY_REFERENCE is valid.
21731         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
21732         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
21733         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
21734         Copy DECL_BY_REFERENCE.
21735         (struct nesting_copy_body_data): New type.
21736         (nesting_copy_decl): New function.
21737         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
21738         if they have variable length.
21739
21740 2009-04-26  Michael Matz  <matz@suse.de>
21741
21742         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
21743         mark new temporaries for renaming.
21744
21745 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
21746
21747         PR c/39581
21748         * c-decl.c (global_bindings_p): Return negative value.
21749         (c_variable_size): New.  Based on variable_size from
21750         stor-layout.c.
21751         (grokdeclarator): Call c_variable_size not variable_size.
21752
21753 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
21754
21755         * config/i386/i386.c (print_operand) ['z']: Fix typo.
21756
21757 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
21758
21759         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
21760         Redefine it to just use mingw/include.
21761         (ASM_SPEC): Rules for -m32 and -m64.
21762         (LINK_SPEC): Use Likewise.
21763         (SPEC_32): New define.
21764         (SPEC_64): Likewise.
21765         (SUB_LINK_SPEC): Likewise.
21766         (MULTILIB_DEFAULTS): New define.
21767         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
21768         Add multilib options.
21769         (MULTILIB_DIRNAMES): Likewise.
21770         (MULTILIB_OSDIRNAMES): Likewise.
21771         (LIBGCC): Likewise.
21772         (INSTALL_LIBGCC): Likewise.
21773
21774 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
21775
21776         PR c/39556
21777         * c-tree.h (enum c_inline_static_type): New.
21778         (record_inline_static): Declare.
21779         * c-decl.c (struct c_inline_static, c_inline_statics,
21780         record_inline_static, check_inline_statics): New.
21781         (pop_file_scope): Call check_inline_statics.
21782         (start_decl): Call record_inline_static instead of pedwarning
21783         directly for static in inline function.
21784         * c-typeck.c (build_external_ref): Call record_inline_static
21785         instead of pedwarning directly for static referenced in inline
21786         function.
21787
21788 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
21789
21790         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
21791         not new but only being rescanned.
21792         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
21793         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
21794         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
21795         record_set_info, compute_set, grealloc): Remove.
21796         (recompute_all_luids): New function.
21797         (gcse_main): Don't compute sets, and don't do related memory
21798         allocations/free-ing.  If something changed before the end of the
21799         pass, update LUIDs using recompute_all_luids.
21800         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
21801         (free_gcse_mem): Don't free it either.
21802         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
21803         Use the df insn LUIDs.
21804         (load_killed_in_block): Likewise.
21805         (compute_hash_table_work): Don't compute reg_set_in_block.
21806         (compute_transp): Use DF_REG_DEF_CHAINs.
21807         (local_cprop_pass): Don't use compute_sets and related functions.
21808         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
21809         Use get_max_uid() instead of max_cuid.
21810         (insert_insn_end_basic_block, pre_insert_copy_insn,
21811         update_ld_motion_stores): Don't try to
21812         keep reg_set tables up to date.
21813         (pre_insert_copies): Use df insn LUIDs.
21814         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
21815         (reg_set_info): Don't use extra bitmap argument.
21816         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
21817         information to compute regs_set_in_block.
21818         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
21819         (bypass_jumps): Don't use compute_sets and friends.
21820
21821 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21822
21823         PR testsuite/39710
21824         * opts.c (undocumented_msg): Do not leave blank even with
21825         ENABLE_CHECKING.
21826
21827 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
21828
21829         * c-decl.c (build_enumerator): Allow values folding to integer
21830         constants but not integer constant expressions with a pedwarn if
21831         pedantic.
21832
21833 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
21834
21835         PR c/39582
21836         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
21837         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
21838         type is an integer constant.
21839
21840 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
21841
21842         PR target/39897
21843         * config/i386/i386.c (print_operand) ['z']: Revert handling of
21844         HImode operands.
21845
21846 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
21847
21848         PR c/39564
21849         * c-decl.c (grokdeclarator): Diagnose declarations of functions
21850         with variably modified return type and no storage class
21851         specifiers, except for the case of nested functions.  Distinguish
21852         extern declarations of functions with variably modified return
21853         types from those of objects with variably modified types.
21854
21855 2009-04-25  Jan Hubicka  <jh@suse.cz>
21856
21857         * tree.c (list_equal_p): New function.
21858         * tree.h (list_equal_p): Declare.
21859         * coretypes.h (edge_def, edge, const_edge, basic_block_def
21860         basic_block_def, basic_block, const_basic_block): New.
21861         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
21862         (redirect_eh_edge): New function.
21863         (make_eh_edge_update_phi): EH edges are not abnormal.
21864         * except.c: Include tree-flow.h.
21865         (list_match): New function.
21866         (eh_region_replaceable_by_p): New function.
21867         (replace_region): New function.
21868         (hash_type_list): New function.
21869         (hash_eh_region): New function.
21870         (eh_regions_equal_p): New function.
21871         (merge_peers): New function.
21872         (remove_unreachable_regions): Verify EH tree when checking;
21873         merge peers.
21874         (copy_eh_region_1): New function.
21875         (copy_eh_region): New function.
21876         (push_reachable_handler): New function.
21877         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
21878         regions without label but with live RESX.
21879         * except.h (redirect_eh_edge_to_label): New.
21880         * tree-flow.h (redirect_eh_edge): New.
21881         * coretypes.h (edge_def, edge, const_edge, basic_block_def
21882         basic_block_def, basic_block, const_basic_block): Remove.
21883         * Makefile.in (except.o): Add dependency on tree-flow.h
21884         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
21885         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
21886         Remove.
21887
21888 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
21889
21890         PR bootstrap/39645
21891         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
21892         on the destination of memcpy.
21893
21894 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
21895
21896         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
21897         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
21898         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
21899
21900 2009-04-25  Jan Hubicka  <jh@suse.cz>
21901
21902         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
21903         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
21904         to be reached by different label than left.
21905         (update_eh_edges): Update comment; remove edge_to_remove if possible
21906         and return true if suceeded.
21907         (cleanup_empty_eh): Accept sharing map; handle shared regions.
21908         (cleanup_eh): Compute sharing map.
21909         * except.c (remove_eh_handler_and_replace): Add argument if we should
21910         update regions.
21911         (remove_unreachable_regions): Update for label sharing.
21912         (label_to_region_map): Likewise.
21913         (get_next_region_sharing_label): New function.
21914         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
21915         prev_try pointers.
21916         (remove_eh_handler): Update.
21917         (remove_eh_region_and_replace_by_outer_of): New function.
21918         * except.h (struct eh_region): Add next_region_sharing_label.
21919         (remove_eh_region_and_replace_by_outer_of,
21920         get_next_region_sharing_label): Declare.
21921         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
21922
21923 2009-04-25  Jan Hubicka  <jh@suse.cz>
21924
21925         * tree-cfg.c (split_critical_edges): Split also edges where we can't
21926         insert code even if they are not critical.
21927
21928 2009-04-25  Jan Hubicka  <jh@suse.cz>
21929
21930         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
21931         (gimple_can_remove_branch_p): EH edges won't remove branch by
21932         redirection.
21933         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
21934         updating of non-abnormal EH edges.
21935         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
21936         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
21937         (split_critical_edges): Split also edges where emitting code on them
21938         will lead to splitting later.
21939
21940 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
21941             H.J. Lu  <hongjiu.lu@intel.com>
21942
21943         PR target/39590
21944         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
21945         the configured assembler supports fildq and fistpq mnemonics.
21946         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
21947         * configure: Regenerated.
21948         * config.in: Ditto.
21949
21950         * config/i386/i386.c (print_operand): Handle 'Z'.
21951         ['z']: Remove handling of special fild/fist suffixes.
21952         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
21953         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
21954         suffix of fild insn.
21955         (*floatsi<mode>2_vector_mixed): Ditto.
21956         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
21957         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
21958         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
21959         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
21960         * config/i386/gas.h (GAS_MNEMONICS): Remove.
21961
21962 2009-04-25  Ben Elliston  <bje@au.ibm.com>
21963
21964         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
21965         the source of a set operation.
21966
21967 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
21968
21969         * target.h (struct gcc_target): Add case_values_threshold field.
21970         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
21971         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
21972         * targhooks.c (default_case_values_threshold): New function.
21973         * targhooks.h (default_case_values_threshold): Declare function.
21974         * stmt.c (expand_case): Use case_values_threshold target hook.
21975         * expr.h (case_values_threshold): Remove declartation.
21976         * expr.c (case_values_threshold): Remove function.
21977         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
21978
21979         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
21980         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
21981         (avr_case_values_threshold): Declare as static.
21982         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
21983
21984         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
21985         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
21986         (mn10300_case_values_threshold): New function.
21987
21988 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
21989
21990         * ira.c (setup_cover_and_important_classes): Add enum cast.
21991
21992 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
21993
21994         * genpreds.c (write_enum_constraint_num): Output definition of
21995         CONSTRAINT_NUM_DEFINED_P macro.
21996         * ira.c (setup_cover_and_important_classes): Use
21997         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
21998
21999 2009-04-24  DJ Delorie  <dj@redhat.com>
22000
22001         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
22002         __SH2A_SINGLE_ONLY__ also.
22003
22004 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
22005
22006         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
22007         (movdf_internal): Ditto.
22008         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
22009         SFmode and DFmode constants.
22010         (ia64_print_operand): Add 'G' format for printing
22011         floating point constants.
22012
22013 2009-04-24  Richard Guenther  <rguenther@suse.de>
22014
22015         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
22016         from unsigned additions.
22017
22018 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
22019
22020         * c-typeck.c (set_init_index): Allow array designators that are
22021         not integer constant expressions with a pedwarn if pedantic.
22022
22023 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
22024
22025         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
22026         zero if no overlap in nonzero bits between the operands.
22027
22028 2009-04-24  Ian Lance Taylor  <iant@google.com>
22029
22030         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
22031         (record_dead_and_set_regs): Likewise.
22032         * df.h (struct df_mw_hardreg): Change flags field to int.
22033         (struct df_base_ref): Likewise.
22034         (struct df): Change changeable_flags field to int.
22035         * df-scan.c (df_defs_record): Change clobber_flags to int.
22036         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
22037         constants rather than #define macros.
22038         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
22039         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
22040         (enum dwarf_calling_convention): Likewise.
22041         (enum dwarf_line_number_x_ops): Likewise.
22042         (enum dwarf_call_frame_info): Likewise.
22043         (enum dwarf_source_language): Likewise.
22044         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
22045         (add_calling_convention_attribute): Likewise.
22046         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
22047         (combine_comparisons): Change compcode to int.  Add cast to enum type.
22048         * genrecog.c (maybe_both_true_2): Change c to int.
22049         (write_switch): Likewise.  Add cast to enum type.
22050         * gimplify.c (gimplify_omp_for): Handle return values from
22051         gimplify_expr using MIN rather than bitwise or.
22052         (gimplify_expr): Add cast to enum type.
22053         * ipa-prop.c (update_jump_functions_after_inlining): Change
22054         IPA_BOTTOM to IPA_JF_UNKNOWN.
22055         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
22056         Add casts to enum type.
22057         (setup_cover_and_important_classes): Change cl to int.  Add casts
22058         to enum type.
22059         (setup_class_translate): Change cl and mode to int.
22060         (ira_init_once): Change mode to int.
22061         (free_register_move_costs): Likewise.
22062         (setup_prohibited_mode_move_regs): Add casts to enum type.
22063         * langhooks.c (add_builtin_function_common): Rework assertion that
22064         value fits bitfield.
22065         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
22066         * omega.c (omega_do_elimination): Avoid math on enum types.
22067         * optabs.c (expand_vec_shift_expr): Remove casts to int.
22068         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
22069         int local to handle integral_argment value.
22070         * regmove.c (try_auto_increment): Change PUT_MODE to
22071         PUT_REG_NOTE_KIND.
22072         * reload.c (push_secondary_reload): Add casts to enum type.
22073         (secondary_reload_class, find_valid_class): Likewise.
22074         * reload1.c (emit_input_reload_insns): Likewise.
22075         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
22076         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
22077         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
22078         constant.
22079         * tree.c (build_common_builtin_nodes): Add casts to enum type.
22080         * tree-complex.c (complex_lattice_t): Typedef to int rather than
22081         enum type.
22082         (expand_complex_libcall): Add casts to enum type.
22083         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
22084         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
22085         with ERROR_MARK, not NUM_TREE_CODES.
22086         (vect_create_epilog_for_reduction): Likewise.
22087         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
22088         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
22089         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
22090         enum machine_mode.
22091         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
22092         vect_unused_in_loop.  Change 0 to loop_vect.
22093         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
22094         * var-tracking.c (get_init_value): Change return type to enum
22095         var_init_status.
22096         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
22097         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
22098         arm_fp_model.
22099         (arm_override_options): Add casts to enum type.
22100         (arm_emit_tls_decoration): Likewise.
22101         * config/i386/i386.c (ix86_function_specific_restore): Add casts
22102         to enum type.
22103         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
22104         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
22105         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
22106         enum type.
22107         * config/s390/s390.c (code_for_builtin_64): Change to array of
22108         enum insn_code.
22109         (code_for_builtin_31): Likewise.
22110         (s390_expand_builtin): Change code_for_builtin to enum insn_code
22111         const *.
22112         * config/sparc/sparc.c (sparc_override_options): Change value
22113         field in struct code_model to enum cmodel.  In initializer change
22114         0 to NULL and add cast to enum type.
22115
22116         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
22117         Change all callers.  Issue a -Wc++-compat warning using
22118         lhs_origtype if necessary.
22119         (convert_for_assignment): Issue -Wc++-compat warnings about
22120         invalid conversions to enum type on assignment.
22121         * c-common.h (build_modify_expr): Update declaration.
22122
22123 2009-04-24  Nick Clifton  <nickc@redhat.com>
22124
22125         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
22126         (function_arg_advance): Likewise.
22127         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
22128         5th alternative.
22129
22130 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
22131
22132         * config/s390/constraints.md ('I', 'J'): Fix condition.
22133
22134 2009-04-24  Diego Novillo  <dnovillo@google.com>
22135
22136         * gengtype-parse.c (parse_error): Add newline after message.
22137
22138 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
22139
22140         * config/i386/sse.md (avxmodesuffixs): Removed.
22141         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
22142         (*avx_pinsr<ssevecsize>): This.
22143
22144 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
22145
22146         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
22147         follow chains of regs with a single definition, and allow expressions
22148         that are function_invariant_p.
22149         (simple_rhs_p): Allow expressions that are function_invariant_p.
22150
22151 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
22152
22153         PR middle-end/39867
22154         * fold-const.c (fold_cond_expr_with_comparison): When folding
22155         > and >= to MAX, make sure the MAX uses the same type as the
22156         comparison's operands.
22157
22158 2009-04-24  Nick Clifton  <nickc@redhat.com>
22159
22160         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
22161         addressing for DImode accesses.
22162         (frv_print_operand_address): Handle PLUS case.
22163         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
22164
22165 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
22166
22167         PR rtl-optimization/39794
22168         * alias.c (canon_true_dependence): Add x_addr argument.
22169         * rtl.h (canon_true_dependence): Adjust prototype.
22170         * cse.c (check_dependence): Adjust canon_true_dependence callers.
22171         * cselib.c (cselib_invalidate_mem): Likewise.
22172         * gcse.c (compute_transp): Likewise.
22173         * dse.c (scan_reads_nospill): Likewise.
22174         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
22175         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
22176         canon_base_addr of the group, plus optional offset.
22177         (struct group_info): Rename canon_base_mem to
22178         canon_base_addr.
22179         (get_group_info): Set canon_base_addr to canon_rtx of base, not
22180         canon_rtx of base_mem.
22181
22182 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
22183
22184         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
22185         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
22186
22187 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22188
22189         * config/spu/spu-builtins.h: Delete file.
22190
22191         * config/spu/spu.h (enum spu_builtin_type): Move here from
22192         spu-builtins.h.
22193         (struct spu_builtin_description): Likewise.  Add GTY marker.
22194         Do not use enum spu_function_code or enum insn_code.
22195         (spu_builtins): Add extern declaration.
22196
22197         * config/spu/spu.c: Do not include "spu-builtins.h".
22198         (enum spu_function_code, enum spu_builtin_type_index,
22199         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
22200         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
22201         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
22202         unsigned_V2DI_type_node): Move here from spu-builtins.h.
22203         (spu_builtin_types): Make static.  Add GTY marker.
22204         (spu_builtins): Add extern declaration with GTY marker.
22205         Include "gt-spu.h".
22206
22207         * config/spu/spu-c.c: Do not include "spu-builtins.h".
22208         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
22209         Check programmatically whether all parameters are scalar.
22210
22211         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
22212
22213 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
22214
22215         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
22216         assignment from the constructor either if the target is volatile.
22217
22218 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
22219
22220         * config/arm/arm.md (insv): Do not share operands[0].
22221
22222 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
22223
22224         * config/vxlib-tls.c (active_tls_threads): Delete.
22225         (delete_hook_installed): New.
22226         (tls_delete_hook): Don't delete the delete hook.
22227         (tls_destructor): Delete it here.
22228         (__gthread_set_specific): Adjust installing the delete hook.
22229         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
22230         __gthread_leave_tsd_dtor_context.
22231
22232 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
22233
22234         * c-format.c (gcc_tdiag_char_table): Add support for %E.
22235
22236 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
22237
22238         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
22239         enum type.
22240         (alpha_rtx_costs): Ditto.
22241         (emit_unlikely_jump): Use add_reg_note.
22242         (emit_frame_store_1): Ditto.
22243         (alpha_expand_prologue): Ditto.
22244         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
22245         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
22246
22247 2009-04-23  Nick Clifton  <nickc@redhat.com>
22248
22249         * config/v850/v850.md (epilogue): Remove suppressed code.
22250         (return): Rename to return_simple and remove test of frame size.
22251         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
22252         to gen_return_simple.
22253
22254 2009-04-22  Jing Yu  <jingyu@google.com>
22255
22256         PR testsuite/39781
22257         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
22258
22259 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22260
22261         PR C/31499
22262         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
22263         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
22264         value is a VECTOR_CST, the element type is the element type of the
22265         vector.
22266
22267 2009-04-22  DJ Delorie  <dj@redhat.com>
22268
22269         * config/m32c/m32c.h: Update GTY annotations to new syntax.
22270
22271 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
22272
22273         * alias.c (find_base_term): Move around LO_SUM case, so that
22274         CONST falls through into PLUS/MINUS handling.
22275
22276         PR c/39855
22277         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
22278         into 0, use omit_one_operand.
22279
22280 2009-04-23  Ben Elliston  <bje@au.ibm.com>
22281
22282         * config/rs6000/linux-unwind.h (get_regs): Remove type
22283         puns. Change the type of `pc' to an array of unsigned ints and
22284         update all users.  Constify frame24.
22285
22286 2009-04-22  DJ Delorie  <dj@redhat.com>
22287
22288         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
22289         declarations before code.
22290         (current_function_special_page_vector): Likewise.
22291         (m32c_expand_insv): Silence a warning.
22292
22293 2009-04-21  Taras Glek  <tglek@mozilla.com>
22294
22295         * alias.c: Update GTY annotations to new syntax.
22296         * basic-block.h: Likewise.
22297         * bitmap.h: Likewise.
22298         * c-common.h: Likewise.
22299         * c-decl.c: Likewise.
22300         * c-parser.c: Likewise.
22301         * c-pragma.c: Likewise.
22302         * c-tree.h: Likewise.
22303         * cfgloop.h: Likewise.
22304         * cgraph.h: Likewise.
22305         * config/alpha/alpha.c: Likewise.
22306         * config/arm/arm.h: Likewise.
22307         * config/avr/avr.h: Likewise.
22308         * config/bfin/bfin.c: Likewise.
22309         * config/cris/cris.c: Likewise.
22310         * config/darwin.c: Likewise.
22311         * config/frv/frv.c: Likewise.
22312         * config/i386/i386.c: Likewise.
22313         * config/i386/i386.h: Likewise.
22314         * config/i386/winnt.c: Likewise.
22315         * config/ia64/ia64.h: Likewise.
22316         * config/iq2000/iq2000.c: Likewise.
22317         * config/mips/mips.c: Likewise.
22318         * config/mmix/mmix.h: Likewise.
22319         * config/pa/pa.c: Likewise.
22320         * config/pa/pa.h: Likewise.
22321         * config/rs6000/rs6000.c: Likewise.
22322         * config/s390/s390.c: Likewise.
22323         * config/sparc/sparc.c: Likewise.
22324         * config/xtensa/xtensa.c: Likewise.
22325         * cselib.h: Likewise.
22326         * dbxout.c: Likewise.
22327         * dwarf2out.c: Likewise.
22328         * except.c: Likewise.
22329         * except.h: Likewise.
22330         * fixed-value.h: Likewise.
22331         * function.c: Likewise.
22332         * function.h: Likewise.
22333         * gimple.h: Likewise.
22334         * integrate.c: Likewise.
22335         * optabs.c: Likewise.
22336         * output.h: Likewise.
22337         * real.h: Likewise.
22338         * rtl.h: Likewise.
22339         * stringpool.c: Likewise.
22340         * tree-data-ref.c: Likewise.
22341         * tree-flow.h: Likewise.
22342         * tree-scalar-evolution.c: Likewise.
22343         * tree-ssa-address.c: Likewise.
22344         * tree-ssa-alias.h: Likewise.
22345         * tree-ssa-operands.h: Likewise.
22346         * tree.c: Likewise.
22347         * tree.h: Likewise.
22348         * varasm.c: Likewise.
22349         * varray.h: Likewise.
22350         * vec.h: Likewise.
22351         * coretypes.h: Do not define GTY macro if it is already defined.
22352         * doc/gty.texi: Update GTY documentation to new syntax.
22353         * gengtype-lex.l: Enforce attribute-like syntax for GTY
22354         annotations on structs.
22355         * gengtype-parse.c: Likewise.
22356
22357 2009-04-22  Mark Heffernan  <meheff@google.com>
22358
22359         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
22360
22361 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
22362
22363         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
22364         where appropriate.
22365
22366 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
22367
22368         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
22369         the same as a PLUS without a shift.  Increase the cost of a
22370         CONST_INT in MULT.
22371
22372 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22373
22374         * Makefile.in: Update dependencies.
22375         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
22376         * errors.h: Remove bogus comment about compatibility.
22377         (warning): Update declaration.
22378         * genautomata.c: Update all calls to warning.
22379         * gimple.c: Do not include errors.h. Include toplev.h.
22380         * tree-ssa-structalias.c: Do not include errors.h.
22381         * omega.c: Likewise.
22382         * tree-ssa-reassoc.c: Likewise.
22383         * config/spu/spu-c.c: Likewise.
22384         * config/spu/t-spu-elf: Update dependencies.
22385
22386 2009-04-22  Richard Guenther  <rguenther@suse.de>
22387
22388         PR tree-optimization/39824
22389         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
22390         make sure the types are compatible.
22391
22392 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22393
22394         PR c++/14875
22395         * c-common.c (c_parse_error): Take a token_flags parameter.
22396         Use token_type for the token type instead.
22397         Pass token_flags to cpp_type2name.
22398         * c-common.h (c_parse_error): Update declaration.
22399         * c-parser.c (c_parser_error): Pass 0 as token flags.
22400
22401 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
22402
22403         PR rtl-optimization/39580
22404         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
22405
22406 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22407
22408         * function.c (expand_function_end): Do not emit a jump to the "naked"
22409         return label for fall-through returns.
22410         * except.c (sjlj_emit_function_exit): Always place the call to the
22411         unregister function at the location installed by expand_function_end.
22412
22413 2009-04-22  Richard Guenther  <rguenther@suse.de>
22414
22415         PR tree-optimization/39845
22416         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
22417         (gen_inbound_check): Likewise.
22418
22419 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
22420
22421         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
22422         padding for PPC.
22423         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
22424         * config/vxlib.c (__gthread_once): Add race guard for PPC.
22425
22426 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
22427
22428         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
22429         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
22430         shift counts to avoid out-of-bounds array accesses.
22431
22432 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
22433
22434         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
22435         (Pmode): Move above.
22436
22437 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
22438
22439         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
22440         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
22441         GET_CODE macro.  Use IN_RANGE macro where appropriate.
22442         * config/alpha/alpha.h: Ditto.
22443         * config/alpha/alpha.md: Ditto.
22444         * config/alpha/constraints.md: Ditto.
22445         * config/alpha/predicates.md: Ditto.
22446
22447 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
22448
22449         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
22450         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22451         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22452         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22453         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22454         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22455         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22456         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22457         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22458         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22459         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22460         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22461         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22462         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22463         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22464         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22465         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22466         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22467         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22468         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22469         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22470         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22471         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22472         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22473         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22474         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22475         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22476
22477 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
22478
22479         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
22480         references from comments.
22481         * cfgbuild.c (count_basic_blocks): Delete.
22482         (find_basic_blocks_1): Delete.
22483         (find_basic_blocks): Delete.
22484         * except.c (finish_eh_generation): Make static.  Move comment from
22485         except.h here.  Remove find_basic_blocks references from comments.
22486         * except.h (finish_eh_generation): Delete.
22487         * basic-block.h (find_basic_blocks): Delete.
22488         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
22489
22490 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
22491
22492         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
22493         (sdbout_parms):  Likewise.
22494
22495 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
22496
22497         * config/sh/sh.c (prepare_cbranch_operands): Use
22498         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
22499         (expand_cbranchdi4): Likewise.
22500         (from_compare): Add cast to enum type.
22501         (expand_cbranchsi4): Use add_reg_note.
22502         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
22503         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
22504         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
22505         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
22506         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
22507         instead of CODE_FOR_nothing.
22508         (cbranchdi4): Likewise.  Fix the order of arguments for
22509         gen_rtx_fmt_ee.
22510         (push_fpscr): Use add_reg_note.
22511         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
22512         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
22513
22514 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
22515
22516         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
22517         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
22518         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
22519         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
22520         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
22521         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
22522         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
22523         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
22524         config/alpha/x-vms, config/arc/t-arc,
22525         config/arm/README-interworking, config/arm/arm-c.c,
22526         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
22527         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
22528         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
22529         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
22530         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
22531         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
22532         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
22533         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
22534         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
22535         config/cris/t-elfmulti, config/crx/t-crx,
22536         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
22537         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
22538         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
22539         config/h8300/t-h8300, config/i386/athlon.md,
22540         config/i386/darwin-libgcc.10.4.ver,
22541         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
22542         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
22543         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
22544         config/i386/t-linux64, config/i386/t-nwld,
22545         config/i386/t-rtems-i386, config/i386/t-sol2-10,
22546         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
22547         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
22548         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
22549         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
22550         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
22551         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
22552         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
22553         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
22554         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
22555         config/m68k/t-uclinux, config/mcore/t-mcore,
22556         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
22557         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
22558         config/mips/crtn.asm, config/mips/irix-crti.asm,
22559         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
22560         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
22561         config/mips/mips-fixed.md, config/mips/sb1.md,
22562         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
22563         config/mips/t-iris6, config/mips/t-isa3264,
22564         config/mips/t-libgcc-mips16, config/mips/t-linux64,
22565         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
22566         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
22567         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
22568         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
22569         config/mn10300/t-linux, config/mn10300/t-mn10300,
22570         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
22571         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
22572         config/picochip/libgccExtras/clzsi2.asm,
22573         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
22574         config/rs6000/darwin-libgcc.10.4.ver,
22575         config/rs6000/darwin-libgcc.10.5.ver,
22576         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
22577         config/rs6000/t-aix43, config/rs6000/t-aix52,
22578         config/rs6000/t-darwin, config/rs6000/t-fprules,
22579         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
22580         config/rs6000/t-lynx, config/rs6000/t-netbsd,
22581         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
22582         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
22583         config/rs6000/t-rtems, config/rs6000/t-spe,
22584         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
22585         config/score/t-score-elf, config/sh/divcost-analysis,
22586         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
22587         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
22588         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
22589         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
22590         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
22591         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
22592         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
22593         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
22594         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
22595         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
22596         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
22597         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
22598         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
22599         limitx.h, version.c, xcoff.h: Add copyright and license notices.
22600         * config/h8300/genmova.sh: Include copyright and license notices
22601         in generated output.
22602         * config/h8300/mova.md: Regenerate.
22603         * doc/install.texi2html: Include word "Copyright" in copyright
22604         notice and use name "Free Software Foundation, Inc.".
22605         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
22606         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
22607         ChangeLog-2007, ChangeLog-2008: Correct dates.
22608
22609 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
22610
22611         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
22612         NE_EXPR operations as well.
22613         * c-parser.c (c_parser_condition): Do not set location information on
22614         the condition.
22615         (c_parser_conditional_expression): Likewise.
22616         (c_parser_binary_expression): Set location information on operators.
22617         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
22618         TRUTH_NOT_EXPR has been folded.
22619         * fold-const.c (fold_truth_not_expr): Copy location information from
22620         the incoming expression to the outgoing one.
22621         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
22622         recursive calls on the LHS of the operator but pass that of the
22623         operator to recursive calls on the RHS of the operator.  Set it
22624         on the COND_EXPR.
22625         (shortcut_cond_expr): Set the locus of the operator on the second
22626         COND_EXPR and that of the expression on the first in degenerate cases.
22627         Pass the locus of the expression to calls to shortcut_cond_r.
22628         Set the locus of the 'then' block on the associated jump, if any.
22629         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
22630         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
22631         expression to call to gimplify_boolean_expr.
22632
22633 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
22634
22635         * config.gcc: Add additional configuration for
22636         i686-w64-mingw* and x86_64-w64-mingw* triplet.
22637         * config/i386/mingw-w64.h: New mingw-w64 specific header.
22638         (CPP_SPEC): Redefine for allowing -municode option.
22639         (STARTFILE_SPEC): Likewise.
22640         * config/i386/t-mingw-w64: New.
22641         * config/i386/mingw-w64.opt: New.
22642         (municode): Add new target option.
22643         * doc/invoke.texi (municode): Add documentation for new option.
22644
22645 2009-04-21  Ian Lance Taylor  <iant@google.com>
22646
22647         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22648         Correct test for number of arguments.
22649         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
22650
22651 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
22652
22653         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
22654         argument of emit_library_call.
22655
22656 2009-04-21  Richard Guenther  <rguenther@suse.de>
22657
22658         PR middle-end/39829
22659         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
22660         inside VIEW_CONVERT_EXPRs.
22661
22662 2009-04-21  Martin Jambor  <mjambor@suse.cz>
22663
22664         * tree-switch-conversion.c (build_constructors): Split a long line.
22665         (constructor_contains_same_values_p): New function.
22666         (build_one_array): Create assigns of constants if possible, do not
22667         call mark_sym_for_renaming, call update_stmt.
22668         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
22669         make_rename_temp.  Do not call mark_symbols_for_renaming, call
22670         update_stmt.
22671         (gen_def_assigns): Do not call mark_symbols_for_renaming or
22672         find_new_referenced_vars, call update_stmt.
22673         (gen_inbound_check): Use create_tmp_var and create ssa names manually
22674         instead of calling make_rename_temp.  Do not call
22675         find_new_referenced_vars or mark_symbols_for_renaming, call
22676         update_stmt.
22677
22678 2009-04-21  Richard Guenther  <rguenther@suse.de>
22679
22680         PR tree-optimization/39827
22681         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
22682         (tree_ssa_phiprop): Pass the correct array size.
22683
22684 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
22685
22686         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
22687
22688 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22689
22690         PR 16202
22691         * c-typeck.c (lvalue_p): Move declaration ...
22692         * c-common.h (lvalue_p): ... to here.
22693         * c-common.c (candidate_equal_p): New.
22694         (add_tlist): Use it.
22695         (merge_tlist): Use it.
22696         (warn_for_collisions_1): Likewise.
22697         (warning_candidate_p): Accept more candidates.
22698         (verify_tree): A warning candidate can be an expression. Use
22699         candidate_equal_p.
22700
22701 2009-04-21  Ben Elliston  <bje@au.ibm.com>
22702
22703         PR target/5267
22704         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
22705         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
22706         options.  Remove -mcall-solaris documentation.
22707
22708 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22709
22710         PR c++/13358
22711         * doc/invoke.texi (-Wlong-long): Update description.
22712         * c-lex (interpret_integer): Only warn if there was no previous
22713         overflow and -Wlong-long is enabled.
22714         * c-decl.c (declspecs_add_type): Drop redundant flags.
22715         * c.opt (Wlong-long): Init to -1.
22716         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
22717         and front-end warn_long_long. Wlong-long only depends on other
22718         flags if it is uninitialized.
22719         * c-parser.c (disable_extension_diagnostics): warn_long_long is
22720         the same for CPP and FE.
22721         (restore_extension_diagnostics): Likewise.
22722
22723 2009-04-20  Ian Lance Taylor  <iant@google.com>
22724
22725         Fix enum conversions which are invalid in C++:
22726         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
22727         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
22728         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
22729         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
22730         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
22731         (dbxout_parms): Likewise.
22732         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
22733         (df_clear_flags): Likewise.
22734         * df-problems.c (df_rd_bb_local_compute_process_def): Change
22735         top_flag parameter to int.
22736         (df_chain_create_bb_process_use): Likewise.
22737         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
22738         Remove cast.
22739         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
22740         (df_ref_create_structure, df_def_record_1): Likewise.
22741         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
22742         (df_notes_rescan): Change 0 to VOIDmode in function call.
22743         (df_get_call_refs, df_insn_refs_collect): Likewise.
22744         (df_bb_regs_collect): Likewise.
22745         (df_entry_block_defs_collect): Likewise.
22746         (df_exit_block_uses_collect): Likewise.
22747         * df.h: Update declarations.
22748         * double-int.c (double_int_divmod): Add cast to enum type.
22749         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
22750         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
22751         (based_loc_descr): Likewise.
22752         (loc_descriptor_from_tree_1): Change first_op and second_op to
22753         enum dwarf_location_atom.  Add cast to enum type.
22754         * expmed.c (init_expmed): Change 0 to SET in function call.
22755         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
22756         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
22757         (do_store_flag): Likewise.
22758         * fixed-value.h (struct fixed_value): Change mode to enum
22759         machine_mode.
22760         * function.c (assign_parms): Change 0 to VOIDmode in function call.
22761         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
22762         function call.
22763         (insert_insn_decl, insert_decl, insert_state): Likewise.
22764         (automata_list_finish): Likewise.
22765         * genrecog.c (process_define_predicate): Add cast to enum type.
22766         * gensupport.c (init_predicate_table): Add cast to enum type.
22767         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
22768         function call.
22769         (gimple_build_call_1, gimple_build_label): Likewise.
22770         (gimple_build_goto, gimple_build_asm_1): Likewise.
22771         (gimple_build_switch_1, gimple_build_cdt): Likewise.
22772         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
22773         (enum fallback): Rename from enum fallback_t.
22774         (fallback_t): Typedef as int.
22775         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
22776         GSI_SAME_STMT in function call.
22777         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
22778         enum type.
22779         (setup_reg_class_relations): Likewise.
22780         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
22781         (setup_prohibited_class_mode_regs): Add cast to enum type.
22782         (setup_prohibited_mode_move_regs): Likewise.
22783         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
22784         (record_address_regs): Change i to enum reg_class.
22785         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
22786         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
22787         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
22788         (GET_MODE_2XWIDER_MODE): Likewise.
22789         (GET_CLASS_NARROWEST_MODE): Likewise.
22790         * omp-low.c (expand_omp_for): Add cast to enum type.
22791         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
22792         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
22793         * postreload.c (reload_cse_simplify_operands): Change rclass local
22794         to enum reg_class.
22795         * predict.c (combine_predictions_for_insn): Change best_predictor
22796         and predictor to enum br_predictor.
22797         (combine_predictions_for_bb): Likewise.
22798         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
22799         use SET_PREDICT_EXPR_OUTCOME.
22800         * real.c (real_arithmetic): Change icode to code in function call.
22801         * reginfo.c (init_move_cost): Add casts to enum type.
22802         (init_reg_sets_1, init_fake_stack_mems): Likewise.
22803         * regmove.c (regclass_compatible_p): Change class0 and class1 to
22804         enum reg_class.
22805         * reload.c (find_valid_class): Add casts to enum type.
22806         (push_reload): Change 0 to NO_REGS in function call.
22807         (find_reloads): Change this_alternative to array of enum
22808         reg_class.  Remove some now-unnecessary casts.
22809         (make_memloc): Change 0 to VOIDmode in function call.
22810         * reload1.c (reload): Change 0 to VOIDmode in function call.
22811         (eliminate_regs_1, elimination_effects): Likewise.
22812         (eliminate_regs_in_insn): Likewise.
22813         (emit_input_reload_insns): Add cast to enum type.
22814         (delete_output_reload): Change 0 to VOIDmode in function call.
22815         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
22816         to enum type in function call.
22817         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
22818         (SET_PREDICT_EXPR_OUTCOME): Define.
22819         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
22820         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
22821         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
22822         (dump_function): Likewise.
22823         * tree-dump.h: Update declarations.
22824         * tree-pass.h: Update declarations.
22825         * varasm.c (assemble_integer): Change mclass to enum mode_class.
22826         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
22827         enum type.
22828         (arm_rtx_costs_1): Correct parenthesization.
22829         (arm_rtx_costs): Add casts to enum type.
22830         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
22831         (vfp_emit_fstmd): Use add_rg_note.
22832         (emit_multi_reg_push, emit_sfm): Likewise.
22833         (thumb_set_frame_pointer): Likewise.
22834         (arm_expand_prologue): Likewise.
22835         (arm_regno_class): Change return type to enum reg_class.
22836         (thumb1_expand_prologue): Use add_reg_note.
22837         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
22838         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
22839         in function call.
22840         * config/arm/gentune.sh: Add cast to enum type.
22841         * config/arm/arm-tune.md: Rebuild.
22842         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
22843         (ix86_split_fp_branch, predict_jump): Likewise.
22844         (ix86_expand_multi_arg_builtin): Change sub_code from enum
22845         insn_code to enum rtx_code.
22846         (ix86_builtin_vectorized_function): Add cast to enum type.
22847         * config/i386/i386.md (truncdfsf2): Change slot to enum
22848         ix86_stack_slot.
22849         (truncxf<mode>2, isinf<mode>2): Likewise.
22850         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
22851         enum type.
22852         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
22853         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
22854         (insert_bundle_state): Change 1 to INSERT in function call.
22855         (ia64_add_bundle_selector_before): Likewise.
22856         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
22857         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
22858         (restore_stack_nonlocal): Likewise.
22859         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
22860         function call.
22861         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
22862         function call.
22863         (mips_rtx_costs): Likewise.
22864         (mips_override_options): Add casts to enum type.
22865         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
22866         in function call.
22867         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
22868         (store_reg, set_reg_plus_d): Likewise.
22869         (hppa_expand_prologue, hppa_profile_hook): Likewise.
22870         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
22871         cast to enum type.
22872         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
22873         function call.
22874         (emit_unlikely_jump): Use add_reg_note.
22875         (rs6000_emit_allocate_stack): Likewise.
22876         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
22877         (output_toc): Change 1 to INSERT in function call.
22878         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
22879         (rs6000_initialize_trampoline): Likewise.
22880         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
22881         function call.
22882         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
22883         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
22884         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
22885         (save_gprs): Use add_reg_note.
22886         (s390_emit_prologue): Likewise.
22887         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
22888         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
22889         (sparc_fold_builtin): Add cast to enum type.
22890         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
22891         enum insn_code.
22892         (spu_expand_prologue): Use add_reg_note.
22893         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
22894
22895 2009-04-20  Ian Lance Taylor  <iant@google.com>
22896
22897         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
22898         (c_parser_postfix_expression_after_primary): Get VEC for list of
22899         arguments.  Get original types of arguments.  Call
22900         build_function_call_vec.
22901         (cached_expr_list_1, cached_expr_list_2): New static variables.
22902         (c_parser_expr_list): Change return type to VEC *.  Add
22903         p_orig_types parameter.  Change all callers.
22904         (c_parser_release_expr): New static function.
22905         (c_parser_vec_to_tree_list): New static function.
22906         * c-typeck.c (build_function_call): Rewrite to build a VEC and
22907         call build_function_call_vec.
22908         (build_function_call_vec): New function, based on old
22909         build_function_call.
22910         (convert_arguments): Remove nargs and argarray parameters.  Change
22911         values to a VEC.  Add origtypes parameter.
22912         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
22913         (convert_for_assignment): Add origtype parameter.  Change all
22914         callers.  If warn_cxx_compat, check for conversion to an enum
22915         type when calling a function.
22916         (store_init_value): Add origtype parameter.  Change all callers.
22917         (digest_init): Likewise.
22918         (struct init_node): Add origtype field.
22919         (add_pending_init): Add origtype parameter.  Change all callers.
22920         (output_init_element): Likewise.
22921         (output_pending_init_elements): Pass origtype from init_node to
22922         output_init_element.
22923         (process_init_element): Pass origtype from c_expr to
22924         output_init_element.
22925         (c_finish_return): Add origtype parameter.  Change all callers.
22926         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
22927         caller.
22928         (sync_resolve_params): Likewise.
22929         (sync_resolve_return): Change params to first_param.  Change caller.
22930         (resolve_overloaded_builtins): Change params to VEC *.  Change
22931         callers.  Save first parameter around call to build_function_call_vec.
22932         * c-decl.c (finish_decl): Add origtype parameter.  Change all
22933         callers.  Call build_function_call_vec rather than
22934         build_function_call for cleanup.
22935         * c-tree.h: Update declarations.
22936         * c-common.h: Update declarations.
22937         * stub-objc.c (objc_rewrite_function_call): Change parameter from
22938         params to first_param.
22939         * target.h (struct gcc_target): Change resolve_overloaded_builtin
22940         params parameter from tree to void *.
22941         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22942         Change arglist parameter to have type void *, and to be a pointer
22943         to a VEC.
22944         * config/rs6000/rs6000-protos.h
22945         (altivec_resolve_overloaded_builtin): Update declaration.
22946         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
22947         fnargs parameter to have type void *, and to be a pointer to a
22948         VEC.  Call build_function_call_vec instead of
22949         build_function_call.
22950         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
22951
22952 2009-04-20  Joey Ye  <joey.ye@intel.com>
22953             Xuepeng Guo  <xuepeng.guo@intel.com>
22954             H.J. Lu  <hongjiu.lu@intel.com>
22955
22956         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
22957
22958         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
22959         (IX86_LEA_PRIORITY): Likewise.
22960         (distance_non_agu_define): New function.
22961         (distance_agu_use): Likewise.
22962         (ix86_lea_for_add_ok): Likewise.
22963         (ix86_dep_by_shift_count): Likewise.
22964
22965         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
22966         should split for LEA.
22967
22968         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
22969         function.
22970         (ix86_dep_by_shift_count): Likewise.
22971
22972 2009-04-20  Richard Guenther  <rguenther@suse.de>
22973
22974         * expr.c (handled_component_p): Move ...
22975         * tree.h (handled_component_p): ... here.
22976         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
22977         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
22978         and REALPART_EXPR to be in one group.
22979
22980 2009-04-20  Richard Guenther  <rguenther@suse.de>
22981
22982         * basic-block.h (get_all_dominated_blocks): Declare.
22983         * dominance.c (get_all_dominated_blocks): New function.
22984         * tree-cfg.c (get_all_dominated_blocks): Remove.
22985         (remove_edge_and_dominated_blocks): Adjust.
22986         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
22987         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
22988         instead of recursing.
22989
22990 2009-04-20  Doug Kwan  <dougkwan@google.com>
22991
22992         * cgraph.h (cgraph_node_ptr): New type for vector functions.
22993         (struct cgraph_node_set_def): New type.
22994         (cgraph_node_set) New type. Also declare vector functions.
22995         (struct cgraph_node_set_element_def): New type.
22996         (cgraph_node_set_element): Ditto.
22997         (cgraph_node_set_iterator): New iterator type.
22998         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
22999         cgraph_node_set_remove, dump_cgraph_node_set,
23000         debug_cgraph_node_set): New prototypes.
23001         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
23002         cgraph_node_set_size): New inlines.
23003         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
23004         including cgraph.h.
23005         (struct ipa_opt_pass): Add struct cgraph_node_set_def
23006         argument to function 'write_summary'.
23007         * ipa.c: Include ggc.h.
23008         (hash_cgraph_node_set_element,
23009         eq_cgraph_node_set_element, cgraph_node_set_new,
23010         cgraph_node_set_add, cgraph_node_set_remove,
23011         cgraph_node_set_find, dump_cgraph_node_set,
23012         debug_cgraph_node_set): New functions.
23013         * Makefile.in (ipa.o): Add dependency on GGC_H.
23014
23015 2009-04-20  Ira Rosen  <irar@il.ibm.com>
23016
23017         PR tree-optimization/39675
23018         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
23019         check of the return code of vect_schedule_slp. Check that
23020         stmt_vec_info still exists for the statement, before checking its
23021         vectorization type.
23022
23023 2009-04-20  Michael Matz  <matz@suse.de>
23024
23025         * Makefile.in (generated_files): Take out $(simple_generated_c).
23026
23027 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
23028
23029         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
23030         (UINTPTR_TYPE):  Likewise.
23031
23032 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
23033
23034         PR c/37481
23035         * c-typeck.c (digest_init): Check for initializing an array with a
23036         string literal.
23037
23038 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
23039
23040         PR c/19771
23041         * c-semantics.c (pop_stmt_list): Propagate
23042         STATEMENT_LIST_HAS_LABEL to parent statement list.
23043
23044 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
23045
23046         * config/mips/mips.h (mips_tune_attr): New macro.
23047         * config/mips/mips.md (cpu): Use it.
23048
23049 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
23050
23051         PR c/38243
23052         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
23053         declaring a tag.
23054
23055 2009-04-19  Diego Novillo  <dnovillo@google.com>
23056
23057         * toplev.c (compile_file): Move call to coverage_finish ...
23058         * cgraphunit.c (ipa_passes): ... here.
23059         Call cgraph_process_new_functions.
23060         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
23061         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
23062
23063 2009-04-19  Jan Hubicka  <jh@suse.cz>
23064
23065         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
23066         cfun.
23067         (dump_cgraph_node): Dump can throw external flag.
23068         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
23069
23070 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23071
23072         PR c/32061
23073         PR c++/36954
23074         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
23075         * common.opt (Wlogical-op): Move from here...
23076         * c.opt (Wlogical-op): ... to here.
23077         * c-typeck.c (parser_build_binary_op): Update call to
23078         warn_logical_operator.
23079         * c-opts.c (c_common_post_options): Enable warn_logical_op with
23080         extra_warnings.
23081         * c-common.c (warn_logical_op): Update.
23082         * c-common.h (warn_logical_op): Update declaration.
23083
23084 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
23085
23086         * tree.c (protected_set_expr_location): Fix formatting.
23087
23088 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
23089
23090         PR c/27676
23091         * c-typeck.c (readonly_warning): new.
23092         (build_unary_op, build_modify_expr): Use readonly_warning for
23093         storing into something readonly but not const-qualified.
23094
23095 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
23096
23097         PR c/22367
23098         * c-typeck.c (build_unary_op): Check for taking address of
23099         expression of type void.
23100
23101 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
23102
23103         PR c/35210
23104         * c-typeck.c (build_function_call): Check for calling a function
23105         with qualified void return types.  Call require_complete_type when
23106         generating a trap.
23107
23108 2009-04-18  Jan Hubicka  <jh@suse.cz>
23109
23110         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
23111         Set nothrow flag.
23112         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
23113         can_throw_external flag.
23114         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
23115         * ipa-pure-const.c (ignore_edge): New function.
23116         (propagate): Compute order for NOTHROW computation; set NOTHROWs
23117         only over can_throw_external edges.
23118         (local_pure_const): Add nothrow flag.
23119         * ipa-utils.c (searchc): Add ignore_edge callback.
23120         (ipa_utils_reduced_inorder): Add ignore_edge callback.
23121         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
23122         (set_nothrow_function_flags): Update cgraph.
23123         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
23124
23125 2009-04-18  Richard Guenther  <rguenther@suse.de>
23126
23127         PR middle-end/39804
23128         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
23129         (fold_stmt): ... this and ...
23130         (fold_stmt_inplace): ... this.
23131         (fold_stmt_1): Fold references in calls and asms.
23132         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
23133
23134 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
23135
23136         * tree-vrp.c (ssa_name_nonzero_p): Remove.
23137         * tree.h: Remove the prototype for ssa_name_nonzero_p.
23138
23139 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
23140
23141         * tree.c (function_args_count): Remove.
23142         * tree.h: Remove the prototype for function_args_count.
23143
23144 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
23145
23146         * tree-iterator.c (expr_only): Remove.
23147         * tree.h: Remove the prototype for expr_only.
23148
23149 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
23150
23151         * reginfo.c (cannot_change_mode_set_regs): Remove.
23152         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
23153
23154 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
23155
23156         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
23157         whether operands 0 and 1 overlaps.
23158
23159 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23160
23161         PR middle-end/36902
23162         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
23163         pointer. Use warning_at instead of warning.
23164         (search_for_addr_array): Likewise.
23165         (check_array_bounds): Likewise.
23166         (check_all_array_refs): Check that the incoming edge is not in the
23167         list of edges to be removed.
23168         (check_all_array_refs): Avoid the temporal pointer.
23169         (vrp_visit_cond_stmt): Fix typo.
23170         (simplify_switch_using_ranges): Handle the case where the switch
23171         index is an integer constant.
23172
23173 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
23174
23175         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
23176
23177 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
23178
23179         * doc/extend.texi, doc/invoke.texi: Fix typos.
23180
23181 2009-04-17  Cary Coutant  <ccoutant@google.com>
23182
23183         * tree-flow-inline.h (get_lineno): Fix inverted test.
23184
23185 2009-04-17  Diego Novillo  <dnovillo@google.com>
23186
23187         * tree-ssa-pre.c (create_expression_by_pieces): Remove
23188         assertion for AVAIL_OUT.
23189
23190 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
23191
23192         PR target/38627
23193         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
23194         * config/sh/linux-atomic.asm: Likewise.
23195
23196 2009-04-17  Diego Novillo  <dnovillo@google.com>
23197
23198         * except.c (debug_eh_tree): New.
23199         (struct eh_region, struct eh_status): Move ...
23200         * except.h: ... here.
23201         (add_type_for_runtime): Declare extern.
23202         (lookup_type_for_runtime): Likewise.
23203         (debug_eh_tree): Declare.
23204         * Makefile.in (GTFILES): List except.h before except.c
23205
23206 2009-04-17  Diego Novillo  <dnovillo@google.com>
23207
23208         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
23209         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
23210         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
23211         (find_vars_r): ... here.
23212         * tree-flow.h (find_referenced_vars_in): Declare.
23213         * tree-ssa-pre.c (create_expression_by_pieces): Assert
23214         that AVAIL_OUT exists for BLOCK.
23215         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
23216         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
23217         (tree-parloops.o): Likewise.
23218
23219 2009-04-17  Simon Baldwin  <simonb@google.com>
23220
23221         * toplev.c (default_tree_printer): Add handling for %E format.
23222
23223 2009-04-17  Diego Novillo  <dnovillo@google.com>
23224
23225         * tree-pretty-print.c (dump_generic_node): Add break after
23226         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
23227         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
23228         FUNCTION_TYPE together.  Call print_struct_decl when printing
23229         structures and TDF_SLIM is not given.
23230         (print_struct_decl): Fix logic for detecting recursion.
23231
23232 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
23233
23234         PR 31567
23235         * gcc.c (create_at_file): New.
23236         (compile_input_file_p): New.
23237         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
23238         * main.c (main): Update call to toplev_main.
23239         * toplev.c (toplev_main): Change signature. Call expandargv.
23240         * toplev.h (toplev_main): Change signature.
23241
23242 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
23243
23244         * dwarf2out.c (field_byte_offset): Use the type size as the field size
23245         if the latter is not constant.
23246
23247 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
23248
23249         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
23250
23251 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
23252
23253         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
23254         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
23255
23256 2009-04-17  Richard Guenther  <rguenther@suse.de>
23257
23258         * tree-ssa-structalias.c (get_constraint_for_component_ref):
23259         Handle component references view-converting an invariant address.
23260
23261 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
23262
23263         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
23264         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
23265         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
23266         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
23267         Use @deftypevr rather than @deftypevar.
23268
23269 2009-04-17  Richard Guenther  <rguenther@suse.de>
23270
23271         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
23272         (get_prop_source_stmt): Likewise.
23273         (can_propagate_from): Likewise.
23274
23275 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
23276
23277         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
23278         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
23279         (--with-multilib-list): Add default value.
23280         * configure: Regenerate.
23281         * Makefile.in (TM_ENDIAN_CONFIG): Define.
23282         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
23283         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
23284         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
23285         Don't add default cpu to multilib list unnecessarily, but do enable
23286         the relevant compiler option..
23287         Add support for --with-multilib-list=<blank> and
23288         --with-multilib-list=!<somelib> to supress unwanted multilibs.
23289         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
23290         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
23291         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
23292         TM_MULTILIB_CONFIG.
23293         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
23294         (MULTILIB_OSDIRNAMES): New variable.
23295         * config/sh/t-1e: Delete file.
23296         * config/sh/t-mlib-sh1: Delete file.
23297         * config/sh/t-mlib-sh2: Delete file.
23298         * config/sh/t-mlib-sh2a: Delete file.
23299         * config/sh/t-mlib-sh2a-nofpu: Delete file.
23300         * config/sh/t-mlib-sh2a-single: Delete file.
23301         * config/sh/t-mlib-sh2a-single-only: Delete file.
23302         * config/sh/t-mlib-sh2e: Delete file.
23303         * config/sh/t-mlib-sh3e: Delete file.
23304         * config/sh/t-mlib-sh4: Delete file.
23305         * config/sh/t-mlib-sh4-nofpu: Delete file.
23306         * config/sh/t-mlib-sh4-single: Delete file.
23307         * config/sh/t-mlib-sh4-single-only: Delete file.
23308         * config/sh/t-mlib-sh4a: Delete file.
23309         * config/sh/t-mlib-sh4a-nofpu: Delete file.
23310         * config/sh/t-mlib-sh4a-single: Delete file.
23311         * config/sh/t-mlib-sh4a-single-only: Delete file.
23312         * config/sh/t-mlib-sh4al: Delete file.
23313         * config/sh/t-mlib-sh5-32media: Delete file.
23314         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
23315         * config/sh/t-mlib-sh5-64media: Delete file.
23316         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
23317         * config/sh/t-mlib-sh5-compact: Delete file.
23318         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
23319         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
23320         * doc/install.texi (Options specification): Add
23321         --with-multilib-list and --with-endian.
23322
23323 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
23324
23325         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
23326         REVISION_c.
23327         (OBJS-common): Add plugin-version.o.
23328         (plugin-version.o): New.
23329         * gcc-plugin.h (plugin_gcc_version): New.
23330         (plugin_default_version_check): New.
23331         (plugin_init_func, plugin_init): Add version argument.
23332         * plugin-version.c: New.
23333         * plugin.c (str_plugin_gcc_version_name): New.
23334         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
23335         pass it to the init function.
23336         (plugin_default_version_check): New.
23337
23338 2009-04-17  Richard Guenther  <rguenther@suse.de>
23339
23340         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
23341         for decl-vs-decl disambiguation.
23342
23343 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
23344
23345         * config/s390/s390.h (s390_tune_attr): New macro definition.
23346         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
23347
23348 2009-04-17  Richard Guenther  <rguenther@suse.de>
23349
23350         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
23351         (fold_stmt_r): Likewise.
23352         (maybe_fold_reference): New function.
23353         (fold_gimple_assign): Handle cases fold_stmt_r did.
23354         (fold_stmt): Do not use fold_stmt_r.
23355         (fold_stmt_inplace): Likewise.
23356
23357 2009-04-17  Richard Guenther  <rguenther@suse.de>
23358
23359         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
23360         (record_equivalences_from_stmt): Remove useless checks and
23361         simplifications.
23362         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
23363         the type is already suitable.
23364
23365 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
23366
23367         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
23368
23369 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
23370
23371         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
23372         (CMPtype): Define as __gcc_CMPtype.
23373
23374 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
23375
23376         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
23377         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
23378
23379 2009-04-17  Richard Guenther  <rguenther@suse.de>
23380
23381         PR tree-optimization/39746
23382         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
23383         special-casing for builtins and static variable use/def.
23384         (call_may_clobber_ref_p_1): Likewise.
23385
23386 2009-04-16  Ian Lance Taylor  <iant@google.com>
23387
23388         * df.h: Include "timevar.h".
23389         (struct df_problem): Change tv_id field to timevar_id_t.
23390         * tree-pass.h: Include "timevar.h".
23391         (struct opt_pass): Change tv_id field to timevar_id_t.
23392         * timevar.h (timevar_id_t): Define TV_NONE.
23393         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
23394         TV_NONE rather than tv_id != 0.
23395         (execute_one_pass): Likewise.
23396         * Makefile.in (DF_H): Add $(TIMEVAR_H).
23397         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
23398         dependencies to $(TREE_PASS_H).
23399         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
23400         to TV_NONE.
23401         (pass_branch_target_load_optimize2): Likewise.
23402         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
23403         (pass_outof_cfg_layout_mode): Likewise.
23404         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
23405         (pass_rebuild_cgraph_edges): Likewise.
23406         (pass_remove_cgraph_callee_edges): Likewise.
23407         * df-core.c (pass_df_initialize_opt): Likewise.
23408         (pass_df_initialize_no_opt): Likewise.
23409         (pass_df_finish): Likewise.
23410         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
23411         * except.c (pass_set_nothrow_function_flags): Likewise.
23412         (pass_convert_to_eh_region_ranges): Likewise.
23413         * final.c (pass_compute_alignments): Likewise.
23414         * function.c (pass_instantiate_virtual_regs): Likewise.
23415         (pass_init_function): Likewise.
23416         (pass_leaf_regs): Likewise.
23417         (pass_match_asm_constraints): Likewise.
23418         * gimple-low.c (pass_lower_cf): Likewise.
23419         (pass_mark_used_blocks): Likewise.
23420         * init-regs.c (pass_initialize_regs): Likewise.
23421         * integrate.c (pass_initial_value_sets): Likewise.
23422         * ira.c (pass_ira): Likewise.
23423         * jump.c (pass_cleanup_barriers): Likewise.
23424         * omp-low.c (pass_expand_omp): Likewise.
23425         (pass_lower_omp): Likewise.
23426         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
23427         * recog.c (pass_split_all_insns): Likewise.
23428         (pass_split_after_reload): Likewise.
23429         (pass_split_before_regstack): Likewise.
23430         (pass_split_before_sched2): Likewise.
23431         (pass_split_for_shorten_branches): Likewise.
23432         * reginfo.c (pass_reginfo_init): Likewise.
23433         (pass_subregs_of_mode_init): Likewise.
23434         (pass_subregs_of_mode_finish): Likewise.
23435         * passes.c (pass_postreload): Likewise.
23436         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
23437         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
23438         (pass_warn_function_return): Likewise.
23439         (pass_warn_function_noreturn): Likewise.
23440         * tree-complex.c (pass_lower_complex): Likewise.
23441         (pass_lower_complex_O0): Likewise.
23442         * tree-if-conv.c (pass_if_conversion): Likewise.
23443         * tree-into-ssa.c (pass_build_ssa): Likewise.
23444         * tree-mudflap.c (pass_mudflap_1): Likewise.
23445         (pass_mudflap_2): Likewise.
23446         * tree-nomudflap.c (pass_mudflap_1): Likewise.
23447         (pass_mudflap_2): Likewise.
23448         * tree-nrv.c (pass_return_slot): Likewise.
23449         * tree-object-size.c (pass_object_sizes): Likewise.
23450         * tree-optimize.c (pass_all_optimizations): Likewise.
23451         (pass_early_local_passes): Likewise.
23452         (pass_all_early_optimizations): Likewise.
23453         (pass_cleanup_cfg): Likewise.
23454         (pass_cleanup_cfg_post_optimizing): Likewise.
23455         (pass_free_datastructures): Likewise.
23456         (pass_free_cfg_annotations): Likewise.
23457         (pass_fixup_cfg): Likewise.
23458         (pass_init_datastructures): Likewise.
23459         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
23460         (pass_late_warn_uninitialized): Likewise.
23461         (pass_update_address_taken): Likewise.
23462         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
23463         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
23464         (pass_cse_sincos): Likewise.
23465         (pass_convert_to_rsqrt): Likewise.
23466         * tree-ssa-structalias.c (pass_build_alias): Likewise.
23467         * tree-stdarg.c (pass_stdarg): Likewise.
23468         * tree-tailcall.c (pass_tail_recursion): Likewise.
23469         (pass_tail_calls): Likewise.
23470         * tree-vect-generic.c (pass_lower_vector): Likewise.
23471         (pass_lower_vector_ssa): Likewise.
23472         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
23473
23474 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
23475
23476         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
23477         XLR entry.
23478         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
23479         Handle -march=xlr.
23480         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
23481         logical and signext.
23482
23483 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
23484
23485         PR target/39767
23486         * config/sh/predicates.md (arith_operand): Check if the operand
23487         of TRUNCATE is a REG.
23488
23489 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
23490
23491         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
23492         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
23493
23494 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
23495
23496         * tree-iterator.c (tsi_split_statement_list_after,
23497         tsi_split_statement_list_before): Remove.
23498         * tree-iterator.h: Remove the prototypes for
23499         tsi_split_statement_list_after and tsi_split_statement_list_before.
23500
23501 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
23502
23503         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
23504         * tree-ssa-propagate.h: Remove the prototype for
23505         stmt_makes_single_load.
23506
23507 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
23508
23509         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
23510         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
23511
23512 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
23513
23514         * tree-iterator.c (EXPR_LAST_BODY): Remove.
23515
23516 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
23517
23518         * except.c (eh_region_outer_p): Remove.
23519         * except.h: Remove the prototype for eh_region_outer_p.
23520
23521 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
23522
23523         * function.c (current_function_assembler_name): Remove.
23524         * function.h: Remove the prototype for
23525         current_function_assembler_name.
23526
23527 2009-04-16  Ian Lance Taylor  <iant@google.com>
23528
23529         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
23530         (add_reg_note): Call alloc_reg_note.
23531         * rtl.h (alloc_reg_note): Declare.
23532         * combine.c (try_combine): Use alloc_reg_note.
23533         (recog_for_combine, move_deaths): Likewise.
23534         (distribute_notes): Use alloc_reg_note and add_reg_note.
23535         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
23536         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
23537         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
23538
23539 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
23540
23541         PR rtl-optimization/39762
23542         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
23543         ira_may_move_out_cost): Add comments about way of their usage.
23544         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
23545
23546         * ira-conflicts.c (process_regs_for_copy): Use function
23547         ira_get_register_move_cost instead of global
23548         ira_register_move_cost.
23549
23550         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
23551         color_pass, move_spill_restore, update_curr_costs): Ditto.
23552
23553         * ira-lives.c (process_single_reg_class_operands): Ditto.
23554
23555         * ira-emit.c (emit_move_list): Ditto.
23556
23557         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
23558         (record_reg_classes): Ditto.  Use functions
23559         ira_get_register_move_cost and ira_get_may_move_cost instead of
23560         global vars ira_register_move_cost, ira_may_move_out_cost and
23561         ira_may_move_in_cost.
23562         (record_address_regs): Don't call ira_init_register_move_cost.
23563         Use function ira_get_may_move_cost instead of global
23564         ira_may_move_in_cost.
23565         (process_bb_node_for_hard_reg_moves): Use function
23566         ira_get_register_move_cost instead of global ira_register_move_cost.
23567         (ira_costs): Don't call ira_init_register_move_cost.
23568
23569 2009-04-16  Richard Guenther  <rguenther@suse.de>
23570
23571         * tree-cfg.c (verify_gimple_assign_binary):
23572         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
23573         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
23574         (create_general_new_stmt): Note that this function is broken.
23575
23576 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
23577
23578         * common.opt (fhelp): Add Var(help_flag).
23579         * gcc-plugin.h (plugin_info): Add help.
23580         * plugin.c (plugin_name_args): Add help.
23581         (register_plugin_info): Set plugin->help.
23582         (print_help_one_plugin): New.
23583         (print_plugins_help): New.
23584         * plugin.h (print_plugins_help): New.
23585         * toplev.c (toplev_main): Call print_plugins_help if needed.
23586
23587 2009-04-16  Richard Guenther  <rguenther@suse.de>
23588
23589         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
23590         (gimple_ior_addresses_taken_1): New function.
23591         (gimple_ior_addresses_taken): Likewise.
23592         * gimple.h (struct gimple_statement_with_ops_base): Remove
23593         addresses_taken member.
23594         (gimple_ior_addresses_taken): Declare.
23595         (gimple_addresses_taken, gimple_addresses_taken_ptr,
23596         gimple_set_addresses_taken): Remove.
23597         * ipa-reference.c (mark_address): New function.
23598         (scan_stmt_for_static_refs): Use it for marking addresses taken.
23599         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
23600         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
23601         (gimple_add_to_addresses_taken): Remove.
23602         (get_tmr_operands): Call mark_address_taken.
23603         (get_asm_expr_operands): Likewise.
23604         (get_expr_operands): Likewise.
23605         (build_ssa_operands): Do not clear the addresses_taken bitmap.
23606         (free_stmt_operands): Do not free it.
23607         * tree-ssa.c (delete_tree_ssa): Likewise.
23608         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
23609
23610 2009-04-16  Richard Guenther  <rguenther@suse.de>
23611
23612         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
23613         (walk_stmt_load_store_ops): Likewise.
23614         * gimple.c (get_base_loadstore): New function.
23615         (walk_stmt_load_store_addr_ops): Likewise.
23616         (walk_stmt_load_store_ops): Likewise.
23617         * ipa-pure-const.c (check_op): Simplify.
23618         (check_load, check_store): New functions.
23619         (check_stmt): Use walk_stmt_load_store_ops.
23620         * ipa-reference.c (mark_load): Adjust signature.
23621         (mark_store): Likewise.
23622         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
23623
23624 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
23625
23626         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
23627         (plugin_info): New.
23628         * opts.c (common_handle_option): Don't call print_version.
23629         * plugin.c (plugin_name_args): Add version.
23630         (register_plugin_info): New.
23631         (register_callback): Handle PLUGIN_INFO.
23632         (try_init_one_plugin): New.
23633         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
23634         if failed to init.
23635         (finalize_one_plugin): New.
23636         (finalize_plugins): New.
23637         (print_one_plugin): New.
23638         (print_plugins_versions): New.
23639         * plugin.h (print_plugins_versions): New.
23640         (finalize_plugins): New.
23641         * toplev.c (compile_file): Don't call initialize_plugins.
23642         (print_version): Call print_plugins_versions.
23643         (toplev_main): Call initialize_plugins. Print version if needed.
23644         Call finalize_plugins.
23645
23646 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
23647
23648         * common.opt (fversion): New.
23649         * gcc.c (print_version): New.
23650         (process_command): Don't print the version. Just set print_version.
23651         (main): Print version. Call subprocesses if print_version and
23652         verbose_flag are set.
23653         * opts.c (common_handle_option): Handle OPT_fversion.
23654
23655 2009-04-16  Richard Guenther  <rguenther@suse.de>
23656             Ira Rosen  <irar@il.ibm.com>
23657
23658         PR tree-optimization/39698
23659         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
23660         type of the reduction variable.  Only generate the def if
23661         it is needed.
23662
23663         * omp-low.c (expand_omp_for_generic): When converting to a pointer
23664         make sure to first convert to an integer of the same precision.
23665         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
23666         the type of the evolution correctly in computing the new
23667         induction variable base.
23668
23669 2009-04-16  Richard Guenther  <rguenther@suse.de>
23670
23671         PR middle-end/39625
23672         * tree-cfg.c (make_blocks): Split statements with to-be
23673         abnormal SSA names on the lhs.
23674
23675 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
23676
23677         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
23678         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
23679         * c-typeck.c (really_start_incremental_init): Likewise.
23680         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
23681         (TARGET_INITIALIZER): Remove it.
23682         * target.h (struct target): Remove vector_opaque_p.
23683         * tree.c (build_opaque_vector_type): New.
23684         * tree.h (TYPE_VECTOR_OPAQUE): New.
23685         (build_opaque_vector_type): Declare.
23686         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
23687         * config/rs6000/rs6000.c (build_opaque_vector_type,
23688         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
23689         (rs6000_init_builtins): Use build_opaque_vector_type for
23690         opaque_V4SI_type_node.
23691
23692 2009-04-15  Catherine Moore  <clm@codesourcery.com>
23693
23694         * debug.h (set_name):  Declare.
23695         * dwarf2out.c (dwarf2out_set_name): Declare.
23696         (dwarf2_debug_hooks): Add set_name.
23697         (find_AT_string): New.
23698         (add_AT_string): Call find_AT_string.
23699         (dwarf2out_set_name): New.
23700         * cp/decl.c (grokdeclarator): Call set_name.
23701         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
23702         * debug.c (do_nothing_debug_hooks):  Likewise.
23703         * dbxout.c (dbx_debug_hooks): Likewise.
23704         * sdbout.c (sdb_debug_hooks): Likewise.
23705
23706 2009-04-15  Michael Eager  <eager@eagercon.com>
23707
23708         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
23709         reg for single-precision FPU.
23710         * config/rs6000/rs6000.md (movsi_internal1): Only for
23711         !TARGET_SINGLE_FPU.
23712         (movsi_internal1_single): New. Add pattern to move SI values to/from
23713         single-precision FP regs.
23714
23715 2009-04-15  Richard Guenther  <rguenther@suse.de>
23716
23717         * omp-low.c (lower_rec_input_clauses): Build correct address
23718         expressions.
23719         (expand_omp_for_generic): Fix multiplication type.
23720         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
23721         (generate_memset_zero): Fix types.
23722         * tree-profile.c (prepare_instrumented_value): Correctly
23723         widen a pointer.
23724
23725 2009-04-15  Ian Lance Taylor  <iant@google.com>
23726
23727         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
23728         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
23729         for -Wall and for -Wc++-compat.
23730         (c_common_post_options): For C++, set warn_enum_compare if not
23731         already set.
23732         * c-tree.h (struct c_expr): Add field original_type.
23733         (build_external_ref): Update declaration.
23734         * c-parser.c (c_parser_braced_init): Set original_type.
23735         (c_parser_initelt): Likewise.
23736         (c_parser_expr_no_commas): Likewise.
23737         (c_parser_conditional_expression): Likewise.
23738         (c_parser_cast_expression): Likewise.
23739         (c_parser_unary_expression): Likewise.  Pull setting of
23740         original_code to top of function.
23741         (c_parser_sizeof_expression): Set original_type.
23742         (c_parser_alignof_expression): Likewise.
23743         (c_parser_postfix_expression): Likewise.  Pull setting of
23744         original_code to top of function.
23745         (c_parser_postfix_expression_after_paren_type): Set original_type.
23746         (c_parser_postfix_expression_after_primary): Likewise.
23747         (c_parser_expression): Likewise.
23748         * c-typeck.c (build_external_ref): Add type parameter.  Change all
23749         callers.
23750         (c_expr_sizeof_expr): Set original_type field.
23751         (parser_build_unary_op): Likewise.
23752         (parser_build_binary_op): Likewise.  Optionally warn about
23753         comparisons of enums of different types.
23754         (digest_init): Set original_type field.
23755         (really_start_incremental_init): Likewise.
23756         (push_init_level, pop_init_level): Likewise.
23757         * doc/invoke.texi (Warning Options): -Wenum-compare now
23758         supported in C.
23759
23760 2009-04-15  Richard Guenther  <rguenther@suse.de>
23761
23762         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
23763         out a necessary conversion.
23764         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
23765         names we didn't value number.
23766         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
23767
23768 2009-04-15  Richard Guenther  <rguenther@suse.de>
23769
23770         PR tree-optimization/39764
23771         * tree-ssa-ccp.c (get_value): Canonicalize value with
23772         canonicalize_float_value.
23773
23774 2009-04-15  Jan Hubicka  <jh@suse.cz>
23775
23776         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
23777         Wrong version of patch.
23778
23779 2009-04-15  Jan Hubicka  <jh@suse.cz>
23780
23781         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
23782
23783 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
23784
23785         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
23786         our distinct integral and vector types.
23787
23788 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
23789
23790         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
23791         * init.c (build_vtbl_address): Remove call to assemble_external.
23792
23793 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
23794
23795         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
23796         output for other floating point modes.
23797
23798 2009-04-14  Diego Novillo  <dnovillo@google.com>
23799
23800         * diagnostic.c (diagnostic_report_diagnostic): Do not
23801         warn about loaded plugins for DK_ERROR and DK_WARNING.
23802         * c-decl.c (declspecs_add_type): Move call to
23803         invoke_plugin_callbacks ...
23804         * c-parser.c (c_parser_declspecs): ... here.
23805         * plugin.c (dump_active_plugins): Tidy output.
23806
23807 2009-04-14  Diego Novillo  <dnovillo@google.com>
23808             Le-Chun Wu  <lcwu@google.com>
23809
23810         * configure.ac: Add --enable-plugin support.
23811         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
23812         * Makefile.in (PLUGIN_H): Define.
23813         Export ENABLE_PLUGIN and GMPINC to site.exp.
23814         Add PLUGINLIBS to link command.
23815         Add/modify dependencies for plugin.o and files including plugin.h.
23816         (plugin.o): New.
23817         * config.in: Regenerate.
23818
23819         * opts.c (common_handle_option): Handle OPT_fplugin_ and
23820         OPT_fplugin_arg_.
23821
23822 2009-04-14  Le-Chun Wu  <lcwu@google.com>
23823
23824         * tree-pass.h (register_one_dump_file): Add a prototype for
23825         register_one_dump_file.
23826         * toplev.c (compile_file): Call initialize_plugins.
23827         (do_compile): Call invoke_plugin_callbacks.
23828         (toplev_main): Call invoke_plugin_callbacks.
23829         * common.opt: Add -fplugin= and -fplugin-arg-.
23830         * gcc-plugin.h: New public header file for plugins to include.
23831         * plugin.c: New source file.
23832         * plugin.h: New internal header file.
23833         * passes.c (register_one_dump_file): Make it external.
23834
23835         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
23836
23837 2009-04-14  Diego Novillo  <dnovillo@google.com>
23838
23839         * doc/plugins.texi: New.
23840         * doc/gccint.texi: Add reference to Plugins chapter.
23841         * doc/invoke.texi: Document -fplugin and -fplugin-arg
23842         * diagnostic.c (diagnostic_report_diagnostic): Warn about
23843         loaded plugins, if any.
23844         * timevar.def (TV_PLUGIN_INIT): Define.
23845         (TV_PLUGIN_RUN): Define.
23846         * plugin.c: Include timevar.h
23847         (plugins_active_p): New.
23848         (dump_active_plugins): New.
23849         (debug_active_plugins): New.
23850
23851 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
23852
23853         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
23854         library paths.
23855         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
23856
23857 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
23858
23859         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
23860         the same as a minus without a shift.
23861
23862 2009-04-14  Nick Clifton  <nickc@redhat.com>
23863
23864         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
23865         comparisons with small integers will always produce a short
23866         branch.
23867
23868 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
23869
23870         Merge:
23871         2008-12-19  Diego Novillo  <dnovillo@google.com>
23872
23873         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
23874
23875 2009-04-14  Richard Guenther  <rguenther@suse.de>
23876
23877         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
23878         verification.
23879         (verify_gimple_assign_binary): Likewise.  Handle shifts and
23880         rotates correctly.
23881         (verify_gimple_phi): Print the mismatched argument position.
23882         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
23883         Fix types.
23884         (vect_update_init_of_dr): Likewise.
23885         * matrix-reorg.c (transform_access_sites): Do what the
23886         comment suggests.
23887         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
23888
23889 2009-04-13  Michael Eager  <eager@eagercon.com>
23890
23891         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
23892         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
23893         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
23894         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
23895         remove duplicate config
23896
23897 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
23898
23899         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
23900         file_name:line_number type locator of the call site.
23901
23902 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
23903
23904         * genautomata.c: Put blank after comma.
23905         (automaton_decls): New.
23906         (struct unit_usage): Add comments to member next.
23907         (store_alt_unit_usage): Keep the list ordered.
23908         (unit_present_on_list_p, equal_alternatives_p): New.
23909         (check_regexp_units_distribution): Check units distribution
23910         correctness correctly.
23911         (main): Don't write automata if error is found.  Return correct
23912         exit code.
23913
23914         * config/m68k/cf.md (cfv4_ds): Remove.
23915         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
23916         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
23917
23918         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
23919         power4-load-ext, power4-store, power4-store-update,
23920         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
23921         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
23922         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
23923         power4-sqrt, power4-isync): Modify reservation to make correct
23924         unit distribution to automata.
23925
23926         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
23927         power5-store-update, power5-two, power5-three, power5-lmul,
23928         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
23929
23930 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
23931
23932         * except.c (pass_set_nothrow_function_flags): Set name and add
23933         TODO_dump_func.
23934         (set_nothrow_function_flags): Mention in the dump file when
23935         changing a function to nothrow.
23936
23937 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
23938
23939         PR/39066
23940         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
23941         instead of unsigned long.
23942
23943 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23944
23945         * config/arm/arm.c (return_used_this_function): Remove.
23946         (arm_output_function_prologue): Remove use of
23947         return_used_this_function.
23948         (output_return_instruction): Replace use of
23949         return_used_this_function
23950         by cfun->machine->return_used_this_function.
23951         (arm_output_epilogue): Likewise.
23952         (arm_output_function_epilogue): Likewise.
23953         (thumb_unexpanded_epilogue): Likewise.
23954         * config/arm/arm.h (struct machine_function):
23955         New member return_used_this_function.
23956
23957 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
23958
23959         * doc/install.texi: Correct description of default directory for
23960         --with-gxx-include-dir.
23961
23962 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
23963
23964         * fold-const.c (build_range_check): Properly deal with enumeral and
23965         boolean base types.
23966
23967 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
23968
23969         * doc/invoke.texi (max_gcse_passes): Remove documentation.
23970         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
23971         * params.h (MAX_GCSE_PASSES): Remove.
23972         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
23973         in sequence.  Remove ability to run multiple passes.
23974         (bypass_jumps): Report run as third CPROP pass.
23975
23976 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
23977
23978         PR middle-end/39651
23979         * except.c (can_throw_external): Look at each insn in a SEQUENCE
23980         when deciding whether the whole SEQUENCE can throw.
23981
23982 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
23983
23984         PR target/39740
23985         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
23986         offseted label references.
23987
23988 2009-04-11  Jan Hubicka  <jh@suse.cz>
23989
23990         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
23991
23992 2009-04-11  Richard Guenther  <rguenther@suse.de>
23993
23994         PR middle-end/39732
23995         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
23996         return variables as TREE_ADDRESSABLE.
23997
23998 2009-04-11  Richard Guenther  <rguenther@suse.de>
23999
24000         PR tree-optimization/39713
24001         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
24002         reference trees have SSA_NAME operands.
24003
24004 2009-04-11  Richard Guenther  <rguenther@suse.de>
24005
24006         PR c/39712
24007         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
24008         address expressions.
24009
24010 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
24011
24012         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
24013         match changes in Cygwin 1.7
24014         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
24015         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
24016
24017 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
24018
24019         PR tree-optimization/39701
24020         * doc/invoke.texi (Optimization Options): Document change in
24021         meaning and initialization of -fdelete-null-pointer-checks.
24022
24023 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
24024
24025         PR middle-end/39701
24026         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
24027
24028         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
24029         here.
24030
24031         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
24032
24033 2009-04-10  Chao-ying Fu  <fu@mips.com>
24034
24035         * doc/tm.texi (Instruction Output): Document
24036         TARGET_ASM_FINAL_POSTSCAN_INSN.
24037         * target.h (final_postscan_insn): New field in asm_out.
24038         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
24039         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
24040         * final.c (final_scan_insn): Call
24041         targetm.asm_out.final_postscan_insn after outputting
24042         an asm macro and a normal instruction.
24043
24044         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
24045         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
24046         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
24047         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
24048         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
24049
24050 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
24051
24052         PR middle-end/39701
24053         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
24054         variables as non-NULL even with -fdelete-null-pointer-checks.
24055
24056 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
24057
24058         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
24059
24060 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
24061
24062         PR target/39678
24063         * config/i386/i386.c (classify_argument): Handle SCmode with
24064         (bit_offset % 64) != 0.
24065
24066 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
24067
24068         * doc/invoke.texi (Optimize Options): Add cross-reference to
24069         -Q --help=optimizers examples.
24070
24071 2009-04-10  Ben Elliston  <bje@au.ibm.com>
24072
24073         PR target/36800
24074         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
24075         regalign for the reg == fpr and TDmode case.
24076
24077 2009-04-09  David Ayers  <ayers@fsfe.org>
24078
24079         PR objc/29200
24080         * objc/objc-act.c (warn_with_method): Remove helper function.
24081         (check_duplicates): Call warning and inform directly.
24082         (really_start_method): Likewise.
24083
24084 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
24085
24086         * expmed.c (expand_divmod): Always use a comparison for a division
24087         by a large unsigned integer.
24088
24089         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
24090         for things others than variables or functions as nonzero.
24091
24092 2009-04-09  Nick Clifton  <nickc@redhat.com>
24093
24094         * unwind-compat.c: Change copyright header to refer to version
24095         3 of the GNU General Public License with version 3.1 of the
24096         GCC Runtime Library Exception and to point readers at the
24097         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
24098         * config/alpha/crtfastmath.c: Likewise.
24099         * config/alpha/linux-unwind.h: Likewise.
24100         * config/alpha/qrnnd.asm: Likewise.
24101         * config/alpha/vms-crt0-64.c: Likewise.
24102         * config/alpha/vms-crt0.c: Likewise.
24103         * config/alpha/vms-dwarf2.asm: Likewise.
24104         * config/alpha/vms-dwarf2eh.asm: Likewise.
24105         * config/alpha/vms-psxcrt0-64.c: Likewise.
24106         * config/alpha/vms-psxcrt0.c: Likewise.
24107         * config/alpha/vms_tramp.asm: Likewise.
24108         * config/arc/initfini.c: Likewise.
24109         * config/arc/lib1funcs.asm: Likewise.
24110         * config/arm/bpabi-v6m.S: Likewise.
24111         * config/arm/bpabi.S: Likewise.
24112         * config/arm/bpabi.c: Likewise.
24113         * config/arm/crti.asm: Likewise.
24114         * config/arm/crtn.asm: Likewise.
24115         * config/arm/ieee754-df.S: Likewise.
24116         * config/arm/ieee754-sf.S: Likewise.
24117         * config/arm/lib1funcs.asm: Likewise.
24118         * config/arm/libunwind.S: Likewise.
24119         * config/arm/linux-atomic.c: Likewise.
24120         * config/arm/mmintrin.h: Likewise.
24121         * config/arm/pr-support.c: Likewise.
24122         * config/arm/unaligned-funcs.c: Likewise.
24123         * config/arm/unwind-arm.c: Likewise.
24124         * config/arm/unwind-arm.h: Likewise.
24125         * config/avr/libgcc.S: Likewise.
24126         * config/bfin/crti.s: Likewise.
24127         * config/bfin/crtlibid.s: Likewise.
24128         * config/bfin/crtn.s: Likewise.
24129         * config/bfin/lib1funcs.asm: Likewise.
24130         * config/bfin/linux-unwind.h: Likewise.
24131         * config/cris/arit.c: Likewise.
24132         * config/cris/cris_abi_symbol.c: Likewise.
24133         * config/darwin-64.c: Likewise.
24134         * config/darwin-crt2.c: Likewise.
24135         * config/darwin-crt3.c: Likewise.
24136         * config/darwin.h: Likewise.
24137         * config/dbxelf.h: Likewise.
24138         * config/dfp-bit.c: Likewise.
24139         * config/dfp-bit.h: Likewise.
24140         * config/elfos.h: Likewise.
24141         * config/fixed-bit.c: Likewise.
24142         * config/fixed-bit.h: Likewise.
24143         * config/fp-bit.c: Likewise.
24144         * config/fp-bit.h: Likewise.
24145         * config/fr30/crti.asm: Likewise.
24146         * config/fr30/crtn.asm: Likewise.
24147         * config/fr30/lib1funcs.asm: Likewise.
24148         * config/freebsd-spec.h: Likewise.
24149         * config/frv/cmovd.c: Likewise.
24150         * config/frv/cmovh.c: Likewise.
24151         * config/frv/cmovw.c: Likewise.
24152         * config/frv/frvbegin.c: Likewise.
24153         * config/frv/frvend.c: Likewise.
24154         * config/frv/lib1funcs.asm: Likewise.
24155         * config/glibc-stdint.h: Likewise.
24156         * config/h8300/clzhi2.c: Likewise.
24157         * config/h8300/crti.asm: Likewise.
24158         * config/h8300/crtn.asm: Likewise.
24159         * config/h8300/ctzhi2.c: Likewise.
24160         * config/h8300/fixunssfsi.c: Likewise.
24161         * config/h8300/lib1funcs.asm: Likewise.
24162         * config/h8300/parityhi2.c: Likewise.
24163         * config/h8300/popcounthi2.c: Likewise.
24164         * config/i386/ammintrin.h: Likewise.
24165         * config/i386/att.h: Likewise.
24166         * config/i386/avxintrin.h: Likewise.
24167         * config/i386/biarch64.h: Likewise.
24168         * config/i386/bmmintrin.h: Likewise.
24169         * config/i386/cpuid.h: Likewise.
24170         * config/i386/cross-stdarg.h: Likewise.
24171         * config/i386/crtfastmath.c: Likewise.
24172         * config/i386/crtprec.c: Likewise.
24173         * config/i386/cygming-crtbegin.c: Likewise.
24174         * config/i386/cygming-crtend.c: Likewise.
24175         * config/i386/cygwin.asm: Likewise.
24176         * config/i386/emmintrin.h: Likewise.
24177         * config/i386/gmm_malloc.h: Likewise.
24178         * config/i386/gthr-win32.c: Likewise.
24179         * config/i386/i386.h: Likewise.
24180         * config/i386/immintrin.h: Likewise.
24181         * config/i386/linux-unwind.h: Likewise.
24182         * config/i386/linux64.h: Likewise.
24183         * config/i386/mm3dnow.h: Likewise.
24184         * config/i386/mmintrin-common.h: Likewise.
24185         * config/i386/mmintrin.h: Likewise.
24186         * config/i386/nmmintrin.h: Likewise.
24187         * config/i386/pmm_malloc.h: Likewise.
24188         * config/i386/pmmintrin.h: Likewise.
24189         * config/i386/smmintrin.h: Likewise.
24190         * config/i386/sol2-c1.asm: Likewise.
24191         * config/i386/sol2-ci.asm: Likewise.
24192         * config/i386/sol2-cn.asm: Likewise.
24193         * config/i386/sol2-gc1.asm: Likewise.
24194         * config/i386/tmmintrin.h: Likewise.
24195         * config/i386/unix.h: Likewise.
24196         * config/i386/w32-unwind.h: Likewise.
24197         * config/i386/wmmintrin.h: Likewise.
24198         * config/i386/x86-64.h: Likewise.
24199         * config/i386/x86intrin.h: Likewise.
24200         * config/i386/xmmintrin.h: Likewise.
24201         * config/ia64/crtbegin.asm: Likewise.
24202         * config/ia64/crtend.asm: Likewise.
24203         * config/ia64/crtfastmath.c: Likewise.
24204         * config/ia64/crti.asm: Likewise.
24205         * config/ia64/crtn.asm: Likewise.
24206         * config/ia64/fde-glibc.c: Likewise.
24207         * config/ia64/lib1funcs.asm: Likewise.
24208         * config/ia64/linux-unwind.h: Likewise.
24209         * config/ia64/quadlib.c: Likewise.
24210         * config/ia64/unwind-ia64.c: Likewise.
24211         * config/linux.h: Likewise.
24212         * config/m32c/m32c-lib1.S: Likewise.
24213         * config/m32c/m32c-lib2-trapv.c: Likewise.
24214         * config/m32c/m32c-lib2.c: Likewise.
24215         * config/m32r/initfini.c: Likewise.
24216         * config/m68hc11/larith.asm: Likewise.
24217         * config/m68hc11/m68hc11-crt0.S: Likewise.
24218         * config/m68k/cf.md: Likewise.
24219         * config/m68k/crti.s: Likewise.
24220         * config/m68k/crtn.s: Likewise.
24221         * config/m68k/lb1sf68.asm: Likewise.
24222         * config/m68k/linux-unwind.h: Likewise.
24223         * config/mcore/crti.asm: Likewise.
24224         * config/mcore/crtn.asm: Likewise.
24225         * config/mcore/lib1.asm: Likewise.
24226         * config/mips/linux-unwind.h: Likewise.
24227         * config/mips/loongson.h: Likewise.
24228         * config/mips/mips16.S: Likewise.
24229         * config/mmix/crti.asm: Likewise.
24230         * config/mmix/crtn.asm: Likewise.
24231         * config/pa/fptr.c: Likewise.
24232         * config/pa/hpux-unwind.h: Likewise.
24233         * config/pa/lib2funcs.asm: Likewise.
24234         * config/pa/linux-atomic.c: Likewise.
24235         * config/pa/linux-unwind.h: Likewise.
24236         * config/pa/milli64.S: Likewise.
24237         * config/pa/quadlib.c: Likewise.
24238         * config/pa/stublib.c: Likewise.
24239         * config/picochip/libgccExtras/adddi3.asm: Likewise.
24240         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
24241         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
24242         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
24243         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
24244         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
24245         * config/picochip/libgccExtras/divmod15.asm: Likewise.
24246         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
24247         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
24248         * config/picochip/libgccExtras/longjmp.asm: Likewise.
24249         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
24250         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
24251         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
24252         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
24253         * config/picochip/libgccExtras/setjmp.asm: Likewise.
24254         * config/picochip/libgccExtras/subdi3.asm: Likewise.
24255         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
24256         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
24257         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
24258         * config/rs6000/750cl.h: Likewise.
24259         * config/rs6000/altivec.h: Likewise.
24260         * config/rs6000/biarch64.h: Likewise.
24261         * config/rs6000/crtresfpr.asm: Likewise.
24262         * config/rs6000/crtresgpr.asm: Likewise.
24263         * config/rs6000/crtresxfpr.asm: Likewise.
24264         * config/rs6000/crtresxgpr.asm: Likewise.
24265         * config/rs6000/crtsavfpr.asm: Likewise.
24266         * config/rs6000/crtsavgpr.asm: Likewise.
24267         * config/rs6000/darwin-asm.h: Likewise.
24268         * config/rs6000/darwin-fallback.c: Likewise.
24269         * config/rs6000/darwin-fpsave.asm: Likewise.
24270         * config/rs6000/darwin-ldouble.c: Likewise.
24271         * config/rs6000/darwin-tramp.asm: Likewise.
24272         * config/rs6000/darwin-unwind.h: Likewise.
24273         * config/rs6000/darwin-vecsave.asm: Likewise.
24274         * config/rs6000/darwin-world.asm: Likewise.
24275         * config/rs6000/e500crtres32gpr.asm: Likewise.
24276         * config/rs6000/e500crtres64gpr.asm: Likewise.
24277         * config/rs6000/e500crtres64gprctr.asm: Likewise.
24278         * config/rs6000/e500crtrest32gpr.asm: Likewise.
24279         * config/rs6000/e500crtrest64gpr.asm: Likewise.
24280         * config/rs6000/e500crtresx32gpr.asm: Likewise.
24281         * config/rs6000/e500crtresx64gpr.asm: Likewise.
24282         * config/rs6000/e500crtsav32gpr.asm: Likewise.
24283         * config/rs6000/e500crtsav64gpr.asm: Likewise.
24284         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
24285         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
24286         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
24287         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
24288         * config/rs6000/eabi-ci.asm: Likewise.
24289         * config/rs6000/eabi-cn.asm: Likewise.
24290         * config/rs6000/eabi.asm: Likewise.
24291         * config/rs6000/linux-unwind.h: Likewise.
24292         * config/rs6000/linux64.h: Likewise.
24293         * config/rs6000/paired.h: Likewise.
24294         * config/rs6000/paired.md: Likewise.
24295         * config/rs6000/ppc64-fp.c: Likewise.
24296         * config/rs6000/ppu_intrinsics.h: Likewise.
24297         * config/rs6000/rs6000.h: Likewise.
24298         * config/rs6000/si2vmx.h: Likewise.
24299         * config/rs6000/sol-ci.asm: Likewise.
24300         * config/rs6000/sol-cn.asm: Likewise.
24301         * config/rs6000/spe.h: Likewise.
24302         * config/rs6000/spu2vmx.h: Likewise.
24303         * config/rs6000/sysv4.h: Likewise.
24304         * config/rs6000/tramp.asm: Likewise.
24305         * config/rs6000/vec_types.h: Likewise.
24306         * config/s390/linux-unwind.h: Likewise.
24307         * config/s390/tpf-unwind.h: Likewise.
24308         * config/score/crti.asm: Likewise.
24309         * config/score/crtn.asm: Likewise.
24310         * config/sh/crt1.asm: Likewise.
24311         * config/sh/crti.asm: Likewise.
24312         * config/sh/crtn.asm: Likewise.
24313         * config/sh/divtab-sh4-300.c: Likewise.
24314         * config/sh/divtab-sh4.c: Likewise.
24315         * config/sh/divtab.c: Likewise.
24316         * config/sh/lib1funcs-4-300.asm: Likewise.
24317         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
24318         * config/sh/lib1funcs.asm: Likewise.
24319         * config/sh/lib1funcs.h: Likewise.
24320         * config/sh/linux-atomic.asm: Likewise.
24321         * config/sh/linux-unwind.h: Likewise.
24322         * config/sh/shmedia.h: Likewise.
24323         * config/sh/sshmedia.h: Likewise.
24324         * config/sh/ushmedia.h: Likewise.
24325         * config/sparc/crtfastmath.c: Likewise.
24326         * config/sparc/linux-unwind.h: Likewise.
24327         * config/sparc/sol2-c1.asm: Likewise.
24328         * config/sparc/sol2-ci.asm: Likewise.
24329         * config/sparc/sol2-cn.asm: Likewise.
24330         * config/spu/divmodti4.c: Likewise.
24331         * config/spu/divv2df3.c: Likewise.
24332         * config/spu/float_disf.c: Likewise.
24333         * config/spu/float_unsdidf.c: Likewise.
24334         * config/spu/float_unsdisf.c: Likewise.
24335         * config/spu/float_unssidf.c: Likewise.
24336         * config/spu/mfc_multi_tag_release.c: Likewise.
24337         * config/spu/mfc_multi_tag_reserve.c: Likewise.
24338         * config/spu/mfc_tag_release.c: Likewise.
24339         * config/spu/mfc_tag_reserve.c: Likewise.
24340         * config/spu/mfc_tag_table.c: Likewise.
24341         * config/spu/multi3.c: Likewise.
24342         * config/spu/spu_internals.h: Likewise.
24343         * config/spu/spu_intrinsics.h: Likewise.
24344         * config/spu/spu_mfcio.h: Likewise.
24345         * config/spu/vec_types.h: Likewise.
24346         * config/spu/vmx2spu.h: Likewise.
24347         * config/stormy16/stormy16-lib2.c: Likewise.
24348         * config/svr4.h: Likewise.
24349         * config/sync.c: Likewise.
24350         * config/v850/lib1funcs.asm: Likewise.
24351         * config/vxlib-tls.c: Likewise.
24352         * config/vxlib.c: Likewise.
24353         * config/vxworks-dummy.h: Likewise.
24354         * config/xtensa/crti.asm: Likewise.
24355         * config/xtensa/crtn.asm: Likewise.
24356         * config/xtensa/ieee754-df.S: Likewise.
24357         * config/xtensa/ieee754-sf.S: Likewise.
24358         * config/xtensa/lib1funcs.asm: Likewise.
24359         * config/xtensa/lib2funcs.S: Likewise.
24360         * config/xtensa/linux-unwind.h: Likewise.
24361         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
24362         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
24363         * coretypes.h: Likewise.
24364         * crtstuff.c: Likewise.
24365         * defaults.h: Likewise.
24366         * dwarf2.h: Likewise.
24367         * emutls.c: Likewise.
24368         * gbl-ctors.h: Likewise.
24369         * gcov-io.h: Likewise.
24370         * ginclude/float.h: Likewise.
24371         * ginclude/iso646.h: Likewise.
24372         * ginclude/stdarg.h: Likewise.
24373         * ginclude/stdbool.h: Likewise.
24374         * ginclude/stddef.h: Likewise.
24375         * ginclude/stdfix.h: Likewise.
24376         * ginclude/stdint-gcc.h: Likewise.
24377         * ginclude/tgmath.h: Likewise.
24378         * gthr-aix.h: Likewise.
24379         * gthr-dce.h: Likewise.
24380         * gthr-gnat.c: Likewise.
24381         * gthr-gnat.h: Likewise.
24382         * gthr-lynx.h: Likewise.
24383         * gthr-mipssde.h: Likewise.
24384         * gthr-nks.h: Likewise.
24385         * gthr-posix.c: Likewise.
24386         * gthr-posix.h: Likewise.
24387         * gthr-posix95.h: Likewise.
24388         * gthr-rtems.h: Likewise.
24389         * gthr-single.h: Likewise.
24390         * gthr-solaris.h: Likewise.
24391         * gthr-tpf.h: Likewise.
24392         * gthr-vxworks.h: Likewise.
24393         * gthr-win32.h: Likewise.
24394         * gthr.h: Likewise.
24395         * libgcc2.c: Likewise.
24396         * libgcc2.h: Likewise.
24397         * libgcov.c: Likewise.
24398         * tsystem.h: Likewise.
24399         * typeclass.h: Likewise.
24400         * unwind-c.c: Likewise.
24401         * unwind-compat.h: Likewise.
24402         * unwind-dw2-fde-compat.c: Likewise.
24403         * unwind-dw2-fde-darwin.c: Likewise.
24404         * unwind-dw2-fde-glibc.c: Likewise.
24405         * unwind-dw2-fde.c: Likewise.
24406         * unwind-dw2-fde.h: Likewise.
24407         * unwind-dw2.c: Likewise.
24408         * unwind-dw2.h: Likewise.
24409         * unwind-generic.h: Likewise.
24410         * unwind-pe.h: Likewise.
24411         * unwind-sjlj.c: Likewise.
24412         * unwind.inc: Likewise.
24413         * config/arm/neon-gen.ml: Change generated copyright header to
24414         refer to version 3 of the GNU General Public License with
24415         version 3.1 of the GCC Runtime Library Exception and to point
24416         readers at the COPYING3 and COPYING3.RUNTIME files and the
24417         FSF's license web page.
24418         * config/arm/arm_neon.h: Regenerate.
24419
24420 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
24421
24422         * config/cris/cris.md: Change copyright header to refer to version
24423         3 of the GNU General Public License.
24424         * doc/install.texi2html: Change copyright header to refer to version
24425         3 of the GNU General Public License and to point readers at the
24426         COPYING3 file and the FSF's license web page.
24427         * config/vax/linux.h: Likewise.
24428
24429 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
24430
24431         * config/i386/i386.md (cmpcc): New.
24432         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
24433         (sync_compare_and_swap_cc*): Delete.
24434
24435         * config/s390/s390.c (s390_compare_emitted): Remove.
24436         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
24437         s390_compare_emitted used to be handled.  Assert that modes match.
24438         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
24439         refer to sync_compare_and_swap_ccsi.
24440         * config/s390/s390.h (s390_compare_emitted): Remove.
24441         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
24442         instead of s390_compare_emitted.
24443         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
24444         instead of s390_compare_emitted.
24445         * config/s390/s390.md (cmpcc): New.
24446         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
24447         CC_REGNUM, do not pretend it's set.
24448         (sync_compare_and_swap_cc*): Delete.
24449         * config/s390/predicates.md (cc_reg_operand): New.
24450
24451         * expr.c (sync_compare_and_swap_cc): Delete.
24452         * optabs.h (sync_compare_and_swap_cc): Delete.
24453         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
24454         is being used with can_compare_p.
24455         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
24456         (find_cc_set): New.
24457         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
24458         look for a MODE_CC set instead.  Use emit_store_flag.
24459         (expand_compare_and_swap_loop): Likewise, with some additional
24460         complication to avoid a force_reg when useless.  Use
24461         emit_cmp_and_jump_insns.
24462         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
24463         * doc/md.texi (sync_compare_and_swap_cc): Merge with
24464         sync_compare_and_swap documentation.
24465
24466 2009-04-09  Jan Hubicka  <jh@suse.cz>
24467
24468         * except.c (find_prev_try): Break out from ....
24469         (duplicate_eh_regions): ... here; properly update prev_try pointers
24470         when duplication part of tree.
24471         (dump_eh_tree): Improve dumping.
24472         (verify_eh_region): New.
24473         (verify_eh_tree): Use it.
24474
24475 2009-04-06  Richard Guenther  <rguenther@suse.de>
24476
24477         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
24478         &ARRAY addresses by adjusting their types and prepending
24479         a conversion.
24480         * tree-cfg.c (verify_gimple_assign_single): Verify that
24481         addresses are correct.
24482
24483 2009-04-09  Richard Guenther  <rguenther@suse.de>
24484
24485         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
24486         indices into an array reference if possible.
24487         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
24488         Fold POINTER_PLUS_EXPR statements with invariant address.
24489
24490 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
24491
24492         PR target/39634
24493         * config.gcc (powerpc64-*-linux*): Always build biarch.
24494
24495 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
24496
24497         PR c/39613
24498         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
24499         it and pedwarn if this results in an INTEGER_CST.
24500
24501 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24502
24503         * doc/install.texi: Update minimum GMP version.  Remove obsolete
24504         text in MPFR section.
24505
24506 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
24507
24508         * dwarf2out.c (class_scope_p): New static inline.
24509         (class_or_namespace_scope_p): Use it.
24510         (gen_variable_die): Use DW_TAG_member tag for static data member
24511         declarations instead of DW_TAG_variable.
24512
24513         PR middle-end/39573
24514         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
24515         variables.
24516
24517 2009-04-08  Richard Guenther  <rguenther@suse.de>
24518
24519         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
24520         valueize random data.
24521
24522 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
24523
24524         * config.gcc (aix tm_file):  Add aix-stdint.h.
24525         (aix tm clause use_gcc_stdint):  Set to wrap.
24526         * config/rs6000/aix-stdint.h:  New file.
24527
24528 2009-04-08  Richard Guenther  <rguenther@suse.de>
24529
24530         PR middle-end/36291
24531         * tree-dfa.c (add_referenced_var): Do not recurse into
24532         global initializers.
24533         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
24534         exposed variables.
24535         (fold_const_aggregate_ref): Likewise.
24536
24537 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
24538
24539         * recog.c (ordered_comparison_operator): New.
24540         * gensupport.c (std_preds): Add it.
24541         * doc/md.texi (Machine-Independent Predicates): Document it.
24542
24543 2009-04-08  Jan Hubicka  <jh@suse.cz>
24544
24545         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
24546         * function.h (rtl_eh): Remove exception_handler_label_map.
24547         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
24548         remove_exception_handler_label, for_each_eh_label_1): Remove.
24549         (rtl_remove_unreachable_regions): Remove.
24550         (convert_from_eh_region_ranges): Do not remove unreachable regions.
24551         (find_exception_handler_labels): Don't build the hashtable.
24552         (maybe_remove_eh_handler): Remove.
24553         (for_each_eh_label): Rewrite to walk the tree.
24554         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
24555         * except.h (maybe_remove_eh_handler): Remove.
24556         * passes.c (init_optimization_passes): Schedule second EH cleanup
24557         before out-of-ssa.
24558         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
24559         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
24560
24561 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
24562
24563         * genoutput.c (validate_optab_operands): New.
24564         (gen_insn, gen_expand): Call it.
24565
24566         * genflags.c (gen_insn): Detect misused iterators.
24567         (main): Pass line_no to gen_insn, exit with status 1 on error.
24568
24569         * genextract.c (line_no): Make global.
24570         (VEC_safe_set_locstr): Change assertion to error message.
24571         (main): Exit with status 1 on error.
24572
24573 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
24574
24575         PR c/39614
24576         PR c/39673
24577         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
24578         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
24579         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
24580         * c-convert.c (convert): Do not call fold on results of conversion
24581         functions when the result is a C_MAYBE_CONST_EXPR.
24582         * c-parser.c (c_parser_postfix_expression): Do not fold condition
24583         of __builtin_choose_expr.
24584         * c-typeck.c (remove_c_maybe_const_expr): New.
24585         (build_unary_op, build_conditional_expr, build_compound_expr,
24586         build_binary_op, c_objc_common_truthvalue_conversion): Call
24587         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
24588         integer operands.
24589
24590 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
24591
24592         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
24593         CODE to produce a new one. Add a prototype to use fold_convert_const
24594
24595 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
24596
24597         PR bootstrap/39660
24598         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
24599         mix declarations and code.
24600
24601 2009-04-08  Ben Elliston  <bje@au.ibm.com>
24602
24603         * gcc.c: Replace `CC' with `GCC' throughout.
24604
24605 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
24606
24607         * doc/invoke.texi: Document Atom support.
24608
24609 2009-04-07  Jason Merrill  <jason@redhat.com>
24610
24611         PR c++/25185
24612         * c-common.h, c-common.c: Add flag_pretty_templates.
24613         * c-opts.c (c_common_handle_option): Set it.
24614         * c.opt: Add -fno-pretty-templates.
24615         * doc/invoke.texi (C++ Dialect Options): Likewise.
24616
24617 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
24618
24619         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
24620         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
24621         (ia64_expand_builtin): Likewise.
24622
24623 2009-04-07  Martin Jambor  <mjambor@suse.cz>
24624
24625         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
24626         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
24627         ADDR_EXPRS are include too.
24628
24629 2009-04-07  Richard Guenther  <rguenther@suse.de>
24630
24631         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
24632         decls are only used if passes as parameters or if they are
24633         local statics and the call is not to a builtin.
24634         (call_may_clobber_ref_p_1): Likewise.
24635
24636 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
24637
24638         * expr.c (do_store_flag): Remove last argument.  Simplify code
24639         to avoid duplication of tests already done by can_compare_p.
24640         (expand_expr_real_1): Adjust caller.
24641
24642 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
24643
24644         * optabs.c (can_compare_p): Test the predicate of a
24645         cbranch and cstore pattern.
24646
24647 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
24648
24649         * expr.c (convert_move): Use emit_store_flag instead of
24650         "emulating" it.
24651
24652 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
24653
24654         * config/i386/i386.c (ix86_compare_emitted): Remove.
24655         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
24656         ix86_compare_op0 like ix86_compare_emitted used to be handled.
24657         * config/i386/i386.h (ix86_compare_emitted): Remove.
24658         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
24659         instead of ix86_compare_emitted.
24660         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
24661
24662 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
24663
24664         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
24665         Add t-sysroot-suffix to tmake_file.
24666         * config/print-sysroot-suffix.sh: New file.
24667         * config/t-sysroot-suffix: New file.
24668
24669 2009-04-07  Ben Elliston  <bje@au.ibm.com>
24670
24671         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
24672         as the latter produces a warning when the target does not support
24673         infinity.
24674
24675 2009-04-07  Ben Elliston  <bje@au.ibm.com>
24676
24677         * dfp.c: Replace type punning assignments with memcpy throughout.
24678         * Makefile.in (dfp.o-warn): Remove.
24679
24680 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
24681
24682         PR target/39634
24683         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
24684         Include soft-fp/t-softfp after rs6000/t-linux64.
24685
24686 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
24687
24688         * stor-layout.c (set_sizetype): Use the full precision of their
24689         machine mode for bitsize types.
24690
24691 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
24692
24693         * config/i386/i386.md: Revert 2 accidental checkins.
24694
24695 2009-04-06  Joey Ye  <joey.ye@intel.com>
24696             Xuepeng Guo  <xuepeng.guo@intel.com>
24697             H.J. Lu  <hongjiu.lu@intel.com>
24698
24699         Atom pipeline model, tuning and insn selection.
24700         * config.gcc (atom): Add atom config options and target.
24701
24702         * config/i386/atom.md: New.
24703
24704         * config/i386/i386.c (atom_cost): New cost.
24705         (m_ATOM): New macro flag.
24706         (initial_ix86_tune_features): Set m_ATOM.
24707         (x86_accumulate_outgoing_args): Likewise.
24708         (x86_arch_always_fancy_math_387): Likewise.
24709         (processor_target): Add Atom cost.
24710         (cpu_names): Add Atom cpu name.
24711         (override_options): Set Atom ISA.
24712         (ix86_issue_rate): New case PROCESSOR_ATOM.
24713         (ix86_adjust_cost): Likewise.
24714
24715         * config/i386/i386.h (TARGET_ATOM): New target macro.
24716         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
24717         (TARGET_OPT_AGU): New target option.
24718         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
24719         (processor_type): Add PROCESSOR_ATOM.
24720
24721         * config/i386/i386.md (cpu): Add new value "atom".
24722         (use_carry, movu): New attr.
24723         (atom.md): Include atom.md.
24724         (adddi3_carry_rex64): Set attr "use_carry".
24725         (addqi3_carry): Likewise.
24726         (addhi3_carry): Likewise.
24727         (addsi3_carry): Likewise.
24728         (*addsi3_carry_zext): Likewise.
24729         (subdi3_carry_rex64): Likewise.
24730         (subqi3_carry): Likewise.
24731         (subhi3_carry): Likewise.
24732         (subsi3_carry): Likewise.
24733         (x86_movdicc_0_m1_rex64): Likewise.
24734         (*x86_movdicc_0_m1_se): Likewise.
24735         (x86_movsicc_0_m1): Likewise.
24736         (*x86_movsicc_0_m1_se): Likewise.
24737         (*adddi_1_rex64): Emit add insn as much as possible.
24738         (*addsi_1): Likewise.
24739         (return_internal): Set atom_unit.
24740         (return_internal_long): Likewise.
24741         (return_pop_internal): Likewise.
24742         (*rcpsf2_sse): Set atom_sse_attr attr.
24743         (*qrt<mode>2_sse): Likewise.
24744         (*prefetch_sse): Likewise.
24745
24746         * config/i386/i386-c.c (ix86_target_macros_internal): New case
24747         PROCESSOR_ATOM.
24748         (ix86_target_macros_internal): Likewise.
24749
24750         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
24751         (*prefetch_sse_rex): Likewise.
24752         (sse_rcpv4sf2): Likewise.
24753         (sse_vmrcpv4sf2): Likewise.
24754         (sse_sqrtv4sf2): Likewise.
24755         (<sse>_vmsqrt<mode>2): Likewise.
24756         (sse_ldmxcsr): Likewise.
24757         (sse_stmxcsr): Likewise.
24758         (*sse_sfence): Likewise.
24759         (sse2_clflush): Likewise.
24760         (*sse2_mfence): Likewise.
24761         (*sse2_lfence): Likewise.
24762         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
24763         (<sse>_movup<ssemodesuffixf2c>): Likewise.
24764         (avx_movdqu<avxmodesuffix>): Likewise.
24765         (avx_lddqu<avxmodesuffix>): Likewise.
24766         (sse2_movntv2di): Change attr "type" to "ssemov".
24767         (sse2_movntsi): Likewise.
24768         (rsqrtv8sf2): Change attr "type" to "sseadd".
24769         (sse3_addsubv2df3): Set attr "atom_unit".
24770         (sse3_h<plusminus_insn>v4sf3): Likewise.
24771         (*sse2_pmaddwd): Likewise.
24772         (*vec_extractv2di_1_rex64): Likewise.
24773         (*vec_extractv2di_1_avx): Likewise.
24774         (sse2_psadbw): Likewise.
24775         (ssse3_phaddwv8hi3): Likewise.
24776         (ssse3_phaddwv4hi3): Likewise.
24777         (ssse3_phadddv4si3): Likewise.
24778         (ssse3_phadddv2si3): Likewise.
24779         (ssse3_phaddswv8hi3): Likewise.
24780         (ssse3_phaddswv4hi3): Likewise.
24781         (ssse3_phsubwv8hi3): Likewise.
24782         (ssse3_phsubwv4hi3): Likewise.
24783         (ssse3_phsubdv4si3): Likewise.
24784         (ssse3_phsubdv2si3): Likewise.
24785         (ssse3_phsubswv8hi3): Likewise.
24786         (ssse3_phsubswv4hi3): Likewise.
24787         (ssse3_pmaddubsw128): Likewise.
24788         (sse3_pmaddubsw: Likewise.
24789         (ssse3_palignrti): Likewise.
24790         (ssse3_palignrdi): Likewise.
24791
24792 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
24793
24794         * doc/install.texi (Specific): Fix two cross-references to MinGW.
24795
24796 2009-04-06  Richard Guenther  <rguenther@suse.de>
24797
24798         PR tree-optimization/28868
24799         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
24800         of which PHI results we inserted.
24801         (insert_into_preds_of_block): Record inserted PHIs.
24802         (eliminate): Eliminate redundant PHI nodes.
24803         (init_pre): Init inserted_phi_names.
24804
24805 2009-04-06  Richard Guenther  <rguenther@suse.de>
24806
24807         PR tree-optimization/39643
24808         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
24809         IMAGPART_EXPRs of complex constants.
24810         (execute_fold_all_builtins): If we folded a call queue
24811         TODO_update_address_taken.
24812
24813 2009-04-06  Jan Hubicka  <jh@suse.cz>
24814
24815         PR middle-end/39659
24816         * except.c (remove_unreachable_regions): Propagate may_contain_throw
24817         flag.
24818
24819 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
24820
24821         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
24822         delay slot.
24823         (ic_invalidate_array): Likewise.
24824
24825 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
24826
24827         * calls.c (emit_library_call_value_1): Fix a problem with parameter
24828         alignment for library calls.
24829
24830 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
24831
24832         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
24833         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
24834         * config/i386/mingw-stdint.h:  New file.
24835
24836 2009-04-05  Richard Guenther  <rguenther@suse.de>
24837
24838         PR tree-optimization/39648
24839         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
24840         our &A vs. &A[0] IL deficiencies.
24841
24842 2009-04-04  Jan Hubicka  <jh@suse.cz>
24843
24844         * except.c (sjlj_find_directly_reachable_regions): Be ready for
24845         removed toplevel regions.
24846         (sjlj_mark_call_sites): Likewise.
24847
24848 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
24849
24850         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
24851         (cygwin tm clause use_gcc_stdint):  Set to wrap.
24852         * config/i386/cygwin-stdint.h:  New file.
24853
24854 2009-04-04  Richard Guenther  <rguenther@suse.de>
24855
24856         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
24857         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
24858         single-argument PHIs if we are in loop-closed SSA form.
24859         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
24860         for the pre-condition.
24861         (slpeel_tree_peel_loop_to_edge): Likewise.
24862         (vect_build_loop_niters): Take an optional sequence to append stmts.
24863         (vect_generate_tmps_on_preheader): Likewise.
24864         (vect_do_peeling_for_loop_bound): Take extra guards for the
24865         pre-condition.
24866         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
24867         the cost model check.
24868         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
24869         guards if we are going to peel.  Do not apply versioning in that case.
24870         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
24871         (vect_do_peeling_for_loop_bound): Likewise.
24872         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
24873         loop bound only record extra pre-conditions, do not apply loop
24874         versioning.
24875
24876 2009-04-04  Richard Guenther  <rguenther@suse.de>
24877
24878         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
24879         renaming code.
24880
24881 2009-04-04  Jan Hubicka  <jh@suse.cz>
24882
24883         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
24884         last_basic_block for size of bb->index indexed array.
24885         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
24886         compute_out, link_btr_uses, build_btr_def_use_webs,
24887         build_btr_def_use_webs, migrate_btr_defs): Likewise.
24888
24889 2009-04-04  Jan Hubicka  <jh@suse.cz>
24890
24891         * except.c (remove_eh_handler_and_replace): Break out from ...
24892         (remove_eh_handler): ... here.
24893         (bring_to_root): New function.
24894         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
24895         handled ones, bring others to root of tree.
24896
24897 2009-04-04  Jan Hubicka  <jh@suse.cz>
24898
24899         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
24900         (all_phis_safe_to_merge): New function.
24901         (update_info): New structure.
24902         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
24903         (cleanup_empty_eh): Update SSA if possible.
24904
24905 2009-04-04  Richard Guenther  <rguenther@suse.de>
24906
24907         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
24908         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
24909         (append_vuse): Likewise.
24910
24911 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
24912
24913         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
24914         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
24915         instead of REG_UNSAVED for DW_CFA_undefined.
24916         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
24917         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
24918         outermost frame.
24919
24920 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
24921
24922         PR target/39501
24923         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
24924
24925 2009-04-04  Richard Guenther  <rguenther@suse.de>
24926
24927         PR tree-optimization/8781
24928         PR tree-optimization/37892
24929         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
24930         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
24931         (valueize_refs): Call it for *& valueizations.
24932         (shared_reference_ops_from_ref): Rename to ...
24933         (valueize_shared_reference_ops_from_ref): ... this and valueize.
24934         (shared_reference_ops_from_call): Rename to ...
24935         (valueize_shared_reference_ops_from_call): ... this and valueize.
24936         (vn_reference_lookup): Update.
24937         (visit_reference_op_call): Likewise.
24938         * tree-ssa-pre.c (phi_translate_1): Fold *&.
24939         (eliminate): Value-replace the call address in call statements.
24940
24941 2009-04-04  Richard Guenther  <rguenther@suse.de>
24942
24943         PR tree-optimization/39636
24944         * tree-ssa-forwprop.c
24945         (forward_propagate_addr_into_variable_array_index): Check for
24946         GIMPLE_ASSIGN before accessing the rhs code.
24947
24948 2009-04-03  Jason Merrill  <jason@redhat.com>
24949
24950         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
24951
24952 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
24953
24954         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
24955         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
24956         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
24957         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
24958         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
24959         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
24960         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
24961         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
24962         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
24963         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
24964         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
24965         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
24966         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
24967         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
24968         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
24969         Use fr_reg_or_fp01_operand instead of fr_register_operand
24970
24971         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
24972         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
24973         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
24974
24975 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
24976
24977         PR rtl-optimization/39607
24978         PR rtl-optimization/39631
24979
24980         Revert:
24981
24982         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
24983         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
24984         instead of DF_LR_OUT.
24985         * ira-lives.c (process_bb_node_lives): Ditto.
24986         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
24987         instead of DF_LR_{OUT,IN}.
24988         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
24989         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
24990
24991 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
24992
24993         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
24994         (execute_lower_omp): Always run but take the short way out if -fopenmp
24995         is not given.
24996         (gate_lower_omp): Remove, forcing the pass manager to always run the
24997         pass and always set PROP_gimple_lomp.
24998         (pass_lower_omp): Remove gate function.
24999         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
25000         PROP_trees.  Instead, require it.
25001         * ipa-cp.c (pass_ipa_cp): Likewise.
25002         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
25003         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
25004         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
25005         and PROP_gimple_leh.
25006
25007 2009-04-03  Richard Guenther  <rguenther@suse.de>
25008
25009         PR middle-end/13146
25010         PR tree-optimization/23940
25011         PR tree-optimization/33237
25012         PR middle-end/33974
25013         PR middle-end/34093
25014         PR tree-optimization/36201
25015         PR tree-optimization/36230
25016         PR tree-optimization/38049
25017         PR tree-optimization/38207
25018         PR tree-optimization/38230
25019         PR tree-optimization/38301
25020         PR tree-optimization/38585
25021         PR middle-end/38895
25022         PR tree-optimization/38985
25023         PR tree-optimization/39299
25024         * tree-ssa-structalias.h: Remove.
25025         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
25026         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
25027         (struct vuse_element_d): Remove.
25028         (struct vuse_vec_d): Likewise.
25029         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
25030         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
25031         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
25032         VUSE_ELEMENT_VAR): Likewise.
25033         (struct voptype_d): Likewise.
25034         (NUM_VOP_FREE_BUCKETS): Likewise.
25035         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
25036         (struct stmt_operands_d): Remove.
25037         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
25038         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
25039         VDEF_NUM, VDEF_VECT): Likewise.
25040         (copy_virtual_operands): Remove.
25041         (operand_build_cmp): Likewise.
25042         (create_ssa_artificial_load_stmt): Likewise.
25043         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
25044         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
25045         vuse_index and mayuse_index members.  Pack and move done and iter_type
25046         members to the front.
25047         (SSA_OP_VMAYUSE): Remove.
25048         (SSA_OP_VIRTUAL_USES): Adjust.
25049         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
25050         (unlink_stmt_vdef): Declare.
25051         (add_to_addressable_set): Remove.
25052         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
25053         (vrp_visit_stmt): Likewise.
25054         * doc/tree-ssa.texi (Alias analysis): Update.
25055         * doc/invoke.texi (max-aliased-vops): Remove docs.
25056         (avg-aliased-vops): Likewise.
25057         * tree-into-ssa.c (syms_to_rename): Remove.
25058         (need_to_update_vops_p): Likewise.
25059         (need_to_initialize_update_ssa_p): Rename to ...
25060         (update_ssa_initialized_fn): ... this.  Track function we are
25061         initialized for.
25062         (symbol_marked_for_renaming): Simplify.
25063         (add_new_name_mapping): Do not set need_to_update_vops_p.
25064         (dump_currdefs): Use SYMS_TO_RENAME.
25065         (rewrite_update_stmt): Always walk all uses/defs.
25066         (dump_update_ssa): Adjust.
25067         (init_update_ssa): Take function argument.  Track what we are
25068         initialized for.
25069         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
25070         (create_new_def_for): Initialize for cfun, assert we are initialized
25071         for cfun.
25072         (mark_sym_for_renaming): Simplify.
25073         (mark_set_for_renaming): Do not initialize update-ssa.
25074         (need_ssa_update_p): Simplify.  Take function argument.
25075         (name_mappings_registered_p): Assert we ask for the correct function.
25076         (name_registered_for_update_p): Likewise.
25077         (ssa_names_to_replace): Likewise.
25078         (release_ssa_name_after_update_ssa): Likewise.
25079         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
25080         (dump_decl_set): Do not print a newline.
25081         (debug_decl_set): Do it here.
25082         (dump_update_ssa): And here.
25083         * tree-ssa-loop-im.c (move_computations): Adjust.
25084         (movement_possibility): Likewise.
25085         (determine_max_movement): Likewise.
25086         (gather_mem_refs_stmt): Likewise.
25087         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
25088         or NAME_MEMORY_TAG.
25089         * tree-complex.c (update_all_vops): Remove.
25090         (expand_complex_move): Adjust.
25091         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
25092         Simplify test for memory referencing statement.  Exclude
25093         non-invariant ADDR_EXPRs.
25094         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
25095         * tree-loop-distribution.c (generate_memset_zero): Adjust.
25096         (rdg_flag_uses): Likewise.
25097         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
25098         related code.
25099         (tree_optimize_tail_calls_1): Also split the
25100         edge from the entry block if we have degenerate PHI nodes in
25101         the first basic block.
25102         * tree.c (init_ttree): Remove memory-tag related code.
25103         (tree_code_size): Likewise.
25104         (tree_node_structure): Likewise.
25105         (build7_stat): Re-write to be build6_stat.
25106         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
25107         (SSA_VAR_P): Adjust.
25108         (struct tree_memory_tag): Remove.
25109         (struct tree_memory_partition_tag): Likewise.
25110         (union tree_node): Adjust.
25111         (build7): Re-write to be build6.
25112         * tree-pass.h (pass_reset_cc_flags): Remove.
25113         (TODO_update_address_taken): New flag.
25114         (pass_simple_dse): Remove.
25115         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
25116         * params.h (MAX_ALIASED_VOPS): Remove.
25117         (AVG_ALIASED_VOPS): Likewise.
25118         * omp-low.c (expand_omp_taskreg): Update SSA form.
25119         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
25120         aliases the lhs in a copy stmt.
25121         * tree-ssa-dse.c (struct address_walk_data): Remove.
25122         (memory_ssa_name_same): Likewise.
25123         (memory_address_same): Likewise.
25124         (get_kill_of_stmt_lhs): Likewise.
25125         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
25126         unused stores.  Look through PHI nodes into post-dominated regions.
25127         (dse_optimize_stmt): Simplify.  Properly remove stores.
25128         (tree_ssa_dse): Compute dominators.
25129         (execute_simple_dse): Remove.
25130         (pass_simple_dse): Likewise.
25131         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
25132         gimple_loaded_syms and gimple_stored_syms computation.
25133         * toplev.c (dump_memory_report): Dump alias and pta stats.
25134         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
25135         (vn_reference_eq): Likewise.
25136         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
25137         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
25138         valueize_vuses): Remove.
25139         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
25140         (get_def_ref_stmt_vuse): ... this.
25141         (vn_reference_lookup_2): New function.
25142         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
25143         walking equivalent vuses.  Simplify.
25144         (vn_reference_lookup): Likewise.
25145         (vn_reference_insert): Likewise.
25146         (vn_reference_insert_pieces): Likewise.
25147         (visit_reference_op_call): Simplify.
25148         (visit_reference_op_load): Likewise.
25149         (visit_reference_op_store): Likewise.
25150         (init_scc_vn): Remove shared_lookup_vuses initialization.
25151         (free_scc_vn): Remove shared_lookup_vuses freeing.
25152         (sort_vuses, sort_vuses_heap): Remove.
25153         (get_ref_from_reference_ops): Export.
25154         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
25155         vector with single vuse pointer.
25156         (vn_reference_lookup_pieces, vn_reference_lookup,
25157         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
25158         (shared_vuses_from_stmt): Remove.
25159         (get_ref_from_reference_ops): Declare.
25160         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
25161         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
25162         memory-tag related code.
25163         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
25164         (likely_value): Add comment, skip static-chain of call statements.
25165         (surely_varying_stmt_p): Adjust.
25166         (gimplify_and_update_call_from_tree): Likewise.
25167         (execute_fold_all_builtins): Do not rebuild alias info.
25168         (gimplify_and_update_call_from_tree): Properly update VOPs.
25169         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
25170         (copy_ref_info): Remove memory-tag related code.
25171         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
25172         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
25173         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
25174         computation.
25175         * tree-ssa-dom.c (gimple_p): Remove typedef.
25176         (eliminate_redundant_computations): Adjust.
25177         (record_equivalences_from_stmt): Likewise.
25178         (avail_expr_hash): Likewise.
25179         (avail_expr_eq): Likewise.
25180         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
25181         (stmt_makes_single_load): Likewise.
25182         (stmt_makes_single_store): Likewise.
25183         * tree-ssa-alias.c: Rewrite completely.
25184         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
25185         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
25186         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
25187         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
25188         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
25189         Remove public functions.
25190         (pass_reset_cc_flags): Remove.
25191         (pass_build_alias): Move ...
25192         * tree-ssa-structalias.c (pass_build_alias): ... here.
25193         * tree-ssa-alias.c (may_be_aliased): Move ...
25194         * tree-flow-inline.h (may_be_aliased): ... here.
25195         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
25196         count_uses_and_derefs): Move ...
25197         * gimple.c: ... here.
25198         * gimple.h (count_uses_and_derefs): Declare.
25199         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
25200         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
25201         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
25202         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
25203         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
25204         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
25205         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
25206         New functions.
25207         * tree-dfa.c (refs_may_alias_p): Move ...
25208         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
25209         * tree-ssa-alias.h: New file.
25210         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
25211         (statement_sink_location): Likewise.
25212         * opts.c (decode_options): Do not adjust max-aliased-vops or
25213         avg-aliased-vops values.
25214         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
25215         (TV_CALL_CLOBBER): Likewise.
25216         (TV_FLOW_SENSITIVE): Likewise.
25217         (TV_FLOW_INSENSITIVE): Likewise.
25218         (TV_MEMORY_PARTITIONING): Likewise.
25219         (TV_ALIAS_STMT_WALK): New timevar.
25220         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
25221         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
25222         (get_address_description): Remove memory-tag related code.
25223         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
25224         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
25225         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
25226         and immediate uses in statements.  Document.
25227         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
25228         (dump_symbols): Remove.
25229         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
25230         * alias.c (get_deref_alias_set): New function split out from ...
25231         (get_alias_set): ... here.
25232         * alias.h (get_deref_alias_set): Declare.
25233         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
25234         type parameter.  Remove restrict pointer handling.  Create a
25235         ref-all pointer in case type-based alias sets do not conflict.
25236         (vect_analyze_data_refs): Remove SMT related code.
25237         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
25238         (vectorizable_load): Likewise.
25239         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
25240         (DR_SYMBOL_TAG, DR_VOPS): Remove.
25241         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
25242         Ignore vops and SMTs.
25243         (dr_analyze_alias): Likewise..
25244         (free_data_ref): Likewise.
25245         (create_data_ref): Likewise.
25246         (analyze_all_data_dependences): Likewise.
25247         (get_references_in_stmt): Adjust.
25248         * tree-flow-inline.h (gimple_aliases_computed_p,
25249         gimple_addressable_vars, gimple_call_clobbered_vars,
25250         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
25251         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
25252         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
25253         gimple_mem_ref_stats): Remove.
25254         (gimple_vop): New function.
25255         (op_iter_next_use): Remove vuses and mayuses cases.
25256         (op_iter_next_def): Remove vdefs case.
25257         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
25258         (clear_and_done_ssa_iter): Do not set removed fields.
25259         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
25260         Assert we are not iterating over vuses or vdefs if not also
25261         iterating over uses or defs.
25262         (op_iter_init_use): Likewise.
25263         (op_iter_init_def): Likewise.
25264         (op_iter_next_vdef): Remove.
25265         (op_iter_next_mustdef): Likewise.
25266         (op_iter_init_vdef): Likewise.
25267         (compare_ssa_operands_equal): Likewise.
25268         (link_use_stmts_after): Handle vuse operand.
25269         (is_call_used): Use is_call_clobbered.
25270         (is_call_clobbered): Global variables are always call clobbered,
25271         query the call-clobbers bitmap.
25272         (mark_call_clobbered): Ignore global variables.
25273         (clear_call_clobbered): Likewise.
25274         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
25275         virtual operands sanity check.
25276         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
25277         Remove.
25278         (TARGET_MEM_REF): Remove TMR_TAG operand.
25279         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
25280         Remove call-clobber related code.
25281         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
25282         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
25283         partitions or escape reason.
25284         (get_single_def_stmt, get_single_def_stmt_from_phi,
25285         get_single_def_stmt_with_phi): Remove.
25286         (dump_referenced_vars): Tidy.
25287         (get_ref_base_and_extent): Allow bare decls.
25288         (collect_dfa_stats): Adjust.
25289         * graphite.c (rename_variables_in_stmt): Adjust.
25290         (graphite_copy_stmts_from_block): Likewise.
25291         (translate_clast): Likewise.
25292         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
25293         (EXPR_DIES): New.
25294         (translate_vuse_through_block): Use the oracle.
25295         (phi_translate_1): Adjust.
25296         (value_dies_in_block_x): Use the oracle.  Cache the outcome
25297         in EXPR_DIES.
25298         (valid_in_sets): Check if the VUSE for
25299         a REFERENCE is available.
25300         (eliminate): Do not remove stmts during elimination,
25301         instead queue and remove them afterwards.
25302         (do_pre): Do not rebuild alias info.
25303         (pass_pre): Run TODO_rebuild_alias before PRE.
25304         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
25305         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
25306         (mark_all_v_defs_stmt): Remove.
25307         (mark_all_v_defs_seq): Adjust.
25308         (sra_replace): Likewise.
25309         (scalarize_use): Likewise.
25310         (scalarize_copy): Likewise.
25311         (scalarize_init): Likewise.
25312         (scalarize_ldst): Likewise.
25313         (todoflags): Remove.
25314         (tree_sra): Do not rebuild alias info.
25315         (tree_sra_early): Adjust.
25316         (pass_sra): Run TODO_update_address_taken before SRA.
25317         * tree-predcom.c (set_alias_info): Remove.
25318         (prepare_initializers_chain): Do not call it.
25319         (mark_virtual_ops_for_renaming): Adjust.
25320         (mark_virtual_ops_for_renaming_list): Remove.
25321         (initialize_root_vars): Adjust.
25322         (initialize_root_vars_lm): Likewise.
25323         (prepare_initializers_chain): Likewise.
25324         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
25325         (may_propagate_copy_into_stmt): Likewise.
25326         (merge_alias_info): Do nothing for now.
25327         (propagate_tree_value_into_stmt): Adjust.
25328         (stmt_may_generate_copy): Likewise.
25329         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
25330         not mark symbols for renaming.
25331         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
25332         with the same statement, make sure to update the new pointed-to one.
25333         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
25334         call statements, do not mark symbols for renaming.
25335         (mark_operand_necessary): Dump something.
25336         (ref_may_be_aliased): New function.
25337         (mark_aliased_reaching_defs_necessary_1): New helper function.
25338         (mark_aliased_reaching_defs_necessary): Likewise.
25339         (mark_all_reaching_defs_necessary_1): Likewise.
25340         (mark_all_reaching_defs_necessary): Likewise.
25341         (propagate_necessity): Do not process virtual PHIs.  For
25342         non-aliased loads mark all reaching definitions as necessary.
25343         For aliased loads and stores mark the immediate dominating
25344         aliased clobbers as necessary.
25345         (visited): New global static.
25346         (perform_tree_ssa_dce): Free visited bitmap after propagating
25347         necessity.
25348         (remove_dead_phis): Perform simple dead virtual PHI removal.
25349         (remove_dead_stmt): Properly unlink virtual operands when
25350         removing stores.
25351         (eliminate_unnecessary_stmts): Schedule PHI removal after
25352         stmt removal.
25353         * tree-ssa-ter.c (is_replaceable_p): Adjust.
25354         (process_replaceable): Likewise.
25355         (find_replaceable_in_bb): Likewise.
25356         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
25357         based on the single gimple vop.
25358         (verify_flow_insensitive_alias_info): Remove.
25359         (verify_flow_sensitive_alias_info): Likewise.
25360         (verify_call_clobbering): Likewise.
25361         (verify_memory_partitions): Likewise.
25362         (verify_alias_info): Likewise.
25363         (verify_ssa): Adjust..
25364         (execute_update_addresses_taken): Export.  Update SSA
25365         manually.  Optimize only when optimizing.  Use a local bitmap.
25366         (pass_update_address_taken): Remove TODO_update_ssa, add
25367         TODO_dump_func.
25368         (pass_update_address_taken): Just use TODO_update_address_taken.
25369         (init_tree_ssa): Do not initialize addressable_vars.
25370         (verify_ssa): Verify new VUSE / VDEF properties.
25371         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
25372         Do not call verify_alias_info.
25373         (delete_tree_ssa): Clear the VUSE, VDEF operands.
25374         Do not free the loaded and stored syms bitmaps.  Reset the escaped
25375         and callused solutions.  Do not free addressable_vars.
25376         Remove memory-tag related code.
25377         (warn_uninitialized_var): Aliases are always available.
25378         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
25379         * lambda-code.c (can_put_in_inner_loop): Adjust.
25380         (can_put_after_inner_loop): Likewise.
25381         (perfect_nestify): Likewise.
25382         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
25383         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
25384         (vectorizable_conversion): Do not mark symbols for renaming.
25385         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
25386         (expand_call_inline): Unlink the calls virtual operands before
25387         replacing it.
25388         (tree_function_versioning): Do not call update_ssa if we are not
25389         updating clones.  Simplify.
25390         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
25391         (propagate_with_phi): Likewise..
25392         * tree-outof-ssa.c (create_temp): Remove memory tag and call
25393         clobber code.  Assert we are not aliased or global.
25394         * tree-flow.h: Include tree-ssa-alias.h
25395         (enum escape_type): Remove.
25396         (struct mem_sym_stats_d): Likewise.
25397         (struct mem_ref_stats_d): Likewise.
25398         (struct gimple_df): Add vop member.  Remove global_var,
25399         call_clobbered_vars, call_used_vars, addressable_vars,
25400         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
25401         escaped and callused members.
25402         (struct ptr_info_def): Remove all members, add points-to solution
25403         member pt.
25404         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
25405         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
25406         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
25407         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
25408         (tree-ssa-alias.o): Likewise.
25409         (toplev.o): Add tree-ssa-alias.h
25410         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
25411         * gimple.c (gimple_set_bb): Fix off-by-one error.
25412         (is_gimple_reg): Do not handle memory tags.
25413         (gimple_copy): Also copy virtual operands.
25414         Delay updating the statement.  Do not reset loaded and stored syms.
25415         (gimple_set_stored_syms): Remove.
25416         (gimple_set_loaded_syms): Likewise.
25417         (gimple_call_copy_skip_args): Copy the virtual operands
25418         and mark the new statement modified.
25419         * tree-ssa-structalias.c (may_alias_p): Remove.
25420         (set_uids_in_ptset): Take the alias set to prune with as
25421         parameter.  Fold in the alias test of may_alias_p.
25422         (compute_points_to_sets): Compute whether a ptr is dereferenced
25423         in a local sbitmap.
25424         (process_constraint): Deal with &ANYTHING on the lhs, reject all
25425         other ADDRESSOF constraints on the lhs.
25426         (get_constraint_for_component_ref): Assert that we don't get
25427         ADDRESSOF constraints from the base of the reference.
25428         Properly generate UNKNOWN_OFFSET for DEREF if needed.
25429         (struct variable_info): Remove collapsed_to member.
25430         (get_varinfo_fc): Remove.
25431         (new_var_info): Do not set collapsed_to.
25432         (dump_constraint): Do not follow cycles.
25433         (dump_constraint_graph): Likewise.
25434         (build_pred_graph): Likewise.
25435         (build_succ_graph): Likewise.
25436         (rewrite_constraints): Likewise.
25437         (do_simple_structure_copy): Remove.
25438         (do_rhs_deref_structure_copy): Remove.
25439         (do_lhs_deref_structure_copy): Remove.
25440         (collapse_rest_of_var): Remove.
25441         (do_structure_copy): Re-implement.
25442         (pta_stats): New global variable.
25443         (dump_pta_stats): New function.
25444         (struct constraint_expr): Make offset signed.
25445         (UNKNOWN_OFFSET): Define special value.
25446         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
25447         (solution_set_expand): New helper function split out from ...
25448         (do_sd_constraint): ... here.
25449         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
25450         (do_ds_constraint): Likewise.
25451         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
25452         and CALLUSED = *CALLUSED.
25453         (set_union_with_increment): Make inc argument signed.
25454         (type_safe): Remove.
25455         (get_constraint_for_ptr_offset): Handle unknown and negative
25456         constant offsets.
25457         (first_vi_for_offset): Handle offsets before start.  Bail
25458         out early for offsets beyond the variable extent.
25459         (first_or_preceding_vi_for_offset): New function.
25460         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
25461         Together with ESCAPED = *ESCAPED this properly computes reachability.
25462         (find_what_var_points_to): New function.
25463         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
25464         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
25465         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
25466         pt_solutions_intersect): New functions.
25467         (compute_call_used_vars): Remove.
25468         (compute_may_aliases): New main entry into PTA computation.
25469         * gimple.h (gimple_p): New typedef.
25470         (struct gimple_statement_base): Remove references_memory_p.
25471         (struct gimple_statement_with_memory_ops_base): Remove
25472         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
25473         members.
25474         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
25475         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
25476         gimple_set_references_memory): Remove.
25477         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
25478         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
25479         New functions.
25480         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
25481         (verify_expr): Allow RESULT_DECL.
25482         (gimple_duplicate_bb): Do not copy virtual operands.
25483         (gimple_duplicate_sese_region): Adjust.
25484         (gimple_duplicate_sese_tail): Likewise.
25485         (mark_virtual_ops_in_region): Remove.
25486         (move_sese_region_to_fn): Do not call it.
25487         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
25488         and pass_simple_dse.
25489         (execute_function_todo): Handle TODO_update_address_taken,
25490         call execute_update_addresses_taken for TODO_rebuild_alias.
25491         (execute_todo): Adjust.
25492         (execute_one_pass): Init dump files early.
25493         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
25494         call-clobbered.
25495         (create_general_new_stmt): Clear vops.
25496         * tree-ssa-reassoc.c (get_rank): Adjust.
25497         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
25498         symbols for renaming.
25499         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
25500         (PARAM_AVG_ALIASED_VOPS): Likewise.
25501         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
25502         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
25503         * tree-ssa-operands.c: Simplify for new virtual operand representation.
25504         (operand_build_cmp, copy_virtual_operands,
25505         create_ssa_artificial_load_stmt, add_to_addressable_set,
25506         gimple_add_to_addresses_taken): Remove public functions.
25507         (unlink_stmt_vdef): New function.
25508
25509 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
25510
25511         * config.gcc (powerpc-*-linux*): Merge variants.
25512
25513 2009-04-02  Chao-ying Fu  <fu@mips.com>
25514             James Grosbach  <james.grosbach@microchip.com>
25515
25516         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
25517         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
25518         cop0_sp_offset.
25519         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
25520         keep_interrupts_masked_p, use_debug_exception_return_p.
25521         (mips_attribute_table): Add interrupt, use_shadow_register_set,
25522         keep_interrupts_masked, use_debug_exception_return.
25523         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
25524         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
25525         New functions.
25526         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
25527         (mips_print_operand): Process COP0 registers to print $0 .. $31
25528         correctly for GAS to process.
25529         (mips_interrupt_extra_call_saved_reg_p): New function.
25530         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
25531         extra registers.
25532         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
25533         (mips_compute_frame_info): Add supports for interrupt context that
25534         includes doubleword accumulators and COP0 registers.
25535         (mips_for_each_saved_acc): New function.
25536         (mips_for_each_saved_gpr_and_fpr): Change the function name from
25537         mips_for_each_saved_reg.
25538         (mips_save_reg): Save accumulators.
25539         (mips_kernel_reg_p): A new for_each_rtx callback.
25540         (mips_expand_prologue): Support interrupt handlers.
25541         (mips_restore_reg): Restore accumulators.
25542         (mips_expand_epilogue): Support interrupt handlers.
25543         (mips_can_use_return_insn): Return false for interrupt handlers.
25544         (mips_epilogue_uses): New function.
25545         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
25546         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
25547         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
25548         cop0_move): New instructions.
25549         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
25550         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
25551         defines.
25552         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
25553         New defines.
25554         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
25555         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
25556         interrupt handlers, we use K0 as the temporary register.
25557         (EPILOGUE_USES): Change to a function call.
25558         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
25559         handlers, we use K0 as the temporary register.
25560
25561         * doc/extend.texi (Function Attributes): Document interrupt,
25562         use_shadow_register_set, keep_interrupts_masked,
25563         use_debug_exception_return for MIPS attributes.
25564
25565 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
25566
25567         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
25568         Remove a number of t-files from tmake_file.
25569         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
25570         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
25571         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
25572         target_prototype, not TARGET_PROTOTYPE.
25573         (LINK_OS_GNU_SPEC): Define.
25574         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
25575         and darwin-ldoubdle.c.
25576
25577 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
25578
25579         PR driver/39293
25580         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
25581         (cpp_options): Ditto.
25582         (default_compilers): Ditto.
25583         (display_help): Ditto.
25584         (process_command): Ditto.
25585         (do_spec_1): Ditto.
25586         (set_input): Use lbasename instead of duplicate code.
25587         (save_temps_prefix): New static for -save-temps=obj.
25588         (save_temps_length): Ditto.
25589
25590         * doc/invoke.texi (-save-temps=obj): Document new variant to
25591         -save-temps switch.
25592
25593 2009-04-02  Jeff Law  <law@redhat.com>
25594
25595         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
25596         variable.
25597
25598 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
25599
25600         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
25601         * configure: Regenerated.
25602
25603 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
25604
25605         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
25606         share the argument list.
25607
25608 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
25609
25610         Merge
25611
25612         2009-02-12  Diego Novillo  <dnovillo@google.com>
25613
25614         * varpool.c (debug_varpool): New.
25615         * cgraph.h (debug_varpool): Declare.
25616
25617 2009-04-02  Jan Hubicka  <jh@suse.cz>
25618
25619         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
25620         pass.
25621
25622 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
25623
25624         * config/i386/i386.c (ix86_abi): Move initialization to ...
25625         (override_options): Here.
25626
25627 2009-04-02  Christian Bruel  <christian.bruel@st.com>
25628
25629         * config/sh/sh.c (sh_dwarf_register_span): New function.
25630         (TARGET_DWARF_REGISTER_SPAN): Define.
25631         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
25632
25633 2009-04-02  Ira Rosen  <irar@il.ibm.com>
25634
25635         PR tree-optimization/39595
25636         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
25637         interleaved loads group is not  greater than the SLP group size.
25638
25639 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
25640
25641         * builtins.c (is_builtin_name): New.
25642         (called_as_built_in): Use is_builtin_name.
25643         * tree.h (is_builtin_name): New.
25644         * varasm.c (incorporeal_function_p): Use is_builtin_name
25645
25646 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
25647
25648         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
25649
25650 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
25651
25652         PR c++/26693
25653         * c-decl.c (clone_underlying_type): Move this ...
25654         * c-common.c (set_underlying_type): ... here.
25655         Also, make sure the function properly sets TYPE_STUB_DECL() on
25656         the newly created typedef variant type.
25657         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
25658         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
25659         points.
25660
25661 2009-04-02  Richard Guenther  <rguenther@suse.de>
25662
25663         PR tree-optimization/37221
25664         * tree-flow.h (degenerate_phi_result): Declare.
25665         * tree-ssa-dom.c (degenerate_phi_result): Export.
25666         * tree-scalar-evolution.c (analyze_initial_condition): If
25667         the initial condition is defined by a degenerate PHI node
25668         use the degenerate value.
25669
25670 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
25671
25672         PR rtl-optimization/39588
25673         * combine.c (merge_outer_ops): Do not set the constant when this
25674         is not necessary.
25675         (simplify_shift_const_1): Do not modify it either in this case.
25676
25677 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
25678
25679         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
25680         tuning is deprecated if -mtune value is set to an Itanium1 variant.
25681
25682 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
25683
25684         PR c/29027
25685         * c-lex.c (interpret_float): Default (no suffix) is double.
25686
25687 2009-04-1  Xinliang David Li  <davidxl@google.com>
25688
25689         * config/i386/i386.c (legitimate_constant_p): Recognize
25690         all one vector constant.
25691
25692 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
25693
25694         * config/vax/vax.c: Add #includes to silence warnings.
25695         Change #include order to silence two warnings.
25696
25697 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
25698
25699         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
25700         (ASM_SPEC): Pass -k to the assembler for PIC code.
25701
25702 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
25703
25704         * config.gcc: Add vax-*-linux* to the switch.
25705         * config/vax/linux.h: New file. (TARGET_VERSION,
25706         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
25707
25708 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
25709
25710         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
25711         Use predicate macros instead of GET_CODE() == foo.
25712         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
25713         ashlsi3, rotrsi3, <unnamed>): Likewise.
25714
25715 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
25716
25717         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
25718         jbbccihi, jbbccisi): Remova trailing whitespace.
25719         * config/vax/constraints.md: Likewise.
25720         * config/vax/elf.h (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25721         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
25722         * config/vax/predicates.md: Likewise.
25723         * config/vax/vax.c (print_operand_address, vax_output_int_move,
25724         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
25725         * config/vax/vax.h: Likewise.
25726         * config/vax/vax.md (nonlocal_goto): Likewise.
25727
25728 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
25729
25730         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
25731         (indirectable_address_p, adjacent_operands_p): Add spaces around
25732         braces.
25733         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
25734
25735 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
25736
25737         * config/vax/vax.c (legitimate_constant_address_p,
25738         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
25739         index_term_p, reg_plus_index_p, legitimate_address_p,
25740         vax_mode_dependent_address_p): Update comments to match functions
25741         modified by the recent int->bool conversion.
25742
25743 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
25744
25745         * config/vax/builtins.md: Update copyright message.
25746         * config/vax/constraints.md: Likewise.
25747         * config/vax/netbsd-elf.h: Likewise.
25748         * config/vax/predicates.md: Likewise.
25749         * config/vax/vax-protos.h: Likewise.
25750         * config/vax/vax.c: Likewise.
25751         * config/vax/vax.h: Likewise.
25752         * config/vax/vax.md: Likewise.
25753         * config/vax/vax.opt: Likewise.
25754
25755 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
25756
25757         * config/vax/builtins.md (ffssi2, ffssi2_internal,
25758         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
25759         * config/vax/constraints.md (B, R): Likewise.
25760         * config/vax/predicates.md (external_memory_operand,
25761         nonimmediate_addsub_di_operand): Likewise.
25762         * config/vax/vax.c (vax_output_int_add): Likewise.
25763         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
25764         untyped_call): Likewise.
25765
25766 2009-04-01  Matt Thomas  <matt@3am-software.com>
25767
25768         * config/vax/predicates.md: New file.
25769         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
25770         external_const_operand, nonsymbolic_operand, external_memory_operand,
25771         indirect_memory_operand, indexed_memory_operand,
25772         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
25773         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
25774         predicate.
25775         * config/vax/constraints.md: New file.
25776         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
25777         New constraint.
25778         * config/vax/builtins.md: New file.
25779         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
25780         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
25781         jbbccisi): Define.
25782         * config/vax/vax.opt (mqmath): Add option.
25783         * config/vax/vax.md (isfx): Extend with DI.
25784         (VAXintQH, VAXintQHSD): Define.
25785         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
25786         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
25787         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
25788         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
25789         (movdi): Update constraints and use vax_output_int_move().
25790         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
25791         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
25792         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
25793         nonlocal_goto): New.
25794         (mov<mode>): Extend accepted operand types.
25795         (subdi3_old): Rename from subdi3, change update constraints and use
25796         a new implementation.
25797         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
25798         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
25799         MOVE_RATIO, CLEAR_RATIO): Define.
25800         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
25801         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
25802         (PRINT_OPERAND): Redefine using a function instead of inlined code.
25803         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
25804         (split_quadword_operands): Make static and really allow variable
25805         splitting.
25806         (print_operand_address): Update for PIC generation.
25807         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
25808         indexable_address_p, fixup_mathdi_operand,
25809         vax_expand_addsub_di_operands, adjacent_operands_p): New.
25810         (vax_float_literal, legitimate_constant_p,
25811         indirectable_constant_address_p, index_term_p,
25812         reg_plus_index_p): Return bool instead of int.
25813         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
25814         where needed.
25815         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
25816         generation.
25817         (vax_output_conditional_branch): Indent.
25818         (legitimate_constant_address_p, indirectable_constant_address_p,
25819         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
25820         vax_mode_dependent_address_p): Return bool instead of int, update for
25821         PIC generation.
25822         * config/vax/vax-protos.h (legitimate_constant_address_p,
25823         legitimate_constant_p, legitimate_address_p,
25824         vax_mode_dependent_address_p): Change declaration to bool.
25825         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
25826         vax_expand_addsub_di_operands, vax_output_int_subtract,
25827         vax_output_movmemsi): Declare.
25828         (split_quadword_operands, vax_float_literal): Delete declaration.
25829         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
25830         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
25831         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
25832         ASM_OUTPUT_DWARF_PCREL): Define.
25833         (ASM_SPEC): Change definition to allow PIC generation.
25834
25835 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
25836
25837         * doc/sourcebuild.texi: Update front-end requirements.
25838
25839 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
25840
25841         PR target/39226
25842         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
25843         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
25844         (booldi3_internal3): Use boolean_or_operator instead of
25845         boolean_operator.
25846
25847 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
25848
25849         PR c/39605
25850         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
25851         declarator whose size is not an integer constant expression but
25852         folds to an integer constant, then treat it as a constant
25853         subsequently.
25854
25855 2009-04-01  Richard Guenther  <rguenther@suse.de>
25856
25857         * fold-const.c (fold_plusminus_mult_expr): Do not fold
25858         i * 4 + 2 to (i * 2 + 1) * 2.
25859
25860 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
25861
25862         PR c/37772
25863         * c-parser.c (c_parser_asm_statement): Skip until close paren and
25864         return if c_parser_asm_string_literal returned NULL.
25865
25866 2009-04-01  Nick Clifton  <nickc@redhat.com>
25867
25868         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
25869         already defined.
25870         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
25871         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
25872         other typedefs to avoid conflicts with libgcc2.c.  Define labels
25873         to gain 16-bit bit-manipulation functions from libgcc2.c and then
25874         include it.
25875         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
25876         to gain 16-bit trapping arithmetic functions from libgcc2.c and
25877         then include it.
25878
25879 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
25880
25881         * varasm.c (default_function_rodata_section): Declare DOT as
25882         const char*.
25883
25884 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
25885             Andrey Galkin  <agalkin@hypercom.com>
25886
25887         PR/39492
25888         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
25889         Make object_name unique for each process.
25890
25891 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
25892
25893         PR other/39591
25894         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
25895         addressable variables in the parallel that could go out of scope while
25896         running queued tasks.
25897
25898 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
25899
25900         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
25901         (CASE_VALUES_THRESHOLD): Redefine.
25902         * config/avr/avr.c (avr_override_options): Remove initialization of
25903         avr_case_values_threshold variable.
25904         (avr_case_values_threshold): Remove variable. Add new function.
25905         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
25906         * config/avr/avr.opt (mno-tablejump): Remove option.
25907         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
25908
25909 2009-04-01  DJ Delorie  <dj@redhat.com>
25910
25911         * varasm.c (default_function_rodata_section): Don't assume
25912         anything about where the first '.' in the section name is.
25913
25914 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
25915
25916         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
25917         rs6000_emit_stack_tie.
25918
25919 2009-03-31  Ian Lance Taylor  <iant@google.com>
25920
25921         * tree-eh.c (tree_remove_unreachable_handlers): Compare
25922         gimple_code with GIMPLE_RESX, not RESX.
25923
25924 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
25925
25926         * c-common.c (c_get_ident): New.
25927         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
25928
25929 2009-04-01  Ben Elliston  <bje@au.ibm.com>
25930
25931         * config/rs6000/sysv4.opt (msdata): Improve option description.
25932
25933 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
25934
25935         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
25936         (divdf3_internal_lat): Remove.
25937         (divxf3_internal_lat): Remove.
25938         (divxf3_internal_thr): Remove.
25939         (divxf): Use divxf3_internal.
25940         * config/ia64/div.md (divsf3_internal_lat): New.
25941         (divdf3_internal_lat): New.
25942         (divxf3_internal): New.
25943
25944 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
25945
25946         PR c/448
25947         * Makefile.in (USE_GCC_STDINT): Define.
25948         (stmp-int-hdrs): Install stdint.h if applicable.
25949         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
25950         if known.
25951         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
25952         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
25953         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
25954         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
25955         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
25956         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
25957         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
25958         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
25959         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
25960         (c_common_nodes_and_builtins): Initialize
25961         underlying_wchar_type_node.  Do not initialize
25962         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
25963         nodes for new types.
25964         (c_stddef_cpp_builtins): Define macros for new types.
25965         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
25966         Remove.
25967         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
25968         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
25969         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
25970         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
25971         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
25972         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
25973         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
25974         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
25975         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
25976         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
25977         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
25978         int16_type_node, int32_type_node, int64_type_node,
25979         uint8_type_node, uint16_type_node, c_uint32_type_node,
25980         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
25981         int_least32_type_node, int_least64_type_node,
25982         uint_least8_type_node, uint_least16_type_node,
25983         uint_least32_type_node, uint_least64_type_node,
25984         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
25985         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
25986         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
25987         uintptr_type_node): Define.
25988         * c-cppbuiltin.c (builtin_define_constants,
25989         builtin_define_type_minmax): New.
25990         (builtin_define_stdint_macros): Define more macros.
25991         (c_cpp_builtins): Define more limit macros.
25992         (type_suffix): New.
25993         (builtin_define_type_max): Define in terms of
25994         builtin_define_type_minmax.  Remove is_long parameter.  All
25995         callers changed.
25996         * config.gcc (use_gcc_stdint): Define.
25997         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
25998         Add newlib-stdint.h for generic targets.
25999         * config/glibc-stdint.h, config/newlib-stdint.h,
26000         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
26001         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
26002         * config/score/score.h (UINTPTR_TYPE): Define.
26003         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
26004         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
26005         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
26006         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
26007         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
26008         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
26009         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
26010         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
26011         * config/spu/spu.h (STDINT_LONG32): Define.
26012         * configure.ac (use_gcc_stdint): Substitute.
26013         * configure: Regenerate.
26014         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
26015         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
26016         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
26017         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
26018         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
26019         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
26020         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
26021         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
26022         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
26023         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
26024         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
26025         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
26026         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
26027         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
26028         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
26029         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
26030         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
26031         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
26032         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
26033         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
26034         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
26035         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
26036         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
26037         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
26038         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
26039         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
26040         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
26041         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
26042         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
26043
26044 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
26045
26046         * loop-iv.c (suitable_set_for_replacement): Renamed from
26047         simplify_using_assignment; changed to return bool and to accept new
26048         args DEST and SRC.  Return true iff we find a source/destination pair
26049         that can be used to make a replacement, and fill SRC and DEST if so.
26050         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
26051         changed.
26052         (simplify_using_initial_values): Deal with altered regs here and track
26053         more precisely the effect they have on the validity of our expression.
26054
26055         * loop-iv.c (simplify_using_condition): A condition of the form
26056         (EQ REG CONST) can be used to simply make a substitution.
26057         (simplify_using_initial_values): Keep track of conditions we have seen
26058         and keep using them to simplify new expressions, while applying the
26059         same substitutions to them as to the expression.
26060
26061         * simplify-rtx.c (simplify_relational_operation_1): Simplify
26062         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
26063         GEU/LTU reversed.
26064
26065         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
26066         changed.  Use this when trying to improve the upper bound.
26067         Generate the comparison by using simplify_gen_relational.
26068
26069         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
26070
26071         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
26072         functions.
26073         (simplify_using_assignment, simplify_using_initial_values): Call
26074         replace_in_expr to make replacements.  Call replace_single_def_regs
26075         once on the initial version of the expression.
26076
26077 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26078
26079         PR target/27237
26080         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
26081
26082 2009-03-31  Richard Guenther  <rguenther@suse.de>
26083
26084         PR middle-end/31029
26085         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
26086         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
26087
26088 2009-03-31  Richard Guenther  <rguenther@suse.de>
26089
26090         * tree.h (div_if_zero_remainder): Declare.
26091         * fold-const.c (div_if_zero_remainder): Export.
26092         * tree-ssa-forwprop.c
26093         (forward_propagate_addr_into_variable_array_index): Handle
26094         constant array index addition outside of the variable index.
26095
26096 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
26097
26098         PR target/39592
26099         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
26100         define_splits, floatunssi<mode>2): Require x87 conversions from
26101         DImode to be permitted.
26102
26103 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
26104
26105         PR preprocessor/15638
26106         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
26107
26108 2009-03-31  Richard Guenther  <rguenther@suse.de>
26109
26110         PR middle-end/23401
26111         PR middle-end/27810
26112         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
26113         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
26114         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
26115         a separate statement.
26116         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
26117         (lookup_tmp_var): Likewise.
26118         (is_gimple_formal_tmp_or_call_rhs): Remove.
26119         (is_gimple_reg_or_call_rhs): Rename to ...
26120         (is_gimple_reg_rhs_or_call): ... this.
26121         (is_gimple_mem_or_call_rhs): Rename to ...
26122         (is_gimple_mem_rhs_or_call): ... this.
26123         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
26124         DECL_GIMPLE_REG_P only if is_formal is true.
26125         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
26126         for non-proper post-modify expression gimplification.
26127         (gimplify_self_mod_expr): For post-modify expressions gimplify
26128         the lvalue to a minimal lvalue.
26129         (rhs_predicate_for): Remove formal temp case.
26130         (gimplify_modify_expr_rhs): Likewise.
26131         (gimplify_addr_expr): Use is_gimple_reg.
26132         (gimplify_expr): Remove formal temp cases.
26133         (gimple_regimplify_operands): Likewise.
26134         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
26135         and FILTER_EXPR like constants.
26136         * gimple.c (walk_gimple_op): Fix val_only initialization, use
26137         is_gimple_reg.
26138         (is_gimple_formal_tmp_rhs): Remove.
26139         (is_gimple_reg_rhs): Remove special casing.
26140         (is_gimple_mem_rhs): Fix.
26141         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
26142         (is_gimple_formal_tmp_var): Remove.
26143         (is_gimple_formal_tmp_reg): Likewise.
26144         (is_gimple_min_lval): Allow invariant component ref parts.
26145         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
26146         is_gimple_formal_tmp_reg): Remove declarations.
26147         * tree-cfg.c (verify_expr): Verify that variables with address
26148         taken do not have DECL_GIMPLE_REG_P set.
26149         * tree-mudflap.c (mf_build_check_statement_for): Use
26150         force_gimple_operand instead of gimplify_expr.
26151
26152 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
26153
26154         * modulo-sched.c (sms_schedule_by_order): Pass the actual
26155         schedulable rows to compute_split_row.
26156
26157 2009-03-31  Ben Elliston  <bje@au.ibm.com>
26158
26159         PR target/31635
26160         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
26161         OPT_mvrsave.
26162
26163 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
26164
26165         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
26166         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
26167         * configure: Regenerate.
26168         * config.in: Regenerate.
26169         * config/rs6000/rs6000.opt (mtls-markers): Add.
26170         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
26171         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
26172         (tls_ld_aix, tls_ld_sysv): Likewise.
26173         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
26174         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
26175
26176 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
26177
26178         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
26179
26180 2009-03-30  Jan Hubicka  <jh@suse.cz>
26181
26182         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
26183         out of RESX.
26184         (tree_remove_unreachable_handlers): Cleanup EH predecestor
26185         detection and label handling.
26186
26187 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
26188
26189         * ira-int.h (ira_allocno): Rename left_conflicts_num to
26190         left_conflicts_size.
26191         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
26192         ALLOCNO_LEFT_CONFLICTS_SIZE.
26193
26194         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
26195         remove_allocno_from_bucket_and_push,
26196         allocno_spill_priority_compare, push_allocnos_to_stack,
26197         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
26198         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
26199         (setup_allocno_left_conflicts_num): Ditto.  Rename to
26200         setup_allocno_left_conflicts_size.
26201         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
26202         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
26203         setup_allocno_left_conflicts_size instead of
26204         setup_allocno_left_conflicts_num.
26205
26206         * ira-build.c (ira_create_allocno): Use
26207         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
26208         ALLOCNO_LEFT_CONFLICTS_NUM.
26209
26210 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
26211
26212         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
26213         instead of DF_LR_OUT.
26214
26215         * ira-lives.c (process_bb_node_lives): Ditto.
26216
26217         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
26218         instead of DF_LR_{OUT,IN}.
26219
26220         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
26221
26222         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
26223
26224 2009-03-30  Jan Hubicka  <jh@suse.cz>
26225
26226         * except.c (label_to_region_map): Fix thinko.
26227
26228 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
26229
26230         PR middle-end/38237
26231         * tree.h (tree_find_value): New declaration.
26232         * tree.c (tree_find_value): New function.
26233         * varasm.c (assemble_external): Avoid duplicate entries on lists.
26234
26235 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
26236
26237         PR debug/39563
26238         * c-decl.c (struct c_binding): Add locus field.
26239         (bind): Add locus argument, set locus field from it.
26240         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
26241         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
26242         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
26243         implicitly_declare, undeclared_variable, lookup_label,
26244         declare_label, c_make_fname_decl, c_builtin_function,
26245         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
26246         bind callers.
26247
26248 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
26249
26250         PR target/38781
26251         * config/i386/i386.c (classify_argument): Check total size of
26252         structure.
26253
26254 2009-03-30  Martin Jambor  <mjambor@suse.cz>
26255
26256         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
26257         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
26258         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
26259         respectively.
26260
26261         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
26262         seen_variable_array_ref while also traversing a union.
26263
26264         * tree-inline.c (optimize_inline_calls): Do not call
26265         cgraph_node_remove_callees.
26266         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
26267         (pass_remove_cgraph_callee_edges): New variable.
26268         * passes.c (init_optimization_passes): Add
26269         pass_remove_cgraph_callee_edges after early inlining and before all
26270         late intraprocedural passes.
26271
26272         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
26273
26274 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
26275
26276         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
26277         Fix typos in names.
26278
26279 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
26280
26281         * combine.c (simplify_comparison): Use have_insn_for.
26282         * dojump.c (do_jump): Likewise.
26283
26284 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
26285
26286         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
26287         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
26288         sparc_compare_op0 like sparc_compare_emitted used to be handled.
26289         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
26290         instead of sparc_compare_emitted.
26291         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
26292         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
26293         instead of sparc_compare_emitted.
26294
26295 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
26296
26297         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
26298         enter/exit cfglayout mode.
26299         (pass_partition_block): Require it.
26300         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
26301         (combine_instructions): Track basic blocks instead of labels.
26302         (update_cfg_for_uncondjump): New.
26303         (try_combine): Use it.  Update jumps after rescanning.
26304         (pass_combine): Require PROP_cfglayout.
26305         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
26306
26307 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
26308
26309         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
26310         Provide/destroy PROP_cfglayout respectively.
26311         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
26312         * tree-pass.h (PROP_cfglayout): New.
26313
26314 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
26315
26316         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
26317         fold_convert_const_fixed_from_fixed,
26318         fold_convert_const_fixed_from_int,
26319         fold_convert_const_fixed_from_real, fold_negate_const): Do not
26320         set TREE_CONSTANT_OVERFLOW.
26321         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
26322         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
26323
26324 2009-03-30  Ira Rosen  <irar@il.ibm.com>
26325
26326         * tree-vect-loop-manip.c: New file.
26327         * tree-vectorizer.c: Update documentation and included files.
26328         (vect_loop_location): Make extern.
26329         (rename_use_op): Move to tree-vect-loop-manip.c
26330         (rename_variables_in_bb, rename_variables_in_loop,
26331         slpeel_update_phis_for_duplicate_loop,
26332         slpeel_update_phi_nodes_for_guard1,
26333         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
26334         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
26335         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
26336         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
26337         find_loop_location): Likewise.
26338         (new_stmt_vec_info): Move to tree-vect-stmts.c.
26339         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
26340         get_vectype_for_scalar_type, vect_is_simple_use,
26341         supportable_widening_operation, supportable_narrowing_operation):
26342         Likewise.
26343         (bb_in_loop_p): Move to tree-vect-loop.c.
26344         (new_loop_vec_info, destroy_loop_vec_info,
26345         reduction_code_for_scalar_code, report_vect_op,
26346         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
26347         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
26348         (vect_supportable_dr_alignment): Likewise.
26349         * tree-vectorizer.h (tree-data-ref.h): Include.
26350         (vect_loop_location): Declare.
26351         Reorganize function declarations according to the new file structure.
26352         * tree-vect-loop.c: New file.
26353         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
26354         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
26355         * tree-vect-data-refs.c: New file.
26356         * tree-vect-patterns.c (timevar.h): Don't include.
26357         * tree-vect-stmts.c: New file.
26358         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
26359         tree-vect-slp.c, tree-vect-loop.c.
26360         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
26361         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
26362         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
26363         (tree-vect-analyze.o): Remove.
26364         (tree-vect-transform.o): Likewise.
26365         (tree-vect-data-refs.o): Add rule.
26366         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
26367         tree-vect-slp.o): Likewise.
26368         (tree-vect-patterns.o): Remove redundant dependencies.
26369         (tree-vectorizer.o): Likewise.
26370         * tree-vect-slp.c: New file.
26371
26372 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26373
26374         * optc-gen.awk: Warn if an option flag has multiple different
26375         help strings.
26376
26377 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
26378
26379         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
26380         -floop-block): Document dependences on PPL, CLooG and Graphite.
26381
26382 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
26383
26384         PR rtl-optimization/323
26385         * c-common.c (c_fully_fold, convert_and_check,
26386         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
26387         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
26388         * c-common.def (EXCESS_PRECISION_EXPR): New.
26389         * c-cppbuiltin.c (builtin_define_float_constants): Define
26390         constants with enough digits for long double.
26391         * c-lex.c (interpret_float): Interpret constant with excess
26392         precision where appropriate.
26393         * c-opts.c (c_common_post_options): Set
26394         flag_excess_precision_cmdline.  Give an error for
26395         -fexcess-precision=standard for C++ for processors where the
26396         option is significant.
26397         * c-parser.c (c_parser_conditional_expression): Handle excess
26398         precision in condition.
26399         * c-typeck.c (convert_arguments): Handle arguments with excess
26400         precision.
26401         (build_unary_op): Move excess precision outside operation.
26402         (build_conditional_expr): Likewise.
26403         (build_compound_expr): Likewise.
26404         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
26405         (build_modify_expr): Handle excess precision in RHS.
26406         (convert_for_assignment): Handle excess precision in converted
26407         value.
26408         (digest_init, output_init_element, process_init_element): Handle
26409         excess precision in initializer.
26410         (c_finish_return): Handle excess precision in return value.
26411         (build_binary_op): Handle excess precision in operands and add
26412         excess precision as needed for operation.
26413         * common.opt (-fexcess-precision=): New option.
26414         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
26415         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
26416         For standard excess precision, output explicit conversion to and
26417         truncation from XFmode.
26418         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
26419         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
26420         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
26421         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
26422         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
26423         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
26424         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
26425         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
26426         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
26427         define_splits, sqrt<mode>2): Disable where appropriate for
26428         standard excess precision.
26429         * convert.c (convert_to_real): Do not shorten arithmetic to type
26430         for which excess precision would be used.
26431         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
26432         * doc/invoke.texi (-fexcess-precision=): Document option.
26433         (-mfpmath=): Correct index entry.
26434         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
26435         flag_excess_precision): New.
26436         * langhooks.c (lhd_post_options): Set
26437         flag_excess_precision_cmdline.
26438         * opts.c (common_handle_option): Handle -fexcess-precision=.
26439         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
26440         init_excess_precision): New.
26441         (lang_dependent_init_target): Call init_excess_precision.
26442         * tree.c (excess_precision_type): New.
26443         * tree.h (excess_precision_type): Declare.
26444
26445 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
26446
26447         PR c/35235
26448         * c-typeck.c (build_component_ref): Do not copy qualifiers from
26449         non-lvalue to component.
26450
26451 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
26452
26453         PR preprocessor/34695
26454         * Makefile.in (c-opts.o): Depend on c-tree.h.
26455         * c-common.c: Move down include of diagnostic.h.
26456         (done_lexing, c_cpp_error): New.
26457         * c-common.h (done_lexing): Declare.
26458         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
26459         (parse_in).
26460         * c-opts.c: Include c-tree.h.
26461         (c_common_init_options): Set preprocessor error callback.
26462         (c_common_handle_option): Do not set preprocessor
26463         inhibit_warnings, warnings_are_errors, warn_system_headers,
26464         pedantic_errors or inhibit_warnings flags.
26465         (c_common_post_options): Do not check cpp_errors (parse_in).
26466         (c_common_finish): Do not output dependencies if there were
26467         errors.  Do not check return value of cpp_finish.
26468         * c-ppoutput.c (pp_file_change): Set input_location.
26469         * c-tree.h (c_cpp_error): Declare.
26470         * diagnostic.c (diagnostic_set_info_translated): Also initialize
26471         override_column.
26472         (diagnostic_build_prefix): Check override_column.
26473         * diagnostic.h (diagnostic_info): Add override_column field.
26474         (diagnostic_override_column): Define.
26475
26476 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
26477
26478         * c-common.c (c_expand_expr, c_staticp): Remove.
26479         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
26480         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
26481         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
26482         * c-gimplify.c (gimplify_compound_literal_expr,
26483         optimize_compound_literals_in_ctor): Remove.
26484         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
26485         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
26486         * c-semantics.c (emit_local_var): Remove.
26487
26488         * langhooks-def.h (lhd_expand_expr): Remove.
26489         * langhooks.c (lhd_expand_expr): Remove.
26490         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
26491
26492         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
26493         handling from c-semantics.c; don't call into langhook.
26494         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
26495         * gimplify.c (gimplify_compound_literal_expr,
26496         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
26497         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
26498         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
26499         as was done in c-gimplify.c.
26500         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
26501         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
26502         Move from c-common.h.
26503         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
26504
26505         * tree.c (staticp): Do not call langhook.
26506         * langhooks.c (lhd_staticp): Delete.
26507         * langhooks-def.h (lhd_staticp): Delete prototype.
26508         (LANG_HOOKS_STATICP): Delete.
26509         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
26510
26511         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
26512         instead of DECL_STMTs.
26513
26514 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
26515
26516         PR c/456
26517         PR c/5675
26518         PR c/19976
26519         PR c/29116
26520         PR c/31871
26521         PR c/35198
26522         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
26523         void_type_node.
26524         (fold_call_expr): Return a NOP_EXPR from folding rather than the
26525         contained expression.
26526         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
26527         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
26528         conditional expressions for C.
26529         (decl_constant_value_for_optimization): Move from
26530         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
26531         whether optimizing and that the expression is a VAR_DECL not of
26532         array type instead of doing such checks in the caller.  Do not
26533         check pedantic.  Call gcc_unreachable for C++.
26534         * c-common.def (C_MAYBE_CONST_EXPR): New.
26535         * c-common.h (c_fully_fold, c_save_expr,
26536         decl_constant_value_for_optimization): New prototypes.
26537         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
26538         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
26539         EXPR_INT_CONST_OPERANDS): Define.
26540         * c-convert.c (convert): Strip nops from expression.
26541         * c-decl.c (groktypename): Take extra parameters expr and
26542         expr_const_operands.  Update call to grokdeclarator.
26543         (start_decl): Update call to grokdeclarator.  Add statement for
26544         expressions used in type of decl.
26545         (grokparm): Update call to grokdeclarator.
26546         (push_parm_decl): Update call to grokdeclarator.
26547         (build_compound_literal): Add parameter non_const and build a
26548         C_MAYBE_COSNT_EXPR if applicable.
26549         (grokdeclarator): Take extra parameters expr and
26550         expr_const_operands.  Track expressions used in declaration
26551         specifiers and declarators.  Fold array sizes and track whether
26552         they are constant expressions and whether they are integer
26553         constant expressions.
26554         (parser_xref_tag): Set expr and expr_const_operands fields in
26555         return value.
26556         (grokfield): Update call to grokdeclarator.
26557         (start_function): Update call to grokdeclarator.
26558         (build_null_declspecs): Set expr and expr_const_operands fields in
26559         return value.
26560         (declspecs_add_type): Handle expressions in typeof specifiers.
26561         * c-parser.c (c_parser_declspecs): Set expr and
26562         expr_const_operands fields for declaration specifiers.
26563         (c_parser_enum_specifier): Likewise.
26564         (c_parser_struct_or_union_specifier): Likewise.
26565         (c_parser_typeof_specifier): Likewise.  Update call to
26566         groktypename.  Fold expression as needed.  Return expressions with
26567         type instead of adding statements.
26568         (c_parser_attributes): Update calls to c_parser_expr_list.
26569         (c_parser_statement_after_labels): Fold expression before passing
26570         to objc_build_throw_stmt.
26571         (c_parser_condition): Fold expression.
26572         (c_parser_asm_operands): Fold expression.
26573         (c_parser_conditional_expression): Use c_save_expr.  Update call
26574         to build_conditional_expr.
26575         (c_parser_alignof_expression): Update call to groktypename.
26576         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
26577         original_code.  Fold expression argument of va_arg.  Create
26578         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
26579         argument to va_arg.  Update calls to groktypename.  Fold array
26580         index for offsetof.  Verify that first argument to
26581         __builtin_choose_expr has integer type.
26582         (c_parser_postfix_expression_after_paren_type): Update calls to
26583         groktypename and build_compound_literal.  Handle expressions with
26584         side effects in type name.
26585         (c_parser_postfix_expression_after_primary): Update call to
26586         c_parser_expr_list.  Set original_code for calls to
26587         __builtin_constant_p.
26588         (c_parser_expr_list): Take extra parameter fold_p.  Fold
26589         expressions if requested.
26590         (c_parser_objc_type_name): Update call to groktypename.
26591         (c_parser_objc_synchronized_statement): Fold expression.
26592         (c_parser_objc_receiver): Fold expression.
26593         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
26594         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
26595         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
26596         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
26597         (struct c_typespec): Add elements expr and expr_const_operands.
26598         (struct c_declspecs): Add elements expr and expr_const_operands.
26599         (groktypename, build_conditional_expr, build_compound_literal):
26600         Update prototypes.
26601         (in_late_binary_op): Declare.
26602         * c-typeck.c (note_integer_operands): New function.
26603         (in_late_binary_op): New variable.
26604         (decl_constant_value_for_broken_optimization): Move to c-common.c
26605         and rename to decl_constant_value_for_optimization.
26606         (default_function_array_conversion): Do not strip nops.
26607         (default_conversion): Do not call
26608         decl_constant_value_for_broken_optimization.
26609         (build_array_ref): Do not fold result.
26610         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
26611         result when operand is a VLA.
26612         (c_expr_sizeof_type): Update call to groktypename.  Handle
26613         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
26614         result when operand names a VLA type.
26615         (build_function_call): Update call to build_compound_literal.
26616         Only fold result for calls to __builtin_* functions.  Strip
26617         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
26618         the function designator.
26619         (convert_arguments): Fold arguments.  Update call to
26620         convert_for_assignment.
26621         (build_unary_op): Handle increment and decrement of
26622         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
26623         decrement earlier.  Fold operand of increment and decrement.
26624         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
26625         built for integer operand.  Wrap returns that are INTEGER_CSTs
26626         without being integer constant expressions or that have integer
26627         constant operands without being INTEGER_CSTs.
26628         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
26629         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
26630         result is an integer constant expression or can be used in
26631         unevaluated parts of one and avoid folding and wrap as
26632         appropriate.  Fold operands before possibly doing -Wsign-compare
26633         warnings.
26634         (build_compound_expr): Wrap result for C99 if operands can be used
26635         in integer constant expressions.
26636         (build_c_cast): Update call to digest_init.  Do not ignore
26637         overflow from casting floating-point constants to integers.  Wrap
26638         results that could be confused with integer constant expressions,
26639         null pointer constants or floating-point constants.
26640         (c_cast_expr): Update call to groktypename.  Handle expressions
26641         included in type name.
26642         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
26643         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
26644         Update calls to convert_for_assignment.
26645         (convert_for_assignment): Take new parameter
26646         null_pointer_constant.  Do not strip nops or call
26647         decl_constant_value_for_broken_optimization.  Set
26648         in_late_binary_op for conversions to boolean.
26649         (store_init_value): Update call to digest_init.
26650         (digest_init): Take new parameter null_pointer_constant.  Do not
26651         call decl_constant_value_for_broken_optimization.  pedwarn for
26652         initializers not constant expressions.  Update calls to
26653         convert_for_assignment.
26654         (constructor_nonconst): New.
26655         (struct constructor_stack): Add nonconst element.
26656         (really_start_incremental_init, push_init_level, pop_init_level):
26657         Handle constructor_nonconst and nonconst element.
26658         (set_init_index): Call constant_expression_warning for array
26659         designators.
26660         (output_init_element): Fold value.  Set constructor_nonconst as
26661         applicable.  pedwarn for initializers not constant expressions.
26662         Update call to digest_init.  Call constant_expression_warning
26663         where constant initializers are required.
26664         (process_init_element): Use c_save_expr.
26665         (c_finish_goto_ptr): Fold expression.
26666         (c_finish_return): Fold return value.  Update call to
26667         convert_for_assignment.
26668         (c_start_case): Fold switch expression.
26669         (c_process_expr_stmt): Fold expression.
26670         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
26671         ensure statement expression is not evaluated in constant expression.
26672         (build_binary_op): Track whether results are integer constant
26673         expressions or may occur in such, disable folding and wrap results
26674         as applicable.  Fold operands for -Wsign-compare warnings unless
26675         in_late_binary_op.
26676         (c_objc_common_truthvalue_conversion): Handle results folded to
26677         integer constants that are not integer constant expressions.
26678         * doc/extend.texi: Document when typeof operands are evaluated,
26679         that condition of __builtin_choose_expr is an integer constant
26680         expression, and more about use of __builtin_constant_p in
26681         initializers.
26682
26683 2009-03-29  Richard Guenther  <rguenther@suse.de>
26684
26685         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
26686         propagate addresses of array references.
26687
26688 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
26689
26690         * regmove.c (perhaps_ends_bb_p): Remove.
26691         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
26692         from INSN and check that the main loop stays within that basic block.
26693         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
26694         (regmove_forward_pass): Split out from regmove_optimize.  Use
26695         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
26696         (regmove_backward_pass): Split out from regmove_optimize.  Use
26697         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
26698         (regmove_optimize): Simplify.
26699
26700 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
26701
26702         PR target/39545
26703         * config/i386/i386.c (classify_argument): Ignore flexible array
26704         member in struct and warn ABI change.
26705
26706 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
26707
26708         * config/i386/i386-protos.h (ix86_agi_dependent): New.
26709
26710         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
26711         (ix86_adjust_cost): Updated.
26712
26713 2009-03-29  Jan Hubicka  <jh@suse.cz>
26714
26715         PR middle-end/28850
26716         * tree-pass.h (pass_cleanup_eh): New function.
26717         (remove_unreachable_regions): Break code handling RTL
26718         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
26719         that can not be reached by runtime.
26720         (can_be_reached_by_runtime): New function.
26721         (label_to_region_map): New function.
26722         (num_eh_regions): New function.
26723         (rtl_remove_unreachable_regions): New function.
26724         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
26725         (remove_eh_region): New function.
26726         * except.h: Include sbitmap and vecprim.
26727         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
26728         num_eh_regions): Declare.
26729         * passes.c (init_optimization_passes): Schedule cleanup_eh.
26730         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
26731         * tree-eh.c (tree_remove_unreachable_handlers): New function.
26732         (tree_empty_eh_handler_p): New function.
26733         (cleanup_empty_eh): New function.
26734         (cleanup_eh): New function.
26735         (pass_cleanup_eh): New function.
26736
26737 2009-03-29  Jan Hubicka  <jh@suse.cz>
26738
26739         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
26740         for removed regions.
26741
26742 2009-03-29  Jan Hubicka  <jh@suse.cz>
26743
26744         * except.c (dump_eh_tree): Dump all datastructures.
26745
26746 2009-03-29  Jan Hubicka  <jh@suse.cz>
26747
26748         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
26749         (duplicate_eh_regions_1): Likewise.
26750         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
26751         vector; call EH verification.
26752         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
26753         Be ready for region being removed.
26754
26755 2009-03-29  Jan Hubicka  <jh@suse.cz>
26756
26757         * bitmap.c (bitmap_last_set_bit): New function.
26758         * bitmap.h (bitmap_last_set_bit): Declare.
26759
26760 2009-03-29  David Ayers  <ayers@fsfe.org>
26761
26762         PR objc/27377
26763         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
26764         by calling objc_compare_types and surpress warnings about
26765         incompatible C pointers that are compatible ObjC pointers.
26766
26767 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
26768
26769         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
26770         call initialize_inline_failed.
26771         (initialize_inline_failed): Move it from here ...
26772         * cgraph.c (initialize_inline_failed): ... to here.
26773         (cgraph_create_edge): Call initialize_inline_failed rather than
26774         setting inline_failed directly.
26775
26776 2009-03-29  Ben Elliston  <bje@au.ibm.com>
26777
26778         PR target/32542
26779         * sysv4.opt (msdata): Improve comment.
26780         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
26781         * sysv4.h (SVR4_ASM_SPEC): Likewise.
26782
26783 2009-03-29  Ben Elliston  <bje@au.ibm.com>
26784
26785         PR target/30451
26786         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
26787         load and store attributes.
26788
26789 2009-03-29  Ben Elliston  <bje@au.ibm.com>
26790
26791         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
26792         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
26793         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
26794         * doc/extend.texi (X86 Built-in Functions): Add index entries for
26795         __builtin_infq and __builtin_huge_valq.
26796
26797 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
26798
26799         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
26800         atmega8m1 devices.
26801         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
26802         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
26803
26804 2009-03-28  Xinliang David Li  <davidxl@google.com>
26805
26806         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
26807         (do_dbg_cnt): New function.
26808
26809 2009-03-28  Jan Hubicka  <jh@suse.cz>
26810
26811         Merge from pretty-ipa:
26812
26813         2009-03-27  Jan Hubicka  <jh@suse.cz>
26814
26815         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
26816         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
26817         * passes.c (function_called_by_processed_nodes_p): New.
26818         * ipa-pure-const.c (check_call): Fix handling of operands.
26819         (analyze_function): Dump debug output for skipped bodies.
26820         (local_pure_const): Use function_called_by_processed_nodes_p.
26821         * dwarf2out.c (reference_to_unused): Use output.
26822         * passes.c (do_per_function_toporder): Likewise.
26823
26824         2008-11-12  Jan Hubicka  <jh@suse.cz>
26825
26826         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
26827         * ipa-pure-const.c (funct_state_d): Add can throw field; make
26828         state_set_in_source enum
26829         (check_decl): Ignore memory tags; do not set fake looping flags;
26830         dump diagnostics.
26831         (check_operand, check_tree, check_rhs_var, check_lhs_var,
26832         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
26833         (check_call, analyze_function): Rewrite.
26834         (check_stmt): New.
26835         (add_new_function): Update call of analyze_function.
26836         (generate_summary): Add call of analyze_function.
26837         (propagate): Propagate can_throw; handle state_set_in_source correctly.
26838         (local_pure_const): New function.
26839         (pass_local_pure_const): New pass.
26840         * ipa-inline.c (inline_transform): Set after_inlining.
26841         * tree-eh.c (stmt_can_throw_external): New.
26842         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
26843         work with aliasing built.
26844         * tree-flow.h (stmt_can_throw_external): New.
26845         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
26846         and local pure/const pass in early and late optimization queue.
26847
26848 2009-03-28  Martin Jambor  <mjambor@suse.cz>
26849
26850         * fold-const.c (get_pointer_modulus_and_residue): New parameter
26851         allow_func_align.
26852         (fold_binary): Allow function decl aligment consideration is the
26853         second argument is integer constant one.
26854         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
26855         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
26856         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
26857
26858 2009-03-28  Jan Hubicka  <jh@suse.cz>
26859
26860         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
26861         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
26862         * function.h (rtl_data): Add nothrow flag.
26863         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
26864         set DECL_NOTHROW for AVAILABLE functions.
26865
26866 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
26867
26868         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
26869         following vector keyword has expansion starting with pixel or bool
26870         keyword, expand vector to __vector and pixel or bool to __pixel or
26871         __bool.
26872
26873         PR c++/39554
26874         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
26875         warn_if_disallowed_function_p): Removed.
26876         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
26877         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
26878         warning_if_disallowed_function_p.
26879         * flags.h (warn_if_disallowed_function_p,
26880         warn_disallowed_functions): Removed.
26881         * common.opt (Wdisallowed-function-list=): Removed.
26882         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
26883
26884 2009-03-28  Richard Guenther  <rguenther@suse.de>
26885
26886         PR tree-optimization/38723
26887         * tree-ssa-pre.c (compute_avail): Add all default definitions to
26888         the entry block.
26889
26890 2009-03-28  Jan Hubicka  <jh@suse.cz>
26891
26892         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
26893         test introduced by my previous patch.
26894
26895 2009-03-28  Richard Guenther  <rguenther@suse.de>
26896
26897         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
26898         the PHIs value undefined.
26899
26900 2009-03-28  Jan Hubicka  <jh@suse.cz>
26901
26902         * tree-pass.h (pass_fixup_cfg): New pass.
26903         * ipa-inline.c (inline_transform): Set
26904         always_inline_functions_inlined/after_inlining.
26905         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
26906         (pass_fixup_cfg): New pass.
26907         * passes.c (init_optimization_passes): Add fixup_cfg.
26908
26909 2009-03-28  Richard Guenther  <rguenther@suse.de>
26910
26911         PR tree-optimization/38458
26912         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
26913         argument use the arguments copy-of value.
26914
26915 2009-03-28  Richard Guenther  <rguenther@suse.de>
26916
26917         PR tree-optimization/38180
26918         * tree-ssa-ccp.c (get_default_value): Simplify.
26919         (likely_value): Likewise.
26920         (surely_varying_stmt_p): Properly handle VOP case.
26921         (ccp_initialize): Likewise.
26922         (ccp_fold): Handle propagating through *&.
26923         (fold_const_aggregate_ref): Also handle decls.
26924
26925 2009-03-28  Jan Hubicka  <jh@suse.cz>
26926
26927         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
26928         * cgraph.h (cgraph_node): Likewise.
26929         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
26930         (cgraph_reset_node): Use process flag.
26931         (cgraph_mark_functions_to_output): Likewise.
26932         (cgraph_expand_function): Likewise.
26933         (cgraph_expand_all_functions): Likewise.
26934         (cgraph_output_in_order): Likewise.
26935         * dwarf2out.c (reference_to_unused): Likewise.
26936         * passes.c do_per_function_toporder): Likewise.
26937
26938 2009-03-28  Jan Hubicka  <jh@suse.cz>
26939
26940         Bring from lto-branch:
26941
26942         2008-09-03  Doug Kwan  <dougkwan@google.com>
26943
26944         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
26945         enums instead of reason strings.
26946         * cgraph.c (cgraph_create_edge): Same.
26947         (cgraph_inline_failed_string): New function.
26948         * cgraph.h (cgraph_inline_failed_t): New enum type.
26949         (cgraph_inline_failed_string): New prototype.
26950         (struct cgraph_edge): Change type of INLINED_FAILED from constant
26951         char pointer to cgraph_inline_failed_t.
26952         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
26953         (cgraph_default_inline_p): Ditto.
26954         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
26955         to cgraph_inline_failed_t pointer.
26956         * cif-code.def: New file.
26957         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
26958         reason string.
26959         (cgraph_check_inline_limits): Change type of REASON to pointer to
26960         cgraph_inline_failed_t.  Replace reason strings with enums.
26961         (cgraph_default_inline_p): Ditto.
26962         (cgraph_recursive_inlining_p): Ditto.
26963         (update_caller_keys): Change type of FAILED_REASON to
26964         cgraph_inline_failed_t.
26965         (cgraph_set_inline_failed): Change type of REASON to pointer to
26966         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
26967         convert enums to strings for text output.
26968         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
26969         to be of type cgraph_inline_failed_t.  Replace reason strings with
26970         enums.  Call cgraph_inline_failed_string to covert enums
26971         to strings for text output.
26972         (cgraph_decide_inlining): Replace reason strings with enums.
26973         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
26974         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
26975         for text output.
26976         * tree-inline.c (expand_call_inline): Change type of REASON
26977         to cgraph_inline_failed_t.  Replace reason strings with enums.
26978         Call cgraph_inline_failed_string for text output.
26979         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
26980         (cgraph.o): Ditto.
26981
26982 2009-03-28  Jan Hubicka  <jh@suse.cz>
26983
26984         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
26985         cgraph_clone_node): Remove master clone handling.
26986         (cgraph_is_master_clone, cgraph_master_clone): Remove.
26987         * cgraph.h (master_clone): Remove.
26988         (cgraph_is_master_clone, cgraph_master_clone): Remove.
26989         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
26990         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
26991
26992 2009-03-28  Jan Hubicka  <jh@suse.cz>
26993
26994         * cgraph.c (cgraph_function_body_availability): Functions declared
26995         inline are always safe to assume that it is not going to be replaced.
26996
26997 2009-03-28  Richard Guenther  <rguenther@suse.de>
26998
26999         PR tree-optimization/38513
27000         * tree-ssa-pre.c (eliminate): Remove redundant stores.
27001         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
27002         EXC_PTR_EXPR and FILTER_EXPR.
27003         (get_ref_from_reference_ops): Likewise.
27004
27005 2009-03-28  Richard Guenther  <rguenther@suse.de>
27006
27007         PR tree-optimization/38968
27008         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
27009         Use FLOOR_MOD_EXPR to compute misalignment.
27010
27011 2009-03-28  Richard Guenther  <rguenther@suse.de>
27012
27013         PR tree-optimization/37795
27014         * tree.h (combine_comparisons): Declare.
27015         * fold-const.c (combine_comparisons): Export.
27016         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
27017         comparisons.
27018         (ifcombine_iforif): Use combine_comparisons.
27019
27020 2009-03-28  Jan Hubicka  <jh@suse.cz>
27021
27022         * tree-eh.c (inlinable_call_p): New function.
27023         (make_eh_edges): Use it.
27024         (verify_eh_edges): Use it.
27025         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
27026         * except.c (reachable_next_level): Add inlinable_function argument
27027         (sjlj_find_directly_reachable_regions): Update.
27028         (add_reachable_handler): Do not set saw_any_handlers.
27029         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
27030         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
27031         Add new inlinable call parameter.
27032         (can_throw_internal, can_throw_external): Update.
27033         * except.h (can_throw_internal_1, can_throw_external_1,
27034         foreach_reachable_handler): Update declaration.
27035
27036 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
27037
27038         * config/arm/t-arm-coff, config/h8300/coff.h,
27039         config/i386/i386-aout.h, config/i386/i386-coff.h,
27040         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
27041         config/pdp11/2bsd.h, config/rs6000/aix41.h,
27042         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
27043         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
27044         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
27045         sys-types.h: Remove.
27046         * Makefile.in: Remove protoize and fixproto support and references
27047         in comments.
27048         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
27049         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
27050         Remove.
27051         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
27052         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
27053         unprotoize$(exeext).
27054         (rest.encap): Don't depend on $(STMP_FIXPROTO)
27055         (.PHONY): Don't depend on proto.
27056         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
27057         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
27058         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
27059         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
27060         build/gen-protos.o, build/scan.o, xsys-protos.h,
27061         build/fix-header$(build_exeext), build/fix-header.o,
27062         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
27063         stmp-install-fixproto): Remove.
27064         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
27065         SYSCALLS.c or fixproto files.
27066         (install-common): Don't install protoize.
27067         (install-headers-tar, install-headers-cpio, install-headers-cp):
27068         Don't depend on $(STMP_FIXPROTO).
27069         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
27070         install fixproto files or write out fixproto settings.
27071         (uninstall): Don't uninstall protoize.
27072         * config.gcc (use_fixproto): Remove.
27073         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
27074         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
27075         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
27076         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
27077         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
27078         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
27079         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
27080         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
27081         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
27082         * config/t-vxworks (STMP_FIXPROTO): Remove.
27083         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
27084         STMP_FIXPROTO): Remove.
27085         * config.in, configure: Regenerate.
27086         * crtstuff.c (gid_t, uid_t): Don't undefine.
27087         * doc/install.texi: Change m68k-coff to m68k-elf in example.
27088         (arm-*-coff, arm-*-aout: Remove target entries.
27089         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
27090         Remove mention of AIX 4.1.
27091         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
27092         * doc/invoke.texi (Running Protoize): Remove.
27093         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
27094         (Protoize Caveats): Remove.
27095         * tsystem.h: Update comments on headers assumed to exist.
27096
27097 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
27098
27099         * genautomata.c: Add a new year to the copyright.  Add a new
27100         reference.
27101         (struct insn_reserv_decl): Add comments for member bypass_list.
27102         (find_bypass): Remove.
27103         (insert_bypass): New.
27104         (process_decls): Use insert_bypass.
27105         (output_internal_insn_latency_func): Output all bypasses with the
27106         same input insn in one switch case.
27107
27108         * rtl.def (define_bypass): Describe bypass choice.
27109         * doc/md.texi (define_bypass): Ditto.
27110
27111 2009-03-27  Richard Guenther  <rguenther@suse.de>
27112
27113         * gimplify.c (mark_addressable): Export.
27114         * tree-flow.h (mark_addressable): Declare.
27115         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
27116         * tree-ssa.c (verify_phi_args): Verify that address taken
27117         variables have TREE_ADDRESSABLE set.
27118
27119 2009-03-27  Richard Guenther  <rguenther@suse.de>
27120
27121         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
27122         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
27123         Do not mark decls TREE_ADDRESSABLE.
27124         (build_fold_addr_expr): Adjust.
27125         (fold_addr_expr): Remove.
27126         (fold_unary): Use build_fold_addr_expr.
27127         (fold_comparison): Likewise.
27128         (split_address_to_core_and_offset): Likewise.
27129         * coverage.c (tree_coverage_counter_addr): Mark the array decl
27130         TREE_ADDRESSABLE.
27131         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
27132         (gimplify_modify_expr_to_memcpy): Mark source and destination
27133         addressable.
27134         * omp-low.c (create_omp_child_function): Mark the object decl
27135         TREE_ADDRESSABLE.
27136         (lower_rec_input_clauses): Mark the var we take the address of
27137         TREE_ADDRESSABLE.
27138         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
27139
27140 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27141
27142         PR middle-end/39315
27143         * cfgexpand.c (expand_one_stack_var_at): Change alignment
27144         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
27145
27146 2009-03-27  Richard Guenther  <rguenther@suse.de>
27147
27148         PR tree-optimization/39120
27149         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
27150         constraints.
27151         (handle_lhs_call): Process return constraints.  Add escape
27152         constraints if necessary.
27153         (handle_const_call): Fill out return constraints.  Make nested
27154         case more precise.  Avoid consttmp if possible.
27155         (handle_pure_call): Fill out return constraints.  Avoid
27156         callused if possible.
27157         (find_func_aliases): Simplify call handling.
27158
27159 2009-03-27  Richard Guenther  <rguenther@suse.de>
27160
27161         PR tree-optimization/39120
27162         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
27163         as a representative.
27164         (solve_graph): Do propagate CALLUSED.
27165         (handle_pure_call): Use a scalar constraint from CALLUSED for
27166         the return value.
27167         (find_what_p_points_to): CALLUSED shall not appear in poins-to
27168         solutions.
27169
27170 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27171
27172         PR c/39323
27173         * c-common.c (handle_aligned_attribute): Properly check alignment
27174         overflow.  Use (1U << i) instead of (1 << i).
27175
27176         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
27177
27178         * expr.h (get_mem_align_offset): Updated.
27179
27180         * tree.h (tree_decl_common): Change align to "unsigned int" and
27181         move it before pointer_alias_set.
27182
27183 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27184             Jakub Jelinek  <jakub@redhat.com>
27185
27186         PR target/38034
27187         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
27188         gr_register_operand with gr_reg_or_0_operand.
27189         (cmpxchg_rel_di): Likewise.
27190         (sync_lock_test_and_set<mode>): Likewise.
27191
27192 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27193
27194         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
27195         (true_regnum): Likewise.
27196
27197         * rtlanal.c (subreg_info): Moved to ...
27198         * rtl.h (subreg_info): Here.  New.
27199         (subreg_get_info): New.
27200
27201         * rtlanal.c (subreg_get_info): Make it extern.
27202
27203 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27204
27205         PR target/39472
27206         * config/i386/i386.c (ix86_abi): New.
27207         (override_options): Handle -mabi=.
27208         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
27209         (ix86_call_abi_override): Likewise.
27210         (init_cumulative_args): Likewise.
27211         (function_arg_advance): Likewise.
27212         (function_arg_64): Likewise.
27213         (function_arg): Likewise.
27214         (ix86_pass_by_reference): Likewise.
27215         (ix86_function_value_regno_p): Likewise.
27216         (ix86_build_builtin_va_list_abi): Likewise.
27217         (setup_incoming_varargs_64): Likewise.
27218         (is_va_list_char_pointer): Likewise.
27219         (ix86_init_machine_status): Likewise.
27220         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
27221         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
27222         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
27223         (ix86_function_abi): Make it static and return enum calling_abi.
27224         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
27225         with ix86_abi.
27226         (ix86_fn_abi_va_list): Updated.
27227
27228         * config/i386/i386.h (ix86_abi): New.
27229         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
27230         (CONDITIONAL_REGISTER_USAGE): Likewise.
27231         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
27232         (machine_function): Likewise.
27233
27234         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
27235         with ix86_abi.
27236         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
27237         (STACK_BOUNDARY): Likewise.
27238         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
27239
27240         * config/i386/i386.opt (mabi=): New.
27241
27242         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
27243         return enum calling_abi.
27244         (ix86_function_type_abi): Likewise.
27245         (ix86_function_abi): Removed.
27246
27247         * doc/invoke.texi: Document -mabi= option for x86.
27248
27249 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
27250
27251         * builtins.c (real_dconstp): Delete.
27252         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
27253
27254 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
27255             Jakub Jelinek  <jakub@redhat.com>
27256
27257         PR debug/37959
27258         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
27259         (gen_subprogram_die): When a function is explicit, generate the
27260         DW_AT_explicit attribute.
27261         * langhooks.h (struct lang_hooks_for_decls): Add
27262         function_decl_explicit_p langhook.
27263         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
27264         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
27265
27266 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
27267
27268         * builtins.c (fold_builtin_memory_op): Optimize memmove
27269         into memcpy if we can prove source and destination don't overlap.
27270
27271         * tree-inline.c: Include gt-tree-inline.h.
27272         (clone_fn_id_num): New variable.
27273         (clone_function_name): New function.
27274         (tree_function_versioning): Use it.
27275         * Makefile.in (GTFILES): Add tree-inline.c.
27276
27277 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
27278
27279         * BASE-VER: Change to 4.5.0.
27280
27281 2009-03-27  Xinliang David Li  <davidxl@google.com>
27282
27283         PR tree-optimization/39557
27284         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
27285
27286 2009-03-27  Xinliang David Li  <davidxl@google.com>
27287
27288         PR tree-optimization/39548
27289         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
27290         candidate check.
27291
27292 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27293
27294         * c-common.c (pointer_int_sum): Use %wd on return from
27295         tree_low_cst.
27296
27297 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27298
27299         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
27300         on return from tree_low_cst.
27301
27302 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
27303
27304         PR c++/36799
27305         * ginclude/stdarg.h (va_copy): Define also for
27306         __GXX_EXPERIMENTAL_CXX0X__.
27307
27308 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
27309
27310         PR c++/35652
27311         * builtins.h (c_strlen): Do not warn here.
27312         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
27313         * c-common.c (pointer_int_sum): Take an explicit location.
27314         Warn about offsets out of bounds.
27315         * c-common.h (pointer_int_sum): Adjust declaration.
27316
27317 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27318
27319         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
27320         markup glitch.
27321
27322 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
27323
27324         PR c++/39554
27325         * opts.c (warn_if_disallowed_function_p): Don't assume
27326         get_callee_fndecl must return non-NULL.
27327
27328 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
27329
27330         PR rtl-optimization/39522
27331         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
27332         when reg_reloaded_valid is set.
27333
27334 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27335
27336         * config/spu/divv2df3.c: New file.
27337         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
27338         (DPBIT_FUNCS): Filter out _div_df.
27339
27340 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
27341
27342         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
27343         a jump insn, count that jump in the distance to the loop start.
27344
27345 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
27346
27347         PR target/39523
27348         * config/sh/sh.c (calc_live_regs): Fix condition for global
27349         registers except PIC_OFFSET_TABLE_REGNUM.
27350
27351 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
27352
27353         PR/39518
27354         * doc/invoke.texi (-mconsole): New.
27355         (-mcygwin): New.
27356         (-mno-cygwin): New.
27357         (-mdll): New.
27358         (-mnop-fun-dllimport): New.
27359         (-mthread): New.
27360         (-mwin32): New.
27361         (-mwindows): New.
27362         (sub section "i386 and x86-64 Windows Options"): New.
27363
27364 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
27365
27366         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
27367         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
27368
27369 2009-03-25  Richard Guenther  <rguenther@suse.de>
27370
27371         PR middle-end/39497
27372         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
27373         of -Wno-error.
27374
27375 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
27376
27377         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
27378         neither of haifa/selective schedulers are working.
27379
27380 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27381
27382         * doc/invoke.texi (Debugging Options): Fix description of
27383         -fno-merge-debug-strings.
27384
27385 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
27386
27387         * config/cris/libgcc.ver: New version-script.
27388         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
27389
27390         * configure.ac <GAS features, nop mnemonic>: Add pattern
27391         crisv32-*-* for "nop".
27392         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
27393         * configure: Regenerate.
27394
27395 2009-03-24  Ira Rosen  <irar@il.ibm.com>
27396
27397         PR tree-optimization/39529
27398         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
27399         mark_sym_for_renaming for the tag copied to the new vector
27400         pointer.
27401
27402 2009-03-24  Arthur Loiret  <aloiret@debian.org>
27403
27404         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
27405         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
27406         EXTRA_SPEC_FUNCTIONS.
27407         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
27408         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
27409         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
27410         -march and -mtune options.
27411
27412 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
27413
27414         * config/m68k/t-rtems: Add m5329 multilib.
27415
27416 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
27417             Jakub Jelinek  <jakub@redhat.com>
27418
27419         PR debug/39524
27420         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
27421         nodes.
27422
27423 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
27424
27425         PR c/39495
27426         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
27427         instead of c_parser_expression_conv, if original_code isn't one of the
27428         4 allowed comparison codes, fail.
27429
27430 2009-03-23  Richard Guenther  <rguenther@suse.de>
27431
27432         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
27433         * tree.h (struct tree_type): Likewise.
27434         * reload.h (struct insn_chain): Likewise.
27435         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
27436         * function.h (struct function): Likewise.
27437         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
27438
27439 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
27440
27441         PR tree-optimization/39516
27442         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
27443
27444 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
27445
27446         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
27447         should be set true if BITS_PER_WORD of target is bigger than 32
27448
27449 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
27450
27451         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
27452         Translate -B-options to -rpath-link.  Correct existing
27453         rpath-link and conditionalize on !nostdlib.
27454
27455 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27456
27457         * doc/extend.texi (Function Attributes, Variable Attributes):
27458         Fix typos.
27459         * doc/invoke.texi (Debugging Options, Optimize Options)
27460         (i386 and x86-64 Options, MCore Options): Likewise.
27461
27462 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
27463
27464         PR debug/37890
27465         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
27466         it for block local namespace aliases.
27467         (gen_decl_die): Pass context_die to gen_namespace_die.
27468
27469 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
27470
27471         PR c/39495
27472         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
27473         minimum or maximum value.
27474
27475 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
27476
27477         * reginfo.c (globalize_reg): Recompute derived reg sets.
27478
27479 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
27480
27481         PR target/39063
27482         * libgcc2.c (mprotect): Do not use signed arguments for
27483         VirtualProtect, use DWORD arguments.  Also fix the 'may
27484         be used uninitialized' warning for the np variable.
27485
27486 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
27487
27488         PR target/39496
27489         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
27490         functions using regparm calling conventions when not optimizing.
27491         (ix86_function_sseregparm): Similarly for sseregparm calling
27492         conventions.
27493
27494 2009-03-19  Li Feng  <nemokingdom@gmail.com>
27495
27496         PR middle-end/39500
27497         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
27498         dependence if the first conflict is after niter iterations.
27499
27500 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
27501
27502         PR middle-end/38609
27503         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
27504         functions with dynamic stack-pointer adjustments.
27505
27506 2009-03-19  Ben Elliston  <bje@au.ibm.com>
27507
27508         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
27509         option; change to -msdata=data.
27510
27511 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27512
27513         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
27514         and -fopenmp.
27515
27516 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
27517
27518         PR target/35180
27519         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
27520
27521 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
27522
27523         * doc/invoke.texi (Code Gen Options): Expand discussion of
27524         -fno-common.
27525
27526 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
27527
27528         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
27529         * matrix-reorg.c (struct matrix_info): Likewise.
27530         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
27531         * rtl.h (struct mem_attrs): Likewise.
27532         * df.h (struct df): Likewise.
27533         * tree-data-ref.h (struct data_dependence_relation): Likewise.
27534         * ira-int.h (struct ira_allocno): Likewise.
27535         * df-scan.c (struct df_collection_rec): Likewise.
27536         * ira.c (struct equivalence): Likewise.
27537         * function.c (struct temp_slot): Likewise.
27538         * cfgloop.h (struct loop): Likewise.
27539
27540         PR debug/39485
27541         * function.c (use_register_for_decl): When not optimizing, disregard
27542         register keyword for variables with types containing methods.
27543
27544 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
27545
27546         PR middle-end/39447
27547         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
27548         (is_simple_operand): Call contains_component_ref_p before calling data
27549         reference analysis that would fail on COMPONENT_REFs.
27550
27551         * tree-vrp.c (search_for_addr_array): Fix formatting.
27552
27553 2009-03-18  Richard Guenther  <rguenther@suse.de>
27554
27555         * tree-vect-transform.c (vect_loop_versioning): Fold the
27556         generated comparisons.
27557         * tree-vectorizer.c (set_prologue_iterations): Likewise.
27558         (slpeel_tree_peel_loop_to_edge): Likewise.
27559
27560 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27561
27562         PR middle-end/37805
27563         * opts.c (print_specific_help): In addition to `undocumented',
27564         accept `separate' and `joined' flags if passed alone.  Describe
27565         output by the first matched one of those.
27566         (common_handle_option): Skip over empty strings.
27567         * gcc.c (display_help): Fix help string for `--help='.
27568         * doc/invoke.texi (Option Summary, Overall Options): With
27569         `--help=', classes and qualifiers can both be repeated, but
27570         only the latter can be negated.  One should not pass only
27571         negated qualifiers.  Fix markup and examples.
27572
27573         Revert
27574         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
27575         PR middle-end/37805
27576         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
27577         and -fhelp=separate.
27578
27579 2009-03-17  Jing Yu  <jingyu@google.com>
27580
27581         PR middle-end/39378
27582         * function.h (struct rtl_data): Move is_thunk from here...
27583         (struct function): ...to here.
27584         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
27585         * varasm.c (assemble_start_function): Change is_thunk from crtl to
27586         cfun.
27587         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
27588         cfun.
27589         (alpha_does_function_need_gp, alpha_start_function): Likewise.
27590         (alpha_output_function_end_prologue): Likewise.
27591         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
27592         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
27593         (rs6000_output_function_epilogue): Likewise.
27594         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
27595
27596 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
27597
27598         PR target/39482
27599         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
27600         from different units in a single alternative.
27601         (*truncdfsf_i387): Ditto.
27602         (*truncxfsf2_mixed): Ditto.
27603         (*truncxfdf2_mixed): Ditto.
27604
27605 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
27606
27607         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
27608         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
27609
27610         PR debug/39474
27611         * tree-ssa-live.c (remove_unused_locals): Don't remove local
27612         unused non-artificial variables when not optimizing.
27613
27614         PR debug/39471
27615         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
27616         DW_TAG_imported_module even if decl is IMPORTED_DECL with
27617         NAMESPACE_DECL in its DECL_INITIAL.
27618
27619         PR middle-end/39443
27620         * optabs.c (set_user_assembler_libfunc): New function.
27621         * expr.h (set_user_assembler_libfunc): New prototype.
27622         * c-common.c: Include libfuncs.h.
27623         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
27624         for memcmp, memset, memcpy, memmove and abort.
27625         * Makefile.in (c-common.o): Depend on libfuncs.h.
27626
27627         PR debug/39412
27628         * dwarf2out.c (gen_inlined_enumeration_type_die,
27629         gen_inlined_structure_type_die, gen_inlined_union_type_die,
27630         gen_tagged_type_instantiation_die): Removed.
27631         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
27632         do nothing.
27633
27634 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
27635
27636         PR testsuite/38526
27637         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
27638         its use.
27639         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
27640         (check-parallel-%): Ditto.
27641         (check-consistency): Ditto.
27642
27643 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
27644
27645         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
27646         local variable rhs by NULL_TREE.
27647
27648 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
27649
27650         PR target/39477
27651         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
27652
27653 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
27654
27655         PR target/39476
27656         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
27657
27658 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
27659
27660         PR target/39473
27661         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
27662         for ms->sysv ABI calls only in 64bit mode.
27663
27664         * config/i386/i386.md (untyped_call): Support 32bit.
27665
27666 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
27667
27668         * doc/extend.texi: Replace x86_65 with x86_64.
27669
27670 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
27671
27672         PR tree-optimization/39455
27673         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
27674         mismatches for POINTER_TYPE_P (type).
27675         (number_of_iterations_le): Likewise.
27676
27677 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
27678
27679         * config/picochip/picochip.c: Removed profiling support.
27680         * config/picochip/picochip.md: Removed profiling instruction.
27681         * config/picochip/picochip.h: Removed profiling builtin.
27682
27683 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
27684
27685         * doc/install.texi (--with-host-libstdcxx): Document.
27686
27687 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
27688
27689         PR target/34299
27690         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
27691         generate a warning if the function name does not begin with
27692         "__vector" and the function has either the 'signal' or 'interrupt'
27693         attribute, from here to ...
27694         (avr_declare_function_name): ...here. New function.
27695         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
27696         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
27697
27698 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
27699
27700         PR bootstrap/39454
27701         * cse.c (fold_rtx): Don't modify original const_arg1 when
27702         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
27703         separate variable instead.
27704         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
27705         from out of range shift counts.
27706         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
27707
27708 2009-03-13  Catherine Moore  <clm@codesourcery.com>
27709
27710         * config/i386/x-mingw32 (host-mingw32.o): Replace
27711         diagnostic.h with $(DIAGNOSTIC_H).
27712
27713 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
27714
27715         PR target/39431
27716         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
27717         predicate.
27718         * config/i386/sync.md (sync_compare_and_swap<mode>,
27719         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
27720         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
27721         into a register.
27722         (sync_double_compare_and_swapdi_pic,
27723         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
27724         cmpxchg8b_pic_memory_operand instead of just memory_operand.
27725
27726 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
27727
27728         PR target/39445
27729         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
27730
27731 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
27732
27733         PR target/39327
27734         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
27735         (avx_addsubv4df3): Likewise.
27736         (*avx_addsubv4sf3): Likewise.
27737         (sse3_addsubv4sf3): Likewise.
27738
27739 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
27740
27741         PR target/38824
27742         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
27743
27744 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
27745
27746         PR debug/39432
27747         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
27748         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
27749         registers for allocnos created from user-defined variables.
27750
27751 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27752
27753         PR target/39181
27754         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
27755         of non-integer mode as well.
27756
27757 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
27758
27759         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
27760         for functions for which the parameter types are unknown.
27761
27762 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
27763
27764         PR target/39137
27765         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
27766         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
27767         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
27768         * config/i386/i386.c (ix86_local_alignment): For
27769         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
27770         long long variables on the stack to avoid dynamic realignment.
27771         Allow the first argument to be a decl rather than type.
27772         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
27773
27774 2009-03-11  Nick Clifton  <nickc@redhat.com>
27775
27776         PR target/5362
27777         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
27778         options.
27779         Add description to mno-lsim option.
27780         * config/mcore/mcore.h: Remove comment about deprecated m4align
27781         option.
27782         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
27783         * doc/invoke.texi: Add description of mno-lsim and
27784         mstack-increment options.
27785
27786         * config/fr30/fr30.opt: Document the -mno-lsim option.
27787         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
27788         and -mno-lsim options.
27789
27790 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27791
27792         * fold-const.c (fold_comparison): Only call fold_inf_compare
27793         if the mode supports infinities.
27794
27795 2009-03-11  Jason Merrill  <jason@redhat.com>
27796
27797         PR debug/39086
27798         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
27799         end already did.  Notice GIMPLE_CALL modifications of the result.
27800         Don't copy debug information from an ignored decl or a decl from
27801         another function.
27802
27803 2009-03-10  Richard Guenther  <rguenther@suse.de>
27804             Nathan Froyd  <froydnj@codesourcery.com>
27805
27806         PR middle-end/37850
27807         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
27808         (__divMODE3): Likewise.
27809
27810 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
27811
27812         PR tree-optimization/39394
27813         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
27814         DECL_SIZE_UNIT of variable length FIELD_DECLs.
27815
27816 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27817
27818         * recog.c (verfiy_changes): Disallow renaming of hard regs in
27819         inline asms for register asm ("") declarations.
27820
27821 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
27822
27823         * fold-const.c (fold_unary): Fix comment.
27824
27825 2009-03-07  Jan Hubicka  <jh@suse.cz>
27826
27827         PR target/39361
27828         * tree-inline.c (setup_one_parameter): Do replacement of const
27829         argument by constant in SSA form.
27830
27831 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27832
27833         PR middle-end/38028
27834         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
27835         determine alignment passed to assign_stack_local.
27836         (assign_parms_unsplit_complex): Likewise.
27837         * except.c (sjlj_build_landing_pads): Likewise.
27838
27839 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
27840
27841         PR middle-end/39360
27842         * tree-flow.h (add_referenced_var): Return bool instead of void.
27843         * tree-dfa.c (add_referenced_var): Return result of
27844         referenced_var_check_and_insert call.
27845         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
27846         of referenced_var_check_and_insert.
27847
27848         PR debug/39372
27849         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
27850         (gen_variable_die): Emit DW_AT_location on abstract static variable's
27851         DIE, don't emit it if abstract origin already has it.
27852         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
27853         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
27854
27855 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27856
27857         * genpreds.c (needs_variable): Fix parentheses at variable name
27858         detection.
27859         (write_tm_constrs_h): Indent generated code.
27860
27861 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27862
27863         * doc/extend.texi (Function Attributes): Add documentation
27864         for isr attributes.
27865
27866 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
27867
27868         PR debug/39387
27869         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
27870         take locus from its DECL_SOURCE_LOCATION instead of input_location.
27871
27872 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
27873
27874         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
27875         the loop as bad.
27876
27877 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
27878
27879         PR debug/39379
27880         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
27881         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
27882
27883 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
27884
27885         * config/i386/i386.md (R8_REG, R9_REG): New constants.
27886         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
27887         constants instead of magic numbers.
27888         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
27889         (QI_REG_P): Ditto.
27890         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
27891         (x86_64_ms_abi_int_parameter_registers): Ditto.
27892         (x86_64_int_return_registers): Ditto.
27893         (ix86_maybe_switch_abi): Ditto.
27894         (ix86_expand_call): Ditto for clobbered_registers array.
27895         (ix86_hard_regno_mode_ok): Ditto.
27896         (x86_extended_QIreg_mentioned_p): Ditto.
27897
27898 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
27899
27900         PR tree-optimization/39349
27901         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
27902
27903         * combine.c (gen_lowpart_for_combine): Use omode when generating
27904         clobber.
27905
27906 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
27907
27908         PR rtl-optimization/39235
27909         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
27910
27911 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
27912
27913         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
27914
27915 2009-03-04  Richard Guenther  <rguenther@suse.de>
27916
27917         PR tree-optimization/39362
27918         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
27919         that occur in abnormal PHIs should be varying.
27920
27921 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
27922
27923         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
27924         Extend comments.
27925         (simple_iv):  Take loop as an argument instead of statement.
27926         * tree-scalar-evolution.h (simple_iv): Declaration changed.
27927         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
27928         to simple_iv.
27929         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
27930         Ditto.
27931         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
27932         * matrix-reorg.c (analyze_transpose): Ditto.
27933         * tree-data-ref.c (dr_analyze_innermost): Ditto.
27934         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
27935         * tree-predcom.c (ref_at_iteration): Ditto.
27936         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
27937
27938 2009-03-04  Richard Guenther  <rguenther@suse.de>
27939
27940         PR tree-optimization/39358
27941         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
27942         escaped_id and callused_id.
27943         (solve_graph): Likewise.
27944
27945 2009-03-04  Richard Guenther  <rguenther@suse.de>
27946
27947         PR tree-optimization/39339
27948         * tree-sra.c (try_instantiate_multiple_fields): Make it
27949         no longer ICE on the above.
27950
27951 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
27952
27953         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
27954         that fits within Pmode.
27955
27956 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
27957
27958         PR middle-end/10109
27959         * tm.texi (LIBCALL_VALUE): Update description.
27960
27961 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
27962
27963         PR middle-end/34443
27964         * doc/extend.texi (section): Update description.
27965
27966 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
27967
27968         PR middle-end/39345
27969         * tree-inline.c (remapped_type): New.
27970         (can_be_nonlocal): Call remapped_type instead of remap_type.
27971
27972 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
27973
27974         PR fortran/39354
27975         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
27976         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
27977
27978 2009-03-03  Richard Guenther  <rguenther@suse.de>
27979
27980         PR middle-end/39272
27981         * tree.c (tree_nonartificial_location): New function.
27982         * tree.h (tree_nonartificial_location): Declare.
27983         * builtins.c (expand_builtin_memory_chk): Provide location
27984         of the call location for artificial function pieces.
27985         (maybe_emit_chk_warning): Likewise.
27986         (maybe_emit_sprintf_chk_warning): Likewise.
27987         (maybe_emit_free_warning): Likewise.
27988         * expr.c (expand_expr_real_1): Likewise.
27989
27990 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
27991
27992         PR tree-optimization/39343
27993         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
27994         COMPONENT_REF t has ARRAY_TYPE.
27995
27996 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
27997
27998         PR middle-end/39335
27999         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
28000         when the type precision of the induction variable should be
28001         larger than the type precision of nit.
28002         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
28003         * graphite.c (graphite_loop_normal_form): Same.
28004         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
28005
28006 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
28007
28008         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
28009         (*call_1_rex64_ms_sysv): Use named constants instead of magic
28010         numbers to describe clobbered registers.
28011         (*call_value_0_rex64_ms_sysv): Ditto.
28012         * config/i386/mmx.md (mmx_emms): Ditto.
28013         (mmx_femms): Ditto.
28014
28015 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
28016
28017         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
28018         of ABI_64.
28019
28020 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28021
28022         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
28023         (spu_section_type_flags): New function.
28024
28025 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
28026
28027         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
28028         reg_class_contents of FLOAT_REGS into a temporary.
28029
28030 2009-03-02  Richard Guenther  <rguenther@suse.de>
28031             Ira Rosen  <irar@il.ibm.com>
28032
28033         PR tree-optimization/39318
28034         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
28035         information to the vectorized statement.
28036
28037 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
28038
28039         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
28040         variable.  Use defined names instead of magic constants for REX SSE
28041         registers.
28042
28043 2009-03-01  Richard Guenther  <rguenther@suse.de>
28044
28045         PR tree-optimization/39331
28046         * omp-low.c (lower_send_shared_vars): Do not receive new
28047         values for the reference of DECL_BY_REFERENCE parms or results.
28048
28049 2009-03-01  Jan Hubicka  <jh@suse.cz>
28050
28051         PR debug/39267
28052         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
28053         BLOCK_NONLOCALIZED_VAR): New macros.
28054         (tree_block): Add nonlocalized_vars.
28055         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
28056         gen_decl_die): Add origin argument.  Allow generation of die with
28057         origin at hand only.
28058         (gen_member_die, gen_type_die_with_usage, force_decl_die,
28059         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
28060         of gen_*.
28061         (gen_block_die): Fix checking for unused blocks.
28062         (process_scope_var): Break out from .... ; work with origins only.
28063         (decls_for_scope) ... here; process nonlocalized list.
28064         (dwarf2out_ignore_block): Look for nonlocalized vars.
28065         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
28066         vars.
28067         (dump_scope_block): Dump them.
28068         * tree-inline.c (remap_decls): Handle nonlocalized vars.
28069         (remap_block): Likewise.
28070         (can_be_nonlocal): New predicate.
28071         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
28072
28073 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28074
28075         * configure: Regenerate.
28076
28077 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28078
28079         * optc-gen.awk: No need to duplicate option flags twice.
28080         Reuse help texts for duplicate options which do not have any.
28081
28082         * gcc.c (display_help): Document --version.
28083
28084         * gcc.c (main): If print_help_list and verbose_flag, ensure
28085         driver output comes before subprocess output.
28086
28087         * optc-gen.awk: Assign all remaining fields to help string,
28088         space-separated, for multi-line help in *.opt.
28089
28090         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
28091         -Wno-pedantic-ms-format is for MinGW targets only.
28092
28093         * doc/options.texi (Option file format): Fix bad indentation,
28094         restoring dropped sentence.
28095
28096 2009-02-28  Jan Hubicka  <jh@suse.cz>
28097
28098         * tree-inline.c (tree_function_versioning): Output debug info.
28099
28100 2009-02-28  Jan Hubicka  <jh@suse.cz>
28101
28102         PR debug/39267
28103         * tree-inline.c (setup_one_parameter): Do not copy propagate
28104         arguments when not optimizing.
28105
28106 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
28107
28108         PR target/39327
28109         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
28110         (avx_addsubv4df3): Likewise.
28111         (*avx_addsubv4sf3): Likewise.
28112         (sse3_addsubv4sf3): Likewise.
28113         (*avx_addsubv2df3): Likewise.
28114         (sse3_addsubv2df3): Likewise.
28115         (avx_unpckhps256): Correct item selectors.
28116         (avx_unpcklps256): Likewise.
28117         (avx_unpckhpd256): Likewise.
28118         (avx_unpcklpd256): Likewise.
28119
28120 2009-02-28  Jan Hubicka  <jh@suse.cz>
28121
28122         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
28123         static vars.
28124         (copy_arguments_for_versioning): If var is declared don't declare it.
28125         (tree_function_versioning): First setup substitutions and then copy
28126         args.
28127
28128 2009-02-27  Jan Hubicka  <jh@suse.cz>
28129
28130         PR debug/39267
28131         * cgraph.h (varpool_output_debug_info): Remove.
28132         * cgraphunit.c (varpool_output_debug_info): Remove.
28133         * dwarf2out.c (deferred_locations_struct): New struct
28134         (deferred_locations): New type.
28135         (deferred_locations_list): New static var.
28136         (deffer_location): New function.
28137         (gen_variable_die): Use it.
28138         (decls_for_scope): Output info on local static vars.
28139         (dwarf2out_finish): Process deferred locations.
28140         * varpool.c (varpool_output_debug_info): Remove.
28141
28142 2009-02-27  Jan Hubicka  <jh@suse.cz>
28143
28144         PR debug/39267
28145         * tree.h (TREE_PROTECTED): Fix comment.
28146         (BLOCK_HANDLER_BLOCK): Remove.
28147         (struct tree_block): Remove handler_block add body_block.
28148         (inlined_function_outer_scope_p): New.
28149         (is_body_block): Remove.
28150         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
28151         * dwarf2out.c (is_inlined_entry_point): Remove.
28152         (add_high_low_attributes): Use inlined_function_outer_scope_p.
28153         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
28154         code.
28155         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
28156         * gimplify.c (gimplify_expr): Gimplify body blocks.
28157         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
28158         block with multiple subblocks.
28159         (dump_scope_block): Prettier output; dump more flags and info.
28160         (dump_scope_blocks): New.
28161         (remove_unused_locals): Use dump_scope_blocks.
28162         * tree-flow.h (dump_scope_blocks): Declare.
28163         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
28164         * stmt.c (is_body_block): Remove.
28165         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
28166         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
28167
28168 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
28169
28170         PR middle-end/39308
28171         * graphite.c (graphite_loop_normal_form): Do not call
28172         number_of_iterations_exit from a gcc_assert.
28173
28174 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28175
28176         * config/s390/s390.c (s390_swap_cmp): Look for conditional
28177         jumps if COND is NULL.
28178         (find_cond_jump): New function.
28179         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
28180         * config/s390/s390.md: Remove z10_cobra attribute value.
28181
28182 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
28183
28184         * config/alpha/alpha.h (alpha_expand_mov): Return false if
28185         force_const_mem returns NULL_RTX.
28186
28187 2009-02-26  Jan Hubicka  <jh@suse.cz>
28188
28189         PR debug/39267
28190         * cgraph.h (varpool_output_debug_info): Remove.
28191         * cgraphunit.c (varpool_output_debug_info): Remove.
28192         * dwarf2out.c (deferred_locations_struct): New struct
28193         (deferred_locations): New type.
28194         (deferred_locations_list): New static var.
28195         (deffer_location): New function.
28196         (gen_variable_die): Use it.
28197         (decls_for_scope): Output info on local static vars.
28198         (dwarf2out_finish): Process deferred locations.
28199         * varpool.c (varpool_output_debug_info): Remove.
28200
28201 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
28202
28203         PR rtl-optimization/39241
28204         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
28205         to subreg_offset_representable_p.
28206
28207 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
28208
28209         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
28210         execute function prototype.  Get f and nregs from max_reg_num
28211         and get_insns.  Remove the first backward pass as it's dead,
28212         guard the forward pass by flag_expensive_optimizations.
28213         (rest_of_handle_regmove): Delete.
28214         (pass_regmove): Replace it with regmove_optimize.
28215
28216 2009-02-25  Martin Jambor  <mjambor@suse.cz>
28217
28218         PR tree-optimization/39259
28219         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
28220         calls_alloca function flags.
28221         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
28222         calls are detected.
28223
28224 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
28225
28226         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
28227         flags_set_1_rtx, flags_set_1_set): Delete.
28228         (regmove_optimize): Do not call mark_flags_life_zones.
28229
28230 2009-02-24  Julian Brown  <julian@codesourcery.com>
28231
28232         PR target/35965
28233         * config/arm/arm.c (require_pic_register): Only set
28234         cfun->machine->pic_reg once per function.
28235
28236 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
28237
28238         * doc/invoke.texi (Link Options): Document an easier way to pass
28239         options that take arguments to the GNU linker using -Xlinker and -Wl.
28240
28241 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
28242
28243         PR target/33785
28244         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
28245
28246 2009-02-24  Richard Guenther  <rguenther@suse.de>
28247
28248         PR debug/39285
28249         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
28250
28251 2009-02-24  Richard Guenther  <rguenther@suse.de>
28252             Zdenek Dvorak  <ook@ucw.cz>
28253
28254         PR tree-optimization/39233
28255         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
28256         from converting them to a generic type.
28257
28258 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
28259
28260         PR tree-optimization/39260
28261         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
28262         contains a condition with a real type.
28263         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
28264
28265 2009-02-23  Jason Merrill  <jason@redhat.com>
28266
28267         PR c++/38880
28268         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
28269         narrowing_initializer_constant_valid_p.
28270         (narrowing_initializer_constant_valid_p): Don't return
28271         null_pointer_node for adding a pointer to itself.
28272
28273 2009-02-23  Jan Hubicka  <jh@suse.cz>
28274
28275         PR c/12245
28276         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
28277         resizing.
28278
28279 2009-02-23  Jan Hubicka  <jh@suse.cz>
28280
28281         PR tree-optimization/37709
28282         * tree.c (block_ultimate_origin): Move here from dwarf2out.
28283         * tree.h (block_ultimate_origin): Declare.
28284         * dwarf2out.c (block_ultimate_origin): Move to tree.c
28285         * tree-ssa-live.c (remove_unused_scope_block_p):
28286         Eliminate blocks containig no instructions nor live variables nor
28287         nested blocks.
28288         (dump_scope_block): New function.
28289         (remove_unused_locals): Enable removal of dead blocks by default;
28290         enable dumping at TDF_DETAILS.
28291
28292 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
28293
28294         * config/i386/i386.c (classify_argument): Don't allow COImode
28295         and OImode.
28296         (function_arg_advance_32): Don't allow OImode.
28297         (function_arg_32): Likewise.
28298         (function_value_32): Likewise.
28299         (return_in_memory_32): Likewise.
28300         (function_arg_64): Remove OImode comment.
28301
28302 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
28303
28304         PR target/39261
28305         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
28306         ix86_expand_vector_set for V4DImode in 64bit mode only.
28307         (ix86_expand_vector_init_one_var): Likewise.
28308
28309 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
28310
28311         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
28312
28313 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
28314
28315         PR bootstrap/39257
28316         * loop-iv.c: Revert last change.
28317         * emit-rtl.c: Likewise.
28318
28319 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
28320
28321         PR target/39256
28322         * config/i386/i386.c (type_natural_mode): Remove an extra
28323         space in the warning message.
28324         (function_value_32): Handle 32-byte vector modes.
28325         (return_in_memory_32): Likewise.
28326
28327 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
28328
28329         * loop-iv.c (truncate_value): New function.
28330         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
28331         of lowpart_subreg.
28332         (lowpart_subreg): Move to...
28333         * emit-rtl.c: ...here.
28334
28335 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
28336
28337         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
28338         accidental and undocumented change at revision 140860.
28339
28340 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
28341
28342         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
28343         take gimple_seq * arguments.
28344         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
28345         types_compatible_p langhook.
28346
28347 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
28348             Joseph Myers  <joseph@codesourcery.com>
28349
28350         * config/arm/arm.c (arm_builtin_va_list): New function.
28351         (arm_expand_builtin_va_start): Likewise.
28352         (arm_gimplify_va_arg_expr): Likewise.
28353         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
28354         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
28355         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
28356         (va_list_type): New variable.
28357         (arm_mangle_type): Mangle va_list_type appropriately.
28358
28359 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
28360
28361         PR middle-end/39157
28362         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
28363         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
28364         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
28365         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
28366         parameter to 1000 for -O1 by default.
28367         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
28368         parameter.
28369         * loop-invariant.c: Include params.h.
28370         (move_loop_invariants): Don't call move_single_loop_invariants on
28371         very large loops.
28372
28373 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
28374
28375         * calls.c (emit_library_call_value_1): Use slot_offset instead of
28376         offset when calculating bounds for indexing stack_usage_map.  Fixes
28377         a buffer overflow with certain target setups.
28378
28379 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
28380
28381         PR target/39240
28382         * calls.c (expand_call): Clear try_tail_call if caller and callee
28383         disagree in promotion of function return value.
28384
28385 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
28386
28387         PR target/39175
28388         * c-common.c (c_determine_visibility): If visibility changed and
28389         DECL_RTL has been already set, call make_decl_rtl to update symbol
28390         flags.
28391
28392 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
28393
28394         PR c++/39188
28395         * varasm.c (assemble_variable): Don't check DECL_NAME when
28396         globalizing a variable.
28397
28398 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
28399
28400         PR c/38483
28401         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
28402         expression before any __builtin_trap call.
28403         * c-typeck.c (build_function_call): Convert and check function
28404         arguments before generating a call to a trap.  Evaluate the
28405         function arguments before the trap.
28406
28407 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
28408
28409         PR target/39228
28410         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
28411         (UNSPEC_FXAM_MEM): New unspec.
28412         (fxam<mode>2_i387_with_temp): New insn and split pattern.
28413         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
28414         memory using fxam<mode>2_i387_with_temp to remove excess precision.
28415
28416 2009-02-19  Richard Guenther  <rguenther@suse.de>
28417
28418         PR tree-optimization/39207
28419         PR tree-optimization/39074
28420         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
28421         storedanything_tree): New.
28422         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
28423         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
28424         (build_succ_graph): Add edges from STOREDANYTHING to all
28425         non-direct nodes.
28426         (init_base_vars): Initialize STOREDANYTHING.
28427         (compute_points_to_sets): Free substitution info after
28428         building the succ graph.
28429         (ipa_pta_execute): Likewise.
28430
28431         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
28432         field.
28433         (do_ds_constraint): Do not add to special var or non-pointer
28434         field solutions.
28435         (type_could_have_pointers): Split out from ...
28436         (could_have_pointers): ... here.  For arrays use the element type.
28437         (create_variable_info_for): Initialize may_have_pointers.
28438         (new_var_info): Likewise.
28439         (handle_lhs_call): Make the HEAP variable unknown-sized.
28440         (intra_create_variable_infos): Use a type with pointers for
28441         PARM_NOALIAS, make it unknown-sized.
28442
28443 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
28444
28445         PR target/39224
28446         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
28447
28448 2009-02-18  Jason Merrill  <jason@redhat.com>
28449
28450         PR target/39179
28451         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
28452         value if DECL_EXTERNAL.
28453         * tree-sra.c (sra_walk_gimple_assign): Likewise.
28454         * target.h (gcc_target::binds_local_p): Clarify "module".
28455         * tree.h (TREE_PUBLIC): Clarify "module".
28456
28457 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
28458
28459         PR target/38891
28460         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
28461         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
28462
28463 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
28464
28465         PR target/39082
28466         * c.opt (Wabi): Support C and ObjC.
28467         (Wpsabi): New.
28468
28469         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
28470
28471         * config/i386/i386.c (classify_argument): Warn once about the ABI
28472         change when passing union with long double.
28473
28474         * doc/invoke.texi: Update -Wabi for warning psABI changes.
28475
28476 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
28477
28478         PR c/35447
28479         * c-parser.c (c_parser_compound_statement): Always enter and leave
28480         a scope.
28481
28482 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28483
28484         PR target/34587
28485         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
28486
28487 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
28488
28489         PR tree-optimization/36922
28490         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
28491         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
28492         Likewise.
28493
28494 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
28495
28496         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
28497         to 0 for EABI64.
28498
28499 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
28500
28501         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
28502
28503 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
28504
28505         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
28506         tree sharing.
28507
28508 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
28509             Richard Sandiford  <rdsandiford@googlemail.com>
28510
28511         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
28512         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
28513         (loongson_biadd): ...this.
28514
28515 2009-02-17  Richard Guenther  <rguenther@suse.de>
28516
28517         PR tree-optimization/39202
28518         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
28519         a var make sure to follow existing collapses.
28520
28521 2009-02-17  Richard Guenther  <rguenther@suse.de>
28522
28523         PR middle-end/39214
28524         * langhooks.c (lhd_print_error_function): Check for NULL block.
28525
28526 2009-02-17  Richard Guenther  <rguenther@suse.de>
28527
28528         PR tree-optimization/39204
28529         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
28530         of the PHI arg.
28531
28532 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
28533
28534         * config/soft-fp/double.h: Update from glibc CVS.
28535
28536 2009-02-17  Richard Guenther  <rguenther@suse.de>
28537
28538         PR tree-optimization/39207
28539         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
28540         strict-aliasing warnings for pointers pointing to NULL.
28541
28542 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
28543
28544         PR c/35446
28545         * c-parser.c (c_parser_braced_init): Call pop_init_level when
28546         skipping until next close brace.
28547
28548 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
28549
28550         PR target/37049
28551         * config/i386/i386.c (ix86_expand_push): Set memory alignment
28552         to function argument boundary.
28553
28554 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
28555
28556         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
28557         in the lea_add. Reload eventually constraints it properly.
28558         * config/picochip/constraints.md: Remove the target constraint
28559         "b", since it is not needed anymore.
28560
28561 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
28562
28563         * gthr-dce.h: Uglify function parameter and local variable names.
28564         * gthr-gnat.h: Likewise.
28565         * gthr-mipssde.h: Likewise.
28566         * gthr-nks.h: Likewise.
28567         * gthr-posix95.h: Likewise.
28568         * gthr-posix.h: Likewise.
28569         * gthr-rtems.h: Likewise.
28570         * gthr-single.h: Likewise.
28571         * gthr-solaris.h: Likewise.
28572         * gthr-tpf.h: Likewise.
28573         * gthr-vxworks.h: Likewise.
28574         * gthr-win32.h: Likewise.
28575
28576 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
28577
28578         PR target/39196
28579         * config/i386/i386.md: Restrict the new peephole2 to move
28580         between MMX/SSE registers.
28581
28582 2009-02-15  Richard Guenther  <rguenther@suse.de>
28583
28584         Revert
28585         2009-02-13  Richard Guenther  <rguenther@suse.de>
28586
28587         * configure.ac: Enable LFS.
28588         * configure: Re-generate.
28589         * config.in: Likewise.
28590
28591 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28592
28593         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
28594         spu_srqwbyte, spu_srqwbytebc): Define.
28595         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
28596         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
28597         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
28598         "shrqby_<mode>"): New insn-and-split patterns.
28599         * config/spu/spu.c (expand_builtin_args): Determine and return
28600         number of operands using spu_builtin_description data.
28601         (spu_expand_builtin_1): Use it.
28602
28603 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
28604
28605         PR target/38056
28606         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
28607         TARGET_CONST_GP.
28608
28609 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
28610
28611         PR target/39149
28612         * config/i386/i386.c (override_options): Correct warning
28613         messages for -malign-loops, -malign-jumps and -malign-functions.
28614
28615 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
28616
28617         PR target/39152
28618         * config/i386/i386.md: Restrict the new peephole2 to move
28619         between the general purpose registers.
28620
28621 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
28622
28623         PR target/39162
28624         * config/i386/i386.c (type_natural_mode): Add a new argument.
28625         Return the original mode and warn ABI change if vector size is 32byte.
28626         (function_arg_advance): Updated.
28627         (function_arg): Likewise.
28628         (ix86_function_value): Likewise.
28629         (ix86_return_in_memory): Likewise.
28630         (ix86_sol10_return_in_memory): Likewise.
28631         (ix86_gimplify_va_arg): Likewise.
28632         (function_arg_32): Don't warn ABX ABI change here.
28633         (function_arg_64): Likewise.
28634
28635 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
28636
28637         * loop-iv.c (implies_p): In the final case, test that operands 0
28638         of the two comparisons match.
28639
28640         * config/bfin/bfin.c (find_prev_insn_start): New function.
28641         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
28642         (find_next_insn_start): Move.
28643
28644 2009-02-13  Richard Guenther  <rguenther@suse.de>
28645
28646         * configure.ac: Enable LFS.
28647         * configure: Re-generate.
28648         * config.in: Likewise.
28649
28650 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
28651
28652         PR c/35444
28653         * c-parser.c (c_parser_parms_list_declarator): Discard pending
28654         sizes on syntax error after some arguments have been parsed.
28655
28656 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
28657
28658         * doc/invoke.texi (-fira): Remove.
28659
28660 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
28661
28662         * caller-save.c: Replace regclass.c with reginfo.c in comments.
28663         * recog.c: Likewise.
28664         * rtl.h: Likewise.
28665
28666 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
28667
28668         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
28669         (umul_ppmm): Likewise.
28670         (count_leading_zeros): Likewise.
28671         (count_trailing_zeros): Likewise.
28672         (UMUL_TIME): Likewise.
28673
28674 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
28675
28676         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
28677         soft-fp/t-softfp to tmake_file.
28678
28679         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
28680         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
28681         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
28682         IA64_BUILTIN_INFQ]: New.
28683         (ia64_init_builtins): Initialize __builtin_infq,
28684         __builtin_fabsq and __builtin_copysignq if not HPUX.
28685         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
28686         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
28687
28688         * config/ia64/lib1funcs.asm (__divtf3): Define only if
28689         SHARED is defined.
28690         (__fixtfti): Likewise.
28691         (__fixunstfti): Likewise.
28692         (__floattitf): Likewise.
28693
28694         * config/ia64/libgcc-glibc.ver: New.
28695         * config/ia64/t-fprules-softfp: Likewise.
28696         * config/ia64/sfp-machine.h: Likewise.
28697
28698         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
28699         (LIBGCC2_TF_CEXT): Likewise.
28700         (TF_SIZE): Likewise.
28701         (TARGET_INIT_LIBFUNCS): Likewise.
28702
28703         * config/ia64/t-glibc (SHLINB_MAPFILES):
28704         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
28705
28706 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
28707
28708         * config/i386/i386.c (construct_container): Rewrite processing
28709         BLKmode with X86_64_SSE_CLASS.
28710
28711 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
28712
28713         PR target/39152
28714         * config/i386/i386.md: Replace simplify_replace_rtx with
28715         replace_rtx in the new peephole2.
28716
28717 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
28718
28719         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
28720         loop unrolling do not happen at -O2.
28721
28722 2009-02-12  Michael Matz  <matz@suse.de>
28723
28724         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
28725
28726 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
28727
28728         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
28729         for -g3.
28730
28731 2009-02-12  Ben Elliston  <bje@au.ibm.com>
28732
28733         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
28734         patterns when updating the back chain.  Missed in the 2009-02-10
28735         change.
28736
28737 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
28738
28739         * doc/extend.texi (Decimal Floating Types): Update identifier of
28740         draft TR and list of missing support.
28741
28742 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
28743
28744         PR middle-end/39154
28745         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
28746         bit to variable length decl's flags, add it also to its
28747         pointer replacement variable.
28748
28749 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
28750             Jakub Jelinek  <jakub@redhat.com>
28751
28752         PR target/39118
28753         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
28754         (memory_blockage): New expander.
28755         (*memory_blockage): New insn pattern.
28756         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
28757         instead of general blockage at the end of function prologue when
28758         frame pointer is used to access red zone area.  Do not emit blockage
28759         when profiling, it is emitted in generic code.
28760         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
28761         function epilogue when frame pointer is used to access red zone area.
28762
28763 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
28764
28765         PR target/38824
28766         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
28767         by arithmetic with memory operands.
28768         * config/i386/predicates.md (commutative_operator): New.
28769
28770 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
28771
28772         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
28773         bulleted lists.
28774
28775 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
28776
28777         * alias.h (record_alias_subset): Declare.
28778         * alias.c (record_alias_subset): Make global.
28779
28780 2009-02-10  Nick Clifton  <nickc@redhat.com>
28781
28782         * tree-parloops.c: Change license to GPLv3.
28783         * ipa-struct-reorg.c: Change license to GPLv3.
28784         * ipa-struct-reorg.h: Change license to GPLv3.
28785
28786 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
28787
28788         PR c/39084
28789         * c-decl.c (start_struct): Return NULL on error.
28790
28791 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
28792
28793         PR middle-end/39124
28794         * cfgloopmanip.c (remove_path): Call remove_bbs after
28795         cancel_loop_tree, not before it.
28796
28797         PR target/39139
28798         * function.h (struct function): Add has_local_explicit_reg_vars bit.
28799         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
28800         VAR_DECLs were seen.
28801         * tree-ssa-live.c (remove_unused_locals): Recompute
28802         cfun->has_local_explicit_reg_vars.
28803         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
28804         copies or clearings if cfun->has_local_explicit_reg_vars.
28805
28806 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
28807
28808         PR target/39118
28809         * config/i386/i386.c (expand_prologue): Emit blockage at the end
28810         of function prologue when frame pointer is used to access
28811         red zone area.
28812
28813 2009-02-10  Richard Guenther  <rguenther@suse.de>
28814
28815         PR middle-end/39127
28816         * gimplify.c (gimple_regimplify_operands): Always look if
28817         we need to create a temporary.
28818
28819 2009-02-10  Richard Guenther  <rguenther@suse.de>
28820
28821         PR tree-optimization/39132
28822         * tree-loop-distribution.c (todo): New global var.
28823         (generate_memset_zero): Trigger TODO_rebuild_alias.
28824         (tree_loop_distribution): Return todo.
28825
28826 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
28827
28828         PR target/39119
28829         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
28830         (x86_64_reg_class_name): Removed.
28831         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
28832         first one isn't X86_64_SSE_CLASS or any other ones aren't
28833         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
28834         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
28835         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
28836         and 3 X86_64_SSEUP_CLASS.
28837         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
28838         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
28839
28840 2009-02-10  Ben Elliston  <bje@au.ibm.com>
28841
28842         * config/rs6000/rs6000.md (allocate_stack): Always use an update
28843         form instruction to update the stack back chain word, even if the
28844         user has disabled the generation of update instructions.
28845         (movdi_<mode>_update_stack): New.
28846         (movsi_update_stack): Likewise.
28847         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
28848         always use an update form instruction to update the stack back
28849         chain word.
28850
28851 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
28852
28853         PR middle-end/38953
28854         * graphite.c (if_region_set_false_region): After moving a region in
28855         the false branch of a condition, remove the empty dummy basic block.
28856         (gloog): Remove wrong fix for PR38953.
28857
28858 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28859
28860         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
28861         generation due to implicit sign extension.
28862
28863 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
28864
28865         PR middle-end/38981
28866         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
28867         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
28868
28869 2009-02-09  Richard Guenther  <rguenther@suse.de>
28870
28871         PR middle-end/35202
28872         * convert.c (convert_to_real): Disable (float)fn((double)x)
28873         to fnf(x) conversion if errno differences may occur and
28874         -fmath-errno is set.
28875
28876 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
28877
28878         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
28879         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
28880         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
28881
28882 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
28883
28884         PR c/35434
28885         * c-common.c (handle_alias_attribute): Disallow attribute for
28886         anything not a FUNCTION_DECL or VAR_DECL.
28887
28888 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
28889
28890         PR c/39035
28891         * real.c (do_compare): Special-case compare of zero against
28892         decimal float value.
28893
28894 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
28895
28896         PR c/36432
28897         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
28898         as indicating flexible array members unless the field itself is
28899         being declarared as the incomplete array.
28900
28901 2009-02-06  Jan Hubicka  <jh@suse.cz>
28902
28903         PR tree-optimization/38844
28904         * ipa-inline.c (try_inline): Stop inlining recursion when edge
28905         is already inlined.
28906
28907 2009-02-06  Richard Guenther  <rguenther@suse.de>
28908
28909         PR middle-end/38977
28910         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
28911         fork because we may expand it as __gcov_fork.
28912
28913 2009-02-06  Nick Clifton  <nickc@redhat.com>
28914
28915         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
28916
28917 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
28918
28919         PR tree-optimization/35659
28920         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
28921         vn_phi_eq): Shortcut if hashcode does not match.
28922         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
28923         NULL operands.
28924         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
28925         and avoid iterative_hash_expr.
28926         (FOR_EACH_VALUE_ID_IN_SET): New.
28927         (value_id_compare): Remove.
28928         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
28929         sort expressions by value id.
28930
28931 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
28932
28933         PR target/38991
28934         * config/sh/predicates.md (general_movsrc_operand): Don't check
28935         the subreg of system registers here.
28936
28937 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
28938
28939         PR c++/39106
28940         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
28941         on the copied decl.
28942
28943 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
28944
28945         PR rtl-optimization/39110
28946         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
28947         addresses, not aligned ones.
28948
28949 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
28950             Richard Guenther  <rguenther@suse.de>
28951
28952         PR tree-optimization/39100
28953         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
28954         comment says and add edges.
28955
28956 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
28957
28958         PR c/35435
28959         * c-common.c (handle_tls_model_attribute): Ignore attribute for
28960         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
28961
28962 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
28963
28964         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
28965         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
28966         register_bb_in_sese, new_sese, free_sese): Moved.
28967         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
28968         outermost_loop_in_scop, build_scop_iteration_domain,
28969         expand_scalar_variables_ssa_name, get_vdef_before_scop,
28970         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
28971         Use loop_in_sese_p instead of loop_in_scop_p.
28972         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
28973         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
28974         (scopdet_basic_block_info): Fix bug in scop detection.
28975         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
28976         eq_loop_to_cloog_loop): Remove.
28977         (nb_loops_around_loop_in_scop, nb_loop
28978         ref_nb_loops): Moved here...
28979         * graphite.h (ref_nb_loops): ... from here.
28980         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
28981         (loop_domain_dim, loop_iteration_vector_dim): Remove.
28982         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
28983
28984 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
28985             Hans-Peter Nilsson  <hp@axis.com>
28986
28987         PR rtl-optimization/37889
28988         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
28989         Move offset handling from PLUS to before the switch.  Use new
28990         arguments when considering SYMBOL_REFs too.
28991         (rtx_addr_can_trap_p): Pass dummy offset and size.
28992         (enum may_trap_p_flags): Remove.
28993         (may_trap_p_1): Pass size from MEM_SIZE.
28994
28995         PR rtl-optimization/38921
28996         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
28997         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
28998         * rtlanal.c (may_trap_after_code_motion_p): Delete.
28999         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
29000
29001 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
29002
29003         AVX Programming Reference (January, 2009)
29004         * config/i386/sse.md (*vpclmulqdq): New.
29005
29006 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
29007
29008         PR tree-optimization/38977
29009         PR gcov-profile/38292
29010         * calls.c (special_function_p): Disregard __builtin_ prefix.
29011
29012 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
29013
29014         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
29015         non-indexable addresses even before reload.
29016
29017 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
29018
29019         PR c/29129
29020         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
29021         as having variable size.  Do not give an error for unnamed
29022         parameters with [*] declarators.  Give a warning for type names
29023         with [*] declarators and mark them as variable size.
29024         * c-parser.c (c_parser_sizeof_expression): Do not give an error
29025         for sizeof applied to [*] type names.
29026
29027 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
29028
29029         PR C++/36607
29030         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
29031
29032 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
29033
29034         * gcc.c (process_command): Update copyright notice dates.
29035         * gcov.c (print_version): Likewise.
29036         * gcov-dump.c (print_version): Likewise.
29037         * mips-tfile.c (main): Likewise.
29038         * mips-tdump.c (main): Likewise.
29039
29040 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
29041
29042         PR c/35433
29043         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
29044         for composite type involving a zero-length array type.
29045
29046 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
29047
29048         PR target/35318
29049         * function.c (match_asm_constraints_1): Skip over
29050         initial optional % in the constraint.
29051
29052         PR inline-asm/39059
29053         * c-parser.c (c_parser_postfix_expression): If fixed point is not
29054         supported, don't accept FIXED_CSTs.
29055         * c-decl.c (finish_declspecs): Error if fixed point is not supported
29056         and _Sat is used without _Fract/_Accum.  Set specs->type to
29057         integer_type_node for cts_fract/cts_accum if fixed point is not
29058         supported.
29059
29060 2009-02-02  Catherine Moore  <clm@codesourcery.com>
29061
29062         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
29063
29064 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
29065
29066         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
29067         (ABI_HAS_64BIT_SYMBOLS): Use it.
29068         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
29069
29070 2009-02-02  Paul Brook  <paul@codesourcery.com>
29071
29072         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
29073
29074 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
29075
29076         PR inline-asm/39058
29077         * recog.h (asm_operand_ok): Add constraints argument.
29078         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
29079         recurse on matching constraint.
29080         (check_asm_operands): Pass constraints as 3rd argument to
29081         asm_operand_ok.  Don't look up matching constraint here.
29082         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
29083         to asm_operand_ok.
29084
29085 2009-02-02  Ben Elliston  <bje@au.ibm.com>
29086
29087         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
29088         TARGET_NARROW_VOLATILE_BITFIELD macro names.
29089
29090 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29091
29092         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
29093         information.  Remove some obsolete information.  Reorganize.
29094
29095         * config/pa/fptr.c: Revert license to GPL 2.
29096         * config/pa/milli64.S: Likewise.
29097
29098 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
29099
29100         PR target/38904
29101         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
29102         LIBRARY name in, instead of hard-coding it.
29103         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
29104         extra target make frag to tmake_files according to EH model.
29105         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
29106         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
29107         frags that define makefile variable EH_MODEL appropriately.
29108         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
29109         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
29110         to "-sjlj" according to type of EH configured.
29111         (LIBGCC_SONAME):  Concatenate it to shared library base name.
29112         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
29113         to "_sjlj" according to type of EH configured.
29114         (LIBGCC_SONAME):  Concatenate it to shared library base name.
29115         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
29116         (SHLIB_LINK):  Add missing semicolon to if-else construct.
29117         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
29118         string value of "pe_dll" command-line option.
29119         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
29120         (SHLIB_SONAME):  Use it when overriding t-cygming default.
29121         (SHLIB_IMPLIB):  Override t-cygming default.
29122         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
29123         string value of "pe_dll" command-line option.
29124
29125 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
29126
29127         PR target/38952
29128         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
29129         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
29130
29131 2009-01-31  Richard Guenther  <rguenther@suse.de>
29132
29133         PR tree-optimization/38937
29134         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
29135         computing the transitive closure.
29136
29137 2009-01-30  Richard Guenther  <rguenther@suse.de>
29138
29139         PR tree-optimization/39041
29140         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
29141         Propagate variable indices only if the types match for this stmt.
29142
29143 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
29144
29145         PR target/39013
29146         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
29147         inline but never defined.
29148
29149 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
29150
29151         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
29152         (*insv_h_di_reg_extimm): New insn.
29153         (*insv_l<mode>_reg_extimm): New insn.
29154
29155 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
29156
29157         * config/picochip/picochip.c (flag_conserve_stack): set
29158         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
29159         fconserve-stack. Reduce call-overhead used by inliner.
29160
29161 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
29162
29163         PR/38157
29164         * common.opt (flag_conserve_stack): Initialised to zero.
29165
29166 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
29167
29168         PR/39002
29169         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
29170         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
29171         method.
29172
29173 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
29174
29175         * ira-color.c (allocno_reload_assign): Update comments.
29176         * regmove.c (regmove_optimize): Likewise.
29177
29178         * ra.h: Removed.
29179
29180 2009-01-29  Robert Millan  <rmh@aybabtu.com>
29181
29182         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
29183         * config/i386/kopensolaris-gnu.h: New file.  Undefine
29184         `MD_UNWIND_SUPPORT'.
29185         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
29186
29187 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
29188
29189         PR tree-optimization/39007
29190         * tree-loop-distribution.c (generate_builtin): Use
29191         recompute_dominator to compute the immediate dominator of the
29192         basic block just after the loop.
29193
29194 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
29195
29196         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
29197         (ASM_OUTPUT_DWARF_PCREL): Define.
29198
29199 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
29200
29201         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
29202         * doc/passes.texi: Remove entries about regclass, local-alloc, and
29203         global.  Modify entries about regmove and IRA.
29204
29205         * ra-conflict.c: Remove the file.
29206
29207         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
29208
29209         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
29210         (pass_regclass_init): Rename to pass_reginfo_init.
29211
29212         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
29213
29214         * toplev.h (flag_ira): Remove.
29215
29216         * caller-save.c (setup_save_areas): Remove flag_ira.
29217
29218         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
29219
29220         * global.c: Remove the file.
29221
29222         * opts.c (decode_options): Remove flag_ira.
29223
29224         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
29225
29226         * regmove.c: Modify file description.
29227         (find_use_as_address, try_auto_increment): Define them only if
29228         AUTO_INC_DEC is defined.
29229         (replacement_quality, replace_in_call_usage, fixup_match_1,
29230         stable_and_no_regs_but_for_p): Remove.
29231         (reg_set_in_bb): Make it static.
29232         (regmove_optimize): Remove flag_ira and code which worked for
29233         !flag_ira.
29234
29235         * local-alloc.c: Remove the file.
29236
29237         * common.opt (fira): Remove.
29238
29239         * ira.c: Include except.h.
29240         (eliminable_regset): Move from global.c.
29241         (mark_elimination): Ditto.  Remove flag_ira.
29242         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
29243         equiv_mem_modified, validate_equiv_mem_from_store,
29244         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
29245         contains_replace_regs, memref_referenced_p, memref_used_between_p,
29246         no_equiv, recorded_label_ref): Move from local-alloc.c.
29247         (update_equiv_regs): Ditto.  Make it static.
29248         (print_insn_chain, print_insn_chains): Move it from global.c.
29249         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
29250         (build_insn_chain): Ditto.  Make it static.
29251         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
29252         Rename to init_live_subregs.
29253         (gate_ira): Remove flag_ira.
29254
29255         * regclass.c: Rename reginfo.c.  Change file description.
29256         (FORBIDDEN_INC_DEC_CLASSES): Remove.
29257         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
29258         (init_reg_sets_1): Remove code for evaluation of
29259         reg_class_superclasses and losing_caller_save_reg_set.
29260         (init_regs): Remove init_reg_autoinc.
29261         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
29262         ok_for_base_p_nonstrict): Remove.
29263         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
29264         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
29265         corresponding entries.
29266         (dump_regclass, record_operand_costs, scan_one_insn,
29267         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
29268         record_address_regs, auto_inc_dec_reg_p): Remove.
29269         (gt-regclass.h): Rename to gt-reginfo.h.
29270
29271         * rtl.h (dump_global_regs, retry_global_alloc,
29272         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
29273
29274         * Makefile.in (RA_H): Remove.
29275         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
29276         Rename regclass.o to reginfo.o.
29277         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
29278         gt-reginfo.h.
29279         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
29280         (GTFILES): Rename regclass.c to reginfo.c.
29281
29282         * passes.c (init_optimization_passes): Remove pass_local_alloc and
29283         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
29284
29285         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
29286         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
29287         Remove flag_ira.
29288         (finish_spills): Ditto.  Remove code for !flag_ira.
29289
29290 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
29291
29292         PR middle-end/35854
29293         * doc/invoke.texi (rtl debug options): Complete rewrite.
29294         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
29295         to auto_inc_dec".
29296         * mode-switching.c (pass_mode_switching): Rename pass from
29297         "mode-sw" to "mode_sw".
29298         * except.c (pass_convert_to_eh_ranges): Rename pass from
29299         "eh-ranges" to "eh_ranges".
29300         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
29301         to "subreg1".
29302
29303
29304 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
29305             Alexander Monakov  <amonakov@ispras.ru>
29306
29307         PR middle-end/38857
29308         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
29309         register.
29310         (move_exprs_to_boundary): Change return type and pass through
29311         should_move from move_op.  Relax assert.  Update usage ...
29312         (schedule_expr_on_boundary): ... here.  Use should_move instead of
29313         cant_move.
29314         (move_op_orig_expr_found): Indicate that insn was disconnected from
29315         stream.
29316         (code_motion_process_successors): Do not call after_merge_succs
29317         callback if original expression was not found when traversing any of
29318         the branches.
29319         (code_motion_path_driver): Change return type.  Update prototype.
29320         (move_op): Update comment.  Add a new parameter (should_move).  Update
29321         prototype.  Set *should_move based on indication provided by
29322         move_op_orig_expr_found.
29323
29324 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
29325
29326         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
29327         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
29328         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
29329         * config/rs6000/rs6000.c (rs6000_override_options): Default
29330         avoid-indexed-addresses on for Power6, off for everything else.
29331         (avoiding_indexed_address_p): New function.
29332         (rs6000_legitimize_address): Use it.
29333         (rs6000_legitimate_address): Likewise.
29334         * config/rs6000/rs6000.md (movXX_updateX): Likewise
29335
29336 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
29337
29338         PR tree-optimization/38997
29339         * tree-loop-distribution.c (generate_memset_zero): Use
29340         POINTER_PLUS_EXPR for a pointer addition.
29341
29342 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
29343
29344         * config/s390/s390.md (bswap<mode>2): New pattern added.
29345
29346 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
29347
29348         * config/s390/s390.md (*tls_load_31): Added type attribute.
29349
29350 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
29351
29352         * config/s390/s390.md: Fix a few comments.
29353
29354 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
29355
29356         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
29357         (*tm<mode>_full): Fixed z10prop attribute.
29358         (*tst<mode>_extimm): Fixed z10prop attribute.
29359         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
29360         (*tstqiCCT_cconly): Fixed z10prop attribute.
29361         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
29362         (*movsi_larl): Fixed z10prop attribute.
29363         (*movsi_zarch): Fixed z10prop attribute.
29364         (*movsi_eas): Fixed z10prop attribute.
29365         (*movhi): Fixed z10prop attribute.
29366         (*movqi): Fixed z10prop attribute.
29367         (*movstrictqi): Fixed z10prop attribute.
29368         (*mov<mode>): Fixed z10prop attribute.
29369         (*movcc): Fixed z10prop attribute.
29370         (*sethighpartdi_64): Fixed z10prop attribute.
29371         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
29372         (*negdi2_sign_cc): Fixed z10prop attribute.
29373         (*negdi2_sign): Fixed z10prop attribute.
29374         (*absdi2_sign_cc): Fixed z10prop attribute.
29375         (*absdi2_sign): Fixed z10prop attribute.
29376         (*negabsdi2_sign_cc): Fixed z10prop attribute.
29377         (*negabsdi2_sign): Fixed z10prop attribute.
29378         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
29379         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
29380         (doloop_si64): Fixed z10prop attribute.
29381         (doloop_si31): Fixed z10prop attribute.
29382         (doloop_long): Fixed z10prop attribute.
29383         (indirect_jump): Fixed z10prop attribute.
29384         (nop): Fixed z10prop attribute.
29385         (main_base_64): Fixed z10prop attribute.
29386         (reload_base_64): Fixed z10prop attribute.
29387
29388 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
29389
29390         PR rtl-optimization/38740
29391         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
29392         if !optimize.
29393         * config/mips/mips.c (mips_reorg): Likewise.
29394
29395 2009-01-28  Richard Guenther  <rguenther@suse.de>
29396
29397         PR tree-optimization/38926
29398         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
29399         with the correct value id to a value.
29400         (do_regular_insertion): Use the value number of edoubleprime
29401         for the value number of the expr.
29402
29403         Revert
29404         2008-08-21  Richard Guenther  <rguenther@suse.de>
29405
29406         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
29407         a PHI ask VN if it is already available.
29408         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
29409         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
29410
29411 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
29412
29413         PR middle-end/38934
29414         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
29415         set to varying whenever max has TREE_OVERFLOW set, similarly
29416         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
29417
29418 2009-01-28  Richard Guenther  <rguenther@suse.de>
29419
29420         PR middle-end/38908
29421         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
29422         uninitialized aggregate uses in call arguments.
29423
29424 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
29425
29426         PR tree-optimization/38984
29427         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
29428         the nothing_id variable if -fno-delete-null-pointer-checks.
29429
29430 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
29431
29432         PR target/38988
29433         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
29434         (set_got_offset_rex64): Ditto.
29435
29436 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
29437
29438         PR target/38941
29439         * doc/extend.texi: Improve local variable with asm reg.
29440
29441 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
29442
29443         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
29444         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
29445         was not supplied then set warn_packed_bitfield_compat to the
29446         default value of 1.
29447         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
29448         against 1.
29449
29450 2009-01-27  Richard Guenther  <rguenther@suse.de>
29451
29452         PR tree-optimization/38503
29453         * cfgexpand.c (expand_gimple_basic_block): Ignore
29454         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
29455         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
29456         variables that cannot have TBAA applied.
29457         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
29458         statements.
29459
29460 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
29461
29462         PR middle-end/38969
29463         * calls.c (initialize_argument_information): Do not wrap complex
29464         arguments in SAVE_EXPR.
29465
29466 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
29467
29468         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
29469         (INSTALL_LIBGCC): Revert typo commit.
29470
29471 2009-01-26  Richard Guenther  <rguenther@suse.de>
29472
29473         PR tree-optimization/38745
29474         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
29475         from special handling.
29476
29477 2009-01-26  Richard Guenther  <rguenther@suse.de>
29478
29479         PR tree-optimization/38745
29480         * tree-ssa.c (execute_update_addresses_taken): Do not include
29481         variables that cannot possibly be a register in not_reg_needs.
29482         Do not clear TREE_ADDRESSABLE on vars that may not become
29483         registers.
29484         * tree-ssa.c (update_alias_info_1): Include those in the set
29485         of addressable vars.
29486
29487 2009-01-26  Richard Guenther  <rguenther@suse.de>
29488
29489         PR middle-end/38851
29490         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
29491         * tree-ssa-dse.c: Include langhooks.h
29492         (execute_simple_dse): Remove stores with zero size.
29493
29494 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
29495
29496         PR c/38957
29497         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
29498         as PLUS_EXPR.
29499
29500 2009-01-24  Julian Brown  <julian@codesourcery.com>
29501
29502         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
29503         config/arm/linux-atomic.c.
29504         * config/arm/linux-atomic.c: New.
29505
29506 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
29507
29508         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
29509         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
29510         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
29511
29512 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
29513
29514         PR c/38938
29515         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
29516         properly.
29517
29518 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
29519
29520         PR tree-optimization/38953
29521         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
29522         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
29523         (gloog): Split the exit of the scop when the scop exit is a loop exit.
29524         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
29525         changed the CFG.
29526
29527 2009-01-24  Paul Brook  <paul@codesourcery.com>
29528
29529         * config/arm/neon.md (neon_type): Move to arm.md.
29530         (neon_mov<VSTRUCT>): Add neon_type attribute.
29531         * config/arm/arm.md (neon_type): Move to here.
29532         (conds): Add "unconditioal" and use as default for NEON insns.
29533
29534 2009-01-24  Ben Elliston  <bje@au.ibm.com>
29535
29536         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
29537         void *' warning from -Wc++-compat.
29538         * Makefile.in (dominance.o-warn): Remove.
29539
29540 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
29541
29542         PR tree-optimization/38932
29543         * fold-const.c (fold_unary_ignore_overflow): New.
29544         * tree.h (fold_unary_ignore_overflow): Declare.
29545         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
29546         * tree-ssa-sccvn.c (visit_reference_op_load,
29547         simplify_unary_expression): Likewise.
29548
29549 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
29550
29551         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
29552         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
29553         regardless of their type.
29554         * c-common.c (handle_packed_attribute): Don't ignore packed on
29555         bitfields.
29556         * c.opt (Wpacked-bitfield-compat): New warning option.
29557         * stor-layout.c (place_field): Warn if offset of a field changed.
29558         * doc/extend.texi (packed): Mention the ABI change.
29559         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
29560         (Warning Options): Add it to the list.
29561
29562 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
29563
29564         * c-opts.c (c_common_post_options): Fix a typo in comments.
29565
29566 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
29567
29568         PR middle-end/38615
29569         * gimplify.c (gimplify_init_constructor): Fix promotion of const
29570         variables to static.
29571         * doc/invoke.texi (-fmerge-all-constants): Update description.
29572
29573 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
29574
29575         PR target/38931
29576         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
29577         (*movdi_1_rex64): Use type "mmx" for alternative 5.
29578
29579 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
29580
29581         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
29582         a word boundary.
29583         (LOCAL_ALIGNMENT): Similarly.
29584
29585 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
29586             Joseph Myers  <joseph@codesourcery.com>
29587
29588         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
29589         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
29590         * config/arm/arm-tune.md: Regenerate.
29591         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
29592         -march=iwmmxt2.
29593
29594 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
29595
29596         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
29597         version number to five.
29598
29599 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
29600
29601         PR c++/38930
29602         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
29603         * c-common.c (set_underlying_type): Likewise.
29604         (is_typedef_decl ): Likewise
29605         * tree.h: Likewise
29606         (set_underlying_type): Likewise.
29607         (is_typedef_type): Likewise.
29608
29609 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
29610
29611         PR middle-end/38587
29612         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
29613         crossing setjmps.
29614
29615 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
29616
29617         PR bootstrap/37660
29618         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
29619         (LIBGCC_SPEC):  Don't define.
29620         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
29621
29622 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
29623
29624         PR rtl-optimization/38879
29625         * alias.c (base_alias_check): Unaligned access via AND address can
29626         alias all surrounding object types except those with sizes equal
29627         or wider than the size of unaligned access.
29628
29629 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
29630
29631         PR c++/26693
29632         * c-decl.c (clone_underlying_type): Move this ...
29633         * c-common.c (set_underlying_type): ... here.
29634         Also, make sure the function properly sets TYPE_STUB_DECL() on
29635         the newly created typedef variant type.
29636         (is_typedef_decl ): New entry point.
29637         * tree.h: Added a new member member_types_needing_access_check to
29638         struct tree_decl_non_common.
29639         (set_underlying_type): New entry point.
29640         (is_typedef_type): Likewise.
29641
29642 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
29643
29644         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
29645         Check whether two instructions have memory references that
29646         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
29647         are helper functions for traversing.
29648         * alias.h (insn_alias_sets_confilict_p): New prototypes.
29649         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
29650         not to draw dependency edge for instructions with non-conflicting
29651         alias sets.
29652
29653 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
29654
29655         PR other/38758
29656         * longlong.h: Update copyright years.  Use soft-fp license notice.
29657         Sync __clz_tab declaration with glibc.
29658
29659 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
29660
29661         PR target/30687
29662         * doc/extend.texi (syscall_linkage): New.
29663         (version_id): Modify.
29664
29665 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
29666             Richard Guenther  <rguenther@suse.de>
29667
29668         PR tree-optimization/38747
29669         PR tree-optimization/38748
29670         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
29671         conversion if the base address is an indirect reference and the
29672         aliasing sets could cause issues.
29673
29674 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
29675
29676         * common.opt (fgraphite, fgraphite-identity): Add comment for
29677         explaining why these options are not documented.
29678
29679 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
29680
29681         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
29682         gimple_call_lhs is NULL.
29683
29684 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
29685
29686         PR target/38868
29687         * emit-rtl.c (adjust_address_1): Make sure memref is never
29688         overwritten.
29689
29690 2009-01-20  Ben Elliston  <bje@au.ibm.com>
29691
29692         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
29693         const qualifier from arg parameter. Remove unnecessary cast to char *.
29694         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
29695         const qualifier from arg 2.
29696
29697 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
29698
29699         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
29700
29701 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
29702
29703         PR c/38869
29704         * rtl.h (reinit_regs): New prototype.
29705         * regclass.c: Include ira.h.
29706         (reinit_regs): New.
29707         * Makefile.in (regclass.o): Add ira.h.
29708         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
29709
29710 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
29711
29712         PR target/38736
29713         * c-common.c (handle_aligned_attribute): Use
29714         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
29715         default alignment value.
29716
29717         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
29718
29719         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
29720         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
29721
29722         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
29723         __BIGGEST_ALIGNMENT__.
29724
29725         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
29726
29727 2009-01-18  Richard Guenther  <rguenther@suse.de>
29728
29729         PR tree-optimization/38819
29730         * tree-flow.h (operation_could_trap_helper_p): Declare.
29731         * tree-eh.c (operation_could_trap_helper_p): Export.
29732         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
29733         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
29734         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
29735         are about to insert a possibly trapping instruction and fail
29736         in this case.
29737
29738 2009-01-18  Andreas Schwab  <schwab@suse.de>
29739
29740         * doc/install.texi (Configuration): Remove obsolete paragraph
29741         about use of --with-gnu-ld with --with-gnu-as.
29742
29743 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
29744
29745         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
29746         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
29747         Follow spelling conventions.
29748
29749 2009-01-18  Ben Elliston  <bje@au.ibm.com>
29750
29751         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
29752         C++ warning about implicit conversion from void * to struct
29753         bitmap_head_def *.
29754         (bitmap_obstack_free): Likewise for bitmap_element *.
29755         * Makefile.in (bitmap.o-warn): Remove.
29756
29757 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
29758
29759         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
29760
29761 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
29762             Tobias Grosser  <tobi.grosser@amd.com>
29763
29764         * graphite.c (graphite_trans_scop_block): Do not block single
29765         nested loops.
29766
29767 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
29768
29769         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
29770         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
29771         test with assertion.
29772
29773 2009-01-16  Richard Guenther  <rguenther@suse.de>
29774
29775         PR tree-optimization/38835
29776         PR middle-end/36227
29777         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
29778         and INT + PTR -> (INT)(PTR p+ INT) folding.
29779         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
29780
29781 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
29782
29783         PR target/38554
29784         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
29785         the subreg from a lowpart subreg if it is also casting the value.
29786
29787 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
29788             Tobias Grosser  <tobi.grosser@amd.com>
29789
29790         * graphite.c (compare_prefix_loops): New.
29791         (build_scop_canonical_schedules): Rewritten.
29792         (graphite_transform_loops): Move build_scop_canonical_schedules
29793         after build_scop_iteration_domain.
29794
29795 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
29796             Tobias Grosser  <tobi.grosser@amd.com>
29797
29798         * graphite.c (add_conditions_to_domain): Add the loops to
29799         the dimension of the iteration domain.  Do copy the domain
29800         only when it exists.
29801         (build_scop_conditions_1): Do not call add_conditions_to_domain.
29802         (add_conditions_to_constraints): New.
29803         (can_generate_code_stmt, can_generate_code): Removed.
29804         (gloog): Do not call can_generate_code.
29805         (graphite_transform_loops): Call add_conditions_to_constraints
29806         after building the iteration domain.
29807
29808 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
29809
29810         PR tree-optimization/38789
29811         * tree-ssa-threadedge.c
29812         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
29813         __builtin_constant_p.
29814
29815 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
29816
29817         * dce.c (delete_unmarked_insns): Reversed the order that insns are
29818         examined before deleting them.
29819
29820 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
29821
29822         * function.c (aggregate_value_p): Correctly extract the function
29823         type from CALL_EXPR_FN lookup.
29824
29825 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
29826
29827         * config/picochip/picochip.c (picochip_override_options): Revert
29828         CFI asm flag disable commited previously.
29829
29830 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
29831             Tobias Grosser  <tobi.grosser@amd.com>
29832             Jan Sjodin  <jan.sjodin@amd.com>
29833
29834         * graphite.c (scan_tree_for_params): On substractions negate
29835         all the coefficients of the term.
29836         (clast_to_gcc_expression_red): New.  Handle reduction expressions
29837         of more than two operands.
29838         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
29839         (get_vdef_before_scop): Handle also the case of default definitions.
29840
29841 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
29842
29843         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
29844         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
29845         Also use them when walking CALL_INSN_FUNCTION_USAGE.
29846
29847 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
29848             Joey Ye  <joey.ye@intel.com>
29849
29850         PR middle-end/37843
29851         * cfgexpand.c (expand_stack_alignment): Don't update stack
29852         boundary nor check incoming stack boundary here.
29853         (gimple_expand_cfg): Update stack boundary and check incoming
29854         stack boundary here.
29855
29856 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
29857
29858         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
29859
29860 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
29861
29862         PR rtl-optimization/38245
29863         * calls.c (expand_call): Add stack arguments to
29864         CALL_INSN_FUNCTION_USAGE even for pure calls (when
29865         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
29866         in regs and partially in memory or BLKmode arguments.
29867         (emit_library_call_value_1): Add stack arguments to
29868         CALL_INSN_FUNCTION_USAGE even for pure calls (when
29869         ACCUMULATE_OUTGOING_ARGS).
29870         * dce.c: Include tm_p.h.
29871         (find_call_stack_args): New function.
29872         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
29873         argument.
29874         (mark_insn): Call find_call_stack_args for CALL_Ps.
29875         (prescan_insns_for_dce): Walk insns backwards in bb rather than
29876         forwards.  Allocate and free arg_stores bitmap if needed, pass it
29877         down to deletable_insn_p, don't mark stores set in arg_stores
29878         bitmap, clear the bitmap at the beginning of each bb.
29879         * Makefile.in (dce.o): Depend on $(TM_P_H).
29880
29881 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
29882
29883         PR target/22599
29884         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
29885         to make sure the insn is a conditional test (bug 22599).  Reformat a
29886         few long lines.
29887
29888 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
29889
29890         PR middle-end/38431
29891         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
29892         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
29893         (gloog): Do not call cleanup_tree_cfg.
29894         (graphite_transform_loops): Call cleanup_tree_cfg after all
29895         scops have been code generated.
29896
29897 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
29898         * doc/gty.texi (Invoking the garbage collector): Added new node
29899         and section documenting ggc_collect.
29900
29901 2009-01-14  Richard Guenther  <rguenther@suse.de>
29902
29903         PR tree-optimization/38826
29904         PR middle-end/38477
29905         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
29906         initialization notes only if we actually emitted a warning.
29907         (intra_create_variable_infos): Add constraints for a result decl
29908         that is passed by hidden reference.
29909         (build_pred_graph): Mark all related variables non-direct on
29910         address-taking.
29911
29912 2009-01-14  Nick Clifton  <nickc@redhat.com>
29913
29914         * ira-conflicts.c: Include addresses.h for the definition of
29915         base_reg_class.
29916         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
29917         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
29918
29919 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
29920
29921         PR target/38811
29922         * Makefile.in (ira-lives.o): Add except.h.
29923
29924         * ira-lives.c: Include except.h.
29925         (process_bb_node_lives): Process can_throw_internal.
29926
29927 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
29928
29929         PR rtl-optimization/38774
29930         * combine.c (simplify_set): When undoing cc_use change, don't do
29931         PUT_CODE on the newly created comparison, but instead put back the
29932         old comparison.
29933
29934 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
29935
29936         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
29937         values.  Remove duplicate arm8 entry.
29938
29939 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
29940
29941         PR tree-optimization/38786
29942         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
29943         the SSA_NAME case of expand_scalar_variables_expr.
29944         Set the type of an expression to the type of its assign statement.
29945         (expand_scalar_variables_expr): Also gather the scalar computation
29946         used to index the memory access.  Do not pass loop_p.
29947         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
29948         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
29949         the gimple_stmt_iterator where it inserts new code.
29950         Do not pass loop_p.
29951         (copy_bb_and_scalar_dependences): Do not pass loop_p.
29952         (translate_clast): Update call to copy_bb_and_scalar_dependences.
29953
29954 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
29955
29956         * graphite.h (debug_value): Removed.
29957         * graphite.c (debug_value): Removed.
29958
29959 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
29960
29961         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
29962         ldrd/strd with two 32-bit instructions.
29963
29964 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
29965
29966         * config/arm/arm.c (struct processors): Pass for speed down into
29967         cost helper functions.
29968         (const_ok_for_op): Handle COMPARE and inequality nodes.
29969         (arm_rtx_costs_1): Rewrite.
29970         (arm_size_rtx_costs): Update prototype.
29971         (arm_rtx_costs): Pass speed down to helper functions.
29972         (arm_slowmul_rtx_costs): Rework cost calculations.
29973         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
29974         (arm_9e_rtx_costs): Likewise.
29975
29976 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
29977
29978         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
29979         relocations of local symbols wider than UNITS_PER_WORD are not valid.
29980         (alpha_legitimize_address): Do not split local symbols wider than
29981         UNITS_PER_WORD into HIGH/LO_SUM parts.
29982
29983 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
29984
29985         PR bootstrap/38580
29986         * gcc.c (process_command): Replace call to execvp with calls
29987         to pex_one and exit.
29988
29989 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
29990
29991         PR target/29141
29992         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
29993         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
29994         variant for devices with 3-byte PC.
29995         (__tablejump_elpm__): New.
29996
29997 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
29998
29999         PR c/32041
30000         * c-parser.c (c_parser_postfix_expression): Allow `->' in
30001         offsetof member-designator, handle it as `[0].'.
30002
30003 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30004
30005         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
30006         function when not using named sections on targets with named sections
30007         if branch distance is less than 262132.
30008
30009 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
30010
30011         * combine.c (combine_instructions):  Recompute
30012         optimize_this_for_speed_p  for each BB in the main combine loop.
30013
30014 2009-01-12  Tomas Bily  <tbily@suse.cz>
30015
30016         PR middlend/38385
30017         * tree-loop-distribution.c (prop_phis): New function.
30018         (generate_builtin): Call prop_phis.
30019
30020 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
30021
30022         PR tree-optimization/38807
30023         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
30024         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
30025
30026 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
30027
30028         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
30029         subreg of op0 to the original op0.
30030
30031 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
30032
30033         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
30034
30035 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
30036
30037         PR debug/7055
30038         * mips-tfile.c (parse_def): Fix parsing of def strings
30039         starting with digits.
30040
30041 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
30042
30043         PR target/38695
30044         * config/arm/arm.c (arm_is_long_call_p): Don't call
30045         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
30046
30047 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
30048
30049         * regrename.c (regrename_optimize): Fix dumping.
30050         (find_oldest_value_reg): Preserve REG_POINTER.
30051         (copy_hardreg_forward_1): Likewise.
30052
30053 2009-01-09  Diego Novillo  <dnovillo@google.com>
30054
30055         * gimple.h (struct gimple_statement_base) <uid>: Document
30056         the restrictions on its use.
30057         (gimple_uid): Tidy.
30058         (gimple_set_uid): Tidy.
30059
30060 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
30061
30062         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
30063         zero guard even if align_bytes != 0 and count is smaller than
30064         size_needed.
30065
30066 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
30067
30068         PR rtl-optimization/38495
30069         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
30070         (add_range_and_copies_from_move_list): Print all added ranges.
30071         Add ranges to memory optimized destination.
30072
30073 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
30074
30075         PR target/38686
30076         PR target/38708
30077         * config/i386/i386.c (override_options): Reject
30078         -mstringop-strategy=rep_8byte with -m32.
30079         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
30080         to 1.  Do count comparison against epilogue_size_needed at compile
30081         time even when count_exp was constant forced into register.  For
30082         size_needed don't jump to epilogue, instead just avoid aligning
30083         and invoke the body algorithm.  If need_zero_guard, add zero guard
30084         even if count is non-zero, but smaller than size_needed + number of
30085         bytes that could be stored for alignment.
30086         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
30087         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
30088         but smaller than size_needed + number of bytes that could be stored
30089         for alignment.  Compare size_needed with epilogue_size_needed instead
30090         of desired_align - align, don't adjust size_needed, pass
30091         epilogue_size_needed to the epilogue expanders.
30092
30093         PR c/35742
30094         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
30095
30096 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30097
30098         * pa.c (last_address): Change to unsigned.
30099         (update_total_code_bytes): Change argument to unsigned.  Don't
30100         check if insn addresses are set.
30101         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
30102         addresses are not set.
30103         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
30104
30105 2009-01-09  Nick Clifton  <nickc@redhat.com>
30106
30107         * config/sh/symbian.c: Replace uses of DECL_INLINE with
30108         DECL_DECLARED_INLINE_P.
30109
30110 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
30111
30112         PR middle-end/38347
30113         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
30114         GET_MODE (op0) in operand_subword_force calls.
30115
30116         PR middle-end/38771
30117         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
30118         fold_convert arg0 operands to TREE_TYPE (op0) first.
30119
30120 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
30121
30122         * params.def (ira-max-conflict-table-size): Decrease default value
30123         to 1000.
30124
30125 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
30126
30127         PR tree-optimization/37031
30128         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
30129         on parameter_set.
30130         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
30131         allocate it using gc instead of heap, use VEC_quick_push instead of
30132         VEC_safe_push.
30133         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
30134         instead of heap, use VEC_quick_push instead of VEC_safe_push.
30135         * tree-data-ref.h (struct access_matrix): Change matrix to gc
30136         allocated vector from heap allocated.
30137         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
30138         * tree-loop-linear.c (linear_transform_loops): Allocate nest
30139         vector only after perfect_loop_nest_depth call.
30140
30141 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
30142             Jan Sjodin  <jan.sjodin@amd.com>
30143
30144         PR tree-optimization/38559
30145         * graphite.c (debug_value, copy_constraint,
30146         swap_constraint_variables, scale_constraint_variable, ): New.
30147         (get_lower_bound, get_upper_bound): Removed.
30148         (graphite_trans_bb_strip_mine): Clean up this code that works
30149         only for constant number of iterations.  Fully copy upper and
30150         lower bound constraints, not only the constant part of them.
30151         * graphite.h (debug_value): Declared.
30152
30153 2009-01-08  Ira Rosen  <irar@il.ibm.com>
30154
30155         PR tree-optimization/37194
30156         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
30157         Don't add the cost of cost model guard in prologue to scalar
30158         outside cost in case of known number of iterations.
30159
30160 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
30161             Alan Modra  <amodra@bigpond.net.au>
30162
30163         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
30164         non-word-aligned REG+CONST addressing.
30165
30166 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
30167
30168         PR target/38706
30169         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
30170         free_after_compilation when outputting a thunk.
30171         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
30172         Do not call free_after_compilation here.
30173
30174 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
30175
30176         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
30177         (ix86_valid_target_attribute_inner_p): Ditto.
30178
30179 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
30180
30181         PR tree-optimization/38492
30182         PR tree-optimization/38498
30183         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
30184         * tree-chrec.h (scev_is_linear_expression): Declared.
30185         * graphite.c (graphite_cannot_represent_loop_niter): New.
30186         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
30187         (graphite_loop_normal_form): Use gcc_assert.
30188         (scan_tree_for_params): Use CASE_CONVERT.
30189         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
30190         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
30191         Use gcc_assert.  Discard scops that contain unhandled cases.
30192         (build_scop_conditions): Return a boolean status for unhandled cases.
30193         (strip_mine_profitable_p): Print the loop number, not its depth.
30194         (is_interchange_valid): Pass the depth of the loop nest, don't
30195         recompute it wrongly.
30196         (graphite_trans_bb_block): Same.
30197         (graphite_trans_bb_block): Print tentative of loop blocking.
30198         (graphite_trans_scop_block): Do not print that the loop has been
30199         blocked.
30200         (graphite_transform_loops): Do not handle scops that contain condition
30201         scalar phi nodes.
30202
30203 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
30204
30205         AVX Programming Reference (December, 2008)
30206         * config/i386/avxintrin.h (_mm256_stream_si256): New.
30207         (_mm256_stream_pd): Likewise.
30208         (_mm256_stream_ps): Likewise.
30209
30210         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
30211         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
30212         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
30213         (bdesc_special_args): Add __builtin_ia32_movntdq256,
30214         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
30215         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
30216         (ix86_expand_special_args_builtin): Likewise.
30217
30218         * config/i386/sse.md (AVXMODEDI): New.
30219         (avx_movnt<mode>): Likewise.
30220         (avx_movnt<mode>): Likewise.
30221         (<sse>_movnt<mode>): Remove AVX support.
30222         (sse2_movntv2di): Likewise.
30223
30224 2009-01-07  Richard Guenther  <rguenther@suse.de>
30225
30226         PR middle-end/38751
30227         * fold-const.c (extract_muldiv): Remove obsolete comment.
30228         (fold_plusminus_mult_expr): Undo MINUS_EXPR
30229         to PLUS_EXPR canonicalization for the canonicalization.
30230
30231 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
30232
30233         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
30234         hosted cross-compilers generating less efficient code.
30235
30236 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
30237
30238         * function.h (rtl_data): Add a dbr_scheduled_p field.
30239         * reorg.c (dbr_schedule): Set it.
30240         (gate_handle_delay_slots): Check it.
30241         * config/mips/mips.c (mips_base_delayed_branch): Delete.
30242         (mips_reorg): Check flag_delayed_branch instead of
30243         mips_base_delayed_branch.
30244         (mips_override_options): Don't set mips_base_delayed_branch
30245         or flag_delayed_branch.
30246
30247 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
30248
30249         PR rtl-optimization/38426.
30250         * ira.c (ira): Set current_function_is_leaf earlier.
30251
30252 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
30253
30254         PR rtl-optimization/38722
30255         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
30256         too early, only set a flag and modify after last possible
30257         undo_all point.
30258
30259 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
30260
30261         PR c/34252
30262         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
30263         * real.c (decimal_single_format): Correct values of emin and emax.
30264         (decimal_double_format): Ditto.
30265         (decimal_quad_format): Ditto.
30266         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
30267         computation of DECnn_MIN and DECnn_MAX for corrected values of
30268         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
30269         __DECnn_MIN__, and adjust its computation for the corrected value
30270         of emin.
30271
30272 2009-01-06  Jan Hubicka  <jh@suse.cz>
30273
30274         PR target/38744
30275         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
30276
30277 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
30278
30279         * doc/contrib.texi (Contributors): Slightly adjust the end note.
30280         Add Robert Clark to the list of testers.
30281
30282 2009-01-06  Jan Hubicka  <jh@suse.cz>
30283             Kai Tietz  <kai.tietz@onevision.com>
30284
30285         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
30286         * config/i386/i386.c (ix86_expand_call): Add clobbers.
30287
30288 2009-01-06  Jan Hubicka  <jh@suse.cz>
30289             Kai Tietz  <kai.tietz@onevision.com>
30290
30291         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
30292         for w64 ABI.
30293         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
30294         (ix86_nsaved_regs): Count only general purpose regs.
30295         (ix86_nsaved_sseregs): New.
30296         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
30297         to 16 for w64; compute padding and size of sse reg save area.
30298         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
30299         general purpose regs.
30300         (ix86_emit_save_sse_regs_using_mov): New.
30301         (ix86_expand_prologue): Save SSE regs if needed.
30302         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
30303         (ix86_emit_restore_sse_regs_using_mov): New.
30304         (ix86_expand_epilogue): Save SSE regs if needed.
30305
30306 2009-01-06  Jan Hubicka  <jh@suse.cz>
30307             Kai Tietz  <kai.tietz@onevision.com>
30308
30309         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
30310         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
30311         functions when accumulate outgoing args is off.
30312
30313 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
30314
30315         PR bootstrap/38742
30316         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
30317         before using pseudos_have_intersected_live_ranges_p.
30318
30319         * ira-int.h (ira_assert): Always define.
30320
30321 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
30322
30323         AVX Programming Reference (December, 2008)
30324         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
30325         (_mm256_permute2_pd): Likewise.
30326         (_mm_permute2_ps): Likewise.
30327         (_mm256_permute2_ps): Likewise.
30328         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
30329         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
30330
30331         * config/i386/i386.c (ix86_builtins): Remove
30332         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
30333         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
30334         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
30335         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
30336         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
30337         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
30338         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
30339         __builtin_ia32_vpermil2ps256.
30340         (ix86_init_mmx_sse_builtins): Updated.
30341         (ix86_expand_args_builtin): Likewise.
30342
30343 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30344
30345         * pa.c (output_call): Relocate non-jump insns in the delay slot of
30346         long absolute calls when generating PA 2.0 code.
30347
30348 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
30349
30350         PR rtl-optimization/38583
30351         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
30352
30353         * params.def (ira-max-conflict-table-size): New.
30354
30355         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
30356
30357         * ira.h (ira_conflicts_p): New external definition.
30358
30359         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
30360         table.  Report this.  Return result of building.
30361         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
30362         building conflict table.
30363
30364         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
30365         (ira_color): Use ira_conflicts_p.
30366
30367         * global.c: Include ira.h.
30368         (pseudo_for_reload_consideration_p, build_insn_chain): Use
30369         ira_conflicts_p.
30370
30371         * Makefile.in (global.o): Add ira.h.
30372
30373         * ira-build.c (mark_all_loops_for_removal,
30374         propagate_some_info_from_allocno): New.
30375         (remove_unnecessary_allocnos): Call
30376         propagate_some_info_from_allocno.
30377         (remove_low_level_allocnos): New.
30378         (remove_unnecessary_regions): Add parameter.  Call
30379         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
30380         parameter to remove_unnecessary_regions.
30381         (ira_build): Remove all regions but root if the conflict table was
30382         not built.  Update conflict hard regs for allocnos crossing calls.
30383
30384         * ira.c (ira_conflicts_p): New global.
30385         (ira): Define and use ira_conflicts_p.
30386
30387         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
30388         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
30389         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
30390
30391 2009-01-06  Ben Elliston  <bje@au.ibm.com>
30392
30393         * gengtype-lex.l (YY_NO_INPUT): Define.
30394
30395 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
30396
30397         PR c/34911
30398         * c-common.c (handle_vector_size_attribute): Also reject
30399         BOOLEAN_TYPE types.
30400
30401 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
30402
30403         PR tree-optimization/38492
30404         * graphite.c (rename_map_elt, debug_rename_elt,
30405         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
30406         rename_map_elt_info, eq_rename_map_elts,
30407         get_new_name_from_old_name, bb_in_sese_p): Moved around.
30408         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
30409         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
30410         (sese_build_livein_liveouts): New.
30411         (new_sese, free_sese): New.
30412         (new_scop): Call new_sese.
30413         (free_scop): Call free_sese.
30414         (rename_variables_from_edge, rename_phis_end_scop): Removed.
30415         (register_old_new_names): Renamed register_old_and_new_names.
30416         (register_scop_liveout_renames, add_loop_exit_phis,
30417         insert_loop_close_phis, struct igp,
30418         default_liveout_before_guard, add_guard_exit_phis,
30419         insert_guard_phis, copy_renames): New.
30420         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
30421         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
30422         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
30423         (scop_adjust_phis_for_liveouts): New.
30424         (gloog): Call scop_adjust_phis_for_liveouts.
30425
30426         * graphite.h (struct sese): Documented.  Added fields liveout,
30427         num_ver and livein.
30428         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
30429         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
30430         (struct scop): Added field liveout_renames.
30431         (SCOP_LIVEOUT_RENAMES): New.
30432
30433 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
30434
30435         PR tree-optimization/38510
30436         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
30437         (translate_clast): Call recompute_all_dominators before
30438         graphite_verify.
30439         (gloog): Call recompute_all_dominators before graphite_verify.
30440
30441 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
30442             Jan Sjodin  <jan.sjodin@amd.com>
30443
30444         PR tree-optimization/38500
30445         * graphite.c (create_sese_edges): Call fix_loop_structure after
30446         splitting blocks.
30447
30448 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
30449
30450         * config.gcc: Add m32r*-*-rtems*.
30451         * config/m32r/rtems.h: New file.
30452
30453 2009-01-05  Ben Elliston  <bje@au.ibm.com>
30454
30455         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
30456         (.po.pox): Likewise.
30457         (po/gcc.pot): Likewise.
30458
30459 2009-01-04  David S. Miller  <davem@davemloft.net>
30460
30461         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
30462         (STARTING_FRAME_OFFSET): Always set to zero.
30463
30464 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
30465
30466         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
30467         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
30468         fixed-point types, and vectors of the same.
30469
30470 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
30471
30472         * config/mips/sync.md (*mb_barrier): Rename to...
30473         (*memory_barrier): ...this.
30474
30475 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
30476
30477         * doc/extend.texi (Function Attributes): Move @cindex after @item
30478         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
30479         and put in alphabetical order. Fix 'target' name and put in order.
30480         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
30481         typos.
30482
30483 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
30484
30485         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
30486         (memory_barrier): Expand as unspec instead of unspec_volatile.
30487         Remove mem:BLK from insn operands.  Use Pmode scratch register.
30488         (*memory_barrier): Define as unspec instead of unspec_volatile.
30489         Use (match_dup 0) as input operand.
30490
30491         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
30492         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
30493         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
30494         scratch register.  Remove operand 1.
30495         (*stbar): Define as unspec instead of unspec_volatile.
30496         Use (match_dup 0) as input operand, remove (const_int 8).
30497         (*membar): Define as unspec instead of unspec_volatile.
30498         Use (match_dup 0) as input operand, remove input operand 2.
30499
30500         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
30501         (memory_barrier): Expand as unspec instead of unspec_volatile.
30502         Remove mem:BLK from insn operands.  Use Pmode scratch register.
30503         (*memory_barrier): Define as unspec instead of unspec_volatile.
30504         Use (match_dup 0) as input operand.
30505
30506         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
30507         Remove mem:BLK from insn operands.  Use Pmode scratch register.
30508         Set volatile flag on operand 0.
30509         (*memory_barrier): New insn pattern.
30510
30511         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
30512         insn operands.
30513         (*memory_barrier): Use (match_dup 0) as input operand.
30514
30515         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
30516         Remove mem:BLK from insn operands.  Use Pmode scratch register.
30517         Set volatile flag on operand 0.
30518         (*mb_internal): New insn pattern.
30519
30520         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
30521
30522 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
30523
30524         PR middle-end/38586
30525         * function.c (struct temp_slot): Move to the section of the file
30526         that deals with temp slots.  Remove field 'address'.
30527         (temp_slot_address_table): New hash table of address -> temp slot.
30528         (struct temp_slot_address_entry): New struct, items for the table.
30529         (temp_slot_address_compute_hash, temp_slot_address_hash,
30530         temp_slot_address_eq, insert_temp_slot_address): Support functions
30531         for the new table.
30532         (find_temp_slot_from_address): Rewrite to use the new hash table.
30533         (remove_unused_temp_slot_addresses): Remove addresses of temp
30534         slots that have been made available.
30535         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
30536         worker function for remove_unused_temp_slot_addresses.
30537         (assign_stack_temp_for_type): Don't clear the temp slot address list.
30538         Add the temp slot address to the address -> temp slot map.
30539         (update_temp_slot_address): Update via insert_temp_slot_address.
30540         (free_temp_slots): Call remove_unused_temp_slot_addresses.
30541         (pop_temp_slots): Likewise.
30542         (init_temp_slots): Allocate the address -> temp slot map, or empty
30543         the map if it is already allocated.
30544         (prepare_function_start): Initialize temp slot processing.
30545
30546 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
30547
30548         PR middle-end/38584
30549         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
30550         Calculate the size of all stack vars assuming no packing of stack
30551         vars will happen, replacing a quadratic algorithm with a linear one.
30552
30553 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
30554
30555         PR target/38707
30556         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
30557         can't be used.
30558
30559 2009-01-03  Diego Novillo  <dnovillo@google.com>
30560
30561         * doc/contrib.texi: Update contributions.
30562
30563 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
30564
30565         PR c++/38705
30566         * builtins.c (fold_builtin_memory_op): Give up if either operand
30567         is volatile.  Set srctype or desttype to non-qualified version
30568         of the other type.
30569
30570         PR c/38700
30571         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
30572         and FUNCTION_DECLs.
30573
30574 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
30575
30576         PR rtl-optimization/35805
30577         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
30578         problem if fast dce is able to remove any instructions.
30579         * dce.c (dce_process_block): Fix dump message.
30580
30581 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
30582
30583         PR 33649
30584         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
30585
30586 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
30587
30588         PR middle-end/38690
30589         * tree-flow.h (op_code_prio, op_prio): New prototypes.
30590         * tree-pretty-print.c (op_code_prio): New function.
30591         (op_prio): No longer static.  Use op_code_prio.
30592         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
30593         Use op_prio and op_code_prio to determine if () should be
30594         printed around operand(s) or not.
30595
30596         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
30597         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
30598         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
30599         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
30600         pp_character instead of pp_string for single letter printing.
30601
30602 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
30603
30604         * doc/extend.texi: Fix '#pragma GCC option' typo.
30605
30606 2009-01-02  Richard Guenther  <rguenther@suse.de>
30607
30608         * doc/install.texi (--enable-checking): Mention different
30609         default for stage1.
30610         (--enable-stage1-checking): Document.
30611
30612 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
30613
30614         PR middle-end/30142
30615         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
30616         case to be an error.
30617
30618 2009-01-02  Ben Elliston  <bje@au.ibm.com>
30619
30620         * config/fp-bit.h (pack_d): Constify argument.
30621         * config/fp-bit.c (makenan): Constify return type. Remove casts.
30622         (isnan): Constify argument.
30623         (isinf): Likewise.
30624         (iszero): Likewise.
30625         (pack_d): Likewise.
30626         (_fpadd_parts): Constify return type.
30627         (_fpmul_parts): Likewise.
30628         (_fpdiv_parts): Likewise.
30629
30630 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
30631
30632         PR c/36489
30633         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
30634         warn about overwriting initializer with side-effects or
30635         -Woverride-init if !IMPLICIT.
30636         (output_init_element): Likewise.  Pass IMPLICIT down to
30637         add_pending_init.
30638         (process_init_element): Add IMPLICIT argument.  Pass it down
30639         to output_init_element.
30640         (push_init_element, pop_init_level, set_designator): Adjust
30641         process_init_element callers.
30642         (set_nonincremental_init, set_nonincremental_init_from_string):
30643         Adjust add_pending_init callers.
30644         (output_pending_init_elements): Adjust output_init_element callers.
30645         * c-tree.h (process_init_element): Adjust prototype.
30646         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
30647         process_init_element callers.
30648
30649 \f
30650 Copyright (C) 2009 Free Software Foundation, Inc.
30651
30652 Copying and distribution of this file, with or without modification,
30653 are permitted in any medium without royalty provided the copyright
30654 notice and this notice are preserved.