2009-10-28 Paolo Bonzini <bonzini@gnu.org>
[official-gcc.git] / gcc / ChangeLog
blob57a0bd7d5331c28d85396dac9cd40d995afbf55e
1 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
3         PR rtl-optimization/41812
5         Revert:
6         2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
8         * df-problems.c (df_md_scratch): New.
9         (df_md_alloc, df_md_free): Allocate/free it.
10         (df_md_local_compute): Only include live registers in init.
11         (df_md_transfer_function): Prune the in-set computed by
12         the confluence function, and the gen-set too.
14 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
16         PR rtl-optimization/39715
17         * combine.c (simplify_comparison): Use extensions to
18         widen comparisons.  Try an ANDing first.
20 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
22         PR rtl-optimization/40741
23         * config/arm/arm.c (thumb1_rtx_costs): IOR or XOR with
24         a small constant is cheap.
25         * config/arm/arm.md (andsi3, iorsi3): Try to place the result of
26         force_reg on the LHS.
27         (xorsi3): Likewise, and split the XOR if the constant is complex
28         and not in Thumb mode.
30 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
32         * expmed.c (emit_store_flag): Check costs before
33         transforming to the opposite representation.
35 2009-10-28  Paolo Bonzini  <bonzini@gnu.org>
37         * config/sh/sh.md (cbranchfp4_media): Remove hack extending
38         cstore result to DImode.
40 2009-10-28  Kaz Kojima  <kkojima@gcc.gnu.org>
42         * config/sh/sh.md (stuff_delay_slot): Move const_int pattern
43         inside the unspec vector.
45 2009-10-27  Richard Henderson  <rth@redhat.com>
47         * cgraphunit.c (cgraph_optimize): Maintain timevar stack properly.
49 2009-10-27  Richard Henderson  <rth@redhat.com>
51         PR c++/41819
52         * tree-eh.c (eh_region_may_contain_throw_map): Rename from
53         eh_region_may_contain_throw; update users.
54         (eh_region_may_contain_throw): New function.
55         (lower_catch): Check flag_exceptions before creating exception region.
56         (lower_eh_filter, lower_eh_must_not_throw): Likewise.
57         (lower_cleanup): Tidy existing flag_exceptions check to match.
59 2009-10-27  Kai Tietz <kai.tietz@onevision.com>
61         PR/41799
62         * config/i386/mingw32.h (CHECK_EXECUTE_STACK_ENABLED): New macro.
63         * config/i386/mingw.opt: Add fset-stack-executable.
64         * config/i386/i386.c (ix86_trampoline_init): Make call to
65         emit_library_call conditional, if CHECK_EXECUTE_STACK_ENABLED is
66         defined and its value is not zero.
67         * doc/invoke.texi
69 2009-10-27  Richard Guenther  <rguenther@suse.de>
71         * tree-ssa-structalias.c (find_func_aliases): In IPA mode
72         handle calls to externally visible functions like in regular mode.
73         (create_variable_info_for): Do not create function infos here.
74         (have_alias_info): Remove write-only variable.
75         (solve_constraints): New function split out from common code
76         in compute_points_to_sets and ipa_pta_execute.
77         (compute_points_to_sets): Adjust.
78         (ipa_pta_execute): Likewise.  Handle clones and externally visible
79         functions like in non-IPA mode.
81 2009-10-27  Jakub Jelinek  <jakub@redhat.com>
83         PR c/41842
84         * c-typeck.c (convert_arguments): Return -1 if any of the arguments is
85         error_mark_node.
87 2009-10-27  Richard Guenther  <rguenther@suse.de>
89         * tree-complex.c (expand_complex_div_wide): Check for
90         INTEGER_CST, not TREE_CONSTANT on comparison folding result.
92 2009-10-27  Revital Eres  <eres@il.ibm.com>
94         PR tree-optimization/40648
95         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
96         Change decision of when to peel for alignment.
98 2009-10-27  Richard Guenther  <rguenther@suse.de>
100         PR lto/41821
101         * gimple.c (gimple_types_compatible_p): Handle OFFSET_TYPE.
103 2009-10-27  Aldy Hernandez  <aldyh@redhat.com>
105         PR bootstrap/41451
106         * fold-const.c (fold_binary_loc): Do not call
107         protected_set_expr_location.
109 2009-10-27  Wei Guozhi  <carrot@google.com>
111         PR target/41705
112         * target.h (have_conditional_execution): Add a new target hook
113         function.
114         * target-def.h (TARGET_HAVE_CONDITIONAL_EXECUTION): Likewise.
115         * targhooks.h (default_have_conditional_execution): Likewise.
116         * targhooks.c (default_have_conditional_execution): Likewise.
117         * doc/tm.texi (TARGET_HAVE_CONDITIONAL_EXECUTION): Document it.
118         * config/arm/arm.c (TARGET_HAVE_CONDITIONAL_EXECUTION): Define it.
119         (arm_have_conditional_execution): New function.
120         * ifcvt.c (noce_process_if_block, find_if_header,
121         cond_exec_find_if_block, dead_or_predicable): Change the usage of
122         macro HAVE_conditional_execution to a target hook call.
123         * recog.c (peephole2_optimize): Likewise.
124         * sched-rgn.c (add_branch_dependences): Likewise.
125         * final.c (asm_insn_count, final_scan_insn): Likewise.
126         * bb-reorder.c (HAVE_conditional_execution): Remove it.
128 2009-10-26  Ben Elliston  <bje@au.ibm.com>
129             Michael Meissner  <meissner@linux.vnet.ibm.com>
130             Ulrich Weigand  <uweigand@de.ibm.com>
132         * config.gcc (spu-*-elf*): Add spu_cache.h to extra_headers.
133         * config/spu/spu_cache.h: New file.
135         * config/spu/cachemgr.c: New file.
136         * config/spu/cache.S: New file.
138         * config/spu/spu.h (ASM_OUTPUT_SYMBOL_REF): Define.
139         (ADDR_SPACE_EA): Define.
140         (TARGET_ADDR_SPACE_KEYWORDS): Define.
141         * config/spu/spu.c (EAmode): New macro.
142         (TARGET_ADDR_SPACE_POINTER_MODE): Define.
143         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
144         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
145         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
146         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
147         (TARGET_ADDR_SPACE_CONVERT): Likewise.
148         (TARGET_ASM_SELECT_SECTION): Likewise.
149         (TARGET_ASM_UNIQUE_SECTION): Likewise.
150         (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
151         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
152         (ea_symbol_ref): New function.
153         (spu_legitimate_constant_p): Handle __ea qualified addresses.
154         (spu_addr_space_legitimate_address_p): New function.
155         (spu_addr_space_legitimize_address): Likewise.
156         (cache_fetch): New global.
157         (cache_fetch_dirty): Likewise.
158         (ea_alias_set): Likewise.
159         (ea_load_store): New function.
160         (ea_load_store_inline): Likewise.
161         (expand_ea_mem): Likewise.
162         (spu_expand_mov): Handle __ea qualified memory references.
163         (spu_addr_space_pointer_mode): New function.
164         (spu_addr_space_address_mode): Likewise.
165         (spu_addr_space_subset_p): Likewise.
166         (spu_addr_space_convert): Likewise.
167         (spu_section_type_flags): Handle "._ea" section.
168         (spu_select_section): New function.
169         (spu_unique_section): Likewise.
170         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Support __EA32__
171         and __EA64__ predefined macros.
172         * config/spu/spu-elf.h (LIB_SPEC): Handle -mcache-size= and
173         -matomic-updates switches.
175         * config/spu/t-spu-elf (MULTILIB_OPTIONS): Define.
176         (EXTRA_MULTILIB_PARTS): Add libgcc_cachemgr.a,
177         libgcc_cachemgr_nonatomic.a, libgcc_cache8k.a, libgcc_cache16k.a,
178         libgcc_cache32k.a, libgcc_cache64k.a, libgcc_cache128k.a.
179         ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o): New target.
180         ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache64k.o,
181         $(T)cache128k.o): Likewise.
182         ($(T)libgcc_%.a): Likewise.
184         * config/spu/spu.h (TARGET_DEFAULT): Add MASK_ADDRESS_SPACE_CONVERSION.
185         * config/spu/spu.opt (-mea32/-mea64): Add switches.
186         (-maddress-space-conversion): Likewise.
187         (-mcache-size=): Likewise.
188         (-matomic-updates): Likewise.
189         * doc/invoke.texi (-mea32/-mea64): Document.
190         (-maddress-space-conversion): Likewise.
191         (-mcache-size=): Likewise.
192         (-matomic-updates): Likewise.
194 2009-10-26  Ben Elliston  <bje@au.ibm.com>
195             Michael Meissner  <meissner@linux.vnet.ibm.com>
196             Ulrich Weigand  <uweigand@de.ibm.com>
198         * doc/tm.texi (TARGET_ADDR_SPACE_KEYWORDS): Document.
200         * c-common.c (c_common_reswords): If TARGET_ADDR_SPACE_KEYWORDS is
201         defined, add the named address space keywords.
202         (c_addr_space_name): New function.
203         (complete_array_type): Preserve named address space.
204         (handle_mode_attribute): Use targetm.addr_space.valid_pointer_mode
205         instead of targetm.valid_pointer_mode.
207         * c-common.h (enum rid): Add RID_ADDR_SPACE_0 .. RID_ADDR_SPACE_15,
208         RID_FIRST_ADDR_SPACE and RID_LAST_ADDR_SPACE.
209         (ADDR_SPACE_KEYWORD): New macro.
210         (c_addr_space_name): Add prototype.
212         * c-tree.h (struct c_declspecs): Add address_space member.
213         (declspecs_add_addrspace): Add prototype.
215         * c-pretty-print.c (pp_c_type_qualifier_list): Handle address spaces.
217         * c-parser.c (c_parse_init): Add assertion.
218         (typedef enum c_id_kind): Add C_ID_ADDRSPACE.
219         (c_lex_one_token): Handle address space keywords.
220         (c_token_starts_typename): Likewise.
221         (c_token_starts_declspecs): Likewise.
222         (c_parser_declspecs): Likewise.
223         (c_parser_postfix_expression_after_paren_type): Diagnose compound
224         literal within function qualified with named address space.
226         * c-decl.c (diagnose_mismatched_decls): Diagnose conflicting named
227         address space qualifiers.
228         (shadow_tag_warned): Warn about useless address space qualifiers.
229         (quals_from_declspecs): Handle address space qualifiers.
230         (grokdeclarator): Likewise.
231         (build_null_declspecs): Likewise.
232         (declspecs_add_addrspace): New function.
234         * c-typeck.c (addr_space_superset): New function.
235         (qualify_type): Handle named address spaces.
236         (composite_type): Likewise.
237         (common_pointer_type): Likewise.
238         (comp_target_types): Likewise.
239         (build_conditional_expr): Likewise.
240         (handle_warn_cast_qual): Likewise.
241         (build_c_cast): Likewise.
242         (convert_for_assignment): Likewise.
243         (build_binary_op): Likewise.
244         (pointer_diff): Handle named address spaces.  Use intermediate
245         integer type of sufficient size if required.
247 2009-10-26  Ben Elliston  <bje@au.ibm.com>
248             Michael Meissner  <meissner@linux.vnet.ibm.com>
249             Ulrich Weigand  <uweigand@de.ibm.com>
251         * doc/tm.texi (TARGET_ADDR_SPACE_POINTER_MODE): Document.
252         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
253         (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
255         * target.h (struct target_def): Add pointer_mode, address_mode,
256         and valid_pointer_mode to addr_space substructure.
257         * target-def.h (TARGET_ADDR_SPACE_POINTER_MODE): Define.
258         (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
259         (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
260         (TARGET_ADDR_SPACE_HOOKS): Add them.
261         * targhooks.c (target_default_pointer_address_modes_p): New function.
262         * target.h (target_default_pointer_address_modes_p): Add prototype.
263         * targhooks.c (default_addr_space_pointer_mode): New function.
264         (default_addr_space_address_mode): Likewise.
265         (default_addr_space_valid_pointer_mode): Likewise.
266         * targhooks.h (default_addr_space_pointer_mode): Add prototype.
267         (default_addr_space_address_mode): Likewise.
268         (default_addr_space_valid_pointer_mode): Likewise.
269         * output.h (default_valid_pointer_mode): Move to ...
270         * targhooks.h (default_valid_pointer_mode): ... here.
271         * varasm.c (default_valid_pointer_mode): Move to ...
272         * targhooks.c (default_valid_pointer_mode): ... here.
274         * varasm.c (output_constant): Use targetm.addr_space.valid_pointer_mode
275         instead of targetm.valid_pointer_mode.
277         * fold-const.c (fit_double_type): Use int_or_pointer_precision.
278         * tree.c (integer_pow2p): Likewise.
279         (tree_log2): Likewise.
280         (tree_floor_log2): Likewise.
281         (signed_or_unsigned_type_for): Support pointer type of different size.
282         (int_or_pointer_precision): New function.
283         * tree.h (int_or_pointer_precision): Add prototype.
284         * stor-layout.c (layout_type): Set TYPE_PRECISION for offset types.
285         * varasm.c (initializer_constant_valid_p): Use TYPE_PRECISION of
286         incoming pointer type instead of POINTER_SIZE.
288         * tree.c (build_pointer_type): Use appropriate pointer mode
289         instead of ptr_mode.
290         (build_reference_type): Likewise.
291         * expr.c (store_expr): Likewise.
292         (expand_expr_addr_expr): Likewise.
293         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
294         * cfgexpand.c (expand_debug_expr): Likewise.
296         * auto-inc-dec.c: Include "target.h".
297         (try_merge): Use appropriate address mode instead of Pmode.
298         (find_inc): Likewise.
299         * combine.c (find_split_point): Likewise.
300         * cselib.c (cselib_record_sets): Likewise.
301         * dse.c (replace_inc_dec): Likewise.
302         (canon_address): Likewise.
303         * var-tracking.c (replace_expr_with_values): Likewise.
304         (count_uses): Likewise.
305         (add_uses): Likewise.
306         (add_stores): Likewise.
307         * emit-rtl.c: Include "target.h".
308         (adjust_address_1): Use appropriate address mode instead of Pmode.
309         (offset_address): Likewise.
310         * explow.c (break_out_memory_refs): Likewise.
311         (memory_address_addr_space): Likewise.
312         (promote_mode): Likewise.
313         * expr.c (move_by_pieces): Likewise.
314         (emit_block_move_via_loop): Likewise.
315         (store_by_pieces): Likewise.
316         (store_by_pieces_1): Likewise.
317         (expand_assignment): Likewise.
318         (store_constructor): Likewise.
319         (expand_expr_addr_expr): Likewise.
320         (expand_expr_real_1): Likewise.
321         * cfgexpand.c (expand_debug_expr): Likewise.
322         * ifcvt.c (noce_try_cmove_arith): Likewise.
323         * regcprop.c (kill_autoinc_value): Likewise.
324         * regmove.c (try_auto_increment): Likewise.
325         * reload.c (find_reloads): Likewise.
326         (find_reloads_address): Likewise.
327         (find_reloads_address_1): Likewise.
328         * sched-deps.c: Include "target.h".
329         (sched_analyze_1): Use appropriate address mode instead of Pmode.
330         (sched_analyze_2): Likewise.
331         * sel-sched-dump.c: Include "target.h".
332         (debug_mem_addr_value): Use appropriate address mode instead of Pmode.
333         * stor-layout.c (layout_type): Likewise.
334         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
335         (multiplier_allowed_in_address_p): Likewise.
336         (get_address_cost): Likewise.
337         * varasm.c (make_decl_rtl): Likewise.
339         * expr.c (expand_assignment): Always convert offsets to appropriate
340         address mode.
341         (store_expr): Likewise.
342         (store_constructor): Likewise.
343         (expand_expr_real_1): Likewise.
345         * reload.h (form_sum): Add MODE argument.
346         * reload.c (form_sum): Add MODE argument, use it instead of Pmode.
347         Update recursive calls.
348         (subst_indexed_address): Update calls to form_sum.
350         * tree-flow.h (addr_for_mem_ref): Add ADDRSPACE argument.
351         * tree-ssa-address.c: Include "target.h".
352         (templates): Replace by ...
353         (mem_addr_template_list): ... this new vector.
354         (TEMPL_IDX): Handle address space numbers.
355         (gen_addr_rtx): Add address mode argument, use it instead of Pmode.
356         (addr_for_mem_ref): Add ADDRSPACE argument.  Use per-address-space
357         instead of global cache.  Update call to gen_addr_rtx.
358         (valid_mem_ref_p): Update call to addr_for_mem_ref.
359         * expr.c (expand_expr_real_1): Update call to addr_for_mem_ref.
361         * rtl.h (convert_memory_address_addr_space): Add prototype.
362         (convert_memory_address): Define as macro.
363         * explow.c (convert_memory_address): Rename to ...
364         (convert_memory_address_addr_space): ... this.  Add ADDRSPACE argument.
365         Use appropriate pointer and address modes instead of ptr_mode / Pmode.
366         Update recursive calls.
367         (memory_address_addr_space): Call convert_memory_address_addr_space.
368         * expmed.c (make_tree): Likewise.
369         * expr.c (expand_assignment): Likewise.
370         (expand_expr_addr_expr_1): Likewise.  Also, add ADDRSPACE argument.
371         (expand_expr_addr_expr): Likewise.  Also, update call.
373         * alias.c (find_base_value): Guard pointer size optimizations.
374         (find_base_term): Likewise.
375         * rtlanal.c (nonzero_bits1): Likewise.
376         (num_sign_bit_copies1): Likewise.
377         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
379         * Makefile.in (tree-ssa-address.o): Add $(TARGET_H) dependency.
380         (emit-rtl.o): Likewise.
381         (auto-inc-dec.o): Likewise.
382         (sched-deps.o): Likewise.
384 2009-10-26  Ben Elliston  <bje@au.ibm.com>
385             Michael Meissner  <meissner@linux.vnet.ibm.com>
386             Ulrich Weigand  <uweigand@de.ibm.com>
388         * doc/extend.texi (Named Address Spaces): New section.
389         * coretypes.h (addr_space_t): New type.
390         (ADDR_SPACE_GENERIC): New define.
391         (ADDR_SPACE_GENERIC_P): New macro.
393         * doc/tm.texi (Named Address Spaces): New section.
394         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Document.
395         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Document.
396         (TARGET_ADDR_SPACE_SUBSET_P): Document.
397         (TARGET_ADDR_SPACE_CONVERT): Document.
398         * target.h (struct gcc_target): Add addr_space substructure.
399         * target-def.h (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
400         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
401         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
402         (TARGET_ADDR_SPACE_CONVERT): Likewise.
403         (TARGET_ADDR_SPACE_HOOKS): Likewise.
404         (TARGET_INITIALIZER): Initialize addr_space hooks.
405         * targhooks.c (default_addr_space_legitimate_address_p): New function.
406         (default_addr_space_legitimize_address): Likewise.
407         (default_addr_space_subset_p): Likewise.
408         (default_addr_space_convert): Likewise.
409         * targhooks.h (default_addr_space_legitimate_address_p): Add prototype.
410         (default_addr_space_legitimize_address): Likewise.
411         (default_addr_space_subset_p): Likewise.
412         (default_addr_space_convert): Likewise.
414         * doc/rtl.texi (MEM_ADDR_SPACE): Document.
415         * rtl.h (mem_attrs): Add ADDRSPACE memory attribute.
416         (MEM_ADDR_SPACE): New macro.
417         * emit-rtl.c (get_mem_attrs): Add ADDRSPACE argument and set
418         address space memory attribute.
419         (mem_attrs_htab_hash): Handle address space memory attribute.
420         (mem_attrs_htab_eq): Likewise.
421         (set_mem_attributes_minus_bitpos): Likewise.
422         (set_mem_alias_set): Likewise.
423         (set_mem_align): Likewise.
424         (set_mem_expr): Likewise.
425         (set_mem_offset): Likewise.
426         (set_mem_size): Likewise.
427         (adjust_address_1): Likewise.
428         (offset_address): Likewise.
429         (widen_memoy_address): Likewise.
430         (get_spill_slot_decl): Likewise.
431         (set_mem_attrs_for_spill): Likewise.
432         (set_mem_addr_space): New function.
433         * emit-rtl.h (set_mem_addr_space): Add prototype.
434         * print-rtl.c (print_rtx): Print address space memory attribute.
435         * expr.c (expand_assignment): Set address space memory attribute
436         of generated MEM RTXes as appropriate.
437         (expand_expr_real_1): Likewise.
438         * cfgexpand.c (expand_debug_expr): Likewise.
439         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
441         * tree.h (struct tree_base): Add address_space bitfield.  Reduce
442         size of "spare" bitfield.
443         (TYPE_ADDR_SPACE): New macro.
444         (ENCODE_QUAL_ADDR_SPACE): Likewise.
445         (DECODE_QUAL_ADDR_SPACE): Likewise.
446         (CLEAR_QUAL_ADDR_SPACE): Likewise.
447         (KEEP_QUAL_ADDR_SPACE): Likewise.
448         (TYPE_QUALS): Encode type address space.
449         (TYPE_QUALS_NO_ADDR_SPACE): New macro.
450         * tree.c (set_type_quals): Set type address space.
451         (build_array_type): Inherit array address space from element type.
452         * print-tree.c (print_node_brief): Print type address space.
453         (print_node): Likewise.
454         * tree-pretty-print.c (dump_generic_node): Likewise.
456         * explow.c (memory_address): Rename to ...
457         (memory_address_addr_space): ... this.  Add ADDRSPACE argument.
458         Use address-space aware variants of memory address routines.
459         * recog.c (memory_address_p): Rename to ...
460         (memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
461         Use address-space aware variants of memory address routines.
462         (offsettable_address_p): Rename to ...
463         (offsettable_address_addr_space_p): ... this.  Add ADDRSPACE argument.
464         Use address-space aware variants of memory address routines.
465         * reload.c (strict_memory_address_p): Rename to ...
466         (strict_memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
467         Use address-space aware variants of memory address routines.
468         (maybe_memory_address_p): Rename to ...
469         (maybe_memory_address_addr_space_p): ... this.  Add ADDSPACE argument.
470         Use address-space aware variants of memory address routines.
471         * expr.h (memory_address_addr_space): Add prototype.
472         (memory_address): Define as macro.
473         * recog.h (memory_address_addr_space_p): Add prototype.
474         (memory_address_p): Define as macro.
475         (offsettable_address_addr_space_p): Add prototype.
476         (offsettable_address_p): Define as macro.
477         (strict_memory_address_addr_space_p): Add prototype.
478         (strict_memory_address_p): Define as macro.
480         * combine.c (find_split_point): Use address-space aware variants
481         of memory address routines.
482         * emit-rtl.c (operand_subword): Likewise.
483         (change_address_1): Likewise.
484         (adjust_address_1): Likewise.
485         (offset_address): Likewise.
486         * expr.c (emit_move_insn): Likewise.
487         (expand_assignment): Likewise.
488         (expand_expr_real_1): Likewise.
489         * recog.c (verify_changes): Likewise.
490         (general_operand): Likewise.
491         (offsettable_memref_p): Likewise.
492         (offsettable_nonstrict_memref_p): Likewise.
493         (constrain_operands): Likewise.
494         * reload.c (get_secondary_mem): Likewise.
495         (find_reloads_toplev): Likewise.
496         (find_reloads_address): Likewise.
497         (find_reloads_subreg_address): Likewise.
498         * reload1.c (reload): Likewise.
499         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
500         * rtl.h (address_cost): Add ADDRSPACE argument.
501         * rtlanal.c (address_cost): Add ADDRSPACE argument.  Use address-space
502         aware variant of memory address routines.
503         * loop-invariant.c (create_new_invariant): Update address_cost call.
504         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
505         * fwprop.c (should_replace_address): Add ADDRSPACE argument.
506         Use address-space aware variant of memory address routines.
507         (propagate_rtx_1): Update call to should_replace_address.
508         * tree-flow.h (multiplier_allowed_in_address_p): Add ADDRSPACE
509         argument.
510         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Add
511         ADDRSPACE argument.  Use per-address-space instead of global cache.
512         Use address-space aware variant of memory address routines.
513         (get_address_cost): Likewise.
514         (get_computation_cost_at): Update calls.
515         * tree-ssa-address.c (valid_mem_ref_p): Add ADDRSPACE argument.
516         Use address-space aware variant of memory address routines.
517         (create_mem_ref_raw): Update call to valid_mem_ref_p.
518         (most_expensive_mult_to_index): Update call to
519         multiplier_allowed_in_address_p.
521         * dwarf2out.c (modified_type_die): Output DW_AT_address_class
522         attribute to indicate named address spaces.
524         * varasm.c (get_variable_section): DECLs in named address spaces
525         cannot be "common".
527         * reload.c (find_reloads_address): Do not use LEGITIMIZE_RELOAD_ADDRESS
528         for addresses in a non-generic address space.
530         * expr.c (emit_block_move_hints): Do not use libcalls for
531         memory in non-generic address spaces.
532         (clear_storage_hints): Likewise.
533         (expand_assignment): Likewise.
535         * fold-const.c (operand_equal_p): Expressions refering to different
536         address spaces are not equivalent.
538         * rtl.c (rtx_equal_p_cb): MEMs refering to different address
539         spaces are not equivalent.
540         (rtx_equal_p): Likewise.
541         * cse.c (exp_equiv_p): Likewise.
542         * jump.c (rtx_renumbered_equal_p): Likewise.
543         * reload.c (operands_match_p): Likewise.
545         * alias.c (nonoverlapping_memrefs_p): MEMs refering to different
546         address spaces may alias.
547         (true_dependence): Likewise.
548         (canon_true_dependence): Likewise.
549         (write_dependence_p): Likewise.
551         * dse.c (canon_address): Handle named address spaces.
552         * ifcvt.c (noce_try_cmove_arith): Likewise.
554         * tree.def (ADDR_SPACE_CONVERT_EXPR): New tree code.
555         * expr.c (expand_expr_real_2): Expand ADDR_SPACE_CONVERT_EXPR.
556         * convert.c (convert_to_pointer): Generate ADDR_SPACE_CONVERT_EXPR
557         to handle conversions between different address spaces.
558         * fold-const.c (fold_convert_loc): Likewise.
559         (fold_unary_loc): Handle ADDR_SPACE_CONVERT_EXPR.
560         * tree-pretty-print.c (dump_generic_node): Likewise.
561         * gimple-pretty-print.c (dump_unary_rhs): Likewise.
562         * tree-cfg.c (verify_gimple_assign_unary): Likewise.
563         * tree-inline.c (estimate_operator_cost): Likewise.
564         * tree-ssa.c (useless_type_conversion_p): Conversions between pointers
565         to different address spaces are not useless.
567 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
569         PR bootstrap/41345
570         * cfgcleanup.c (trivially_empty_bb_p): New function.
571         (try_optimize_bb): Use it instead of checking BB_HEAD == BB_END.
573         PR debug/41828
574         * dwarf2out.c (add_pubname, add_pubtype, generic_parameter_die,
575         add_name_and_src_coords_attributes, gen_namespace_die,
576         dwarf2out_set_name): Handle dwarf2_name returning NULL.
578 2009-10-26  Nick Clifton  <nickc@redhat.com>
580         * config.gcc: Add support for RX target.
581         * config/rx: New directory.
582         * config/rx/constraints.md: New file.
583         * config/rx/predicates.md: New file.
584         * config/rx/rx.c: New file.
585         * config/rx/rx.h: New file.
586         * config/rx/rx.md: New file.
587         * config/rx/rx.opt: New file.
588         * config/rx/rx-protos.h: New file.
589         * config/rx/t-rx: New file.
590         * doc/extend.texi: Document RX function attributes.
591         * doc/invoke.texi: Document RX specific command line options.
592         * doc/contrib.texi: Document RX contribution.
593         * doc/md.texi: Document RX constraints.
594         * doc/install.texi: Document RX support.
596 2009-10-26  Michael Matz  <matz@suse.de>
598         PR tree-optimization/41783
599         * tree-ssa-alias.c (get_continuation_for_phi): Export, add a special
600         case for simple diamonds.
601         * tree-ssa-alias.h (get_continuation_for_phi): Declare.
602         * tree-ssa-pre.c (translate_vuse_through_block): Add same_valid
603         argument, use alias oracle to skip some vdefs.
604         (phi_translate_1): Change call to above, don't allocate new
605         value ids if they can stay the same.
606         (compute_avail): Allow vuse walking when looking up references.
608 2009-10-26  Richard Guenther  <rguenther@suse.de>
610         PR tree-optimization/41826
611         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Avoid
612         access to re-allocated vector fields.
614 2009-10-26  Richard Guenther  <rguenther@suse.de>
616         * graphite-sese-to-poly.c (check_poly_representation): Fix
617         compile without checking.
619 2009-10-26  Janus Weil  <janus@gcc.gnu.org>
621         PR fortran/41714
622         * gimple.h (tree_annotate_all_with_location): Remove prototype.
623         * gimplify.c (tree_should_carry_location_p,
624         tree_annotate_one_with_location,tree_annotate_all_with_location):
625         Remove obsolete functions.
627 2009-10-25  Kaz Kojima  <kkojima@gcc.gnu.org>
629         PR target/41813
630         * config/sh/sh.md (stuff_delay_slot): Don't set T_REG in pattern.
632 2009-10-25  Richard Guenther  <rguenther@suse.de>
634         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
635         Stream DECL_RESTRICTED_P.
636         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
638 2009-10-25  Richard Sandiford  <rdsandiford@googlemail.com>
640         * config/mips/mips.c (mips_restore_gp_from_cprestore_slot): Emit
641         a note when expanding to nothing.
643 2009-10-25  Richard Guenther  <rguenther@suse.de>
645         PR middle-end/41814
646         * tree.c (find_decls_types_r): Deal with Java overloading
647         BINFO_VIRTUALS for its own purpose.
649 2009-10-24  Adam Nemet  <anemet@caviumnetworks.com>
651         * config/mips/predicates.md (hilo_operand): New predicate.
652         * config/mips/mips.md (<u>mulsidi3_64bit): Change it to a
653         define_insn.  Correct !ISA_HAS_EXT_INS length from 24 to 28.  Move
654         splitter part from here ...:
655         (<u>mulsidi3_64bit splitter for !ISA_HAS_EXT_INS): ... to here.  Swap
656         op0 and op4 to match the DINS case.
657         (<u>mulsidi3_64bit splitter for ISA_HAS_EXT_INS): New splitter.
659 2009-10-24  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
661         PR middle-end/19154
662         * avr.md (QIDI): Add new mode iterator.
663         (sbrx_branch<mode>): Create new zero extract bit, test and jump
664         patterns for all QI thru DI modes combinations.
665         (sbrx_and_branch<mode>): Create new and based bit test and jump
666         patterns for QI thru SI modes.
667         avr.c (avr_out_sbxx_branch): Use only bit number.
669 2009-10-24  Jan Hubicka  <jh@suse.cz>
671         * ipa-reference.c (check_call): Noreturn notrhow calls do not write
672         to memory.
673         (analyze_function): When analyzing noreturn nothrow call, do not
674         compute written stats; free bitmaps of vars early if possible.
675         (generate_summary): Only update bitmaps if computed.
676         (propagate): Only dump bitmaps if computed.
677         (ipa_reference_read_summary): Fix pasto.
679 2009-10-24  Eric Botcazou  <ebotcazou@adacore.com>
681         * tree-ssa-alias.c (nonaliasing_component_refs_p): Rename into...
682         (aliasing_component_refs_p): ...this.  Return true if there is no
683         common base and the base access types have the same alias set.
684         (indirect_ref_may_alias_decl_p): Adjust for above renaming.
685         (indirect_refs_may_alias_p): Likewise.
687 2009-10-23  Joseph Myers  <joseph@codesourcery.com>
689         PR c/40033
690         * c-typeck.c (c_finish_stmt_expr): Do not wrap error_mark_node in
691         a C_MAYBE_CONST_EXPR.
693 2009-10-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
695         PR target/41787
696         * config/rs6000/rs6000.c (struct machine_function): Add
697         vsx_or_altivec_used_p to record if vector types are used.
698         (rs6000_expand_to_rtl_hook): Rename from
699         rs6000_alloc_sdmode_stack_slot.  If VSX, check to see if there are
700         any vector operations, so if there are, we can set VRSAVE to
701         non-zero when only floating point vector registers are used.
702         (TARGET_EXPAND_TO_RTL_HOOK): Use rs6000_expand_to_rtl_hook.
703         (rs6000_check_vector_mode): Inner function to check if vector
704         types are used in the code.
705         (compute_vrsave_mask): If VSX, make sure VRSAVE is non-zero if
706         vector instructions are used.
708         * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED):
709         Indicate that VSX registers which overlap floating point
710         registers, can't be used across a call, since the ABI only states
711         the scalar part of the register will be saved and restored.
713 2009-10-23  Joseph Myers  <joseph@codesourcery.com>
715         PR c/41673
716         * alias.c (get_alias_set): Call langhook before returning 0 for
717         types with structural equality.
718         * c-common.c (c_common_get_alias_set): Use alias set of element
719         type for arrays with structural comparison.
721 2009-10-23  Richard Guenther  <rguenther@suse.de>
723         PR middle-end/41805
724         * cfgexpand.c (expand_call_stmt): Use gimple_has_side_effects and
725         gimple_call_nothrow_p.
727 2009-10-23  Richard Guenther  <rguenther@suse.de>
729         PR tree-optimization/41778
730         * tree-ssa-pre.c (do_regular_insertion): Only insert if a
731         redundancy along a path in the CFG we want to optimize for speed
732         is going to be removed.
733         (execute_pre): Do partial-PRE only if the function is to be
734         optimized for speed.
735         (gate_pre): Do not turn off all of PRE when not optimizing a
736         function for speed.
738 2009-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
740         * builtins.c (fold_builtin_cabs): Use validate_arg().
741         (fold_builtin_cexp): Fix if-logic.
742         (fold_builtin_1): Check subtype for BUILT_IN_CIMAG.
744 2009-10-22  Jeff Law  <law@redhat.com>
746         * ira-lives.c (process_single_reg_class_operands): Update the
747         hard reg costs for all the hard registers desired by the
748         single reg class operand.
750 2009-10-22  Richard Sandiford  <rdsandiford@googlemail.com>
752         * simplify-rtx.c (simplify_replace_fn_rtx): Add a fallback case
753         for rtxes that aren't handled specially.
755 2009-10-22  Richard Sandiford  <rdsandiford@googlemail.com>
757         * rtl.h (shallow_copy_rtvec): Declare.
758         * rtl.c (shallow_copy_rtvec): New function.
759         * cselib.c (cselib_subst_to_values): Use it.  Only modify an
760         rtx field if the subrtx has changed.
762 2009-10-22  Anatoly Sokolov  <aesok@post.ru>
764         * config/m32c/m32c.c (m32c_function_value_regno_p): New function.
765         (m32c_function_value): Make static, add new 'outgoing' argument.
766         (m32c_libcall_value): Make static, add new 'fun' argument.
767         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
768         * config/m32c/m32c.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
769         (FUNCTION_VALUE_REGNO_P): Redefine, use m32c_function_value_regno_p.
770         * config/m32c/m32c-protos.h (m32c_function_value_regno_p): Declare.
771         (m32c_function_value, m32c_libcall_value): Delete declaration.
773 2009-10-22  Diego Novillo  <dnovillo@google.com>
775         * Makefile.in (PLUGIN_HEADERS): Add output.h and IPA_UTILS_H.
777 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
779         * tree-cfg.c (gimple_duplicate_sese_tail): Fix typos/indentation/white
780         space.
782 2009-10-22  Richard Guenther  <rguenther@suse.de>
784         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Declare.
785         * lto-symtab.c (struct lto_symtab_entry_def): Add node member.
786         (lto_symtab_merge): Do not merge cgraph nodes here.
787         (lto_symtab_resolve_can_prevail_p): Simplify.
788         (lto_symtab_resolve_symbols): Store cgraph node.
789         (lto_symtab_merge_decls_1): Simplify.  Do not drop non-prevailing
790         functions from the symtab.
791         (lto_symtab_merge_cgraph_nodes_1): New function.
792         (lto_symtab_merge_cgraph_nodes): Likewise.
794 2009-10-22  Richard Guenther  <rguenther@suse.de>
796         PR lto/41791
797         * lto-streamer-out.c (lto_output_location): Stream the
798         system header flag.
799         * lto-streamer-in.c (lto_input_location): Likewise.
801 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
803         * cfgloopmanip.c (duplicate_subloops): Export.
804         * tree-parloops.c (loop_parallel_p): Dump if loop is innermost.
805         (transform_to_exit_first_loop): Duplicate bbs starting from
806         header up to loop->latch instead of exit->src.
807         Initialize control variable to the correct number of iterations.
808         (gather_scalar_reductions): Do not register double reductions.
809         (parallelize_loops): Dump which loop is tested.
810         Indicate whether the parallelized loop is inner or not.
811         Remove the innermost-loop requirement.
812         * cfgloop.h (duplicate_subloops): Export.
813         * tree-cfg.c (add_phi_args_after_redirect): New function.
814         (gimple_duplicate_sese_tail): Remove the no-subloops constraint.
815         Call duplicate_subloops.
816         Update number of iterations at the exit condition.
817         Don't redirect nexits always to the loop exit.
818         Redirect copied edges from latch to the loop exit.
820 2009-10-22  Jan Hubicka  <jh@suse.cz>
822         * ipa-cp.c (ipcp_read_summary): Remove now invalid FIXME and
823         flag_ltrans check.
824         * ipa-inline.c (cgraph_mark_inline_edge,
825         cgraph_decide_inlining_of_small_function,
826         cgraph_decide_inlining, inline_read_summary): Disable indirect
827         inlining for WPA for time being.
829         PR tree-optimize/40556
830         * ipa-inline.c (cgraph_early_inlining): Fix iterations condition.
832 2009-10-22  Richard Guenther  <rguenther@suse.de>
834         * lto-streamer.h (lto_symtab_clear_resolution): Remove.
835         * lto-symtab.c (lto_symtab_clear_resolution): Likewise.
837 2009-10-22  Jan Hubicka  <jh@suse.cz>
839         PR lto/41730
840         * ipa-reference.c (has_proper_scope_for_analysis): Add fixme about
841         global vars.
842         (check_call): Handle only indirect calls.
843         (propagate_bits): Update comment.
844         (write_node_summary_p): Turn bogus check to assert.
845         (ipa_reference_write_summary): Stream calls_read_all properly.
846         (ipa_reference_read_summary): Stream in calls_read_all properly.
847         (read_write_all_from_decl): New function.
848         (propagate): Handle OVERWRITABLE nodes and external calls here.
849         * ipa-pre-const.c (check_call): In IPA mode handle indirect
850         calls only.
851         (analyze_function): Do not check visibility here.
852         (add_new_function): We summary OVERWRITABLE too.
853         (generate_summary): Stream OVERWRITABLE nodes too.
854         (propagate): Handle external calls and OVERWRITABLE nodes here.
855         (local_pure_const): Check visibility here.
857 2009-10-22  Jan Hubicka  <jh@suse.cz>
859         * ipa-cp.c (ipcp_write_summary, ipcp_read_summary): New functions.
860         (pass_ipa_cp): Register them.
861         (ipcp_init_stage): Analyze all functions for whopr/lto.
862         (ipcp_propagate_stage): Skip external calls.
863         (ipcp_iterate_stage): Call ipa_update_after_lto_read if needed.
864         * ipa-reference.c (write_node_summary_p): Fix thinko about
865         availability.
866         * cgraphunit.c (ipa_passes): When in lto, ne er produce new summaries;
867         when in ltrans, skip executing of ipa passes since everything
868         should've been done.
869         * ipa-inline.c (cgraph_decide_inlining): Remove FIXMEs.
870         (inline_generate_summary): Likewise.
871         (inline_read_summary): New function.
872         (inline_write_summary): New function.
873         (pass_ipa_inline): Register new hooks.
874         * ipa-prop.c: Inlcude lto-streamer.h
875         (ipa_edge_args_vector): Update declaration.
876         (ipa_count_arguments, ipa_compute_jump_functions,
877         ipa_free_edge_args_substructures): Move ipa_edge_args_vector into ggc.
878         (ipa_write_jump_function, ipa_read_jump_function, ipa_write_node_info,
879         ipa_read_node_info): New static functions.
880         (ipa_prop_write_jump_functions, ipa_prop_read_jump_functions): Update.
881         (duplicate_array): Use xmalloc.
882         (duplicate_ggc_array): New.
883         (ipa_edge_duplication_hook): Use it.
884         (ipa_update_after_lto_read): New function.
885         * ipa-prop.h (ipa_prop_write_jump_functions,
886         ipa_prop_read_jump_functions): Declare.
887         (ipa_pass_through_data, ipa_ancestor_jf_data, ipa_member_ptr_cst,
888         jump_func_value, ipa_member_ptr_cst, ipa_edge_args): Add GTY markers.
889         (ipa_edge_args_vector): Move into GGC.
890         (ipa_check_create_edge_args): Update.
891         (ipa_update_after_lto_read): New.
892         * passes.c (ipa_write_summaries_1): When in wpa, do not write
893         summaries.
894         (ipa_read_summaries): When in ltrans, so not read summaries.
895         * lto-streamer.c (lto_get_section_name): Add
896         LTO_section_jump_functions.
897         * lto-streamer.h (LTO_section_jump_functions): New section.
898         (produce_asm): Declare.
899         * lto-cgraph.c (output_cgraph): Output edges in reverse order.
900         * lto-streamer-out.c (produce_asm): Export.
901         * lto-streamer-in.c: Include tree-pass.h
902         (input_function): Free dominance info when done.
903         (lto_read_body): Push ipa_inline in ltrans stage.
904         * gengtype.c (open_base_files): Add ipa-prop.h into includes.
905         * Makefile.in (GTFILES): Add ipa-prop.h
907 2009-10-22  Matthias Klose  <doko@ubuntu.com>
909         * doc/install.texi: Document --enable-browser-plugin.
911 2009-10-21  Vladimir Makarov  <vmakarov@redhat.com>
913         * doc/invoke.texi (fira-loop-pressure): Update default value.
914         * opts.c (decode_options): Remove default value setting for
915         flag_ira_loop_pressure.
916         * config/ia64/ia64.c (ia64_override_options): Set
917         flag_ira_loop_pressure up for -O3.
918         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
920 2009-10-21  Sebastian Pop  <sebastian.pop@amd.com>
922         PR tree-optimization/41497
923         * tree-scalar-evolution.c (analyze_evolution_in_loop): Return
924         chrec_dont_know if the evolution function returned by follow_ssa_edge
925         is constant in the analyzed loop and is not compatible with the
926         initial value before the loop.
927         * tree-chrec.h (no_evolution_in_loop_p): Call STRIP_NOPS.
929 2009-10-21  Joseph Myers  <joseph@codesourcery.com>
931         * config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
933 2009-10-21  Jakub Jelinek  <jakub@redhat.com>
935         PR other/25507
936         * doc/invoke.texi: Document -print-multi-os-directory.
938 2009-10-21  Jack Howarth  <howarth@bromo.med.uc.edu>
940         PR c++/41313
941         * gcc/config/darwin10.h: Use default_emit_unwind_label.
942         * gcc/config/darwin.c: Disable -freorder-blocks-and-partition
943         when darwin_emit_unwind_label is used.
945 2009-10-21  Eric Botcazou  <ebotcazou@adacore.com>
947         * tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak
948         order of checks.
950 2009-10-20  Richard Henderson  <rth@redhat.com>
952         * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1
953         before emit_post_landing_pad.
955 2009-10-20  Adam Nemet  <anemet@caviumnetworks.com>
957         * config/mips/mips.c (mips_binary_cost): Add new argument speed.
958         Use when calling rtx_costs.
959         (mips_rtx_costs): Fix formatting.  Use argument speed rather than the
960         global optimize_size.  Pass speed to mips_binary_cost.
962 2009-10-20  Jakub Jelinek  <jakub@redhat.com>
964         * config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
965         of TREE_CONSTANT.
967 2009-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
969         * rtl.h (simplify_replace_fn_rtx): Declare.
970         (wrap_constant, unwrap_constant): Delete.
971         * cfgexpand.c (unwrap_constant, wrap_constant): Delete.
972         (expand_debug_expr): Don't call wrap_constant.
973         * combine.c (rtx_subst_pair): Only define for AUTO_INC_DEC.
974         (auto_adjust_pair): Fold into...
975         (propagate_for_debug_subst): ...here.  Only define for AUTO_INC_DEC.
976         Just return a new value.
977         (propagate_for_debug): Use simplify_replace_fn_rtx for AUTO_INC_DEC,
978         otherwise use simplify_replace_rtx.
979         * cselib.c (wrap_constant): Reinstate old definition.
980         (cselib_expand_value_rtx_1): Don't wrap constants.
981         * gcse.c (try_replace_reg): Don't use copy_rtx in the call to
982         simplify_replace_rtx.
983         (bypass_block): Fix formatting in calls to simplify_replace_rtx.
984         * reload1.c (reload): Skip all uses for an insn before adjusting it.
985         Use simplify_replace_rtx.
986         * simplify-rtx.c (simplify_replace_fn_rtx): New function,
987         adapted from...
988         (simplify_replace_rtx): ...here.  Turn into a wrapper for
989         simplify_replace_fn_rtx.
990         (simplify_unary_operation): Don't unwrap CONSTs.
991         * var-tracking.c (check_wrap_constant): Delete.
992         (vt_expand_loc_callback): Don't call it.
993         (vt_expand_loc): Likewise.
995 2009-10-20  Pascal Obry  <obry@adacore.com>
996             Eric Botcazou  <ebotcazou@adacore.com>
998         * config/i386/cygming.h (DWARF_FRAME_REGNUM): Add enclosing parens.
1000 2009-10-20  Michael Matz  <matz@suse.de>
1002         * loop-invariant.c (create_new_invariant): Use different magic number.
1004 2009-10-20  Richard Earnshaw  <rearnsha@arm.com>
1006         PR target/39247
1007         * arm.c (arm_override_options): Forcibly disable hot/cold block
1008         partitioning.
1010 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
1012         PR debug/41739
1013         * haifa-sched.c (try_ready): Skip debug deps updating speculation
1014         status.
1016 2009-10-20  Richard Guenther  <rguenther@suse.de>
1018         * ggc-page.c: Include cfgloop.h.
1019         (struct max_alignment): Drop long double, add void *.
1020         (extra_order_size_table): Add low non-power-of-two multiples
1021         of MAX_ALIGNMENT.  Drop small type-based entries, add
1022         tree_type, cgraph_node and loop.
1023         * alloc-pool.c (struct allocation_object_def): Drop long double
1024         aligning element.
1026 2009-10-20  Jakub Jelinek  <jakub@redhat.com>
1028         PR debug/41340
1029         * loop-invariant.c (calculate_loop_reg_pressure): Don't count regs
1030         referenced just in DEBUG_INSNs.
1032 2009-10-20  Richard Guenther  <rguenther@suse.de>
1034         PR lto/41761
1035         * gimple.c (gimple_register_type): Make sure we register
1036         the types main variant first.
1038 2009-10-20  Richard Guenther  <rguenther@suse.de>
1040         * gimple.c (gimple_types_compatible_p): Simplify.  Move
1041         cheap checks before hashtable queries.  Add checks for
1042         TYPE_NONALIASED_COMPONENT and DECL_NONADDRESSABLE_P.
1044 2009-10-20  Eric Botcazou  <ebotcazou@adacore.com>
1046         * tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
1047         without size or with size that can't be represented as a host integer.
1049 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
1051         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
1052         the removal of a debug stmt as a significant change.
1054 2009-10-20  Wolfgang Gellerich  <gellerich@de.ibm.com>
1056         * config/s390/s390.md: Added agen condition to operand
1057         forwarding bypasses.  Added bypass for early address generation
1058         use of int results.  Updated comments.
1060 2009-10-20  Stefan Dösinger  <stefan@codeweavers.com>
1062         * config/i386/i386.c: Remove signal.h #include.
1064 2009-10-20  Jie Zhang  <jie.zhang@analog.com>
1066         * simplify-rtx.c (simplify_const_unary_operation): Handle SS_ABS.
1067         * doc/rtl.texi: Document ss_abs.
1069 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
1071         * c-common.c (c_parse_error): Handle CPP_UTF8STRING.
1072         * c-lex.c (c_lex_with_flags): Likewise.  Test C_LEX_STRING_NO_JOIN
1073         instead of C_LEX_RAW_STRINGS.
1074         (lex_string): Handle CPP_UTF8STRING.
1075         * c-parser.c (c_parser_postfix_expression): Likewise.
1076         * c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
1077         (C_LEX_STRING_NO_JOIN): ... this.
1079 2009-10-19  Anatoly Sokolov  <aesok@post.ru>
1081         * config/cris/cris.c (cris_function_value, cris_libcall_value,
1082         cris_function_value_regno_p): New functions.
1083         (cris_promote_function_mode): Update comment.
1084         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
1085         * config/cris/cris.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
1086         (FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
1087         * config/cris/cris-protos.h (cris_function_value_regno_p): Declare.
1089 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
1091         * unwind-dw2.c (execute_stack_op): Fix operand order for
1092         DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
1094 2009-10-19  Eric Botcazou  <ebotcazou@adacore.com>
1096         * gimple-low.c (struct lower_data): Add cannot_fallthru field.
1097         (lower_stmt) <GIMPLE_BIND>: Add comment.
1098         <GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
1099         and return.
1100         <GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
1101         Otherwise lower it and set cannot_fallthru to true.
1102         <GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
1103         <GIMPLE_CATCH, GIMPLE_EH_FILTER>: Set cannot_fallthru to false.
1104         <GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
1105         to true for a noreturn call.  Do not remove statements.
1106         <GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
1107         Set cannot_fallthru to false on function exit.
1108         (gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
1109         <GIMPLE_ASSIGN>: Remove.
1111 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1113         * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
1115 2009-10-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1117         * config/s390/s390.c (s390_z10_optimize_cmp): Use
1118         next/prev_active_insn to skip DEBUG_INSNs as well.
1120 2009-10-19  Joseph Myers  <joseph@codesourcery.com>
1122         * config/arm/arm.c (output_move_neon): Use DImode in call to
1123         adjust_address.
1125 2009-10-19  Matthias Klose  <doko@ubuntu.com>
1127         PR target/40134
1128         * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
1130 2009-10-19  Jakub Jelinek  <jakub@redhat.com>
1132         * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM op0.
1134 2009-10-17  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
1136         PR middle-end/41738
1137         * optabs.c (expand_binop): Make mode of shift count expression mode
1138         of shift count not target.
1139         Remove indent nit.
1141 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1143         * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
1144         case.  Force using values to replace references within the statement.
1145         (convert_local_reference_stmt): Likewise.
1147 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1149         * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
1150         remove a subsequent GOTO or RETURN statement.
1152 2009-10-17  Andy Hutchinson  <hutchinsonandy@aim.com>
1154         * config/avr.md (*movqi): Add zero as equally preferable constraint
1155         as general register.
1156         (*movhi): Ditto.
1158 2009-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1160         * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
1162 2009-10-17  Richard Guenther  <rguenther@suse.de>
1164         * lto-streamer-in.c (lto_input_location): Try to reuse previous maps.
1166 2009-10-17  Richard Guenther  <rguenther@suse.de>
1168         * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
1169         operands in COMPONENT_REFs.
1171 2009-10-17  Anatoly Sokolov  <aesok@post.ru>
1173         * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
1174         if not defined. Change type of second argument to const_rtx.
1175         (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
1176         macro not defined.
1177         * targhooks.h (default_libcall_value): Update prototype.
1178         * target.h (struct gcc_target): Change type of second argument of
1179         libcall_value to const_rtx.
1180         * config/arm/arm.c (arm_libcall_value): Change type of second argument
1181         to const_rtx.
1182         (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
1183         * doc/tm.texi (TARGET_LIBCALL_VALUE):  Revise documentation.
1185 2009-10-17  Jakub Jelinek  <jakub@redhat.com>
1187         PR debug/40521
1188         * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
1189         * cgraphunit.c (cgraph_optimize): Call it.
1190         * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
1191         (dwarf2out_assembly_start): ... here.  New hook.
1192         (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
1193         * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
1194         hook.
1195         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
1196         * sdbout.c (sdb_debug_hooks): Likewise.
1197         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
1198         (vmsdbgout_assembly_start): New hook.
1200 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
1202         * rtl.h (RTL_LOCATION): Fix typo.
1204 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
1206         * print-rtl.c (print_rtx): Print locators in asm_operands
1207         and asm_input.
1209 2009-10-17  Alexandre Oliva  <aoliva@redhat.com>
1211         PR debug/41535
1212         * sched-deps.c (depl_on_debug_p): New.
1213         (attach_dep_link): Reject debug deps before nondebug deps.
1214         (add_to_deps_list): Insert debug deps after nondebug deps.
1215         (sd_lists_empty_p): Stop at first nonempty list.  Disregard debug
1216         deps.
1217         (sd_add_dep): Do not reject debug deps.
1218         (add_insn_mem_dependence): Don't count debug deps.
1219         (remove_from_deps): Likewise.
1220         (sched_analyze_2): Set up mem deps on debug insns.
1221         (sched_analyze_insn): Record reg uses for deps on debug insns.
1222         * haifa-sched.c (schedule_insn): Reset deferred debug insn.  Don't
1223         try_ready nondebug insn after debug insn.
1224         * ddg.c (create_ddg_dep_from_intra_loop_link,
1225         create_ddg_dep_no_link): Don't reject debug deps.
1227 2009-10-16  Richard Guenther  <rguenther@suse.de>
1229         * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
1230         (maybe_merge_incomplete_and_complete_type): Likewise.
1231         (lto_symtab_merge): Do not call them.  Do not warn for
1232         complete vs. incomplete compatible types.
1233         (lto_symtab_merge_decls_2): Simplify.
1234         * gimple.c (gimple_force_type_merge): Remove.
1235         (gimple_types_compatible_p): Make it static.
1236         * gimple.h (gimple_force_type_merge): Remove.
1237         (gimple_types_compatible_p): Likewise.
1239 2009-10-16  Jakub Jelinek  <jakub@redhat.com>
1241         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
1242         DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
1244 2009-10-16  Richard Guenther  <rguenther@suse.de>
1246         PR tree-optimization/41728
1247         * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
1248         if fold_stmt did anything.
1250 2009-10-16  Richard Guenther  <rguenther@suse.de>
1252         PR lto/41715
1253         * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
1254         (maybe_fixup_handled_component): New function.
1255         (input_gimple_stmt): Fixup mismatched decl replacements.
1257 2009-10-16  Richard Guenther  <rguenther@suse.de>
1259         PR lto/41713
1260         * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
1261         the same as VAR_DECL.
1263 2009-10-16  Richard Guenther  <rguenther@suse.de>
1265         * gimple.c (iterative_hash_gimple_type): For integer types
1266         also hash their minimum and maximum values and the string flag.
1267         For array types hash their domain and the string flag.
1269 2009-10-16  Richard Guenther  <rguenther@suse.de>
1271         * gimple.c (gimple_types_compatible_p): Restrict completing
1272         types to record or unions.  Simplify completion.
1273         Do not merge records or unions with different
1274         TYPE_STRUCTURAL_EQUALITY_P tag.
1275         (iterative_hash_gimple_type): Restrict non-recursing into
1276         pointer targets for records and unions.
1278 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
1280         PR debug/41717
1281         * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
1282         * dwarf2out.c (mem_loc_descriptor): Don't handle
1283         POST_INT/POST_DEC/POST_MODIFY like SUBREG.  For SUBREG
1284         punt if it is not lowpart subreg or if inner mode isn't
1285         MODE_INT.
1287 2009-10-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1289         * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
1290         investigating previous or next insns.
1292 2009-10-16  Eric Botcazou  <ebotcazou@adacore.com>
1294         * tree-sra.c (build_ref_for_offset_1): Update comment.
1296 2009-10-16  Wolfgang Gellerich  <gellerich@de.ibm.com>
1298         * config/s390/s390.md (atype): Added missing values.
1300 2009-10-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1302         PR target/41702
1303         * pa.md (casesi): Use sign extended index in call to gen_casesi64p.
1304         (casesi64p): Update pattern to reflect above.
1306 2009-10-15  Steve Ellcey  <sje@cup.hp.com>
1308         PR rtl-optimization/41697
1309         * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
1311 2009-10-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
1313         PR target/23983
1314         * config/rs6000/predicates.md: Update copyright year.
1315         * config/rs6000/altivec.md: Ditto.
1317         * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
1318         (MD_INCLUDES): Add a2.md.
1320         * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
1321         RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
1322         (builtin_classify): New static vector to classify various builtins
1323         to get the tree attributes correct.
1324         (def_builtin): Set the attributes of builtins based on what the
1325         builtin does (i.e. memory operation, floating point, saturation
1326         need special attributes, others are pure functions).
1328         * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
1329         the builtins.
1330         (enum rs6000_builtins): Include rs6000-builtin.def to define the
1331         builtins.  Change the end marker to MAX_RS6000_BUILTINS from
1332         RS6000_BUILTIN_COUNT.
1333         (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
1334         MAX_RS6000_BUILTINS.
1336         * config/rs6000/rs6000-builtin.def: New file that combines the
1337         builtin enumeration name and attributes.
1339 2009-10-15  H.J. Lu  <hongjiu.lu@intel.com>
1341         * config/i386/linux.h (ASM_SPEC): Add --32.
1343 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
1345         * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
1346         and DW_TAG_template_alias.
1347         (dwarf_attr_name): Handle DW_AT_main_subprogram,
1348         DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
1349         DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
1350         DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
1351         DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
1352         and DW_AT_GNU_odr_signature.
1353         (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
1354         DW_FORM_flag_present and DW_FORM_ref_sig8.
1355         (output_signature): Only print name on the first byte.
1356         (output_die): Likewise for dw_val_class_data8.
1358 2009-10-15  Alexander Monakov  <amonakov@ispras.ru>
1360         * doc/invoke.texi: Clarify that most optimizations are not enabled
1361         without -O.
1363 2009-10-15  Richard Guenther  <rguenther@suse.de>
1365         PR lto/41668
1366         * gimple.c (compare_type_names_p): Handle anonymous names
1367         differently based on new mode argument.
1368         (gimple_types_compatible_p): For structs also compare the tags.
1369         (iterative_hash_type_name): Rename to ...
1370         (iterative_hash_name): ... this.  Hash all names.
1371         (iterative_hash_gimple_type): Fix hashing the struct tag of
1372         pointer targets.  Hash field decl names.
1374 2009-10-15  Richard Guenther  <rguenther@suse.de>
1376         PR lto/41669
1377         * gimple.c (gimple_get_alias_set): Avoid recursing on
1378         invalid type topology.
1380 2009-10-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1382         * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
1384 2009-10-15  Richard Guenther  <rguenther@suse.de>
1386         * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
1388 2009-10-15  Jakub Jelinek  <jakub@redhat.com>
1390         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
1391         add --with-tune{,-32,-64} configured default for -mtune if explicit
1392         -mcpu is used.
1394 2009-10-14  Daniel Gutson  <dgutson@codesourcery.com>
1396         * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
1398 2009-10-14  DJ Delorie  <dj@redhat.com>
1400         * config/h8300/h8300.c (F): New.
1401         (Fpa): New.
1402         (h8300_emit_stack_adjustment): Call them.
1403         (push): Likewise.
1404         (h8300_push_pop): Likewise.
1405         (h8300_expand_prologue): Likewise.
1406         * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
1407         (MUST_USE_SJLJ_EXCEPTIONS): Define.
1408         (INCOMING_RETURN_ADDR_RTX): Define.
1409         (INCOMING_FRAME_SP_OFFSET): Define.
1410         (DWARF_CIE_DATA_ALIGNMENT): Define.
1412 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
1414         * stor-layout.c (place_field): Don't emit -Wpadded warnings for
1415         fields in builtin structs.
1416         (finalize_record_size): Likewise.
1418 2009-10-14  Richard Guenther  <rguenther@suse.de>
1420         * gimple.c (gtc_ob): New global.
1421         (struct type_pair_d): Replace pointers with type UIDs.
1422         (type_pair_hash): Adjust.
1423         (type_pair_eq): Likewise.
1424         (lookup_type_pair): Likewise.  Allocate from an obstack.
1425         (gimple_force_type_merge): Adjust.
1426         (gimple_types_compatible_p): Likewise.
1427         (free_gimple_type_tables): Free the obstack.
1429 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
1431         * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
1432         stmts setting DEBUG_EXPR_DECLs.
1434         * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
1435         Don't crash if mode1 is VOIDmode.
1437 2009-09-26  Vladimir Makarov  <vmakarov@redhat.com>
1439         * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
1440         * params.h (IRA_LOOP_RESERVED_REGS): New.
1441         * tree-pass.h (pass_subregs_of_mode_init,
1442         pass_subregs_of_mode_finish): Remove.
1443         * passes.c (pass_subregs_of_mode_init,
1444         pass_subregs_of_mode_finish): Remove.
1445         (pass_reginfo_init): Move before loop optimizations.
1446         * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
1447         * common.opt (fira-loop-pressure): New.
1448         * toplev.h (flag_ira_loop_pressure): New.
1449         * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New externals.
1450         * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
1451         Make external and void type functions.
1452         (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
1453         pass_subregs_of_mode_finish): Remove.
1454         * ira-costs.c (init_costs): Call init_subregs_of_mode.
1455         * regmove.c: Include ira.h.
1456         (regmove_optimize): Call ira_set_pseudo_classes after IRA based
1457         register pressure calculation in loops.
1458         * loop-invariant.c: Include REGS_H and ira.h.
1459         (struct loop_data): New members max_reg_pressure, regs_ref, and
1460         regs_live.
1461         (struct invariant): New member orig_regno.
1462         (curr_loop): New variable.
1463         (find_exits): Initialize regs_ref and regs_live.
1464         (create_new_invariant): Initialize orig_regno.
1465         (get_cover_class_and_nregs): New.
1466         (get_inv_cost): Make aregs_needed an array.  Use regs_needed as an
1467         array.  Add code for flag_ira_loop_pressure.
1468         (gain_for_invariant): Make new_regs an array.  Add code for
1469         flag_ira_loop_pressure.
1470         (best_gain_for_invariant): Ditto.
1471         (set_move_mark): New parameter gain.  Use it for debugging output.
1472         (find_invariants_to_move): Make regs_needed and new_regs an array.
1473         Add code for flag_ira_loop_pressure.
1474         (move_invariant_reg): Set up orig_regno.
1475         (move_invariants): Set up reg classes for pseudos for
1476         flag_ira_loop_pressure.
1477         (free_loop_data): Clear regs_ref and regs_live.
1478         (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
1479         get_regno_cover_class, change_pressure, mark_regno_live,
1480         mark_regno_death, mark_reg_store, mark_reg_clobber,
1481         mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
1482         (move_loop_invariants): Calculate pressure.  Initialize curr_loop.
1483         * ira.c (ira): Call ira_set_pseudo_classes after IRA based
1484         register pressure calculation in loops if new regs were added.
1485         Call finish_subregs_of_mode.
1486         * opts.c (decode_options): Set up flag_ira_loop_pressure.
1487         * Makefile.in (loop-invariant.o): Add ira.h.
1488         (regmove.o): Ditto.
1489         * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
1490         Describe.
1491         * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
1493 2009-10-14  Richard Guenther  <rguenther@suse.de>
1495         * lto-symtab.c (lto_symtab_compatible): Fold in ...
1496         (lto_symtab_merge): ... here.  Rewrite both to take the
1497         prevailing and a to-be-merged entry and to queue diagnostics properly.
1498         (lto_symtab_resolve_replaceable_p): New predicate for
1499         symbol resolution.
1500         (lto_symtab_resolve_can_prevail_p): Likewise.
1501         (lto_symtab_resolve_symbols): Rewrite.  Fold in code that
1502         handles merging commons by choosing the largest decl.  Fold
1503         in code that gives ODR errors.
1504         (lto_symtab_merge_decls_2): Simplify a lot.  Emit queued
1505         diagnostics here.
1506         (lto_symtab_merge_decls_1): Re-structure.  Deal with the
1507         case of no prevailing decl here.  Diagnose mismatches
1508         in object types here.  Drop all but the prevailing decls.
1509         (lto_symtab_prevailing_decl): Return the single prevailing decl.
1510         * lto-streamer-in.c (lto_input_tree_ref): Deal with
1511         VIEW_CONVERT_EXPRs in decl slots.  Unshare the tree in this case.
1513 2009-10-14  Richard Guenther  <rguenther@suse.de>
1515         PR lto/41521
1516         * lto-streamer-in.c (input_bb): Replace debug stmts with
1517         nops instead of dropping them.
1519 2009-10-14  Nick Clifton  <nickc@redhat.com>
1521         * gcc/doc/extended.texi: Replace the dash character with @minus{}
1522         in situations where it is being used as a minus symbol.
1523         * gcc/doc/tm.texi: Likewise.
1524         * gcc/doc/md.texi: Likewise.
1526 2009-10-14  Jakub Jelinek  <jakub@redhat.com>
1528         PR preprocessor/41543
1529         * input.h (BUILTINS_LOCATION): Change to 1 from 2.
1530         Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
1531         * tree.c: Include intl.h.
1532         (expand_location): Handle BUILTINS_LOCATION.
1533         * Makefile.in (tree.o): Depend on intl.h.
1535         PR debug/41695
1536         * dwarf2out.c (dwarf2out_var_location): Always clear
1537         last_postcall_label when changing last_label.
1539 2009-10-14  Pascal Obry  <obry@adacore.com>
1541         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
1542         (process_command): Handle -E as done with -c and -S.  Do not add
1543         the target executable suffix to the output file when -E is used.
1544         (main): Adjust error message accordingly.
1546 2009-10-14  Alexandre Oliva  <aoliva@redhat.com>
1548         PR debug/41343
1549         PR debug/41447
1550         PR debug/41264
1551         PR debug/41338
1552         * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
1553         decl with rtl.
1554         (tree_code_size): Likewise.
1556 2009-10-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1558         * builtins.c (fold_builtin_1): Support complex "arc" functions.
1559         * real.h (HAVE_mpc_arc): Define.
1561 2009-10-14  Kaz Kojima  <kkojima@gcc.gnu.org>
1563         * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
1564         (struct builtin_description): Add fndecl field.
1565         (bdesc): Remove const qualifier.  Update initializer.
1566         (sh_media_init_builtins): Remove const qualifier for d.  Record
1567         the result of add_builtin_function to the fndecl field.
1568         (sh_builtin_decl): New.
1569         (sh_media_builtin_decl): New.
1571 2009-10-14  Hans-Peter Nilsson  <hp@axis.com>
1573         PR target/38948
1574         * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
1575         requests between special registers.
1577 2009-10-13  Eric Botcazou  <ebotcazou@adacore.com>
1579         * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
1581 2009-10-13  Richard Henderson  <rth@redhat.com>
1583         PR tree-optimization/41377
1584         * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
1585         (cleanup_empty_eh_merge_phis): New change_region parameter;
1586         pass it on to redirect_eh_edge_1.  Update callers.
1587         (cleanup_empty_eh_unsplit): Don't require an existing EH label
1588         at the destination block.
1590 2009-10-13  Basile Starynkevitch  <basile@starynkevitch.net>
1592         * passes.c (register_pass): Replaced gcc_unreachable by
1593         fatal_error on failure. Mentions plugins in comments & messages.
1595 2009-10-13  Jakub Jelinek  <jakub@redhat.com>
1597         PR target/41693
1598         * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
1599         * sched-vis.c (print_value): Use it.
1600         * cselib.c (cselib_hash_rtx): Likewise.
1601         * print-rtl.c (print_rtx): Likewise.
1602         * cfgexpand.c (expand_debug_rtx): Likewise.
1603         * var-tracking.c (vt_expand_loc_callback): Likewise.
1605 2009-10-13  Richard Guenther  <rguenther@suse.de>
1607         PR lto/41565
1608         * opts.c (handle_option): Split out code to handle setting
1609         the options flag var ...
1610         (set_option): ... here.
1611         * opts.h (set_option): Declare.
1612         * lto-opts.c (register_user_option_p): Include -fexceptions
1613         and all position independent code variants.
1614         (handle_common_option): Remove.
1615         (lto_reissue_options): Use set_option.
1617 2009-10-13  Martin Jambor  <mjambor@suse.cz>
1619         PR tree-optimization/41661
1620         * ipa-prop.c (compute_complex_pass_through): Allow only operations
1621         that are tcc_comparisons or do not change the type in any
1622         un-usleless way.
1623         * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
1624         folding tcc_comparison operations.
1626 2009-10-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1628         * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
1629         properly.
1631 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
1633         PR debug/41343
1634         PR debug/41447
1635         PR debug/41264
1636         PR debug/41338
1637         * tree.def (DEBUG_EXPR_DECL): New.
1638         * rtl.def (DEBUG_EXPR): New.
1639         * gengtype.c (adjust_field_rtx_def): Handle it.
1640         * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
1641         (insert_debug_temp_for_var_def): ... this.  Drop support for
1642         moving.  Take iterator for def stmt; insert debug stmt before it.
1643         Scan early for use count and kind in debug stmts.
1644         (propagate_defs_into_debug_stmts): Rename to...
1645         (insert_debug_temps_for_defs): ... this.  Likewise.
1646         * tree.h (DEBUG_TEMP_UID): New.
1647         * tree.c (next_debug_decl_uid): New.
1648         (make_node_stat): Count debug decls separately.
1649         (copy_node_stat): Likewise.
1650         * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
1651         * var-tracking.c (dv_is_decl_p): Recognize it.
1652         (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
1653         (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
1654         (vt_expand_loc_callback): Expand DEBUG_EXPRs.
1655         (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
1656         * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
1657         (cselib_hash_rtx): Likewise.
1658         (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
1659         * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
1660         debug bind stmts.
1661         * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
1662         (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
1663         * rtl.c (copy_rtx): Likewise.
1664         (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
1665         * print-rtl.c (print_rtx): Likewise.
1666         * sched-vis.c (print_value): Likewise.
1667         (print_insn): Handle DEBUG_EXPR_DECL.
1668         * tree-dump.c (dequeue_and_dump): Likewise.
1669         * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
1670         * gimple-iterator (gsi_replace): Check for same lhs.
1671         (gsi_remove): Insert debug temps.
1672         * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
1673         (move_computations_stmt): Drop explicit propagation into debug stmts.
1674         (rewrite_bittest): Likewise.  Use gsi_remove for propagation.
1675         * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
1676         * tree-ssa-sink.c (statement_sink_location): Likewise.
1677         * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
1678         * tree-ssanames.c (release_ssa_name): Adjust for rename.
1679         * tree-flow.h: Likewise.
1680         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
1681         debug temps without values.
1682         (eliminate_unnecessary_stmts): Don't discard just-inserted
1683         debug stmts.
1685 2009-10-12  Hans-Peter Nilsson  <hp@axis.com>
1687         PR target/26515
1688         * config/cris/cris.md (andu): Check that operand 1 is one of the
1689         general registers.  Fix typo in head comment.
1691 2009-10-12  Stefan Dösinger  <stefan@codeweavers.com>
1693         * config/i386/i386.md (vswapmov): New.
1694         * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
1695         (ix86_function_ms_hook_prologue): New.
1696         (ix86_expand_prologue): Handle ms_hook_prologue attribute.
1697         * configure.ac: Test for swap suffix support in as.
1698         * configure: Rebuild.
1700 2009-10-12  Jakub Jelinek  <jakub@redhat.com>
1702         PR target/41680
1703         * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
1704         paradoxical subregs to prevent partial register stalls if the inner
1705         mode is integer mode.
1707 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
1709         * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
1711 2009-10-12  Dodji Seketeli  <dodji@redhat.com>
1713         PR c++/41570
1714         * gcc/dwarf2out.c (template_parameter_pack_die,
1715         gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
1717 2009-10-12  Alexandre Oliva  <aoliva@redhat.com>
1719         PR debug/41616
1720         * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
1721         on updates too.
1722         (maybe_register_def): Likewise.  Take stmt iterator.
1723         (rewrite_update_stmt): Take stmt iterator and pass it on.
1724         (rewrite_update_enter_block): Pass stmt iterator.
1726 2009-10-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1728         * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
1729         (spu_builtin_decl): New function.
1731 2009-10-12  Uros Bizjak  <ubizjak@gmail.com>
1733         * config/i386/i386.md (SWIM): New mode iterator.
1734         (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
1735         using SWIM mode iterator.
1736         (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
1737         patterns using SWI48 mode iterator.
1738         (*x86_mov<mode>cc_0_m1_se):  Macroize insn from
1739         *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
1740         (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
1741         (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
1742         patterns using SWI248 mode iterator.
1743         * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
1744         gen_x86_movdicc_0_m1_rex64 for renamed function
1746 2009-10-11  Jose Ruiz  <ruiz@adacore.com>
1747             Eric Botcazou  <ebotcazou@adacore.com>
1749         PR target/33743
1750         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
1751         * config/sparc/sol2-unwind.h: New file.
1753 2009-10-11  Olivier Hainque  <hainque@adacore.com>
1754             Eric Botcazou  <ebotcazou@adacore.com>
1756         PR target/33743
1757         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
1758         * config/i386/sol2-unwind.h: New file.
1760 2009-10-11  H.J. Lu  <hongjiu.lu@intel.com>
1762         PR target/41665
1763         * config/i386/i386.md (addsi_1_zext): Get the proper second
1764         operand for lea.
1766 2009-10-11  Richard Sandiford  <rdsandiford@googlemail.com>
1768         * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
1769         all OLD_RTXes, not just REGs.  Use copy_rtx to create the
1770         replacement value.
1772 2009-10-11  Richard Guenther  <rguenther@suse.de>
1774         * gimple.c (iterative_hash_type_name): Do not handle special
1775         anonymous names.
1777 2009-10-11  Uros Bizjak  <ubizjak@gmail.com>
1779         * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
1780         (*setcc_si_1_and): Ditto.
1781         (*setcc_si_1_movzbl): Ditto.
1782         (*setcc_<mode>_2): Ditto.
1783         (*setcc_qi): Rename from *setcc_1.
1784         (*setcc_qi_slp): Rename from *setcc_2.
1786         (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
1787         (*zero_extendqisi2_movzbw_and splitter): Ditto.
1789         * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
1790         "if" condition, there is already assert with reload_completed present.
1792 2009-10-11  Gerald Pfeifer  <gerald@pfeifer.com>
1794         * plugin.c (try_init_one_plugin): Improve constness of variable err.
1796 2009-10-10  Gerald Pfeifer  <gerald@pfeifer.com>
1798         * doc/install.texi (Final install): Refer to
1799         http://gcc.gnu.org/bugs/ for bug reporting.
1801 2009-10-10  Peter Bergner  <bergner@vnet.ibm.com>
1803         * configure.ac: Add test for dci instruction.
1804         * configure: Regenerate.
1805         * config.in: Likewise.
1806         * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
1807         * doc/invoke.texi: Add cpu_type 476 and 476fp.
1808         (-mmulhw): Add 476 to description.
1809         (-mdlmzb): Likewise.
1810         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
1811         * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
1812         (processor_target_table): Add 476 and 476fp entries.
1813         (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
1814         (rs6000_issue_rate): Add CPU_PPC476.
1815         * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
1816         (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
1817         (processor_type): Add PROCESSOR_PPC476.
1818         (EXTRA_SPECS): Add asm_cpu_476 string.
1819         * config/rs6000/rs6000.md (define_attr "type"): Add isel attribute.
1820         (define_attr "cpu"): Add ppc476.
1821         Include 476.md.
1822         Update comments for 476.
1823         (isel_signed, isel_unsigned): Change to use "isel" type attribute.
1824         * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
1825         Update copyright year.
1826         * config/rs6000/476.md: New file.
1827         * config/rs6000/40x.md: Add description for "isel" attribute.
1828         Update copyright year.
1829         * config/rs6000/440.md: Likewise.
1830         * config/rs6000/603.md: Likewise.
1831         * config/rs6000/6xx.md: Likewise.
1832         * config/rs6000/7450.md: Likewise.
1833         * config/rs6000/7xx.md: Likewise.
1834         * config/rs6000/8540.md: Likewise.
1835         * config/rs6000/cell.md: Likewise.
1836         * config/rs6000/e300c2c3.md: Likewise.
1837         * config/rs6000/e500mc.md: Likewise.
1838         * config/rs6000/mpc.md: Likewise.
1839         * config/rs6000/power4.md: Likewise.
1840         * config/rs6000/power5.md: Likewise.
1841         * config/rs6000/power6.md: Likewise.
1842         * config/rs6000/power7.md: Likewise.
1843         * config/rs6000/rios1.md: Likewise.
1844         * config/rs6000/rios2.md: Likewise.
1845         * config/rs6000/rs64.md: Likewise.
1847 2009-10-10  Richard Guenther  <rguenther@suse.de>
1849         PR tree-optimization/41654
1850         * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
1851         a cond expr before calling gimple_cond_set_condition_from_tree.
1852         (ifcombine_iforif): Likewise.
1854 2009-10-09  Ian Lance Taylor  <iant@google.com>
1856         * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
1857         * configure: Rebuild.
1859 2009-10-09  Neil Vachharajani <nvachhar@google.com>
1861         * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
1862         deprecated.
1864 2009-10-09  Richard Guenther  <rguenther@suse.de>
1866         PR lto/41638
1867         * target-def.h (TARGET_BUILTIN_DECL): Define.
1868         (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
1869         * target.h (struct gcc_target): Add builtin_decl target hook.
1870         * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
1871         * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
1872         target builtins.
1873         * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
1874         not gcc_unreachable.
1875         (lto_output_builtin_tree): Sorry if the target does not support
1876         streaming target builtins.
1877         * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
1878         (rs6000_builtin_decl): New function.
1879         * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
1880         (ix86_builtin_decl): New function.
1882 2009-10-09  Jakub Jelinek  <jakub@redhat.com>
1884         PR preprocessor/41445
1885         * c-ppoutput.c (do_line_change): New function.
1886         (cb_line_change): Use it.
1887         (scan_translation_unit): Call do_line_change if
1888         avoid_paste or PREV_WHITE and token location is on a different line
1889         than print.src_line.
1891         PR debug/40521
1892         * dwarf2out.c (dwarf2out_init): Test whether
1893         HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
1894         it is defined.
1896         PR rtl-optimization/41646
1897         * calls.c (expand_call): For BLKmode types returned in registers
1898         avoid likely spilled hard regs in copy_blkmode_from_reg generated
1899         insns.
1901 2009-10-09  Richard Guenther  <rguenther@suse.de>
1903         PR tree-optimization/41634
1904         * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
1905         we remove the correct elements.
1906         (optimize_stmt): Make sure to update stmt operands before
1907         optimizing redundancies.
1909 2009-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1911         * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
1913 2009-10-09  Richard Guenther  <rguenther@suse.de>
1915         PR driver/41637
1916         * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
1917         globals.
1918         (lto_wrapper_exit): New function.
1919         (fatal): Use it.
1920         (fatal_perror): Likewise.
1921         (fork_execute): Use global args_name, do not free it.
1922         (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
1923         * lto-streamer.h: Remove duplicate prototypes.
1925 2009-10-09  Richard Guenther  <rguenther@suse.de>
1927         * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
1928         before calling stmt_can_throw_external.
1930 2009-10-09  Eric Botcazou  <ebotcazou@adacore.com>
1932         PR tree-optimization/40071
1933         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
1934         pointer if the original data reference doesn't conflict with the
1935         created vector data reference.  Fix long line.
1937 2009-10-09  Uros Bizjak  <ubizjak@gmail.com>
1939         * config/i386/i386.md (any_div): New code iterator.
1940         (u): Handle div and udiv.
1941         (sgnprefix): Ditto.
1942         (<u>divqi3): Macroize insn from {,u}divqi3  using any_div
1943         code iterator.
1944         (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
1945         lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
1946         (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
1947         lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
1949 2009-10-08  Joseph Myers  <joseph@codesourcery.com>
1951         * gcc.c (main): Remove trailing "." from diagnostics.
1953 2009-10-08  Cary Coutant  <ccoutant@google.com>
1955         Add support for debugging with ICF (Identical Code Folding).
1956         * calls.c (debug.h): New #include.
1957         (emit_call_1): Call virtual_call_token debug hook.
1958         * common.opt (-fenable-icf-debug): New option.
1959         * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
1960         locations in the source).
1961         (poc_label_num): New variable.
1962         (dcall_entry, vcall_entry): New typedefs.
1963         (dcall_table, vcall_table): New variables.
1964         (struct vcall_insn): New type.
1965         (vcall_insn_table): New variable.
1966         (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
1967         (size_of_dcall_table): New function.
1968         (output_dcall_table): New function.
1969         (size_of_vcall_table): New function.
1970         (output_vcall_table): New function.
1971         (dwarf2out_direct_call): New function.
1972         (vcall_insn_table_hash): New function.
1973         (vcall_insn_table_eq): New function.
1974         (dwarf2out_virtual_call_token): New function.
1975         (dwarf2out_virtual_call): New function.
1976         (dwarf2out_init): Allocate new tables and sections.
1977         (prune_unused_types): Mark DIEs referenced from direct call table.
1978         (dwarf2out_finish): Output direct and virtual call tables.
1979         * final.c (final_scan_insn): Call direct_call and virtual_call
1980         debug hooks.
1981         * debug.h (struct gcc_debug_hooks): Add direct_call,
1982         virtual_call_token, virtual_call hooks.
1983         (debug_nothing_uid): New function.
1984         * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
1985         (debug_nothing_uid): New function.
1986         * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
1987         (xcoff_debug_hooks): Likewise.
1988         * sdbout.c (sdb_debug_hooks): Likewise.
1989         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1990         * doc/invoke.texi (-fenable-icf-debug): New option.
1992 2009-10-08  Alexandre Oliva  <aoliva@redhat.com>
1994         PR debug/41353
1995         * regmove.c (regmove_backward_pass): Replace src with dst in the
1996         debug insn, and check for dst before rather than after.
1998 2009-10-08  Janis Johnson <janis187@us.ibm.com>
2000         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
2001         (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
2003 2009-10-08  Jan Hubicka  <jh@suse.cz>
2005         PR middle-end/41626
2006         * cgraphbuild.c (record_reference): When parameter DATA is NULL,
2007         do not mark cgraph nodes as needed.
2008         (record_references_in_initializer): Add new only_vars parameter.
2009         * cgraph.h (record_references_in_initializer): New parameter.
2010         * varasm.c (assemble_variable): Update call.
2011         * varpool.c (varpool_analyze_pending_decls): Always look for
2012         referenced vars.
2014 2009-10-08  Anatoly Sokolov  <aesok@post.ru>
2016         * config/avr/avr.c (last_insn_address) Remove variable.
2017         (expand_prologue): Don't initialise last_insn_address variable.
2018         (final_prescan_insn): Don't output insn size.
2019         * config/avr/avr.opt (msize): Remove switch.
2020         * doc/invoke.texi (AVR Options): Remove documentation of -msize
2021         switch.
2023 2009-10-08  Adam Nemet  <anemet@caviumnetworks.com>
2025         * combine.c (label_tick_ebb_start): Fix comment.
2026         (combine_instructions): Set label_tick and label_tick_ebb_start before
2027         calling setup_incoming_promotions.  Start them from 1.  Increment
2028         label_tick instead of deriving it from the BB index.  Rather than
2029         comparing ticks use the block from the previous iteration to decide
2030         whether to start a new EBB.  Remove empty lines before function.
2032 2009-10-08  Michael Matz  <matz@suse.de>
2034         PR middle-end/41573
2035         * builtins.c (fold_builtin_isascii): Use fold_build2.
2036         (fold_builtin_isdigit): Ditto.
2037         * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
2038         * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
2039         remove_useless_stmts_cond, remove_useless_stmts_tf,
2040         remove_useless_stmts_tc, remove_useless_stmts_bind,
2041         remove_useless_stmts_goto, remove_useless_stmts_label,
2042         remove_useless_stmts_1, remove_useless_stmts,
2043         pass_remove_useless_stmts): Remove.
2044         * tree-pass.h (pass_remove_useless_stmts): Don't declare.
2045         * passes.c (init_optimization_passes): Don't add
2046         pass_remove_useless_stmts.
2047         * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
2048         * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
2049         static constants.
2050         * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
2051         for static constants.
2052         * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
2053         * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
2055 2009-10-08  Richard Guenther  <rguenther@suse.de>
2057         * gimple.c (free_gimple_type_tables): New function.
2058         * gimple.h (free_gimple_type_tables): Declare.
2060 2009-10-07  Mark Heffernan  <meheff@google.com>
2062         * ipa-prop.c (ipa_print_node_params) Only print
2063         names of named arguments.
2065 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
2067         * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
2068         being statically linked.
2070 2009-10-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2072         * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
2074 2009-10-08  Jan Hubicka  <jh@suse.cz>
2076         PR bootstrap/41620
2077         * ipa.c (cgraph_externally_visible_p,
2078         function_and_variable_visibility,
2079         whole_program_function_and_variable_visibility): Skip non-finalized
2080         nodes.
2082 2009-10-08  Nick Clifton  <nickc@redhat.com>
2084         * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
2085         CONST_DOUBLEs.
2087 2009-10-08  Andreas Tobler  <a.tobler@schweiz.org>
2089         PR bootstrap/37739
2090         * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
2092 2009-10-07  Joseph Myers  <joseph@codesourcery.com>
2094         PR c/41182
2095         * c-common.c (c_fully_fold_internal): Strip nops from the result
2096         of recursive calls to c_fully_fold_internal.
2097         (c_wrap_maybe_const): New.
2098         (c_save_expr): Use c_wrap_maybe_const.
2099         * c-common.h (c_wrap_maybe_const): Declare.
2100         * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
2101         build_binary_op): Use c_wrap_maybe_const.
2103 2009-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2105         * real.c: Fix comment to reflect actual exponent size.
2107 2009-10-08  Ben Elliston  <bje@au.ibm.com>
2109         * config/rs6000/a2.md: Add FSF comment header.
2111 2009-10-07  Uros Bizjak  <ubizjak@gmail.com>
2113         * config/i386/i386.md (any_extend): New code iterator.
2114         (u, s): New code attributes.
2115         (sgnprefix): Ditto.
2116         (DWIH): Rewrite as code iterator for SI and DI modes.
2117         (DWI): Rewrite as mode attribute.
2118         (dwi): New mode attribute.
2119         (di): Depend on SI mode and DI mode.
2120         (doubleint_general_operand): Remove mode attribute.
2122         (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
2123         DWIH mode iterator.
2125         (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
2126         (*sub<mode>3_doubleword): Ditto.
2128         (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
2129         using SWIM248 mode iterator.
2130         (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
2131         using SWI48 mode iterator.
2132         (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
2133         patterns using DWIH mode iterator and any_extend code iterator.
2134         (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
2135         using any_extend code iterator.
2136         (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
2137         patterns using DWIH mode iterator and any_extend code iterator.
2138         (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
2139         using any_extend code iterator.
2140         (<s>mul<mode>3_highpart): Macroize expander from
2141         {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
2142         and any_extend code iterator.
2143         (*<s>muldi3_highpart_1): Macroize insn from
2144         *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
2145         (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
2146         patterns using any_extend code iterator.
2147         (*<s>mulsi3_highpart_zext): Macroize insn from
2148         *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
2150 2009-10-07  Jakub Jelinek  <jakub@redhat.com>
2152         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
2153         DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
2154         refering to a DIE with DW_AT_const_value.
2156 2009-10-07  Vladimir Makarov  <vmakarov@redhat.com>
2158         PR middle-end/22072
2159         * ira-lives.c (check_and_make_def_conflict): Process all operands.
2161 2009-10-06  Jan Hubicka  <jh@suse.cz>
2163         * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
2164         correctly.
2166 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
2168         * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
2169         *lea_2_rex64): Move before *add<mode>_1 pattern.
2171 2009-10-07  Jan Hubicka  <jh@suse.cz>
2173         * collect2.c (main): Add -fno-whole-program.
2174         * gcc.c (set_collect_gcc_options): Do not remove whole program here.
2176 2009-10-07  Jan Hubicka  <jh@suse.cz>
2178         * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
2179         has no address taken.
2180         * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
2181         never needed.
2182         (cgraph_clone_node): Clear externally_visible flag for clones.
2183         * cgraph.h (cgraph_only_called_directly_p,
2184         cgraph_can_remove_if_no_direct_calls_p): New predicates.
2185         * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
2186         * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
2187         (ipcp_initialize_node_lattices, ipcp_estimate_growth,
2188         ipcp_insert_stage): Likwise.
2189         * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
2190         externally_visible flag.
2191         (verify_cgraph_node): Verify that inline clones look right.
2192         (process_function_and_variable_attributes): Do not set
2193         externally_visible flags.
2194         (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
2195         been already run.
2196         * lto-cgraph.c (lto_output_node): Assert that inline clones are not
2197         boundaries.
2198         * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
2199         clear externally_visible when turning into inline clones
2200         (cgraph_mark_inline_edge): Use new predicates.
2201         (cgraph_estimate_growth): Likewise.
2202         (cgraph_decide_inlining): Likewise.
2203         * ipa.c (cgraph_postorder): Likewise.
2204         (cgraph_remove_unreachable_nodes): Likewise; sanity check
2205         that inline clones are not needed.
2206         (cgraph_externally_visible_p): New predicate.
2207         (function_and_variable_visibility): Add whole_program parameter;
2208         always set externally_visible flag; handle COMDAT function
2209         privatization.
2210         (local_function_and_variable_visibility): New function.
2211         (gate_whole_program_function_and_variable_visibility): New function.
2212         (whole_program_function_and_variable_visibility): New function.
2213         (pass_ipa_whole_program_visibility): New function.
2214         * passes.c  (init_optimization_passes): Add whole program visibility
2215         pass.
2216         (do_per_function_toporder, function_called_by_processed_nodes_p): Do
2217         not care about needed/reachable flags.
2218         * varpool.c: Include flags.h
2219         (decide_is_variable_needed): When doing LTO assume whole-program mode.
2220         (varpool_finalize_decl): When we are in LTO read-back, all variables
2221         are analyzed.
2222         (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
2224 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2226         * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
2227         add MASK_HARD_DFP.
2229 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2231         * config.gcc: Don't include the makefile fragments intended for
2232         libgcc.
2233         * config/s390/fixdfdi.h: File removed.
2234         * config/s390/libgcc-glibc.ver: File removed.
2235         * config/s390/s390.h: Remove the fixdfdi.h hack.
2236         * config/s390/t-crtstuff: File moved to libgcc dir.
2237         * config/s390/t-linux: Likewise.
2238         * config/s390/t-tpf: libgcc specific parts removed.
2239         * config/s390/t-linux64: Likewise.
2241 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
2243         * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
2244         (lto-compress.o): Likewise.
2246 2009-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
2248         PR target/41512
2249         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
2250         dllexport to class members here.
2251         (i386_pe_determine_dllimport_p): Only check static class data for
2252         definition.
2253         (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
2254         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
2255         functions for vague linkage.
2256         (i386_pe_type_dllexport_p): Fix formatting.
2257         (maybe_add_dllexport) New function.
2258         (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
2259         to class members.
2261 2009-10-07  Ben Elliston  <bje@au.ibm.com>
2263         * config/rs6000/a2.md: Remove duplicated lines.
2265 2009-10-07  Ben Elliston  <bje@au.ibm.com>
2267         * config.gcc (powerpc*-*-*): Handle a2.
2268         * config/rs6000/rs6000.md (cpu): Add ppca2.  Include "a2.md".
2269         * config/rs6000/a2.md: New file.
2270         * config/rs6000/rs6000.opt (mno-update): New.
2271         (mupdate): Return to using a mask, not a var.
2272         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
2273         (enum processor_type): Add PROCESSOR_PPCA2.
2274         * config/rs6000/rs6000.c (ppca2_cost): New costs.
2275         (rs6000_override_options): Add "a2" to processor_target_table.
2276         Update rs6000_always_hint logic.  Correctly set rs6000_cost for a2.
2277         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
2279 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
2281         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
2282         Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
2283         reference to nonexistent gen_truncxfxf2 function.
2285 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
2287         * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
2288         (DWIH, g, di, doubleint_general_operand): New mode attributes.
2289         (general_operand): Handle TI mode.
2290         (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
2291         using SDWIM mode iterator.
2292         (*add<mode>3_doubleword): New insn_and_split pattern.  Macroize
2293         pattern from *add{di,ti}3_1 patterns and corresponding splitters
2294         using DWI mode iterator.
2295         (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
2296         patterns using SWI mode iterator.
2297         (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
2298         using SWI48 mode iterator.
2299         (*add<mode>_1): Ditto from add{si,di}_1 patterns.
2300         (*add<mode>_2): Ditto from add{si,di}_2 patterns.
2301         (*add<mode>_3): Ditto from add{si,di}_3 patterns.
2302         (*add<mode>_5): Ditto from add{si,di}_5 patterns.
2303         (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
2304         using SDWIM mode iterator.
2305         (*sub<mode>3_doubleword): New insn_and_split pattern.  Macroize
2306         pattern from *sub{di,ti}3_1 patterns and corresponding splitters
2307         using DWI mode iterator.
2308         (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
2309         patterns using SWI mode iterator.
2310         (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
2311         (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
2312         (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
2313         (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
2314         patterns using plusminus code iterator.
2315         (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
2316         sub<mode>3 patterns using plusminus code iterator.
2317         * config/i386/i386.c (override_options): Update the call to
2318         gen_subdi_carry_rex64 for renamed function.
2319         (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
2320         and gen_adddi3_carry_rex64 for renamed functions.  Use indirect
2321         calls to instruction expanders.
2323 2009-10-06  Martin Jambor  <mjambor@suse.cz>
2325         PR bootstrap/41395
2326         * opts.c (decode_options): Run IPA-SRA at -O2.
2328 2009-10-06  Richard Guenther  <rguenther@suse.de>
2330         * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
2332 2009-10-06  Tobias Burnus  <burnus@net-b.de>
2334         PR lto/41591
2335         * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
2336         -flto and -fwhole-program flags can be combined.
2338 2009-10-06  Ryan Mansfield  <rmansfield@qnx.com>
2340         PR driver/41217
2341         * gcc.c (process_command): Check that -o argument was specified.
2343 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
2345         * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
2347 2009-10-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2349         * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
2350         * doc/invoke.texi (Warning Options): Annotate allowed languages
2351         for -Wunsuffixed-float-constants.
2353 2009-10-05  Jakub Jelinek  <jakub@redhat.com>
2355         * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
2356         DW_TAG_{const,volatile}_type if its DW_AT_type already has the
2357         same name and isn't the main variant.
2359         PR debug/41558
2360         * dwarf2out.c (loc_by_reference): Removed.
2361         (dw_loc_list_1): New function.
2362         (dw_loc_list): Remove toplev argument, add want_address argument.
2363         Don't look at decl_by_reference_p at all.  Use dw_loc_list_1.
2364         (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
2365         want_address == 2 to dw_loc_list.  For successful dw_loc_list
2366         set have_address to 1 only if want_address is not 0.
2368 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
2370         * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
2371         * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
2372         a code block followed by two pointers.
2373         (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
2374         * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
2375         (MIPS_MOVE): Likewise.
2376         (MIPS_LUI): Likewise.
2377         (MIPS_JR): Likewise.
2378         (MIPS_BAL): Likewise.
2379         (MIPS_NOP): Likewise.
2380         (mips_asm_trampoline_template): Delete.
2381         (mips_trampoline_code_size): New function.
2382         (mips_trampoline_init): Add shorter sequences for all cases
2383         except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
2384         Calculate the opcodes directly, rather than copying from a template.
2385         Only flush the code part of the trampoline.
2386         (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
2388 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
2390         * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
2391         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
2392         (INCOMING_RETURN_ADDR_RTX): Likewise.
2393         (FUNCTION_PROFILER): Likewise.  Replace GP_REG_FIRST + 1
2394         with AT_REGNUM.
2395         * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
2396         with RETURN_ADDR_REGNUM.
2397         (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
2398         * config/mips/mips.c (mips16_build_call_stub): Replace
2399         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
2400         with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
2401         (mips_print_operand_punctuation): Likewise.
2402         (mips_frame_set): Likewise.
2403         (mips16e_output_save_restore): Likewise.
2404         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
2405         (mips_save_reg_p): Likewise.
2406         (mips_return_addr): Likewise.
2407         (mips_set_return_address): Likewise.
2408         (mips_direct_save_slot_move_p): Likewise.
2409         (mips_output_function_prologue): Likewise.
2410         (mips_restore_reg): Likewise.
2411         (mips_expand_epilogue): Likewise.
2412         (mips_epilogue_uses): Likewise.
2413         * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
2414         (*mov<mode>_ra): Use it instead of a hard-coded 31.
2415         (clear_hazard_<mode>): Likewise.
2416         (call_internal): Likewise.
2417         (call_internal_direct): Likewise.
2418         (call_direct_split): Likewise.
2419         (call_value_internal): Likewise.
2420         (call_value_split): Likewise.
2421         (call_value_internal_direct): Likewise.
2422         (call_value_direct_split): Likewise.
2423         (call_value_multiple_internal): Likewise.
2424         (call_value_multiple_split): Likewise.
2426 2009-10-05  Eric Botcazou  <ebotcazou@adacore.com>
2427             Jakub Jelinek  <jakub@redhat.com>
2429         PR rtl-optimization/41511
2430         * combine.c (record_value_for_reg): Pass explicit values as argument
2431         to get_last_value_validate.
2432         (get_last_value_validate): Document INSN parameter.
2433         For non-readonly MEMs, assume they might have been modified if INSN
2434         was in another basic block.
2435         (get_last_value): Minor reformatting.
2437 2009-10-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2439         PR tree-opt/40992
2440         * final.c (asm_str_count): Split out from asm_insn_count.
2441         * rtl.h (asm_str_count): New prototype.
2442         * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
2443         asm_str_count.
2445 2009-10-05  Sriraman Tallam  <tmsriram@google.com>
2447         * doc/plugins.texi: Change plugin_pass to register_pass_info.
2449 2009-10-05  Basile Starynkevitch  <basile@starynkevitch.net>
2450             Rafael Espindola  <espindola@google.com>
2452         * gengtype.c (write_types): Moved call to write_func_for_structure
2453         into seperate loops.
2455 2009-10-05  Richard Guenther  <rguenther@suse.de>
2457         PR lto/41281
2458         * lto-cgraph.c (output_cgraph): Output toplevel asms.
2459         (input_cgraph_1): Input toplevel asms.
2461 2009-10-05  Richard Guenther  <rguenther@suse.de>
2463         PR lto/40902
2464         * lto-symtab.c (lto_compatible_attributes_p): Remove.
2465         (external_aggregate_decl_p): Likewise.
2466         (lto_symtab_compatible): Re-structure.  Remove dead code.
2467         For variables ignore toplevel qualifiers when comparing types.
2468         Issue warnings, not errors for mismatched user-alignment.
2470 2009-10-05  Richard Guenther  <rguenther@suse.de>
2472         PR lto/41552
2473         PR lto/41487
2474         * lto-symtab.c (struct lto_symtab_base_def): Remove.
2475         (struct lto_symtab_identifier_def): Likewise.
2476         (struct lto_symtab_decl_def): Likewise.
2477         (struct lto_symtab_entry_def): New.
2478         (lto_symtab_identifier_t): Rename to ...
2479         (lto_symtab_entry_t): ... this.
2480         (lto_symtab_decls): Remove.
2481         (lto_symtab_base_hash): Rename to ...
2482         (lto_symtab_entry_hash): ... this.
2483         (lto_symtab_base_eq): Rename to ...
2484         (lto_symtab_entry_eq): ... this.
2485         (lto_symtab_base_marked_p): Rename to ...
2486         (lto_symtab_entry_marked_p): ... this.
2487         (lto_symtab_identifier_marked_p): Remove.
2488         (lto_symtab_decl_marked_p): Likewise.
2489         (lto_symtab_maybe_init_hash_tables): Rename to ...
2490         (lto_symtab_maybe_init_hash_table): ... this.
2491         (lto_symtab_set_resolution_and_file_data): Remove.
2492         (lto_symtab_register_decl): New function.
2493         (lto_symtab_get_identifier): Remove.
2494         (lto_symtab_get): New function.
2495         (lto_symtab_get_resolution): Adjust.
2496         (lto_symtab_get_identifier_decl): Remove.
2497         (lto_symtab_set_identifier_decl): Likewise.
2498         (lto_symtab_merge_decl): Rename to ...
2499         (lto_symtab_merge): ... this.  Rewrite.
2500         (lto_symtab_merge_var): Remove.
2501         (lto_symtab_merge_fn): Likewise.
2502         (lto_symtab_prevailing_decl): Adjust.
2503         (lto_cgraph_replace_node): New function.
2504         (lto_symtab_merge_decls_2): Likewise.
2505         (lto_symtab_merge_decls_1): Likewise.
2506         (lto_symtab_fixup_var_decls): Likewise.
2507         (lto_symtab_resolve_symbols): Likewise.
2508         (lto_symtab_merge_decls): Likewise.
2509         (lto_symtab_prevailing_decl): Adjust.
2510         (lto_symtab_get_symtab_def): Remove.
2511         (lto_symtab_get_file_data): Likewise.
2512         (lto_symtab_clear_resolution): Adjust.
2513         (lto_symtab_clear_resolution): Likewise.
2514         * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
2515         (input_cgraph_1): Likewise.
2516         * lto-streamer-in.c (get_resolution): Do not provide fake
2517         symbol resolutions here.
2518         (deferred_global_decls): Remove.
2519         (lto_register_deferred_decls_in_symtab): Likewise.
2520         (lto_register_var_decl_in_symtab): Change signature, register
2521         variable via lto_symtab_register_decl.
2522         (lto_register_function_decl_in_symtab): Likewise.
2523         (lto_read_tree): Adjust.
2524         * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
2525         (lto_symtab_merge_var): Likewise.
2526         (lto_symtab_merge_fn): Likewise.
2527         (lto_symtab_register_decl): Declare.
2528         (lto_symtab_merge_decls): Likewise.
2530 2009-10-05  Richard Guenther  <rguenther@suse.de>
2532         PR tree-optimization/23821
2533         * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
2534         * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
2535         simple IV increments.
2537 2009-10-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2539         * config/arm/arm.c (arm_override_options): Really initialize
2540         flag_dwarf2_cfi_asm to 0.
2542 2009-10-05  Doug Kwan  <dougkwan@google.com>
2544         PR rtl-optimization/41574
2545         * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
2546         floating point and we are not doing unsafe math optimizations.
2548 2009-10-03  Simon Baldwin  <simonb@google.com>
2549             Cary Coutant  <ccoutant@google.com>
2550             Rafael Espindola  <espindola@google.com>
2551             Richard Guenther  <rguenther@suse.de>
2552             Jan Hubicka  <jh@suse.cz>
2553             Doug Kwan <dougkwan@google.com>
2554             H.J. Lu  <hongjiu.lu@intel.com>
2555             Bill Maddox  <maddox@google.com>
2556             Ryan Mansfield  <rmansfield@qnx.com>
2557             Diego Novillo  <dnovillo@google.com>
2558             Ollie Wild  <aaw@google.com>
2559             Kenneth Zadeck <zadeck@naturalbridge.com>
2561         * lto-cgraph.c: New file.
2562         * lto-compress.c: New file.
2563         * lto-compress.h: New file.
2564         * lto-opts.c: New file.
2565         * lto-section-in.c: New file.
2566         * lto-section-out.c: New file.
2567         * lto-streamer-in.c: New file.
2568         * lto-streamer-out.c: New file.
2569         * lto-streamer.c: New file.
2570         * lto-streamer.h: New file.
2571         * lto-symtab.c: New file.
2572         * lto-wpa-fixup.c: New file.
2573         * lto-wrapper.c: New file.
2575 2009-10-03  Simon Baldwin  <baldwin@google.com>
2576             Ben Elliston  <bje@au.ibm.com>
2577             Rafael Espindola  <espindola@google.com>
2578             Nathan Froyd  <froydnj@codesourcery.com>
2579             Jan Hubicka  <jh@suse.cz>
2580             Doug Kwan  <dougkwan@google.com>
2581             Diego Novillo  <dnovillo@google.com>
2582             Kenneth Zadeck  <zadeck@naturalbridge.com>
2584         * Makefile.in (enable_lto): New.
2585         (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
2586         (LINKER_PLUGIN_API_H): Define.
2587         (LTO_SYMTAB_H): Define.
2588         (LTO_STREAMER_H): Define.
2589         (TREE_VECTORIZER_H): Define.
2590         (INCLUDES): Add LIBELFINC.
2591         (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
2592         lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
2593         lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
2594         (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
2595         (native): Add lto-wrapper$(exeext)
2596         (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
2597         lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
2598         lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
2599         (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
2600         (varasm.o): Add dependency on tree-iterator.h.
2601         (cgraph.o): Add dependency on cif-code.def.
2602         (ipa-reference.o): Add dependency on LTO_STREAMER_H.
2603         (ipa-pure-const.o): Likewise.
2604         (GTFILES): Add lto-symtab.c.
2605         (install-lto-wrapper): New.
2606         * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
2607         and enable_lto.  If LIBELFLIBS is set, define HAVE_libelf.
2608         * config.in: Regenerate.
2610 2009-10-03  Rafael Espindola  <espindola@google.com>
2611             Diego Novillo  <dnovillo@google.com>
2613         * cgraphunit.c (ipa_passes): Prevent lto1 from calling
2614         ipa_write_summaries.
2615         Call execute_ipa_summary_passes for all_regular_ipa_passes and
2616         all_lto_gen_passes.
2617         (cgraph_optimize): Make extern.
2619 2009-10-03  Nathan Froyd  <froydnj@codesourcery.com>
2620             Kenneth Zadeck <zadeck@naturalbridge.com>
2622         * toplev.c (in_lto_p): Declare.
2623         * collect2.c (scan_prog_file): Read all the output when reading
2624         information for LTO.
2625         (enum lto_mode_d): Declare.
2627 2009-10-03  Richard Guenther  <rguenther@suse.de>
2628             Diego Novillo  <dnovillo@google.com>
2630         * gimple.c: Include target.h and alias.h.
2631         (gimple_types): Declare.
2632         (type_hash_cache): Declare.
2633         (gimple_alloc_stat): Make extern.
2634         (gimple_build_eh_must_not_throw): Call
2635         gimple_eh_must_not_throw_set_fndecl.
2636         (struct type_pair_d): Declare.
2637         (type_pair_t): Declare.
2638         (type_pair_hash): New.
2639         (type_pair_eq): New.
2640         (lookup_type_pair): New.
2641         (gimple_force_type_merge): New.
2642         (compare_type_names_p): New.
2643         (compare_field_offset): New.
2644         (gimple_types_compatible_p): New.
2645         (struct sccs): Declare.
2646         (next_dfs_num): Declare.
2647         (iterative_hash_gimple_type): New.
2648         (visit): New.
2649         (iterative_hash_type_name): New.
2650         (iterative_hash_gimple_type): New.
2651         (gimple_type_hash): New.
2652         (gimple_type_eq): New.
2653         (gimple_register_type): New.
2654         (print_gimple_types_stats): New.
2655         (gimple_signed_or_unsigned_type): New.
2656         (gimple_unsigned_type): New.
2657         (gimple_signed_type): New.
2658         (gimple_get_alias_set): New.
2659         (gimple_decl_printable_name): Do not use DMGL_TYPES.
2660         * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
2661         (gimple_force_type_merge): Declare.
2662         (gimple_types_compatible_p): Declare.
2663         (gimple_register_type): Declare.
2664         (print_gimple_types_stats): Declare.
2665         (gimple_unsigned_type): Declare.
2666         (gimple_signed_type): Declare.
2667         (gimple_get_alias_set): Declare.
2668         (gimple_eh_must_not_throw_set_fndecl): New.
2670 2009-10-03  Jan Hubicka  <jh@suse.cz>
2671             Kenneth Zadeck <zadeck@naturalbridge.com>
2673         * ipa-pure-const.c: Include lto-streamer.h.
2674         (register_hooks): Factor out of ...
2675         (generate_summary): ... here.
2676         (pure_const_write_summary): New.
2677         (pure_const_read_summary): New.
2678         (pass_ipa_pure_const): Add pure_const_write_summary and
2679         pure_const_read_summary.
2680         * ipa-reference.c: Include lto-streamer.h.
2681         (add_new_function): New.
2682         (remove_node_data): New.
2683         (duplicate_node_data): New.
2684         (ipa_init): Guard against multiple calls.
2685         Move hook setup from analyze_function.
2686         (write_node_summary_p): New.
2687         (ipa_reference_write_summary): New.
2688         (ipa_reference_read_summary): New.
2689         (pass_ipa_reference): Add ipa_reference_write_summary and
2690         ipa_reference_read_summary.
2691         * cgraph.h (cgraph_local_info): Add field lto_file_data.
2692         (struct cgraph_edge): Add fields lto_stmt_uid and
2693         call_stmt_cannot_inline_p.
2694         (cgraph_optimize): Declare.
2695         (cgraph_decide_is_function_needed): Declare.
2696         (reset_inline_failed): Declare.
2697         (enum LTO_cgraph_tags): Declare.
2698         (LTO_cgraph_tag_names): Declare.
2699         (LCC_NOT_FOUND): Define.
2701 2009-10-03  Doug Kwan  <dougkwan@google.com>
2702             Rafael Espindola  <espindola@google.com>
2703             Jan Hubicka  <jh@suse.cz>
2704             Diego Novillo  <dnovillo@google.com>
2705             Kenneth Zadeck  <zadeck@naturalbridge.com>
2707         * passes.c (all_regular_ipa_passes): New.
2708         (all_ipa_passes): Rename to all_small_ipa_passes.
2709         (init_optimization_passes): Init all_regular_ipa_passes.
2710         * tree-pass.h (all_regular_ipa_passes): New.
2711         (all_ipa_passes): Rename to all_small_ipa_passes.
2712         * passes.c (all_lto_gen_passes): New.
2713         (init_optimization_passes): Initialize all_lto_gen_passes.
2714         (execute_ipa_summary_passes): Make non-static.
2715         (ipa_write_summaries_1): New.
2716         (ipa_write_summaries_2): New.
2717         (ipa_write_summaries): New.
2718         (ipa_write_summaries_of_cgraph_node_set): New.
2719         (ipa_read_summaries_1): New.
2720         (ipa_read_summaries): New.
2721         (execute_ipa_pass_list): Call cgraph_process_new_functions.
2722         (execute_regular_ipa_pass_list): Remove.
2723         (init_optimization_passes): Schedule
2724         pass_rebuild_cgraph_edges and pass_early_inline outside
2725         of pass_all_early_optimizations.  Document reason.
2726         (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
2727         pass_ipa_lto_finish_out): New pass.
2728         (pass_ipa_summary_passes): Start and stop timers if the pass has them.
2729         (execute_all_ipa_transforms): New.
2730         (execute_one_pass): Don't call execute_one_ipa_transform_pass.
2731         (dump_properties, debug_properties): New.
2732         * tree-optimize.c (gate_all_early_local_passes): Return
2733         false if we are in lto1.
2734         (tree_rest_of_compilation): Call execute_all_ipa_transforms.
2735         * tree-pass.h (execute_all_ipa_transforms): Declare.
2736         (pass_ipa_function_and_variable_visibility): Declare.
2737         (pass_ipa_early_inline): Declare.
2738         (pass_ipa_lto_gimple_out): Declare.
2739         (pass_ipa_lto_wpa_fixup): Declare.
2740         (pass_ipa_lto_finish_out): Declare.
2741         (all_small_ipa_passes, all_regular_ipa_passes,
2742         all_lto_gen_passes): Declare.
2743         (execute_ipa_summary_passes): Declare.
2744         (execute_all_ipa_transforms): Declare.
2745         (ipa_write_summaries): Declare
2746         (ipa_write_summaries_of_cgraph_node_set): Declare.
2747         (ipa_read_summaries): Declare.
2749 2009-10-03  Doug Kwan  <dougkwan@google.com>
2750             Ollie Wild  <aaw@google.com>
2752         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
2754         * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
2755         (lto_mode): New variable.
2756         (maybe_run_lto_and_relink): Handle the -fwpa option.
2757         (main): Handle the -fwpa option.
2758         (maybe_unlink_list): New function.
2759         * gcc.c (link_lto_options): Replace -flto with -fwpa.
2760         * common.opt (flto): New flag.
2761         * toplev.c (flag_generate_lto): Declare.
2763 2009-10-03  Simon Baldwin  <simonb@google.com>
2765         * common.opt (flto-compression-level): New flag.
2767         * opts.c: Include lto-opts.h.
2768         (handle_option): Call lto_register_user_option for each
2769         valid option handled.
2770         (decode_options): Clear registered options before the options
2771         handling loop.
2773 2009-10-03  Cary Coutant  <ccoutant@google.com>
2775         * collect2.c (is_elf): New function.
2776         (scan_prog_file): Require LTO object to be in ELF format.
2778 2009-10-03  Rafael Espindola  <espindola@google.com>
2780         * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
2781         libgcc to the linker.
2783         * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
2785         * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
2786         (collect_execute): Add flags argument. Pass flags to pex_run. Update
2787         all callers.
2788         * collect2.h (collect_execute): Add flags argument.
2789         * tlink.c (tlink_execute): Update call to collect_execute.
2790         * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
2791         (use_linker_plugin): New.
2792         (use_linker_plugin_spec_function): New.
2793         (LINK_COMMAND_SPEC): Pass plugin options to the linker.
2794         (linker_plugin_file_spec): New.
2795         (lto_wrapper_spec): New.
2796         (lto_gcc_spec): New.
2797         (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
2798         (static_spec_functions): Add use-linker-plugin.
2799         (process_command): Handle -use-linker-plugin.
2800         (main): Use lto_wrapper_spec instead of lto_wrapper. Set
2801         linker_plugin_file_spec and lto_gcc_spec.
2802         (use_linker_plugin_spec_function): New.
2804 2009-10-03  Richard Guenther  <rguenther@suse.de>
2806         PR lto/41547
2807         PR lto/41548
2808         * tree.h (is_lang_specific): Include LANG_TYPE.
2809         * tree.c (find_decls_types_r): Manually add interesting parts
2810         of TYPE_FIELDS.  Walk BINFO_VIRTUALS.  Do not walk TYPE_METHODS.
2812         * gimple.c (type_pair_hash): Make symmetric.
2813         (type_pair_eq): Likewise.
2814         (lookup_type_pair): Increase initial hashtable size.
2815         (gimple_force_type_merge): Rely on type-pair symmetry.
2816         (visit): Remove excessive checking code.
2817         (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
2818         (gimple_register_type): Remove getenv calls, shrink initial
2819         hashtable size.
2821         PR middle-end/41502
2822         * cgraphunit.c (ipa_passes): Do not remove bodies of extern
2823         inline functions if not generating lto output.
2825         PR lto/41379
2826         * toplev.c (finalize): In WPA mode remove the asm file.
2828 2009-10-03  Doug Kwan  <dougkwan@google.com>
2830         * ipa-inline.c (cgraph_mark_inline): Check
2831         edge->call_stmt_cannot_inline_p instead of calling
2832         gimple_call_cannot_inline_p.
2833         (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
2834         (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
2835         (inline_generate_summary): Do nothing in LTRANS.
2836         * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
2837         exists before calling gimple_call_cannot_inline_p.
2838         (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
2839         (cgraph_clone_edge): Add argument STMT_UID.  Modify all callers.
2840         Update new_edge->lto_stmt_uid.
2841         * cgraphbuild.c (reset_inline_failed): New.
2843         * common.opt (fwpa): New flag.
2844         (fltrans): New option.
2845         * gcc.c (gcc_lto_option_t): New type.
2846         (current_lto_option): New variable.
2847         (lto_single_spec_function): Remove and is replaced by ..
2848         (lto_option_spec_function): New function.
2849         (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
2850         passing the -flto flag.
2851         (cc1_options): Separate non-LTO related parts into ..
2852         (cc1_non_lto_options): Non-LTO related options shared by all FEs.
2853         (lto1_options): New spec for lto FE.
2854         (link_lto_options): New spec for handling LTO flags in linker.
2855         (invoke_lto_single): Re-format to fit in 80 column.  Replace
2856         lto-single with lto-option.
2857         (static_specs): Add cc1_non_lto_options, lto1_options and
2858         link_lto_options.
2859         (static_spec_function): Replace lto-single with lto-option.
2860         (process_command): Handle -flto, -fwpa and -fltran by setting
2861         current_lto_option and not passing it to subprocess unconditionally.
2863 2009-10-03  Bill Maddox  <maddox@google.com>
2865         Add `gcc' driver support for link-time code generation (LTO).
2867         * collect2.c (enum pass): Add new literal PASS_LTOINFO.
2868         (lto_flag, lto_objects, lto_o_file): New variables.
2869         (struct lto_object, struct lto_object_list): New structures.
2870         (collect_exit, handler): Remove LTO temporary output file on exit.
2871         (add_lto_object): New function.
2872         (maybe_run_lto_and_relink): New function. Perform link time code
2873         generation and relinking for object files containing LTO information.
2874         (main): Invoke maybe_run_lto_and_relink().
2875         (dump_argv): New function.  For debugging, currently disabled.
2876         (scan_prog_file): Add LTO information pass.
2877         * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
2878         collect2.
2879         * toplev.c (compile_file): Emit assembler directive to create
2880         the `gnu_lto_v1' marker symbol when compiling with `-flto'.
2882 2009-10-03  Diego Novillo  <dnovillo@google.com>
2884         * c.opt: Add LTO to warn_abi and warn_psabi.
2886         * tree.c (fld_worklist_push): Rename from PUSH.  Convert to static
2887         inline function.  Ignore language-specific nodes.  Update all users.
2888         (find_decls_types_r): Do not traverse the subtrees of
2889         language-specific nodes.  Do not traverse DECL_INITIAL for TYPE_DECLs.
2890         * tree.h (is_lang_specific): New.
2891         * langhooks.h (struct lang_hooks_for_decls): Remove
2892         may_need_assembler_name_p.  Update all users.
2894         * c-common.c (set_builtin_user_assembler_name): Move ...
2895         * builtins.c (set_builtin_user_assembler_name): ... here.
2896         (is_builtin_name): Add comment
2897         (is_builtin_fn): New.
2898         * except.c (output_ttype): Only call
2899         lookup_type_for_runtime if TYPE is not a runtime type.
2901         * passes.c (register_pass): Call position_pass on
2902         all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
2903         * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
2904         (TV_IPA_LTO_DECL_IO): Define.
2905         (TV_IPA_LTO_CGRAPH_IO): Define.
2906         (TV_LTO): Define.
2907         (TV_WHOPR_WPA): Define.
2908         (TV_WHOPR_WPA_IO): Define.
2909         (TV_WHOPR_LTRANS): Define.
2910         (TV_WHOPR_WPA_FIXUP): Define.
2911         (TV_WHOPR_WPA_LTRANS_EXEC): Define.
2912         * tree-cfg.c (tree_node_can_be_shared): Make extern.
2913         * tree-flow.h (tree_node_can_be_shared): Declare.
2914         * tree-inline.c (tree_can_inline_p): Check that E has a
2915         statement associated with it.
2916         * tree.c (free_lang_data_in_binf): Factor out of ...
2917         (free_lang_data_in_type): ... here.
2918         Call RECORD_OR_UNION_TYPE_P.
2919         (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
2920         set.  Call lang_hooks.decls.may_need_assembler_name_p if set.
2921         (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
2922         (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE.  Set
2923         write_symbols to NO_DEBUG.  Set debug_hooks to do_nothing_debug_hooks.
2924         (gate_free_lang_data): Return true if flag_generate_lto is set.
2925         (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
2926         * c-common.h (set_builtin_user_assembler_name): Move ...
2927         * tree.h (set_builtin_user_assembler_name): ... here.
2929         * common.opt (flto-report): New flag.
2930         * opts.c (complain_wrong_lang): Do not complain if running lto1.
2931         * collect2.c (scan_prog_file): Send the error output of
2932         'nm' to HOST_BIT_BUCKET.
2934 2009-10-03  Ollie Wild  <aaw@google.com>
2936         * langhooks-def.h (lhd_begin_section): New function declaration.
2937         (lhd_write_section): New function declaration.
2938         (lhd_end_section): New function declaration.
2939         (LANG_HOOKS_BEGIN_SECTION): New macro.
2940         (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
2941         (LANG_HOOKS_END_SECTION): New macro.
2942         (LANG_HOOKS_LTO): New macro.
2943         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
2944         * langhooks.c (output.h): Add include.
2945         (saved_section): New static variable.
2946         (lhd_begin_section): New function.
2947         (lhd_write_section_data): New function.
2948         (lhd_end_section): New function.
2949         * langhooks.h (struct lang_hooks_for_lto): New structure.
2950         (struct lang_hooks): Add member lto.
2951         * Makefile.in (langhooks.o): Add dependency on output.h.
2953         * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
2955 2009-10-03  Richard Guenther  <rguenther@suse.de>
2957         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
2958         Handle LTO.
2960 2009-10-03  Simon Baldwin  <simonb@google.com>
2961             Richard Guenther  <rguenther@suse.de>
2962             Janis Johnson  <janis187@us.ibm.com>
2963             Doug Kwan  <dougkwan@google.com>
2964             Diego Novillo  <dnovillo@google.com>
2965             Ramana Radhakrishnan  <ramana.r@gmail.com>
2966             Ollie Wild  <aaw@google.com>
2968         * doc/install.texi: Add documentation for libelf and --enable-lto.
2969         * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
2970         -flto-report, -flto-compression-level and -use-linker-plugin.
2971         * doc/sourcebuild.texi: Document use of zlib.  Document lto-plugin.
2972         Add section for LTO Testing.
2974 2009-10-02  Cary Coutant  <ccoutant@google.com>
2976         Add support for comdat type sections for DWARF v4.
2977         Merge from dwarf4 branch.
2979         * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
2980         (dw_die_ref): Define vector type.
2981         (enum dw_val_class): Add dw_val_class_data8.
2982         (struct dw_val_struct): Add v.val_data8.
2983         (comdat_type_node_ref): New type.
2984         (struct die_struct): Move die_symbol into a union; add new field
2985         die_type_node.  Change all uses.
2986         (comdat_type_node): New type.
2987         (skeleton_chain_node): New type.
2988         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
2989         (comdat_type_list): New variable.
2990         (dwarf_tag_name): Add DW_TAG_type_unit.
2991         (dwarf_attr_name): Add DW_AT_signature.
2992         (add_AT_data8): New function.
2993         (replace_child): New function.
2994         (move_all_children): New function.
2995         (print_signature): New function.
2996         (print_die): Print signature information; add dw_val_class_data8.
2997         (attr_checksum): Support dw_val_class_data8.
2998         (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
2999         (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
3000         (checksum_sleb128, checksum_uleb128): New functions.
3001         (checksum_die_context): New function.
3002         (loc_checksum_ordered): New function.
3003         (attr_checksum_ordered): New function.
3004         (struct checksum_attributes): New structure.
3005         (collect_checksum_attributes): New function.
3006         (die_checksum_ordered): New function.
3007         (generate_type_signature): New function.
3008         (same_dw_val_p): Add dw_val_class_data8.
3009         (is_symbol_die): Use new is_declaration_die function.
3010         (is_declaration_die): New function.
3011         (should_move_die_to_comdat): New function.
3012         (clone_die): New function.
3013         (clone_tree): New function.
3014         (clone_as_declaration): New function.
3015         (copy_declaration_context): New function.
3016         (generate_skeleton_ancestor_tree): New function.
3017         (generate_skeleton_bottom_up): New function.
3018         (generate_skeleton): New function.
3019         (remove_child_or_replace_with_skeleton): New function.
3020         (break_out_comdat_types): New function.
3021         (struct decl_table_entry): New type.
3022         (htab_decl_hash): New function.
3023         (htab_decl_eq): New function.
3024         (htab_decl_del): New function.
3025         (copy_ancestor_tree): New function.
3026         (copy_decls_walk): New function.
3027         (copy_decls_for_unworthy_types): New function.
3028         (build_abbrev_table): Don't assert on missing die_symbol when doing
3029         comdat type sections.
3030         (size_of_die): Use DW_FORM_sig8 for external references.  Add
3031         dw_val_class_data8.
3032         (unmark_dies): Don't assert for unmarked dies when doing comdat
3033         type sections.
3034         (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
3035         (output_signature): New function.
3036         (output_die): Likewise.
3037         (output_compilation_unit_header): Mark output as DWARF version 3
3038         even if generating DWARF 4.
3039         (output_comdat_type_unit): New function.
3040         (output_line_info): Mark output as DWARF version 3 even if generating
3041         DWARF 4.
3042         (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
3043         DWARF-4.
3044         (dwarf2out_end_source_file): Likewise.
3045         (prune_unused_types_walk_attribs): Don't follow references into
3046         comdat type sections.
3047         (prune_unused_types_mark): When generating type units, do not mark
3048         children of non-defining declarations of types; do mark children of
3049         type entries.
3050         (prune_unused_types): Process comdat type sections.
3051         (htab_ct_hash): New function.
3052         (htab_ct_eq): New function.
3053         (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
3054         Add a pointer to the line table from type unit entries so
3055         DW_AT_decl_file has meaning.
3056         * varasm.c (default_elf_asm_named_section): Use identifier name as
3057         comdat key instead of lang hook.
3059 2009-10-02  Neil Vachharajani  <nvachhar@google.com>
3061         * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
3063 2009-10-02  Uros Bizjak  <ubizjak@gmail.com>
3065         * config/i386/i386.md (SWIM248): New mode iterator.
3066         (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
3067         divmodhi4 patterns using SWIM248 macro.
3068         (*divmod<mode>4): Macroize insn_and_split pattern from
3069         *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
3070         and their corresponding splitters usign SWIM248 macro.  Split SImode
3071         insn to generate cltd and DImode insn to generate cqto instead of
3072         move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
3073         (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
3074         (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
3075         *divmodsi_noext patterns using SWIM248 macro.
3076         (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
3077         udivmodhi4 patterns using SWIM248 macro.
3078         (*udivmod<mode>4): Macroize insn_and_split pattern from
3079         *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
3080         corresponding splitters using SWIM248 macro.
3081         (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
3082         *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
3084 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
3086         * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
3087         of zero-sized element is zero-sized regardless of its extent.
3089 2009-10-02  Jakub Jelinek  <jakub@redhat.com>
3091         PR debug/40521
3092         * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
3093         * configure: Regenerated.
3094         * config.in: Regenerated.
3095         * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
3096         !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
3097         (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
3098         not emitting .eh_frame, emit .cfi_sections .debug_frame
3099         directive.
3101         PR debug/41404
3102         PR debug/41353
3103         * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
3104         CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
3105         with '\0'.
3106         (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
3107         vars use DECL_RTL with resetting it back to NULL afterwards.
3108         * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
3109         rtx_equal_p instead of asserting it is a SYMBOL_REF.
3110         (value_format): For dw_val_class_addr only use DW_FORM_addr if
3111         the attribute type allows it, otherwise use DW_FORM_dataN.
3112         (mem_loc_descriptor): Handle CONST_STRING.
3113         (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
3114         Handle MEM with CONST_STRING address using add_AT_string.
3115         (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
3116         CONST_STRING for const arrays initialized with a string literal.
3117         (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
3118         (dwarf2out_finish): Call resolve_addr.
3120 2009-10-02  Andreas Schwab  <schwab@linux-m68k.org>
3121             Maxim Kuvyrkov  <maxim@codesourcery.com>
3123         * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
3125 2009-10-02  Nick Clifton  <nickc@redhat.com>
3127         * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
3128         (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
3130 2009-10-01  Jan Hubicka  <jh@suse.cz>
3132         * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
3133         (cgraph_create_virtual_clone): Just pass redirect_callers
3134         around.
3135         * cgraph.h (cgraph_clone_node): Update prototype.
3136         * ipa-pure-const.c (self_recursive_p): New function.
3137         (propagate): Use it.
3138         * ipa-inline.c (cgraph_clone_inlined_nodes,
3139         cgraph_decide_recursive_inlining): Update.
3141 2009-10-01  David Daney  <ddaney@caviumnetworks.com>
3143         * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
3144         instructions for TARGET_OCTEON.
3146 2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3148         * config/arm/arm.c (arm_override_options): Turn off
3149         flag_dwarf2_cfi_asm for AAPCS variants.
3151 2009-10-01  Martin Jambor  <mjambor@suse.cz>
3153         PR middle-end/12392
3154         * tree-sra.c (convert_callers): Do not call
3155         compute_inline_parameters on one caller more than once.
3157 2009-10-01  Nick Clifton  <nickc@redhat.com>
3159         * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
3160         an empty string if not already defined.
3162 2009-10-01  Martin Jambor  <mjambor@suse.cz>
3164         PR bootstrap/41395
3165         * tree-sra.c (is_va_list_type): New function.
3166         (find_var_candidates): Call is_va_list_type.
3167         (find_param_candidates): Check that the type or the type pointed
3168         to are not va_list types.
3170 2009-10-01  Martin Jambor  <mjambor@suse.cz>
3172         PR c++/41503
3173         * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
3174         DECL_ARTIFICIAL (param_decl) is true.
3176 2009-09-30  Gabriel Dos Reis  <gdr@cs.tamu.edu>
3178         * tree.h (tree_decl_common::lang_flag_8): New.
3179         * c-common.c (c_common_reswords): Include "constexpr" as C++0x
3180         keyword.
3181         * c-common.h (RID_CONSTEXPR): New.
3183 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
3185         * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
3186         Use ref-all pointers.
3187         (alpha_gimplify_va_arg): Ditto.
3189 2009-09-30  Jakub Jelinek  <jakub@redhat.com>
3191         PR target/41279
3192         * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
3193         before insn counting loop now that BB_END (bb) is counted.  Ensure
3194         the return value isn't zero.
3196 2009-09-30  Nick Clifton  <nickc@redhat.com>
3198         * config.gcc (sh-symbianelf): Replace definition of extra_objs
3199         with separate definitions of c_target_objs and cxx_target_objs.
3200         * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
3201         and symbian-base.o.
3202         * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
3203         sh_symbian_import_export_class.
3204         * config/sh/sh-protos.h: Fix names of exported symbian functions.
3205         * config/sh/symbian.c: Delete, moving code into...
3206         * config/sh/symbian-base.c: ... here
3207         * config/sh/symbian-c.c: ... and here
3208         * config/sh/symbian-cxx.c: ... and here.
3210 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
3212         PR target/22093
3213         * config/alpha/alpha.md (unaligned_storehi_be): Force operand
3214         of plus RTX into register.
3216 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3218         * doc/install.texi: Linguistic and markup fixes.
3219         (Configuration) <--disable-cpp>: Remove description.
3220         <--enable-maintainer-mode>: Autotools files are affected, too.
3221         <--with-sysroot>: Improve description.
3222         (Building): Bump required GNU make version.
3224 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
3226         * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
3227         (x86_64-*-*): Ditto.
3229         * config/i386/fma4intrin.h: New file, provide common x86 compiler
3230         intrinisics for FMA4.
3231         * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
3232         * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
3233         Add FMA4 check and fma4intrin.h.
3234         * config/i386/i386-c.c(ix86_target_macros_internal): Check
3235         ISA_FLAG for FMA4.
3236         * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
3237         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
3238         constant for FMA4 support.
3239         (UNSPEC_FMA4_FMADDSUB): Ditto.
3240         (UNSPEC_FMA4_FMSUBADD): Ditto.
3241         * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
3242         * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
3243         (ix86_expand_fma4_multiple_memory): Ditto.
3244         * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
3245         (OPTION_MASK_ISA_FMA4_UNSET): New.
3246         (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
3247         (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
3248         (ix86_handle_option): Handle -mfma4.
3249         (isa_opts): Handle -mfma4.
3250         (enum pta_flags): Add PTA_FMA4.
3251         (override_options): Add FMA4 support.
3252         (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
3253         (IX86_BUILTIN_VFMADDSD): Ditto.
3254         (IX86_BUILTIN_VFMADDPS): Ditto.
3255         (IX86_BUILTIN_VFMADDPD): Ditto.
3256         (IX86_BUILTIN_VFMSUBSS): Ditto.
3257         (IX86_BUILTIN_VFMSUBSD): Ditto.
3258         (IX86_BUILTIN_VFMSUBPS): Ditto.
3259         (IX86_BUILTIN_VFMSUBPD): Ditto.
3260         (IX86_BUILTIN_VFMADDSUBPS): Ditto.
3261         (IX86_BUILTIN_VFMADDSUBPD): Ditto.
3262         (IX86_BUILTIN_VFMSUBADDPS): Ditto.
3263         (IX86_BUILTIN_VFMSUBADDPD): Ditto.
3264         (IX86_BUILTIN_VFNMADDSS): Ditto.
3265         (IX86_BUILTIN_VFNMADDSD): Ditto.
3266         (IX86_BUILTIN_VFNMADDPS): Ditto.
3267         (IX86_BUILTIN_VFNMADDPD): Ditto.
3268         (IX86_BUILTIN_VFNMSUBSS): Ditto.
3269         (IX86_BUILTIN_VFNMSUBSD): Ditto.
3270         (IX86_BUILTIN_VFNMSUBPS): Ditto.
3271         (IX86_BUILTIN_VFNMSUBPD): Ditto.
3272         (IX86_BUILTIN_VFMADDPS256): Ditto.
3273         (IX86_BUILTIN_VFMADDPD256): Ditto.
3274         (IX86_BUILTIN_VFMSUBPS256): Ditto.
3275         (IX86_BUILTIN_VFMSUBPD256): Ditto.
3276         (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
3277         (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
3278         (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
3279         (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
3280         (IX86_BUILTIN_VFNMADDPS256): Ditto.
3281         (IX86_BUILTIN_VFNMADDPD256): Ditto.
3282         (IX86_BUILTIN_VFNMSUBPS256): Ditto.
3283         (IX86_BUILTIN_VFNMSUBPD256): Ditto.
3284         (enum multi_arg_type): New enum for describing the various FMA4
3285         intrinsic argument types.
3286         (bdesc_multi_arg): New table for FMA4 intrinsics.
3287         (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
3288         (ix86_expand_multi_arg_builtin): New function for creating FMA4
3289         intrinsics.
3290         (ix86_expand_builtin): Add FMA4 intrinsic support.
3291         (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
3292         operand instructions.
3293         (ix86_expand_fma4_multiple_memory): New function to split the
3294         second memory reference from FMA4 instructions.
3295         * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
3296         (ssemodesuffixf2s): Ditto.
3297         (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
3298         instructions.
3299         (fma4_fmsub<mode>4): Ditto.
3300         (fma4_fnmadd<mode>4): Ditto.
3301         (fma4_fnmsub<mode>4): Ditto.
3302         (fma4_vmfmadd<mode>4): Ditto.
3303         (fma4_vmfmsub<mode>4): Ditto.
3304         (fma4_vmfnmadd<mode>4): Ditto.
3305         (fma4_vmfnmsub<mode>4): Ditto.
3306         (fma4_fmadd<mode>4256): Ditto.
3307         (fma4_fmsub<mode>4256): Ditto.
3308         (fma4_fnmadd<mode>4256): Ditto.
3309         (fma4_fnmsub<mode>4256): Ditto.
3310         (fma4_fmaddsubv8sf4): Ditto.
3311         (fma4_fmaddsubv4sf4): Ditto.
3312         (fma4_fmaddsubv4df4): Ditto.
3313         (fma4_fmaddsubv2df4): Ditto.
3314         (fma4_fmsubaddv8sf4): Ditto.
3315         (fma4_fmsubaddv4sf4): Ditto.
3316         (fma4_fmsubaddv4df4): Ditto.
3317         (fma4_fmsubaddv2df4): Ditto.
3318         (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
3319         instructions for intrinsics.
3320         (fma4i_fmsub<mode>4): Ditto.
3321         (fma4i_fnmadd<mode>4): Ditto.
3322         (fma4i_fnmsub<mode>4): Ditto.
3323         (fma4i_vmfmadd<mode>4): Ditto.
3324         (fma4i_vmfmsub<mode>4): Ditto.
3325         (fma4i_vmfnmadd<mode>4): Ditto.
3326         (fma4i_vmfnmsub<mode>4): Ditto.
3327         (fma4i_fmadd<mode>4256): Ditto.
3328         (fma4i_fmsub<mode>4256): Ditto.
3329         (fma4i_fnmadd<mode>4256): Ditto.
3330         (fma4i_fnmsub<mode>4256): Ditto.
3331         (fma4i_fmaddsubv8sf4): Ditto.
3332         (fma4i_fmaddsubv4sf4): Ditto.
3333         (fma4i_fmaddsubv4df4): Ditto.
3334         (fma4i_fmaddsubv2df4): Ditto.
3335         (fma4i_fmsubaddv8sf4): Ditto.
3336         (fma4i_fmsubaddv4sf4): Ditto.
3337         (fma4i_fmsubaddv4df4): Ditto.
3338         (fma4i_fmsubaddv2df4): Ditto.
3340         * doc/invoke.texi (-mfma4): Add documentation.
3341         * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
3343 2009-09-29  Richard Henderson  <rth@redhat.com>
3345         * tree-eh.c (unsplit_eh): Do not unsplit if there's already
3346         an edge to the new destination block.
3348 2009-09-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3350         PR target/41393
3351         * pa.c (hppa_profile_hook): Use
3352         make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
3354 2009-09-29  Steve Ellcey  <sje@cup.hp.com>
3355             Alexander Monakov  <amonakov@ispras.ru>
3357         PR target/41365
3358         * config/ia64/predicates.md (not_postinc_destination_operand): New.
3359         (not_postinc_memory_operand): New.
3360         (not_postinc_move_operand): New.
3361         * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
3362         (*cmovsi_internal): Ditto.
3364 2009-09-29  Pat Haugen  <pthaugen@us.ibm.com>
3366         * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
3367         restrict issue_rate in first pass when scheduling for register
3368         pressure.
3370 2009-09-29  Basile Starynkevitch  <basile@starynkevitch.net>
3371             Rafael Avila de Espindola  <espindola@google.com>
3373         * gengtype.c (plugin_output): New.
3374         (get_output_file_with_visibility): Return plugin_output for plugins.
3375         (main): Parse and use the -P option.
3376         * gty.texi: Update the command line format.
3378 2009-09-29  Jakub Jelinek  <jakub@redhat.com>
3380         PR debug/41438
3381         * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
3382         functions.
3383         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
3384         out if !const_ok_for_output.
3386         PR debug/41474
3387         * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
3388         case VAR_LOCATION>: Remove gcc_unreachable ().
3390 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
3392         * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
3393         (x86_64-*-*): Ditto.
3394         * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
3395         back to smmintrin.h.
3396         * config/i386/cpuid.h (bit_SSE5): Remove SSE5 bit.
3397         * config/i386/x86intrin.h: Remove SSE5.
3398         * config/i386/mmintrin-common.h: Delete file.
3399         * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
3401 2009-09-29  Richard Guenther  <rguenther@suse.de>
3403         * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
3404         resulting from stack temporaries on STRICT_ALIGNMENT targets.
3406 2009-09-29  Nick Clifton  <nickc@redhat.com>
3408         * function.c (current_function_name): If there is no current
3409         function just return "<none>".
3411 2009-09-28  Sriraman Tallam  <tmsriram@google.com>
3413         * tree-pass.h (register_pass_info): New structure.
3414         (pass_positioning_ops): Move enum from gcc-plugin.h.
3415         (register_pass): New function.
3416         * gcc-plugin.h (plugin_pass): Delete structure.
3417         (pass_positioning_ops): Delete enum.
3418         * plugin.c (regsiter_pass): Delete function.
3419         (position_pass): Delete function.
3420         (added_pass_nodes): Delete variable.
3421         (prev_added_pass_nodes): Delete variable.
3422         (pass_list_node): Delete structure.
3423         * passes.c (make_pass_instance): New function.
3424         (next_pass_1): Change to call make_pass_instance.
3425         (pass_list_node): Move structure from gcc-plugin.h.
3426         (added_pass_nodes): Move variable from plugin.c.
3427         (prev_added_pass_nodes): Move variable from plugin.c.
3428         (position_pass): New function.
3429         (register_pass): New function.
3431 2009-09-28  Easwaran Raman  <eraman@google.com>
3433         * ifcvt.c (noce_try_abs): Recognize pattern and call
3434         expand_one_cmpl_abs_nojump.
3435         * optabs.c (expand_one_cmpl_abs_nojump): New function.
3436         * optabs.h (expand_one_cmpl_abs_nojump): Declare.
3438 2009-09-28  Ian Lance Taylor  <iant@google.com>
3440         PR middle-end/40500
3441         * c-opts.c (c_common_handle_option): Don't set
3442         warn_jump_misses_init for -Wall.
3443         * doc/invoke.texi (Warning Options): Update documentation.
3445 2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3447         * Makefile.in ($(out_object_file)): Depend on
3448         gt-$(basename $(notdir $(out_file))).h.
3450 2009-09-28  Richard Henderson  <rth@redhat.com>
3452         * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
3453         * except.c (gen_eh_region): Set it.
3454         (duplicate_eh_regions_1): Copy it.
3455         * tree-eh.c (lower_resx): Use it to determine which function
3456         to call to resume.
3458         * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
3459         * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
3460         * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
3461         * tree.c (build_common_builtin_nodes): Remove parameter.  Build
3462         BUILT_IN_CXA_END_CLEANUP if necessary.
3464         * c-common.c (c_define_builtins): Update call to
3465         build_common_builtin_nodes.
3467 2009-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3469         * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
3471 2009-09-28  Michael Matz  <matz@suse.de>
3473         * builtins.c (interclass_mathfn_icode): New helper.
3474         (expand_builtin_interclass_mathfn): Use it here, and split folding
3475         into ...
3476         (fold_builtin_interclass_mathfn): ... this new folder.
3477         (build_call_nofold_loc): New static helper.
3478         (build_call_nofold): New wrapper macro for above.
3479         (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
3480         (expand_builtin_pow): Ditto.
3481         (expand_builtin_memset_args): Ditto.
3482         (expand_builtin_printf): Ditto.
3483         (expand_builtin_fprintf): Ditto.
3484         (expand_builtin_sprintf): Ditto.
3485         (expand_builtin_memory_chk): Ditto.
3486         (expand_builtin_mempcpy_args): Ditto and don't call folders.
3487         (expand_builtin_stpcpy): Ditto.
3488         (expand_builtin_strcmp): Ditto.
3489         (expand_builtin_strncmp): Ditto.
3490         (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
3491         (expand_builtin_strcpy_args): Don't call folders.
3492         (expand_builtin_memcmp): Ditto.
3493         (expand_builtin_strncpy): Ditto, and use target.
3494         (expand_builtin_memcpy): Ditto.
3495         (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
3496         expand_builtin_strpbrk, expand_builtin_memmove,
3497         expand_builtin_memmove_args, expand_builtin_bcopy,
3498         expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
3499         expand_builtin_strspn, expand_builtin_strcspn,
3500         expand_builtin_fputs): Remove these.
3501         (expand_builtin): Don't call the above, change calls to other
3502         expanders that changed prototype.
3503         (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
3504         (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
3505         fold_builtin_interclass_mathfn.
3506         (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
3507         (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
3509         * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
3510         * passes.c (init_optimization_passes): Move pass_fold_builtins
3511         after last phiopt pass.
3512         * tree-inline.c (fold_marked_statements): When folding builtins
3513         iterate over all instruction potentially generated.
3514         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
3515         earlier.
3516         (fold_gimple_call): Use it to always fold calls (into potentially
3517         multiple instructions).
3518         * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
3519         calls into zero at this time.
3520         * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
3521         statements generated by builtin folding.
3523 2009-09-28  Nick Clifton  <nickc@redhat.com>
3525         * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
3527 2009-09-28  Duncan Sands  <baldrick@free.fr>
3529         * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
3530         * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
3531         (register_callback): Dispatch it.
3532         (invoke_plugin_callbacks): Incorporate in sanity check.
3533         * ggc.h (ggc_register_cache_tab): Add declaration.
3534         * ggc-common.c (ggc_register_root_tab): Simplify.
3535         (const_ggc_cache_tab_t): New typedef.
3536         (extra_cache_vec): New vector of dynamically added cache tables.
3537         (ggc_register_cache_tab): New function.
3538         (ggc_scan_cache_tab): New function.
3539         (ggc_mark_roots): Simplify dynamic roots.  Handle dynamic caches.
3540         * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
3542 2009-09-27  Richard Henderson  <rth@redhat.com>
3544         * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
3545         which we remove __builtin_stack_restore.
3547 2009-09-27  Bernd Schmidt  <bernd.schmidt@analog.com>
3549         * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
3550         to test for GRD_INVARIANT.
3551         (simple_rhs_p): Anything that's function_invariant_p is fine.
3553 2009-09-27  Rafael Avila de Espindola  <espindola@google.com>
3555         * gengtype.c (main): Use plunge_files instead of plugin_output.
3557 2009-09-27  Basile Starynkevitch  <basile@starynkevitch.net>
3558             Rafael Avila de Espindola  <espindola@google.com>
3560         * gengtype.c (write_root, write_roots): Add a emit_pch argument.
3561         Don't print pch related info if it is false.
3562         (main): Don't print pch info in plugin mode.
3564 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
3566         * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
3567         with dw_val_class_const_double.
3568         (struct dw_val_struct): Replace val_long_long with val_double and
3569         adjust for above change.
3570         (output_loc_operands): Likewise.
3571         (add_AT_long_long): Rename into...
3572         (add_AT_double): ...this.
3573         (print_die): Replace dw_val_class_long_long with
3574         dw_val_class_const_double and adjust.
3575         (attr_checksum): Likewise.
3576         (same_dw_val_p): Likewise.
3577         (size_of_die): Likewise.
3578         (value_format): Likewise.
3579         (output_die): Likewise.
3580         (loc_descriptor) <CONST_DOUBLE>: Likewise.
3581         (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
3582         instead of add_AT_long_long.
3583         (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
3584         value with the precision of its type.
3586 2009-09-27  Andreas Schwab  <schwab@linux-m68k.org>
3588         PR c/41476
3589         * c-typeck.c (build_conditional_expr): Use the readonly and
3590         volatile flags of the operand types, not of the operands itself.
3592 2009-09-27  Peter O'Gorman  <pogma@thewrittenword.com>
3594         * collect2.c (main): Look for -brtl before adding libraries.
3596 2009-09-27  Jonathan Gray  <jsg@openbsd.org>
3598         * config.gcc: Update OpenBSD targets.
3599         * config/openbsd-stdint.h: New file.
3600         * config/openbsd-libpthread.h: New file.
3601         * config/openbsd.h: Update and break out LIB_SPEC definition.
3602         * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
3603         * config/i386/openbsdelf.h: Correct types.
3604         * config/m68k/openbsd.h: Likewise.
3605         * config/mips/openbsd.h: Likewise.
3606         * config/vax/openbsd.h: Likewise.
3608 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
3610         * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
3611         (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
3612         * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
3613         of the length and zero.
3615 2009-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3617         * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
3618         (FLAGS_H): Add options.h $(REAL_H).
3619         (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
3620         (TREE_VECTORIZER_H): New.
3621         (EBITMAP_H): Renamed from EBIMAP_H.
3622         (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
3623         (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
3624         (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
3625         (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
3626         (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
3627         (graphite-clast-to-gimple.o, graphite-dependences.o)
3628         (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
3629         (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
3630         (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
3631         (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
3632         (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
3633         (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
3634         (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
3635         (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
3636         (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
3637         updated and fixed as per above changes and per
3638         check_makefile_deps.sh output.
3640         PR bootstrap/40928
3641         * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
3642         * configure: Regenerate.
3644 2009-09-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3646         * doc/install.texi: Update minimum MPC version to 0.7.
3648 2009-09-26  Gerald Pfeifer  <gerald@pfeifer.com>
3650         * doc/install.texi (Binaries): Remove reference to the binary
3651         distribution CD-ROM from the FSF.
3653 2009-09-26  Michael Matz  <matz@suse.de>
3655         PR lto/40758
3656         PR middle-end/41470
3657         * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
3658         that are mentioned in the body.
3660 2009-09-26  Michael Matz  <matz@suse.de>
3662         PR tree-optimization/41454
3663         * tree-ssa-dom (stmts_to_rescan): Remove variable.
3664         (tree_ssa_dominator_optimize): Don't allocate and free it.
3665         (dom_opt_leave_block): Don't iterate over it.
3666         (eliminate_redundant_computations): Don't return a value.
3667         (cprop_operand, cprop_into_stmt): Ditto.
3668         (optimize_stmt): Don't defer updating stmts.
3670 2009-09-25  Dodji Seketeli  <dodji@redhat.com>
3672         * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
3673         generic_parameter_die, template_parameter_pack_die,
3674         gen_formal_parameter_die, gen_subprogram_die): Adjust after
3675         renaming DW_TAG_formal_parameter_pack and
3676         DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
3677         and DW_TAG_GNU_template_parameter_pack.
3679 2009-09-25  Anatoly Sokolov  <aesok@post.ru>
3681         * config/v850/v850.h (FUNCTION_VALUE): Remove.
3682         * config/v850/v850.c (v850_function_value): New function.
3683         (TARGET_FUNCTION_VALUE): Define.
3685 2009-09-25  Jakub Jelinek  <jakub@redhat.com>
3687         * tree-vect-stmts.c (vectorizable_call): Call
3688         mark_symbols_for_renaming after vect_finish_stmt_generation.
3690         * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
3691         to loc_descriptor_from_tree.
3692         (add_location_or_const_value_attribute): Pass 0 instead of 2
3693         for decl_by_reference_p decls.
3695 2009-09-25  Richard Guenther  <rguenther@suse.de>
3697         PR middle-end/41463
3698         * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
3699         arrays again.
3701 2009-09-25  Ben Elliston  <bje@au.ibm.com>
3703         * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
3704         after `power7'.
3706 2009-09-25  Alan Modra  <amodra@bigpond.net.au>
3708         * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
3709         form of instruction.
3711 2009-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3713         PR middle-end/41435
3714         * fold-const.c (const_binop): Handle complex int division.
3715         * tree-complex.c (expand_complex_div_straight,
3716         expand_complex_div_wide): Update comments.
3718 2009-09-24  DJ Delorie  <dj@redhat.com>
3720         PR target/41456
3721         * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
3722         (reg_class): Likewise.
3723         (REG_CLASS_NAMES): Likewise.
3724         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
3725         (m32c_override_options): Disable -fivopts for M32C.
3727 2009-09-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
3729         * config/rs6000/predicates.md (indexed_or_indirect_operand):
3730         Delete VSX load/store with update support.
3731         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
3732         * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
3733         (vsx_movti): Ditto.
3734         (VSX_U): Delete.
3735         (VSbit): Ditto.
3736         (VStype_load_update): Ditto.
3737         (VStype_store_update): Ditto.
3738         (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
3739         (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
3741         * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
3742         load/store with update builtins.
3744 2009-09-24  Kai Tietz  <kai.tietz@onevision.com>
3746         * libgcc2.c (L_trampoline): Prototype for getpagesize
3747         and mprotect in WINNT case.
3749 2009-09-24  Anatoly Sokolov  <aesok@post.ru>
3751         * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
3752         * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
3753         * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
3754         'outgoing' argument.
3755         (TARGET_FUNCTION_VALUE): Define.
3757 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
3759         * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
3761 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
3763         PR bootstrap/41405
3764         * common.opt: Initialize dwarf_strict to -1.
3765         * toplev.c (process_options): Catch unset dwarf_strict
3766         and set to 0 for all targets not overriding.
3767         * config/darwin.c (darwin_override_options): Catch unset
3768         dwarf_strict and override to 1.
3770 2009-09-24  Jeff Law  <law@redhat.com>
3772         * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
3774 2009-09-24  Richard Guenther  <rguenther@suse.de>
3776         PR tree-optimization/36143
3777         PR tree-optimization/38747
3778         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
3779         create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
3781 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
3783         PR bootstrap/41457
3784         * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
3785         return false instead of gcc_unreachable ().  For CONST return the
3786         value returned by recursive call instead of always returning true.
3787         (tree_add_const_value_attribute): Return the value returned by
3788         add_const_value_attribute instead of always returning true if rtl
3789         is non-NULL.
3791 2009-09-23  Justin Seyster  <jrseys@gmail.com>
3793         * Makefile.in (PLUGIN_HEADERS): Include real.h.
3795 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
3797         * cgraphunit.c (cgraph_lower_function): Revert last change.
3798         * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
3799         instead of DECL_NO_STATIC_CHAIN.
3800         * tree-cfg.c (verify_gimple_call): Likewise.
3801         * tree-nested.c (get_chain_decl, get_chain_field,
3802         convert_tramp_reference_op, convert_gimple_call): Likewise.
3803         (convert_all_function_calls): Likewise.  Always set or clear
3804         DECL_STATIC_CHAIN initially, for !n->outer clear it.
3805         (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
3806         * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
3807         if nested.
3808         * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
3809         DECL_NO_STATIC_CHAIN.
3810         * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
3811         instead of DECL_NO_STATIC_CHAIN.
3812         (ix86_function_regparm, find_drap_reg): Likewise.  Don't test
3813         decl_function_context.
3814         * varasm.c (initializer_constant_valid_p): Likewise.
3815         * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
3816         (DECL_STATIC_CHAIN): ... this.
3817         * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
3818         instead of DECL_NO_STATIC_CHAIN.
3820 2009-09-23  Basile Starynkevitch  <basile@starynkevitch.net>
3821             Rafael Avila de Espindola  <espindola@google.com>
3823         * gengtype.c (nb_plugin_files): Make it unsigned to match
3824         num_gt_files. Adjust other variables to avoid warnings.
3825         (main): Allocate an all zero lang_bitmap before each plugin file name
3826         to match regular file names.
3828 2009-09-23  Richard Henderson  <rth@redhat.com>
3830         * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
3831         (TARGET_STATIC_CHAIN): Mention that this hook must be used for
3832         static chain passed in memory.
3833         * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
3834         * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
3835         STATIC_CHAIN_INCOMING.  Issue a sorry if there's no
3836         STATIC_CHAIN_REGNUM defined.
3838         * config/picochip/picochip-protos.h: s/class/klass/.
3839         * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
3840         (picochip_static_chain): New.
3841         * config/picochip/picochip.h (STATIC_CHAIN): Remove.
3842         (STATIC_CHAIN_INCOMING): Remove.
3844         * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
3845         (xtensa_static_chain): New.
3846         * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
3847         (STATIC_CHAIN_INCOMING): Remove.
3849 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
3851         * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
3852         * config/pa/pa-protos.h (function_value): Remove.
3853         * config/pa/pa.c (pa_function_value): Rename from function_value.
3854         Make static, add 'outgoing' argument.
3855         (TARGET_FUNCTION_VALUE): Define.
3857 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
3859         * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
3860         instead of cfun->machine->is_leaf.
3861         * config/avr/avr.h (machine_function): Remove is_leaf field.
3863 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
3865         PR debug/41439
3866         * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
3867         DW_OP_piece after DW_OP_stack_value, adjust size calculations
3868         for it, when DW_OP_stack_value and DW_OP_implicit_value has
3869         the same size, prefer DW_OP_stack_value.
3870         (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
3871         loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
3873 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
3875         PR debug/41353
3876         * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
3878 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
3880         PR debug/41248
3881         * cfgexpand.c (convert_debug_memory_address): New.
3882         (expand_debug_expr): Convert base address and offset to the same
3883         mode.  Use it to convert addresses to other modes.  Accept
3884         ptr_mode addresses.
3886 2009-09-23  Richard Guenther  <rguenther@suse.de>
3888         * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
3889         produced for bigendian targets with promoted subregs.
3891 2009-09-23  Richard Guenther  <rguenther@suse.de>
3893         * value-prof.c (gimple_ic): Purge old EH edges only after building
3894         the new ones.
3896 2009-09-23  Nick Clifton  <nickc@redhat.com>
3898         * config/arc/arc.c (arc_trampoline_init): Fix typo.
3900 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
3902         PR bootstrap/41405
3903         * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
3905         PR bootstrap/41436
3906         * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
3907         on non-nested functions.
3909 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
3910             Jan Hubicka  <jh@suse.cz>
3912         * dwarf2out.c (loc_list_plus_const): Only define if
3913         DWARF2_DEBUGGING_INFO.
3914         (address_of_int_loc_descriptor): Likewise.
3916         PR debug/41411
3917         * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
3919 2009-09-23  Uros Bizjak  <ubizjak@gmail.com>
3921         PR c/39779
3922         * c-typeck.c (build_binary_op) <short_shift>: Check that integer
3923         constant is more than zero.
3925 2009-09-23  Alan Modra  <amodra@bigpond.net.au>
3927         PR target/40473
3928         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
3929         call final to emit non-scheduled prologue, instead insert at entry.
3931 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
3932             Joseph S. Myers  <joseph@codesourcery.com>
3934         * doc/install.texi (*-*-freebsd*): Add proper format codes.
3936 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
3937             Rafael Avila de Espindola  <espindola@google.com>
3939         * gengtype.c (is_file_equal): New function.
3940         (close_output_files): Use is_file_equal. Free of->buf.
3942 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
3943             Rafael Avila de Espindola  <espindola@google.com>
3945         * gengtype.c (write_types, write_local): Add the output_header
3946         argument. Update all callers.
3948 2009-09-22  Dodji Seketeli  <dodji@redhat.com>
3950         * dwarf2out.c (template_parameter_pack_die,
3951         gen_formal_parameter_pack_die ): New functions.
3952         (make_ith_pack_parameter_name): Remove this function.
3953         (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
3954         DW_TAG_formal_parameter_pack.
3955         (gen_generic_params_dies): Represent each template parameter pack
3956         by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
3957         represented by usual DW_TAG_template_*_parameter DIEs that are
3958         children of the DW_TAG_template_parameter_pack element DIE.
3959         (generic_parameter_die): This doesn't deal with parameter pack
3960         names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
3961         of parameter pack DIEs.
3962         (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
3963         in certain cases, e.g. for pack elements.
3964         (gen_formal_types_die, gen_decl_die): Adjust usage of
3965         gen_formal_parameter_die.
3966         (gen_subprogram_die): Represent each function parameter pack by a
3967         DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
3968         represented by usual DW_TAG_formal_parameter DIEs that are children
3969         of the DW_TAG_formal_parameter_pack DIE. Remove references to
3970         ____builtin_va_alist decls as no part of the compiler uses those
3971         anymore.
3972         * langhooks.h (struct lang_hooks_for_decls): Add
3973         function_parm_expanded_from_pack_p, get_generic_function_decl
3974         and function_parameter_pack_p hooks.  Fix comment for
3975         get_innermost_generic_parms hook.
3976         * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
3977         LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
3978         macros and use them to initialize lang_hook.
3980 2009-09-22  Richard Henderson  <rth@redhat.com>
3982         * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
3983         (TRAMPOLINE_ADJUST_ADDRESS): Poison.
3984         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
3985         on TRAMPOLINE_TEMPLATE.
3986         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
3987         TRAMPOLINE_ADJUST_ADDRESS.
3988         * targhooks.c (default_asm_trampoline_template): Remove.
3989         (default_trampoline_adjust_address): Remove.
3990         (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
3991         * targhooks.h: Update decls.
3993 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
3995         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
3996         * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
3997         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
3999 2009-09-22  Alexandre Oliva  <aoliva@redhat.com>
4001         PR debug/41295
4002         * reload1.c (reload): Reset debug insns with pseudos without
4003         equivalences.
4005 2009-09-22  Janis Johnson  <janis187@us.ibm.com>
4007         * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
4008         unconditional true for decimal float modes.
4009         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
4010         * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
4012 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
4014         * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
4015         Enable a new case for __FreeBSD__ >= 7.
4016         * crtstuff.c:  Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
4017         * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
4018         * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
4019         and USE_LD_AS_NEEDED.
4021         * doc/install.texi (*-*-freebsd*): Update target information.
4023 2009-09-22  Richard Guenther  <rguenther@suse.de>
4025         PR middle-end/41395
4026         * tree-dfa.c (get_ref_base_and_extent): Handle trailing
4027         arrays really properly.
4029 2009-09-22  Richard Henderson  <rth@redhat.com>
4031         PR target/41246
4032         * target.h (struct gcc_target): Add asm_out.trampoline_template,
4033         calls.static_chain, calls.trampoline_init,
4034         calls.trampoline_adjust_address.
4035         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4036         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
4037         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
4038         * builtins.c (expand_builtin_setjmp_receiver): Use
4039         targetm.calls.static_chain; only clobber registers.
4040         (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
4041         set up memory attributes properly for the trampoline block.
4042         (expand_builtin_adjust_trampoline): Use
4043         targetm.calls.trampoline_adjust_address.
4044         * calls.c (prepare_call_address): Add fndecl argument.  Use
4045         targetm.calls.static_chain.
4046         * df-scan.c (df_need_static_chain_reg): Remove.
4047         (df_get_entry_block_def_set): Use targetm.calls.static_chain;
4048         consolodate static chain handling.
4049         * doc/tm.texi: Document new hooks.
4050         * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
4051         (init_emit_regs): Don't initialize them.
4052         * expr.h (prepare_call_address): Update decl.
4053         * final.c (profile_function): Use targetm.calls.static_chain.
4054         * function.c (expand_function_start): Likewise.
4055         * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
4056         * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
4057         only clobber registers.
4058         * targhooks.c (default_static_chain): New.
4059         (default_asm_trampoline_template, default_trampoline_init): New.
4060         (default_trampoline_adjust_address): New.
4061         * targhooks.h: Declare them.
4062         * varasm.c (assemble_trampoline_template): Use
4063         targetm.asm_out.trampoline_template.  Make the memory block const
4064         and set its size.
4066         * config/alpha/alpha.c (alpha_trampoline_init): Rename from
4067         alpha_initialize_trampoline.  Make static.  Merge VMS parameter
4068         differences into the TARGET_ABI_OPEN_VMS code block.
4069         (TARGET_TRAMPOLINE_INIT): New.
4070         * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
4071         (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
4072         * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
4073         (INITIALIZE_TRAMPOLINE): Remove.
4075         * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
4076         (TRAMPOLINE_TEMPLATE): Merge with ...
4077         (INITIALIZE_TRAMPOLINE): ... this and move ...
4078         * config/arc/arc.c (arc_trampoline_init): ... here.
4079         (TARGET_TRAMPOLINE_INIT): New.
4081         * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4082         (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
4083         (arm_asm_trampoline_template): New.
4084         (arm_trampoline_init, arm_trampoline_adjust_address): New.
4085         * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
4086         THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
4087         code to arm_asm_trampoline_template.
4088         (TRAMPOLINE_ADJUST_ADDRESS): Move code to
4089         arm_trampoline_adjust_address.
4090         (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
4091         adjust for target hook parameters.
4093         * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
4094         Remove.
4096         * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
4097         * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
4098         (bfin_trampoline_init): Rename from initialize_trampoline;
4099         make static; update for target hook parameters.
4100         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
4101         * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
4102         bfin_asm_trampoline_template.
4103         (INITIALIZE_TRAMPOLINE): Remove.
4105         * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4106         TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
4107         cris_trampoline_init): New.
4108         * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
4109         cris_asm_trampoline_template.
4110         (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
4111         adjust for target hook parameters.
4113         * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
4115         * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4116         TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
4117         fr30_trampoline_init): New.
4118         * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
4119         fr30_asm_trampoline_template.
4120         (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
4121         adjust for target hook parameters.
4123         * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
4124         (frv_trampoline_init): Rename from frv_initialize_trampoline;
4125         make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
4126         * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
4127         * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
4129         * config/h8300/h8300.c (h8300_trampoline_init): New.
4130         (TARGET_TRAMPOLINE_INIT): New.
4131         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
4132         to h8300_trampoline_init and adjust for hook parameters.
4134         * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
4135         * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
4136         (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
4137         make static; adjust for hook parameters.
4138         * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
4140         * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4141         (TARGET_TRAMPOLINE_INIT): New.
4142         (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
4143         * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
4144         iq2000_asm_trampoline_template.
4145         (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
4146         (TRAMPOLINE_CODE_SIZE): New.
4147         (TRAMPOLINE_SIZE): Use it.
4148         (TRAMPOLINE_ALIGNMENT): Follow Pmode.
4150         * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
4151         * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
4152         (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
4153         adjust for hook parameters.
4154         * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
4156         * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
4157         (m32r_trampoline_init): New.
4158         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
4159         m32r_trampoline_init.
4161         * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
4162         (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
4163         make static; update for hook parameters.
4164         * config/m68hc11/m68hc11-protos.h: Update.
4165         * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
4167         * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4168         (TARGET_TRAMPOLINE_INIT): New.
4169         (mcore_function_value): Fix typo.
4170         (mcore_asm_trampoline_template, mcore_trampoline_init): New.
4171         * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
4172         to mcore_asm_trampoline_template.
4173         (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
4175         * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
4176         * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
4177         (mep_trampoline_init): Rename from mep_init_trampoline; make static;
4178         update for hook parameters.
4179         * config/mep/mep-protos.h (mep_init_trampoline): Remove.
4181         * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4182         mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
4183         mips_trampoline_init): New.
4184         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
4185         mips_asm_trampoline_template.
4186         (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
4187         update for hook parameters.
4189         * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4190         (TARGET_TRAMPOLINE_INIT): New.
4191         (mmix_trampoline_size): Remove.
4192         (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
4193         make static.  Remove out-of-date tetra vs octa comment.
4194         (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
4195         make static; update for hook parameters.
4196         * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
4197         (INITIALIZE_TRAMPOLINE): Remove.
4198         (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
4199         (TRAMPOLINE_ALIGNMENT): New.
4200         * gcc/config/mmix/mmix-protos.h: Update.
4202         * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4203         mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
4204         mn10300_trampoline_init): New.
4205         * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
4206         mn10300_asm_trampoline_template.
4207         (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
4209         * config/moxie/moxie.c (moxie_static_chain,
4210         moxie_asm_trampoline_template, moxie_trampoline_init,
4211         TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
4212         TARGET_TRAMPOLINE_INIT): New.
4213         * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
4214         moxie_trampoline_init.
4215         (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
4216         (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
4218         * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
4219         pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
4220         pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
4221         pa_trampoline_adjust_address): New.
4222         * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
4223         pa_asm_trampoline_template.
4224         (TRAMPOLINE_ALIGNMENT): New.
4225         (TRAMPOLINE_CODE_SIZE): Move to pa.c.
4226         (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
4227         adjust for hook parameters.
4228         (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
4230         * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
4231         (TARGET_TRAMPOLINE_INIT): New.
4232         * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
4233         (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
4235         * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
4237         * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
4238         * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
4239         (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
4240         make static; adjust parameters for the hook.
4241         * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
4243         * config/s390/s390.c (s390_asm_trampoline_template): Rename from
4244         s390_trampoline_template; make static.
4245         (s390_trampoline_init): Rename from s390_initialize_trampoline;
4246         make static; adjust for target hook.
4247         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
4248         * config/s390/s390-protos.h: Remove trampoline decls.
4249         * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
4250         (TRAMPOLINE_TEMPLATE): Remove.
4251         (TRAMPOLINE_ALIGNMENT): New.
4253         * config/score/score-protos.h (score_initialize_trampoline): Remove.
4254         * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4255         (TARGET_TRAMPOLINE_INIT): New.
4256         (score_asm_trampoline_template): New.
4257         (score_trampoline_init): Rename from score_initialize_trampoline;
4258         make static; adjust for hook parameters.
4259         * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
4260         score[37]_asm_trampoline_template.
4261         (INITIALIZE_TRAMPOLINE): Remove.
4262         * config/score/score3.c (score3_asm_trampoline_template): New.
4263         (score3_trampoline_init): Rename from score3_initialize_trampoline;
4264         adjust for target hook.
4265         * config/score/score7.c (score7_asm_trampoline_template): New.
4266         (score7_trampoline_init): Rename from score7_initialize_trampoline;
4267         adjust for target hook.
4268         * config/score/score3.h, config/score/score7.h: Update.
4270         * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
4271         * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
4272         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
4273         (sh_trampoline_init): Rename from sh_initialize_trampoline;
4274         make static; adjust for target hook parameters.
4275         (sh_trampoline_adjust_address): New.
4276         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
4277         (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
4279         * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
4280         (sparc32_initialize_trampoline): Rename from
4281         sparc_initialize_trampoline; make static; replace tramp parameter
4282         with m_tramp and update memory accesses.
4283         (sparc64_initialize_trampoline): Similarly.
4284         (sparc_trampoline_init): New.
4285         * config/sparc/sparc-protos.h: Remove trampoline decls.
4286         * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
4287         * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
4289         * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
4290         (array_to_constant): Make ARR parameter const.
4291         (spu_trampoline_init): Rename from spu_initialize_trampoline;
4292         make static; update for hook parameters.
4293         * config/spu/spu-protos.h: Update decls.
4294         * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
4296         * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
4297         from xstormy16_initialize_trampoline; make static; update for
4298         hook parameters.
4299         (TARGET_TRAMPOLINE_INIT): New.
4300         * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
4302         * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4303         (TARGET_TRAMPOLINE_INIT): New.
4304         (v850_can_eliminate): Make static.
4305         (v850_asm_trampoline_template, v850_trampoline_init): New.
4306         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
4307         v850_asm_trampoline_template.
4308         (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
4309         and adjust for target hook parameters.
4311         * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4312         (TARGET_TRAMPOLINE_INIT): New.
4313         (vax_asm_trampoline_template, vax_trampoline_init): New.
4314         * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
4315         vax_asm_trampoline_template.
4316         (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
4318         * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
4319         (TARGET_TRAMPOLINE_INIT): New.
4320         (xtensa_asm_trampoline_template): Rename from
4321         xtensa_trampoline_template; make static.
4322         (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
4323         make static; update for hook parameters.
4324         * config/xtensa/xtensa-protos.h: Remove trampoline decls.
4325         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
4326         (INITIALIZE_TRAMPOLINE): Remove.
4328         * config/i386/i386.c (ix86_function_regparm): Do not issue an
4329         error for nested functions with regparm=3.
4330         (ix86_compute_frame_layout): Adjust frame pointer offset for
4331         ix86_static_chain_on_stack.
4332         (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
4333         (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
4334         don't reset to UNITS_PER_WORD.
4335         (ix86_emit_leave): Adjust ix86_cfa_state.
4336         (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
4337         (ix86_static_chain): New.
4338         (ix86_trampoline_init): Rename from x86_initialize_trampoline;
4339         make static; update for target hook parameters; use ix86_static_chain.
4340         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
4341         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
4342         (INITIALIZE_TRAMPOLINE): Remove.
4343         (TRAMPOLINE_SIZE): Use 24 for 64-bit.
4344         (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
4345         to the end.  Add static_chain_on_stack.
4346         (ix86_static_chain_on_stack): New.
4348         * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
4349         (m68k_output_mi_thunk): Don't use static_chain_rtx.
4350         (m68k_trampoline_init): New.
4351         * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
4352         m68k_trampoline_init and adjust for hook parameters.
4353         * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
4354         (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
4356 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
4358         * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
4359         for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
4361         * reload1.c (reload): Call wrap_constant when substituting
4362         reg for equiv inside of DEBUG_INSNs.
4364         PR bootstrap/41405
4365         * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
4366         add_call_src_coords_attributes, add_high_low_attributes,
4367         gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
4368         gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
4369         dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
4370         when -gdwarf-2 -gstrict-dwarf.
4371         (loc_list_from_tree): Likewise.  Avoid using DWARF4 additions when
4372         -gdwarf-[23] -gstrict-dwarf.
4373         (address_of_int_loc_descriptor, loc_descriptor,
4374         loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
4375         DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
4376         * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
4378 2009-09-22  Richard Guenther  <rguenther@suse.de>
4380         PR tree-optimization/41428
4381         * tree-ssa-ccp.c (ccp_fold_stmt): New function.
4382         (ccp_finalize): Pass it to substitute_and_fold.
4384 2009-09-22  Richard Guenther  <rguenther@suse.de>
4386         * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
4387         (substitute_and_fold): Adjust prototype.
4388         * tree-vrp.c (vrp_evaluate_conditional): Make static.
4389         (simplify_stmt_using_ranges): Likewise.
4390         (fold_predicate_in): Move here from tree-ssa-propagate.c.
4391         (vrp_fold_stmt): New function.
4392         (vrp_finalize): Pass it to substitute_and_fold.
4393         * tree-flow.h (vrp_evaluate_conditional): Remove.
4394         (simplify_stmt_using_ranges): Likewise.
4395         * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
4396         * tree-ssa-copy.c (fini_copy_prop): Likewise.
4397         * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
4398         member.
4399         (fold_predicate_in): Move to tree-vrp.c.
4400         (substitute_and_fold): Use the callback instead of calling into
4401         tree-vrp.c functions directly.
4403 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
4405         * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
4406         comparison warning on rs6000.
4408         PR middle-end/41429
4409         * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
4410         GIMPLE_EH_MUST_NOT_THROW cleanup.
4411         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
4413 2009-09-22  Jack Howarth  <howarth@bromo.med.uc.edu>
4415         PR middle-end/41260
4416         * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
4417         * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
4418         LIB_SPEC for darwin10 and later since it always uses the unwinder in
4419         libSystem which is derived from the gcc 4.2.1 unwinder.
4421 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
4423         PR middle-end/41357
4424         * varasm.c (default_encode_section_info): Copy TLS model into
4425         sym_ref flags regardless of backend support for TLS, for all
4426         model types except TLS_MODEL_EMULATED.
4428 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
4430         PR bootstrap/41404
4431         * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
4432         we can handle it correctly.
4434 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
4436         * doc/install.texi (os2): Remove section.
4438 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
4440         * doc/standards.texi (Objective-C): Adjust two URLs.
4442 2009-09-21  Giuseppe Scrivano <gscrivano@gnu.org>
4444         * tree-tailcall.c (process_assignment): Don't check if a
4445         multiplication or an addition are already present.
4446         (find_tail_calls): Combine multiple additions and multiplications.
4447         (adjust_accumulator_values): Emit accumulators.
4449 2009-09-21  Kai Tietz  <kai.tietz@onevision.com>
4451         * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
4452         xmm register restore.
4454 2009-09-21  Jan Hubicka  <jh@suse.cz>
4456         * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
4457         (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
4458         restore at the end.
4460 2009-09-21  Eric Botcazou  <ebotcazou@adacore.com>
4462         * stor-layout.c (layout_type): Remove obsolete code.
4464 2009-09-20  H.J. Lu  <hongjiu.lu@intel.com>
4466         PR middle-end/41395
4467         * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
4469 2009-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4471         PR middle-end/30789
4472         * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
4473         (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
4474         (fold_builtin_2, do_mpc_arg1): Update accordingly.
4475         * fold-const.c (const_binop): Likewise.
4476         * real.h (do_mpc_arg2): Update prototype.
4478 2009-09-20  Jan Hubicka  <jh@suse.cz>
4480         * dwarf2out.c (add_const_value_attribute): Return true if successful.
4481         (add_location_or_const_value_attribute): Rewrite using
4482         loc_list_from_tree.
4483         (tree_add_const_value_attribute): Return true if successful.
4484         (tree_add_const_value_attribute_for_decl): Likewise.
4486         * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
4487         (loc_descriptor): ... here;
4488         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
4489         (cst_pool_loc_descr): Break out from ...; do not reffer constant
4490         pool items that was not marked for output.
4491         (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
4492         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
4493         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
4494         handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
4495         IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
4496         CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
4497         DW_OP_stack_value to get address of items that are not available
4498         as addresses.
4499         (dw_loc_list): Handle single element lists correctly.
4501 2009-09-20  Kai Tietz  <kai.tietz@onevision.com>
4502             Pascal Obry  <obry@adacore.com>
4504         * unwind-dw2-fde.c (classify_object_over_fdes):
4505         Cast the constant 1 to _Unwind_Ptr.
4506         (add_fdes): Likewise.
4507         (linear_search_fdes): Likewise.
4509 2009-09-20  Eric Botcazou  <ebotcazou@adacore.com>
4511         * stor-layout.c (set_sizetype): Avoid useless type copy.
4513 2009-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
4515         * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
4516         feature check.
4517         (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
4518         * configure, config.in: Regenerate.
4519         * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
4520         DW_EH_PE_absptr.
4521         * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
4522         (ASM_PREFERRED_EH_DATA_FORMAT): Define.  Use MIPS_EH_INDIRECT
4523         for global data if the output could be used in a shared library.
4524         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
4525         to 0 if TARGET_WRITABLE_EH_FRAME.
4527 2009-09-20  Paolo Bonzini <bonzini@gnu.org>
4529         PR rtl-optimization/39886
4530         * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
4531         just when insn is equal to BB_END (bb).
4533 2009-09-19  Adam Nemet  <anemet@caviumnetworks.com>
4535         * config/mips/mips.opt (mrelax-pic-calls): New option.
4536         * config/mips/mips.c (mips_strip_unspec_address): Move it up in
4537         the file.
4538         (mips_unspec_call): Change "unspec_call" expander into this.
4539         (mips_strip_unspec_call): New function.
4540         (mips_got_load): Call mips_unspec_call instead of
4541         gen_unspec_call<mode>.
4542         (mips16_build_call_stub): Fix comment for fp_code.  Adjust call to
4543         MIPS_CALL.
4544         (mips_cfg_in_reorg): New function.
4545         (mips16_lay_out_constants): Use it to decide whether to call
4546         CFG-aware insn splitting.
4547         (r10k_insert_cache_barriers): Move CFG set-up code from here to
4548         mips_reorg.  Move DF set-up code from here ...
4549         (mips_df_reorg): ... to here.  Call r10k_insert_cache_barriers
4550         from here.
4551         (mips_reorg): Call mips_df_reorg instead of
4552         r10k_insert_cache_barriers.  Move CFG set-up code here from
4553         r10k_insert_cache_barriers.
4554         (mips_call_expr_from_insn): New function.
4555         (mips_pic_call_symbol_from_set): Likewise.
4556         (mips_find_pic_call_symbol): Likewise.
4557         (mips_annotate_pic_call_expr): Likewise.
4558         (mips_get_pic_call_symbol): Likewise.
4559         (mips_annotate_pic_calls): Likewise.
4560         (mips_override_options): Disable -mrelax-pic-calls unless PIC
4561         calls are used.
4562         (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
4563         * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
4564         * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
4565         directive.
4566         * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
4567         (unspec_call<mode>): Remove it.
4568         (sibcall_internal, sibcall_value_internal,
4569         sibcall_value_multiple_internal, call_internal, call_split,
4570         call_value_internal, call_value_split,
4571         call_value_multiple_internal, call_value_multiple_split): Pass
4572         SIZE_OPNO to MIPS_CALL.
4573         (call_internal_direct, call_direct_split,
4574         call_value_internal_direct, call_value_direct_split): Pass -1 as
4575         SIZE_OPNO to MIPS_CALL.
4576         * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
4577         * configure: Regenerate.
4578         * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
4579         and -mno-relax-pic-calls.
4580         (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
4582 2009-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4584         PR bootstrap/35619
4585         * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
4586         in the directory this rule is called from, rather than the
4587         toplevel 'gcc' directory, to fix in-tree build.
4589 2009-09-19  Chris Demetriou  <cgd@google.com>
4591         PR preprocessor/28435:
4592         * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
4593         to cpplib that the preprocessor output is needed.
4595 2009-09-19  Jakub Jelinek  <jakub@redhat.com>
4597         * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
4598         *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
4599         *return_and_restore_fpregs_<mode>,
4600         *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
4602         PR bootstrap/41397
4603         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
4604         instead of assuming it has always a REG inside of it.
4606 2009-09-18  Gerald Pfeifer  <gerald@pfeifer.com>
4608         * config/freebsd.h: Update comment on types.
4609         (WINT_TYPE): Define.
4611 2009-09-18  Jason Merrill  <jason@redhat.com>
4613         * c.opt: Add -fno-deduce-init-list.
4615 2009-09-18  Neil Vachharajani  <nvachhar@google.com>
4617         * value-prof.c (interesting_stringop_to_profile_p): Added output
4618         argument to indicate which parameter is the size parameter.
4619         * value-prof.c (gimple_stringop_fixed_value): Use
4620         INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
4621         * value-prof.c (gimple_stringops_transform): Update call sites to
4622         INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
4624 2009-09-18  Uros Bizjak  <ubizjak@gmail.com>
4626         PR target/38288
4627         From David Binderman <dcb314@hotmail.com>:
4628         * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
4629         local variable f.  Remove stale comments.
4630         (ix86_compute_frame_layout): Remove useless local variable total_size.
4631         Remove #if 0'd code.
4632         (legitimate_address_p): Remove useless local variables
4633         reason_rtx and reason.
4634         (ix86_split_copysign_const): Remove useless local variable op1.
4635         (scale_counter): Remove useless local variable piece_size_mask.
4637 2009-09-18  Jakub Jelinek  <jakub@redhat.com>
4639         * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
4640         output decl.
4642 2009-09-17  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
4644         PR target/40913
4645         * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
4647 2009-09-17  Jakub Jelinek  <jakub@redhat.com>
4649         * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
4650         TYPE_STUB_DECL.
4652 2009-09-17  Alexandre Oliva  <aoliva@redhat.com>
4654         * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
4655         DW_OP_implicit_value even without dwarf_version 4.
4657 2009-09-17  Jan Hubicka  <jh@suse.cz>
4659         * dwarf2out.c: Include tree-pass.h and gimple.h.
4660         (loc_list_plus_const): New function.
4661         (loc_descriptor_from_tree_1): Rename to ...
4662         (loc_descriptor_from_tree): ... remove original.
4663         (loc_list_from_tree): New function.
4664         (add_AT_location_description): Accept location list.
4665         (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
4666         (concatn_mem_loc_descriptor): Remove.
4667         (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
4668         returning NULL.
4669         (secname_for_decl): Move up.
4670         (hidden_reference_p): New function; break out from ...
4671         (loc_by_refernece): ... here; move up.
4672         (dw_loc_list): New function.
4673         (single_element_loc_list): New function.
4674         (single_element_loc_list_p): New function.
4675         (add_loc_descr_to_each): New function.
4676         (add_loc_list): New function.
4677         (loc_descr_from_tree): Make wraper of loc_list_from_tree.
4678         (loc_list_from_tree): Reroganized from loc_descr_from_tree;
4679         add diagnostics why expansion failed.
4680         (add_location_or_const_value_attribute): Support location lists.
4681         (add_bound_info): Likewise.
4682         (descr_info_loc): Update call of loc_descriptor_from_tree.
4683         (gen_variable_die): Work on location lists.
4684         * final.c (pass_final): Add dump file.
4685         * Makefile.in (dwarf2out.o): Add new dependencies.
4687 2009-09-17  Janis Johnson  <janis187@us.ibm.com>
4689         PR c/41049
4690         * real.c decimal_from_integer, decimal_integer_string): New.
4691         (real_from_integer): Use them as special case for decimal float.
4692         * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
4693         (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
4694         Do not append zero after the decimal point in string to convert.
4696 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
4698         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
4699         for ARRAY_REFs.  Use array_ref_{low,up}_bound to determine bounds.
4701 2009-09-17  Martin Jambor  <mjambor@suse.cz>
4703         * common.opt (fipa-sra): New switch.
4704         * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
4705         * timevar.def (TV_IPA_SRA): New timevar.
4706         * params.def (ipa-sra-ptr-growth-factor): New parameter.
4707         * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
4708         * tree-sra.c: Include cgraph.c.
4709         (enum sra_mode): Added SRA_MODE_EARLY_IPA.
4710         (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
4711         and grp_not_necessarilly_dereferenced.
4712         (func_param_count): New variable.
4713         (encountered_apply_args): New variable.
4714         (bb_dereferences): New variable.
4715         (final_bbs): New variable.
4716         (no_accesses_representant): New variable.
4717         (no_accesses_p): New function.
4718         (dump_access): Dump the new fields.
4719         (sra_initialize): Set encountered_apply_args to false.
4720         (get_ssa_base_param): New function.
4721         (mark_parm_dereference): New function.
4722         (create_access): Caring for INIDRECT_REFs and different handling of
4723         varialble length accesses in early IPA SRA.  Store the stmt - a new
4724         parameter - to the new access.
4725         (build_access_from_expr_1): New parameter stmt, passed to
4726         create_access.  Handle INDIRECT_REFs.
4727         (build_access_from_expr): Pass the current statement to
4728         build_access_from_expr_1.
4729         (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
4730         passes.
4731         (build_accesses_from_assign): Pass the current statement to
4732         build_access_from_expr_1.  Do not create assign links in IPA-SRA.
4733         (scan_function): Call handle_ssa_defs on phi nodes.  Set bits in
4734         final_bbs when necessary.  Check for calls to __builtin_apply_args.
4735         Fixup EH info if anythng was changed.
4736         (is_unused_scalar_param): New function.
4737         (ptr_parm_has_direct_uses): New function.
4738         (find_param_candidates): New function.
4739         (mark_maybe_modified): New function.
4740         (analyze_modified_params): New function.
4741         (propagate_dereference_distances): New function.
4742         (dump_dereferences_table): New function.
4743         (analyze_caller_dereference_legality): New function.
4744         (unmodified_by_ref_scalar_representative): New function.
4745         (splice_param_accesses): New function.
4746         (decide_one_param_reduction): New function.
4747         (enum ipa_splicing_result): New type.
4748         (splice_all_param_accesses): New function.
4749         (get_param_index): New function.
4750         (turn_representatives_into_adjustments): New function.
4751         (analyze_all_param_acesses): New function.
4752         (get_replaced_param_substitute): New function.
4753         (get_adjustment_for_base): New function.
4754         (replace_removed_params_ssa_names): New function.
4755         (sra_ipa_reset_debug_stmts): New function.
4756         (sra_ipa_modify_expr): New function.
4757         (sra_ipa_modify_assign): New function.
4758         (convert_callers): New function.
4759         (modify_function): New function.
4760         (ipa_sra_preliminary_function_checks): New function.
4761         (ipa_early_sra): New function.
4762         (ipa_early_sra_gate): New function.
4763         (pass_early_ipa_sra): New variable.
4764         * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
4766 2009-09-17  Michael Matz  <matz@suse.de>
4768         PR middle-end/41347
4769         * tree.c (build_type_attribute_qual_variant): Export.
4770         * tree.h (build_type_attribute_qual_variant): Declare.
4771         * tree-inline.c (remap_type_1): Use it to build variants with
4772         the original qualifiers and attributes.
4774 2009-09-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4776         * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
4777         without a fallthrough edge.
4779 2009-09-16  DJ Delorie  <dj@redhat.com>
4781         * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
4782         chip and ignore the "fast_interrupt" attribute if so.
4784 2009-09-16  Richard Henderson  <rth@redhat.com>
4786         PR middle-end/41360
4787         * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
4788         barrier fix.
4790 2009-09-16  Richard Henderson  <rth@redhat.com>
4792         PR target/41246
4793         * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
4794         is set only if DECL_NO_STATIC_CHAIN is unset.
4795         * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
4796         (FOR_EACH_NEST_INFO): New.
4797         (walk_all_functions): Use it.
4798         (finalize_nesting_tree): Likewise.
4799         (unnest_nesting_tree): Likewise.
4800         (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
4801         (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
4802         (convert_gimple_call): Early out if gimple_call_chain already set.
4803         (convert_all_function_calls): Iterate until no new functions
4804         require a static chain.
4805         (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
4806         when building a trampoline.  Use dump_function_to_file instead
4807         of dump_function.
4808         (lower_nested_functions): Open dump_file.  Validate that decls
4809         that have DECL_NO_STATIC_CHAIN from the front end don't have that
4810         bit reset by this pass.
4812 2009-09-16  Michael Matz  <matz@suse.de>
4814         PR fortran/41212
4815         * tree.h (struct tree_decl_common): Add decl_restricted_flag,
4816         shorten decl_common_unused.
4817         (DECL_RESTRICTED_P): New accessor.
4818         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
4819         to disambiguate marked decls and restrict pointers.
4821 2009-09-16  Richard Henderson  <rth@redhat.com>
4823         PR middle-end/41360
4824         * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
4826 2009-09-16  Jakub Jelinek  <jakub@redhat.com>
4828         * integrate.c (set_block_abstract_flags): Call
4829         set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
4831 2009-09-16  Richard Guenther  <rguenther@suse.de>
4833         PR middle-end/34011
4834         * tree-flow-inline.h (may_be_aliased): Compute readonly variables
4835         as non-aliased.
4837 2009-09-16  DJ Delorie  <dj@redhat.com>
4838             Kaz Kojima  <kkojima@gcc.gnu.org>
4840         * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
4841         (sh_expand_prologue): Update calls to output_stack_adjust.
4842         (sh_expand_epilogue): Likewise.
4844 2009-09-15  Adam Nemet  <anemet@caviumnetworks.com>
4846         PR bootstrap/41349
4847         * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
4848         trying to limit the extent of searches in the insn stream.
4850 2009-09-15  Nathan Froyd  <froydnj@codesourcery.com>
4851             Jakub Jelinek  <jakub@redhat.com>
4853         PR target/41175
4854         PR target/40677
4855         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
4856         problem.
4857         (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
4858         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
4859         (rs6000_savres_strategy): Always save FP registers inline if the
4860         target doesn't support hardware double-precision.  Set the above
4861         bits in return value when needed.
4862         (rs6000_savres_routine_sym): Fix computation for cache selector.
4863         Mark the generated symbol as a function.  Rename exitp argument to
4864         lr.  Move code for determining the name of the symbol...
4865         (rs6000_savres_routine_name): ...here.  New function.  Add cases for
4866         getting the names right on AIX and 64-bit Linux.
4867         (savres_routine_name): New variable.
4868         (rs6000_make_savres_rtx): Rename exitp argument to lr.  Don't assert
4869         lr isn't set when savep.  Use r12 resp. r1 instead of r11 depending
4870         on what the target routine uses as a base register.  If savep && lr
4871         describe saving of r0 into memory slot.
4872         (rs6000_emit_prologue): Correct use of call_used_regs.  Fix out of
4873         line calls for AIX ABI.
4874         (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
4875         determine FP save/restore functions.
4876         (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
4877         frame_reg_rtx != sp_reg_rtx.  Use gen_add3_insn instead of
4878         gen_addsi3.
4879         (rs6000_emit_epilogue): Adjust computation of restore_lr.
4880         Duplicate restoration of LR and execute the appropriate one
4881         depending on whether GPRs are being restored inline.  Set r11 from
4882         offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
4883         r11, adjust sp_offset.  Use gen_add3_insn instead of gen_addsi3.
4884         Fix out of line calls for AIX ABI.
4885         * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
4886         New insn.
4887         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
4888         register 11.
4889         (*restore_gpregs_spe): Likewise.
4890         (*return_and_restore_gpregs_spe): Likewise.
4891         * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
4892         Define to empty string unconditionally.
4893         * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
4894         Define to empty string unconditionally.
4895         (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
4896         !TARGET_64BIT.
4898 2009-09-15  Jan Hubicka  <jh@suse.cz>
4900         * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
4901         * params.def (inline-insns-auto): Likewise.
4903 2009-09-15  Martin Jambor  <mjambor@suse.cz>
4905         * ipa-inline.c (estimate_function_body_sizes): Dump info about
4906         individual statements only at TDF_DETAILS dump level.  Format
4907         source for 80 characters per line.
4909 2009-09-15  Christian Bruel  <christian.bruel@st.com>
4911         * regrename.c (do_replace): Update REG_DEAD notes.
4913 2009-09-15  Revital Eres  <eres@il.ibm.com>
4915         * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
4916         * targhooks.c (default_builtin_support_vector_misalignment):
4917         New builtin function.
4918         * targhooks.h (default_builtin_support_vector_misalignment):
4919         Declare.
4920         * target.h (builtin_support_vector_misalignment):
4921         New field in struct gcc_target.
4922         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
4923         new builtin function.
4924         * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
4925         Define.
4926         * config/rs6000/rs6000.c
4927         (rs6000_builtin_support_vector_misalignment): New function.
4928         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
4930 2009-09-15  Jie Zhang  <jie.zhang@analog.com>
4932         * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
4933         instead of INSN_P.
4934         (bfin_optimize_loop): Likewise.
4935         (bfin_gen_bundles): Likewise.
4936         (workaround_speculation): Likewise.
4937         (find_load): Return NULL_RTX for debug_insn.
4939 2009-09-15  Uros Bizjak  <ubizjak@gmail.com>
4941         * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
4942         (sminsf3): Ditto.
4944 2009-09-14  DJ Delorie  <dj@redhat.com>
4946         * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
4947         * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
4948         VLIW mode.
4950 2009-09-14  Richard Henderson  <rth@redhat.com>
4951             Jakub Jelinek  <jakub@redhat.com>
4953         * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
4954         * cfgbuild.c (make_edges): Handle asm goto.
4955         * cfglayout.c (fixup_reorder_chain): Likewise.
4956         * cfgrtl.c (patch_jump_insn): Likewise.
4957         * gimple-pretty-print.c (dump_gimple_asm): Likewise.
4958         * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
4959         (gimple_build_asm_vec): Add and use labels parameter.
4960         (gimple_build_asm): Remove.
4961         (walk_gimple_asm): Walk labels too.
4962         * gimple.def (GIMPLE_ASM): Update docs.
4963         * gimple.h: Update decls.
4964         (struct gimple_statement_asm): Change nc to use unsigned char;
4965         add nl member.
4966         (gimple_asm_nlabels): New.
4967         (gimple_asm_label_op, gimple_asm_set_label_op): New.
4968         * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
4969         into gimple_build_asm_vec.
4970         * jump.c (mark_jump_label_asm): New.
4971         (mark_jump_label): Use it.
4972         (redirect_jump_1): Handle asm goto.
4973         (invert_jump_1): Soft fail if X is null.
4974         * recog.c (extract_asm_operands): New.
4975         (asm_noperands): Use it; handle asm labels.
4976         (decode_asm_operands): Use extract_asm_operands.
4977         (asm_operand_ok): Properly handle empty string.
4978         * reg-stack.c (get_asm_operands_in_out): Rename from
4979         get_asm_operand_n_inputs; use extract_asm_operands; return both
4980         inputs and outputs by reference; update all callers.
4981         * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
4982         * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
4983         (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
4984         (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
4985         (extract_asm_operands): Declare.
4986         * stmt.c (expand_asm_operands): Add and use labels parameter.
4987         (check_unique_operand_names): Likewise.
4988         (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
4989         (expand_asm_stmt): Handle asm labels.
4990         * tree-cfg.c (make_gimple_asm_edges): New.
4991         (make_edges): Use it.
4992         (cleanup_dead_labels): Handle asm labels.
4993         (is_ctrl_altering_stmt): Likewise.
4994         (gimple_redirect_edge_and_branch): Likewise.
4995         * tree.def (ASM_EXPR): Add 5th operand.
4996         * tree.h (ASM_LABELS): New.
4997         (resolve_asm_operand_names): Update decl.
4999         * c-parser.c (c_parser_asm_statement): Parse asm goto.
5000         (c_parser_asm_goto_operands): New.
5001         * c-tree.h (build_asm_expr): Update decl.
5002         * c-typeck.c (build_asm_expr): Add and use labels parameter.
5003         * doc/extend.texi: Document asm goto.
5005 2009-09-14  Richard Henderson  <rth@redhat.com>
5007         * except.h: Update declarations.
5008         (struct pointer_map_t): Forward declare.
5009         (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
5010         (struct eh_landing_pad_d, eh_landing_pad): New.
5011         (struct eh_catch_d, eh_catch): New.
5012         (struct eh_region_d): Remove next_region_sharing_label, aka,
5013         label, tree_label, landing_pad, post_landing_pad, resume,
5014         may_contain_throw.  Rename region_number to index.  Remove
5015         u.eh_catch, u.eh_throw.  Rename u.eh_try.eh_catch to first_catch.
5016         Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
5017         (VEC(eh_landing_pad,gc)): New.
5018         (struct eh_status): Remove last_region_number.  Add lp_array,
5019         throw_stmt_table, ttype_data, ehspec_data.
5020         (ehr_next, FOR_ALL_EH_REGION_AT): New.
5021         (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
5022         * except.c (lang_protect_cleanup_actions): Return tree.
5023         (struct ehl_map_entry): Remove.
5024         (init_eh_for_function): Push zero entries for region and lp_array.
5025         (gen_eh_region): Add to region_array immediately.
5026         (gen_eh_region_catch): Operate on eh_catch objects.
5027         (gen_eh_landing_pad): New.
5028         (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
5029         (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
5030         (get_eh_region_from_number, get_eh_region_from_number_fn): New.
5031         (get_eh_landing_pad_from_number_fn): New.
5032         (get_eh_landing_pad_from_number): New.
5033         (get_eh_region_from_lp_number_fn): New.
5034         (get_eh_region_from_lp_number): New.
5035         (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
5036         (get_exception_pointer, get_exception_filter): Remove.
5037         (collect_eh_region_array, can_be_reached_by_runtime): Remove.
5038         (current_function_has_exception_handlers): Simplify.
5039         (bring_to_root, eh_region_replaceable_by_p): Remove.
5040         (replace_region, hash_type_list, hash_eh_region): Remove.
5041         (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
5042         (label_to_region_map, num_eh_regions): Remove.
5043         (get_next_region_sharing_label, must_not_throw_labels): Remove.
5044         (find_exception_handler_labels): Remove.
5045         (duplicate_eh_regions_0, find_prev_try): Remove.
5046         (struct duplicate_eh_regions_data): New.
5047         (duplicate_eh_regions_1): Rewrite.
5048         (duplicate_eh_regions): Return a pointer map instead of an
5049         integer offset.
5050         (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
5051         (redirect_eh_edge_to_label): Remove.
5052         (eh_region_outermost): Rewrite using eh_region pointers
5053         instead of integers.
5054         (add_ttypes_entry): Update for ttype_data move to eh_status.
5055         (add_ehspec_entry): Rewrite with VEC instead of varray.
5056         (assign_filter_values): Likewise.  Export.
5057         (build_post_landing_pads, connect_post_landing_pads): Remove.
5058         (dw2_build_landing_pads): Rewrite to use lp_array.
5059         (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
5060         (sjlj_assign_call_site_values): Rewrite to use lp_array.
5061         (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
5062         (sjlj_mark_call_sites): Update for landing pad numbers.
5063         (finish_eh_generation): Rewrite.
5064         (gate_handle_eh): Do nothing for no eh tree.
5065         (pass_rtl_eh): Move up near finish_eh_generation.
5066         (remove_eh_landing_pad): New.
5067         (remove_eh_handler): Export.
5068         (remove_eh_region, remove_eh_handler_and_replace): Remove.
5069         (for_each_eh_label): Rewrite to use lp_array.
5070         (make_reg_eh_region_note): New.
5071         (make_reg_eh_region_note_nothrow_nononlocal): New.
5072         (insn_could_throw_p): New.
5073         (copy_reg_eh_region_note_forward): New.
5074         (copy_reg_eh_region_note_backward): New.
5075         (check_handled, add_reachable_handler): Remove.
5076         (reachable_next_level, foreach_reachable_handler): Remove.
5077         (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
5078         (get_eh_region_and_lp_from_rtx): New.
5079         (get_eh_region_from_rtx): New.
5080         (can_throw_internal_1, can_throw_external_1): Remove.
5081         (can_throw_internal): Use get_eh_region_from_rtx.
5082         (can_throw_external): Use get_eh_region_and_lp_from_rtx.
5083         (insn_nothrow_p, can_nonlocal_goto): New.
5084         (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
5085         (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
5086         (add_action_record): Use VEC not varray.
5087         (collect_one_action_chain): Update for eh_region changes.
5088         (convert_to_eh_region_ranges): Make static.  Use VEC not varray.
5089         Use get_eh_region_and_lp_from_rtx.
5090         (gate_convert_to_eh_region_ranges): New.
5091         (pass_convert_to_eh_region_ranges): Use it.
5092         (push_uleb128, push_sleb128): Use VEC not varray.
5093         (output_one_function_exception_table): Likewise.
5094         (dump_eh_tree): Update for eh_region changes.
5095         (verify_eh_tree): Likewise.
5096         (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
5097         * tree-eh.c: Include target.h.
5098         (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
5099         Don't disallow GIMPLE_RESX; adjust argument check.
5100         (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
5101         (record_stmt_eh_region): Update for landing pad numbers;
5102         generate a landing pad if necessary.
5103         (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
5104         (remove_stmt_from_eh_lp_fn): Similarly.
5105         (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
5106         Update for lp numbers; don't special case missing throw_stmt_table.
5107         (lookup_expr_eh_lp): Similarly.
5108         (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
5109         (eh_seq, eh_region_may_contain_throw): New.
5110         (struct leh_state): Add ehp_region.
5111         (struct leh_tf_state): Remove eh_label.
5112         (emit_post_landing_pad): New.
5113         (emit_resx, emit_eh_dispatch): New.
5114         (note_eh_region_may_contain_throw): New.
5115         (frob_into_branch_around): Take eh_region not eh label;
5116         emit eh code into eh_seq.
5117         (honor_protect_cleanup_actions): Early exit for no actions.  Don't
5118         handle EXC_PTR_EXPR, FILTER_EXPR.  Use gimple_build_eh_must_not_throw,
5119         lower_eh_must_not_throw.  Emit code to eh_seq.
5120         (lower_try_finally_nofallthru): Emit eh code to eh_seq.
5121         (lower_try_finally_onedest): Likewise.
5122         (lower_try_finally_copy): Likewise.
5123         (lower_try_finally_switch): Likewise.
5124         (lower_try_finally): Initialize ehp_region.
5125         (lower_catch): Update for eh_catch objects.
5126         (lower_eh_filter): Don't handle must_not_throw.
5127         (lower_eh_must_not_throw): New.
5128         (lower_cleanup): Don't set eh_label.
5129         (lower_eh_constructs_2): Resolve eh builtins.
5130         Handle GIMPLE_EH_MUST_NOT_THROW.
5131         (lower_eh_constructs): Initialize eh_region_may_contain_throw.
5132         Add eh_seq to the end of the function body.
5133         (make_eh_dispatch_edges): New.
5134         (make_eh_edge): Remove.
5135         (make_eh_edges): Simplify for landing pads.
5136         (redirect_eh_edge_1): New.
5137         (redirect_eh_edge): Use it.
5138         (redirect_eh_dispatch_edge): New.
5139         (stmt_could_throw_p): Use a switch.  Allow RESX.
5140         (stmt_can_throw_external): Use lookup_stmt_eh_lp.
5141         (stmt_can_throw_internal): Likewise.
5142         (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
5143         (maybe_clean_or_replace_eh_stmt): Update for landing pads.
5144         (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
5145         (gate_refactor_eh): New.
5146         (pass_refactor_eh): Use it.
5147         (lower_resx, execute_lower_resx, pass_lower_resx): New.
5148         (lower_eh_dispatch, execute_lower_eh_dispatch): New.
5149         (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
5150         (remove_unreachable_handlers): Rename from
5151         tree_remove_unreachable_handlers; rewrite for landing pads;
5152         call remove_eh_handler directly.
5153         (remove_unreachable_handlers_no_lp): New.
5154         (unsplit_eh, unsplit_all_eh): New.
5155         (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
5156         (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
5157         (cleanup_empty_eh_unsplit): New.
5158         (cleanup_empty_eh): Rewrite.
5159         (cleanup_all_empty_eh): New.
5160         (execute_cleanup_eh): Rename from cleanup_eh.  Remove unreachable
5161         handlers first.  Use unsplit_all_eh, cleanup_all_empty_eh.
5162         (gate_cleanup_eh): New.
5163         (pass_cleanup_eh): Use it.
5164         (verify_eh_edges): Move later in file.  Expect one EH edge.
5165         (verify_eh_dispatch_edge): New.
5167         * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
5168         (gtype-desc.o): Add TARGET_H.
5169         (tree.o): Use EXCEPT_H, not except.h.
5170         (cfgbuild.o): Add EXPR_H.
5171         (GTFILES): Add vecprim.h.
5172         * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
5173         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
5174         * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
5175         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
5176         * calls.c (emit_call_1): Use make_reg_eh_region_note.
5177         * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
5178         calls to can_throw_internal.
5179         (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
5180         (make_edges): Don't handle RESX; use can_nonlocal_goto.
5181         * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
5182         (expand_gimple_stmt): Use make_reg_eh_region_note.
5183         (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
5184         (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
5185         or find_exception_handler_labels.
5186         * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX.  Assert
5187         there is exacly one EH edge.  Use can_nonlocal_goto and
5188         can_throw_internal.
5189         * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
5190         (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
5191         * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
5192         * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
5193         * dce.c (deletable_insn_p_1): Don't test may_trap_p.
5194         (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
5195         * dse.c (scan_insn): Use insn_could_throw_p.
5196         * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
5197         * expr.c (expand_expr_real): Use make_reg_eh_region_note.
5198         (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
5199         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
5200         EXC_PTR_EXPR or FILTER_EXPR.
5201         (tree_expr_nonzero_warnv_p): Likewise.
5202         * function.h: Include vecprim.h, not varray.h
5203         (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
5204         move ttype_data and ehspec_data members to struct eh_status; change
5205         action_record_data member to a VEC.
5206         * gcse.c (hash_scan_set): Use can_throw_internal.
5207         * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
5208         * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
5209         * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
5210         (block_may_fallthru): Don't handle RESX_EXPR.
5211         * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
5212         (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
5213         (dump_gimple_stmt): Dump landing pad information with TDF_EH;
5214         handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
5215         * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
5216         GIMPLE_EH_DISPATCH, GIMPLE_RESX.
5217         (gimple_size): Likewise.
5218         (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
5219         (gimple_build_resx): Use gimple_build_with_ops.
5220         (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
5221         (is_gimple_val): Likewise.
5222         (is_gimple_stmt): Remove RESX_EXPR.
5223         * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
5224         (GIMPLE_RESX): Reorder with other EH constructs.
5225         * gimple.h (struct gimple_statement_eh_mnt): New.
5226         (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
5227         (gimple_eh_filter_must_not_throw): Remove.
5228         (gimple_eh_filter_set_must_not_throw): Remove.
5229         (gimple_eh_must_not_throw_fndecl): New.
5230         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
5231         (is_gimple_resx): New.
5232         * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
5233         Don't copy EH_FILTER_MUST_NOT_THROW.
5234         * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
5235         * ipa-inline.c (estimate_function_body_sizes): Don't try to
5236         handle must_not_throw_labels specially.
5237         * ipa-pure-const.c (check_call): Update debug statement for LP.
5238         * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
5239         * ipa-utils.c (get_base_var): Likewise.
5240         * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
5241         * lower-subreg.c (move_eh_region_note): Remove.
5242         (resolve_simple_move): Use copy_reg_eh_region_note_forward.
5243         * omp-low.c (new_omp_context): Update for eh_lp_nr.
5244         (create_task_copyfn): Likewise.
5245         (maybe_catch_exception): Use gimple_build_eh_filter.
5246         * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
5247         REG_EH_REGION.  Use make_reg_eh_region_note_nothrow_nononlocal.
5248         * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
5249         and pass_lower_resx.
5250         * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
5251         * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
5252         can_throw_internal, can_nonlocal_goto.
5253         * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
5254         copy_reg_eh_region_note_forward.
5255         (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
5256         (emit_output_reload_insns): Likewise.
5257         (copy_eh_notes): Remove.
5258         * rtl.def (RESX): Remove.
5259         * rtl.h: Update declarations.
5260         * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
5261         * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
5262         (update_eh_label): Remove.
5263         (cleanup_dead_labels_eh): New.
5264         (cleanup_deal_labels): Use it instead of update_eh_label.
5265         (gimple_merge_blocks): Update landing pad data structure when
5266         removing a landing pad label.
5267         (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
5268         test; handle GIMPLE_EH_MUST_NOT_THROW.
5269         (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
5270         (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
5271         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
5272         (verify_stmt): Likewise.  Verify landing pads.
5273         (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
5274         (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
5275         (struct move_stmt_d): Add eh_map.
5276         (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
5277         (move_stmt_r): Remap eh region numbers in builtin calls,
5278         resx and eh_dispatch.
5279         (move_block_to_fn): Remove eh_offset parameter.  Use
5280         maybe_duplicate_eh_stmt_fn.
5281         (find_outermost_region_in_block): Operate on eh_region pointers
5282         instead of region numbers.
5283         (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
5284         duplicate_eh_regions.
5285         * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
5286         test earlier.  Disallow EH landing pads.
5287         * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
5288         * tree-flow.h: Update declarations.
5289         (struct tree_ann_common_d): Replace rn with lp_nr.
5290         * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
5291         (remap_eh_region_nr, remap_eh_region_tree_nr): New.
5292         (remap_gimple_stmt): Remap eh region numbers in builtin calls,
5293         resx and eh_dispatch.
5294         (copy_bb): Use maybe_duplicate_eh_stmt_fn.
5295         (copy_edges_for_bb): Use make_eh_dispatch_edges.
5296         (copy_cfg_body): Expect eh_map instead of eh_region_offset
5297         from duplicate_eh_regions.
5298         (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
5299         update RESX; handle EH_DISPATCH.
5300         (expand_call_inline): Set eh_lp_nr, not eh_region.
5301         (maybe_inline_call_in_expr): Likewise.
5302         * tree-inline.h (struct copy_body_data): Replace eh_region with
5303         eh_lp_nr, eh_region_offset with eh_map.
5304         * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
5305         * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
5306         * tree-pretty-print.c (dump_generic_node): Don't handle
5307         EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
5308         * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
5309         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
5310         EXC_PTR_EXPR, FILTER_EXPR.
5311         * tree-ssa-operands.c (get_expr_operands): Likewise.
5312         * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
5313         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5314         (ao_ref_init_from_vn_reference): Likewise.
5315         * tree-ssa-sink.c (statement_sink_location): Likewise.
5316         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
5317         (mark_virtual_phi_result_for_renaming): Export.  Tidy.
5318         * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
5319         EXC_PTR_EXPR, FILTER_EXPR.
5320         (is_exception_related): Remove.
5321         (compute_avail): Don't call it.
5322         * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
5323         * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
5324         (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
5325         (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
5326         Build EH builtins.
5327         (build_resx): Remove.
5328         * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
5329         * tree.h: Update declarations.
5330         (EH_FILTER_MUST_NOT_THROW): Remove.
5331         (struct tree_label_decl): Add eh_landing_pad_nr.
5332         (EH_LANDING_PAD_NR): New.
5333         * value-prof.c (gimple_ic): Tidy variable names.  Update for
5334         landing pad numbers.
5335         (gimple_stringop_fixed_value): Tidy variable names.  Assert
5336         that neither call stmt can throw.
5337         * vecprim.h (uchar): New.
5338         (VEC(uchar,heap), VEC(uchar,gc)): New.
5340         * c-common.c (c_define_builtins): Update call to
5341         build_common_builtin_nodes.
5342         * c-parser.c (c_parse_file): Don't call
5343         default_init_unwind_resume_libfunc.
5345 2009-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
5347         * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
5348         (mips_cprestore_address_p): Likewise.
5349         (mips_save_gp_to_cprestore_slot): Likewise.
5350         (mips_restore_gp): Rename to...
5351         (mips_restore_gp_from_cprestore_slot): ...this.
5352         (mips_must_initialize_gp_p): Declare.
5353         (mips_emit_save_slot_move): Likewise.
5354         (mips_output_load_label): Return nothing.
5355         (mips_eh_uses): Declare.
5356         * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
5357         (TARGET_CPRESTORE_DIRECTIVE): New macro.
5358         (TARGET_ABSOLUTE_JUMPS): Likewise.
5359         (EH_USES): Likewise.
5360         (FIRST_PSEUDO_REGISTER): Update comment.
5361         (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
5362         (MIPS_CALL): ...here.
5363         (REGISTER_NAMES): Add $cprestore.
5364         * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
5365         Add load_label_length, has_inflexible_gp_insn_p,
5366         has_flexible_gp_insn_p, must_initialize_gp_p and
5367         must_restore_gp_when_clobbered_p.
5368         (mips_expand_call): Don't generate split instructions here.
5369         (mips_split_call): Update the call to mips_restore_gp after
5370         the above name change.
5371         (mips16_cfun_returns_in_fpr_p): Move earlier in file.
5372         (mips_find_gp_ref): New function.
5373         (mips_insn_has_inflexible_gp_ref_p): Likewise.
5374         (mips_cfun_has_inflexible_gp_ref_p): Likewise.
5375         (mips_insn_has_flexible_gp_ref_p): Likewise.
5376         (mips_cfun_has_flexible_gp_ref_p): Likewise.
5377         (mips_function_has_gp_insn): Delete.
5378         (mips_global_pointer): Drop the df_regs_ever_live_p check.
5379         Use the new functions above.  Only return INVALID_REGNUM
5380         for TARGET_ABSOLUTE_JUMPS.
5381         (mips_must_initialize_gp_p): New function.
5382         (mips_get_cprestore_base_and_offset): New function, extracted from...
5383         (mips_cprestore_slot): ...here.  Take a bool parameter.
5384         (mips_cfun_has_cprestore_slot_p): New function.
5385         (mips_cprestore_address_p): Likewise.
5386         (mips_save_gp_to_cprestore_slot): Likewise.
5387         (mips_restore_gp): Rename to...
5388         (mips_restore_gp_from_cprestore_slot): ...this.  Assert
5389         epilogue_completed.  Update the call to mips_cprestore_slot.
5390         Test cfun->machine->must_restore_gp_when_clobbered_p.
5391         (mips_direct_save_slot_move_p): New function.
5392         (mips_emit_save_slot_move): Likewise.
5393         (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
5394         of cfun->machine->global_pointer.
5395         (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
5396         (mips_save_reg): Use mips_emit_save_slot_move.
5397         (mips_expand_prologue): Set must_initialize_gp_p.
5398         Use mips_cfun_has_cprestore_slot_p.  Use gen_potential_cprestore
5399         for all cprestore saves.  Emit a use_cprestore instruction after
5400         setting up the cprestore slot.
5401         (mips_restore_reg): Use mips_emit_save_slot_move.
5402         (mips_process_load_label): New function.
5403         (mips_load_label_length): Likewise.
5404         (mips_output_load_label): Don't return asm: output it here instead.
5405         Use mips_process_load_label.
5406         (mips_adjust_insn_length): Adjust the length of branch instructions
5407         that have length MAX_PIC_BRANCH_LENGTH.
5408         (mips_output_conditional_branch): Update the call to
5409         mips_output_load_label.  Assume the branch target is OPERANDS[0]
5410         rather than OPERANDS[1].  Use MIPS_ABSOLUTE_JUMP for absolute jumps.
5411         (mips_output_order_conditional_branch): Swap the meaning of
5412         OPERANDS[0] and OPERANDS[1].
5413         (mips_variable_issue): Don't count ghost instructions.
5414         (mips_expand_ghost_gp_insns): New function.
5415         (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
5416         (mips_output_mi_thunk): Set must_initialize_gp_p.
5417         (mips_eh_uses): New function.
5418         * config/mips/predicates.md (cprestore_save_slot_operand)
5419         (cprestore_load_slot_operand): New predicates.
5420         * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
5421         (UNSPEC_MOVE_GP): Likewise.
5422         (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
5423         (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
5424         (CPRESTORE_SLOT_REGNUM): New register.
5425         (MAX_PIC_BRANCH_LENGTH): New constant.
5426         (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
5427         (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
5428         branches.  Fix commentary.
5429         (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
5430         Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
5431         Change type to "ghost".
5432         (loadgp_absolute_<mode>): Likewise.
5433         (loadgp_rtp_<mode>): Likewise.
5434         (copygp_mips16): Likewise.
5435         (loadgp_blockage): Remove redundant mode attribute.
5436         (potential_cprestore): New instruction.
5437         (cprestore): Turn into an unspec set.
5438         (use_cprestore): New instruction.
5439         (*branch_fp): Swap operands 0 and 1.  Remove redundant mode attribute.
5440         (*branch_fp_inverted): Likewise.
5441         (*branch_order<mode>): Likewise.
5442         (*branch_order<mode>_inverted): Likewise.
5443         (*branch_equality<mode>): Likewise.
5444         (*branch_equality<mode>_inverted): Likewise.
5445         (*branch_bit<bbv><mode>): Likewise.
5446         (*branch_bit<bbv><mode>_inverted): Likewise.
5447         (*branch_equality<mode>_mips16): Remove redundant mode.
5448         (jump): Turn into a define_expand.
5449         (*jump_absolute): New instruction.
5450         (*jump_pic): Likewise.
5451         (*jump_mips16): Rename previously-unnamed pattern.  Remove
5452         redundant mode attribute.
5453         (restore_gp): Split on epilogue_completed rather than
5454         reload_completed.  Change type to "ghost".
5455         (move_gp<mode>): New instruction.
5456         * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
5457         Remove redundant mode attribute.
5458         * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
5459         (bc1any4f, bc1any2t, bc1any2f): Likewise.
5460         (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
5462 2009-09-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
5464         PR target/41210
5465         * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
5466         are returned in the same register (vs34 or v2) that Altivec vector
5467         types are returned in.
5468         (rs6000_libcall_value): Ditto.
5470         PR target/41331
5471         * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
5472         instead of explicit addsi3/adddi3 calls.
5473         (rs6000_split_multireg_move): Ditto.
5474         (rs6000_emit_allocate_stack): Ditto.
5475         (rs6000_emit_prologue): Ditto.
5476         (rs6000_output_mi_thunk): Ditto.
5478         * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
5479         size is 64 bits if we can use 64-bit registers.
5481 2009-09-14  Bernd Schmidt  <bernd.schmidt@analog.com>
5483         * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
5484         symbols.
5486         From Jie Zhang <jie.zhang@analog.com>:
5487         * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
5488         save FP and RETS with saveall attribute.
5489         (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
5490         with saveall attribute.
5492         * config/bfin/bfin.c (bfin_expand_builtin,
5493         case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
5494         operands.
5496         From Jie Zhang <jie.zhang@analog.com>:
5497         * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
5498         before use in two places.
5499         * config/bfin/bfin.md (AREG): Define mode iterator.
5500         (reload_in, reload_out): Use mode iterator AREG.
5502 2009-09-14  Richard Guenther  <rguenther@suse.de>
5504         PR middle-end/41350
5505         * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
5506         EH personality path.
5508 2009-09-13  Richard Guenther  <rguenther@suse.de>
5509             Rafael Avila de Espindola  <espindola@google.com>
5511         * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
5512         (LANG_HOOKS_EH_PERSONALITY): Likewise.
5513         (LANG_HOOKS_INITIALIZER): Adjust.
5514         (lhd_pass_through_t): Declare.
5515         * langhooks.h (struct lang_hooks): Add eh_runtime_type and
5516         eh_personality.
5517         * langhooks.c (lhd_pass_through_t): New function.
5518         * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
5519         dwarf2out_begin_prologue): Use personality from current_function_decl.
5520         * expr.h (get_personality_function): Declare.
5521         * expr.c (get_personality_function): New function.
5522         (build_personality_function): Likewise.
5523         * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
5524         (eh_personality_libfunc): Remove.
5525         * optabs.c (build_libfunc_function): New function split out from ...
5526         (init_one_libfunc): ... here.
5527         * tree.h (DECL_FUNCTION_PERSONALITY): New.
5528         (tree_function_decl): Add personality.
5529         (lhd_gcc_personality): Declare.
5530         (build_personality_function): Likewise.
5531         * tree.c (gcc_eh_personality_decl): New.
5532         (lhd_gcc_personality): New function.
5533         * except.h (lang_eh_runtime_type): Remove.
5534         (enum eh_personality_kind): New.
5535         (build_personality_function): Declare.
5536         (function_needs_eh_personality): Declare.
5537         * except.c (lang_eh_runtime_type): Remove.
5538         (function_needs_eh_personality): New function.
5539         (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
5540         (sjlj_emit_function_enter, output_function_exception_table):
5541         Use personality from current_function_decl.
5542         * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
5543         * tree-inline.c (tree_can_inline_p): Do not inline across different
5544         EH personalities.
5545         (expand_call_inline): Likewise.  Adjust the callers EH personality.
5546         (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
5547         * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
5548         * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
5549         (c-parser.o): Likewise
5550         * c-tree.h (c_eh_initialized_p): Remove.
5551         (c_maybe_initialize_eh): Likewise.
5552         * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
5553         (finish_decl): Don't call c_maybe_initialize_eh.
5554         (c_eh_initialized_p): Remove.
5555         (c_maybe_initialize_eh): Likewise.
5556         * c-parser.c (c_parser_omp_construct): Likewise.
5557         (c_parse_file): Initialize exception handling.
5559 2009-09-13  Kai Tietz  <kai.tietz@onevision.com>
5561         * config.gcc (tm_file): Remove i386/biarch32.h
5562         for i?86-w64-mingw* case.
5563         (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
5564         support.
5565         * config.host: Set for x64 mingw the option
5566         use_long_long_for_widest_fast_int to yes.
5568 2009-09-13  Eric Botcazou  <ebotcazou@adacore.com>
5570         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
5571         * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
5572         (dbxout_begin_function): Likewise.
5573         * final.c (dwarf2_debug_info_emitted_p): New predicate.
5574         (final_start_function): Do not emit debug info if DECL_IGNORED_P is
5575         set on the function.
5576         (final_end_function): Likewise.
5577         (final_scan_insn): Likewise.
5578         (rest_of_handle_final): Likewise.
5579         * varasm.c (assemble_start_function): Likewise.
5580         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5582 2009-09-12  Jason Merrill  <jason@redhat.com>
5584         * dbgcnt.c (dbg_cnt_process_single_pair): constify.
5585         * opts.c (common_handle_option): constify.
5587 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
5589         * doc/install.texi (avr): Remove obsolete reference site.
5591 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
5593         * doc/install.texi (Binaries): Adjust AIX link.
5595 2009-09-12  Akim Demaille  <demaille@gostai.com>
5597         * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
5598         Use an imperative sentence.
5600 2009-09-11  Richard Henderson  <rth@redhat.com>
5602         * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
5603         structure-name and has-tree-operands arguments; update all entries.
5604         * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
5605         update all entries.
5606         * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
5607         (gsstruct_code_size): New.
5608         (gss_for_code_): New.
5609         (gss_for_code): Remove.
5610         (gimple_size): Rewrite using gsstruct_code_size.
5611         (gimple_statement_structure): Move to gimple.h.
5612         * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
5613         (gss_for_code, gimple_statement_structure): New.
5614         (gimple_ops): Use new arrays; tidy.
5616 2009-09-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5618         * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
5619         operand to be a PLUS expression.
5620         * config/pa/pa.c (pa_secondary_reload): Likewise.
5622 2009-09-11  Jakub Jelinek  <jakub@redhat.com>
5624         * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
5626         * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
5627         XEXP (in_rtx, 8).
5629 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
5631         From Jie Zhang <jie.zhang@analog.com>:
5632         * doc/extend.texi (node Function Attributes): Document l2
5633         function attribute.
5634         (node Blackfin Variable Attributes): Document l2 variable attributes.
5636 2009-09-11  Loren J. Rittle  <ljrittle@acm.org>
5638         * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
5639         to match the system compiler's configuration at inflection point.
5640         Add comment to remark a remaining difference with system compiler.
5642         * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
5643         * configure: Regenerate.
5645 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
5647         From Jie Zhang <jie.zhang@analog.com>:
5648         * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
5649         (bfin_handle_l2_attribute): New.
5650         (bfin_attribute_table): Add l2 attribute.
5652 2009-09-11  Michael Matz  <matz@suse.de>
5654         PR middle-end/41275
5655         * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
5656         on the local_decls list.
5658 2009-09-11  Alexandre Oliva  <aoliva@redhat.com>
5660         PR debug/41276
5661         PR debug/41307
5662         * cselib.c (cselib_expand_value_rtx_cb): Document callback
5663         interface.
5664         (cselib_expand_value_rtx_1): Use callback for SUBREGs.  Adjust
5665         for VALUEs, to implement the documented interface.
5666         * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
5667         Adjust for VALUEs and anything else, to implement the
5668         documented interface.
5670 2009-09-10  Nathan Froyd  <froydnj@codesourcery.com>
5672         * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
5673         with actual SPE/paired vector modes before using 64-bit alignment.
5674         Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
5676 2009-09-10  DJ Delorie  <dj@redhat.com>
5678         * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
5679         emitted.
5681         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
5682         * config/mep/mep.c (mep_legitimate_constant_p): New.
5683         * config/mep/mep-protos.h: Prototype it.
5685 2009-09-10  Richard Henderson  <rth@redhat.com>
5687         * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
5689 2009-09-10  Jason Merrill  <jason@redhat.com>
5691         * tree.c (chain_index): New fn.
5692         * tree.h: Declare it.
5694 2009-09-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5696         * config/sol2-c.c (cmn_err_length_specs): Initialize
5697         scalar_identity_flag.
5699 2009-09-10  Richard Henderson  <rth@redhat.com>
5701         * tree.h (struct tree_decl_common): Move align member earlier;
5702         move label_decl_uid member ...
5703         (struct tree_label_decl): ... here.
5704         (LABEL_DECL_UID): Update to match.
5706         * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
5707         not TDF_DETAILS.
5709         * tree-cfg.c (gimple_redirect_edge_and_branch): Do
5710         gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
5712         * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
5713         dest_prev if the edge is complex.
5715         * tree-cfg.c (is_ctrl_stmt): Use a switch.
5717         * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
5718         loop latch tests earlier.
5720         * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
5721         before GIMPLE_RETURN, not after its predecessor; insert
5722         before GIMPLE_RESX.
5724         * gimple-iterator.c (gimple_find_edge_insert_loc): Use
5725         gimple_seq_empty_p to test for no PHI nodes.
5726         * tree-cfg.c (split_critical_edges): Likewise.
5728         * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
5730 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
5732         * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
5733         introduced by the VTA branch merge.
5735 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
5737         * ira-conflicts.c: Use fputs or putc instead of fprintf
5738         where appropriate.
5739         * cfg.c: Ditto.
5740         * toplev.c: Ditto.
5741         * tree-switch-conversion.c: Ditto.
5743 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
5745         * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
5746         introduced by the VTA branch merge.
5748 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
5750         Revert:
5751         2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
5753         PR rtl-optimization/39779
5754         * expr.c (convert_modes): Return when mode == oldmode after
5755         CONST_INTs are processed.
5757 2009-09-10  Nick Clifton  <nickc@redhat.com>
5759         * config/mep/mep.c (mep_encode_section_info): Copy weakness
5760         attribute and referring decl when creating renamed symbol.
5762 2009-09-10  Richard Guenther  <rguenther@suse.de>
5764         PR middle-end/41257
5765         * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
5766         reachable nodes.
5767         (cgraph_finalize_compilation_unit): Compute reachability
5768         before emitting thunks.  Properly process aliases before
5769         possibly removing unreachable nodes.
5771 2009-09-10  Richard Guenther  <rguenther@suse.de>
5773         PR middle-end/41254
5774         * tree.c (struct free_lang_data_d): Add worklist member.
5775         (find_decls_types_r): Push onto the worklist instead of recursing.
5776         Handle TREE_BINFOs properly.
5777         (find_decls_types): New function wrapped around find_decls_types_r
5778         to process the worklist.
5779         (find_decls_types_in_eh_region): Use it.
5780         (find_decls_types_in_node): Likewise.
5781         (find_decls_types_in_var): Likewise.
5782         (free_lang_data_in_cgraph): Likewise.  Free the worklist.
5783         * tree.h (RECORD_OR_UNION_TYPE_P): New.
5784         (AGGREGATE_TYPE_P): Adjust.
5786 2009-09-09  Jason Merrill  <jason@redhat.com>
5788         * configure.ac: Check glibc version even if we have an in-tree
5789         assembler.
5791 2009-09-09  Anthony Green  <green@moxielogic.com>
5793         * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
5794         the constant 0 when appropriate.
5795         * config/moxie/constraints.md: Add constraint O.
5797         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
5798         to pass up to 6 32-bit argument values in registers.
5799         (moxie_function_arg): Ditto.
5800         (moxie_arg_partial_bytes): Ditto.
5801         * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
5802         (REG_PARM_STACK_SPACE): Ditto.
5803         (FUNCTION_ARG_REGNO_P): Ditto.
5805         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
5806         instruction to allocate stack space.
5808 2009-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
5810         * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
5811         unnecessarily stringent constraints.  Fix address
5812         calculation in the splitters.
5814 2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
5816         PR rtl-optimization/39779
5817         * expr.c (convert_modes): Return when mode == oldmode after
5818         CONST_INTs are processed.
5820 2009-09-09  Kai Tietz  <kai.tietz@onevision.com>
5822         PR/41315
5823         * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
5824         (ix86_expand_prologue): Take frame.padding0 into logic of
5825         to_allocate checks.
5826         (ix86_expand_epilogue): Likewise.
5828 2009-09-09  Jakub Jelinek  <jakub@redhat.com>
5830         * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
5831         New variables.
5832         (SHLIB_LINK, SHLIB_INSTALL): Use them.
5833         * config/t-slibgcc-libgcc: New file.
5834         * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
5836 2009-09-09  Martin Jambor  <mjambor@suse.cz>
5838         PR tree-optimization/41089
5839         * tree-sra.c (find_var_candidates): Do not consider va_lists in
5840         early SRA.
5842 2009-09-09  Richard Henderson  <rth@redhat.com>
5844         * gimple.h (CASE_GIMPLE_OMP): New.
5845         (is_gimple_omp): Use it.
5846         * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
5847         (verify_gimple_debug): Likewise.
5849 2009-09-09  Richard Guenther  <rguenther@suse.de>
5851         PR tree-optimization/41101
5852         * tree-ssa-pre.c (maximal_set): Remove.
5853         (compute_antic_aux): Treat the maximal set as implicitly all ones.
5854         Defer all blocks we didn't visit at least one successor.
5855         (add_to_exp_gen): Do not add to the maximal set.
5856         (make_values_for_phi): Likewise.
5857         (compute_avail): Likewise.
5858         (init_pre): Do not allocate the maximal set.
5859         (execute_pre): Do not dump it.
5861 2009-09-09  Martin Jambor  <mjambor@suse.cz>
5863         * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
5864         an SSA_NAME rather than a is_gimple_variable.
5866 2009-09-09  Richard Guenther  <rguenther@suse.de>
5868         PR middle-end/41317
5869         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
5870         code dealing with plain pointer bases.
5871         (maybe_fold_offset_to_reference): Likewise.
5872         (maybe_fold_stmt_addition): Adjust.
5874 2009-09-09  Richard Guenther  <rguenther@suse.de>
5876         * tree.c (free_lang_data_in_type): Do not free the type variant
5877         chains.
5878         (free_lang_data): Merge char_type_node with its properly signed
5879         variant.
5880         (pass_ipa_free): Collect after freeing language specific data.
5882 2009-09-09  Michael Matz  <matz@suse.de>
5884         PR middle-end/41268
5885         * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
5886         SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
5887         * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
5888         to reflect reality.
5890 2009-09-08  DJ Delorie  <dj@redhat.com>
5892         * config/mep/mep.c (conversions[]): Add "ml" pattern.
5894 2009-09-04  Jason Merrill  <jason@redhat.com>
5896         * tree.c (tree_find_value): Remove.
5897         * tree.h: Remove prototype.
5898         * varasm.c (assemble_external): Use value_member instead.
5900 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
5902         * toplev.c (process_options): Choose default debugging type when
5903         gtoggle enables debug info and type is unset.
5905 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
5907         PR debug/41276
5908         PR debug/41307
5909         * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
5910         invalid subreg.
5912 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
5914         * configure: Rebuilt with modified libtool.m4.
5916 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
5918         PR debug/41229
5919         PR debug/41291
5920         PR debug/41300
5921         * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
5923 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
5925         * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
5926         (remove_statement): Likewise.
5927         (rewrite_use_nonlinear_expr): Adjust.
5928         (remove_unused_ivs): Collect SSA NAMEs to remove and call...
5929         * tree-ssa.c (release_defs_bitset): ... this.  New.
5930         * tree-flow.h (release_defs_bitset): Declare.
5932 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
5934         PR debug/41232
5935         * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
5936         in the middle block.
5938 2009-09-08  Kai Tietz  <kai.tietz@onevision.com>
5940         * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
5941         via intptr_t to long type.
5942         (insert_operand_rank): Cast long type via intptr_t to
5943         pointer type.
5944         * genattrtab.c (RTL_HASH): Use intptr_t to cast from
5945         pointer to scalar.
5946         * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
5947         from pointer to unsigned via uintptr_t.
5949         * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
5950         uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
5951         and HAVE_INTPTR_T.
5952         * configure: Regenerated.
5953         * config.in: Regenerated
5954         * system.h (stdint.h): Add include.
5955         (inttypes.h): Likewise.
5956         * Makefile.in (aclocal): Add config/stdint.m4.
5957         * aclocal.m4: Regenerated.
5959 2009-09-08  Bernd Schmidt  <bernd.schmidt@analog.com>
5961         * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
5962         variables.
5963         (note_np_check_stores): New function.
5964         (harmless_null_pointer_p): New function.
5965         (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH.  Callers
5966         changed.  Take into account whether we're in the shadow of a condjump
5967         that tested NP_REG for NULL.
5968         Lose all code that tested for SEQUENCEs.
5969         (workaround_speculation): Avoid inserting NOPs for loads that are
5970         either always executed or a NULL pointer.
5972 2009-09-08  Jan Hubicka  <jh@suse.cz>
5974         * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
5975         * params.def (early-inlining-insns): Likewise.
5977 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
5979         PR rtl-optimization/41239
5980         * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
5981         * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
5982         lists.
5983         * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
5984         across calls, as the calls might not always return normally.
5985         (call_may_noreturn_p): New function.
5986         (deps_analyze_insn): Update last_function_call_may_noreturn list.
5987         (init_deps): Initialize it.
5988         (remove_from_deps): Also remove calls from
5989         last_function_call_may_noreturn list.
5991 2009-09-07  Richard Henderson  <rth@redhat.com>
5993         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
5994         more VR->OPERANDS than LHS operands.  Free LHS before returning.
5996 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
5998         * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
5999         (attr "addrtype"): New member "spreg".
6000         Use it if mem_spfp_address_operand is true for the address.
6001         (attr "type"): New entry "stall".
6002         (cpu_unit "load"): New.
6003         (insn_reservations "load32", "loadp", "loadi"): Add reservation of
6004         "load".
6005         (insn_reservation "loadsp"): New.
6006         (insn_reservation "load_stall1"): New.
6007         (insn_reservation "load_stall3"): New.
6008         (stall): New insn.
6009         * config/bfin/predicates.md (const1_operand, const3_operand): New.
6010         (mem_p_address_operand): Exclude stack and frame pointer based
6011         addresses.
6012         (mem_spfp_address_operand): New; match them here.
6013         * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
6014         (bfin_reorg): Call it if scheduling insns.
6015         (bfin_gen_bundles): Remove dummy insns created by
6016         add_sched_insns_for_speculation.
6018         From Jie Zhang <jie.zhang@analog.com>:
6019         * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
6020         bfin_si_revision, bfin_workarounds): Move these ...
6021         * config/bfin/bfin.h: ... here.
6023         From Mike Frysinger  <michael.frysinger@analog.com>
6024         * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
6025         BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
6026         * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
6027         bf547m, bf548m, and bf549m.
6028         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
6029         for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
6030         __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
6031         BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
6032         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
6033         bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
6034         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
6035         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
6036         * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
6037         bf542m, bf544m, bf547m, bf548m, and bf549m.
6039         From Jie Zhang <jie.zhang@analog.com>:
6040         * config/bfin/predicates.md (p_register_operand): New predicate.
6041         (dp_register_operand): New predicate.
6042         * config/bfin/bfin-protos.h (WA_05000074): Define.
6043         (ENABLE_WA_05000074): Define.
6044         * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
6045         (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
6046         * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
6047         (define_attr addrtype): Allow load/store register to be P register.
6048         (define_attr storereg): New.
6049         (define_cpu_unit anomaly_05000074): New.
6050         (define_insn_reservation dsp32shiftimm): New.
6051         (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
6052         (define_insn_reservation loadp): Cannot use slot2.
6053         (define_insn_reservation loadsp): Cannot use slot2.
6054         (define_insn_reservation storep): Cannot use slot2. Does not
6055         apply when working around 05000074.
6056         (define_insn_reservation storep_anomaly_05000074): New.
6057         (define_insn_reservation storei): Does not apply when working
6058         around 05000074.
6059         (define_insn_reservation storei_anomaly_05000074): New.
6060         (define_attr length): Add dsp32shiftimm case.
6061         (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
6062         ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
6063         movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
6064         ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
6065         Set type as dsp32shiftimm for dsp32shiftimm alternatives.
6067 2009-09-07  Martin Jambor  <mjambor@suse.cz>
6069         PR middle-end/41282
6070         * tree-sra.c (create_artificial_child_access): Return NULL if
6071         build_ref_for_offset fails.
6072         (propagate_subacesses_accross_link): Allow build_ref_for_offset
6073         and create_artificial_child_access to fail.
6075 2009-09-06  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
6077         PR c++/41214
6078         * unwind-dw2.c (uw_init_context_1): Mark noinline.
6079         * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
6080         * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
6082 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
6084         * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
6085         block, ensure it has an exit edge.  Emit a barrier after a jump.
6087 2009-09-07  Nick Clifton  <nickc@redhat.com>
6089         * gcc.c (this_is_linker_script): New variable.  Like
6090         this_is_library_file but for the %T constructor.
6091         (end_going_arg): If this_is_linker_script is set then locate the
6092         script and insert a --script switch before it
6093         (do_spec_2): Initialise this_is_linker_script.
6094         (do_spec_1): Likewise.  Handle %T construct.
6095         (eval_spec_function): Preserve this_is_linker_script.
6096         * doc/invoke.texi: Document %T construct in spec files.
6097         * config/m32c/m32c.h (LIB_SPEC): Use it.
6099 2009-09-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6101         * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
6102         * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
6103         when volatile flag is set.
6104         * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
6106 2009-09-06  Eric Botcazou  <ebotcazou@adacore.com>
6108         PR bootstrap/41241
6109         * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
6110         (combine_stack_adjustments_for_block): Allow insns between stack
6111         adjustments and stores with corresponding pre-(dec|inc)rement or
6112         pre-modify operation.
6114 2009-09-06  Jakub Jelinek  <jakub@redhat.com>
6116         PR bootstrap/41241
6117         * combine-stack-adj.c (struct csa_memlist): Rename to...
6118         (struct csa_reflist): ... this.  Rename mem field to ref.
6119         (free_csa_memlist): Rename to...
6120         (free_csa_reflist): ... this.
6121         (record_one_stack_memref): Rename to...
6122         (record_one_stack_ref): ... this.  Handle also REG_P.
6123         (try_apply_stack_adjustment): Handle also REG_P.
6124         (struct record_stack_memrefs_data): Rename to...
6125         (struct record_stack_refs_data): ... this.  Rename memlist field to
6126         reflist.
6127         (record_stack_memrefs): Rename to...
6128         (record_stack_refs): ... this.  For DEBUG_INSNs keep traversing
6129         subexpressions instead of failing when a MEM contains SP references.
6130         For SP itself in DEBUG_INSNs queue it also onto reflist chain.
6131         (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
6133 2009-09-06  Richard Guenther  <rguenther@suse.de>
6135         PR middle-end/41144
6136         * tree.c (build_array_type): Do not record types marked
6137         with structural equality in the canonical type hashtable.
6139 2009-09-06  Richard Guenther  <rguenther@suse.de>
6141         PR middle-end/41261
6142         * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
6144 2009-09-05  Richard Guenther  <rguenther@suse.de>
6146         PR middle-end/41181
6147         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
6149 2009-09-05  Richard Guenther  <rguenther@suse.de>
6151         PR debug/41273
6152         * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
6154 2009-09-05  Richard Guenther  <rguenther@suse.de>
6156         PR middle-end/41271
6157         * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
6158         before comparing function argument types.
6160 2009-09-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6162         PR target/41024
6163         * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
6164         the assembler.
6166 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
6168         Revert:
6169         2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
6171         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
6172         locators before emit_insn is called.
6174 2009-09-04  Vladimir Makarov  <vmakarov@redhat.com>
6176         PR bootstrap/41241
6177         * ira.c (update_equiv_reg): Revert my previous patch for the PR.
6178         * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
6179         (reginfo_init): Don't call allocate_reg_info.
6181 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
6183         PR target/41262
6184         * config/alpha/alpha.c (alpha_does_function_need_gp): Use
6185         NONDEBUG_INSN_P instead of INSN_P.
6187 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
6189         PR debug/41225
6190         * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
6192 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
6194         PR target/41252
6195         * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
6196         pattern of the split.
6198 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
6200         * toplev.c (process_options): Move setter of flag_var_tracking
6201         before other tests that depend on it.  Move down setter of
6202         flag_rename_registers.  Don't enable var-tracking-assignments
6203         by default if selective scheduling is enabled.  Warn if both
6204         are enabled.
6206 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
6208         * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
6209         comment.  Use switch statement to catch overlaps between rtx
6210         and tree codes.  Accept FUNCTION_DECLs in addition to those in...
6211         (IS_DECL_CODE): ... here. Remove.
6212         (check_value_is_not_decl): Remove.
6213         (dv_from_decl, dv_from_value): Check after conversion.
6215 2009-09-04  Richard Guenther  <rguenther@suse.de>
6217         PR middle-end/41257
6218         * (cgraph_finalize_compilation_unit): Move finalizing aliases
6219         after emitting tunks.  Move emitting thunks and ctors from ...
6220         (cgraph_optimize): ... here.  Remove redundant
6221         cgraph_analyze_functions.
6222         * varasm.c (find_decl_and_mark_needed): Remove no longer
6223         necessary check.
6224         (finish_aliases_1): Adjust check for thunk aliases.
6226 2009-09-04  Daniel Gutson  <dgutson@codesourcery.com>
6228         * config/arm/arm.md (ctzsi2): Added braces
6229         to avoid warning that broke booststrap.
6231 2009-09-04  Martin Jambor  <mjambor@suse.cz>
6233         PR tree-optimization/41112
6234         * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
6235         handle variable-bounded arrays.
6236         (expr_with_var_bounded_array_refs_p): New function.
6237         (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
6239 2009-09-04  Wolfgang Gellerich  <gellerich@de.ibm.com>
6241         * config/s390/2097.md: Removed two incorrect bypasses.
6242         (z10_fsimpdf): Fixed latency.
6243         (z10_fhex): New insn_reservation.
6244         (z10_floaddf): Fixed latency.
6245         (z10_floadsf): Fixed latency.
6246         (z10_ftrunctf): Fixed latency.
6247         (z10_ftruncdf): Fixed latency.
6248         * config/s390/s390.c (z10_cost): Fixed values.
6249         (s390_adjust_priority): Added z10 path.
6250         * config/s390/s390.md (type): Added fhex.
6251         (*mov<mode>_64dfp): Updated type attribute.
6252         (*mov<mode>_64): Updated type attribute.
6253         (*mov<mode>_31): Updated type attribute.
6254         (*mov<mode>"): Likewise.
6255         * config/s390/2084.md (x_fsimpdf): Updated condition.
6257 2009-09-04  Andreas Krebbel  <krebbel1@de.ibm.com>
6259         * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
6260         RTXs in the predicate for operand 1.
6262 2009-09-03  Daniel Gutson  <dgutson@codesourcery.com>
6264         * config/arm/arm.md (UNSPEC_RBIT): New constant.
6265         (rbitsi2): New insn.
6266         (ctzsi2): New expand.
6267         * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
6269 2009-09-03  Martin Jambor  <mjambor@suse.cz>
6271         * tree-sra.c (duplicate_expr_for_different_base): Removed.
6272         (create_artificial_child_access): Use build_ref_for_offset instead
6273         of duplicate_expr_for_different_base.
6274         (propagate_subacesses_accross_link): Likewise.
6276 2009-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
6278         * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
6279         of INSN_P.
6280         (mips16e_collect_argument_saves): Skip debug instructions.
6281         (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
6282         (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
6283         (r10k_insert_cache_barriers): Likewise.
6284         (mips_reorg_process_insns): Likewise.
6286 2009-09-03  Vladimir Makarov  <vmakarov@redhat.com>
6288         PR bootstrap/41241
6289         * ira.c (update_equiv_reg): Remove check on class likely spill.
6291 2009-09-03  Jakub Jelinek  <jakub@redhat.com>
6293         PR debug/41236
6294         * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
6295         SIGN_EXTEND or ZERO_EXTEND.  Don't assume there is a REG inside of
6296         it or SUBREG.
6298         PR debug/41238
6299         * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
6300         the stack slot if it is passed by invisible reference.
6301         * var-tracking.c (vt_add_function_parameters): Handle arguments passed
6302         by invisible reference.
6304 2009-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
6306         * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
6307         * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
6308         * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
6309         0.
6310         * config/bfin/sync.md: New file.
6311         * config/bfin/bfin.md: Include it.
6312         (UNSPEC_ATOMIC): New.
6313         (UNSPEC_ONES): Provide a unique number.
6315         From Jie Zhang <jie.zhang@analog.com>:
6316         * config/bfin/bfin.c (ret_regs): New.
6317         (must_save_fp_p): Don't return true because of frame_pointer_needed.
6318         (must_save_rets_p): New.
6319         (n_regs_saved_by_prologue): Use must_save_rets_p instead of
6320         current_function_is_leaf.
6321         (do_link): Likewise.
6322         (do_unlink): Likewise.
6323         (expand_interrupt_handler_prologue): Use ret_regs array.
6324         (expand_interrupt_handler_epilogue): Use ret_regs array and
6325         pass return register to gen_return_internal.
6326         (bfin_expand_epilogue): Pass return register to
6327         gen_return_internal.
6328         (bfin_expand_call): Explicitly clobber RETS.
6329         * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
6330         * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
6331         call_insn_fdpic, call_value_insn_fdpic, call_symbol,
6332         call_value_symbol, call_insn, call_value_insn): Explicitly clobber
6333         RETS.
6334         (return_internal): Take a reg rtx rather than the register number.
6336 2009-09-03  H.J. Lu  <hongjiu.lu@intel.com>
6338         * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
6339         when comparing against estimated_loop_iterations_int return.
6341 2009-09-03  Richard Guenther  <rguenther@suse.de>
6343         * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
6344         eh_personality_libfunc.
6346 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
6348         * tree-parloops.c (separate_decls_in_region): Add space.
6350 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
6352         * tree-parloops.c (separate_decls_in_region): Change the condition
6353         checking if there are reductions in the loop.
6355 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
6357         PR tree-optimization/38275
6358         * tree-parloops.c (parallelize_loops): Replace profitability condition
6359         for expected number of iterations.
6361 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
6363         * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
6364         (bootstrap-debug): Explain conditions in which it becomes default.
6365         (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
6366         make it add to it.
6368 2009-09-03  Namhyung Kim  <namhyung@gmail.com>
6370         * doc/invoke.texi (Optimize Options): Move
6371         -finline-small-functions to the -O2 list.
6373 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
6375         * toplev.c (process_options): Enable var-tracking-assignments
6376         by default if var-tracking is enabled.
6378 2009-09-02  David Daney  <ddaney@caviumnetworks.com>
6380         * cfgbuild.c (find_bb_boundaries): Split blocks containing a
6381         barrier.
6382         * emit-rtl.c (prev_nonnote_insn_bb): New function.
6383         * rtl.h (prev_nonnote_insn_bb): Declare it.
6385 2009-09-03  Diego Novillo  <dnovillo@google.com>
6387         * cgraph.c (cgraph_node_for_decl): New.
6388         * cgraph.h (cgraph_node_for_decl): Declare.
6389         * tree.c (host_integerp): Return 0 if T is NULL.
6391 2009-09-03  Diego Novillo  <dnovillo@google.com>
6393         * tree.h (struct alias_pair): Move from varasm.c.
6394         (alias_pairs): Likewise.
6395         (TYPE_MAXVAL): Define.
6396         (TYPE_MINVAL): Define.
6397         (iterative_hash_host_wide_int): Declare.
6398         (remove_unreachable_alias_pairs): Declare.
6399         * tree-pass.h (pass_ipa_free_lang_data): Declare.
6400         * diagnostic.c (default_diagnostic_starter): Make extern.
6401         (default_diagnostic_finalizer): Make extern.
6402         * diagnostic.h (default_diagnostic_starter): Declare.
6403         (default_diagnostic_finalizer): Declare.
6404         (default_tree_printer): Declare.
6405         * toplev.c (default_tree_printer): Make extern.
6407 2009-09-03  Richard Guenther  <rguenther@suse.de>
6408             Diego Novillo  <dnovillo@google.com>
6410         * cgraph.c (cgraph_add_new_function): Remove gimplification.
6411         * cgraphunit.c (cgraph_expand_function): Do not emit
6412         associated thunks from here.
6413         (cgraph_emit_thunks): New.
6414         (cgraph_optimize): Call it.
6415         Return if any IPA pass finds an error.
6416         * varasm.c (finish_aliases_1): Ignore errorneous aliases used
6417         by thunks.
6419 2009-09-03  Simon Baldwin  <simonb@google.com>
6420             Rafael Espindola  <espindola@google.com>
6421             Richard Guenther  <rguenther@suse.de>
6422             Doug Kwan  <dougkwan@google.com>
6423             Diego Novillo  <dnovillo@google.com>
6425         * tree.c: Include tree-pass.h, langhooks-def.h,
6426         diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
6427         (free_lang_data_in_type): New.
6428         (need_assembler_name_p): New.
6429         (free_lang_data_in_block): New.
6430         (free_lang_data_in_decl): New.
6431         (struct free_lang_data_d): New.
6432         (add_tree_to_fld_list): New.
6433         (find_decls_types_r): New.
6434         (get_eh_types_for_runtime): New.
6435         (find_decls_types_in_eh_region): New.
6436         (find_decls_types_in_node): New.
6437         (find_decls_types_in_var): New.
6438         (free_lang_data_in_cgraph): New.
6439         (free_lang_data): New.
6440         (gate_free_lang_data): New.
6441         (pass_ipa_free_lang_data): New.
6443 2009-09-03  Diego Novillo  <dnovillo@google.com>
6445         * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
6446         * langhooks.h (struct lang_hooks): Add field free_lang_data.
6447         (lang_hooks): Remove const qualifier.
6448         * ipa.c (cgraph_remove_unreachable_nodes): Call
6449         remove_unreachable_alias_pairs.
6450         * except.c (add_type_for_runtime): Check if TYPE has
6451         already been converted.
6452         (lookup_type_for_runtime): Likewise.
6453         (check_handled): Handle converted types.
6454         * varasm.c (remove_unreachable_alias_pairs): New.
6455         * gimple.c: Include demangle.h.
6456         (gimple_decl_printable_name): New.
6457         (gimple_fold_obj_type_ref): New.
6458         * gimple.h (gimple_decl_printable_name): Declare.
6459         (gimple_fold_obj_type_ref): Declare.
6460         * passes.c (init_optimization_passes): Add pass
6461         pass_ipa_free_lang_data.
6462         * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
6463         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
6465 2009-09-03  Diego Novillo  <dnovillo@google.com>
6467         * c-lang.c (lang_hooks): Remove const qualifier.
6469 2009-09-02  Loren James Rittle  <ljrittle@acm.org>
6471         * doc/install.texi (*-*-freebsd*): Update target information.
6473 2009-09-02  Anatoly Sokolov  <aesok@post.ru>
6475         * hard-reg-set.h (call_fixed_regs): Remove.
6476         * reginfo.c (call_fixed_regs): Remove.
6477         (init_reg_sets_1): Remove initialization of call_fixed_regs.
6478         (globalize_reg): Don't use call_fixed_regs.
6479         * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
6480         call_fixed_regs.
6482 2009-09-01  Michael Matz  <matz@suse.de>
6484         * expr.h (emit_storent_insn, expand_expr_real_1,
6485         expand_expr_real_2): Declare.
6486         * expr.c (emit_storent_insn, expand_expr_real_1,
6487         expand_expr_real_2): Export.
6488         (store_expr): Setting and evaluating dont_return_target is useless.
6489         (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
6490         LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
6491         * except.c (expand_resx_expr): Rename to ...
6492         (expand_resx_stmt): ... this.  Rewrite to take gimple statement.
6493         * except.h (expand_resx_stmt): Declare.
6494         * stmt.c: Add include gimple.h
6495         (expand_asm_expr): Rename to ...
6496         (expand_asm_stmt): ... this. Rewrite to take gimple statement.
6497         (expand_case): Rewrite to take gimple statement.
6498         * tree.h (expand_asm_stmt): Declare.
6499         (expand_case): Change prototype.
6500         * Makefile.in (stmt.o): Depend on gimple.h.
6501         * builtins.c (expand_builtin_synchronize): Build gimple asm
6502         statement, not an ASM_EXPR.
6503         * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
6504         gimple_to_tree, release_stmt_tree): Remove.
6505         (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
6506         ggc_free, but hold comparison code and operands separately.
6507         Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
6508         (expand_call_stmt, expand_gimple_stmt_1,
6509         expand_gimple_stmt): New helpers.
6510         (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
6511         release_stmt_tree.  Call expand_gimple_stmt instead.
6512         (expand_gimple_basic_block): Ditto.
6514         * calls.c (emit_call_1): Don't look at EH regions here, make
6515         fntree parameter useless.
6516         (expand_call): New local rettype for TREE_TYPE(exp), use it
6517         throughout.  Remove local p, use addr instead.
6518         Don't look at EH regions here.
6520 2009-09-02  Vladimir Makarov  <vmakarov@redhat.com>
6522         * doc/invoke.texi (-fsched-pressure): Document it.
6523         (-fsched-reg-pressure-heuristic): Remove it.
6525         * reload.c (ira.h): Include.
6526         (find_reloads): Add choosing reload on number of small spilled
6527         classes.
6529         * haifa-sched.c (ira.h): Include.
6530         (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
6531         saved_reg_pressure, curr_reg_live, saved_reg_live,
6532         region_ref_regs): New variables.
6533         (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
6534         initiate_reg_pressure_info, setup_ref_regs,
6535         initiate_bb_reg_pressure_info, save_reg_pressure,
6536         restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
6537         functions.
6538         (setup_insn_reg_pressure_info): New function.
6539         (rank_for_schedule): Add pressure checking and insn issue time.
6540         Remove comparison of insn reg weights.
6541         (ready_sort): Set insn reg pressure info.
6542         (update_register_pressure, setup_insn_max_reg_pressure,
6543         update_reg_and_insn_max_reg_pressure,
6544         sched_setup_bb_reg_pressure_info): New functions.
6545         (schedule_insn): Add code for printing and updating reg pressure info.
6546         (find_set_reg_weight, find_insn_reg_weight): Remove.
6547         (ok_for_early_queue_removal): Do nothing if pressure_only_p.
6548         (debug_ready_list): Print reg pressure info.
6549         (schedule_block): Ditto.  Check insn issue time.
6550         (sched_init): Set up sched_pressure_p.  Allocate and set up some
6551         reg pressure related info.
6552         (sched_finish): Free some reg pressure related info.
6553         (fix_tick_ready): Make insn always ready if pressure_p.
6554         (init_h_i_d): Don't call find_insn_reg_weight.
6555         (haifa_finish_h_i_d): Free insn reg pressure info.
6557         * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
6558         ira_memory_move_cost, ira_class_hard_regs,
6559         ira_class_hard_regs_num, ira_no_alloc_regs,
6560         ira_available_class_regs, ira_reg_class_cover_size,
6561         ira_reg_class_cover, ira_class_translate): Move to ira.h.
6563         * ira-lives.c (single_reg_class): Check mode to find how many
6564         registers are necessary for operand.
6565         (ira_implicitly_set_insn_hard_regs): New.
6567         * common.opt (fsched-pressure): New options.
6568         (fsched-reg-pressure-heuristic): Remove.
6570         * ira.c (setup_eliminable_regset): Rename to
6571         ira_setup_eliminable_regset.  Make it external.
6572         (expand_reg_info): Pass cover class to setup_reg_classes.
6573         (ira): Call resize_reg_info instead of allocate_reg_info.
6575         * sched-deps.c: Include ira.h.
6576         (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
6577         (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
6578         reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
6579         mark_insn_hard_regno_birth, mark_insn_reg_birth,
6580         mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
6581         mark_insn_reg_store, mark_insn_reg_clobber,
6582         setup_insn_reg_pressure_info): New.
6583         (sched_analyze_1): Update implicit_reg_pending_uses.
6584         (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
6585         Use them to create dependencies.  Set insn reg uses and pressure
6586         info.  Process reg_pending_uses in one place.
6587         (free_deps): Free implicit sets.
6588         (remove_from_deps): Remove implicit sets if necessary.  Check
6589         implicit sets when clearing reg_last_in_use.
6590         (init_deps_global): Clear implicit_reg_pending_clobbers and
6591         implicit_reg_pending_uses.
6593         * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
6594         ira_memory_move_cost, ira_class_hard_regs,
6595         ira_class_hard_regs_num, ira_no_alloc_regs,
6596         ira_available_class_regs, ira_reg_class_cover_size,
6597         ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
6598         (ira_setup_eliminable_regset, ira_set_pseudo_classes,
6599         ira_implicitly_set_insn_hard_regs): New prototypes.
6601         * ira-costs.c (pseudo_classes_defined_p, allocno_p,
6602         cost_elements_num): New variables.
6603         (allocno_costs, total_costs): Rename to costs and
6604         total_allocno_costs.
6605         (COSTS_OF_ALLOCNO): Rename to COSTS.
6606         (allocno_pref): Rename to pref.
6607         (allocno_pref_buffer): Rename to pref_buffer.
6608         (common_classes): Rename to regno_cover_class.
6609         (COST_INDEX): New.
6610         (record_reg_classes): Set allocno attributes only if allocno_p.
6611         (record_address_regs): Ditto.  Use COST_INDEX instead of ALLOCNO_NUM.
6612         (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
6613         and COSTS_OF_ALLOCNO.
6614         (print_costs): Rename to print_allocno_costs.
6615         (print_pseudo_costs): New.
6616         (process_bb_node_for_costs): Split into 2 functions with new
6617         function process_bb_for_costs.  Pass BB to process_bb_for_costs.
6618         (find_allocno_class_costs): Rename to find_costs_and_classes.  Add
6619         new parameter dump_file.  Use cost_elements_num instead of
6620         ira_allocnos_num.  Make one iteration if preferred classes were
6621         already calculated for scheduler.  Make 2 versions of code
6622         depending on allocno_p.
6623         (setup_allocno_cover_class_and_costs): Check allocno_p.  Use
6624         regno_cover_class and COSTS instead of common_classes and
6625         COSTS_OF_ALLOCNO.
6626         (init_costs, finish_costs): New.
6627         (ira_costs): Set up allocno_p and cost_elements_num.  Call
6628         init_costs and finish_costs.
6629         (ira_set_pseudo_classes): New.
6631         * rtl.h (allocate_reg_info): Remove.
6632         (resize_reg_info): Change return type.
6633         (reg_cover_class): New.
6634         (setup_reg_classes): Add new parameter.
6636         * sched-int.h (struct deps_reg): New member implicit_sets.
6637         (sched_pressure_p, sched_regno_cover_class): New external definitions.
6638         (INCREASE_BITS): New macro.
6639         (struct reg_pressure_data, struct reg_use_data): New.
6640         (struct _haifa_insn_data): Remove reg_weight.  Add members
6641         reg_pressure, reg_use_list, reg_set_list, and
6642         reg_pressure_excess_cost_change.
6643         (struct deps): New member implicit_sets.
6644         (pressure_p): New variable.
6645         (COVER_CLASS_BITS, INCREASE_BITS): New macros.
6646         (struct reg_pressure_data, struct reg_use_data): New.
6647         (INSN_REG_WEIGHT): Remove.
6648         (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
6649         INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
6650         (sched_init_region_reg_pressure_info,
6651         sched_setup_bb_reg_pressure_info): New prototypes.
6653         * reginfo.c (struct reg_pref): New member coverclass.
6654         (reg_cover_class): New function.
6655         (reginfo_init, pass_reginfo_init): Move after free_reg_info.
6656         (reg_info_size): New variable.
6657         (allocate_reg_info): Make static.  Setup reg_info_size.
6658         (resize_reg_info): Use reg_info_size.  Return flag of resizing.
6659         (setup_reg_classes): Add a new parameter.  Setup cover class too.
6661         * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
6662         the dependencies.
6664         * sched-rgn.c (deps_join): Set up implicit_sets.
6665         (schedule_region): Set up region and basic blocks pressure
6666         relative info.
6668         * passes.c (init_optimization_passes): Move
6669         pass_subregs_of_mode_init before pass_sched.
6671 2009-09-02  Martin Jambor  <mjambor@suse.cz>
6673         * tree-sra.c (struct access): New field grp_hint.
6674         (dump_access): Dump grp_hint.
6675         (sort_and_splice_var_accesses): Set grp_hint if a group is read
6676         multiple times.
6677         (analyze_access_subtree): Only scalarize accesses with grp_hint set or
6678         those which have been specifically read and somehow written to.
6679         (propagate_subacesses_accross_link): Set grp_hint of right child and
6680         also possibly of the left child.
6682 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
6684         * tree-object-size.c (addr_object_size): Always use object_size_type
6685         0 or 2 when determining the pointer pointed object size.
6687 2009-09-02  Richard Guenther  <rguenther@suse.de>
6689         Revert
6690         2009-08-31  Richard Guenther  <rguenther@suse.de>
6692         * builtins.c (fold_builtin_memory_op): Use the alias oracle
6693         to query if the memory regions for memmove overlap.
6694         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
6695         asserts on pointers, instead deal with odd trees.
6696         (ptr_derefs_may_alias_p): Likewise.
6697         (refs_may_alias_p_1): Constructor bases also never alias.
6699 2009-08-01  Christian Bruel  <christian.bruel@st.com>
6701         Revert:
6702         2009-07-31  Christian Bruel  <christian.bruel@st.com>
6703         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
6705 2009-09-01  Alexandre Oliva  <aoliva@redhat.com>
6707         * doc/invoke.texi (-fvar-tracking-assignments): New.
6708         (-fvar-tracking-assignments-toggle): New.
6709         (-fdump-final-insns=file): Mark filename as optional.
6710         (--param min-nondebug-insn-uid): New.
6711         (-gdwarf-@{version}): Mention version 4.
6712         * opts.c (common_handle_option): Accept it.
6713         * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
6714         * regrename.c (regrename_optimize): Drop last.  Don't count debug
6715         insns as uses.  Don't reject change because of debug insn.
6716         (do_replace): Reject DEBUG_INSN as chain starter.  Take base_regno
6717         from the chain starter, and check for inexact matches in DEBUG_INSNS.
6718         (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
6719         (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
6720         * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
6721         * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
6722         * doc/gimple.texi (is_gimple_debug): New.
6723         (gimple_debug_bind_p): New.
6724         (is_gimple_call, gimple_assign_cast_p): End sentence with period.
6725         * doc/install.texi (bootstrap-debug): More details.
6726         (bootstrap-debug-big, bootstrap-debug-lean): Document.
6727         (bootstrap-debug-lib): More details.
6728         (bootstrap-debug-ckovw): Update.
6729         (bootstrap-time): New.
6730         * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
6731         (insert_phi_nodes_for): Insert debug stmts.
6732         (rewrite_stmt): Take iterator.  Insert debug stmts.
6733         (rewrite_enter_block): Adjust.
6734         (maybe_replace_use_in_debug_stmt): New.
6735         (rewrite_update_stmt): Use it.
6736         (mark_use_interesting): Return early for debug stmts.
6737         * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
6738         stmts before replacing stmt.
6739         (move_computations_stmt): Likewise.
6740         * ira-conflicts.c (add_copies): Skip debug insns.
6741         * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
6742         (regstat_bb_compute_ri): Skip debug insns.
6743         * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
6744         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
6745         check_loop_closed_ssa_stmt): Skip debug stmts.
6746         * tree-tailcall.c (find_tail_calls): Likewise.
6747         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
6748         * tree.h (MAY_HAVE_DEBUG_STMTS): New.
6749         (build_var_debug_value_stat): Declare.
6750         (build_var_debug_value): Define.
6751         (target_for_debug_bind): Declare.
6752         * reload.c (find_equiv_reg): Skip debug insns.
6753         * rtlanal.c (reg_used_between_p): Skip debug insns.
6754         (side_effects_p): Likewise.
6755         (canonicalize_condition): Likewise.
6756         * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
6757         insns never depend on debug insns.
6758         (create_ddg_dep_no_link): Likewise.
6759         (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
6760         Don't add inter-loop dependencies for debug insns.
6761         (build_intra_loop_deps): Likewise.
6762         (create_ddg): Count debug insns.
6763         * ddg.h (struct ddg::num_debug): New.
6764         (num_backargs): Pair up with previous int field.
6765         * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
6766         -fcompare-debug-second.
6767         * final.c (get_attr_length_1): Skip debug insns.
6768         (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
6769         * gcc.c (invoke_as): Call compare-debug-dump-opt.
6770         (driver_self_specs): Map -fdump-final-insns to
6771         -fdump-final-insns=..
6772         (get_local_tick): New.
6773         (compare_debug_dump_opt_spec_function): Test for . argument and
6774         compute output name.  Compute temp output spec without flag name.
6775         Compute -frandom-seed.
6776         (OPT): Undef after use.
6777         * cfgloopanal.c (num_loop_insns): Skip debug insns.
6778         (average_num_loop_insns): Likewise.
6779         * params.h (MIN_NONDEBUG_INSN_UID): New.
6780         * gimple.def (GIMPLE_DEBUG): New.
6781         * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
6782         * auto-inc-dec.c (merge_in_block): Skip debug insns.
6783         (merge_in_block): Fix whitespace.
6784         * toplev.c (flag_var_tracking): Update comment.
6785         (flag_var_tracking_assignments): New.
6786         (flag_var_tracking_assignments_toggle): New.
6787         (process_options): Don't open final insns dump file if we're not
6788         going to write to it.  Compute defaults for var_tracking.
6789         * df-scan.c (df_insn_rescan_debug_internal): New.
6790         (df_uses_record): Handle debug insns.
6791         * haifa-sched.c (ready): Initialize n_debug.
6792         (contributes_to_priority): Skip debug insns.
6793         (dep_list_size): New.
6794         (priority): Use it.
6795         (rank_for_schedule): Likewise.  Schedule debug insns as soon as
6796         they're ready.  Disregard previous debug insns to make decisions.
6797         (queue_insn): Never queue debug insns.
6798         (ready_add, ready_remove_first, ready_remove): Count debug insns.
6799         (schedule_insn): Don't reject debug insns because of issue rate.
6800         (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
6801         (queue_to_ready): Skip and discount debug insns.
6802         (choose_ready): Let debug insns through.
6803         (schedule_block): Check boundary debug insns.  Discount debug
6804         insns, schedule them early.  Adjust whitespace.
6805         (set_priorities): Check for boundary debug insns.
6806         (add_jump_dependencies): Use dep_list_size.
6807         (prev_non_location_insn): New.
6808         (check_cfg): Use it.
6809         * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
6810         stmts.
6811         (remove_unused_ivs): Reset debug stmts.
6812         * modulo-sched.c (const_iteration_count): Skip debug insns.
6813         (res_MII): Discount debug insns.
6814         (loop_single_full_bb_p): Skip debug insns.
6815         (sms_schedule): Likewise.
6816         (sms_schedule_by_order): Likewise.
6817         (ps_has_conflicts): Likewise.
6818         * caller-save.c (refmarker_fn): New.
6819         (save_call_clobbered_regs): Replace regs with saved mem in
6820         debug insns.
6821         (mark_referenced_regs): Take pointer, mark and arg.  Adjust.
6822         Call refmarker_fn mark for hardregnos.
6823         (mark_reg_as_referenced): New.
6824         (replace_reg_with_saved_mem): New.
6825         * ipa-pure-const.c (check_stmt): Skip debug stmts.
6826         * cse.c (cse_insn): Canonicalize debug insns.  Skip them when
6827         searching back.
6828         (cse_extended_basic_block): Skip debug insns.
6829         (count_reg_usage): Likewise.
6830         (is_dead_reg): New, split out of...
6831         (set_live_p): ... here.
6832         (insn_live_p): Use it for debug insns.
6833         * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
6834         (execute_optimize_stdarg): Likewise.
6835         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
6836         * tree-ssa-propagate.c (substitute_and_fold): Don't regard
6837         changes in debug stmts as changes.
6838         * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
6839         (moveup_expr): Don't move across debug insns.  Don't move
6840         debug insn if it would create a bookkeeping block.
6841         (moveup_expr_cached): Don't use cache for debug insns that
6842         are heads of blocks.
6843         (compute_av_set_inside_bb): Skip debug insns.
6844         (sel_rank_for_schedule): Schedule debug insns first.  Remove
6845         dead code.
6846         (block_valid_for_bookkeeping_p); Support lax searches.
6847         (create_block_for_bookkeeping): Adjust block numbers when
6848         encountering debug-only blocks.
6849         (find_place_for_bookkeeping): Deal with debug-only blocks.
6850         (generate_bookkeeping_insn): Accept no place to insert.
6851         (remove_temp_moveop_nops): New argument full_tidying.
6852         (prepare_place_to_insert): Deal with debug insns.
6853         (advance_state_on_fence): Debug insns don't start cycles.
6854         (update_boundaries): Take fence as argument.  Deal with
6855         debug insns.
6856         (schedule_expr_on_boundary): No full_tidying on debug insns.
6857         (fill_insns): Deal with debug insns.
6858         (track_scheduled_insns_and_blocks): Don't count debug insns.
6859         (need_nop_to_preserve_insn_bb): New, split out of...
6860         (remove_insn_from_stream): ... this.
6861         (fur_orig_expr_not_found): Skip debug insns.
6862         * rtl.def (VALUE): Move up.
6863         (DEBUG_INSN): New.
6864         * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
6865         (nearest_common_dominator_of_uses): Take debug_stmts argument.
6866         Set it if debug stmts are found.
6867         (statement_sink_location): Skip debug stmts.  Propagate
6868         moving defs into debug stmts.
6869         * ifcvt.c (first_active_insn): Skip debug insns.
6870         (last_active_insns): Likewise.
6871         (cond_exec_process_insns): Likewise.
6872         (noce_process_if_block): Likewise.
6873         (check_cond_move_block): Likewise.
6874         (cond_move_convert_if_block): Likewise.
6875         (block_jumps_and_fallthru_p): Likewise.
6876         (dead_or_predicable): Likewise.
6877         * dwarf2out.c (debug_str_hash_forced): New.
6878         (find_AT_string): Add comment.
6879         (gen_label_for_indirect_string): New.
6880         (get_debug_string_label): New.
6881         (AT_string_form): Use it.
6882         (mem_loc_descriptor): Handle non-TLS symbols.  Handle MINUS , DIV,
6883         MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING.  Accept but
6884         discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
6885         several operations that cannot be represented with DWARF opcodes.
6886         (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND.  Require
6887         dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
6888         (dwarf2out_var_location): Take during-call mark into account.
6889         (output_indirect_string): Update comment.  Output if there are
6890         label and references.
6891         (prune_indirect_string): New.
6892         (prune_unused_types): Call it if debug_str_hash_forced.
6893         More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
6894         (dw_long_long_const): Remove.
6895         (struct dw_val_struct): Change val_long_long type to rtx.
6896         (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
6897         val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
6898         (output_die): Likewise.  Use HOST_BITS_PER_WIDE_INT size of each
6899         component instead of HOST_BITS_PER_LONG.
6900         (output_loc_operands): Likewise.  For const8* assert
6901         HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
6902         (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
6903         rather than HOST_BITS_PER_LONG is >= 64.
6904         (add_AT_long_long): Remove val_hi and val_lo arguments, add
6905         val_const_double.
6906         (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
6907         HOST_BITS_PER_LONG for dw_val_class_long_long.
6908         (add_const_value_attribute): Adjust add_AT_long_long caller.  Don't
6909         handle TLS SYMBOL_REFs.  If CONST wraps a constant, tail recurse.
6910         (dwarf_stack_op_name): Handle DW_OP_implicit_value and
6911         DW_OP_stack_value.
6912         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
6913         Handle DW_OP_implicit_value.
6914         (extract_int): Move prototype earlier.
6915         (mem_loc_descriptor): For SUBREG punt if inner
6916         mode size is wider than DWARF2_ADDR_SIZE.  Handle SIGN_EXTEND
6917         and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}.  Handle
6918         EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
6919         UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
6920         (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
6921         instead of Pmode size.
6922         (loc_descriptor): Add MODE argument.  Handle CONST_INT, CONST_DOUBLE,
6923         CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
6924         attempt to handle other expressions.  Don't handle TLS SYMBOL_REFs.
6925         (concat_loc_descriptor, concatn_loc_descriptor,
6926         loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
6927         (add_location_or_const_value_attribute): Likewise.  For single
6928         location loc_lists attempt to use add_const_value_attribute
6929         for constant decls.  Add DW_AT_const_value even if
6930         NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
6931         in its expression.
6932         * cfgbuild.c (inside_basic_block_p): Handle debug insns.
6933         (control_flow_insn_p): Likewise.
6934         * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
6935         (separate_decls_in_region_debug_bind): New.
6936         (separate_decls_in_region): Process debug bind stmts afterwards.
6937         * recog.c (verify_changes): Handle debug insns.
6938         (extract_insn): Likewise.
6939         (peephole2_optimize): Skip debug insns.
6940         * dse.c (scan_insn): Skip debug insns.
6941         * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
6942         Pass it on.
6943         (setup_id_for_insn): Handle debug insns.
6944         (maybe_tidy_empty_bb): Adjust whitespace.
6945         (tidy_control_flow): Skip debug insns.
6946         (sel_remove_insn): Adjust for debug insns.
6947         (sel_estimate_number_of_insns): Skip debug insns.
6948         (create_insn_rtx_from_pattern): Handle debug insns.
6949         (create_copy_of_insn_rtx): Likewise.
6950         * sel-sched-.h (sel_bb_end): Declare.
6951         (sel_bb_empty_or_nop_p): New.
6952         (get_all_loop_exits): Use it.
6953         (_eligible_successor_edge_p): Likewise.
6954         (return_nop_to_pool): Adjust.
6955         * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
6956         * ira-lives.c (process_bb_node_lives): Skip debug insns.
6957         * gimple-pretty-print.c (dump_gimple_debug): New.
6958         (dump_gimple_stmt): Use it.
6959         (dump_bb_header): Skip gimple debug stmts.
6960         * regmove.c (optimize_reg_copy_1): Discount debug insns.
6961         (fixup_match_2): Likewise.
6962         (regmove_backward_pass): Likewise.  Simplify combined
6963         replacement.  Handle debug insns.
6964         * function.c (instantiate_virtual_regs): Handle debug insns.
6965         * function.h (struct emit_status): Add x_cur_debug_insn_uid.
6966         * print-rtl.h: Include cselib.h.
6967         (print_rtx): Print VALUEs.  Split out and recurse for VAR_LOCATIONs.
6968         * df.h (df_inns_rescan_debug_internal): Declare.
6969         * gcse.c (alloc_hash_table): Estimate n_insns.
6970         (cprop_insn): Don't regard debug insns as changes.
6971         (bypass_conditional_jumps): Skip debug insns.
6972         (one_pre_gcse_pass): Adjust.
6973         (one_code_hoisting_pass): Likewise.
6974         (compute_ld_motion_mems): Skip debug insns.
6975         (one_cprop_pass): Adjust.
6976         * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
6977         (if_convertible_stmt_p): Handle debug stmts.
6978         * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
6979         * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
6980         * ira-build.c (create_bb_allocnos): Skip debug insns.
6981         * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
6982         (has_single_use): Likewise.
6983         (single_imm_use): Likewise.
6984         (num_imm_uses): Likewise.
6985         * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
6986         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
6987         (create_outofssa_var_map): Likewise.
6988         * lower-subreg.c (adjust_decomposed_uses): New.
6989         (resolve_debug): New.
6990         (decompose_multiword_subregs): Use it.
6991         * tree-dfa.c (find_referenced_vars): Skip debug stmts.
6992         * emit-rtl.c: Include params.h.
6993         (cur_debug_insn_uid): Define.
6994         (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
6995         (copy_rtx_if_shared_1): Handle debug insns.
6996         (reset_used_flags): Likewise.
6997         (set_used_flags): LIkewise.
6998         (get_max_insn_count): New.
6999         (next_nondebug_insn): New.
7000         (prev_nondebug_insn): New.
7001         (make_debug_insn_raw): New.
7002         (emit_insn_before_noloc): Handle debug insns.
7003         (emit_jump_insn_before_noloc): Likewise.
7004         (emit_call_insn_before_noloc): Likewise.
7005         (emit_debug_insn_before_noloc): New.
7006         (emit_insn_after_noloc): Handle debug insns.
7007         (emit_jump_insn_after_noloc): Likewise.
7008         (emit_call_insn_after_noloc): Likewise.
7009         (emit_debug_insn_after_noloc): Likewise.
7010         (emit_insn_after): Take loc from earlier non-debug insn.
7011         (emit_jump_insn_after): Likewise.
7012         (emit_call_insn_after): Likewise.
7013         (emit_debug_insn_after_setloc): New.
7014         (emit_debug_insn_after): New.
7015         (emit_insn_before): Take loc from later non-debug insn.
7016         (emit_jump_insn_before): Likewise.
7017         (emit_call_insn_before): Likewise.
7018         (emit_debug_insn_before_setloc): New.
7019         (emit_debug_insn_before): New.
7020         (emit_insn): Handle debug insns.
7021         (emit_debug_insn): New.
7022         (emit_jump_insn): Handle debug insns.
7023         (emit_call_insn): Likewise.
7024         (emit): Likewise.
7025         (init_emit): Take min-nondebug-insn-uid into account.
7026         Initialize cur_debug_insn_uid.
7027         (emit_copy_of_insn_after): Handle debug insns.
7028         * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
7029         location of single rhs in place.
7030         (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
7031         (floor_sdiv_adjust): New.
7032         (cell_sdiv_adjust): New.
7033         (cell_udiv_adjust): New.
7034         (round_sdiv_adjust): New.
7035         (round_udiv_adjust): New.
7036         (wrap_constant): Moved from cselib.
7037         (unwrap_constant): New.
7038         (expand_debug_expr): New.
7039         (expand_debug_locations): New.
7040         (expand_gimple_basic_block): Drop hiding redeclaration.  Expand
7041         debug bind stmts.
7042         (gimple_expand_cfg): Expand debug locations.
7043         * cselib.c: Include tree-pass.h.
7044         (struct expand_value_data): New.
7045         (cselib_record_sets_hook): New.
7046         (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
7047         (cselib_clear_table): Move, and implemnet in terms of...
7048         (cselib_reset_table_with_next_value): ... this.
7049         (cselib_get_next_unknown_value): New.
7050         (discard_useless_locs): Don't discard preserved values.
7051         (cselib_preserve_value): New.
7052         (cselib_preserved_value_p): New.
7053         (cselib_preserve_definitely): New.
7054         (cselib_clear_preserve): New.
7055         (cselib_preserve_only_values): New.
7056         (new_cselib_val): Take rtx argument.  Dump it in details.
7057         (cselib_lookup_mem): Adjust.
7058         (expand_loc): Take regs_active in struct.  Adjust.  Silence
7059         dumps unless details are requested.
7060         (cselib_expand_value_rtx_cb): New.
7061         (cselib_expand_value_rtx): Rename and reimplment in terms of...
7062         (cselib_expand_value_rtx_1): ... this.  Adjust.  Silence dumps
7063         without details.  Copy more subregs.  Try to resolve values
7064         using a callback.  Wrap constants.
7065         (cselib_subst_to_values): Adjust.
7066         (cselib_log_lookup): New.
7067         (cselib_lookup): Call it.
7068         (cselib_invalidate_regno): Don't count preserved values as useless.
7069         (cselib_invalidate_mem): Likewise.
7070         (cselib_record_set): Likewise.
7071         (struct set): Renamed to cselib_set, moved to cselib.h.
7072         (cselib_record_sets): Adjust.  Call hook.
7073         (cselib_process_insn): Reset table when it would be cleared.
7074         (dump_cselib_val): New.
7075         (dump_cselib_table): New.
7076         * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
7077         (remove_forwarder_block): Support moving debug stmts.
7078         * cselib.h (cselib_record_sets_hook): Declare.
7079         (cselib_expand_callback): New type.
7080         (cselib_expand_value_rtx_cb): Declare.
7081         (cselib_reset_table_with_next_value): Declare.
7082         (cselib_get_next_unknown_value): Declare.
7083         (cselib_preserve_value): Declare.
7084         (cselib_preserved_value_p): Declare.
7085         (cselib_preserve_only_values): Declare.
7086         (dump_cselib_table): Declare.
7087         * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
7088         (try_crossjump_to_edge): Likewise.
7089         (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
7090         dominated blocks when debug stmts are present.
7091         * simplify-rtx.c (delegitimize_mem_from_attrs): New.
7092         * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
7093         (set_var_live_on_entry): Likewise.
7094         * loop-invariant.c (find_invariants_bb): Skip debug insns.
7095         * cfglayout.c (curr_location, last_location): Make static.
7096         (set_curr_insn_source_location): Don't avoid bouncing.
7097         (get_curr_insn_source_location): New.
7098         (get_curr_insn_block): New.
7099         (duplicate_insn_chain): Handle debug insns.
7100         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
7101         into debug stmts.
7102         * common.opt (fcompare-debug): Move to sort order.
7103         (fdump-unnumbered-links): Likewise.
7104         (fvar-tracking-assignments): New.
7105         (fvar-tracking-assignments-toggle): New.
7106         * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
7107         because of debug stmts.
7108         (mark_stmt_if_obviously_necessary): Mark debug stmts.
7109         (eliminate_unnecessary_stmts): Walk dominated blocks before
7110         dominators.
7111         * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
7112         * ira.c (memref_used_between_p): Skip debug insns.
7113         (update_equiv_regs): Likewise.
7114         * sched-deps.c (sd_lists_size): Accept empty list.
7115         (sd_init_insn): Mark debug insns.
7116         (sd_finish_insn): Unmark them.
7117         (sd_add_dep): Reject non-debug deps on debug insns.
7118         (fixup_sched_groups): Give debug insns group treatment.
7119         Skip debug insns.
7120         (sched_analyze_reg): Don't mark debug insns for sched before call.
7121         (sched_analyze_2): Handle debug insns.
7122         (sched_analyze_insn): Compute next non-debug insn.  Handle debug
7123         insns.
7124         (deps_analyze_insn): Handle debug insns.
7125         (deps_start_bb): Skip debug insns.
7126         (init_deps): Initialize last_debug_insn.
7127         * tree-ssa.c (target_for_debug_bind): New.
7128         (find_released_ssa_name): New.
7129         (propagate_var_def_into_debug_stmts): New.
7130         (propagate_defs_into_debug_stmts): New.
7131         (verify_ssa): Skip debug bind stmts without values.
7132         (warn_uninialized_vars): Skip debug stmts.
7133         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
7134         * rtl.c (rtx_equal_p_cb): Handle VALUEs.
7135         (rtx_equal_p): Likewise.
7136         * ira-costs.c (scan_one_insn): Skip debug insns.
7137         (process_bb_node_for_hard_reg_moves): Likewise.
7138         * rtl.h (DEBUG_INSN_P): New.
7139         (NONDEBUG_INSN_P): New.
7140         (MAY_HAVE_DEBUG_INSNS): New.
7141         (INSN_P): Accept debug insns.
7142         (RTX_FRAME_RELATED_P): Likewise.
7143         (INSN_DELETED_P): Likewise
7144         (PAT_VAR_LOCATION_DECL): New.
7145         (PAT_VAR_LOCATION_LOC): New.
7146         (PAT_VAR_OCATION_STATUS): New.
7147         (NOTE_VAR_LOCATION_DECL): Reimplement.
7148         (NOTE_VAR_LOCATION_LOC): Likewise.
7149         (NOTE_VAR_LOCATION_STATUS): Likewise.
7150         (INSN_VAR_LOCATION): New.
7151         (INSN_VAR_LOCATION_DECL): New.
7152         (INSN_VAR_LOCATION_LOC): New.
7153         (INSN_VAR_LOCATION_STATUS): New.
7154         (gen_rtx_UNKNOWN_VAR_LOC): New.
7155         (VAR_LOC_UNKNOWN_P): New.
7156         (NOTE_DURING_CALL_P): New.
7157         (SCHED_GROUP_P): Accept debug insns.
7158         (emit_debug_insn_before): Declare.
7159         (emit_debug_insn_before_noloc): Declare.
7160         (emit_debug_insn_beore_setloc): Declare.
7161         (emit_debug_insn_after): Declare.
7162         (emit_debug_insn_after_noloc): Declare.
7163         (emit_debug_insn_after_setloc): Declare.
7164         (emit_debug_insn): Declare.
7165         (make_debug_insn_raw): Declare.
7166         (prev_nondebug_insn): Declare.
7167         (next_nondebug_insn): Declare.
7168         (delegitimize_mem_from_attrs): Declare.
7169         (get_max_insn_count): Declare.
7170         (wrap_constant): Declare.
7171         (unwrap_constant): Declare.
7172         (get_curr_insn_source_location): Declare.
7173         (get_curr_insn_block): Declare.
7174         * tree-inline.c (insert_debug_decl_map): New.
7175         (processing_debug_stmt): New.
7176         (remap_decl): Don't create new mappings in debug stmts.
7177         (remap_gimple_op_r): Don't add references in debug stmts.
7178         (copy_tree_body_r): Likewise.
7179         (remap_gimple_stmt): Handle debug bind stmts.
7180         (copy_bb): Skip debug stmts.
7181         (copy_edges_for_bb): Likewise.
7182         (copy_debug_stmt): New.
7183         (copy_debug_stmts): New.
7184         (copy_body): Copy debug stmts at the end.
7185         (insert_init_debug_bind): New.
7186         (insert_init_stmt): Take id.  Skip and emit debug stmts.
7187         (setup_one_parameter): Remap variable earlier, register debug mapping.
7188         (estimate_num_insns): Skip debug stmts.
7189         (expand_call_inline): Preserve debug_map.
7190         (optimize_inline_calls): Check for no debug_stmts left-overs.
7191         (unsave_expr_now): Preserve debug_map.
7192         (copy_gimple_seq_and_replace_locals): Likewise.
7193         (tree_function_versioning): Check for no debug_stmts left-overs.
7194         Init and destroy debug_map as needed.  Split edges unconditionally.
7195         (build_duplicate_type): Init and destroy debug_map as needed.
7196         * tree-inline.h: Include gimple.h instead of pointer-set.h.
7197         (struct copy_body_data): Add debug_stmts and debug_map.
7198         * sched-int.h (struct ready_list): Add n_debug.
7199         (struct deps): Add last_debug_insn.
7200         (DEBUG_INSN_SCHED_P): New.
7201         (BOUNDARY_DEBUG_INSN_P): New.
7202         (SCHEDULE_DEBUG_INSN_P): New.
7203         (sd_iterator_cond): Accept empty list.
7204         * combine.c (create_log_links): Skip debug insns.
7205         (combine_instructions): Likewise.
7206         (cleanup_auto_inc_dec): New.  From Jakub Jelinek: Make sure the
7207         return value is always unshared.
7208         (struct rtx_subst_pair): New.
7209         (auto_adjust_pair): New.
7210         (propagate_for_debug_subst): New.
7211         (propagate_for_debug): New.
7212         (try_combine): Skip debug insns.  Propagate removed defs into
7213         debug insns.
7214         (next_nonnote_nondebug_insn): New.
7215         (distribute_notes): Use it.  Skip debug insns.
7216         (distribute_links): Skip debug insns.
7217         * tree-outof-ssa.c (set_location_for_edge): Likewise.
7218         * resource.c (mark_target_live_regs): Likewise.
7219         * var-tracking.c: Include cselib.h and target.h.
7220         (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
7221         MO_VAL_SET.
7222         (micro_operation_type_name): New.
7223         (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
7224         (struct micro_operation_def): Update comments.
7225         (decl_or_value): New type.  Use instead of decls.
7226         (struct emit_note_data_def): Add vars.
7227         (struct attrs_def): Use decl_or_value.
7228         (struct variable_tracking_info_def): Add permp, flooded.
7229         (struct location_chain_def): Update comment.
7230         (struct variable_part_def): Use decl_or_value.
7231         (struct variable_def): Make var_part a variable length array.
7232         (valvar_pool): New.
7233         (scratch_regs): New.
7234         (cselib_hook_called): New.
7235         (dv_is_decl_p): New.
7236         (dv_is_value_p): New.
7237         (dv_as_decl): New.
7238         (dv_as_value): New.
7239         (dv_as_opaque): New.
7240         (dv_onepart_p): New.
7241         (dv_pool): New.
7242         (IS_DECL_CODE): New.
7243         (check_value_is_not_decl): New.
7244         (dv_from_decl): New.
7245         (dv_from_value): New.
7246         (dv_htab_hash): New.
7247         (variable_htab_hash): Use it.
7248         (variable_htab_eq): Support values.
7249         (variable_htab_free): Free from the right pool.
7250         (attrs_list_member, attrs_list_insert): Use decl_or_value.
7251         (attrs_list_union): Adjust.
7252         (attrs_list_mpdv_union): New.
7253         (tie_break_pointers): New.
7254         (canon_value_cmp): New.
7255         (unshare_variable): Return possibly-modified slot.
7256         (vars_copy_1): Adjust.
7257         (var_reg_decl_set): Adjust.  Split out of...
7258         (var_reg_set): ... this.
7259         (get_init_value): Adjust.
7260         (var_reg_delete_and_set): Adjust.
7261         (var_reg_delete): Adjust.
7262         (var_regno_delete): Adjust.
7263         (var_mem_decl_set): Split out of...
7264         (var_mem_set): ... this.
7265         (var_mem_delete_and_set): Adjust.
7266         (var_mem_delete): Adjust.
7267         (val_store): New.
7268         (val_reset): New.
7269         (val_resolve): New.
7270         (variable_union): Adjust.  Speed up merge of 1-part vars.
7271         (variable_canonicalize): Use unshared slot.
7272         (VALUED_RECURSED_INTO): New.
7273         (find_loc_in_1pdv): New.
7274         (struct dfset_merge): New.
7275         (insert_into_intersection): New.
7276         (intersect_loc_chains): New.
7277         (loc_cmp): New.
7278         (canonicalize_loc_order_check): New.
7279         (canonicalize_values_mark): New.
7280         (canonicalize_values_star): New.
7281         (variable_merge_over_cur): New.
7282         (variable_merge_over_src): New.
7283         (dataflow_set_merge): New.
7284         (dataflow_set_equiv_regs): New.
7285         (remove_duplicate_values): New.
7286         (struct dfset_post_merge): New.
7287         (variable_post_merge_new_vals): New.
7288         (variable_post_merge_perm_vals): New.
7289         (dataflow_post_merge_adjust): New.
7290         (find_mem_expr_in_1pdv): New.
7291         (dataflow_set_preserve_mem_locs): New.
7292         (dataflow_set_remove_mem_locs): New.
7293         (dataflow_set_clear_at_call): New.
7294         (onepart_variable_different_p): New.
7295         (variable_different_p): Use it.
7296         (dataflow_set_different_1): Adjust.  Make detailed dump more verbose.
7297         (track_expr_p): Add need_rtl parameter.  Don't generate rtl
7298         if not needed.
7299         (track_loc_p): Pass it true.
7300         (struct count_use_info): New.
7301         (find_use_val): New.
7302         (replace_expr_with_values): New.
7303         (log_op_type): New.
7304         (use_type): New, partially split out of...
7305         (count_uses): ... this.  Count new micro-ops.
7306         (count_uses_1): Adjust.
7307         (count_stores): Adjust.
7308         (count_with_sets): New.
7309         (VAL_NEEDS_RESOLUTION): New.
7310         (VAL_HOLDS_TRACK_EXPR): New.
7311         (VAL_EXPR_IS_COPIED): New.
7312         (VAL_EXPR_IS_CLOBBERED): New.
7313         (add_uses): Adjust.  Generate new micro-ops.
7314         (add_uses_1): Adjust.
7315         (add_stores): Generate new micro-ops.
7316         (add_with_sets): New.
7317         (find_src_status): Adjust.
7318         (find_src_set_src): Adjust.
7319         (compute_bb_dataflow): Use dataflow_set_clear_at_call.
7320         Handle new micro-ops.  Canonicalize value equivalances.
7321         (vt_find_locations): Compute total size of hash tables for
7322         dumping.  Perform merge for var-tracking-assignments.  Don't
7323         disregard single-block loops.
7324         (dump_attrs_list): Handle decl_or_value.
7325         (dump_variable): Take variable.  Deal with decl_or_value.
7326         (dump_variable_slot): New.
7327         (dump_vars): Use it.
7328         (dump_dataflow_sets): Adjust.
7329         (set_slot_part): New, extended to support one-part variables
7330         after splitting out of...
7331         (set_variable_part): ... this.
7332         (clobber_slot_part): New, split out of...
7333         (clobber_variable_part): ... this.
7334         (delete_slot_part): New, split out of...
7335         (delete_variable_part): .... this.
7336         (check_wrap_constant): New.
7337         (vt_expand_loc_callback): New.
7338         (vt_expand_loc): New.
7339         (emit_note_insn_var_location): Adjust.  Handle values.  Handle
7340         EMIT_NOTE_AFTER_CALL_INSN.
7341         (emit_notes_for_differences_1): Adjust.  Handle values.
7342         (emit_notes_for_differences_2): Likewise.
7343         (emit_notes_for_differences): Adjust.
7344         (emit_notes_in_bb): Take pointer to set.  Emit AFTER_CALL_INSN notes.
7345         Adjust.  Handle new micro-ops.
7346         (vt_add_function_parameters): Adjust.  Create and bind values.
7347         (vt_initialize): Adjust.  Initialize scratch_regs and
7348         valvar_pool, flooded and perm..  Initialize and use cselib.  Log
7349         operations.  Move some code to count_with_sets and add_with_sets.
7350         (delete_debug_insns): New.
7351         (vt_debug_insns_local): New.
7352         (vt_finalize): Release permp, valvar_pool, scratch_regs.  Finish
7353         cselib.
7354         (var_tracking_main): If var-tracking-assignments is enabled
7355         but var-tracking isn't, delete debug insns and leave.  Likewise
7356         if we exceed limits or fail the stack adjustments tests, and
7357         after all var-tracking processing.
7358         More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
7359         (dataflow_set): Add traversed_vars.
7360         (value_chain, const_value_chain): New typedefs.
7361         (value_chain_pool, value_chains): New variables.
7362         (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
7363         add_value_chains, add_cselib_value_chains, remove_value_chain,
7364         remove_value_chains, remove_cselib_value_chains): New functions.
7365         (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
7366         shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
7367         static inlines.
7368         (shared_hash_find_slot_unshare, shared_hash_find_slot,
7369         shared_hash_find_slot_noinsert, shared_hash_find): Update.
7370         (dst_can_be_shared): New variable.
7371         (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
7372         Clear dst_can_be_shared.  If set->traversed_vars is non-NULL and
7373         different from set->vars, look up slot again instead of using the
7374         passed in slot.
7375         (dataflow_set_init): Initialize traversed_vars.
7376         (variable_union): Use shared_hash_*.  Use initially NO_INSERT
7377         lookup if set->vars is shared.  Don't keep slot cleared before
7378         calling unshare_variable.  Unshare set->vars if needed.  Adjust
7379         unshare_variable callers.  Clear dst_can_be_shared if needed.
7380         Even ->refcount == 1 vars must be unshared if set->vars is shared
7381         and var needs to be modified.
7382         (dataflow_set_union): Set traversed_vars during canonicalization.
7383         (VALUE_CHANGED, DECL_CHANGED): Define.
7384         (set_dv_changed, dv_changed_p): New static inlines.
7385         (track_expr_p): Clear DECL_CHANGED.
7386         (dump_dataflow_sets): Set it.
7387         (variable_was_changed): Call set_dv_changed.
7388         (emit_note_insn_var_location): Likewise.
7389         (changed_variables_stack): New variable.
7390         (check_changed_vars_1, check_changed_vars_2): New functions.
7391         (emit_notes_for_changes): Do nothing if changed_variables is
7392         empty.  Traverse changed_variables with check_changed_vars_1,
7393         call check_changed_vars_2 on each changed_variables_stack entry.
7394         (emit_notes_in_bb): Add SET argument.  Just clear it at the
7395         beginning, use it instead of local &set, don't destroy it at the end.
7396         (vt_emit_notes): Call dataflow_set_clear early on all
7397         VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
7398         computed set, dataflow_set_clear also VTI(bb)->in when we are
7399         done with the basic block.  Initialize changed_variables_stack,
7400         free it afterwards.  If ENABLE_CHECKING verify that after noting
7401         differences to an empty set value_chains hash table is empty.
7402         (vt_initialize): Initialize value_chains and value_chain_pool.
7403         (vt_finalize): Delete value_chains htab, free value_chain_pool.
7404         (variable_tracking_main): Call dump_dataflow_sets before calling
7405         vt_emit_notes, not after it.
7406         * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
7407         (propagate_var_def_into_debug_stmts): Declare.
7408         * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
7409         (df_set_note): Reject debug insns.
7410         (df_whole_mw_reg_dead_p): Take added_notes_p argument.  Don't
7411         add notes to debug insns.
7412         (df_note_bb_compute): Adjust.  Likewise.
7413         (df_simulate_uses): Skip debug insns.
7414         (df_simulate_initialize_backwards): Likewise.
7415         * reg-stack.c (subst_stack_regs_in_debug_insn): New.
7416         (subst_stack_regs_pat): Reject debug insns.
7417         (convert_regs_1): Handle debug insns.
7418         * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
7419         (print-rtl.o): Depend on cselib.h.
7420         (cselib.o): Depend on TREE_PASS_H.
7421         (var-tracking.o): Depend on cselib.h and TARGET_H.
7422         * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
7423         (init_ready_list): Skip boundary debug insns.
7424         (add_branch_dependences): Skip debug insns.
7425         (free_block_dependencies): Check for blocks with only debug insns.
7426         (compute_priorities): Likewise.
7427         * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
7428         (gimple_build_with_ops_stat): Take subcode as unsigned.  Adjust
7429         all callers.
7430         (gimple_build_debug_bind_stat): New.
7431         (empty_body_p): Skip debug stmts.
7432         (gimple_has_side_effects): Likewise.
7433         (gimple_rhs_has_side_effects): Likewise.
7434         * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
7435         (gimple_build_debug_bind_stat): Declare.
7436         (gimple_build_debug_bind): Define.
7437         (is_gimple_debug): New.
7438         (gimple_debug_bind_p): New.
7439         (gimple_debug_bind_get_var): New.
7440         (gimple_debug_bind_get_value): New.
7441         (gimple_debug_bind_get_value_ptr): New.
7442         (gimple_debug_bind_set_var): New.
7443         (gimple_debug_bind_set_value): New.
7444         (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
7445         (gimple_debug_bind_reset_value): New.
7446         (gimple_debug_bind_has_value_p): New.
7447         (gsi_next_nondebug): New.
7448         (gsi_prev_nondebug): New.
7449         (gsi_start_nondebug_bb): New.
7450         (gsi_last_nondebug_bb): New.
7451         * sched-vis.c (print_pattern): Handle VAR_LOCATION.
7452         (print_insn): Handle DEBUG_INSN.
7453         * tree-cfg.c (remove_bb): Walk stmts backwards.  Let loc
7454         of first insn prevail.
7455         (first_stmt): Skip debug stmts.
7456         (first_non_label_stmt): Likewise.
7457         (last_stmt): Likewise.
7458         (has_zero_uses_1): New.
7459         (single_imm_use_1): New.
7460         (verify_gimple_debug): New.
7461         (verify_types_in_gimple_stmt): Handle debug stmts.
7462         (verify_stmt): Likewise.
7463         (debug_loop_num): Skip debug stmts.
7464         (remove_edge_and_dominated_blocks): Remove dominators last.
7465         * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
7466         (linearize_expr): Likewise.
7467         * config/i386/i386.c (ix86_delegitimize_address): Call
7468         default implementation.
7469         * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
7470         (group_barrier_needed): Skip debug insns.
7471         (emit_insn_group_barriers): Likewise.
7472         (emit_all_insn_group_barriers): Likewise.
7473         (ia64_variable_issue): Handle debug insns.
7474         (ia64_dfa_new_cycle): Likewise.
7475         (final_emit_insn_group_barriers): Skip debug insns.
7476         (ia64_dwarf2out_def_steady_cfa): Take frame argument.  Don't
7477         def cfa without frame.
7478         (process_set): Likewise.
7479         (process_for_unwind_directive): Pass frame on.
7480         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
7481         (rs6000_delegitimize_address): New.
7482         (rs6000_debug_adjust_cost): Handle debug insns.
7483         (is_microcoded_insn): Likewise.
7484         (is_cracked_insn): Likewise.
7485         (is_nonpipeline_insn): Likewise.
7486         (insn_must_be_first_in_group): Likewise.
7487         (insn_must_be_last_in_group): Likewise.
7488         (force_new_group): Likewise.
7489         * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
7490         contains only debug insns.
7491         (rtl_merge_blocks): Skip debug insns.
7492         (purge_dead_edges): Likewise.
7493         (rtl_block_ends_with_call_p): Skip debug insns.
7494         * dce.c (deletable_insn_p): Handle VAR_LOCATION.
7495         (mark_reg_dependencies): Skip debug insns.
7496         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
7497         * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
7498         * tree-ssa-threadedge.c
7499         (record_temporary_equivalences_from_stmts): Skip debug stmts.
7500         * regcprop.c (replace_oldest_value_addr): Skip debug insns.
7501         (replace_oldest_value_mem): Use ALL_REGS for debug insns.
7502         (copyprop_hardreg_forward_1): Handle debug insns.
7503         * reload1.c (reload): Skip debug insns.  Replace unassigned
7504         pseudos in debug insns with their equivalences.
7505         (eliminate_regs_in_insn): Skip debug insns.
7506         (emit_input_reload_insns): Skip debug insns at first, adjust
7507         them later.
7508         * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
7509         (get_indirect_ref_operands): Pass opf_no_vops on.
7510         (get_expr_operands): Likewise.  Skip debug stmts.
7511         (parse_ssa_operands): Scan debug insns with opf_no_vops.
7513 2009-09-01  Richard Henderson  <rth@redhat.com>
7515         * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
7516         stmt_ends_pp_p statements at least once.
7517         * tree-vrp.c (vrp_initialize): Likewise.
7518         (vrp_visit_stmt): Be prepared for non-interesting stmts.
7520 2009-09-01  Dodji Seketeli  <dodji@redhat.com>
7522         PR bootstrap/41205
7523         Fix AIX bootstrap after PR debug/30161
7524         * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
7525         that is a GNU extension.
7526         (tmpl_value_parm_die_table): Move the definition of this global
7527         outside #ifdef DWARF2_DEBUGGING_INFO region.
7529 2009-09-01  Richard Guenther  <rguenther@suse.de>
7531         * tree.c (tree_expr_size): New function.
7532         * tree.h (tree_expr_size): Declare.
7533         * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
7534         * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
7535         * langhooks.c (lhd_expr_size): Remove.
7536         * langhooks.h (struct lang_hooks): Remove expr_size.
7537         * explow.c (expr_size): Use tree_expr_size.
7538         (int_expr_size): Likewise.
7539         * langhooks-def.h (lhd_expr_size): Remove.
7540         (LANG_HOOKS_EXPR_SIZE): Likewise.
7541         (LANG_HOOKS_INITIALIZER): Adjust.
7543 2009-09-01  Richard Guenther  <rguenther@suse.de>
7545         * tree-flow.h (mark_addressable): Move declaration ...
7546         * tree.h (mark_addressable): ... here.
7547         * stmt.c (expand_asm_operands): Use mark_addressable, not
7548         lang_hooks.mark_addressable.
7549         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
7550         LANG_HOOKS_MARK_ADDRESSABLE.
7551         * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
7552         * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
7554 2009-08-31  Chris Demetriou  <cgd@google.com>
7556         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
7557         vectorize if not TARGET_SSE2.
7559 2009-08-31  DJ Delorie  <dj@redhat.com>
7561         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
7562         registers if no coprocessor is enabled.
7564 2009-08-31  Dodji Seketeli  <dodji@redhat.com>
7566         PR debug/30161
7567         * cgraph.h (cgraph_get_node): Declare ...
7568         * cgraph.c (cgraph_get_node): ... new function.
7569         * dwarf2out.c (gen_generic_params_dies,
7570         generic_parameter_die, tree_add_const_value_attribute_for_decl,
7571         make_ith_pack_parameter_name,
7572         append_entry_to_tmpl_value_parm_die_table,
7573         gen_remaining_tmpl_value_param_die_attribute): New functions.
7574         (gen_subprogram_die): Generate debug info for template parameters
7575         if debug info level is higher than DINFO_LEVEL_TERSE.
7576         Use tree_add_const_value_attribute_for_decl instead of
7577         tree_add_const_value_attribute.
7578         (gen_const_die): Use tree_add_const_value_attribute_for_decl
7579         instead of tree_add_const_value_attribute.
7580         (gen_struct_or_union_type_die): Generate debug
7581         info for template parameters if debug info level is higher than
7582         DINFO_LEVEL_TERSE.
7583         (tree_add_const_value_attribute): Handle integral and pointer
7584         constants. Update comment.
7585         (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
7586         (dwarf_attr_name): Support DW_AT_GNU_template_name.
7587         (reference_to_unused): Fix thinko. Remove redundant predicates from
7588         tests.
7589         (tree_add_const_value_attribute): Make this work for constant
7590         expressions only.
7591         tree_add_const_value_attribute_for_decl is to be used for variable
7592         DECLs now.
7593         (add_location_or_const_value_attribute): Use
7594         tree_add_const_value_attribute_for_decl now.
7595         (dwarf2out_finish): Emit the DW_AT_const_value attribute of
7596         DW_TAG_template_value_param DIEs after function DIEs have been
7597         emitted.
7598         * langhooks.h (lang_hooks_for_types): Add
7599         get_argument_pack_elems.
7600         (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
7601         (lang_hooks): Added get_innermost_generic_parms,
7602         get_innermost_generic_args.
7603         * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
7604         LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
7605         LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
7606         LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
7608 2009-08-31  DJ Delorie  <dj@redhat.com>
7610         * config/mep/mep.c (machine_function): Add frame_locked flag.  Set
7611         it once we start generating the prologue or epilogue.
7612         (mep_call_saves_register): If the frame is locked, re-use
7613         cached values.
7614         (mep_assign_save_slots): New, broken out from mep_expand_prologue.
7615         (mep_expand_prologue): Call it.
7616         (mep_expand_epilogue): Likewise.
7617         (mep_start_function): Use the same logic as mep_expand_prologue.
7618         (mep_pass_by_reference): Make logic more readable.
7619         (mep_return_in_memory): Zero-sized objects are passed in memory.
7620         (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
7622 2009-08-31  Richard Guenther  <rguenther@suse.de>
7624         * builtins.c (fold_builtin_memory_op): Use the alias oracle
7625         to query if the memory regions for memmove overlap.
7626         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
7627         asserts on pointers, instead deal with odd trees.
7628         (ptr_derefs_may_alias_p): Likewise.
7629         (refs_may_alias_p_1): Constructor bases also never alias.
7631 2009-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
7633         * doc/install.texi (Final install): Adjust reference on where to
7634         order printed manuals.
7636 2009-08-30  Olivier Hainque  <hainque@adacore.com>
7638         * dwarf2out.c (switch_to_frame_table_section): Move
7639         definition prior to first use.
7641 2009-08-30  Richard Guenther  <rguenther@suse.de>
7643         PR tree-optimization/41186
7644         * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
7645         (ao_ref_init_from_ptr_and_size): New function.
7646         (ref_maybe_used_by_call_p_1): Be more precise tracking
7647         used ranges for builtin functions.
7648         (ref_maybe_used_by_call_p): Adjust.
7649         (call_may_clobber_ref_p_1): Be more precise tracking clobbered
7650         ranges for builtin functions.
7651         * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
7653 2009-08-30  Alan Modra  <amodra@bigpond.net.au>
7655         PR target/41081
7656         * fwprop.c (get_reg_use_in): Delete.
7657         (free_load_extend): New function.
7658         (forward_propagate_subreg): Use it.
7660 2009-08-29  Kaz Kojima  <kkojima@gcc.gnu.org>
7662         * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
7664 2009-08-29  Kai Tietz<kai.tietz@onevision.com>
7666         PR/41184
7667         * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
7668         padding.
7670 2009-08-29  Douglas B Rupp  <rupp@gnat.com>
7672         * crtstuff.c (__do_global_dtors_aux): Use atexit if no
7673         fini or fini_array section.
7675 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
7677         * graphite-dependences.c (graphite_legal_transform_bb): Call
7678         pbb_remove_duplicate_pdrs.
7679         * graphite-poly.c (can_collapse_pdr): Removed.
7680         (pdr_find_duplicate): Removed.
7681         (can_collapse_pdrs): New.
7682         (pbb_remove_duplicate_pdrs): New.
7683         (new_poly_dr): Do not look for duplicates.
7684         * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
7685         (PBB_PDR_DUPLICATES_REMOVED): New.
7686         (pbb_remove_duplicate_pdrs): Declared.
7688 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
7690         * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
7691         the strides by multiplying by PDR_NB_REFS.
7692         * graphite-poly.c (can_collapse_pdr): New.
7693         (pdr_find_duplicate): New.
7694         (new_poly_dr): Call pdr_find_duplicate.  Collapse duplicate PDRs.
7695         Initialize PDR_NB_REFS.
7696         * graphite-poly.h (struct poly_dr): Add field nb_refs.
7697         (PDR_NB_REFS): New.
7698         (new_poly_dr): Number of subscripts is a graphite_dim_t.
7700 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
7702         PR middle-end/40965
7703         * graphite-poly.c (apply_poly_transforms): Remove legality test before
7704         any transform.
7706 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
7708         * graphite-dependences.c (pddr_original_scattering): Return NULL
7709         for read-read dependence relations.
7710         * graphite-poly.h (enum poly_dr_type): Fix comment.
7711         (pdr_read_p): New.
7712         (pdr_write_p): New.
7713         (pdr_may_write_p): New.
7715 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
7717         * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
7718         (struct poly_dr): Same.
7719         (new_poly_dr): Same.
7720         * graphite-poly.c (new_poly_dr): Same.
7721         * graphite-dependences.c (dot_deps): Disable call to system.
7723 2009-08-28  Cary Coutant  <ccoutant@google.com>
7725         PR debug/41063
7726         * dwarf2out.c (gen_type_die_with_usage): Use proper context for
7727         struct/union/enum types local to a function.
7729 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
7730             Sebastian Pop  <sebastian.pop@amd.com>
7732         * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
7733         pbb_strip_mine_time_depth.  Changed the implementation so that
7734         transformation is expressed as a transformation on
7735         time (scatttering) dimensions.  Also, ensures that the 2d+1
7736         scheduling format is preserved.
7737         (pbb_strip_mine_profitable_p): Profitability is based on the
7738         iteration number of a given time (scattering) dimension,
7739         and not on a original loop depth dimension.
7740         (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
7741         (pbb_do_strip_mine): Call psct_dynamic_dim.
7742         * graphite-poly.c (pbb_number_of_iterations_at_time): New.
7743         * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
7744         (pbb_nb_dynamic_scattering_transform): New.
7745         (psct_dynamic_dim): New.
7747 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
7749         * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
7750         * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
7751         * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
7752         * graphite-interchange.c (build_linearized_memory_access): Same.
7753         (memory_stride_in_loop): Same.
7755 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
7757         * graphite-dependences.c (pddr_original_scattering): New.
7758         (graphite_legal_transform_dr): Call pddr_original_scattering.
7759         (dot_deps_1): New.
7760         (dot_deps): New.
7761         * graphite-dependences.h (dot_deps): Declared.
7762         * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
7763         (print_pdr): Print PDR_ID.
7764         * graphite-poly.h (struct poly_dr): Add field id.
7765         (PDR_ID): New.
7766         (pbb_index): New.
7767         * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
7769 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
7771         * graphite-dependences.c (graphite_carried_dependence_level_k): Do
7772         not delete the original dependence relation.
7774 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
7776         * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
7777         (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
7778         (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
7779         (free_poly_ddr): New.
7780         (pddr_is_empty): New.
7781         (dependence_polyhedron_1): Now returns a poly_ddr_p.
7782         (dependence_polyhedron): Same.  Remove useless gcc_assert.
7783         Remove fprintfs.
7784         (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
7785         (graphite_carried_dependence_level_k): Call pddr_is_empty.
7786         * graphite-dependences.h (enum poly_dependence_kind): New.
7787         (poly_dr_pair): Renamed poly_ddr.  Added a field kind.
7788         (PDRP_SOURCE): Renamed PDDR_SOURCE.
7789         (PDRP_SINK): Renamed PDDR_SINK.
7790         (PDRP_DDP): Renamed PDDR_DDP.
7791         (PDDR_KIND): New.
7792         (free_poly_ddr): Declared.
7793         * graphite-poly.c (new_scop): Use the new hash function names.
7794         * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
7795         into original_pddrs.
7796         (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
7798 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
7800         * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
7801         bounds with LT_EXPR to make niter analysis more precise on code
7802         generated by Graphite.
7804 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
7806         * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
7807         (graphite_legal_transform_bb): Same.
7808         (poly_drs_may_alias_p): Same.
7810 2009-08-28  Richard Guenther  <rguenther@suse.de>
7812         * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
7814 2009-08-28  Jan Beulich  <jbeulich@novell.com>
7816         * config/i386/netware.c: Include langhooks.h.
7817         (i386_nlm_encode_section_info): Simplify.
7818         (netware_override_options): Delete.
7819         * config/i386/netware.h (netware_override_options): Delete
7820         declaration.
7821         (OVERRIDE_OPTIONS): Delete definition.
7822         (SUBTARGET_OVERRIDE_OPTIONS): Define.
7823         (ASM_COMMENT_START): Define.
7824         * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
7826 2009-08-28  Jan Beulich  <jbeulich@novell.com>
7828         * configure.ac: For in-tree ld, do a plain version check to
7829         determine whether comdat groups are supported.
7830         * configure: Regenerate.
7832 2009-08-28  Olivier Hainque  <hainque@adacore.com>
7834         * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
7835         always defined.  Reflect definition or absence of such for
7836         COLLECT_EXPORT_LIST.  Readability helper.
7837         (scanfilter): New enum, to help control what symbols
7838         are to be considered or ignored by scan_prog_file.
7839         (enum pass): Rename as "scanpass", moved together with scanfilter
7840         prior to scan_prog_file's prototype.
7841         (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
7842         Group prototype with the scanpass/scanfilter definitions, factorize
7843         head comments for the several implementations at the prototype.
7844         (main): Reorganize the first pass link control to let AIX
7845         drag only the needed frame tables in executables.  Prevent
7846         frame tables collection during the scan aimed at static ctors.
7847         Pre-link and scan for frame tables later to compensate.
7848         * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
7849         A C statement to issue assembly directives that create a reference
7850         to the given DWARF table identifier label from the current function
7851         section.
7852         * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
7853         to differentiate first time section entry.  Only emit a .data
7854         tables start identifier label the first time around.
7855         (switch_to_frame_table_section): New function.  Helper for
7856         output_call_frame_info to switch possibly BACK into the eh_frame
7857         or the debug_frame section depending on FOR_EH.
7858         (output_call_frame_info): Use helper to first enter the proper
7859         frame section.
7860         (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
7861         emit a link to the frame table start label from each function
7862         section.
7863         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
7864         New function.  Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
7865         * config/rs6000/rs6000-protos.h: Declare it.
7866         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
7868 2009-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
7870         * config/sh/sh.c (split_branches): Check the result of
7871         next_active_insn.
7873 2009-08-27  Steve Ellcey  <sje@cup.hp.com>
7875         * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
7876         using -pthread -fopenmp
7878 2009-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
7880         * doc/service.texi (service directory): Update URL.
7882 2009-08-27  Uros Bizjak  <ubizjak@gmail.com>
7884         PR rtl-optimization/40861
7885         * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
7886         extract word from a multi-word subreg for negative byte positions.
7888 2009-08-27  Tristan Gingold  <gingold@adacore.com>
7889             Douglas B Rupp  <rupp@gnat.com>
7891         * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
7892         (SECTION_VMS_OVERLAY): Define.
7893         (ia64_vms_common_object_attribute): Added.  Handle the "common_object"
7894         attribute.
7895         (ia64_vms_elf_asm_named_section): Added.  Generate .section pseudo-op
7896         for common_object.
7897         (ia64_vms_output_aligned_decl_common): Added.  Generate pseudo-op for
7898         common_object declarations.
7899         (ia64_section_type_flags): Set section flag for common_object.
7900         * config/ia64/ia64-protos.h
7901         (ia64_vms_output_aligned_decl_common): Declare.
7902         (ia64_vms_elf_asm_named_section): Declare.
7904 2009-08-27  Michael Matz  <matz@suse.de>
7906         * expr.c (expand_expr_real_2): New function taking exploded
7907         unary or binary expression, split out from ...
7908         (expand_expr_real_1): ... here.  Move over all unary/binary
7909         switch parts to above function, in particular these codes:
7910         PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
7911         MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
7912         ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
7913         FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
7914         FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
7915         BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
7916         BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
7917         LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
7918         NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
7919         UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
7920         WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
7921         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
7922         VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
7923         VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
7924         VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
7925         VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
7926         VEC_PACK_FIX_TRUNC_EXPR.
7927         (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
7928         full expression.
7930 2009-08-27  Richard Guenther  <rguenther@suse.de>
7932         * gengtype.c (main): Handle uint64_t.
7933         * ipa-utils.c (get_base_var): Indent properly.
7934         * tree-ssa-live.c (debug_scope_block): New function.
7935         * tree-flow.h (debug_scope_block): Declare.
7936         * tree-ssa-copy.c (replace_exp_1): Add vertical space.
7937         * basic-block.h (enum profile_status): Rename to
7938         enum profile_status_d.
7939         (x_profile_status): Adjust type.
7941 2009-08-27  Dodji Seketeli  <dodji@redhat.com>
7943         PR debug/41170
7944         * dwarf2out.c (get_context_die): Declare this static function.
7945         (gen_type_die_with_usage): Make sure a DIE is a generated for
7946         the context of a typedef.
7948 2009-08-26  Anatoly Sokolov  <aesok@post.ru>
7950         * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
7951         switch.
7953 2009-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
7955         * config/mips/mips-protos.h (mips_output_sync): Declare.
7956         (mips_sync_loop_insns): Likewise.
7957         (mips_output_sync_loop): Replace first two parameters with an rtx.
7958         * config/mips/mips.c (mips_multi_member): New structure.
7959         (mips_multi_members): New variable.
7960         (mips_multi_start): New function.
7961         (mips_multi_add): Likewise.
7962         (mips_multi_add_insn): Likewise.
7963         (mips_multi_add_label): Likewise.
7964         (mips_multi_last_index): Likewise.
7965         (mips_multi_copy_insn): Likewise.
7966         (mips_multi_set_operand): Likewise.
7967         (mips_multi_write): Likewise.
7968         (mips_print_operand_punctuation): Remove '%|' and '%-'.
7969         (mips_init_print_operand_punct): Update accordingly.
7970         (mips_start_ll_sc_sync_block): New function.
7971         (mips_end_ll_sc_sync_block): Likewise.
7972         (mips_output_sync): Likewise.
7973         (mips_sync_insn1_template): Likewise.
7974         (mips_sync_insn2_template): Likewise.
7975         (mips_get_sync_operand): Likewise.
7976         (mips_process_sync_loop): Likewise.
7977         (mips_output_sync_loop): Use mips_process_sync_loop.
7978         (mips_sync_loop_insns): New function.
7979         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
7980         (MIPS_COMPARE_AND_SWAP_12): Likewise.
7981         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
7982         (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
7983         (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
7984         (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
7985         (MIPS_SYNC_OLD_OP_12): Likewise.
7986         (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
7987         (MIPS_SYNC_NEW_OP_12): Likewise.
7988         (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
7989         (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
7990         (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
7991         (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
7992         (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
7993         (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
7994         * config/mips/mips.md (sync_mem): New attribute.
7995         (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
7996         (sync_exclusive_mask, sync_required_oldval): Likewise.
7997         (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
7998         (sync_release_barrier): Likewise.
7999         (length): Handle sync loops.
8000         (sync): Use mips_output_sync.
8001         * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
8002         (sync_compare_and_swap<mode>): Set the new sync_* attributes
8003         and use mips_output_sync_loop.
8004         (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
8005         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
8006         (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
8007         (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
8008         (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
8009         (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
8010         (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
8011         (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
8012         (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
8014 2009-08-26  Richard Guenther  <rguenther@suse.de>
8016         PR middle-end/41163
8017         * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
8018         the types to not match.
8019         * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
8020         verification.
8021         * tree-ssa.c (useless_type_conversion_p): Conversions to
8022         pointers to unprototyped functions are useless.
8024 2009-08-26  Richard Guenther  <rguenther@suse.de>
8026         * tree-ssa-structalias.c (create_variable_info_for): Remove strange
8027         whole-program condition, prepare to be called for non-globals.
8028         (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
8029         params build a representative with known type and track its fields.
8031 2009-08-26  Uros Bizjak  <ubizjak@gmail.com>
8033         * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
8034         clearing by a taken branch.
8035         (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
8036         effectively after bbro pass.
8037         (sync_nand<mode>): Ditto.
8038         (sync_old_<fetchop_name><mode>): Ditto.
8039         (sync_old_nand<mode>): Ditto.
8040         (sync_new_<fetchop_name><mode>): Dito.
8041         (sync_new_nand<mode>): Ditto.
8042         (sync_compare_and_swap<mode>_1): Ditto.
8043         (*sync_compare_and_swap<mode>): Ditto.
8044         (sync_lock_test_and_set<mode>_1): Ditto.
8045         ("sync_lock_test_and_set<mode>): Ditto.
8047 2009-08-25  Douglas B Rupp  <rupp@gnat.com>
8049         * hwint.h (HOST_LONG_FORMAT): New macro
8050         * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
8051         Use HOST_PTR_PRINTF.
8052         * system.h (HOST_PTR_PRINTF): Resurrect old macro
8053         * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
8054         (HOST_PTR_PRINTF): Document.
8056 2009-08-25 Jan Hubicka  <jh@suse.cz>
8058         * config/i386/bmmintrin.h: Replace by #error.
8060         Revert:
8061         Michael Meissner  <michael.meissner@amd.com>
8062         Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
8063         Tony Linthicum  <tony.linthicum@amd.com>
8065         * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
8066         (TARGET_ROUND): New macro for the round/ptest instructions which
8067         are shared between SSE4.1 and SSE5.
8068         (OPTION_MASK_ISA_ROUND): Ditto.
8069         (OPTION_ISA_ROUND): Ditto.
8070         (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
8071         (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
8073         * config/i386/i386.opt (-msse5): New switch for SSE5 support.
8074         (-mfused-madd): New switch to give users control over whether the
8075         compiler optimizes to use the multiply/add SSE5 instructions.
8077         * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
8078         (ix86_handle_option): Turn off 3dnow if -msse5.
8079         (override_options): Add SSE5 support.
8080         (print_operand): %Y prints comparison codes for SSE5 com/pcom
8081         instructions.
8082         (ix86_expand_sse_movcc): Add SSE5 support.
8083         (ix86_expand_sse5_unpack): New function to use pperm to unpack a
8084         vector type to the next largest size.
8085         (ix86_expand_sse5_pack): New function to use pperm to pack a
8086         vector type to the next smallest size.
8087         (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
8088         (IX86_BUILTIN_FMADDSD): Ditto.
8089         (IX86_BUILTIN_FMADDPS): Ditto.
8090         (IX86_BUILTIN_FMADDPD): Ditto.
8091         (IX86_BUILTIN_FMSUBSS): Ditto.
8092         (IX86_BUILTIN_FMSUBSD): Ditto.
8093         (IX86_BUILTIN_FMSUBPS): Ditto.
8094         (IX86_BUILTIN_FMSUBPD): Ditto.
8095         (IX86_BUILTIN_FNMADDSS): Ditto.
8096         (IX86_BUILTIN_FNMADDSD): Ditto.
8097         (IX86_BUILTIN_FNMADDPS): Ditto.
8098         (IX86_BUILTIN_FNMADDPD): Ditto.
8099         (IX86_BUILTIN_FNMSUBSS): Ditto.
8100         (IX86_BUILTIN_FNMSUBSD): Ditto.
8101         (IX86_BUILTIN_FNMSUBPS): Ditto.
8102         (IX86_BUILTIN_FNMSUBPD): Ditto.
8103         (IX86_BUILTIN_PCMOV_V2DI): Ditto.
8104         (IX86_BUILTIN_PCMOV_V4SI): Ditto.
8105         (IX86_BUILTIN_PCMOV_V8HI): Ditto.
8106         (IX86_BUILTIN_PCMOV_V16QI): Ditto.
8107         (IX86_BUILTIN_PCMOV_V4SF): Ditto.
8108         (IX86_BUILTIN_PCMOV_V2DF): Ditto.
8109         (IX86_BUILTIN_PPERM): Ditto.
8110         (IX86_BUILTIN_PERMPS): Ditto.
8111         (IX86_BUILTIN_PERMPD): Ditto.
8112         (IX86_BUILTIN_PMACSSWW): Ditto.
8113         (IX86_BUILTIN_PMACSWW): Ditto.
8114         (IX86_BUILTIN_PMACSSWD): Ditto.
8115         (IX86_BUILTIN_PMACSWD): Ditto.
8116         (IX86_BUILTIN_PMACSSDD): Ditto.
8117         (IX86_BUILTIN_PMACSDD): Ditto.
8118         (IX86_BUILTIN_PMACSSDQL): Ditto.
8119         (IX86_BUILTIN_PMACSSDQH): Ditto.
8120         (IX86_BUILTIN_PMACSDQL): Ditto.
8121         (IX86_BUILTIN_PMACSDQH): Ditto.
8122         (IX86_BUILTIN_PMADCSSWD): Ditto.
8123         (IX86_BUILTIN_PMADCSWD): Ditto.
8124         (IX86_BUILTIN_PHADDBW): Ditto.
8125         (IX86_BUILTIN_PHADDBD): Ditto.
8126         (IX86_BUILTIN_PHADDBQ): Ditto.
8127         (IX86_BUILTIN_PHADDWD): Ditto.
8128         (IX86_BUILTIN_PHADDWQ): Ditto.
8129         (IX86_BUILTIN_PHADDDQ): Ditto.
8130         (IX86_BUILTIN_PHADDUBW): Ditto.
8131         (IX86_BUILTIN_PHADDUBD): Ditto.
8132         (IX86_BUILTIN_PHADDUBQ): Ditto.
8133         (IX86_BUILTIN_PHADDUWD): Ditto.
8134         (IX86_BUILTIN_PHADDUWQ): Ditto.
8135         (IX86_BUILTIN_PHADDUDQ): Ditto.
8136         (IX86_BUILTIN_PHSUBBW): Ditto.
8137         (IX86_BUILTIN_PHSUBWD): Ditto.
8138         (IX86_BUILTIN_PHSUBDQ): Ditto.
8139         (IX86_BUILTIN_PROTB): Ditto.
8140         (IX86_BUILTIN_PROTW): Ditto.
8141         (IX86_BUILTIN_PROTD): Ditto.
8142         (IX86_BUILTIN_PROTQ): Ditto.
8143         (IX86_BUILTIN_PROTB_IMM): Ditto.
8144         (IX86_BUILTIN_PROTW_IMM): Ditto.
8145         (IX86_BUILTIN_PROTD_IMM): Ditto.
8146         (IX86_BUILTIN_PROTQ_IMM): Ditto.
8147         (IX86_BUILTIN_PSHLB): Ditto.
8148         (IX86_BUILTIN_PSHLW): Ditto.
8149         (IX86_BUILTIN_PSHLD): Ditto.
8150         (IX86_BUILTIN_PSHLQ): Ditto.
8151         (IX86_BUILTIN_PSHAB): Ditto.
8152         (IX86_BUILTIN_PSHAW): Ditto.
8153         (IX86_BUILTIN_PSHAD): Ditto.
8154         (IX86_BUILTIN_PSHAQ): Ditto.
8155         (IX86_BUILTIN_FRCZSS): Ditto.
8156         (IX86_BUILTIN_FRCZSD): Ditto.
8157         (IX86_BUILTIN_FRCZPS): Ditto.
8158         (IX86_BUILTIN_FRCZPD): Ditto.
8159         (IX86_BUILTIN_CVTPH2PS): Ditto.
8160         (IX86_BUILTIN_CVTPS2PH): Ditto.
8161         (IX86_BUILTIN_COMEQSS): Ditto.
8162         (IX86_BUILTIN_COMNESS): Ditto.
8163         (IX86_BUILTIN_COMLTSS): Ditto.
8164         (IX86_BUILTIN_COMLESS): Ditto.
8165         (IX86_BUILTIN_COMGTSS): Ditto.
8166         (IX86_BUILTIN_COMGESS): Ditto.
8167         (IX86_BUILTIN_COMUEQSS): Ditto.
8168         (IX86_BUILTIN_COMUNESS): Ditto.
8169         (IX86_BUILTIN_COMULTSS): Ditto.
8170         (IX86_BUILTIN_COMULESS): Ditto.
8171         (IX86_BUILTIN_COMUGTSS): Ditto.
8172         (IX86_BUILTIN_COMUGESS): Ditto.
8173         (IX86_BUILTIN_COMORDSS): Ditto.
8174         (IX86_BUILTIN_COMUNORDSS): Ditto.
8175         (IX86_BUILTIN_COMFALSESS): Ditto.
8176         (IX86_BUILTIN_COMTRUESS): Ditto.
8177         (IX86_BUILTIN_COMEQSD): Ditto.
8178         (IX86_BUILTIN_COMNESD): Ditto.
8179         (IX86_BUILTIN_COMLTSD): Ditto.
8180         (IX86_BUILTIN_COMLESD): Ditto.
8181         (IX86_BUILTIN_COMGTSD): Ditto.
8182         (IX86_BUILTIN_COMGESD): Ditto.
8183         (IX86_BUILTIN_COMUEQSD): Ditto.
8184         (IX86_BUILTIN_COMUNESD): Ditto.
8185         (IX86_BUILTIN_COMULTSD): Ditto.
8186         (IX86_BUILTIN_COMULESD): Ditto.
8187         (IX86_BUILTIN_COMUGTSD): Ditto.
8188         (IX86_BUILTIN_COMUGESD): Ditto.
8189         (IX86_BUILTIN_COMORDSD): Ditto.
8190         (IX86_BUILTIN_COMUNORDSD): Ditto.
8191         (IX86_BUILTIN_COMFALSESD): Ditto.
8192         (IX86_BUILTIN_COMTRUESD): Ditto.
8193         (IX86_BUILTIN_COMEQPS): Ditto.
8194         (IX86_BUILTIN_COMNEPS): Ditto.
8195         (IX86_BUILTIN_COMLTPS): Ditto.
8196         (IX86_BUILTIN_COMLEPS): Ditto.
8197         (IX86_BUILTIN_COMGTPS): Ditto.
8198         (IX86_BUILTIN_COMGEPS): Ditto.
8199         (IX86_BUILTIN_COMUEQPS): Ditto.
8200         (IX86_BUILTIN_COMUNEPS): Ditto.
8201         (IX86_BUILTIN_COMULTPS): Ditto.
8202         (IX86_BUILTIN_COMULEPS): Ditto.
8203         (IX86_BUILTIN_COMUGTPS): Ditto.
8204         (IX86_BUILTIN_COMUGEPS): Ditto.
8205         (IX86_BUILTIN_COMORDPS): Ditto.
8206         (IX86_BUILTIN_COMUNORDPS): Ditto.
8207         (IX86_BUILTIN_COMFALSEPS): Ditto.
8208         (IX86_BUILTIN_COMTRUEPS): Ditto.
8209         (IX86_BUILTIN_COMEQPD): Ditto.
8210         (IX86_BUILTIN_COMNEPD): Ditto.
8211         (IX86_BUILTIN_COMLTPD): Ditto.
8212         (IX86_BUILTIN_COMLEPD): Ditto.
8213         (IX86_BUILTIN_COMGTPD): Ditto.
8214         (IX86_BUILTIN_COMGEPD): Ditto.
8215         (IX86_BUILTIN_COMUEQPD): Ditto.
8216         (IX86_BUILTIN_COMUNEPD): Ditto.
8217         (IX86_BUILTIN_COMULTPD): Ditto.
8218         (IX86_BUILTIN_COMULEPD): Ditto.
8219         (IX86_BUILTIN_COMUGTPD): Ditto.
8220         (IX86_BUILTIN_COMUGEPD): Ditto.
8221         (IX86_BUILTIN_COMORDPD): Ditto.
8222         (IX86_BUILTIN_COMUNORDPD): Ditto.
8223         (IX86_BUILTIN_COMFALSEPD): Ditto.
8224         (IX86_BUILTIN_COMTRUEPD): Ditto.
8225         (IX86_BUILTIN_PCOMEQUB): Ditto.
8226         (IX86_BUILTIN_PCOMNEUB): Ditto.
8227         (IX86_BUILTIN_PCOMLTUB): Ditto.
8228         (IX86_BUILTIN_PCOMLEUB): Ditto.
8229         (IX86_BUILTIN_PCOMGTUB): Ditto.
8230         (IX86_BUILTIN_PCOMGEUB): Ditto.
8231         (IX86_BUILTIN_PCOMFALSEUB): Ditto.
8232         (IX86_BUILTIN_PCOMTRUEUB): Ditto.
8233         (IX86_BUILTIN_PCOMEQUW): Ditto.
8234         (IX86_BUILTIN_PCOMNEUW): Ditto.
8235         (IX86_BUILTIN_PCOMLTUW): Ditto.
8236         (IX86_BUILTIN_PCOMLEUW): Ditto.
8237         (IX86_BUILTIN_PCOMGTUW): Ditto.
8238         (IX86_BUILTIN_PCOMGEUW): Ditto.
8239         (IX86_BUILTIN_PCOMFALSEUW): Ditto.
8240         (IX86_BUILTIN_PCOMTRUEUW): Ditto.
8241         (IX86_BUILTIN_PCOMEQUD): Ditto.
8242         (IX86_BUILTIN_PCOMNEUD): Ditto.
8243         (IX86_BUILTIN_PCOMLTUD): Ditto.
8244         (IX86_BUILTIN_PCOMLEUD): Ditto.
8245         (IX86_BUILTIN_PCOMGTUD): Ditto.
8246         (IX86_BUILTIN_PCOMGEUD): Ditto.
8247         (IX86_BUILTIN_PCOMFALSEUD): Ditto.
8248         (IX86_BUILTIN_PCOMTRUEUD): Ditto.
8249         (IX86_BUILTIN_PCOMEQUQ): Ditto.
8250         (IX86_BUILTIN_PCOMNEUQ): Ditto.
8251         (IX86_BUILTIN_PCOMLTUQ): Ditto.
8252         (IX86_BUILTIN_PCOMLEUQ): Ditto.
8253         (IX86_BUILTIN_PCOMGTUQ): Ditto.
8254         (IX86_BUILTIN_PCOMGEUQ): Ditto.
8255         (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
8256         (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
8257         (IX86_BUILTIN_PCOMEQB): Ditto.
8258         (IX86_BUILTIN_PCOMNEB): Ditto.
8259         (IX86_BUILTIN_PCOMLTB): Ditto.
8260         (IX86_BUILTIN_PCOMLEB): Ditto.
8261         (IX86_BUILTIN_PCOMGTB): Ditto.
8262         (IX86_BUILTIN_PCOMGEB): Ditto.
8263         (IX86_BUILTIN_PCOMFALSEB): Ditto.
8264         (IX86_BUILTIN_PCOMTRUEB): Ditto.
8265         (IX86_BUILTIN_PCOMEQW): Ditto.
8266         (IX86_BUILTIN_PCOMNEW): Ditto.
8267         (IX86_BUILTIN_PCOMLTW): Ditto.
8268         (IX86_BUILTIN_PCOMLEW): Ditto.
8269         (IX86_BUILTIN_PCOMGTW): Ditto.
8270         (IX86_BUILTIN_PCOMGEW): Ditto.
8271         (IX86_BUILTIN_PCOMFALSEW): Ditto.
8272         (IX86_BUILTIN_PCOMTRUEW): Ditto.
8273         (IX86_BUILTIN_PCOMEQD): Ditto.
8274         (IX86_BUILTIN_PCOMNED): Ditto.
8275         (IX86_BUILTIN_PCOMLTD): Ditto.
8276         (IX86_BUILTIN_PCOMLED): Ditto.
8277         (IX86_BUILTIN_PCOMGTD): Ditto.
8278         (IX86_BUILTIN_PCOMGED): Ditto.
8279         (IX86_BUILTIN_PCOMFALSED): Ditto.
8280         (IX86_BUILTIN_PCOMTRUED): Ditto.
8281         (IX86_BUILTIN_PCOMEQQ): Ditto.
8282         (IX86_BUILTIN_PCOMNEQ): Ditto.
8283         (IX86_BUILTIN_PCOMLTQ): Ditto.
8284         (IX86_BUILTIN_PCOMLEQ): Ditto.
8285         (IX86_BUILTIN_PCOMGTQ): Ditto.
8286         (IX86_BUILTIN_PCOMGEQ): Ditto.
8287         (IX86_BUILTIN_PCOMFALSEQ): Ditto.
8288         (IX86_BUILTIN_PCOMTRUEQ): Ditto.
8289         (enum multi_arg_type): New enum for describing the various SSE5
8290         intrinsic argument types.
8291         (bdesc_multi_arg): New table for SSE5 intrinsics.
8292         (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
8293         (ix86_expand_multi_arg_builtin): New function for creating SSE5
8294         intrinsics.
8295         (ix86_expand_builtin): Add SSE5 intrinsic support.
8296         (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
8297         operand instructions.
8298         (ix86_expand_sse5_multiple_memory): New function to split the
8299         second memory reference from SSE5 instructions.
8300         (type_has_variadic_args_p): Delete in favor of stdarg_p.
8301         (ix86_return_pops_args): Use stdarg_p to determine if the function
8302         has variable arguments.
8303         (ix86_setup_incoming_varargs): Ditto.
8304         (x86_this_parameter): Ditto.
8306         * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
8307         declaration.
8308         (ix86_expand_sse5_pack): Ditto.
8309         (ix86_sse5_valid_op_p): Ditto.
8310         (ix86_expand_sse5_multiple_memory): Ditto.
8312         * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
8313         constant for SSE5 support.
8314         (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
8315         (UNSPEC_SSE5_TRUEFALSE): Ditto.
8316         (UNSPEC_SSE5_PERMUTE): Ditto.
8317         (UNSPEC_SSE5_ASHIFT): Ditto.
8318         (UNSPEC_SSE5_LSHIFT): Ditto.
8319         (UNSPEC_FRCZ): Ditto.
8320         (UNSPEC_CVTPH2PS): Ditto.
8321         (UNSPEC_CVTPS2PH): Ditto.
8322         (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
8323         (PCOM_TRUE): Ditto.
8324         (COM_FALSE_S): Ditto.
8325         (COM_FALSE_P): Ditto.
8326         (COM_TRUE_S): Ditto.
8327         (COM_TRUE_P): Ditto.
8328         (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
8329         (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
8330         types.
8331         (memory attribute): Ditto.
8332         (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
8333         Use SSE4_1_ROUND_* constants instead of hard coded numbers.
8334         (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
8335         (floor<mode>2): Ditto.
8336         (ceil<mode>2): Ditto.
8337         (btrunc<mode>2): Ditto.
8338         (nearbyintdf2): Ditto.
8339         (nearbyintsf2): Ditto.
8340         (sse_setccsf): Disable if SSE5.
8341         (sse_setccdf): Ditto.
8342         (sse5_setcc<mode>): New support for SSE5 conditional move.
8343         (sse5_pcmov_<mode>): Ditto.
8345         * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
8346         (SSEMODEF4): Ditto.
8347         (SSEMODEF2P): Ditto.
8348         (ssemodesuffixf4): New mode attribute for SSE5.
8349         (ssemodesuffixf2s): Ditto.
8350         (ssemodesuffixf2c): Ditto.
8351         (sserotatemax): Ditto.
8352         (ssescalarmode): Ditto.
8353         (sse_maskcmpv4sf3): Disable if SSE5.
8354         (sse_maskcmpv2df3): Ditto.
8355         (sse_vmmaskcmpv4sf3): Ditto.
8356         (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
8357         (sse5_vmfmadd<mode>4): Ditto.
8358         (sse5_fmsub<mode>4): Ditto.
8359         (sse5_vmfmsub<mode>4): Ditto.
8360         (sse5_fnmadd<mode>4): Ditto.
8361         (sse5_vmfnmadd<mode>4): Ditto.
8362         (sse5_fnmsub<mode>4): Ditto.
8363         (sse5_vmfnmsub<mode>4): Ditto.
8364         (sse5i_fmadd<mode>4): Ditto.
8365         (sse5i_fmsub<mode>4): Ditto.
8366         (sse5i_fnmadd<mode>4): Ditto.
8367         (sse5i_fnmsub<mode>4): Ditto.
8368         (sse5i_vmfmadd<mode>4): Ditto.
8369         (sse5i_vmfmsub<mode>4): Ditto.
8370         (sse5i_vmfnmadd<mode>4): Ditto.
8371         (sse5i_vmfnmsub<mode>4): Ditto.
8372         (mulv16qi3): Add SSE5 support.
8373         (mulv4si3): Ditto.
8374         (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
8375         (sse2_mulv4si3): Disable if SSE5.
8376         (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
8377         (sse4_1_roundps): Ditto.
8378         (sse4_1_roundsd): Ditto.
8379         (sse4_1_roundss): Ditto.
8380         (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
8381         be generated.
8382         (sse_maskcmpsf3): Ditto.
8383         (sse_vmmaskcmpv4sf3): Ditto.
8384         (sse2_maskcmpv2df3): Ditto.
8385         (sse2_maskcmpdf3): Ditto.
8386         (sse2_vmmaskcmpv2df3): Ditto.
8387         (sse2_eq<mode>3): Ditto.
8388         (sse2_gt<mode>3): Ditto.
8389         (sse5_pcmov_<mode>): Add SSE5 support.
8390         (vec_unpacku_hi_v16qi): Ditto.
8391         (vec_unpacks_hi_v16qi): Ditto.
8392         (vec_unpacku_lo_v16qi): Ditto.
8393         (vec_unpacks_lo_v16qi): Ditto.
8394         (vec_unpacku_hi_v8hi): Ditto.
8395         (vec_unpacks_hi_v8hi): Ditto.
8396         (vec_unpacku_lo_v8hi): Ditto.
8397         (vec_unpacks_lo_v8hi): Ditto.
8398         (vec_unpacku_hi_v4si): Ditto.
8399         (vec_unpacks_hi_v4si): Ditto.
8400         (vec_unpacku_lo_v4si): Ditto.
8401         (vec_unpacks_lo_v4si): Ditto.
8402         (sse5_pmacsww): New SSE5 intrinsic insn.
8403         (sse5_pmacssww): Ditto.
8404         (sse5_pmacsdd): Ditto.
8405         (sse5_pmacssdd): Ditto.
8406         (sse5_pmacssdql): Ditto.
8407         (sse5_pmacssdqh): Ditto.
8408         (sse5_pmacsdqh): Ditto.
8409         (sse5_pmacsswd): Ditto.
8410         (sse5_pmacswd): Ditto.
8411         (sse5_pmadcsswd): Ditto.
8412         (sse5_pmadcswd): Ditto.
8413         (sse5_pcmov_<move>): Conditional move support on SSE5.
8414         (sse5_phaddbw): New SSE5 intrinsic insn.
8415         (sse5_phaddbd): Ditto.
8416         (sse5_phaddbq): Ditto.
8417         (sse5_phaddwd): Ditto.
8418         (sse5_phaddwq): Ditto.
8419         (sse5_phadddq): Ditto.
8420         (sse5_phaddubw): Ditto.
8421         (sse5_phaddubd): Ditto.
8422         (sse5_phaddubq): Ditto.
8423         (sse5_phadduwd): Ditto.
8424         (sse5_phadduwq): Ditto.
8425         (sse5_phaddudq): Ditto.
8426         (sse5_phsubbw): Ditto.
8427         (sse5_phsubwd): Ditto.
8428         (sse5_phsubdq): Ditto.
8429         (sse5_pperm): Ditto.
8430         (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
8431         (sse5_pperm_zero_v16qi_v8hi): Ditto.
8432         (sse5_pperm_sign_v8hi_v4si): Ditto.
8433         (sse5_pperm_zero_v8hi_v4si): Ditto.
8434         (sse5_pperm_sign_v4si_v2di): Ditto.
8435         (sse5_pperm_sign_v4si_v2di): Ditto.
8436         (sse5_pperm_pack_v2di_v4si): Ditto.
8437         (sse5_pperm_pack_v4si_v8hi): Ditto.
8438         (sse5_pperm_pack_v8hi_v16qi): Ditto.
8439         (sse5_perm<mode>): New SSE5 intrinsic insn.
8440         (rotl<mode>3): Ditto.
8441         (sse5_rotl<mode>3): Ditto.
8442         (sse5_ashl<mode>3): Ditto.
8443         (sse5_lshl<mode>3): Ditto.
8444         (sse5_frcz<mode>2): Ditto.
8445         (sse5s_frcz<mode>2): Ditto.
8446         (sse5_cvtph2ps): Ditto.
8447         (sse5_cvtps2ph): Ditto.
8448         (sse5_vmmaskcmp<mode>3): Ditto.
8449         (sse5_com_tf<mode>3): Ditto.
8450         (sse5_maskcmp<mode>3): Ditto.
8451         (sse5_maskcmp_uns<mode>3): Ditto.
8452         (sse5_maskcmp_uns2<mode>3): Ditto.
8453         (sse5_pcom_tf<mode>3): Ditto.
8455         * config/i386/predicates.md (sse5_comparison_float_operator):
8456         New predicate to match the comparison operators supported by
8457         the SSE5 com instruction.
8458         (ix86_comparison_int_operator): New predicate to match just the
8459         signed int comparisons.
8460         (ix86_comparison_uns_operator): New predicate to match just the
8461         unsigned int comparisons.
8463         * doc/invoke.texi (-msse5): Add documentation.
8464         (-mfused-madd): Ditto.
8466         * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
8468         * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
8469         mmintrin-common.h.
8470         (x86_64-*-*): Ditto.
8472         * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
8474         * config/i386/bmmintrin.h: New file, provide common x86 compiler
8475         intrinisics for SSE5.
8477         * config/i386/smmintrin.h: Move instructions shared with SSE5 to
8478         mmintrin-common.h.
8480         * config/i386/mmintrin-common.h: New file, to contain common
8481         instructions between SSE4.1 and SSE5.
8483         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
8484         FOREACH_FUNCTION_ARGS to iterate over the argument list.
8485         (gen_regparm_prefix): Ditto.
8487         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
8488         FOREACH_FUNCTION_ARGS to iterate over the argument list.  Use
8489         prototype_p to determine if a function is prototyped.
8491 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
8493         * c-common.c (c_common_reswords) add the alignof keyword,
8494         with same RID as __alignof and __alignof__
8496 2009-08-25  Anatoly Sokolov  <aesok@post.ru>
8498         * hooks.h (hook_bool_const_int_const_int_true): Declare.
8499         * hooks.c (hook_bool_const_int_const_int_true): New function.
8500         * target.h (struct gcc_target): Add can_eliminate field.
8501         * target-def.h (TARGET_CAN_ELIMINATE): Define.
8502         (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
8503         * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
8504         * reload1.c (update_eliminables, init_elim_table): (Ditto.).
8505         (elim_table): Revise comment.
8506         * system.h (CAN_ELIMINATE): Poison.
8507         * defaults.h (CAN_ELIMINATE): Remove.
8508         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
8510         * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
8511         * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
8512         Define macro.
8513         (alpha_vms_can_eliminate): Declare as static, change return type to
8514         bool.
8515         * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
8517         * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
8518         * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
8519         (arm_can_eliminate): New function.
8521         * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
8522         * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
8523         (avr_can_eliminate): Declare as static.
8524         * config/avr/avr-protos.h (avr_can_eliminate): Remove.
8526         * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
8527         * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
8528         (bfin_can_eliminate): New function.
8530         * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
8531         * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
8532         (crx_can_eliminate): New function.
8534         * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
8535         * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
8536         (fr30_can_eliminate): New function.
8538         * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
8539         * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
8540         (frv_can_eliminate): New function.
8542         * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
8543         * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
8544         (h8300_can_eliminate): New function.
8546         * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
8547         * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
8548         (i386_can_eliminate): Declare as static, change return type to bool.
8549         * config/i386/i386-protos.h (i386_can_eliminate): Remove.
8551         * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
8552         * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
8553         (ia64_can_eliminate): New function.
8555         * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
8556         * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
8557         (iq2000_can_eliminate): New function.
8559         * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
8560         * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
8561         (m32r_can_eliminate): New function.
8563         * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
8564         * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
8565         (m68hc11_can_eliminate): New function.
8567         * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
8568         * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
8569         (m68k_can_eliminate): New function.
8571         * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
8572         * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
8573         (mep_can_eliminate): New function.
8575         * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
8576         * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
8577         (mips_can_eliminate): New function.
8579         * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
8580         * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
8581         (rs6000_can_eliminate): New function.
8583         * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
8584         * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
8585         (s390_can_eliminate): Declare as static.
8586         * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
8588         * config/score/score.h (CAN_ELIMINATE): Remove macro.
8589         * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
8590         (score_can_eliminate): New function.
8592         * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
8593         * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
8594         (sparc_can_eliminate): Declare as static.
8595         * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
8597         * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
8598         * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
8599         (xstormy16_can_eliminate): New function.
8601         * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
8602         * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
8603         (v850_can_eliminate): New function.
8605 2009-08-25  Uros Bizjak  <ubizjak@gmail.com>
8607         * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
8608         (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
8609         (*movdfcc_ext[1234]): Disable for IEEE mode.
8611 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
8613         * gimplify.c (prepare_gimple_addressable): New static function.
8614         (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
8615         it addressable.
8616         (gimplify_addr_expr): Invoke it similarly on the operand instead of
8617         manually fiddling with it.
8619 2009-08-25  Michael Matz  <matz@suse.de>
8621         * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
8622         * dojump.c (do_jump_by_parts_greater): Take two operands instead of
8623         full expression.
8624         (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
8625         (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
8626         (do_jump): Split out code for simple binary comparisons into ...
8627         (do_jump_1): ... this, taking the individual operands and code.
8628         Change callers to helper function above accordingly.
8629         * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
8630         comparisons.
8632 2009-08-25  Michael Matz  <matz@suse.de>
8634         * expr.h (struct separate_ops, sepops): New type for passing
8635         around an exploded simple expression.
8636         * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
8637         Use this structure instead of expression tree.
8638         (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
8639         expression, only its type.
8640         (expand_vec_cond_expr): Take type and individual operands instead
8641         of full expression.
8642         * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
8643         expand_vec_shift_expr): Change prototype accordingly.
8644         * tree-vect-stmts.c (vectorizable_condition): Change call of
8645         expand_vec_cond_expr_p to pass only type.
8646         * expr.c (do_store_flags): Change prototype and implementation
8647         to take an exploded expression.
8648         (expand_expr_real_1): New local ops initialized with details
8649         of the full expression.  Use it instead of full
8650         expression in calls to do_store_flags, expand_vec_cond_expr,
8651         expand_widen_pattern_expr and expand_vec_shift_expr.
8653 2009-08-25  Michael Matz  <matz@suse.de>
8655         * expr.c (expand_expr_real_1): New local treeop0, treeop1,
8656         treeop2 initialized with first three operands of the full expression.
8657         Substitute all TREE_OPERAND (exp, [012]) calls with them.
8659 2009-08-25  Kai Tietz  <kai.tietz@onevision.com>
8661         * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
8662         (__gthread_objc_condition_allocate): Mark arguments as unused.
8663         (__gthread_objc_condition_deallocate): Likewise.
8664         (__gthread_objc_condition_wait): Likewise.
8665         (__gthread_objc_condition_broadcast): Likewise.
8666         (__gthread_objc_condition_signal): Likewise.
8667         (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
8668         (__gthread_objc_thread_id): Likewise.
8670 2009-08-25  Janus Weil  <janus@gcc.gnu.org>
8672         PR middle-end/41149
8673         * tree-pretty-print.c (print_call_name): Print the correct call name
8674         for procedure pointer components.
8676 2009-08-24  Steve Ellcey  <sje@cup.hp.com>
8678         * config/ia64/ia64.c (ia64_promote_function_mode): Call
8679         default_promote_function_mode when not VMS.
8681 2009-08-24  Olivier Hainque  <hainque@adacore.com>
8683         * convert.c (convert_to_integer): Don't assume an input pointer is
8684         POINTER_SIZE wide.  Fetch from the type instead.
8686 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8688         * configure.ac (AC_PREREQ): Bump to 2.64.
8690 2009-08-24  Rafael Avila de Espindola  <espindola@google.com>
8692         * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
8693         (process_command): Don't search standard_exec_prefix_1 and
8694         standard_exec_prefix_2.
8696 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8698         * config/arm/arm.c (output_return_instruction): Handle for
8699         unified syntax.
8701 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8703         * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
8705 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8707         * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
8708         (*arm_movdf_vfp): Likewise.
8710 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8712         * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
8713         (vashr<mode>3): Rename from ashr<mode>3.
8714         (vlshr<mode>3): Rename from lshr<mode>3.
8716 2009-08-24  Kai Tietz  <kai.tietz@onevision.com>
8718         PR/40786
8719         * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
8720         (check_format_info_main): Use scalar_identify_flag.
8721         (check_format_types): Check for scalar size identity if
8722         scalar_identify_flag is set.
8723         (printf_length_specs): Extend by new field.
8724         (asm_fprintf_length_specs): Likewise.
8725         (gcc_diag_length_specs): Likewise.
8726         (scanf_length_specs): Likewise.
8727         (strfmon_length_specs): Likewise.
8728         (gcc_gfc_length_specs): Likewise.
8729         * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
8730         (ms_printf_flag_specs): Likewise.
8731         * c-format.h (format_length_info): Add new member scalar_identity_flag.
8733 2009-08-23  Uros Bizjak  <ubizjak@gmail.com>
8735         PR target/40718
8736         * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
8737         (*call_value_pop_1): Ditto.
8738         (*sibcall_pop_1): New insn pattern.
8739         (*sibcall_value_pop_1): Ditto.
8741 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
8743         PR target/41081
8744         * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
8745         ashrsi3_64): New.
8747 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
8749         PR target/41081
8750         * fwprop.c (try_fwprop_subst): Allow multiple sets.
8751         (get_reg_use_in): New function.
8752         (forward_propagate_subreg): Propagate through subreg of zero_extend
8753         or sign_extend.
8755 2009-08-22  Kaz Kojima  <kkojima@gcc.gnu.org>
8757         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
8758         * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
8760 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8762         * configure.ac: Remove --with-datarootdir, --with-docdir,
8763         --with-htmldir switches.  No need to call AC_SUBST for
8764         datarootdir, docdir, htmldir any more.
8765         * configure: Regenerate.
8766         * doc/install.texi (Configuration): Document --datarootdir,
8767         --docdir, --htmldir, --pdfdir; update documentation for
8768         --infodir, --mandir.
8769         (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
8770         M4 to 1.4.6.
8772         * aclocal.m4: Regenerate.
8773         * config.in: Regenerate.
8774         * configure: Regenerate.
8776 2009-08-21  Douglas B Rupp  <rupp@gnat.com>
8777             Olivier Hainque  <hainque@adacore.com>
8779         * config/ia64/ia64.c: Include libfuncs.h.
8780         (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
8781         (ia64_expand_call): Use reg 25 on VMS.
8782         (ia64_initialize_trampoline): Fix for VMS ABI.
8783         (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
8784         (ia64_function_arg): Initialize reg 25 on VMS.
8785         Fix OpenVMS ABI issues for varargs.
8786         For OpenVMS, emit the Argument Information register set in the
8787         incoming/sibcall case as well.
8788         (ia64_arg_type): New function.
8789         (ia64_function_arg_advance): Keep track of cum->words.
8790         Fix OpenVMS ABI issues for varargs.
8791         (ia64_function_value): On VMS, promote mode of non-aggregate types.
8792         (ia64_override_options): Set flag_no_common on VMS.
8793         (ia64_init_builtins): Disable FWRITE builtin.
8794         (ia64_asm_output_external): Call DO_CRTL_NAMES.
8795         (ia64_vms_init_libfuncs): Add decc$ routines.
8796         (ia64_vms_valid_pointer_mode): New function.
8797         (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
8798         (ia64_promote_function_mode): New function
8799         * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
8800         (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
8801         (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
8802         (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
8803         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
8804         (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
8805         Suppress trailing '#' if VALUE is numeric.
8806         * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
8807         ia64_promote_function_mode.
8808         (TARGET_VALID_POINTER_MODE): Define.
8810 2009-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8812         PR target/40671
8813         * config/rs6000/rs6000.c (rs6000_override_options): Use
8814         TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
8816         PR target/41145
8817         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
8818         reporting of vector + decimal/boolean/complex error.
8820 2009-08-21  Jakub Jelinek  <jakub@redhat.com>
8822         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
8823         __vector double TYPE_DECL.
8825 2009-08-21  Richard Earnshaw  <rearnsha@arm.com>
8827         * arm.h (MACHMODE): New define.  Include insn-modes.h if available.
8828         (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
8829         * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
8830         to pointer to enum machine_mode.  Update all callers as needed.
8832 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
8834         * config/alpha/alpha.md (exception_receiver): Emit alternative
8835         GP load sequence if flag_reorder_blocks_and_partition is set.
8836         (*exception_receiver_2): Also enable when
8837         flag_reorder_blocks_and_partition is set.
8839 2009-08-20  Matt Rice  <ratmice@gmail.com>
8840             Diego Novillo  <dnovillo@google.com>
8842         * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
8843         tree-ssa-sccvn.h.
8845 2009-08-20  Richard Guenther  <rguenther@suse.de>
8847         * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
8848         * c-tree.h (c_dup_lang_specific_decl): Remove.
8849         (struct lang_decl, struct lang_type): Move definitions ...
8850         * c-lang.h: ... here.  New file.
8851         * c-decl.c: Include c-lang.h.
8852         (c_dup_lang_specific_decl): Remove.
8853         * c-typeck.c: Include c-lang.h.
8854         * Makefile.in (c-decl.o): Add c-lang.h dependency.
8855         (c-typeck.o): Likewise.
8856         * c-config-lang.in (gtfiles): Add c-lang.h.
8857         * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
8858         like c-tree.h.
8860 2009-08-20  Uros Bizjak  <ubizjak@gmail.com>
8862         * config/alpha/alpha.c (alpha_end_function): Do not clear
8863         crtl->emit structure and free insn locators if cfun->is_thunk is true,
8864         this is now handled in generic code.
8866 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
8868         * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
8869         (s390_z10_fix_long_loop_prediction): New function.
8870         (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
8871         (s390_reorg): Walk over the INSNs and invoke
8872         s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
8874 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
8876         * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
8877         "*brx_64bit", "*brx_31bit"): New patterns.
8878         * config/s390/s390.c ('E'): New output modifier.
8880 2009-08-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8881             Richard Earnshaw  <richard.earnshaw@arm.com>
8883         * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
8884         * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
8886 2009-08-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8888         * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
8889         patterns.
8890         * pa.c (emit_move_sequence): Check if address of operand1 is valid
8891         for mode mode of operand0 when doing secondary reload for SAR.
8893 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
8895         PR middle-end/41123
8896         * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
8897         of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
8899 2009-08-19  Jason Merrill  <jason@redhat.com>
8901         * doc/invoke.texi (C++ Dialect Options): Note change of minimum
8902         supported template depth in C++0x.
8904 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
8906         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
8907         free_after_compilation.
8908         * config/score/score7.c (score7_output_mi_thunk): Likewise.
8909         * config/score/score3.c (score3_output_mi_thunk): Likewise.
8910         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
8911         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
8912         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
8913         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
8914         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
8916 2009-08-19  Ian Lance Taylor  <iant@google.com>
8918         * doc/md.texi (Insn Canonicalizations): Correct canonicalization
8919         of (plus (mult (neg B) C) A).
8921 2009-08-18  Michael Matz  <matz@suse.de>
8923         * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
8924         instead of comparing TYPE_MAIN_VARIANT for equality.
8925         * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
8926         vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
8927         * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
8928         * gimplify.c (goa_lhs_expr_p): Ditto and use
8929         STRIP_USELESS_TYPE_CONVERSION.
8931 2009-08-18  Michael Matz  <matz@suse.de>
8933         * tree-ssa-structalias.c (create_variable_info_for): Also mark
8934         first field in a struct.
8935         (intra_create_variable_infos): Don't deal with flag_argument_noalias.
8937 2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
8939         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
8940         locators before emit_insn is called.  Remove assert that
8941         cfun->is_thunk.
8942         (alpha_end_function): Clear crtl->emit structure and free insn
8943         locators if cfun->is_thunk is true.
8945 2009-08-18  Jason Merrill  <jason@redhat.com>
8947         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
8948         type if available.
8949         * configure.ac: Test for it.
8950         * configure, config.in: Regenerate.
8951         * doc/install.texi: Document --enable-gnu-unique-object.
8953 2009-08-18  Richard Guenther  <rguenther@suse.de>
8955         PR middle-end/41094
8956         * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
8957         pow(x,y*z) only if x is nonnegative.
8959 2009-08-18  Jakub Jelinek  <jakub@redhat.com>
8961         * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
8962         on jumps.
8964         PR target/40971
8965         * config/rs6000/rs6000.c (rs6000_legitimize_address): For
8966         [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
8968 2009-08-17  DJ Delorie  <dj@redhat.com>
8970         * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
8971         * config/m32c/prologue.md (epilogue_freit): New.
8972         (fset_b): New.
8973         * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
8974         (bank_switch_p): Likewise.
8975         (fast_interrupt_p): Likewise.
8976         (interrupt_p): Likewise.
8977         (m32c_conditional_register_usage): Round memregs size up.
8978         (need_to_save): We only need to save $a0 when we use ENTER.
8979         (interrupt_p): Check for fast_interrupt too.
8980         (bank_switch_p): New.
8981         (fast_interrupt_p): New.
8982         (m32c_attribute_table): Add bank_switch and fast_interrupt.
8983         (m32c_emit_prolog): Support bank switching and fast interrupts.
8984         * doc/extend.texi (Function Attributes): Add bank_switch and
8985         fast_interrupt.
8987 2009-08-17  Douglas B Rupp  <rupp@gnat.com>
8989         * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
8990         * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
8992 2009-08-16  Douglas B Rupp  <rupp@gnat.com>
8994         * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
8995         (menu): Add IA-64/VMS Options.
8996         (IA-64/VMS Options): Likewise.
8998 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
9000         PR target/38599
9001         * config/mips/mips.md (*lwxs): Use :P for pointer values.
9003 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
9005         * config/mips/mips-protos.h (mips_push_asm_switch): New function.
9006         (mips_pop_asm_switch): Likewise.
9007         * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
9008         with...
9009         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
9010         (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
9011         (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
9012         (mips_print_operand_punctuation): Use them.  Check mips_noreorder
9013         instead of set_noreorder.
9014         (mips_output_function_prologue): Use the new functions.
9015         (mips_output_function_epilogue): Likewise.
9016         (mips_need_noat_wrapper_p): New function, split out from...
9017         (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
9018         Use mips_push_asm_switch and mips_pop_asm_switch.
9019         * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
9020         and mips_pop_asm_switch.
9021         (ASM_OUTPUT_REG_POP): Likewise.
9022         (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
9023         Use mips_pop_asm_switch.
9024         (mips_asm_switch): New structure.
9025         (set_noreorder, set_nomacro): Replace with...
9026         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
9027         * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
9028         instead of set_nomacro.
9029         (fix_truncsfsi2_macro): Likewise.
9030         (cprestore): Likewise.
9031         (hazard): Use mips_noreorder instead of set_noreorder.
9032         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
9034 2009-08-16  Uros Bizjak  <ubizjak@gmail.com>
9036         * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
9037         from prev_active_insn.
9039 2009-08-16  Anatoly Sokolov  <aesok@post.ru>
9041         * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
9042         * config/avr/avr.c (avr_override_options): Initialize
9043         avr_current_arch variable.
9044         (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
9045         __AVR_HAVE_16BIT_SP__ according to the device type.
9046         (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
9047         TARGET_TINY_STACK.
9048         (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
9049         Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
9051 2009-08-16  Dodji Seketeli  <dodji@redhat.com>
9053         PR debug/37801
9054         * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
9055         generating inlined subroutine die only. We shouldn't be
9056         called for anything else.
9057         (gen_block_die): Don't generate inline subroutine debug info for
9058         abstract blocks.
9060 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
9062         * graphite-poly.c (print_pbb): Print PBB index.
9064 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
9066         PR middle-end/40981
9067         * graphite-interchange.c (ppl_max_for_le): Moved...
9068         * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
9069         * graphite-ppl.c (ppl_max_for_le): ... here.  Correct the use of
9070         ppl_Pointset_Powerset_C_Polyhedron_maximize.
9071         * graphite-ppl.h (ppl_max_for_le): Declared.
9073 2009-08-14  Olatunji Ruwase <tjruwase@google.com>
9075         * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
9076         supported on all platforms.
9077         * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
9078         * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
9079         * c-pragma.c: Likewise.
9080         * target-def.h (TARGET_INITIALIZER): Remove
9081         TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
9082         * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
9084 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
9086         * config/ia64/fde-vms.c: New file.
9087         * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
9088         * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
9089         (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
9090         (uw_frame_state_for): Only register a personality routine if it is
9091         known to be compatible with our expectations.
9092         (_Unwind_FindEnclosingFunction, uw_frame_state_for):
9093         Declare unw_table_entry stack variable and
9094         mod all calls to _Unwind_FindTableEntry to add arg.
9095         * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
9096         (_Unwind_FindTableEntry): Add arg to prototype.
9098 2009-08-14  Eric Botcazou  <ebotcazou@adacore.com>
9100         * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
9101         field 'signal_pfs_loc'.
9102         (uw_frame_state_for): Remove duplicate code dealing with leaf
9103         procedures without unwind info.
9104         If in the frame after unwinding through a signal handler, restore
9105         the AR.PFS register instead of the CFM if AR.PFS has not been saved.
9106         * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
9107         'pfs_loc' to the AR.PFS location in the signal context; instead
9108         set 'signal_pfs_loc'.
9109         Manually generate the unwind info for the AR.PFS register.
9110         (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
9111         ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
9112         (ia64_handle_unwabi): Test 'fs->unwabi' against them.
9113         Do not set 'pfs_loc' to the AR.PFS location in the signal context;
9114         instead set 'signal_pfs_loc'.
9115         Remove code preventing the AR.PFS register from being restored
9116         from the signal context.
9118 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
9119             Tristan Gingold  <gingold@adacore.com>
9121         * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
9122         * config/ia64/t-vms: New file.
9123         * config/ia64/vms64.h: New file.
9124         * config/ia64/vms.h: New file.
9125         * config/ia64/vms-crtinit.asm: New file.
9126         * config/ia64/vms_symvec_libgcc_s.opt: New file.
9127         * config/ia64/vms-unwind.h: New file.
9129 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
9131         * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
9132         TFmode compares.
9134 2009-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9136         PR middle-end/30789
9137         * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
9138         Move declaration...
9139         * real.h (do_mpc_arg2): ... here.
9140         * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
9141         and RDIV_EXPR.
9143 2009-08-14  Rafael Avila de Espindola  <espindola@google.com>
9145         * final.c (add_debug_prefix_map): Don't use GC memory for
9146         old_prefix and new_prefix.
9148 2009-08-14  Richard Guenther  <rguenther@suse.de>
9150         * ipa-prop.c (compute_complex_pass_through): If we cannot
9151         compute a non-varying offset for IPA_JF_ANCESTOR punt.
9153 2009-08-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9155         * c-lex.c (c_lex_with_flags): Increase size of local variable
9156         to avoid memory clobber.
9158 2009-08-14  Paolo Bonzini  <bonzini@gnu.org>
9160         PR target/40934
9161         * config/i386/i386.c (ix86_fp_comparison_strategy):
9162         Only enable/disable sahf at function granularity.
9164 2009-08-14  Hans-Peter Nilsson  <hp@axis.com>
9166         PR rtl-optimization/41064
9167         * reload1.c (reload_as_needed): Don't call extract_insn
9168         for known invalid replacements after calling
9169         validate_replace_rtx_group and verify_changes.
9171 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
9173         PR target/41019
9174         * config/i386/sse.md (SSEMODE124C8): New mode iterator.
9175         (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
9176         ix86_expand_fp_vcond.
9177         (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
9178         Assert that operation is supported by ix86_expand_int_vcond.
9179         (vcondu<SSEMODE124C8:mode>): Ditto.
9181 2009-08-13  DJ Delorie  <dj@redhat.com>
9183         * config/i386/djgpp-stdint.h: New.
9184         * config.gcc (djgpp): Use it.
9186 2009-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
9188         * config/sh/sh.c (sh_override_options): When flag_exceptions or
9189         flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
9191 2009-08-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
9193         * tree-ssa-loop-prefetch.c
9194         (prune_ref_by_group_reuse): Enhance probabilistic analysis
9195         for long-stride pruning.
9196         (compute_miss_rate): New function to compute the probability
9197         that two memory references access different cache lines.
9199 2009-08-13  Dave Korn  <dave.korn.cygwin@gmail.com>
9201         * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
9203 2009-08-13  Richard Guenther  <rguenther@suse.de>
9205         PR middle-end/41047
9206         * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
9207         use the constant pointer type.
9208         * gimplify.c (canonicalize_addr_expr): Canonicalize independent
9209         of CV qualifiers on the target pointer type.
9210         * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
9211         conversion check before restrict check.
9213 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
9215         PR target/41029
9216         * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
9218 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
9220         * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
9222 2009-08-12  Richard Guenther  <rguenther@suse.de>
9224         PR tree-optimization/41011
9225         * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
9226         and reference constructing.
9228 2009-08-12  Xinliang David Li  <davidxl@google.com>
9230         PR tree-optimization/41012
9231         * tree-flow.h : New external interface.
9232         * gimple-low.c (check_call_arg): Change to public function.
9233         Remove argument mismatch check in lowering.
9234         * tree-inline.h (tree_can_inline_p): Interface change.
9235         * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
9236         into this function.
9237         * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
9238         Call change to tree_can_inline_p function.
9239         (cgraph_decide_inlining_incrementally): Ditto.
9241 2009-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
9243         PR tree-optimization/41031
9244         * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
9245         on the partition variable rather than promote_mode on the source
9246         type.  Assert that the partition variable's type has the same
9247         mode as the source value's.
9249 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
9251         * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
9252         for for_return == 2.
9253         * function.c (assign_parm_setup_reg): Use for_return == 2, improve
9254         comments.
9255         * calls.c (expand_call): Fix typo.
9256         * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
9257         and PARM_DECL.
9258         * stmt.c (expand_value_return): Use promote_function_mode to copy out
9259         of pseudo.
9260         * targhooks.c (default_promote_function_mode): Handle for_return == 2.
9261         * config/cris/cris.c (cris_promote_function_mode): Likewise.
9262         * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
9263         * config/pa/pa.c (pa_promote_function_mode): Likewise.
9265 2009-08-12  Andrew Haley  <aph@redhat.com>
9267         * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
9269 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9271         PR bootstrap/40103
9272         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
9274 2009-08-12  Richard Guenther  <rguenther@suse.de>
9276         * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
9277         * gimplify.c (gimplify_modify_expr): Do not use
9278         lang_hooks.types_compatible_p.
9279         * tree-ssa.c (useless_type_conversion_p): For aggregates
9280         just return false if the canonical types differ.
9282 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9284         PR middle-end/40980
9285         * sese.c (convert_for_phi_arg): New.
9286         (add_guard_exit_phis): Use convert_for_phi_arg.
9288 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9290         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
9291         unknown subscript upper bounds.
9293 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9294             Pranav Garg  <pranav.garg2107@gmail.com>
9296         * graphite-interchange.c (gather_access_strides): Removed.
9297         (ppl_max_for_le): New.
9298         (build_linearized_memory_access): New.
9299         (memory_stride_in_loop): New.
9300         (pbb_interchange_profitable_p): Reimplemented.
9301         * graphite-ppl.h (ppl_new_id_map): New.
9302         (ppl_interchange): New.
9304 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9306         * graphite-interchange.c (compute_subscript): Removed.
9307         (compute_array_size_cstr): Removed.
9308         (compute_array_size_poly): Removed.
9309         (compute_array_size): Removed.
9310         (gather_access_strides_poly): Removed.
9311         (gather_access_strides): Empty.
9313 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9315         * graphite-dependences.c (dependence_polyhedron_1): Replace
9316         pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
9317         (graphite_legal_transform_dr): Same.
9318         (graphite_carried_dependence_level_k): Same.
9319         * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
9320         Initialize PDR_NB_SUBSCRIPTS.
9321         (print_pdr_access_layout): Replace pdr_nb_subscripts with
9322         PDR_NB_SUBSCRIPTS.
9323         * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
9324         (PDR_NB_SUBSCRIPTS): New.
9325         (pdr_nb_subscripts): Removed.
9326         (pdr_dim): Simplified.
9327         * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
9328         with PDR_NB_SUBSCRIPTS.
9330 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9332         * graphite-interchange.c (compute_array_size): Remove use of
9333         PDR_DATA_CONTAINER.
9334         * graphite-poly.c (new_poly_dr): Remove argument data_container.
9335         Do not initialize PDR_DATA_CONTAINER.
9336         (print_pdr): Do not print PDR_DATA_CONTAINER.
9337         * graphite-poly.h (struct poly_dr): Remove data_container field.
9338         (PDR_DATA_CONTAINER): Removed.
9339         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
9340         PDR_DATA_CONTAINER.
9341         (build_poly_dr): Same.
9343 2009-08-12  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
9344             Sebastian Pop  <sebastian.pop@amd.com>
9346         * graphite-dependences.c (graphite_legal_transform_dr): Work on a
9347         copy of the dependence polyhedron.  Free the temporary objects.
9348         (graphite_carried_dependence_level_k): Free unused objects before
9349         returning.
9351 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9353         * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
9354         Early return without analyzing the data dependences if no
9355         transform has been done.  Call restore_scattering if the transform
9356         is not legal.
9357         (graphite-interchange.c): Same.
9358         * graphite-poly.c (print_scattering_function): Test for
9359         PBB_TRANSFORMED.
9360         (graphite_read_transforms): Initialize PBB_TRANSFORMED.
9361         (apply_poly_transforms): Do not gcc_assert that
9362         the transform is legal.
9363         (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
9364         Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
9365         PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
9366         (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
9367         * graphite-poly.h (struct poly_scattering): New.
9368         (struct poly_bb): Add original, transformed, and saved fields.
9369         Remove transformed_scattering, original_scattering,
9370         nb_local_variables and nb_scattering_transform fields.
9371         (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
9372         (poly_scattering_new): New.
9373         (poly_scattering_free): New.
9374         (poly_scattering_copy): New.
9375         (store_scattering_pbb): New.
9376         (store_scattering): New.
9377         (restore_scattering_pbb): New.
9378         (restore_scattering): New.
9379         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
9380         Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
9382 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9384         * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
9385         (print_scop): Same.
9387 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9389         * Makefile.in (graphite.o): Depends on PREDICT_H.
9390         * graphite.c: Include predict.h.
9391         (graphite_finalize): Call tree_estimate_probability.
9392         * predict.c (predict_loops): Do not call scev_initialize and
9393         scev_finalize.
9394         (tree_estimate_probability_bb): New.
9395         (tree_estimate_probability): Do not initialize loops: move that
9396         code to the driver.  Call tree_estimate_probability_bb.
9397         (tree_estimate_probability_driver): New.
9398         (pass_profile): Use tree_estimate_probability_driver.
9399         * predict.h (tree_estimate_probability): Declared.
9401 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
9403         * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
9404         * graphite-dependences.c (graphite_legal_transform): Add time to
9405         TV_GRAPHITE_DATA_DEPS.
9406         (dependency_between_pbbs_p): Same.
9407         * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
9409 2009-08-12  Andrey Belevantsev  <abel@ispras.ru>
9411         PR rtl-optimization/41033
9412         * alias.c (nonoverlapping_component_refs_p): Punt when strict
9413         aliasing is disabled.
9415 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
9417         * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
9418         si_mask_operand, and_load_operand, low_bitmask_operand,
9419         and_reg_operand, and_operand): New predicates.
9420         * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
9421         * config/mips/mips.c (and_operands_ok): New function.
9422         * config/mips/mips-protos.h (and_operands_ok): Declare it.
9423         * config/mips/mips.md (move_type): Add ext_ins and logical.
9424         (type): Handle them.
9425         (and<mode>3): Use and_reg_operand as the second operand's predicate.
9426         (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
9427         shift_shift.  Remove commutative constraint modifier.
9428         (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
9429         shift_shift.
9430         (*clear_upper32_dext): Remove define_insn_and_split.
9431         (*clear_upper32): Turn this define_insn_and_split ...
9432         (splitter for ANDing register with 0xffff_ffff): .. into this.
9434 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
9436         * combine.c (try_widen_shift_mode): Factor out code to check if an
9437         integer constant is a low-order bitmask from here ...
9438         * rtlanal.c (low_bitmask_len): ... to here.
9439         * rtl.h (low_bitmask_len): Declare.
9441 2009-08-11  Uros Bizjak  <ubizjak@gmail.com>
9443         PR target/8603
9444         * config/alpha/alpha.md (addsi3): Remove expander.
9445         (addsi3): Rename from *addsi3_internal insn pattern.
9446         (subsi3): Remove expander.
9447         (subsi3): Rename from *subsi3_internal insn pattern.
9449 2009-08-11  Douglas B Rupp  <rupp@gnat.com>
9451         * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
9452         FWRITE_UNLOCKED.
9454 2009-08-11  Vasiliy Fofanov  <fofanov@adacore.com>
9455             Eric Botcazou  <botcazou@adacore.com>
9456             Douglas B Rupp  <rupp@gnat.com>
9458         * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
9459         that records that fit in 64 bits are returned by immediate value,
9460         as required by OpenVMS Calling Standard.
9461         (function_value): Adjust for above modification.
9462         (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
9463         virtual_incoming_args_rtx as base object, not next_arg.
9464         * config/alpha/vms.h (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
9466 2009-08-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9468         * reload.c (find_reloads_subreg_address): Check the original
9469         req_equiv_mem address to detect the case where an address is
9470         not valid in the outer mode.
9472 2009-08-11  Richard Guenther  <rguenther@suse.de>
9474         PR bootstrap/40788
9475         * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
9477 2009-08-10  Douglas B Rupp  <rupp@gnat.com>
9479         * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
9480         (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
9482 2009-08-10  Olivier Hainque  <hainqueu@adacore.com>
9483             Douglas B Rupp  <rupp@gnat.com>
9485         * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
9486         PT_STACK when frame_pointer_needed on OpenVMS.
9487         (alpha_pv_save_size, alpha_using_fp): Remove.
9488         (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
9489         with proper processing for PT_NULL.
9490         (alpha_vms_initial_elimination_offset): New function. Support for
9491         INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
9492         (alpha_sa_size): Force procedure type to PT_STACK when
9493         frame_pointer_needed on OpenVMS.
9494         * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
9495         (alpha_using_fp): Likewise.
9496         (alpha_vms_can_eliminate): Add prototype.
9497         (alpha_vms_initial_elimination_offset): Likewise.
9498         * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
9499         Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
9501 2009-08-10  Eric Botcazou  <botcazou@adacore.com>
9502             Douglas B Rupp  <rupp@gnat.com>
9504         * config/alpha/alpha.c (common_object_handler): New function.
9505         (vms_attribute_table): Declare a single attribute "common_object".
9506         (vms_output_aligned_decl_common): New global function.
9507         (SECTION_VMS_OVERLAY): Delete.
9508         (SECTION_VMS_GLOBAL): Likewise.
9509         (SECTION_VMS_INITIALIZE): Likewise.
9510         (vms_asm_named_section): Remove support for above flags.
9511         (vms_section_type_flags): Delete.
9512         (TARGET_SECTION_TYPE_FLAGS): Likewise.
9513         * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
9514         * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
9515         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
9517 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
9519         PR target/41015
9520         * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
9521         (sub_ddmmss): Likewise.
9523 2009-08-10  Andreas Tobler  <a.tobler@schweiz.org>
9525         PR bootstrap/41018
9526         * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
9527         year.
9529 2009-08-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9531         PR target/37053
9532         * reload1.c (reload_as_needed): Use cancel_changes to completely
9533         undo a failed replacement attempt.
9535 2009-08-10  Richard Guenther  <rguenther@suse.de>
9537         PR middle-end/41006
9538         * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
9539         (useless_type_conversion_p): ... here.  Require pointer targets
9540         to be compatible.
9542 2009-08-10  Dodji Seketeli  <dodji@redhat.com>
9544         PR c++/40866
9545         * tree-inline.c (copy_statement_list): The resulting copy shouldn't
9546         loose the original type of the statement list.
9548 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
9550         * config/alpha/alpha.c: Include libfuncs.h
9551         (avms_asm_output_extern): New function.
9552         (alpha_init_libfuncs): Init some decc libfuncs.
9553         * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
9554         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
9555         (DO_CRTL_NAMES): Define.
9556         (LIB_SPEC): Remove.
9557         * config/alpha/vms64.h (POINTERS_EXTEND_UNSIGNED): Remove undef.
9558         (LONG_TYPE_SIZE): Define.
9559         (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
9560         (SUBTARGET_SWITCHES): Define malloc64 switch.
9561         (TARGET_DEFAULT): Default MASK_MALLOC64 set.
9562         (MASK_RETURN_ADDR): Define.
9563         doc/invoke.texi (mmalloc64): Document switch.
9565 2009-08-09  Olivier Hainque  <hainque@adacore.com>
9566             Douglas B Rupp  <rupp@gnat.com>
9568         * config/alpha/alpha.c (struct machine_function): New flag for VMS,
9569         uses_condition_handler.
9570         (alpha_expand_builtin_establish_vms_condition_handler): New expander.
9571         (alpha_expand_builtin_revert_vms_condition_handler): New expander.
9572         (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
9573         and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
9574         (code_for_builtin): New insn codes for the new alpha_builtins.
9575         (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
9576         (alpha_sa_size): Account for uses_condition_handler.
9577         (alpha_expand_prologue): Likewise.
9578         (alpha_start_function): Likewise.
9579         (alpha_expand_epilogue): Likewise.
9580         * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
9581         establish/revert expanders.
9582         * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
9583         * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
9584         New expander, resorting to the alpha.c associated function.
9585         (builtin_revert_vms_condition_handler): Likewise.
9586         * config/alpha/vms-gcc_shell_handler.c: New file. Implements
9587         __gcc_shell_handler, the static VMS condition handler used as
9588         an indirection wrapper to the current dynamically established
9589         handler.
9590         * config/alpha/vms-unwind.h: Complete rewrite.
9591         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
9592         * config/alpha/vms.h (MD_UNWIND_SUPPORT):
9594 2009-08-09  Eric Botcazou  <botcazou@adacore.com>
9595             Douglas B Rupp  <rupp@gnat.com>
9597         * config/alpha/alpha.c (alpha_links): Add 'target' field.
9598         (alpha_need_linkage): Handle aliases.  Return function symbol.
9599         (alpha_use_linkage): Rename 'linkage' argument to 'func'.
9600         Use ultimate alias target for the linkage name.
9601         * config/alpha/alpha.md (movmemdi): Use the symbol returned
9602         by alpha_need_linkage for the function symbol.
9603         (setmemdi): Likewise.
9605 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
9607         * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
9608         * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
9609         (ASM_WEAKEN_LABEL): Define.
9610         (CRT_CALL_STATIC_FUNCTION): Define.
9611         (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
9612         (ENDFILE_SPEC): Define.
9613         (INIT_SECTION_ASM_OP): Define.
9614         * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
9615         * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
9616         crtend.o crtendS.o.
9617         (MULTILIB_OSDIRNAMES): Define.
9618         (shlib_version): Define.
9619         (SHLIB_EXT): Define.
9620         (SHLIB_OBJS): Define.
9621         (SHLIB_NAME): Define.
9622         (SHLIB_MULTILIB): Define.
9623         (SHLIB_INSTALL): Define.
9624         (SHLIB_SYMVEC): Define.
9625         (SHLIB_SYMVECX2): Define.
9626         (SHLIB_LINK): Define.
9628 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
9630         * config/alpha/alpha.c (alpha_initialize_trampoline):
9631         Initialize VMS trampoline IAW ABI for bounded procedure calls.
9632         (alpha_start_function): Emit transfer address on nested functions
9633         for VMS trampoline call.
9634         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
9635         since no longer used.
9636         * config/alpha/vms-tramp.asm: Remove.
9637         * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
9638         since now only data initialized at runtime.
9640 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
9642         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
9643         (LINK_GCC_C_SEQUENCE_SPEC): Define.
9644         (MD_EXEC_PREFIX): Remove, no longer used.
9645         (MD_STARTFILE_PREFIX): Likewise.
9646         (INCLUDE_DEFAULTS): Likewise.
9647         * config/alpha/t-vms:
9648         (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
9650 2009-08-09  Richard Guenther  <rguenther@suse.de>
9652         PR tree-optimization/41016
9653         * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
9654         (operand_precision): Remove.
9655         (integral_operand_p): Likewise.
9656         (recognize_single_bit_test): Adjust.
9658 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
9660         * c-common.c (c_fully_fold_internal): Issue a warning if a binary
9661         operation overflows.  Likewise non-cast unary arithmetic.
9662         If one arm of a conditional expression is always taken,
9663         inhibit evaluation warnings for the other arm.  Likewise inhibit
9664         evaluation warnings for the second && or || operand if the first
9665         operand is enough to determine the result.
9666         * c-typeck.c (build_conditional_expr): Apply the same inhibition
9667         rules here.
9668         (build_binary_op): Prevent duplicate evaluation warnings.
9670 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
9672         * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
9673         and destination have different modes, Use promote_mode to
9674         determine the signedness of the conversion.  Assert that the
9675         promoted source mode matches the destination mode.  Don't pass
9676         the destination and destination mode to expand_expr if the source
9677         mode is different.  Simplify conversion logic.
9679 2009-08-09  Ira Rosen  <irar@il.ibm.com>
9681         PR tree-optimization/41008
9682         * tree-vect-loop.c (vect_is_simple_reduction): Get operands
9683         from condition only in case it's a comparison. Adjust checks.
9685 2009-08-09  Bernd Schmidt  <bernd.schmidt@analog.com>
9687         * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
9688         * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
9689         * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
9690         (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
9691         (dump_cand): Handle them.
9692         (struct iv_cand): New members COST_STEP and AINC_USE.
9693         (stmt_after_increment): Likewise.
9694         (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos.  All
9695         callers changed.  Use gimple_uid comparison instead of scanning.
9696         (add_candidate_1): When looking for identical candidates, take
9697         AINC_USE into account.  Set it for new candidates.
9698         (force_expr_to_var_cost): Cast target_spill_cost to int.
9699         (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
9700         All callers changed.  Check for availability of autoinc addressing
9701         modes, both in general for a given mode, and in the specific use case.
9702         (get_computation_cost_at): New argument CAN_AUTOINC.  All callers
9703         changed.
9704         (get_computation_cost): Likewise.
9705         (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
9706         add_autoinc_candidates): New static functions.
9707         (add_candidate): Call add_autoinc_candidates for candidates based on
9708         a USE_ADDRESS use.
9709         (find_iv_candidates): Call set_autoinc_for_original_candidates.
9710         (determine_use_iv_cost_address): If we have an autoinc candidate at
9711         the matching use, verify autoinc is possible and subtract the cost
9712         of the candidate's step from the cost.
9713         (determine_iv_cost): Record the cost of the increment in the COST_STEP
9714         member of the candidate.
9715         (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
9716         determine_use_iv_costs.  Call renumber_gimple_stmt_uids_in_blocks.
9718 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
9720         * config.build (ia64-hp-*vms*): New target.
9721         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
9722         with ia64-hp-*vms*.
9723         * config.gcc (ia64-hp-*vms*): New target.
9724         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
9725         with ia64-hp-*vms*.
9726         * config.host (ia64-hp-*vms*): New target.
9727         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
9728         with ia64-hp-*vms*.
9730 2009-08-08  Richard Guenther  <rguenther@suse.de>
9732         PR tree-optimization/40991
9733         * tree-ssa-pre.c (eliminate): Delay purging EH edges.
9735 2009-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
9737         * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
9738         mode check.  Do truncations in an integer mode.
9739         (force_to_mode): Handle subregs for all mode types.  Only do
9740         arithmetic simplifications on integer modes.
9742 2009-08-07  Richard Guenther  <rguenther@suse.de>
9744         PR tree-optimization/40999
9745         * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
9746         (maybe_fold_reference): Lookup constant initializers.
9747         (fold_gimple_assign): Likewise.
9749 2009-08-07  Richard Guenther  <rguenther@suse.de>
9751         * tree-ssa.c (useless_type_conversion_p_1): Only for types
9752         that require structural equality defer to the langhook.
9754 2009-08-07  Martin Jambor  <mjambor@suse.cz>
9756         * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
9757         comments.
9758         (struct ipa_pass_through_data): New type.
9759         (struct ipa_ancestor_jf_data): New type.
9760         (union jump_func_value): Removed field formal_id, added fields
9761         pass_through and ancestor.
9762         (struct ipa_param_call_note): Changed type of formal_id to int from
9763         unsigned.
9764         * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
9765         operations jump functions and ancestor jump functions.
9766         (compute_complex_pass_through): New function.
9767         (compute_scalar_jump_functions): Call compute_complex_pass_through,
9768         reflect changes in the jump function strucutre.
9769         (update_jump_functions_after_inlining): Ignore complex pass-through
9770         and ancestor jump functions.
9771         * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
9772         polynomial pass-through with operation jump functions.
9774 2009-08-07  Jakub Jelinek  <jakub@redhat.com>
9776         * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
9777         fde->dw_fde_begin as begin label instead of hot/cold label.
9778         Use LLSDAC label instead of LLSDA for second section lsda.
9779         (dwarf2out_do_cfi_startproc): Add SECOND argument.  Use LLSDAC
9780         label instead of LLSDA if it is true.
9781         (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
9782         callers.
9783         * except.c (add_call_site, dw2_size_of_call_site_table): Add
9784         SECTION argument.  Use it as index into crtl->eh.call_site_record
9785         array.
9786         (dw2_output_call_site_table): Likewise.  Add CS_FORMAT argument,
9787         use it to determine how to print table entries instead of using
9788         #ifdef HAVE_AS_LEB128.  For SECTION > 0 use hot resp. cold
9789         label instead of normal begin label as base.
9790         (sjlj_assign_call_site_values): Adjust add_call_site caller.
9791         (convert_to_eh_region_ranges): When doing hot/cold partitioning,
9792         ensure no EH range spans between sections and that landing pads
9793         are always in the corresponding section.
9794         (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
9795         for crtl->eh.call_site_record being an array rather than scalar.
9796         (output_one_function_exception_table): New function, copied
9797         from output_function_exception_table.  Adjust
9798         dw2_size_of_call_site_table, dw2_output_call_site_table
9799         callers.  For SECOND section use *C suffixed labels.
9800         (output_function_exception_table): Call
9801         output_one_function_exception_table and, when doing hot/cold
9802         partitioning, also another time for the second section.
9803         * opts.c: Include except.h.
9804         (decode_options): Allow -freorder-blocks-and-partition with
9805         exceptions, unless SJLJ or TARGET_UNWIND_INFO.
9806         * Makefile.in (opts.o): Depend on $(EXCEPT_H).
9807         * function.h (struct rtl_eh): Change call_site_record from
9808         scalar into array of 2 elements.
9810 2009-08-07  Martin Jambor  <mjambor@suse.cz>
9812         * ipa-prop.c (count_formal_params_1): New function.
9813         (ipa_get_vector_of_formal_parms): New function.
9814         (get_vector_of_formal_parm_types): New function.
9815         (ipa_modify_formal_parameters): New function.
9816         (ipa_modify_call_arguments): New function.
9817         (index_in_adjustments_multiple_times_p): New function.
9818         (ipa_combine_adjustments): New function.
9819         (ipa_dump_param_adjustments): New function.
9820         * ipa-prop.h (struct ipa_parm_adjustment): New type.
9821         (ipa_get_vector_of_formal_parms): Declare.
9822         (ipa_modify_formal_parameters): Declare.
9823         (ipa_modify_call_arguments): Declare.
9824         (ipa_combine_adjustments): Declare.
9825         (ipa_dump_param_adjustments): Declare.
9826         (build_ref_for_offset): Declare.
9827         * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
9828         * tree-sra.c: Include ipa-prop.c.
9829         (build_ref_for_offset): Make public.
9831 2009-08-06  Neil Vachharajani  <nvachhar@gmail.com>
9833         * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
9835 2009-08-06  Thomas Schwinge  <tschwinge@gnu.org>
9837         * gcc/doc/extend.texi (__builtin_extract_return_address)
9838         (__builtin_frob_return_address): Document.
9840 2009-08-06  Paul Brook  <paul@codesourcery.com>
9842         * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
9843         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
9844         implementation on ARMv6-M.
9846 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
9848         * doc/extend.texi (pcs): Document new attribute for ARM.
9850 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
9852         * arm.c (pcs_attribute_args): Comment out unsupported attribute
9853         variants.
9855 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
9857         * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
9858         warning ().
9860 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
9862         * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
9864 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
9866         Merge ARM/hard_vfp_branch to trunk.
9868         2009-08-04  Richard Earnshaw  <rearnsha@arm.com>
9870         * arm.c (libcall_eq): New function.
9871         (libcall_hash): New function.
9872         (add_libcall): New function.
9873         (arm_libcall_uses_aapcs_base): New function.
9874         (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
9875         libcalls using the base PCS.
9876         (arm_init_cumulative_args): Likewise.
9878         2009-07-20  Joseph Myers  <joseph@codesourcery.com>
9880         * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
9881         Use base ABI for conversion libfuncs between HFmode and SFmode.
9883         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
9885         * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
9886         V4SImode as representatives of all 64-bit and 128-bit vector
9887         types.  Allow vector types without vector modes.
9888         (aapcs_vfp_is_call_or_return_candidate): Handle vector types
9889         without vector modes like BLKmode.
9890         (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
9891         BLKmode.  Avoid unsupported vector modes or TImode moves for
9892         non-TARGET_NEON.
9893         (aapcs_vfp_allocate_return_reg): Likewise.
9894         (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
9895         V8QImode if TARGET_NEON || TARGET_IWMMXT.
9897         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
9899         * config/arm/arm.c (arm_handle_pcs_attribute): New.
9900         (arm_get_pcs_model): Pass attribute arguments to
9901         arm_pcs_from_attribute.
9902         (arm_init_cumulative_args): Use base AAPCS for conversions from
9903         floating-point types to DImode.
9904         (arm_attribute_table): Add pcs attribute.
9905         (arm_handle_pcs_attribute): New.
9906         * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
9907         conversions from floating-point types to DImode, also declare them
9908         to use base AAPCS and declare functions they call to use base
9909         AAPCS and their RTABI names.
9911         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
9913         * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
9914         -mfloat-abi=hard not being supported for VFP.
9916         2009-05-11  Kazu Hirata  <kazu@codesourcery.com>
9918         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
9919         SYMBOL_REF to hard_libcall_value.
9921         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
9922             Richard Earnshaw  <rearnsha@arm.com>
9924         * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
9925         has been put on the stack, all remaining co-processory arguments for
9926         that co-processor also go on the stack.
9928         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
9930         * config/arm/arm.c (arm_return_in_memory): Handle returning
9931         vectors of suitable size in registers also for AAPCS case.
9933         2009-01-13  Richard Earnshaw <rearnsha@arm.com>
9935         * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
9937         2008-12-09  Richard Earnshaw <rearnsha@arm.com>
9939         ARM Hard-VFP calling convention
9940         * target-def.h (TARGET_LIBCALL_VALUE): New hook.
9941         * target.h (gcc_target): Add libcall_value to table of call hooks.
9942         * targhooks.h (default_libcall_value): Default implementation.
9943         * targhooks.c (default_libcall_value): Likewise.
9944         * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
9945         * optabs.c (expand_unop): Use it.
9946         * expr.h (hard_libcall_value): Pass the function RTX through.
9947         * calls.c (emit_library_call_value_1): Update call to
9948         hard_libcall_value.
9949         * explow.c (hard_libcall_value): Use new target hook.
9950         * config/arm/arm.c: Include cgraph.h
9951         (TARGET_FUNCTION_VALUE): Override default hook.
9952         (arm_pcs_default): New variable.
9953         (arm_override_options): Don't fault hard calling convention with VFP.
9954         Add support for AAPCS variants.
9955         (arm_function_value): Make static.  Handle AAPCS variants.
9956         (arm_libcall_value): New function.
9957         (arm_apply_result_size): Handle VFP registers in results.
9958         (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
9959         conventions.
9960         (pcs_attribute_args): New variable.
9961         (arm_pcs_from_attribute): New function.
9962         (arm_get_pcs_model): New function.
9963         (aapcs_vfp_cum_init): New function.
9964         (aapcs_vfp_sub_candidate): New function.
9965         (aapcs_vfp_is_return_candidate): New function.
9966         (aapcs_vfp_is_call_candidate): New function.
9967         (aapcs_vfp_allocate): New function.
9968         (aapcs_vfp_allocate_return_reg): New function.
9969         (aapcs_vfp_advance): New function.
9970         (aapcs_cp_arg_layout): New variable.
9971         (aapcs_select_call_coproc): New function.
9972         (aapcs_select_return_coproc): New function.
9973         (aapcs_allocate_return_reg): New function.
9974         (aapcs_libcall_value): New function.
9975         (aapcs_layout_arg): New function.
9976         (arm_init_cumulative_args): Initialize AAPCS args data.
9977         (arm_function_arg): Handle AAPCS variants using new interface.
9978         (arm_arg_parital_bytes): Likewise.
9979         (arm_function_arg_advance): New function.
9980         (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
9981         calling conventions.
9982         (arm_setup_incoming_varargs): Handle new AAPCS args data.
9983         * arm.h (NUM_VFP_ARG_REGS): Define.
9984         (LIBCALL_VALUE): Update.
9985         (FUNCTION_VALUE): Delete.
9986         (FUNCTION_VALUE_REGNO_P): Add VFP regs.
9987         (arm_pcs): New enum.
9988         (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
9989         (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
9990         (FUNCTION_ARG_REGNO_P): Add VFP regs.
9991         * arm-protos.h (arm_function_arg_advance): Add.
9992         (aapcs_libcall_value): Add.
9993         (arm_function_value): Delete.
9995 2009-08-06  Uros Bizjak  <ubizjak@gmail.com>
9996             H.J. Lu  <hongjiu.lu@intel.com>
9998         PR target/40957
9999         * config/i386/i386.c (standard_sse_mode_p): Remove.
10000         (standard_sse_constant_p): Return 2 for integer mode
10001         vector_all_ones_operand when SSE2 is enabled.
10002         (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
10003         (ix86_expand_vector_move): Do not check for negative values from
10004         standard_sse_constant_p.
10006 2009-08-06  Richard Guenther  <rguenther@suse.de>
10008         * tree-ssa.c (useless_type_conversion_p_1): Make function and
10009         array type comparisons frontend independent.
10010         * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
10011         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
10012         out array reference lower bound and element size operands.
10013         (ao_ref_init_from_vn_reference): Properly compute the offset
10014         for ARRAY_RANGE_REF.
10015         (vn_reference_fold_indirect): Fill out array reference lower
10016         bound and element size operands.
10017         * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
10018         a non gimple valued reference operand which can happen for
10019         array reference lower bound or element size.
10020         (create_component_ref_by_pieces_1): Properly generate the
10021         element size operand for array references.
10023 2009-08-06  Richard Guenther  <rguenther@suse.de>
10025         PR tree-optimization/40964
10026         * tree.c (iterative_hash_host_wide_int): Export.
10027         * tree.h (iterative_hash_host_wide_int): Declare.
10028         * tree-ssa-structalias.c (heapvar_map): New struct.
10029         (heapvar_map_eq): New function.
10030         (heapvar_map_hash): Likewise.
10031         (heapvar_lookup): Adjust.
10032         (heapvar_insert): Likewise.
10033         (make_constraint_from_heapvar): Allow multiple heap variables
10034         per decl at different offsets.
10035         (init_alias_heapvars): Adjust.
10037 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
10039         * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
10040         * mips_output_sync_loop (mips_output_sync_loop): Only emit
10041         trailing sync if TARGET_SYNC_AFTER_SC.
10043 2009-08-05  David Daney  <ddaney@caviumnetworks.com>
10045         * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
10046         compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
10047         sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
10048         sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
10049         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
10050         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
10051         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
10052         sync_new_nand<mode>, sync_lock_test_and_set<mode>,
10053         test_and_set_12): Rewrite calls to mips_output_sync_loop.
10054         * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
10055         the prototype declaration match the definition.
10056         * gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
10057         instructions explicitly.  Add barrier_before and operands
10058         parameters.
10059         * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
10060         MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
10061         MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
10062         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
10063         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
10064         MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
10066 2009-08-05  Andrew Pinski  <pinskia@gmail.com>
10068         * tree-ssa-alias.c: Fix intervals to use [) syntax.
10070 2009-08-05  Uros Bizjak  <ubizjak@gmail.com>
10071             Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
10073         PR target/40906
10074         * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
10075         source operand.
10077 2009-08-05  Jakub Jelinek  <jakub@redhat.com>
10079         PR rtl-optimization/40924
10080         * dse.c (canon_address): Before calling cselib_expand_value_rtx
10081         make sure canon_rtx (mem_address) isn't simpler than
10082         canon_rtx (expanded_mem_address).
10084 2009-08-05  Li Feng  <nemokingdom@gmail.com>
10086         * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
10087         for each poly_bb_p.
10088         (build_scop_drs): Build alias set for each SCoP.
10090 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
10092         * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
10093         * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
10094         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
10095         (MIPS_ARCH_FLOAT_SPEC): Likewise.
10096         (BASE_DRIVER_SELF_SPECS): Likewise.
10098 2009-08-04  Andrew Pinski  <pinskia@gmail.com>
10100         * tree-ssa-alias.c: Fix some comment typos.
10102 2009-08-04  Kaz Kojima  <kkojima@gcc.gnu.org>
10104         * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
10105         ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
10107 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
10109         PR c/39902
10110         * simplify-rtx.c (simplify_binary_operation_1): Disable
10111         simplifications for decimal float operations.
10113 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
10115         PR middle-end/40943
10116         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
10117         operand of INDIRECT_REF.
10119 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
10121         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
10122         constants referencing TLS symbols.
10124 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
10126         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
10127         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
10129 2009-08-03  Richard Guenther  <rguenther@suse.de>
10131         * tree.c (make_vector_type): Build a main variant first,
10132         get the canonical one and then build the variant.
10133         * tree-ssa.c (useless_type_conversion_p_1): Handle
10134         fixed-point types.
10135         (useless_type_conversion_p): Conversions to pointers to
10136         incomplete record types are useless.
10138 2009-08-03  Richard Guenther  <rguenther@suse.de>
10140         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
10141         file will be created.
10142         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
10143         * toplev.c (compile_file): Adjust comment.
10145 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
10147         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
10148         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
10149         (TARGET_PROMOTE_FUNCTION_MODE): Define.
10150         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
10151         (sh_promote_function_mode): Fix typo.
10153 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
10155         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
10157 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10159         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
10160         declaration arguments.
10162 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
10164         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
10165         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
10166         (ix86_split_ashl): Ditto.
10167         (ix86_expand_vector_init_one_nonzero): Ditto.
10168         (ix86_expand_vector_set): Ditto.
10169         (ix86_expand_reduc_v4sf): Ditto.
10171 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
10173         * explow.c (promote_function_mode): Remove assert.
10174         * config/sh/sh.c (sh_promote_function_mode): Declare.
10176 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10178         * config/pa/pa.c (pa_promote_function_mode): Declare.
10179         Change to static.  Fix promote_mode call.
10181         * gthr-dce.h (CONST_CAST2): Define if not defined.
10182         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
10184         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
10186 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
10188         * expr.c (store_constructor): Use promote_decl_mode.  Remove
10189         now write-only variable unsignedp.
10190         (expand_expr_real_1): Use promote_decl_mode.
10191         * expr.h (promote_function_mode, promote_decl_mode): New.
10192         (promote_mode): Remove last argument.
10193         * function.c (assign_temp): Drop last argument of promote_mode.
10194         (assign_parm_find_data_types): Use promote_function_mode.
10195         (assign_parm_setup_reg): Likewise.
10196         (expand_function_end): Use promote_function_mode.
10197         * calls.c (initialize_argument_information): Use promote_function_mode.
10198         (precompute_arguments): Use promote_mode instead of checking if
10199         only PROMOTE_FUNCTION_MODE is defined.
10200         (expand_call): When making sibcall decisions, use promote_function_mode.
10201         Below, remove an if for targetm.calls.promote_function_return and
10202         and use promote_function_mode.
10203         (emit_library_call_value_1): Use promote_function_mode, fix bug
10204         where promote_mode was passed FOR_CALL == 0 for a return value in an
10205         assertion.
10206         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
10207         * explow.c (promote_function_mode, promote_decl_mode): New.
10208         (promote_mode): Keep only the FOR_CALL == 0 case.
10209         * combine.c (setup_incoming_promotion): Remove test of
10210         promote_function_args.  Use promote_function_mode.
10211         * stmt.c (expand_value_return): Use promote_decl_mode.
10212         (expand_decl): Use promote_decl_mode.
10214         * expr.c (store_constructor): Use promote_decl_mode.  Remove
10215         now write-only variable unsignedp.
10216         (expand_expr_real_1): Use promote_decl_mode.
10217         * expr.h (promote_function_mode, promote_decl_mode): New.
10218         (promote_mode): Remove last argument.
10219         * function.c (assign_temp): Drop last argument of promote_mode.
10220         (assign_parm_find_data_types): Use promote_function_mode.
10221         (assign_parm_setup_reg): Likewise.
10222         (expand_function_end): Use promote_function_mode.
10223         * calls.c (initialize_argument_information): Use promote_function_mode.
10224         (precompute_arguments): Use promote_mode instead of checking if
10225         only PROMOTE_FUNCTION_MODE is defined.
10226         (expand_call): When making sibcall decisions, use promote_function_mode.
10227         Below, remove an if for targetm.calls.promote_function_return and
10228         and use promote_function_mode.
10229         (emit_library_call_value_1): Use promote_function_mode, fix bug
10230         where promote_mode was passed FOR_CALL == 0 for a return value in an
10231         assertion.
10232         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
10233         * explow.c (promote_function_mode, promote_decl_mode): New.
10234         (promote_mode): Keep only the FOR_CALL == 0 case.
10235         * combine.c (setup_incoming_promotion): Remove test of
10236         promote_function_args.  Use promote_function_mode.
10237         * stmt.c (expand_value_return): Use promote_decl_mode.
10238         (expand_decl): Use promote_decl_mode.
10240         * explow.c (promote_function_mode): Just call the target hook.
10241         * targhooks.c (default_promote_function_mode,
10242         default_promote_function_mode_always_promote): New.
10243         * targhooks.h (default_promote_function_mode,
10244         default_promote_function_mode_always_promote): Declare.
10245         * target.h (promote_function_args, promote_function_return): Remove.
10246         (promote_function_mode): New.
10247         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
10248         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10249         (TARGET_PROMOTE_FUNCTION_MODE): New.
10250         (TARGET_CALLS): Adjust.
10251         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
10252         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
10254         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
10255         * config/s390/s390.c (s390_promote_function_mode): ... here,
10256         with pointer handling.
10257         (TARGET_PROMOTE_FUNCTION_MODE): Define.
10258         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10260         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
10261         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
10262         with pointer handling.
10263         (TARGET_PROMOTE_FUNCTION_MODE): Define.
10264         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10266         * config/sh/sh-protos.h (sh_promote_function_mode): New.
10267         * config/sh/sh.c (sh_promote_function_mode): New.
10268         (TARGET_PROMOTE_FUNCTION_MODE): Define.
10269         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10271         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
10272         * config/cris/cris.c (cris_promote_function_mode): ... here.
10273         (TARGET_PROMOTE_FUNCTION_MODE): Define.
10274         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
10276         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
10277         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
10278         (TARGET_PROMOTE_FUNCTION_MODE): Define.
10279         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
10281         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
10282         * config/arm/arm.c (arm_promote_function_mode): ... here, without
10283         complex type handling.
10284         (TARGET_PROMOTE_FUNCTION_MODE): Define.
10285         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10287         * config/pa/pa.c (pa_promote_function_mode): New.
10288         (TARGET_PROMOTE_FUNCTION_MODE): Define.
10289         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10291         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
10292         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
10293         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
10294         * config/xtensa/xtensa.c: Likewise.
10295         * config/stormy16/stormy16.c: Likewise.
10296         * config/iq2000/iq2000.c: Likewise.
10297         * config/rs6000/rs6000.c: Likewise.
10298         * config/picochip/picochip.c: Likewise.
10299         * config/arc/arc.c: Likewise.
10300         * config/mcore/mcore.c: Likewise.
10301         * config/score/score.c: Likewise.
10302         * config/mips/mips.c: Likewise.
10303         * config/bfin/bfin.c: Likewise.
10304         * config/ia64/ia64.c: Likewise (disabled though).
10306         * config/frv/frv.h: Remove pointless remark.
10308         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
10309         TARGET_PROMOTE_FUNCTION_ARGS,
10310         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
10311         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
10313 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
10315         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
10316         -floop-parallelize-all.
10317         * toplev.c (process_options): Rename flag_graphite_force_parallel to
10318         flag_loop_parallelize_all.
10319         * tree-ssa-loop.c (gate_graphite_transforms): Same.
10320         * graphite.c (graphite_transform_loops): Same.
10321         * common.opt: Same.
10322         * graphite-poly.c (apply_poly_transforms): Same.
10324 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
10326         PR tree-optimization/40914
10327         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
10328         if set, then check the delta field of the PMF record.
10329         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
10330         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
10331         call is stored in the delta.
10333 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
10335         * config/mips/mips.md (*clear_upper32_dext): New pattern.
10337 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
10339         * config/i386/bsd.h (ASM_BYTE): New define.
10340         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
10341         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
10342         .byte.  Use fputs or putc instead of fprintf where appropriate.
10343         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
10344         fputs or putc instead of fprintf where appropriate.
10345         * config/i386/i386elf.h: Ditto.
10346         * config/i386/sysv4.h: Ditto.
10348         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
10349         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
10350         (*tls_global_dynamic_64): Ditto.
10352 2009-07-31  Christian Bruel  <christian.bruel@st.com>
10354         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
10356 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10358         * config/arm/arm.c (arm_arm_address_cost): Fix typo.
10359         Remove dead code for MINUS.
10361 2009-07-31  Anthony Green  <green@moxielogic.com>
10363         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
10364         $r12 in prologue.
10365         (moxie_expand_epilogue): Ditto for epilogue.
10366         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
10367         incoming arguments.
10368         (moxie_function_arg): Ditto.
10369         (moxie_pass_by_reference): Ditto.
10370         (moxie_arg_partial_bytes): Ditto.
10371         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
10372         (FUNCTION_ARG_ADVANCE) Ditto.
10373         (REG_PARM_STACK_SPACE) Ditto.
10374         (FUNCTION_ARG_REGNO_P) Dito.
10376         * config.gcc: Add moxie linux config support.
10377         * gcc/config/moxie/uclinux.h: New file.
10379 2009-07-31  DJ Delorie  <dj@redhat.com>
10381         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
10382         (UNSPECV_SP_SWITCH_E): New.
10383         (sp_switch_1): Change to an unspec.
10384         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
10385         replace $r15.
10386         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
10387         reference the new stack's address
10389 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10391         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
10392         graphite-clast-to-gimple.o, graphite-dependences.o,
10393         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
10394         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
10395         (graphite-blocking.o,
10396         graphite-clast-to-gimple.o, graphite-dependences.o,
10397         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
10398         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
10399         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
10400         * cfgloop.h (struct loop): Add can_be_parallel field.
10401         * common.opt (fgraphite-identity): Moved up.
10402         (fgraphite-force-parallel): New flag.
10403         * graphite.c: Rewrite.
10404         * graphite.h: Rewrite.
10405         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
10406         after Graphite.
10407         * toplev.c (graphite_out_file): New file descriptor.
10408         (graphite_in_file): New.
10409         (process_options): flag_graphite_force_parallel cannot be used without
10410         Graphite.
10411         * tree-ssa-loop.c: Include toplev.h.
10412         (gate_graphite_transforms): Enable flag_graphite for
10413         flag_graphite_force_parallel.
10415 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10417         * ChangeLog.graphite: New.
10418         * graphite-blocking.c: New.
10419         * graphite-clast-to-gimple.c: New.
10420         * graphite-clast-to-gimple.h: New.
10421         * graphite-dependences.c: New.
10422         * graphite-dependences.h: New.
10423         * graphite-interchange.c: New.
10424         * graphite-poly.c: New.
10425         * graphite-poly.h: New.
10426         * graphite-ppl.c: New.
10427         * graphite-ppl.h: New.
10428         * graphite-scop-detection.c: New.
10429         * graphite-scop-detection.h: New.
10430         * graphite-sese-to-poly.c: New.
10431         * graphite-sese-to-poly.h: New.
10432         * sese.c: New.
10433         * sese.h: New.
10435 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10437         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
10438         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
10440 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10442         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
10443         (scev_is_linear_expression): Return false if the evolution is not
10444         affine multivariate.
10446 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10448         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
10449         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
10451 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10453         * tree-data-ref.c (debug_data_references): New.
10454         (debug_data_reference): New.
10455         * tree-data-ref.h (debug_data_references): Declared.
10456         (debug_data_reference): Declared.
10458 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10460         * tree-data-ref.c (stmt_simple_memref_p: Removed.
10461         * tree-data-ref.h (scop_p): Removed.
10462         (struct data_reference): Remove field scop.
10463         (DR_SCOP): Removed.
10464         (stmt_simple_memref_p): Removed.
10466 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10468         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
10469         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
10470         basic block empty.
10472 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10474         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
10476 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10478         * doc/invoke.texi (-fgraphite-identity): Documented.
10480 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10482         * tree-scalar-evolution.c: Fix comment.
10483         (instantiate_scev_1): Return unknow from scev instantiation if the
10484         result is not above instantiate_below.
10486 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
10488         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
10489         static anymore.  Instantiate the symbols that may have been introduced
10490         by chrec_apply.
10491         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
10492         Declared.
10494 2009-07-30  DJ Delorie  <dj@redhat.com>
10496         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
10497         .vliw directive to VLIW sections.
10499 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10501         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
10502         New variables.
10503         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
10504         (AUTOHEADER): New variable.
10505         ($(srcdir)/cstamp-h.in): Use it.
10507 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
10508             Pat Haugen  <pthaugen@us.ibm.com>
10509             Revital Eres <ERES@il.ibm.com>
10511         * config/rs6000/vector.md (VEC_F): Add VSX support.
10512         (VEC_A): Ditto.
10513         (VEC_N): Ditto.
10514         (mov<mode>): Ditto.
10515         (vector_load_<mode>): Ditto.
10516         (vector_store_<mode>): Ditto.
10517         (vector GPR move split): Ditto.
10518         (vec_reload_and_plus_<mptrsize>): Ditto.
10519         (vec_reload_and_reg_<mptrsize>): Ditto.
10520         (add<mode>3): Ditto.
10521         (sub<mode>3): Ditto.
10522         (mul<mode>3): Ditto.
10523         (neg<mode>2): Ditto.
10524         (abs<mode>2): Ditto.
10525         (smin<mode>3): Ditto.
10526         (smax<mode>3): Ditto.
10527         (vector_eq<mode>): Ditto.
10528         (vector_gt<mode>): Ditto.
10529         (vector_ge<mode>): Ditto.
10530         (vector_gtu<mode>): Ditto.
10531         (vector_select_<mode>_uns): Ditto.
10532         (vector_eq_<mode>_p): Ditto.
10533         (vector_gt_<mode>_p): Ditto.
10534         (vector_ge_<mode>_p): Ditto.
10535         (vector_gtu_<mode>_p): Ditto.
10536         (cr6_test_for_zero): Ditto.
10537         (cr6_test_for_zero_reverse): Ditto.
10538         (cr6_test_for_lt): Ditto.
10539         (cr6_test_for_lt_reverse): Ditto.
10540         (xor<mode>3): Ditto.
10541         (ior<mode>3): Ditto.
10542         (and<mode>3): Ditto.
10543         (one_cmpl<mode>2): Ditto.
10544         (nor<mode>2): Ditto.
10545         (andc<mode>2): Ditto.
10546         (float<VEC_int<mode>2): Ditto.
10547         (unsigned_float<VEC_int><mode>2): Ditto.
10548         (fix_trunc<mode><VEC_int>2): Ditto.
10549         (fixuns_trunc<mode><VEC_int>2): Ditto.
10550         (vec_init<mode>):
10551         (vec_set<mode>): Ditto.
10552         (vec_extract<mode>): Ditto.
10553         (vec_interleave_highv4sf): Ditto.
10554         (vec_interleave_lowv4sf): Ditto.
10555         (vec_realign_load_<mode>): Ditto.
10556         (vec_shl_<mode>): Ditto.
10557         (vec_shr_<mode>): Ditto.
10558         (div<mode>3): New patterns for VSX.
10559         (vec_interleave_highv2df): Ditto.
10560         (vec_interleave_lowv2df): Ditto.
10561         (vec_pack_trunc_v2df): Ditto.
10562         (vec_pack_sfix_trunc_v2df): Ditto.
10563         (vec_pack_ufix_trunc_v2df): Ditto.
10564         (vec_unpacks_hi_v4sf): Ditto.
10565         (vec_unpacks_lo_v4sf): Ditto.
10566         (vec_unpacks_float_hi_v4si): Ditto.
10567         (vec_unpacks_float_lo_v4si): Ditto.
10568         (vec_unpacku_float_hi_v4si): Ditto.
10569         (vec_unpacku_float_lo_v4si): Ditto.
10570         (movmisalign<mode>): Ditto.
10571         (vector_ceil<mode>2): New patterns for vectorizing math library.
10572         (vector_floor<mode>2): Ditto.
10573         (vector_btrunc<mode>2): Ditto.
10574         (vector_copysign<mode>3): Ditto.
10576         * config/rs6000/predicates.md (easy_vector_constant_msb): New
10577         predicate for setting the high bit in each word, used for copysign.
10579         * config/rs6000/ppc-asm.h (f19): Whitespace.
10580         (f32-f63): Define if VSX.
10581         (v0-v31): Define if Altivec.
10582         (vs0-vs63): Define if VSX.
10584         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
10586         * config/rs6000/power7.md: New file, provide tuning parameters for
10587         -mcpu=power7.
10589         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
10590         (rs6000_cpu_cpp_builtins): Ditto.
10591         (altivec_overloaded_builtins): Ditto.
10592         (altivec_resolve_overloaded_builtin): Ditto.
10594         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
10595         debug switch to disable vectorizing simple math builtin
10596         functions.
10598         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
10599         Vectorize simple math builtin functions.
10600         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
10601         hook to vectorize math builtins.
10602         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
10603         (rs6000_builtin_conversion): Add VSX/power7 support.
10604         (rs6000_builtin_vec_perm): Ditto.
10605         (vsplits_constant): Add support for loading up a vector constant
10606         with just the high bit set in each part.
10607         (rs6000_expand_vector_init): Add VSX/power7 support.
10608         (rs6000_expand_vector_set): Ditto.
10609         (rs6000_expand_vector_extract): Ditto.
10610         (rs6000_emit_move): Ditto.
10611         (bdesc_3arg): Ditto.
10612         (bdesc_2arg): Ditto.
10613         (bdesc_1arg): Ditto.
10614         (rs6000_expand_ternop_builtin): Ditto.
10615         (altivec_expand_builtin): Ditto.
10616         (rs6000_expand_unop_builtin): Ditto.
10617         (rs6000_init_builtins): Ditto.
10618         (altivec_init_builtins): Ditto.
10619         (builtin_function_type): Ditto.
10620         (rs6000_common_init_builtins): Ditto.
10621         (rs6000_handle_altivec_attribute); Ditto.
10622         (rs6000_mangle_type): Ditto.
10623         (rs6000_vector_mode_supported_p): Ditto.
10624         (rs6000_mode_dependent_address): Altivec addresses with AND -16
10625         are mode dependent.
10627         * config/rs6000/vsx.md: New file for VSX support.
10629         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
10630         identifing values with just the most significant bit set.
10631         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
10632         vectorized builtins.
10634         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
10635         (UNSPEC_VRFIM): Delete.
10636         (splitter for loading up vector with most significant bit): New
10637         splitter for vectorizing copysign.
10638         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
10639         vectorizing simple math functions.
10640         (altivec_vrfip): Add support for vectorizing simple math functions.
10641         (altivec_vrfim): Ditto.
10642         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
10644         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
10645         (power7.md, vsx.md): Include for power7 support.
10646         (copysigndf3): Use VSX instructions if -mvsx.
10647         (negdf2_fpr): Ditto.
10648         (absdf2_fpr): Ditto.
10649         (nabsdf2_fpr): Ditto.
10650         (adddf3_fpr): Ditto.
10651         (subdf3_fpr): Ditto.
10652         (muldf3_fpr): Ditto.
10653         (divdf3_fpr): Ditto.
10654         (fix_truncdfdi2_fpr): Ditto.
10655         (cmpdf_internal1): Ditto.
10656         (fred, fred_fpr): Convert into expander/insn to add VSX support.
10657         (btruncdf2, btruncdf2_fpr): Ditto.
10658         (ceildf2, ceildf2_fpr): Ditto.
10659         (floordf2, floordf2_fpr): Ditto.
10660         (floatdidf2, floatdidf2_fpr): Ditto.
10661         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
10662         (fmsubdf4_fpr): Ditto.
10663         (fnmadddf4_fpr_1): Ditto.
10664         (fnmadddf4_fpr_2): Ditto.
10665         (fnmsubdf4_fpr_1): Ditto.
10666         (fnmsubdf4_fpr_2): Ditto.
10667         (fixuns_truncdfdi2): Add expander for VSX support.
10668         (fix_truncdfdi2): Ditto.
10669         (fix_truncdfsi2): Ditto.
10670         (ftruncdf2): Ditto.
10671         (btruncsf2): Whitespace.
10672         (movdf_hardfloat32): Add support for VSX registers.
10673         (movdf_softfloat32): Ditto.
10674         (movdf_hardfloat64): Ditto.
10675         (movdf_hardfloat64_mfpgpr): Ditto.
10676         (movdf_softfloat64): Ditto.
10677         (movti splitters): Add check for vector registers supporting
10678         TImode in the future.
10679         (bpermd): Add power7 bpermd instruction.
10681         * config/rs6000/altivec.h (vec_div): Define if VSX.
10682         (vec_mul): Ditto.
10683         (vec_msub): Ditto.
10684         (vec_nmadd): Ditto.
10685         (vec_nearbyint): Ditto.
10686         (vec_rint): Ditto.
10687         (vec_sqrt): Ditto.
10688         (all predicates): Use the generic builtin function, and not the V4SF
10689         specific function so that the predicates will work with VSX's V2DF.
10690         (vec_all_*): Ditto.
10691         (vec_any_*): Ditto.
10693         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
10694         Document new VSX functions and types.
10696         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
10697         switches.
10699         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
10700         "wa", and "j" constraints.  Modify "v" to talk about Altivec
10701         instead of just vector.
10703 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
10705         PR debug/26475
10706         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
10707         location for phi arguments.
10708         (rewrite_update_phi_arguments): Find locations for reaching defs.
10709         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
10710         Add location to add_phi_arg calls.
10711         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
10712         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
10713         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
10714         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
10715         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
10716         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
10717         * tree-phinodes.c (make_phi_node): Initialize location.
10718         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
10719         (add_phi_arg): Add location parameter.
10720         (remove_phi_arg_num): Move location when moving phi argument.
10721         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
10722         location.
10723         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
10724         slpeel_update_phi_nodes_for_guard1,
10725         slpeel_update_phi_nodes_for_guard2,
10726         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
10727         vect_loop_versioning): Set locations.
10728         * tree-parloops.c (create_phi_for_local_result,
10729         transform_to_exit_first_loop, create_parallel_loop): Add locations.
10730         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
10731         * tree-vect-loop.c (get_initial_def_for_induction,
10732         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
10733         locations.
10734         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
10735         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
10736         (gimple_phi_arg_set_location): New.  Set locus.
10737         (gimple_phi_arg_has_location): New.  Check for locus.
10738         (redirect_edge_var_map_location): New.  Return locus from var_map.
10739         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
10740         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
10741         combining PHI arguments.
10742         (cond_store_replacement): Set location.
10743         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
10744         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
10745         scop_add_exit_phis_edge): Add locations.
10746         * tree-cfgcleanup.c (remove_forwarder_block,
10747         remove_forwarder_block_with_phi): Add locations.
10748         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
10749         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
10750         locations.
10751         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
10752         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
10753         flush_pending_stmts): Add source location.
10754         * lambda-code.c (perfect_nestify): Maintain location stack with argument
10755         stack to preserve locations.
10756         * tree-vect-stmts.c (vectorizable_load): Add location.
10757         * tree-inline.c (copy_phis_for_bb): Copy locus.
10758         (setup_one_parameter): Add call locus to inlined parameter stmts.
10759         (initialize_inlined_parameters): Pass in call location as parameter
10760         assignment locus.
10761         (tree_function_versioning): Pass location to setup_one_parameter.
10762         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
10763         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
10764         copy and edge lists.
10765         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
10766         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
10767         locus parameter and override the stmt default if provided.
10768         (new_elim_graph, clear_elim_graph, delete_elim_graph,
10769         elim_graph_add_edge, elim_graph_remove_succ_edge,
10770         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
10771         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
10772         eliminate_phi):  Add locus info in elimination graph for each edge and
10773         value copy.
10774         (insert_backedge_copies): Copy locus if present.
10775         * tree-flow.h (struct _edge_var_map): Add locus field.
10776         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
10777         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
10778         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
10779         locations.
10780         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
10782 2009-07-30  Martin Jambor  <mjambor@suse.cz>
10784         PR tree-optimization/40570
10785         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
10786         use inlining loops.
10788 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
10790         * ssa-loop-manip.c: Include langhooks.h.
10791         (rewrite_phi_with_iv): New.
10792         (rewrite_all_phi_nodes_with_iv): New.
10793         (canonicalize_loop_ivs): Move here from tree-parloops.c.
10794         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
10795         * tree-parloops.c (loop_parallel_p): Move out all conditions
10796         except dependency check.
10797         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
10798         (gen_parallel_loop): Call canonicalize_loop_ivs without
10799         reduction_list argument.
10800         (build_new_reduction): New.
10801         (gather_scalar_reductions): New.
10802         (try_get_loop_niter): New.
10803         (try_create_reduction_list): New.
10804         (parallleize_loops): Change the parallel conditions check.
10805         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
10806         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
10808 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
10810         * opt-functions.awk (opt_args): Allow argument to be enclosed in
10811         curly braces.
10812         * doc/options.texi (Option properties):  Mention new quoting syntax.
10814 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
10816         * config/alpha/alpha.c (alpha_start_function):
10817         Handle VMS_DEBUG_MAIN_POINTER
10818         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
10819         * doc/invoke.texi: Document -mdebug-main switch.
10821 2009-07-29  Richard Henderson  <rth@redhat.com>
10823         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
10824         (cgraph_create_edge_including_clones): Likewise.
10825         * tree-inline.c (copy_bb): Operate on the correct edges
10826         when updating the callgraph.
10828 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
10830         * config/alpha/vms-cc.c: Deleted.
10831         * config/alpha/vms-ld.c: Deleted.
10832         * config/alpha/t-vms64: Moved to config/vms
10833         * config/alpha/vms-crt0-64.c: Moved to config/vms
10834         * config/alpha/vms-crt0.c: Moved to config/vms
10835         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
10836         * config/alpha/vms-psxcrt0.c: Moved to config/vms
10837         * config/alpha/xm-vms.h: Moved to config/vms
10838         * config/alpha/x-vms: Moved to config/vms
10839         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
10840         config/vms/t-vms.
10841         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
10842         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
10843         (version): Set.
10844         * config/vms/t-vms64: Moved here from config/alpha
10845         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
10846         (argc,argv,envp): Enforce 32bit malloc'ing.
10847         * config/vms/vms-psxcrt0-64.c: Likewise.
10848         * config/vms/vms-crt0.c: Moved here from config/alpha.
10849         * config/vms/vms-psxcrt0.c: Likewise.
10850         * config/vms/vms-crtl-64.h: New file.
10851         * config/vms/vms-crtl.h: New file.
10852         * config/vms/vms.opt: New file.
10853         * config/vms/xm-vms64.h: New file.
10854         * config/vms/xm-vms.h: Moved here from config/alpha.
10855         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
10856         Set.
10857         * config/vms/x-vms: Moved here from config/alpha.
10858         (version, VMS_EXTRA_PARTS): Moved to t-vms.
10859         (vms-ld.o, vms-cc.o): Removed.
10860         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
10862 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
10864         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
10865         correct stack (obvious VMS fix).
10867 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
10869         * dwarf2out.c (output_file_names): Output VMS style file name, size,
10870         date, version info if VMS_DEBUGGING_INFO defined.
10871         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
10872         size, date calculating code moved here.
10874 2009-07-29  Paul Brook  <paul@codesourcery.com>
10876         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
10877         do_push/do_pop.
10879 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
10881         PR target/40577
10882         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
10883         to DImode when generating insq_le insn.
10885 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
10887         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
10888         New macro set for VMS_DEBUGGGING_INFO.
10889         (AT_string_form): Use it.
10891 2009-07-28  DJ Delorie  <dj@redhat.com>
10893         * config/mep/mep.c (vtext_section): New.
10894         (vftext_section): New.
10895         (ftext_section): New.
10896         (mep_select_section): Add support for functions.
10897         (mep_unique_section): Likewise.
10898         (mep_asm_init_sections): Likewise.
10899         (mep_encode_section_info): Remove it from here.
10901         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
10903 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
10905         * tree.h (TREE_DEPRECATED): Document it is used for types too.
10906         (TYPE_VECTOR_OPAQUE): Use default_def_flag
10908 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
10910         * dwarf2out.c (output_file_names): Test new macro
10911         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
10912         (add_comp_dir_attribute): Likewise.
10914 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
10916         * config/i386/mingw-w64.h (LINK_SPEC): Add
10917         separating space between commands.
10919 2009-07-28  Jan Hubicka  <jh@suse.cz>
10921         PR tree-optimization/40759
10922         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
10923         for renaming.
10925 2009-07-27  DJ Delorie  <dj@redhat.com>
10927         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
10928         types are dword-aligned.
10929         (mep_expand_va_start): Likewise.
10931 2009-07-27  Olivier Hainque  <hainque@adacore.com>
10932             Douglas B Rupp  <rupp@gnat.com>
10934         * convert.c (convert_to_pointer): Don't assume the target
10935         pointer type is POINTER_SIZE long. Fetch its precision instead.
10937 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
10939         * system.h (fopen): Undefine if macro.
10941 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
10943         * dwarf2out.c (output_cfi_p): Removed.
10944         (output_cfis): New function.
10945         (output_fde): New function, split from output_call_frame_info.
10946         (output_call_frame_info): Use it.
10947         (dwarf2out_switch_text_section): Use output_cfis.
10949 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
10951         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
10952         TARGET_BI_ARCH is specified without enabling SJLJ.
10953         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
10954         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
10956 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
10958         * arm.md (negdi2): Use DImode if forcing a value into a register.
10960 2009-07-26  Ira Rosen  <irar@il.ibm.com>
10962         PR tree-optimization/40801
10963         * tree-vect-stmts.c (vectorizable_call): Get previous copy
10964         of vector operand from the previous copy of vector statement.
10965         Pass the correct definition type value to
10966         vect_get_vec_def_for_stmt_copy().
10968 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10970         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
10971         const char ** conversion.
10973 2009-07-25 David Daney <ddaney@caviumnetworks.com>
10975         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
10976         fancy_abort() if !ENABLE_ASSERT_CHECKING.
10977         (gcc_unreachable): Invoke __builtin_unreachable() if
10978         !ENABLE_ASSERT_CHECKING.
10980 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
10982         PR rtl-optimization/40445
10983         * emit-rtl.c (next_nonnote_insn_bb): New function.
10984         * rtl.h (next_nonnote_insn_bb): Declare new function.
10985         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
10986         with no successors that is the successor of the ENTRY_BLOCK.
10987         Continue from the top after removing an empty fallthrough block.
10988         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
10989         of next_nonnote_insn.
10991 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
10993         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
10995 2009-07-25  Martin Jambor  <mjambor@suse.cz>
10997         * c-common.c (c_common_attribute_table): New element for noclone.
10998         (handle_noclone_attribute): New function. Forward-declare.
10999         * tree-inline.c (tree_versionable_function_p): Check for noclone
11000         attribute.
11001         * doc/extend.texi (Labels as Values): Document need for noclone.
11002         (Function Attributes): Document noclone attribute.
11004 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
11006         PR rtl-optimization/34999
11007         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
11008         and dw_fde_switched_cold_to_hot fields.
11009         (output_cfi_p): New function.
11010         (output_call_frame_info): If fde->dw_fde_switched_sections,
11011         output 2 FDEs instead of one with corrupted header.
11012         (dwarf2out_do_cfi_startproc): New function.
11013         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
11014         and fde->dw_fde_switched_cold_to_hot.
11015         (dwarf2out_switch_text_section): Compute
11016         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
11017         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
11018         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
11019         Otherwise, compute fde->dw_fde_switch_cfi.
11021 2009-07-24  Cary Coutant  <ccoutant@google.com>
11023         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
11025 2009-07-24  Cary Coutant  <ccoutant@google.com>
11027         * cfghooks.c (split_block): Copy discriminator to new block.
11028         * tree-cfg.c (assign_discriminator): Check location of last
11029         instruction in block as well as first.
11031 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
11033         * config/i386/linux.c: Use fputs or putc instead of fprintf
11034         where appropriate.
11035         * config/i386/gas.h: Ditto.
11036         * config/i386/x86-64.h: Ditto.
11037         * config/i386/att.h: Ditto.
11039 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11041         * expmed.c (emit_store_flag): Use a recursive call to optimize the
11042         xor case.
11044 2009-07-24  Martin Jambor  <mjambor@suse.cz>
11046         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
11047         (ipa_push_func_to_list_1): Declare.
11048         (ipa_push_func_to_list): New function.
11050         * ipa-prop.c (ipa_push_func_to_list_1): New function.
11051         (ipa_init_func_list): Call ipa_push_func_to_list_1.
11052         (ipa_push_func_to_list): Removed.
11053         (ipa_pop_func_from_list): Clear node_enqueued flag.
11055 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
11057         * config/s390/s390.c (override_options): Default
11058         max-unrolled-insns to 100 for z10 tuning.
11060 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
11062         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
11063         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
11064         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
11065         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
11066         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
11067         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
11068         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
11070 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
11072         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
11073         use default set in mingw32.h header.
11074         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
11075         64-bit /mingw/include path.
11076         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
11077         path.
11079 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
11081         PR rtl-optimization/40209
11082         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
11084 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
11086         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
11087         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
11088         with the rest of string where appropriate.  Use fputs or putc
11089         instead of fprintf where appropriate.
11091 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
11092             Pat Haugen  <pthaugen@us.ibm.com>
11093             Revital Eres <ERES@il.ibm.com>
11095         * config/rs6000/vector.md: New file.  Move most of the vector
11096         expander support here from altivec.md to allow for the VSX vector
11097         unit in the future.  Add support for secondary_reload patterns.
11098         Rewrite the patterns for vector comparison, and vector comparison
11099         predicate instructions so that the RTL expresses the desired
11100         behavior, instead of using unspec.
11102         * config/rs6000/constraints.md ("f" constraint): Use
11103         rs6000_constraints to hold the precalculated register class.
11104         ("d" constraint): Ditto.
11105         ("wd" constraint): New constraint for VSX.
11106         ("wf" constraint): Ditto.
11107         ("ws" constraint): Ditto.
11108         ("wa" constraint): Ditto.
11109         ("wZ" constraint): Ditto.
11110         ("j" constraint): Ditto.
11112         * config/rs6000/predicates.md (vsx_register_operand): New
11113         predicate for VSX.
11114         (vfloat_operand): New predicate for vector.md.
11115         (vint_operand): Ditto.
11116         (vlogical_operand): Ditto.
11117         (easy_fp_constant): If VSX, 0.0 is an easy constant.
11118         (easy_vector_constant): Add VSX support.
11119         (altivec_indexed_or_indirect_operand): New predicate for
11120         recognizing Altivec style memory references with AND -16.
11122         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
11123         for vector secondary reload support.
11124         (rs6000_vector_reg_class): Delete, replacing it with
11125         rs6000_constraints.
11126         (rs6000_vsx_reg_class): Ditto.
11127         (rs6000_constraints): New array to hold the register classes of
11128         each of the register constraints that can vary at runtime.
11129         (builtin_mode_to_type): New static array for builtin function type
11130         creation.
11131         (builtin_hash_table): New static hash table for builtin function
11132         type creation.
11133         (TARGET_SECONDARY_RELOAD): Define target hook.
11134         (TARGET_IRA_COVER_CLASSES): Ditto.
11135         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
11136         registers are 128 bits if VSX memory reference instructions are used.
11137         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
11138         unit is being used.
11139         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
11140         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
11141         Print several of the scheduling related parameters.
11142         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
11143         rs6000_constraints instead of rs6000_vector_reg_class.  Move
11144         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
11145         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
11146         Altivec.  Add VSX support.  Setup for secondary reload support on
11147         Altivec/VSX registers.
11148         (rs6000_override_options): Make power7 set the scheduling groups
11149         like the power5.  Add support for new debug switches to override
11150         the scheduling defaults.  Temporarily disable -mcpu=power7 from
11151         setting -mvsx.  Add support for debug switches -malways-hint,
11152         -msched-groups, and -malign-branch-targets.
11153         (rs6000_buitlin_conversion): Add support for returning unsigned
11154         vector conversion functions to fix regressions due to stricter
11155         type checking.
11156         (rs6000_builtin_mul_widen_even): Ditto.
11157         (rs6000_builtin_mul_widen_odd): Ditto.
11158         (rs6000_builtin_vec_perm): Ditto.
11159         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
11160         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
11161         to zero a register.
11162         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
11163         generated upstream.
11164         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
11165         VSX types for bit operations.  Changes to accomidate vector.md.
11166         (bdesc_2arg): Ditto.
11167         (bdesc_1arg): Ditto.
11168         (struct builtin_description_predicates): Rewrite predicate
11169         handling so that RTL describes the operation, instead of passing
11170         the instruction to be used as a string argument.
11171         (bdesc_altivec_preds): Ditto.
11172         (altivec_expand_predicate_builtin): Ditto.
11173         (altivec_expand_builtin): Ditto.
11174         (rs6000_expand_ternop_builtin): Use a switch instead of an if
11175         statement for vsldoi support.
11176         (altivec_expand_ld_builtin): Change to use new names from vector.md.
11177         (altivec_expand_st_builtin): Ditto.
11178         (paired_expand_builtin): Whitespace changes.
11179         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
11180         builtin_mode_to_type table for secondary reload.  Call
11181         builtin_function_type to build random builtin functions.
11182         (altivec_init_builtins): Change to use builtin_function_type to
11183         create builtin function types dynamically as we need them.
11184         (builtin_hash_function): New support for hashing the tree types
11185         for builtin function as we need it, rather than trying to build
11186         all of the trees that we need.  Add initial preliminary VSX support.
11187         (builtin_function_type): Ditto.
11188         (builtin_function_eq): Ditto.
11189         (builtin_hash_struct): Ditto.
11190         (rs6000_init_builtins): Ditto.
11191         (rs6000_common_init_builtins): Ditto.
11192         (altivec_init_builtins): Ditto.
11193         (rs6000_common_init_builtins): Ditto.
11194         (enum reload_reg_type): New enum for simplifing reg classes.
11195         (rs6000_reload_register_type): Simplify register classes into GPR,
11196         Vector, and other registers.  Altivec and VSX addresses in reload.
11197         (rs6000_secondary_reload_inner): Ditto.
11198         (rs6000_ira_cover_classes): New target hook, that returns the
11199         appropriate cover classes, based on -mvsx being used or not.
11200         (rs6000_secondary_reload_class): Add VSX support.
11201         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
11202         (get_vsel_insn): Ditto.
11203         (rs6000_emit_vector_compare): Rewrite vector conditional support
11204         so that where we can, we use RTL operators, instead of blindly use
11205         UNSPEC.
11206         (rs6000_emit_vector_select): Ditto.
11207         (rs6000_emit_vector_cond_expr): Ditto.
11208         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
11209         (create_TOC_reference): Add -mdebug=addr support.
11210         (emit_frame_save): VSX loads/stores need register indexed addressing.
11212         * config/rs6000/rs6000.md: Include vector.md.
11214         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
11216         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11217         support for V2DI, V2DF in logical, permute, select operations.
11219         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
11220         switch for vsx/power7.
11221         (-mvsx-scalar-memory): Ditto.
11222         (-mvsx-align-128): Ditto.
11223         (-mallow-movmisalign): Ditto.
11224         (-mallow-df-permute): Ditto.
11225         (-msched-groups): Ditto.
11226         (-malways-hint): Ditto.
11227         (-malign-branch-targets): Ditto.
11229         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
11230         hook instead.
11231         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
11232         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
11233         (rs6000_vector_reg_class): Delete.
11234         (rs6000_vsx_reg_class): Ditto.
11235         (enum rs6000_reg_class_enum): New enum for the constraints that
11236         vary based on target switches.
11237         (rs6000_constraints): New array to hold the register class for all
11238         of the register constraints that vary based on the switches used.
11239         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
11240         (enum rs6000_builtins): Add unsigned varients for the builtin
11241         declarations returned by target hooks for expanding multiplies,
11242         select, and permute operations.  Add VSX builtins.
11243         (enum rs6000_builtin_type_index): Add entries for VSX.
11244         (V2DI_type_node): Ditto.
11245         (V2DF_type_node): Ditto.
11246         (unsigned_V2DI_type_node): Ditto.
11247         (bool_long_type_node): Ditto.
11248         (intDI_type_internal_node): Ditto.
11249         (uintDI_type_internal_node): Ditto.
11250         (double_type_internal_node): Ditto.
11252         * config/rs6000/altivec.md (whole file): Move all expanders to
11253         vector.md from altivec.md.  Rename insn matching functions to be
11254         altivec_foo.
11255         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
11256         (altivec_vcmp*): Ditto.
11257         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
11258         (VM): New iterator for moves that includes the VSX types.
11259         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
11260         (altivec_vperm_<mode>_uns): New, for unsigned types.
11261         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
11262         (altivec_eq<mode>): Ditto.
11263         (altivec_gt<mode>): Ditto.
11264         (altivec_gtu<mode>): Ditto.
11265         (altivec_eqv4sf): Ditto.
11266         (altivec_gev4sf): Ditto.
11267         (altivec_gtv4sf): Ditto.
11268         (altivec_vcmpbfp_p): Ditto.
11270 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
11272         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
11273         unsigned HWI.
11275 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
11277         PR target/40832
11278         * config/i386/i386.c (output_387_ffreep): Rewrite to use
11279         ASM_SHORT instead of .word.
11280         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
11281         instead of .word in asm template.
11283 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
11285         PR target/37488
11286         * ira-lives.c (bb_has_abnormal_call_pred): New function.
11287         (process_bb_node_lives): Use it.
11289         * ira.c (setup_cover_and_important_classes): Don't setup
11290         ira_important_class_nums.  Add cover classes to the end of
11291         important classes.
11292         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
11293         New.
11294         (find_reg_class_closure): Use reorder_important_classes.
11296         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
11298         * config/i386/i386.c (i386_ira_cover_classes): New function.
11299         (TARGET_IRA_COVER_CLASSES): Redefine.
11301         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
11302         importance of order of cover classes in the array.
11304 2009-07-22  Diego Novillo  <dnovillo@google.com>
11306         * tree-pass.h (TDF_EH): Define.
11307         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
11308         contains TDF_EH, print the EH region number holding GS.
11309         * tree-dump.c (dump_options): Add "eh".
11310         * doc/invoke.texi: Document it.
11312 2009-07-22  Doug Kwan  <dougkwan@google.com>
11314         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
11316 2009-07-22  Michael Matz  <matz@suse.de>
11318         PR tree-optimization/35229
11319         PR tree-optimization/39300
11321         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
11322         (inhibit_phi_insertion): New function.
11323         (insert_into_preds_of_block): Call it for REFERENCEs.
11324         (init_pre): Initialize and finalize scalar evolutions.
11325         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
11327 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
11329         * config/i386/predicates.md (zero_extended_scalar_load_operand):
11330         Use CONST_VECTOR_NUNITS to determine number of elements.
11332 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
11334         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
11335         (U, W): Constraints are now deprecated and will be removed if we
11336         run out of letters.
11337         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
11338         the file.
11339         ("prefetch"): Add the stcmh instruction for prefetching.
11340         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
11341         changes.
11342         (s390_short_displacement): Return always true if compiling for
11343         machines not providing the long displacement facility.
11344         (s390_mem_constraint): Support the new constraint letter Z.
11345         (s390_check_qrst_address): New function.
11347 2009-07-21  DJ Delorie  <dj@redhat.com>
11349         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
11350         alone too.
11352 2009-07-21  Jason Merrill  <jason@redhat.com>
11354         * c-common.c (max_tinst_depth): Increase default to 1024.
11356 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
11358         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
11359         (vec_unpacku_float_lo_v4si): Ditto.
11361 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
11363         PR target/40811
11364         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
11365         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
11366         (builtin_description): Add __builtin_ia32_cvtudq2ps.
11367         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
11369 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
11371         PR tree-optimization/40813
11372         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
11373         it.
11375 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
11377         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
11378         with a NOP_EXPR if needed.
11380 2009-07-21  Paul Brook <paul@codesourcery.com>
11382         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
11383         Terminate debug dump with newline.
11385 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11387         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
11388         Cast "1" to unsigned HOST_WIDE_INT.
11389         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
11390         deposit length to the maximum length - lsb.  Extend length if
11391         HOST_BITS_PER_WIDE_INT is 32.
11393 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
11395         * cgraph.h (constant_pool_htab): New function.
11396         (constant_descriptor_tree): Move from varasm.c.
11397         * varasm.c (constant_pool_htab): New function.
11398         (constant_descriptor_tree): Move to cgraph.h.
11400 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
11402         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
11404 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
11406         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
11407         $(VARRAY_H).
11409 2009-07-20  Xinliang David Li  <davidxl@google.com>
11411         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
11413 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
11415         * config/mips/mips.md (move_type): Add arith.
11416         (type): Handle arith.
11417         (zero_extendsidi2): Rename this into ...
11418         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
11419         (zero_extendsidi2): New expander.
11420         (*zero_extendsidi2_dext): New pattern.
11422 2009-07-20  Nick Clifton  <nickc@redhat.com>
11424         * config.gcc (mips64-*-*): Add definition of tm_defines in order
11425         to set MIPS_ABI_DEFAULT.
11426         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
11428 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
11430         * tree-object-size.c (addr_object_size): Handle unions with
11431         array in it as last field of structs in __bos (, 1) as __bos (, 0).
11433         PR tree-optimization/40792
11434         * tree.c (build_function_type_skip_args): Remove bogus assert.
11436 2009-07-20  Jan Hubicka  <jh@suse.cz>
11437             Martin Jambor  <mjambor@suse.cz>
11439         * cgraph.h (combined_args_to_skip): New field.
11440         * cgraph.c (cgraph_create_virtual_clone): Properly handle
11441         combined_args_to_skip and args_to_skip.
11442         * tree-inline.c (update_clone_info): New function.
11443         (tree_function_versioning): Call update_clone_info.
11444         * cgraphunit.c (cgraph_materialize_clone): Dump materialized
11445         functions.
11446         (cgraph_materialize_all_clones): More extensive dumping, working
11447         with combined_args_to_skip rather than args_to_skip.
11449 2009-07-20  Ira Rosen  <irar@il.ibm.com>
11451         * tree-vectorizer.h (vectorizable_condition): Add parameters.
11452         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
11453         (get_initial_def_for_reduction): Likewise.
11454         (vectorizable_reduction): Skip the check of first operand in case
11455         of COND_EXPR. Add check that it is outer loop vectorization if
11456         nested cycle was detected. Call vectorizable_condition() for
11457         COND_EXPR. If reduction epilogue cannot be created do not fail for
11458         nested cycles (if it is not double reduction). Assert that there
11459         is only one type in the loop in case of COND_EXPR. Call
11460         vectorizable_condition() to vectorize COND_EXPR.
11461         * tree-vect-stmts.c (vectorizable_condition): Update comment.
11462         Add parameters. Allow nested cycles if called from
11463         vectorizable_reduction(). Use reduction vector variable if provided.
11464         (vect_analyze_stmt): Call vectorizable_reduction() before
11465         vectorizable_condition().
11466         (vect_transform_stmt): Update call to vectorizable_condition().
11468 2009-07-20  Christian Bruel  <christian.bruel@st.com>
11470         * config/sh/sh.opt (-mfmovd): Resurrect and document.
11471         * doc/invoke.texi (-mfmovd): Likewise.
11472         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
11474 2009-07-20  Jan Hubicka  <jh@suse.cz>
11476         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
11477         when handling SSA name.
11479 2009-07-19  Jan Hubicka  <jh@suse.cz>
11481         PR tree-optimization/40676
11482         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
11483         virtual PHIs in empty BBs.
11485 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
11487         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
11488         re-expanded the compound use gen_lowpart instead to convert to the
11489         desired mode.
11491 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
11493         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
11494         OUTER_CONST arguments.
11495         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
11496         the new wider mode will be masked off.
11497         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
11499 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
11501         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
11502         high-order bits are zero.
11504 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
11506         * combine.c (simplify_shift_const_1): Split code to determine
11507         shift_mode into ...
11508         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
11509         new bits shifted in are identical to the old sign bit.
11511 2009-07-18  Richard Guenther  <rguenther@suse.de>
11513         PR c/40787
11514         * gimplify.c (gimplify_call_expr): Reject code using results from
11515         functions returning void.
11517 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
11519         * doc/md.texi: Document the new PowerPC "es" constraint.
11520         Document that "m" can include automodified addresses on this target,
11521         and explain how %U must be used.  Extend the "Q" and "Z" documentation
11522         to suggest "es" as well as "m".
11523         * config/rs6000/constraints.md (es): New memory constraint.
11524         (Q, Z): Update strings to match new documentation.
11526 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
11528         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
11529         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
11530         * config/rs6000/predicates.md (volatile_mem_operand): Use
11531         offsettable_nonstrict_memref_p.
11532         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
11533         (*floatunssidf2_internal): Likewise.
11534         (*fix_truncdfsi2_internal): Likewise.
11535         (*fix_trunctfsi2_internal): Likewise.
11537 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
11539         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
11540         atmega32u2 devices.
11541         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
11543 2009-07-17  Richard Guenther  <rguenther@suse.de>
11545         PR c/40401
11546         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
11547         (pass_warn_unused_result): Likewise.
11548         (TODO_set_props): Remove.
11549         * omp-low.c (diagnose_omp_structured_block_errors): Change to
11550         run as a pass.
11551         (pass_diagnose_omp_blocks): Define.
11552         * c-decl.c (pop_file_scope): Do not finalize the CU here.
11553         (c_gimple_diagnostics_recursively): Remove.
11554         (finish_function): Do not call it.
11555         (c_write_global_declarations): Continue after errors.
11556         Finalize the CU here.
11557         * c-gimplify.c (c_genericize): Do not gimplify here.
11558         * c-common.c (c_warn_unused_result): Move ...
11559         * tree-cfg.c (do_warn_unused_result): ... here.
11560         (run_warn_unused_result): New function.
11561         (gate_warn_unused_result): New function.
11562         (pass_warn_unused_result): New pass.
11563         * c-common.h (c_warn_unused_result): Remove.
11564         * flags.h (flag_warn_unused_result): Declare.
11565         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
11566         * opts.c (flag_warn_unused_result): Initialize to false.
11567         * toplev.c (compile_file): Add comment.
11568         * omp-low.c (create_omp_child_function): Do not register
11569         the function with the frontend.
11570         (diagnose_omp_structured_block_errors): Prepare to be
11571         called as optimization pass.
11572         (gate_diagnose_omp_blocks): New function.
11573         (pass_diagnose_omp_blocks): New pass.
11574         * cgraph.h (cgraph_optimize): Remove.
11575         (cgraph_analyze_function): Likewise.
11576         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
11577         * cgraphunit.c (cgraph_lower_function): Lower nested functions
11578         before their parents here.
11579         (cgraph_finalize_function): Not here.
11580         (cgraph_analyze_function): Gimplify functions here.
11581         (cgraph_finalize_compilation_unit): Continue after errors.
11582         Optimize the callgraph from here.
11583         (cgraph_optimize): Make static.
11584         * langhooks.c (write_global_declarations): Finalize the CU.
11585         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
11586         (gimplify_function_tree): Assert we gimplify only once.
11587         Set PROP_gimple_any property.
11588         * tree-nested.c (gimplify_all_functions): New function.
11589         (lower_nested_functions): Gimplify all nested functions.
11590         * gimple.h (diagnose_omp_structured_block_errors): Remove.
11591         * passes.c (init_optimization_passes): Add pass_warn_unused_result
11592         and pass_diagnose_omp_blocks after gimplification.  Do not
11593         set TODO_set_props on all_lowering_passes.
11594         (execute_one_pass): Do not handle TODO_set_props.
11595         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
11596         (gimplify.o): Add tree-pass.h dependency.
11597         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
11598         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
11599         (unsave_r): Likewise.
11600         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
11601         temporary variable.
11603 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
11605         * doc/service.texi (Service): Restore previously removed link,
11606         which isn't broken after all.
11608 2009-07-17  Richard Guenther  <rguenther@suse.de>
11610         PR tree-optimization/40321
11611         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
11612         PHI nodes to the maximal set.
11613         (make_values_for_phi): Add PHI arguments to the maximal set.
11614         (execute_pre): Dump PHI_GEN and the maximal set.
11616 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
11618         PR c++/40780
11619         * gimplify.c (gimplify_conversion): Don't change non-conversions into
11620         VIEW_CONVERT_EXPR.
11622 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
11624         * doc/extend.texi (Nested Functions): Replace broken link with
11625         textual reference.
11626         * doc/service.texi (Service): Remove broken link.
11628 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
11630         PR bootstrap/40781
11631         * builtins.c (expand_builtin_memcmp): Use loc instead of
11632         EXPR_LOCATION (exp).
11633         (expand_builtin_strncmp): Likewise.
11635 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
11636             Manuel López-Ibáñez  <manu@gcc.gnu.org>
11638         PR 40435
11639         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
11640         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
11641         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
11642         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
11643         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
11644         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
11645         tree-inline.c, c-common.c, c-common.h, gimple.c,
11646         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
11647         convert.c: Add location argument to fold_{unary,binary,ternary},
11648         fold_build[123], build_call_expr, build_size_arg,
11649         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
11650         fold_build1_initializer, fold_build2_initializer,
11651         fold_build3_initializer, fold_build_call_array,
11652         fold_build_call_array_initializer, fold_single_bit_test,
11653         omit_one_operand, omit_two_operands, invert_truthvalue,
11654         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
11655         combine_comparisons, fold_builtin_*, fold_call_expr,
11656         build_range_check, maybe_fold_offset_to_address, round_up,
11657         round_down.
11659 2009-07-16  Jason Merrill  <jason@redhat.com>
11661         PR libstdc++/37907
11662         * c-common.c (c_common_reswords): Add __is_standard_layout
11663         and __is_trivial.
11664         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
11665         * doc/implement-cxx.texi: New.
11666         * doc/gcc.texi: Include it.
11668 2009-07-16  DJ Delorie  <dj@redhat.com>
11670         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
11671         compares that may be indirectly affected by previous instructions.
11673 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11675         * builtins.c (do_mpc_arg2): New.
11676         (fold_builtin_2): Fold builtin cpow.
11677         * real.h (HAVE_mpc_pow): New.
11679 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
11681         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
11682         comparison to skip unprofitable schedule
11684 2009-07-16  Simon Baldwin  <simonb@google.com>
11686         * gcc.c (option_map): New flag -no-canonical-prefixes.
11687         * (display_help): Print help text for new flag.
11688         * (process_command): Move options translation and language specifics
11689         and handle new flag early.  Use it to set a function pointer to a
11690         prefix builder.  Replace make_relative_prefix calls with calls to
11691         the function pointed to.  Ignore new flag in regular options handling.
11692         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
11694 2009-07-15  DJ Delorie  <dj@redhat.com>
11696         * config/mep/mep.md (sibcall_internal): Change register to avoid
11697         argument registers.
11698         (sibcall_value_internal): Likewise.
11700 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
11702         PR rtl-optimization/40710
11703         * resource.c (mark_target_live_regs): Reset DF problem to LR.
11705 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
11707         * config/mips/mips.md (*extenddi_truncate<mode>,
11708         *extendsi_truncate<mode>): Change type attribute to move_type
11709         with shift_shift.  Split out code handling exts from here ...
11710         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
11711         pattern.
11712         (*extendhi_truncateqi): Change type attribute to move_type with
11713         shift_shift.  Split out code handling exts from here ...
11714         (*extendhi_truncateqi_exts): ... to this new pattern.
11716 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
11718         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
11719         instead of "and" with inverted sign bit mask value.  Use
11720         "nonimmediate_operand" for operand 1 and operand 2 predicate.
11721         Allocate registers only for operand 4 and operand 5.
11723 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
11725         PR middle-end/40747
11726         * fold-const.c (fold_cond_expr_with_comparison): When folding
11727         < and <= to MIN, make sure the MIN uses the same type as the
11728         comparison's operands.
11730 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
11732         * arm.md (ior_xor): New code iterator.
11733         (split for ior/xor with shift and zero-extend): New split pattern.
11734         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
11736 2009-07-15  Richard Guenther  <rguenther@suse.de>
11738         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
11739         offset member.
11741 2009-07-15  Richard Guenther  <rguenther@suse.de>
11743         PR middle-end/40753
11744         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
11746 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
11748         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
11749         handle 2.6.30 kernel.
11751 2009-07-15  DJ Delorie  <dj@redhat.com>
11753         * config/mep/mep.md (sibcall_internal): Change register to allow
11754         for 24-bit addresses.
11755         (sibcall_value_internal): Likewise.
11757 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
11759         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
11760         that are enabled/disabled by the flags introduced by a previous patch.
11762 2009-07-14  DJ Delorie  <dj@redhat.com>
11764         * config/mep/mep.md (sibcall_internal): Include non-toggling
11765         non-jmp case.
11766         (sibcall_value_internal): Likewise.
11768 2009-07-14  Taras Glek  <tglek@mozilla.com>
11769             Rafael Espindola  <espindola@google.com>
11771         * doc/sourcebuild.texi: Document install-plugin target.
11772         * configure.ac: Added install-plugin target to language makefiles.
11773         * configure: Regenerate.
11774         * Makefile.in (install-plugin): Install more headers,
11775         depend on lang.install-plugin.
11777 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11779         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
11780         translation.
11782 2009-07-14  DJ Delorie  <dj@redhat.com>
11784         * config/mep/mep.c (mep_vliw_jmp_match): New function.
11785         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
11786         * config/mep/mep.md (sibcall_internal): Change test from
11787         mep_vliw_mode_match to mep_vliw_jmp_match.
11788         (sibcall_value_internal): Likewise.
11790 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
11792         * config/i386/sse.md (copysign<mode>3): New expander.
11793         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
11794         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
11795         Use ix86_build_const_vector.
11796         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
11797         IX86_BUILTIN_CPYSGNPD.
11798         (builtin_description): Add __builtin_ia32_copysignps and
11799         __builtin_ia32_copysignpd.
11800         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
11801         and BUILT_IN_COPYSIGNF.
11803 2009-07-13  Jason Merrill  <jason@redhat.com>
11805         * builtins.c (can_trust_pointer_alignment): New fn.
11806         (get_pointer_alignment): Factor it out from here.
11807         * tree.h: Declare it.
11809 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
11811         * config/rs6000/predicates.md (offsettable_mem_operand): Test
11812         RTX_AUTOINC class.
11814 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
11816         PR debug/40705
11817         PR c++/403057
11818         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
11820 2009-07-14  Richard Guenther  <rguenther@suse.de>
11821             Andrey Belevantsev <abel@ispras.ru>
11823         PR middle-end/40745
11824         * cfgexpand.c (partition_stack_vars): Do not bother to update
11825         alias information when not optimizing.
11827 2009-07-14  Richard Guenther  <rguenther@suse.de>
11828             Andrey Belevantsev <abel@ispras.ru>
11830         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
11831         (pt_solution_set): Likewise.
11832         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
11833         * tree-ssa-structalias.c (pt_solution_set): New function.
11834         * final.c (rest_of_clean_state): Free SSA data structures.
11835         * print-rtl.c (print_decl_name): Remove.
11836         (print_mem_expr): Implement in terms of print_generic_expr.
11837         * alias.c (ao_ref_from_mem): New function.
11838         (rtx_refs_may_alias_p): Likewise.
11839         (true_dependence): Query alias-export info.
11840         (canon_true_dependence): Likewise.
11841         (write_dependence_p): Likewise.
11842         * tree-dfa.c (get_ref_base_and_extent): For void types leave
11843         size unknown.
11844         * emit-rtl.c (component_ref_for_mem_expr): Remove.
11845         (mem_expr_equal_p): Use operand_equal_p.
11846         (set_mem_attributes_minus_bitpos): Do not use
11847         component_ref_for_mem_expr.
11848         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
11849         (update_alias_info_with_stack_vars): Likewise.
11850         (partition_stack_vars): Call update_alias_info_with_stack_vars.
11851         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
11852         explicitly nor clear stmt operands.
11853         Free the decl-to-pointer map.
11854         * tree-optimize.c (execute_free_datastructures): Do not free
11855         SSA data structures here.
11856         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
11857         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
11858         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
11859         dependencies.
11860         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
11862 2009-07-13  DJ Delorie  <dj@redhat.com>
11864         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
11865         unrolling at the right iteration count.
11867         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
11868         calculations.
11870 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
11872         * haifa-sched.c (rank_for_schedule): Introduced flags to
11873         enable/disable individual scheduling heuristics.
11874         * common.opt: Introduced flags to enable/disable individual
11875         heuristics in the scheduler.
11876         * doc/invoke.texi: Introduced flags to enable/disable individual
11877         heuristics in the scheduler.
11879 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
11881         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
11882         config/i386/mingw-tls.c.
11883         * config/i386/mingw-tls.c: Removed.
11885 2009-07-13  Ira Rosen  <irar@il.ibm.com>
11887         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
11888         checks access only relevant statements.
11889         (vectorizable_reduction): Likewise.
11891 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
11893         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
11894         just for 32-bit case.
11896 2009-07-12  Jan Hubicka  <jh@suse.cz>
11898         PR tree-optimization/40585
11899         * except.c (expand_resx_expr): When there already is resume
11900         instruction, produce linked list.
11901         (build_post_landing_pads): Assert that resume is empty.
11902         (connect_post_landing_pads): Handle resume lists.
11903         (dump_eh_tree): Dump resume list.
11905 2009-07-12  Ira Rosen  <irar@il.ibm.com>
11907         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
11908         with additional argument.
11909         * tree-vectorizer.h (enum vect_def_type): Add
11910         vect_double_reduction_def.
11911         (vect_is_simple_reduction): Add argument.
11912         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
11913         indentation.
11914         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
11915         vect_is_simple_reduction with additional argument.
11916         (vect_analyze_loop_operations): Handle exit phi nodes in case of
11917         double reduction.
11918         (reduction_code_for_scalar_code): Handle additional codes by
11919         returning ERROR_MARK for them. Fix comment and indentation.
11920         (vect_is_simple_reduction): Fix comment, add argument to specify
11921         double reduction. Detect double reduction.
11922         (get_initial_def_for_induction): Fix indentation.
11923         (get_initial_def_for_reduction): Fix comment and indentation.
11924         Handle double reduction. Create initial definitions that do not
11925         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
11926         (vect_create_epilog_for_reduction): Fix comment, add argument to
11927         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
11928         epilogue result extraction. Create double reduction phi node and
11929         replace relevant uses.
11930         (vectorizable_reduction): Call vect_is_simple_reduction with
11931         additional argument. Fix indentation. Update epilogue code treatment
11932         according to the changes in reduction_code_for_scalar_code. Check
11933         for double reduction. Call vect_create_epilog_for_reduction with
11934         additional argument.
11935         * tree-vect-stmts.c (process_use): Handle double reduction, update
11936         documentation.
11937         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
11938         (vect_get_vec_def_for_operand): Likewise.
11940 2009-07-12  Danny Smith  <dansmister@gmail.com>
11942         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
11943         dllexport if !TREE_PUBLIC.
11944         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
11946 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
11948         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
11949         (avr_extra_arch_macro) Remove declatation.
11950         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
11951         (avr_extra_arch_macro) Declare as static.
11952         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
11954 2009-07-11  Jan Hubicka  <jh@suse.cz>
11956         PR middle-end/48388
11957         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
11959 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
11961         PR debug/40713
11962         * dwarf2out.c (dw_fde_struct): Add in_std_section and
11963         cold_in_std_section bits.
11964         (dwarf2out_begin_prologue): Initialize them.
11965         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
11966         if already covered by text_section or cold_text_section range.
11968         PR rtl-optimization/40667
11969         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
11970         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
11971         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
11972         * config/i386/i386.c (ix86_minimum_alignment): New function.
11973         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
11974         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
11975         * emit-rtl.c (gen_reg_rtx): Likewise.
11976         * function.c (assign_parms): Likewise.  If nominal_type needs
11977         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
11978         rather than passed_type's alignment.
11980         PR target/40668
11981         * function.c (assign_parm_setup_stack): Adjust
11982         MEM_OFFSET (data->stack_parm) if promoted_mode is different
11983         from nominal_mode on big endian.
11985 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
11987         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
11989 2009-07-10  DJ Delorie  <dj@redhat.com>
11991         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
11993 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
11995         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
11996         attribute.
11997         (thumb2_cbnz): Likewise.
11999 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
12001         PR target/39079
12002         * config.gcc (supported_defaults): Add synci.
12003         (with_synci): Add validation.
12004         (all_defaults): Add synci.
12005         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
12006         ISA_HAS_SYNCI.
12007         (synci): Same.
12008         * config/mips/mips.opt (msynci): New option.
12009         * config/mips/mips.c (mips_override_options): Warn on use of
12010         -msynci for targets that do now support it.
12011         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
12012         msynci.
12013         * gcc/doc/invoke.texi (-msynci): Document the new option.
12014         * doc/install.texi (--with-synci): Document the new option.
12016 2009-07-10  Richard Guenther  <rguenther@suse.de>
12018         PR tree-optimization/40496
12019         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
12020         the PHI result with a compatible type.
12022 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12024         PR 25509
12025         PR 40614
12026         * c.opt (Wunused-result): New.
12027         * doc/invoke.texi: Document it.
12028         * c-common.c (c_warn_unused_result): Use it.
12030 2009-07-09  DJ Delorie  <dj@redhat.com>
12032         * targhooks.c (default_target_can_inline_p): Rename from
12033         default_target_option_can_inline_p.
12034         * targhooks.h (default_target_can_inline_p): Likewise.
12035         * target-def.h (TARGET_CAN_INLINE_P): Rename from
12036         TARGET_OPTION_CAN_INLINE_P.
12037         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
12038         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
12039         (mep_target_can_inline_p): Rename from
12040         mep_target_option_can_inline_p.
12042         PR target/40626
12043         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
12044         registers used to pass vectors.
12046         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
12048 2009-07-09  Tom Tromey  <tromey@redhat.com>
12050         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
12051         * config/mmix/mmix.c: Include dwarf2.h.
12052         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
12053         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
12054         * config/sh/sh.c: Include dwarf2.h.
12055         * config/i386/i386.c: Include dwarf2.h.
12056         * Makefile.in (DWARF2_H): Remove 'elf'.
12057         * except.c: Include dwarf2.h.
12058         * unwind-dw2.c: Include dwarf2.h.
12059         * dwarf2out.c: Include dwarf2.h.
12060         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
12061         * unwind-dw2-fde.c: Include dwarf2.h.
12062         * dwarf2asm.c: Include dwarf2.h.
12064 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
12066         * haifa-sched.c (insn_finishes_cycle_p): New static function.
12067         (max_issue): Use it.
12068         * sched-int.h (struct sched_info: insn_finishes_block_p): New
12069         scheduler hook.
12070         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
12071         (region_sched_info): Update.
12072         * sched-ebb.c (ebb_sched_info): Update.
12073         * modulo-sched.c (sms_sched_info): Update.
12074         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
12076 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
12078         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
12080 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
12082         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
12084 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
12086         PR middle-end/40692
12087         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
12088         arg1 with arg01 if arg1 is already INTEGER_CST.
12090 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
12092         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
12093         Transform (and (truncate)) into (truncate (and)).
12095 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
12097         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
12098         creating LHS paradoxical subregs.  Fix surrounding returns to
12099         use NULL_RTX rather than 0.
12101 2009-07-08  DJ Delorie  <dj@redhat.com>
12103         * config/mep/mep.c (mep_option_can_inline_p): New.
12104         (TARGET_OPTION_CAN_INLINE_P): Define.
12106 2009-07-08  Mark Wielaard  <mjw@redhat.com>
12108         PR debug/40659
12109         * dwarf2out.c (add_data_member_location_attribute): When we have
12110         only a constant offset don't emit a new location description using
12111         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
12112         dwarf_version > 2.
12114 2009-07-08  Richard Henderson  <rth@redhat.com>
12116         PR target/38900
12117         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
12118         (enum reg_class): Add CLOBBERED_REGS.
12119         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
12120         * config/i386/i386.c (ix86_conditional_register_usage): Moved
12121         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
12122         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
12123         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
12124         force 64-bit sibcalls into R11.
12125         * config/i386/constraints.md (U): New constraint.
12126         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
12127         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
12128         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
12130 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
12132         * basic-block.h (dump_regset, debug_regset): Remove duplicate
12133         prototypes.
12134         * c-objc-common.h (c_initialize_diagnostics): Ditto.
12135         * ebitmap.h (dump_ebitmap): Ditto.
12136         * optabs.h (optab_libfunc): Ditto.
12137         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
12138         * tree-flow.h (vect_can_force_dr_alignment_p,
12139         get_vectype_for_scalar_type): Ditto.
12140         (vectorize_loops): Move prototype to ...
12141         * tree-vectorizer.h: ... here. Also, adjust comment.
12142         (vect_set_verbosity_level): Remove duplicate prototype.
12143         * tree-ssa-loop.c: Include tree-vectorizer.h.
12144         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
12146 2009-07-08  Nick Clifton  <nickc@redhat.com>
12148         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
12149         forward slash.
12151 2009-07-08  DJ Delorie  <dj@redhat.com>
12153         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
12154         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
12155         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
12156         written to.
12157         * config/mep/intrinsics.md: Regenerated.
12158         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
12159         registers when asm() or calls are detected.
12161 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12163         PR c++/31246
12164         * gimplify.c (gimplify_expr): Propagate no_warning flag when
12165         gimplifying.
12166         * gimple (gimple_build_call_from_tree): Likewise.
12167         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
12168         no_warning flag before warning.
12170 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12172         * tree.c (set_expr_locus): Remove.
12173         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
12174         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
12175         EXPR_LOCATION.
12176         * gimplify.c (internal_get_tmp_var): Likewise.
12177         (gimplify_call_expr): Likewise.
12178         (gimplify_one_sizepos): Likewise.
12180 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
12182         PR debug/40666
12183         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
12184         to variables for debugging purposes.
12186 2009-06-23  Mark Loeser  <mark@halcy0n.com>
12188         PR build/40010
12189         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
12191 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12193         * pretty-print.c (pp_base_format): Remove %J.
12194         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
12195         gcc_cxxdiag_char_table): Likewise.
12196         (init_dynamic_diag_info): Likewise.
12198 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12200         * pretty-print.c (pp_base_format): Remove %H.
12201         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
12202         gcc_cxxdiag_char_table): Likewise.
12203         (init_dynamic_diag_info): Likewise.
12204         * config/mep/mep.c (mep_select_section): Likewise.
12206 2009-07-07  Duncan Sands  <baldrick@free.fr>
12208         * final.c (pass_clean_state): Give the pass a name.
12209         * passes.c (pass_rest_of_compilation): Likewise.
12210         * tree-optimize.c (pass_all_optimizations): Likewise.
12212 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
12214         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
12215         an extra 'decl' for error_at.
12217 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
12219         PR middle-end/40669
12220         * tree-tailcall.c (adjust_return_value_with_ops,
12221         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
12222         if it has complex or vector type.
12224 2009-07-07  Olivier Hainque  <hainque@adacore.com>
12226         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
12227         pthread symbols.
12229 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
12231         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
12233 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12235         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
12236         * c-decl.c: Likewise.
12237         * function.c: Likewise.
12238         * varasm.c: Likewise.
12239         * tree-ssa.c: Likewise.
12240         * c-common.c: Likewise.
12241         * tree-cfg.c: Likewise.
12242         * config/spu/spu.c: Likewise.
12243         * config/ia64/ia64.c: Likewise.
12244         * config/v850/v850.c: Likewise.
12246 2009-07-06  DJ Delorie  <dj@redhat.com>
12248         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
12249         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
12250         unspecified accesses to control registers.
12251         * config/mep/intrinsics.md: Regenerate.
12252         * config/mep/intrinsics.h: Regenerate.
12253         * config/mep/mep-intrin.h: Regenerate.
12255 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12257         * c-lex.c: Replace %H by an explicit location. Update all calls.
12258         * c-common.c: Likewise.
12259         * c-decl.c: Likewise.
12260         * c-typeck.c: Likewise.
12261         * fold-const.c: Likewise.
12262         * gimplify.c: Likewise.
12263         * stmt.c: Likewise.
12264         * tree-cfg.c: Likewise.
12265         * tree-ssa-loop-niter.c: Likewise.
12266         * tree-vrp.c: Likewise.
12267         * value-prof.c: Likewise.
12269 2009-07-06  Diego Novillo  <dnovillo@google.com>
12271         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
12272         if it has one.  Handle cases where VAR does not have an
12273         annotation or cfun is NULL.
12275 2009-07-06  Diego Novillo  <dnovillo@google.com>
12277         * tree.c: Include debug.h.
12278         (initialize_tree_contains_struct): New.
12279         (init_ttree): Call it.
12280         (tree_node_structure_for_code): Factor out of ...
12281         (tree_node_structure): ... here.
12282         * treestruct.def (TS_PHI_NODE): Remove.
12283         (TS_GIMPLE_STATEMENT): Remove.
12285 2009-07-06  Diego Novillo  <dnovillo@google.com>
12287         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
12288         (debug_tree_chain): Handle cycles.
12290 2009-07-06  Nick Clifton  <nickc@redhat.com>
12291             DJ Delorie  <dj@redhat.com>
12293         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
12294         __FMOVD_ENABLED__ is defined.
12295         * config/sh/sh.h
12296         (TARGET_FMOVD): Provide a default definition.
12297         (MASK_FMOVD): Likewise.
12298         (TARGET_CPU_CPP_BUILTINS): Define
12299         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
12300         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
12301         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
12302         (split for DF load from memory into register): Also handle
12303         MEMs which consist of REG+DISP addressing.
12304         (split for DF store from register to memory): Likewise.
12305         (movsf_ie): Always use single fp_mode.
12306         * config/sh/sh.c (sh_override_options): Do not automatically
12307         enable TARGET_MOVD for the SH2A when supporting doubles - leave
12308         that to the -mfmovd command line switch.
12309         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
12310         (fldi_ok): Always allow.
12311         * config/sh/sh.opt (mfmovd): Remove this switch.
12312         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
12314 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
12315             Kaz Kojima  <kkojima@gcc.gnu.org>
12317         PR rtl-optimization/30807
12318         * postreload.c (reload_combine): For every new use of REG_SUM,
12319         record the use of BASE.
12321 2009-07-06  Jan Hubicka  <jh@suse.cz>
12323         * params.def: Revert my accidental commit at 2009-06-30.
12325 2009-07-04  Ian Lance Taylor  <iant@google.com>
12327         PR target/40636
12328         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
12329         EXPORTED_CONST.
12330         (mingw_format_attribute_overrides): Likewise.
12332 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
12334         PR debug/40596
12335         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
12336         don't check cfa.reg.  Instead of cfa.indirect use
12337         fde && fde->drap_reg != INVALID_REGNUM test.
12339 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
12341         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
12343 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
12345         PR target/40587
12346         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
12348 2009-07-03  Richard Guenther  <rguenther@suse.de>
12350         PR tree-optimization/40640
12351         * tree-switch-conversion.c (build_arrays): Perform arithmetic
12352         in original type.
12354 2009-07-03  Jan Hubicka  <jh@suse.cz>
12356         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
12357         for size, reduce amount of inlining.
12359 2009-07-03  Richard Guenther  <rguenther@suse.de>
12361         PR middle-end/34163
12362         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
12363         if t +- x is known to not overflow and the conversion widens the
12364         operation.
12365         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
12367 2009-07-03  Jan Hubicka  <jh@suse.cz>
12369         * ipa-pure-const.c (analyze): Update loop optimizer init.
12370         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
12371         try_remove_empty_loop, remove_empty_loops): Remove.
12372         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
12373         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
12374         to mark regular loops as neccesary.
12375         (degenerate_phi_p): New function.
12376         (propagate_necessity, remove_dead_phis): Use it.
12377         (forward_edge_to_pdom): Likewise.
12378         (eliminate_unnecessary_stmts): Take care to remove uses of results of
12379         virtual PHI nodes that became unreachable.
12380         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
12381         * tree-flow.h (remove_empty_loops): Remove.
12382         * passes.c (init_optimization_passes): Remove.
12384 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
12386         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
12387         can_create_pseudo_p.
12388         (*fix_trunc<mode>_i387_1): Ditto.
12389         (*floathi<mode>2_1): Ditto.
12390         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
12391         (*fistdi2_1): Ditto.
12392         (*fist<mode>2_1): Ditto.
12393         (frndintxf2_floor): Ditto.
12394         (*fist<mode>2_floor_1): Ditto.
12395         (frndintxf2_ceil): Ditto.
12396         (*fist<mode>2_ceil_1): Ditto.
12397         (frndintxf2_trunc): Ditto.
12398         (frndintxf2_mask_pm): Ditto.
12399         (fxam<mode>2_i387_with_temp): Ditto.
12400         * config/i386/sse.md (mulv16qi3): Ditto.
12401         (*sse2_mulv4si3): Ditto.
12402         (mulv2di3): Ditto.
12403         (sse4_2_pcmpestr): Ditto.
12404         (sse4_2_pcmpistr): Ditto.
12406 2009-07-03  Jan Hubicka  <jh@suse.cz>
12408         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
12409         (mark_stmt_necessary): Set it.
12410         (mark_operand_necessary): Set it.
12411         (mark_control_dependent_edges_necessary): Set it.
12412         (mark_virtual_phi_result_for_renaming): New function.
12413         (get_live_post_dom): New function.
12414         (forward_edge_to_pdom): New function.
12415         (remove_dead_stmt): Fix handling of control dependences.
12416         (tree_dce_init): Init new bitmap.
12417         (tree_dce_done): Free it.
12419 2009-07-02  Richard Guenther  <rguenther@suse.de>
12421         PR bootstrap/40617
12422         * tree-ssa-structalias.c (new_var_info): Initialize
12423         is_restrict_var.
12425 2009-07-02  Jan Hubicka  <jh@suse.cz>
12427         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
12428         local.
12430 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
12432         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
12433         instead of recomputing it.  Adjust calls.
12434         (emit_store_flag): Adjust recursive calls.
12436 2009-07-02  Richard Guenther  <rguenther@suse.de>
12438         * tree-ssa-live.c (remove_unused_locals): Do not remove
12439         heap variables.
12440         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
12441         of DECL_EXTERNAL for HEAP variables.
12442         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
12443         HEAP variables.  Do not adjust RESTRICT vars.
12444         (find_what_var_points_to): Nobody cares if something
12445         points to READONLY.
12447 2009-07-02  Ben Elliston  <bje@au.ibm.com>
12449         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
12450         pc_low and pc_high declarations to the top of the function.
12452 2009-07-01  DJ Delorie  <dj@redhat.com>
12454         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
12455         registers as fixed.
12456         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
12457         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
12458         unspecified accesses to control registers.
12459         * config/mep/intrinsics.md: Regenerate.
12460         * config/mep/intrinsics.h: Regenerate.
12461         * config/mep/mep-intrin.h: Regenerate.
12463 2009-07-01  Anthony Green  <green@moxielogic.com>
12465         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
12466         instruction when possible.
12467         (moxie_expand_prologue): Ditto.  Also, save an instruction and
12468         some complexity by popping off of $r12 instead of $sp.
12469         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
12470         operands.
12472 2009-07-01  Richard Henderson  <rth@redhat.com>
12474         PR bootstrap/40347
12475         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
12476         contained no insns, reposition note before last insn.
12478 2009-07-01  Richard Henderson  <rth@redhat.com>
12480         PR debug/40431
12481         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
12482         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
12484 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
12486         PR bootstrap/40558
12487         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
12488         darwin9 for printing reg addresses with %y.
12490 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
12492         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
12493         truncation from operands in binary operations.
12495 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
12497         Revert:
12498         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
12499         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
12500         subreg of op0 to the original op0.
12502         * expmed.c (store_bit_field_1): Use a temporary as the destination
12503         instead of a paradoxical subreg when we need to truncate the result.
12505 2009-07-01  DJ Delorie  <dj@redhat.com>
12507         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
12508         names to VLIW variants.
12509         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
12510         * config/mep/intrinsics.md: Regenerate.
12511         * config/mep/intrinsics.h: Regenerate.
12512         * config/mep/mep-intrin.h: Regenerate.
12514 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
12516         PR debug/40462
12517         * jump.c (returnjump_p): Revert last patch.
12518         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
12520 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12522         PR target/40575
12523         * pa.md (casesi32p): Use jump table label to determine the offset
12524         of the jump table.
12525         (casesi64p): Likewise.
12527         * pa.c (forward_branch_p): Return bool type.  Use instruction
12528         addresses when available.  Assert that INSN has a jump label.
12529         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
12530         have a jump label.
12532 2009-07-01  Richard Guenther  <rguenther@suse.de>
12534         PR tree-optimization/19831
12535         * tree-ssa-dce.c (propagate_necessity): Calls to functions
12536         that only act as barriers do not make any previous stores necessary.
12537         * tree-ssa-structalias.c (handle_lhs_call): Delay making
12538         HEAP variables global, do not add a constraint from nonlocal.
12539         (find_func_aliases): Handle escapes through return statements.
12540         (compute_points_to_sets): Make escaped HEAP variables global.
12542 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
12544         PR bootstrap/40597
12545         * expmed.c (emit_store_flag): Perform a conversion if necessary,
12546         after reducing a DImode cstore to SImode.
12548 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
12550         * expr.c (expand_expr_real_1): Reinstate fallthrough to
12551         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
12553 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
12555         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
12556         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
12557         to 0.
12558         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
12559         and umod_optab if TARGET_BSD_DIVMOD.
12560         * config/vax/lib1funcs.asm: New file.
12561         * config/vax/t-linux: New file.
12562         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
12564 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
12566         PR c++/40566
12567         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
12568         to type arguments that have void type.
12570         PR debug/40573
12571         * dwarf2out.c (gen_formal_parameter_die): Call
12572         equate_decl_number_to_die if node is different from origin.
12574 2009-06-30  Anthony Green  <green@moxielogic.com>
12576         Clean up moxie port for --enable-build-with-cxx.
12577         * config/moxie/moxie.c (moxie_function_value): First two
12578         parameters are const_tree, not tree.
12579         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
12580         (REG_CLASS_NAMES): Ditto.
12581         (REGNO_REG_CLASS): Ditto.
12582         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
12583         (moxie_function_value): Fix constyness of arguments.
12585 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
12587         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
12588         finalize_size_functions before further processing.
12589         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
12590         (variable_size): Call self_referential_size on size expressions
12591         that contain a PLACEHOLDER_EXPR.
12592         (size_functions): New static variable.
12593         (copy_self_referential_tree_r): New static function.
12594         (self_referential_size): Likewise.
12595         (finalize_size_functions): New global function.
12596         * tree.c: Include tree-inline.h.
12597         (push_without_duplicates): New static function.
12598         (find_placeholder_in_expr): New global function.
12599         (substitute_in_expr) <tcc_declaration>: Return the replacement object
12600         on equality.
12601         <tcc_expression>: Likewise.
12602         <tcc_vl_exp>: If the replacement object is a constant, try to inline
12603         the call in the expression.
12604         * tree.h (finalize_size_functions): Declare.
12605         (find_placeholder_in_expr): Likewise.
12606         (FIND_PLACEHOLDER_IN_EXPR): New macro.
12607         (substitute_placeholder_in_expr): Update comment.
12608         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
12609         is true.
12610         (copy_tree_body_r): Likewise.
12611         (copy_tree_body): New static function.
12612         (maybe_inline_call_in_expr): New global function.
12613         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
12614         (maybe_inline_call_in_expr): Declare.
12615         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
12616         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
12617         GIMPLE_H.
12619 2009-06-30  Richard Guenther  <rguenther@suse.de>
12621         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
12622         continue walking.
12623         (propagate_necessity): Do not mark reaching defs of stores
12624         as necessary.
12626 2009-06-30  Jan Hubicka  <jh@suse.cz>
12628         * cfgloopanal.c (check_irred): Move into ...
12629         (mark_irreducible_loops): ... here; return true if ireducible
12630         loops was found.
12631         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
12632         (analyze_function): Try to prove loop finiteness.
12633         * cfgloop.h (mark_irreducible_loops): Update prototype.
12634         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
12636 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
12638         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
12640 2009-06-30  Ira Rosen  <irar@il.ibm.com>
12642         PR tree-optimization/40542
12643         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
12644         types.
12646 2009-06-30  Martin Jambor  <mjambor@suse.cz>
12648         PR tree-optimization/40582
12649         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
12650         than useless_type_conversion_p.
12651         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
12652         proper place.
12654 2009-06-30  Martin Jambor  <mjambor@suse.cz>
12656         PR middle-end/40554
12657         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
12659 2009-06-30  Richard Guenther  <rguenther@suse.de>
12661         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
12662         use ao_ref references.
12663         (walk_aliased_vdefs): Likewise.
12664         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
12665         * tree-ssa-dce.c (struct ref_data): Remove.
12666         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
12667         (mark_aliased_reaching_defs_necessary): Adjust.
12668         (mark_all_reaching_defs_necessary_1): Likewise.
12670 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
12672         PR boostrap/40597
12673         * expmed.c (emit_cstore): New name of emit_store_flag_1.
12674         (emit_store_flag_1): Extract from emit_store_flag, adjust
12675         calls to (what now is) emit_cstore.
12676         (emit_store_flag): Call emit_store_flag_1 and also use it
12677         for what used to be recursive calls.
12679 2009-06-30  Wei Guozhi  <carrot@google.com>
12681         PR/40416
12682         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
12683         if the target bb post dominates from bb.
12684         * config/i386/i386.c (memory_address_length): Check existence of base
12685         register before using it.
12687 2009-06-30  Nick Clifton  <nickc@redhat.com>
12688             DJ Delorie  <dj@redhat.com>
12690         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
12691         __FMOVD_ENABLED__ is defined.
12692         * config/sh/sh.h
12693         (TARGET_FMOVD): Provide a default definition.
12694         (MASK_FMOVD): Likewise.
12695         (TARGET_CPU_CPP_BUILTINS): Define
12696         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
12697         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
12698         two fmov instructions depending upon whether TARGET_FMOVD is
12699         enabled.
12700         (split for DF load from memory into register): Also handle
12701         MEMs which consist of REG+DISP addressing.
12702         (split for DF store from register to memory): Likewise.
12703         * config/sh/sh.opt (mfmovd): Remove this switch.
12704         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
12705         * config/sh/sh.c (sh_override_options): Do not automatically
12706         enable TARGET_MOVD for the SH2A when supporting doubles - leave
12707         that to the -mfmovd command line switch.
12709         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
12710         the SH4 and SH4A.
12711         (fldi_ok): Always allow.
12712         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
12714 2009-06-29  DJ Delorie  <dj@redhat.com>
12716         * doc/install.texi (mep-x-elf): Correct chip's full name.
12718 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
12720         * doc/extend.texi: Fix typo.
12722 2009-06-29  Tom Tromey  <tromey@redhat.com>
12724         * dwarf2.h: Remove.
12725         * Makefile.in (DWARF2_H): New variable.
12726         (except.o): Use it.
12727         (dwarf2out.o): Likewise.
12728         (dwarf2asm.o): Likewise.
12729         * config/i386/t-i386: Use DWARF2_H.
12730         * except.c: Include elf/dwarf2.h.
12731         * unwind-dw2.c: Include elf/dwarf2.h.
12732         * dwarf2out.c: Include elf/dwarf2.h.
12733         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
12734         <dtprel>: New field.
12735         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
12736         (size_of_loc_descr): Likewise.
12737         (output_loc_operands_raw): Likewise.
12738         (output_loc_operands): Handle new dtprel field.
12739         (loc_checksum): Update.
12740         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
12741         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
12742         * unwind-dw2-fde.c: Include elf/dwarf2.h.
12743         * dwarf2asm.c: Include elf/dwarf2.h.
12744         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
12745         * config/mmix/mmix.c: Include elf/dwarf2.h.
12746         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
12747         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
12748         * config/sh/sh.c: Include elf/dwarf2.h.
12749         * config/i386/i386.c: Include elf/dwarf2.h.
12751 2009-06-29  DJ Delorie  <dj@redhat.com>
12753         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
12755         * doc/extend.texi: Add MeP attributes and pragmas.
12756         * doc/invoke.text: Add MeP Options.
12757         * doc/contrib.texi: Add MeP contribution.
12758         * doc/md.texi: Add MeP constraints.
12759         * doc/install.texi: Add MeP target.
12761 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
12763         * target.h (struct gcc_target): Add frame_pointer_required field.
12764         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
12765         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
12766         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
12767         hook.
12768         * reload1.c (update_eliminables): (Ditto.).
12769         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
12770         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
12771         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
12773         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
12775         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
12776         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
12777         (arm_frame_pointer_required): New function.
12779         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
12780         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
12781         (avr_frame_pointer_required_p): Declare as static.
12782         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
12784         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
12785         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
12786         (bfin_frame_pointer_required): Make as static, change return type
12787         to bool.
12788         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
12790         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
12791         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
12792         (cris_frame_pointer_required): New function.
12794         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
12796         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
12797         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
12798         (fr30_frame_pointer_required): New function.
12800         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
12801         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
12802         (frv_frame_pointer_required): Make as static, change return type
12803         to bool.
12804         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
12806         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
12807         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
12808         (ix86_frame_pointer_required): Make as static, change return type to
12809         bool.
12810         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
12812         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
12813         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
12815         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
12817         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
12819         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
12821         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
12822         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
12823         (mips_frame_pointer_required): Make as static.
12824         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
12826         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
12827         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
12828         (mmix_frame_pointer_required): Mew function.
12830         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
12831         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
12833         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
12835         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
12837         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
12839         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
12840         (CAN_ELIMINATE): Redefine.
12841         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
12842         (sparc_frame_pointer_required): New function.
12843         (sparc_can_eliminate): New function.
12844         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
12846         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
12847         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
12849         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
12850         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
12851         (xtensa_frame_pointer_required): Make as static, change return type
12852         to bool.
12853         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
12854         Remove.
12856 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
12858         * doc/plugins.texi: Document PLUGIN_START_UNIT.
12859         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
12860         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
12861         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
12862         (register_callback): Handle PLUGIN_START_UNIT.
12863         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
12865 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
12867         * tree.c (process_call_operands): Propagate TREE_READONLY from the
12868         operands.
12869         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
12870         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
12872 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
12874         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
12875         move cost.
12877 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
12879         * doc/extend.texi (Additional Floating Types): __float128 is also
12880         supported on i386 targets.
12882 2009-06-29  Richard Guenther  <rguenther@suse.de>
12884         PR middle-end/14187
12885         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
12886         flag.
12887         (pt_solutions_same_restrict_base): Declare.
12888         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
12889         flag.
12890         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
12891         (make_constraint_from, make_copy_constraint): Move earlier.
12892         (make_constraint_from_heapvar): New function.
12893         (make_constraint_from_restrict): Likewise.
12894         (handle_lhs_call): Use it.
12895         (find_func_aliases): Use it to track conversions to restrict
12896         qualified pointers.
12897         (struct fieldoff): Add only_restrict_pointers flag.
12898         (push_fields_onto_fieldstack): Initialize it.
12899         (create_variable_info_for): Track global restrict qualified pointers.
12900         (intra_create_variable_infos): Use make_constraint_from_heapvar.
12901         Track restrict qualified pointer arguments.
12902         (set_uids_in_ptset): Use varinfo is_global_var flag.
12903         (find_what_var_points_to): Set the vars_contains_restrict flag.
12904         Always create the points-to solution for sets including restrict tags.
12905         (pt_solutions_same_restrict_base): New function.
12906         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
12907         qualified pointers use pt_solutions_same_restrict_base as
12908         additional source for disambiguation.
12910 2009-06-29  Richard Guenther  <rguenther@suse.de>
12912         PR middle-end/38212
12913         * alias.c (find_base_decl): Remove.
12914         (get_deref_alias_set_1): Remove restrict handling.
12915         * c-common.c (c_apply_type_quals_to_decl): Do not set
12916         DECL_POINTER_ALIAS_SET.
12917         * gimplify.c (find_single_pointer_decl_1): Remove.
12918         (find_single_pointer_decl): Likewise.
12919         (internal_get_tmp_var): Remove restrict handling.
12920         (gimple_regimplify_operands): Likewise.
12921         * omp-low.c (expand_omp_atomic_pipeline): Do not set
12922         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
12923         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
12924         * tree.c (restrict_base_for_decl): Remove.
12925         (init_ttree): Do not allocate it.
12926         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
12927         LABEL_DECL_UID for label decls.
12928         (copy_node_stat): Do not copy restrict information.
12929         (decl_restrict_base_lookup): Remove.
12930         (decl_restrict_base_insert): Likewise.
12931         (print_restrict_base_statistics): Likewise.
12932         (dump_tree_statistics): Do not call print_restrict_base_statistics.
12933         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
12934         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
12935         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
12936         (LABEL_DECL_UID): Adjust.
12937         (DECL_BASED_ON_RESTRICT_P): Remove.
12938         (DECL_GET_RESTRICT_BASE): Likewise.
12939         (SET_DECL_RESTRICT_BASE): Likewise.
12940         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
12942         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
12943         instead of DECL_POINTER_ALIAS_SET.
12944         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
12945         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
12946         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
12948 2009-06-29  Richard Guenther  <rguenther@suse.de>
12950         PR tree-optimization/40579
12951         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
12952         the IL to simplify has constants that overflowed.
12954 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
12956         PR tree-optimization/40550
12957         * tree-vect-generic.c (expand_vector_operations_1): Compute in
12958         vector_compute_type only when the size of vector_compute_type is
12959         less than the size of type.
12961 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
12963         * fold-const.c (contains_label_1): Fix comments.
12964         (contains_label_p): Do not walk trees multiple time.
12966 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
12968         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
12969         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
12970         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
12971         ix86_fp_comparison_operator.
12972         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
12973         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
12974         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
12975         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
12976         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
12977         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
12978         (related splits): Change predicate to ix86_fp_comparison_operator.
12979         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
12980         instead of ix86_fp_comparison_codes.
12981         (ix86_trivial_fp_comparison_operator,
12982         ix86_fp_comparison_operator): New.
12983         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
12984         (ix86_expand_compare): Eliminate last two parameters.
12985         (ix86_fp_jump_nontrivial_p): Kill.
12986         * config/i386/i386.c (put_condition_code): Eliminate call to
12987         ix86_fp_comparison_codes and subsequent assertion.
12988         (ix86_fp_comparison_codes): Eliminate.
12989         (ix86_fp_swap_condition): New.
12990         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
12991         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
12992         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
12993         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
12994         and ix86_fp_swap_condition.
12995         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
12996         Use ix86_fp_comparison_strategy.
12997         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
12998         (ix86_fp_jump_nontrivial_p): Eliminate.
12999         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
13000         call to ix86_expand_compare.
13001         (ix86_split_fp_branch, ix86_expand_setcc,
13002         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
13003         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
13005 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
13007         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
13008         related to jump_clobbers.
13009         * config/arm/arm.md (conds): Remove jump_clob case.
13010         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
13011         splits): Change comparison_operator to arm_comparison_operator.
13012         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
13013         Eliminate.
13015 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
13017         * dojump.c (do_compare_rtx_and_jump): Try swapping the
13018         condition for floating point modes.
13019         * expmed.c (emit_store_flag_1): Move here a bigger part
13020         of emit_store_flag.
13021         (emit_store_flag): Try swapping the condition for floating point
13022         modes.
13023         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
13025 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
13027         * expr.c (expand_expr_real_1): Just use do_store_flag.
13028         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
13029         emit_store_flag_force.
13030         * expmed.c (emit_store_flag_force): Copy here trick
13031         previously in expand_expr_real_1.  Try reversing the comparison.
13032         (emit_store_flag_1): Work if target is NULL.
13033         (emit_store_flag): Work if target is NULL, using the result mode
13034         from the comparison.  Use split_comparison, restructure final part
13035         to simplify conditionals.
13037 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
13039         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
13040         * dojump.c (do_jump): Change handling of floating-point
13041         ops to use just do_compare_and_jump.
13042         (split_comparison): New.
13043         (do_compare_rtx_and_jump): Add here logic coming previously
13044         in do_jump, using split_comparison.
13046 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
13048         PR target/40489
13049         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
13051 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13053         * tree-ssa-alias.c: Fix unintentional commit.
13055 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13057         * passes.c (execute_one_pass): Fix unintentional commit.
13059 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13061         * df-problems.c (df_set_seen, df_unset_seen): Delete.
13062         (df_rd_local_compute, df_md_local_compute): Inline them.
13064         (df_md_scratch): New.
13065         (df_md_alloc, df_md_free): Allocate/free it.
13066         (df_md_local_compute): Only include live registers in init.
13067         (df_md_transfer_function): Prune the in-set computed by
13068         the confluence function, and the gen-set too.
13070 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13072         PR rtl-optimization/26854
13073         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
13074         * df-problems.c (df_rd_add_problem): Fix comment.
13075         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
13076         df_md_simulate_artificial_defs_at_top,
13077         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
13078         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
13079         df_md_transfer_function, df_md_init, df_md_confluence_0,
13080         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
13081         problem_MD, df_md_add_problem): New.
13082         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
13083         df_md_get_bb_info): New.
13084         (DF_LAST_PROBLEM_PLUS1): Adjust.
13086         * Makefile.in (fwprop.o): Include domwalk.h.
13087         * fwprop.c: Include domwalk.h.
13088         (reg_defs, reg_defs_stack): New.
13089         (bitmap_only_bit_between): Remove.
13090         (process_defs): New.
13091         (process_uses): Use reg_defs and local_md instead of
13092         bitmap_only_bit_between and local_rd.
13093         (single_def_use_enter_block): New, from build_single_def_use_links.
13094         (single_def_use_leave_block): New.
13095         (build_single_def_use_links): Remove code moved to
13096         single_def_use_enter_block, invoke domwalk.
13097         (use_killed_between): Adjust comment.
13099 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13101         * bitmap.h (bitmap_ior_and_into): New.
13102         * bitmap.c (bitmap_ior_and_into): New.
13104 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13106         * domwalk.h (struct dom_walk_data): Remove all callbacks except
13107         before_dom_children_before_stmts and after_dom_children_after_stmts.
13108         Rename the two remaining callbacks to just before_dom_children and
13109         after_dom_children. Remove other GIMPLE statement walking bits.
13110         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
13111         * graphite.c: Do not include domwalk.h.
13112         * tree-into-ssa.c (interesting_blocks): New global.
13113         (struct mark_def_sites_global_data): Remove it and names_to_rename.
13114         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
13115         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
13116         now that they're not domwalk callbacks.
13117         (rewrite_initialize_block): Rename to...
13118         (rewrite_enter_block): ... this, place after called functions.  Test
13119         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
13120         (rewrite_finalize_block): Rename to...
13121         (rewrite_leave_block): ... this, place after called functions.
13122         (rewrite_update_init_block): Rename to...
13123         (rewrite_update_enter_block): ... this, place after called functions.
13124         Test interesting_blocks, call rewrite_update_stmt and
13125         rewrite_update_phi_arguments.
13126         (rewrite_update_fini_block): Rename to...
13127         (rewrite_leave_block): ... this, place after called functions.
13128         (rewrite_blocks): Remove last argument, simplify initialization of
13129         walk_data.
13130         (mark_def_sites_initialize_block): Rename to...
13131         (mark_def_sites_block): ... this, call mark_def_sites.
13132         (mark_def_sites_blocks): Remove argument, simplify initialization of
13133         walk_data.
13134         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
13135         (update_ssa): Likewise.
13136         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
13137         callback.
13138         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
13139         (dom_opt_initialize_block): Rename to...
13140         (dom_opt_enter_block): ... this, place after called functions.  Walk
13141         statements here, inline propagate_to_outgoing_edges.
13142         (dom_opt_finalize_block): Rename to...
13143         (dom_opt_leave_block): ... this, place after called functions.
13144         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
13145         domwalk callback.
13146         (dse_enter_block, dse_record_phi): New.
13147         (dse_record_phis): Delete.
13148         (dse_finalize_block): Rename to...
13149         (dse_leave_block): ... this.
13150         (tree_ssa_dse): Simplify initialization of walk_data.
13151         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
13152         Adjust initialization of walk_data.
13153         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
13154         * tree-ssa-loop-phiopt.c (get_non_trapping):
13155         Adjust initialization of walk_data.
13156         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
13157         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
13158         it's not a domwalk callback.
13159         (uncprop_initialize_block): Rename to...
13160         (dse_enter_block): ... this, call uncprop_into_successor_phis.
13161         (dse_finalize_block): Rename to...
13162         (dse_leave_block): ... this.
13163         (tree_ssa_uncprop): Simplify initialization of walk_data.
13164         * Makefile.in: Adjust dependencies.
13166 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
13168         * arm.md (casesi): Fix test for Thumb1.
13169         (thumb1_casesi_internal_pic): Likewise.
13170         (thumb1_casesi_dispatch): Likewise.
13172 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
13174         * config/arm/arm-cores.def: Added core cortex-m0.
13175         * config/arm/arm-tune.md: Regenerated.
13176         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
13178 2009-06-26  DJ Delorie  <dj@redhat.com>
13180         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
13182         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
13183         the scheduler doesn't tag jump insns.
13185 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
13187         * c-decl.c (merge_decls): Re-indent.
13189 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
13191         PR c/39902
13192         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
13193         Special-case decimal float constants.
13195 2009-06-26  Richard Henderson  <rth@redhat.com>
13197         * function.h (struct function): Add cannot_be_copied_reason,
13198         and cannot_be_copied_set.
13199         * tree-inline.c (has_label_address_in_static_1): Rename from
13200         inline_forbidden_p_2; don't set inline_forbidden_reason here.
13201         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
13202         don't set inline_forbidden_reason.
13203         (copy_forbidden): New function, split out of inline_forbidden_p.
13204         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
13205         (inline_forbidden_p): Use copy_forbidden.
13206         (tree_versionable_function_p): Likewise.
13207         (inlinable_function_p): Merge into tree_inlinable_function_p.
13208         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
13209         * ipa-cp.c (ipcp_versionable_function_p): New function.
13210         (ipcp_cloning_candidate_p): Use it.
13211         (ipcp_node_modifiable_p): Likewise.
13213 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
13215         * builtins.c (expand_builtin_alloca): Handle builtin alloca
13216         that is marked not to be inlined. Remove flag_mudflap use.
13217         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
13218         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
13220 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
13222         PR bootstrap/40338
13223         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
13224         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
13226 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
13228         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
13229         shared libgcc.
13230         (__mingwthr_remove_key_dtor): Likewise.
13232 2009-06-26  Richard Guenther  <rguenther@suse.de>
13234         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
13236 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
13238         PR middle-end/40525
13239         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
13240         try the non-cond_exec path also.
13242 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13244         PR target/40468
13245         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
13246         (output_cbranch): Use new functions.
13247         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
13248         Likewise.
13250 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
13251             Pat Haugen  <pthaugen@us.ibm.com>
13252             Revital Eres <ERES@il.ibm.com>
13254         * config/rs6000/rs6000.c (print_operand): Correct lossage message
13255         for %c error.  Add %x support to print VSX registers as a unified
13256         register set, instead of separate float and altivec registers.
13257         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
13258         %y case, and add support for VSX pre-modify addresses.
13259         (output_toc): Add assert for CONST containing an integer constant
13260         in the PLUS case.
13261         (rs6000_adjust_cost): Add POWER7 support.
13262         (insn_must_be_first_in_group): Ditto.
13263         (insn_must_be_last_in_group): Ditto.
13264         (rs6000_emit_popcount): Ditto.
13265         (rs6000_vector_mode_supported_p): Ditto.
13267         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
13268         Change some of the functions called by macros to being called
13269         through a pointer, so debug functions can be inserted if
13270         -mdebug=addr or -mdebug=cost.
13271         (rs6000_preferred_reload_class_ptr): Ditto.
13272         (rs6000_secondary_reload_class_ptr): Ditto.
13273         (rs6000_secondary_memory_needed_ptr): Ditto.
13274         (rs6000_cannot_change_mode_class_ptr): Ditto.
13275         (rs6000_secondary_reload_inner): Ditto.
13276         (rs6000_legitimize_reload_address): Ditto.
13277         (rs6000_legitimize_reload_address_ptr): Ditto.
13278         (rs6000_mode_dependent_address): Ditto.
13279         (rs6000_mode_dependent_address_ptr): Ditto.
13281         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
13282         function to return true if the mode allows reg + integer
13283         addresses.
13284         (virtual_stack_registers_memory_p): New function to return true if
13285         the address refers to a virtual stack register.
13286         (rs6000_legitimate_offset_address_p): Move code to say whether a
13287         mode supports reg+int addressing to reg_offset_addressing_ok_p and
13288         call it.
13289         (rs6000_legitimate_address_p): Add checks for modes that only can
13290         do reg+reg addressing.  Start adding VSX support.
13291         (rs6000_legitimize_reload_address): Ditto.
13292         (rs6000_legitimize_address): Ditto.
13293         (rs6000_debug_legitimate_address_p): New debug functions for
13294         -mdebug=addr and -mdebug=cost.
13295         (rs6000_debug_rtx_costs): Ditto.
13296         (rs6000_debug_address_costs): Ditto.
13297         (rs6000_debug_adjust_cost): Ditto.
13298         (rs6000_debug_legitimize_address): Ditto.
13299         (rs6000_legitimize_reload_address_ptr): Point to call normal
13300         function or debug function.  Make functions called via pointer
13301         static.
13302         (rs6000_mode_dependent_address_ptr): Ditto.
13303         (rs6000_secondary_reload_class_ptr): Ditto.
13304         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
13305         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
13306         into a friendlier error.
13307         (rs6000_init_builtins): Add initial VSX support.
13308         (rs6000_adjust_cost): Fix some spacing issues.
13310         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
13311         (REG_CLASS_NAMES): Ditto.
13312         (REG_CLASS_CONTENTS): Ditto.
13313         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
13314         pointer, to add -mdebug=addr support.
13315         (CANNOT_CHANGE_MODE_CLASS): Ditto.
13316         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
13317         -mdebug=addr support.
13318         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
13319         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
13320         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
13322         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
13323         16-bit values.
13324         (bswapsi*): Set attribute types for load/store.  Add combiner
13325         patterns to eliminate zero extend on 64-bit.
13326         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
13327         stdbrx if the hardware supports those instructions.
13329 2009-06-25  Ian Lance Taylor  <iant@google.com>
13331         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
13332         (Link Options): Document -static-libstdc++.
13334 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13336         PR target/38731
13337         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
13338         DATA_ALIGNMENT instead.
13340 2009-06-25  Richard Guenther  <rguenther@suse.de>
13342         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
13343         indirect references against the callused/escaped solutions.
13344         (call_may_clobber_ref_p_1): Likewise.
13346 2009-06-25  Martin Jambor  <mjambor@suse.cz>
13348         PR tree-optimization/40493
13349         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
13350         (enum unscalarized_data_handling): New type.
13351         (handle_unscalarized_data_in_subtree): Return what has been done.
13352         (load_assign_lhs_subreplacements): Handle left flushes differently.
13353         (sra_modify_assign): Use unscalarized_data_handling, simplified
13354         condition determining whether to remove the statement.
13356 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
13358         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
13359         excerpt - @ should be doubled for texinfo.
13361 2009-06-24  Ian Lance Taylor  <iant@google.com>
13363         * config/arc/arc.c: Include "df.h".
13364         (arc_attribute_table): Make static.  Move higher in file.
13365         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
13366         (output_shift): Initialize n later to avoid warning.
13367         * config/arm/arm.c (arm_attribute_table): Make static.  Move
13368         higher in file.
13369         * config/avr/avr.c (avr_attribute_table): Make static.  Move
13370         higher in file.
13371         (reg_class_tab): Change array type from int to enum reg_class.
13372         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
13373         LABEL_REF.
13374         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
13375         (lshrhi3_out): Likewise.
13376         (class_likely_spilled_p): Change return type to bool.
13377         (avr_rtx_costs): Use local code variable with enum type.
13378         * config/avr/avr.md (movmemhi): Use add_reg_note.
13379         (andhi3, andsi3): Don't use AS2 with "and".
13380         (iorhi3, iorsi3): Don't use AS2 with "or".
13381         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
13382         * config/crx/crx.c: Include "df.h".
13383         (crx_attribute_table): Make static.
13384         * config/m32r/m32r.c: Include "df.h".
13385         (m32r_attribute_table): Make static.  Move higher in file.
13386         (pop): Use add_reg_note.
13387         (block_move_call): Change 0 to LCT_NORMAL in function call.
13388         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
13389         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
13390         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
13391         declare, not just when TREE_CODE is defined.
13392         * config/m68hc11/m68hc11.c: Include "expr.h".
13393         (m68hc11_attribute_table): Make static.  Move higher in file.
13394         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
13395         function call.
13396         (m68hc11_register_indirect_p): Likewise.
13397         (m68hc11_function_arg_padding): Change return type to enum
13398         direction.
13399         (emit_move_after_reload): Use add_reg_note.
13400         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
13401         (m68hc11_split_logical): Likewise.
13402         (m68hc11_rtx_costs): Add local code_and outer_code variables with
13403         enum type.
13404         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
13405         to VOIDmode in function call.
13406         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
13407         tree is defined.
13408         (m68hc11_split_logical): Update declaration.
13409         (m68hc11_function_arg_padding): Update declaration.
13410         * config/mcore/mcore.c (regno_reg_class): Change form array of int
13411         to array of enum reg_class.
13412         (mcore_attribute_table): Make static.  Move higher in file.
13413         (mcore_rtx_costs): Add cast to enum type.
13414         * config/mcore/mcore.h (regno_reg_class): Update declaration.
13415         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
13416         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
13417         in file.
13418         * config/sh/predicates.md (trapping_target_operand): Rename and to
13419         and_expr.
13420         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
13421         higher in file.
13422         * config/spu/spu.c (spu_attribute_table): Make static.  Move
13423         higher in file.
13424         * config/v850/v850.c (v850_attribute_table): Make static.  Move
13425         higher in file.
13426         (v850_rtx_costs): Use local code with enum type.
13427         (expand_epilogue): Add cast.
13428         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
13430 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
13432         PR target/40515
13433         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
13434         -m2a-single-only and -m2a-nofpu.
13435         * config/sh/sh.opt: Document m2a generates FPU code.
13437 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
13439         * defaults.h (CAN_ELIMINATE): Provide default.
13440         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
13441         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
13442         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
13443         * config/spu/spu.h (CAN_ELIMINATE): Delete.
13444         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
13445         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
13446         * config/cris/cris.h (CAN_ELIMINATE): Delete.
13447         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
13448         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
13449         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
13451 2009-06-24  DJ Delorie  <dj@redhat.com>
13453         * mep-ext-cop.cpu: Fix copyright notice.
13454         * mep-default: Fix copyright notice.
13455         * mep-core: Fix copyright notice.
13456         * mep: Fix copyright notice.
13457         * mep-ivc2: Fix copyright notice.
13458         * mep-c5: Fix copyright notice.
13460 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
13462         * doc/contrib.texi (Contributors):
13464 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
13466         PR middle-end/40501
13467         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
13468         src and dst operands if necessary.
13470 2009-06-23  DJ Delorie  <dj@redhat.com>
13472         Add MeP port.
13473         * config.gcc: Add mep support.
13474         * recog.c: Resurrect validate_replace_rtx_subexp().
13475         * recog.h: Likewise.
13476         * config/mep/: Add new port:
13477         * config/mep/constraints.md: New file.
13478         * config/mep/default.h: New file.
13479         * config/mep/intrinsics.h: New file.
13480         * config/mep/intrinsics.md: New file.
13481         * config/mep/ivc2-template.h: New file.
13482         * config/mep/mep-c5.cpu: New file.
13483         * config/mep/mep-core.cpu: New file.
13484         * config/mep/mep-default.cpu: New file.
13485         * config/mep/mep-ext-cop.cpu: New file.
13486         * config/mep/mep-intrin.h: New file.
13487         * config/mep/mep-ivc2.cpu: New file.
13488         * config/mep/mep-lib1.asm: New file.
13489         * config/mep/mep-lib2.c: New file.
13490         * config/mep/mep-pragma.c: New file.
13491         * config/mep/mep-protos.h: New file.
13492         * config/mep/mep-tramp.c: New file.
13493         * config/mep/mep.c: New file.
13494         * config/mep/mep.cpu: New file.
13495         * config/mep/mep.h: New file.
13496         * config/mep/mep.md: New file.
13497         * config/mep/mep.opt: New file.
13498         * config/mep/predicates.md: New file.
13499         * config/mep/t-mep: New file.
13501 2009-06-23  Ian Lance Taylor  <iant@google.com>
13503         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
13504         from loose_warn into c_loose_warn and from strict_warn into
13505         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
13506         --enable-build-with-cxx.  Set and substitute
13507         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
13508         * Makefile.in (CXXFLAGS): New variable.
13509         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
13510         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
13511         the default is the same as $(STRICT_WARN).
13512         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
13513         (CXX): New variable.
13514         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
13515         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
13516         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
13517         (HOST_LIBS): New variable.
13518         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
13519         (ALL_CXXFLAGS): New variable.
13520         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
13521         * doc/install.texi (Configuration): Document
13522         --enable-build-with-cxx, --with-stage1-ldflags,
13523         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
13524         * configure: Rebuild.
13526 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13528         * config/arm/arm.c (arm_override_options): Fix braces and formatting
13529         from previous commit.
13531 2009-06-23  Ian Lance Taylor  <iant@google.com>
13533         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
13535 2009-06-23  Ian Lance Taylor  <iant@google.com>
13537         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
13538         with ATTRIBUTE_UNUSED.
13540 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
13541             Pat Haugen  <pthaugen@us.ibm.com>
13542             Revital Eres  <eres@il.ibm.com>
13544         * config.in (HAVE_AS_POPCNTD): Add default definition.
13545         (HAVE_AS_LWSYNC): Ditto.
13547         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
13548         release number.
13549         (gcc_cv_as_powerpc_cmpb): Ditto.
13550         (gcc_cv_as_powerpc_dfp): Ditto.
13551         (gcc_cv_as_powerpc_vsx): Ditto.
13552         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
13553         supporting the popcntd/lwsync instructions.
13554         (gcc_cv_as_powerpc_lwsync): Ditto.
13555         * configure: Regenerate.
13557         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
13558         -mcpu=native and -mcpu=power7.
13559         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
13561         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
13562         a variable instead of a mask to reduce the number of mask bits.
13563         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
13564         (-mbit-word): Ditto.
13565         (-mregnames): Ditto.
13566         * config/rs6000/rs6000.opt (-mupdate): Ditto.
13567         (-mfused-madd): Ditto.
13569         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
13570         2.06 instructions.
13571         (-mvsx): New switch for VSX instructions.
13572         (-misel): Move from a variable to a mask to allow it to be set by
13573         -mcpu=.
13575         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
13576         function declaration to an array declaration.
13577         (rs6000_hard_regno_nregs): New external array declaration.
13579         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
13580         files included by rs6000.md.
13582         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
13583         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
13585         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
13586         a target mask.
13587         (rs6000_debug_reg): New -mdebug= variables.
13588         (rs6000_debug_addr): Ditto.
13589         (rs6000_debug_cost): Ditto.
13590         (rs6000_pmode): New variable to hold Pmode.
13591         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
13592         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
13593         calculated at compiler start.
13594         (rs6000_hard_regno_nregs): Change function to an array which holds
13595         HARD_REGNO_NREGS calculated at compiler start.
13596         (rs6000_explicit_options): Delete isel field.
13597         (rs6000_vector_unit): New array to hold which vector unit
13598         supports arithmetic options for a given type.
13599         (rs6000_vector_mem): New array to hold which vector unit supports
13600         memory reference operations for a given type.
13601         (rs6000_vector_align): New array to given the alignment of each
13602         vector type.
13603         (power7_cost): New basic costs for power7.
13604         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
13605         (rs6000_hard_regno_nregs_internal): New function, moved from
13606         HARD_REGNO_NREGS, to calculate the number of registers each hard
13607         register takes for each type.
13608         (rs6000_debug_reg_print): New function for -mdebug=reg support.
13609         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
13610         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
13611         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
13612         unit information here so it is calculated once at compiler startup
13613         time.
13614         (rs6000_override_options): Make -misel a target mask.  Add more
13615         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
13616         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
13617         -mdebug=cost.
13618         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
13619         (rs6000_handle_option): Move -misel from variable to target mask.
13620         (rs6000_builtin_mask_for_load): Add VSX support.
13621         (rs6000_conditional_register_usage): Ditto.
13622         (USE_ALTIVEC_FOR_ARG_P): Ditto.
13623         (function_arg_boundary): Ditto.
13624         (rs6000_expand_builtin): Ditto.
13625         (def_builtin): Make abort message a little friendlier.
13626         (rs6000_emit_int_cmove): Add support for 64-bit isel.
13628         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
13629         assembler support the popcntd instruction instead of a vsx
13630         instruction to enable power7 support.
13631         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
13632         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
13633         option to the assembler if -mcpu=native.
13634         (ASM_CPU_NATIVE_SPEC): Ditto.
13635         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
13636         ISA 2.06 features.
13637         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
13638         the lwsync instruction.
13639         (enum processor_type): Add PROCESSOR_POWER7.
13640         (rs6000_debug_reg): New -mdebug= options.
13641         (rs6000_debug_addr): Ditto.
13642         (rs6000_debug_cost): Ditto.
13643         (rs6000_isel): Delete.
13644         (enum rs6000_vector): New enum to say what vector unit we have.
13645         (VECTOR_UNIT_*): New macros to say which vector unit has
13646         arithmetic operations for a given type.
13647         (VECTOR_MEM_*): New macros to say which vector unit has memory
13648         operations for a given type.
13649         (TARGET_LDBRX): Whether the machine supports the ldbrx
13650         instruction.
13651         (TARGET_ISEL): Delete, -misel moved to be a mask.
13652         (TARGET_ISEL64): New macro for 64-bit isel support.
13653         (UNITS_PER_VSX_WORD): New macro.
13654         (POINTER_SIZE): Move to be an external variable, rather than
13655         calculating whether we are generating 32 ot 64-bit code.
13656         (Pmode): Ditto.
13657         (STACK_BOUNDARY): Add VSX support.
13658         (LOCAL_ALIGNMENT): Ditto.
13659         (SLOW_UNALIGNED_ACCESS): Ditto.
13660         (VSX_REGNO_P): New macro for VSX support.
13661         (VFLOAT_REGNO_P): Ditto.
13662         (VINT_REGNO_P): Ditto.
13663         (VLOGICAL_REGNO_P): Ditto.
13664         (VSX_VECTOR_MODE): Ditto.
13665         (VSX_SCALAR_MODE): Ditto.
13666         (VSX_MODE): Ditto.
13667         (VSX_MOVE_MODE): Ditto.
13668         (VSX_REG_CLASS_P): Ditto.
13669         (HARD_REGNO_NREGS): Instead of calling a function, use an array
13670         lookup.
13671         (UNITS_PER_SIMD_WORD): Add VSX support.
13672         (MODES_TIEABLE_P): Ditto.
13673         (STARTING_FRAME_OFFSET): Ditto.
13674         (STACK_DYNAMIC_OFFSET): Ditto.
13675         (EPILOGUE_USES): Ditto.
13676         (REGNO_REG_CLASS): Move to array lookup.
13677         (CLASS_MAX_NREGS): Ditto.
13678         (rs6000_vector_reg_class): Add declaration.
13679         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
13680         overlap with the floating point and Altivec registers.
13682         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
13684         * config/rs6000/driver-rs6000.c (asm_names): New static array to
13685         give the appropriate asm switches if -mcpu=native.
13686         (host_detect_local_cpu): Add support for "asm".
13687         (host_detect_local_cpu): Follow GNU code guidelines for name.
13689         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
13690         -mbit-word to a variable instead of being a target mask.
13692         * config/rs6000/sync.md (lwsync): If the assembler supports it,
13693         emit the lwsync instruction instead of emitting the instruction as
13694         an integer constant.
13696         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
13697         fixuns_trundfsi2, move expander into rs6000.md.
13699         * config/rs6000/rs6000.md (cpu): Add power7.
13700         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
13701         (logical predicate patterns): Change the single instruction
13702         primitives that set CR0 to be fast_compare instead of compare.
13703         (norsi*): Ditto.
13704         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
13705         (popcntddi2): Ditto.
13706         (popcount<mode>): Ditto.
13707         (floating multiply/add insns): Name the floating point
13708         multiply/add insns.
13709         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
13710         (isel_unsigned_<mode>): Ditto.
13711         (fixuns_trundfsi2): Move expander here from spe.md.
13712         (smindi3): Define if we have -misel on 64-bit systems.
13713         (smaxdi3): Ditto.
13714         (umindi3): Ditto.
13715         (umaxdi3): Ditto.
13717 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
13719         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
13720         extra_objs.
13721         * config/avr/avr.c (avr_current_device): New variable.
13722         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
13723         (avr_arch, mcu_type_s): Move to avr.h.
13724         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
13725         default_data_section_start fields.
13726         (avr_arch): Moved from avr.c.
13727         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
13728         library_name fields.
13729         (avr_current_device, avr_mcu_types, avr_arch_types,
13730         avr_device_to_arch, avr_device_to_data_start,
13731         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
13732         (EXTRA_SPEC_FUNCTIONS): Define.
13733         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
13734         options mapping. Use device_to_arch and device_to_data_start insted.
13735         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
13736         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
13737         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
13738         * config/avr/driver-avr.c: New file.
13739         * config/avr/avr-devices.c: New file.
13741 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
13743         * var-tracking.c (unshare_variable): Force initialized to
13744         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
13745         (set_variable_part): Likewise.
13746         (struct variable_union_info): Remove pos_src field.
13747         (vui_vec, vui_allocated): New variables.
13748         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
13749         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
13750         == 1 use a simpler sorting algorithm.  Compute pos field right
13751         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
13752         Avoid quadratic comparison if !flag_var_tracking_uninit.
13753         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
13754         unshare_variable unconditionally.
13755         (dataflow_set_different_2): Removed.
13756         (dataflow_set_different): Don't traverse second hash table.
13757         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
13758         unconditionally to var_reg_set or var_mem_set.
13759         (emit_notes_in_bb): Likewise.
13760         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
13761         unshare_variable.
13762         (emit_note_insn_var_location): Don't set initialized to
13763         VAR_INIT_STATUS_INITIALIZED early.
13764         (vt_finalize): Free vui_vec if needed, clear vui_vec and
13765         vui_allocated.
13766         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
13768         * tree-object-size.c (addr_object_size): Instead of checking
13769         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
13770         are no FIELD_DECLs following it.
13772 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
13774         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
13775         order to match bswaps with signed source operands.
13777 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13779         * sdbout.c (sdbout_one_type): Fix braces in switch.
13781 2009-06-23  Richard Guenther  <rguenther@suse.de>
13783         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
13784         member.
13785         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
13786         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
13787         var_callused, callused_tree, var_storedanything, storedanything_tree,
13788         var_integer, integer_tree): Remove global variables.
13789         (new_var_info): Do not pass new id, append the new var to the
13790         global variable vector.
13791         (do_ds_constraint): Use is_global_var member of the variable-info.
13792         (new_scalar_tmp_constraint_exp): Adjust.
13793         (create_function_info_for): Likewise.
13794         (create_variable_info_for): Likewise.
13795         (find_what_var_points_to): Remove dead code.
13796         (init_base_vars): Simplify.
13797         (compute_points_to_sets): Adjust.
13799 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
13801         * combine.c (try_combine): Dump information about the insns we're
13802         combining.
13804 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
13806         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
13807         check when calling force_to_mode on TRUNCATE's operand.
13809 2009-06-22  Ian Lance Taylor  <iant@google.com>
13811         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
13813 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
13815         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
13817 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13819         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
13820         override library linkage flags such as -static-libgcc or
13821         -shared-libgcc.
13823 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
13825         * config/m68k/m68k-devices.def: Add line for MCF5221x.
13827 2009-06-22  Ian Lance Taylor  <iant@google.com>
13829         * config/linux.opt: Put mglibc ahead of muclibc.
13831         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
13832         for duplicate decls.
13834 2009-06-22  Matthias Klose  <doko@ubuntu.com>
13836         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
13838 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
13840         PR objc/28050
13841         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
13842         instead of NULL if a parser error occurs.
13844 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13846         * dwarf2out.c (dwarf2_debug_hooks): Initialize
13847         non-DWARF2_DEBUGGING_INFO version.
13849 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
13851         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
13852         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
13854         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
13855         (LIBGCC2_TF_CEXT): Define.
13856         (TF_SIZE): Define.
13858 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13860         PR target/40463
13861         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
13863 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13865         * config/arm/arm.c (arm_override_options): Disable
13866         -mcaller-super-interworking and -mcallee-super-interworking.
13867         * doc/invoke.texi (ARM Options): Document this.
13869 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
13871         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
13872         * config/arm/constraints.md (j): New constraint for movw operands.
13873         (N): Remove thumb2 meaning.
13874         * config/arm/arm.md (*arm_movw): Delete.
13875         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
13876         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
13877         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
13879 2009-06-22  Martin Jambor  <mjambor@suse.cz>
13881         PR tree-optimization/40492
13882         * tree-sra.c (sra_modify_assign): Pass zero offsets to
13883         build_ref_for_offset.
13885 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
13887         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
13888         JUMP_TABLE_DATA_P predicates where applicable.
13889         * auto-inc-dec.c: Ditto.
13890         * builtins.c: Ditto.
13891         * caller-save.c: Ditto.
13892         * calls.c: Ditto.
13893         * cfgcleanup.c: Ditto.
13894         * cfglayout.c: Ditto.
13895         * cfgrtl.c: Ditto.
13896         * combine.c: Ditto.
13897         * combine-stack-adj.c: Ditto.
13898         * cse.c: Ditto.
13899         * cselib.c: Ditto.
13900         * dbxout.c: Ditto.
13901         * df-scan.c: Ditto.
13902         * dse.c: Ditto.
13903         * dwarf2asm.c: Ditto.
13904         * dwarf2out.c: Ditto.
13905         * emit-rtl.c: Ditto.
13906         * except.c: Ditto.
13907         * explow.c: Ditto.
13908         * expmed.c: Ditto.
13909         * expr.c: Ditto.
13910         * final.c: Ditto.
13911         * function.c: Ditto.
13912         * fwprop.c: Ditto.
13913         * gcse.c: Ditto.
13914         * genpreds.c: Ditto.
13915         * genrecog.c: Ditto.
13916         * ifcvt.c: Ditto.
13917         * ira-costs.c: Ditto.
13918         * ira-lives.c: Ditto.
13919         * jump.c: Ditto.
13920         * loop-iv.c: Ditto.
13921         * lower-subreg.c: Ditto.
13922         * modulo-sched.c: Ditto.
13923         * optabs.c: Ditto.
13924         * postreload.c: Ditto.
13925         * print-rtl.c: Ditto.
13926         * recog.c: Ditto.
13927         * reginfo.c: Ditto.
13928         * regmove.c: Ditto.
13929         * reload1.c: Ditto.
13930         * reload.c: Ditto.
13931         * reorg.c: Ditto.
13932         * rtlanal.c: Ditto.
13933         * rtl.c: Ditto.
13934         * sched-vis.c: Ditto.
13935         * sdbout.c: Ditto.
13936         * sel-sched-ir.c: Ditto.
13937         * simplify-rtx.c: Ditto.
13938         * targhooks.c: Ditto.
13939         * var-tracking.c: Ditto.
13940         * vmsdbgout.c: Ditto.
13942 2009-06-22  Matthias Klose  <doko@ubuntu.com>
13944         * Makefile.in (install-plugin): Always use DESTDIR.
13946 2009-06-22  Olivier Hainque  <hainque@adacore.com>
13948         * config/pa/pa.c (output_call): Don't optimize post call jumps
13949         into return address adjustments if the call may throw.
13951 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
13953         * arm.c (thumb1_output_casesi): New function.
13954         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
13955         optimizing for size or PIC.
13956         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
13957         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
13958         (casesi): Handle Thumb-1 when optimizing for size or PIC.
13959         (thumb1_casesi_internal_pic): New expand rule.
13960         (thumb1_casesi_dispatch): New pattern.
13961         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
13962         thumb-1 mode.
13963         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
13964         in the text seciton when PIC or optimizing for size.
13965         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
13966         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
13967         preservation properties of code.
13968         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
13969         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
13970         (__gnu_thumb1_case_si): New function.
13971         * t-arm (LIB1ASMSRC): Define here.
13972         (LIB1ASMFUNCS): Add some common functions.
13973         * t-arm-elf (LIB1ASMSRC): Delete.
13974         (LIB1ASMFUNCS): Append to existing set.
13975         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
13976         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
13977         * t-symbian (LIB1ASMFUNCS): Likewise.
13978         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
13979         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
13981 2009-06-21  Richard Guenther  <rguenther@suse.de>
13983         PR tree-optimization/38729
13984         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
13985         to loops with a single exit if -fno-expensive-optimizations.
13987 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
13989         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
13990         (dataflow_set): Change vars type from htab_t to shared_hash.
13991         (shared_hash_pool, empty_shared_hash): New variables.
13992         (vars_clear): Removed.
13993         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
13994         shared_hash_find_slot_unshare, shared_hash_find_slot,
13995         shared_hash_find_slot_noinsert, shared_hash_find): New
13996         static inlines.
13997         (shared_hash_unshare, shared_hash_destroy): New functions.
13998         (unshare_variable): Unshare set->vars if shared, use
13999         shared_hash_htab.
14000         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
14001         (get_init_value, find_src_set_src, dump_dataflow_set,
14002         clobber_variable_part, emit_notes_for_differences): Use
14003         shared_hash_htab.
14004         (dataflow_set_init): Remove second argument, set vars to
14005         empty_shared_hash instead of creating a new htab.
14006         (dataflow_set_clear): Call shared_hash_destroy and set vars
14007         to empty_shared_hash instead of calling vars_clear.
14008         (dataflow_set_copy): Don't call vars_copy, instead just share
14009         the src htab with dst.
14010         (variable_union): Use shared_hash_*, use initially NO_INSERT
14011         lookup if set->vars is shared.  Don't keep slot cleared before
14012         calling unshare_variable.  Unshare set->vars if needed.
14013         Even ->refcount == 1 vars must be unshared if set->vars is shared
14014         and var needs to be modified.
14015         (variable_canonicalize): New function.
14016         (dataflow_set_union): If dst->vars is empty, just share src->vars
14017         with dst->vars and traverse with variable_canonicalize to canonicalize
14018         and unshare what is needed.
14019         (dataflow_set_different): If old_set and new_set use the same shared
14020         htab, they aren't different.  If number of htab elements is different,
14021         htabs are different.  Use shared_hash_*.
14022         (dataflow_set_destroy): Call shared_hash_destroy instead of
14023         htab_delete.
14024         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
14025         second argument to dataflow_set_init.
14026         (vt_initialize): Likewise.  Initialize shared_hash_pool and
14027         empty_shared_hash, move bb in/out initialization afterwards.
14028         Use variable_htab_free instead of NULL as changed_variables del hook.
14029         (variable_was_changed): Change type of second argument to pointer to
14030         dataflow_set.  When inserting var into changed_variables, bump
14031         refcount.  Unshare set->vars if set is shared htab and slot needs to
14032         be cleared.
14033         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
14034         lookup if set->vars is shared.  Unshare set->vars if needed.
14035         Even ->refcount == 1 vars must be unshared if set->vars is shared
14036         and var needs to be modified.  Adjust variable_was_changed caller.
14037         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
14038         vars must be unshared if set->vars is shared and var needs to be
14039         modified.  Adjust variable_was_changed caller.
14040         (emit_note_insn_var_location): Don't pool_free var.
14041         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
14042         instead of 1.
14043         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
14044         free_alloc_pool on shared_hash_pool.
14046 2009-06-20  Anthony Green  <green@moxielogic.com>
14048         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
14049         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
14051 2009-06-20  Richard Guenther  <rguenther@suse.de>
14053         * tree-ssa-structalias.c (find_func_aliases): For memset use
14054         a constraint from NULL if we memset to zero.
14055         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
14056         we explicitly handle that do not read from memory.
14057         (call_may_clobber_ref_p_1): Properly handle builtins that may
14058         set errno.
14060 2009-06-20  Richard Guenther  <rguenther@suse.de>
14062         PR tree-optimization/40495
14063         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
14064         (new_scalar_tmp_constraint_exp): New function.
14065         (process_constraint): Do not create temporary decls.
14066         (process_all_all_constraints): Likewise.
14067         (handle_const_call): Likewise.
14068         (create_function_info_for): Do not set decl.
14070 2009-06-19  Ian Lance Taylor  <iant@google.com>
14072         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
14073         (rs6000_attribute_table): Make static; move before use.
14075 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
14077         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
14078         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
14079         Propagate the TREE_READONLY flag without overwriting it.
14080         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
14081         Propagate the TREE_READONLY flag onto the result.
14082         (process_call_operands): Move around.  Use correct constant value.
14084 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14086         PR target/40482
14087         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
14088         * config/arm/arm.md: Likewise.
14090 2009-06-19  Ian Lance Taylor  <iant@google.com>
14092         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
14093         to GIMPLE_ERROR_MARK.
14095         * c-typeck.c (build_conditional_expr): Add op1_original_type and
14096         op2_original_type parameters.  Warn about using different enum types.
14097         * c-parser.c (c_parser_conditional_expression): Pass original
14098         types to build_conditional_expr.
14099         * c-tree.h (build_conditional_expr): Update declaration.
14101 2009-06-19  Ian Lance Taylor  <iant@google.com>
14103         * config/i386/i386.c (ix86_function_specific_save): Test that
14104         fields match values, rather than testing the values are in a
14105         certain range.
14107 2009-06-19  Richard Guenther  <rguenther@suse.de>
14109         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
14110         ADDR_EXPR pointers.
14111         (ptr_derefs_may_alias_p): Likewise.
14112         (ptr_deref_may_alias_ref_p_1): New function.
14113         (ptr_deref_may_alias_ref_p): Likewise.
14114         (ref_maybe_used_by_call_p_1): Handle builtins that are not
14115         covered by looking at the ESCAPED solution.
14116         (call_may_clobber_ref_p_1): Likewise.
14117         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
14118         Handle NULL_TREE offset.  Do not produce redundant constraints.
14119         (process_all_all_constraints): New helper function.
14120         (do_structure_copy): Use it.
14121         (handle_lhs_call): Likewise.
14122         (find_func_aliases): Handle some builtins with pointer arguments
14123         and/or return values explicitly.
14125 2009-06-19  Ian Lance Taylor  <iant@google.com>
14127         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
14129 2009-06-19  Ian Lance Taylor  <iant@google.com>
14131         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
14133 2009-06-19  Ian Lance Taylor  <iant@google.com>
14135         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
14136         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
14137         version.
14139         * c-decl.c (finish_decl): If -Wc++-compat, warn about
14140         uninitialized const.
14142 2009-06-19  Ian Lance Taylor  <iant@google.com>
14144         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
14145         all uses.
14147         * c-decl.c (in_struct, struct_types): Remove.
14148         (struct c_binding): Add in_struct field.
14149         (c_binding_ptr): Define type, along with VEC.
14150         (struct c_struct_parse_info): Define.
14151         (struct_parse_info): New static variable.
14152         (bind): Initialize in_struct field.
14153         (start_struct): Remove enclosing_in_struct and
14154         enclosing_struct_types parameters.  Add
14155         enclosing_struct_parse_info parameter.  Change all callers.  Set
14156         struct_parse_info rather than in_struct and struct_types.
14157         (grokfield): If -Wc++-compat and there is a symbol binding for the
14158         field name, set the in_struct flag and push it on the
14159         struct_parse_info->fields vector.
14160         (warn_cxx_compat_finish_struct): New static function.
14161         (finish_struct): Remove enclosing_in_struct and
14162         enclosing_struct_types parameters.  Add
14163         enclosing_struct_parse_info parameter.  Change all callers.  Don't
14164         set C_TYPE_DEFINED_IN_STRUCT here.  Call
14165         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
14166         parameter.  Only push on struct_types if warn_cxx_compat.
14167         (finish_enum): Only push on struct_types if warn_cxx_compat.
14168         (declspecs_add_type): Add loc parameter.  Change all callers.
14169         Change all error calls to error_at.  Pass loc, not input_location,
14170         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
14171         defined in a struct.  If -Wc++-compat and parsing a struct, record
14172         that a typedef name was used.
14173         * c-parser.c (c_parser_declspecs): Get location to pass to
14174         declspecs_add_type.
14175         (c_parser_struct_or_union_specifier): Update calls to start_struct
14176         and finish_struct.
14177         * c-tree.h (struct c_struct_parse_info): Declare.
14178         (finish_struct, start_struct): Update declarations.
14179         (declspecs_add_type): Update declaration.
14181 2009-06-19  Ian Lance Taylor  <iant@google.com>
14183         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
14184         variable with an anonymous type.
14186 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
14188         * see.c: Remove for real.
14190 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
14192         * optabs.h (enum optab_index): Add new OTI_significand.
14193         (significand_optab): Define corresponding macro.
14194         * optabs.c (init_optabs): Initialize significand_optab.
14195         * genopinit.c (optabs): Implement significand_optab using
14196         significand?f2 patterns.
14197         * builtins.c (expand_builtin_mathfn): Handle
14198         BUILT_IN_SIGNIFICAND{,F,L}.
14199         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
14200         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
14202         * config/i386/i386.md (significandxf2, significand<mode>2): New
14203         expanders to implement significandf, significand and significandl
14204         built-ins as inline x87 intrinsics.
14206 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
14208         * config/avr/avr.c (avr_override_options): Remove setting value of
14209         PARAM_INLINE_CALL_COST.
14211 2009-06-18  Richard Henderson  <rth@redhat.com>
14213         PR 40488
14214         * tree-pass.h (TDF_ASMNAME): New.
14215         * tree-dump.c (dump_options): Add asmname.
14216         * doc/invoke.texi: Document it.
14218         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
14219         (dump_decl_name): ...here.
14220         (dump_function_name): New flags arg; mind TDF_ASMNAME.
14221         (dump_generic_node): Update dump_function_name calls.
14222         (print_call_name): New flags arg; update all dump calls.
14223         * diagnostic.h (print_call_name): Update.
14224         * gimple-pretty-print.c (dump_gimple_call): Update.
14226 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
14228         PR target/40470
14229         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
14231 2009-06-18  Diego Novillo  <dnovillo@google.com>
14233         * doc/plugins.texi: Document plugin_is_GPL_compatible.
14234         * plugin.c (str_license): Declare.
14235         (try_init_one_plugin): Assert that the symbol
14236         'plugin_is_GPL_compatible' exists.
14238 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
14240         * see.c: Remove.
14241         * Makefile.in (OBJS-common): Remove see.o.
14242         (see.o): Remove.
14243         * common.opt (fsee): Mark as preserved for backward compatibility.
14244         * opts.c (common_handle_option): Add OPT_fsee to the backward
14245         compatibility section.
14246         * passes.c (init_optimization_passes, pass_see): Remove pass.
14247         * timevar.def (TV_SEE): Remove.
14248         * tree-pass.h (pass_see): Remove declaration.
14249         * doc/invoke.texi (-fsee): Remove documentation.
14251 2009-06-18  Martin Jambor  <mjambor@suse.cz>
14253         * tree-sra.c: Include statistics.h
14254         (sra_stats): New variable.
14255         (sra_initialize): Clear sra_stats.
14256         (create_access_replacement): Increment sra_stats.replacements.
14257         (get_access_replacement): Do not return twice.
14258         (analyze_all_variable_accesses): Increment statistics counter by the
14259         number of scalarized aggregates.
14260         (generate_subtree_copies): Increment sra_stats.subtree_copies.
14261         (sra_modify_expr): Increment sra_stats.exprs.
14262         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
14263         (sra_modify_assign): Increment sra_stats.exprs,
14264         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
14265         (perform_intra_sra): Update statistics counters.
14266         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
14268 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
14270         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
14271         (arm_scalar_mode_supported_p): New function.
14273 2009-06-18  Paul Brook  <paul@codesourcery.com>
14274             Sandra Loosemore  <sandra@codesourcery.com>
14276         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
14277         (__extendhfsf2, __truncsfhf2): Define.
14278         * config/arm/fp16.c: New file.
14279         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
14280         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
14282 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
14284         * doc/extend.texi (Half-Precision): New section.
14285         * doc/invoke.texi (Option Summary): List -mfp16-format.
14286         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
14287         * config/arm/arm.opt (mfp16-format=): New.
14288         * config/arm/arm.c: Include intl.h.
14289         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
14290         (TARGET_INVALID_RETURN_TYPE): Redefine.
14291         (TARGET_PROMOTED_TYPE): Redefine.
14292         (TARGET_CONVERT_TO_TYPE): Redefine.
14293         (arm_fp16_format): Define.
14294         (all_fpus): Add entry for neon-fp16.
14295         (fp_model_for_fpu): Likewise.
14296         (struct fp16_format): Declare.
14297         (all_fp16_formats): Define.
14298         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
14299         functions.
14300         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
14301         and no ldrh.
14302         (arm_legitimate_index_p): Treat HFmode like HImode.
14303         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
14304         (coproc_secondary_reload_class): Special-case HFmode.
14305         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
14306         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
14307         (arm_init_fp16_builtins): New.
14308         (arm_init_builtins): Call it.
14309         (arm_invalid_parameter_type): New.
14310         (arm_invalid_return_type): New.
14311         (arm_promoted_type): New.
14312         (arm_convert_to_type).
14313         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
14314         format.
14315         (arm_emit_fp16_const): New function.
14316         (arm_mangle_type): Mangle __fp16 as "Dh".
14317         * config/arm/arm.h (TARGET_VFPD32): Make it know about
14318         FPUTYPE_NEON_FP16.
14319         (TARGET_NEON_FP16): New.
14320         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
14321         (enum fputype): Add FPUTYPE_NEON_FP16.
14322         (enum arm_fp16_format_type): Declare.
14323         (arm_fp16_format): Declare.
14324         (LARGEST_EXPONENT_IS_NORMAL): Define.
14325         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
14326         * config/arm/arm-modes.def (HFmode): Define.
14327         * config/arm/vfp.md (*movhf_vfp): New.
14328         (extendhfsf2): New.
14329         (truncsfhf2): New.
14330         * config/arm/arm.md (fpu): Add neon_fp16.
14331         (floatsihf2, floatdihf2): New.
14332         (fix_trunchfsi2, fix_trunchfdi2): New.
14333         (truncdfhf2): New.
14334         (extendhfdf2): New.
14335         (movhf): New.
14336         (*arm32_movhf): New.
14337         (*thumb1_movhf): New.
14338         (consttable_2): Add check for HFmode constants.
14339         (consttable_4): Handle HFmode constants.
14341 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
14343         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
14345 2009-06-17  Olivier Hainque  <hainque@adacore.com>
14347         * collect2.c (main): Use CONST_CAST2 to perform char ** to
14348         const char ** conversion in AIX specific section.
14350 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
14352         * config/i386/i386.c (ix86_special_builtin_type): Remove
14353         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
14354         (bdesc_special_args): Updated.
14355         (ix86_init_mmx_sse_builtins): Likewise.
14356         (ix86_expand_special_args_builtin): Likewise.
14358 2009-06-17  Richard Henderson  <rth@redhat.com>
14360         * tree-pretty-print.c (maybe_dump_asm_name): New.
14361         (dump_decl_name): Use it.
14362         (PRINT_FUNCTION_NAME): Merge into...
14363         (dump_function_name): ... here.  Use maybe_dump_asm_name.
14365 2009-06-17  Cary Coutant  <ccoutant@google.com>
14367         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
14368         Change caller.
14369         * debug.c (struct gcc_debug_hooks): Change placeholder for
14370         source_line hook.
14371         (debug_nothing_int_charstar_int): Replaced by...
14372         (debug_nothing_int_charstar_int_bool): ...this.
14373         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
14374         source_line prototype.
14375         (debug_nothing_int_charstar_int): Replaced by...
14376         (debug_nothing_int_charstar_int_bool): ...this.
14377         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
14378         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
14379         Output is_stmt operand when necessary.
14380         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
14381         (notice_source_line): Add is_stmt parameter.
14382         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
14383         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
14384         Change callers.
14385         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
14386         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
14388 2009-06-17  Ian Lance Taylor  <iant@google.com>
14390         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
14391         Change all uses.
14392         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
14393         call uses.
14395 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
14397         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
14398         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
14399         tree_strip_sign_nop_conversions and
14400         tree_ssa_strip_useless_type_conversions rather than stripping
14401         the operations here.
14402         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
14403         Declare them.
14404         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
14405         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
14406         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
14407         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
14408         functions.
14410 2009-06-17  Michael Eager  <eager@eagercon.com>
14412         * config/rs6000/constraints.md (register_constraint "d"): New.
14413         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
14414         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
14415         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
14416         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
14417         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
14418         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
14419         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
14420         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
14421         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
14422         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
14423         __fctiwz): Same.
14424         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
14425         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
14426         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
14427         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
14428         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
14429         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
14430         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
14431         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
14432         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
14433         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
14434         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
14435         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
14436         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
14437         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
14439 2009-06-16  Ian Lance Taylor  <iant@google.com>
14441         * profile.c (total_num_never_executed): Don't define.
14442         (compute_branch_probabilities): Don't count or print
14443         num_never_executed.
14444         (init_branch_prob): Don't set total_num_never_executed.
14445         (end_branch_prob): Don't print total_num_never_executed.
14447 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
14449         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
14451 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
14453         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
14454         (nabstd2_fpr): Same.
14456 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
14458         * expr.c (expand_assignment): Change complex type check.
14460 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
14462         * doc/plugins.texi (Building GCC plugins): Added new section.
14464 2009-06-17  Ian Lance Taylor  <iant@google.com>
14466         * c-pch.c (get_ident): Don't set size of templ array.
14467         (pch_init): Don't set size of partial_pch array.
14469         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
14470         string constant to intialize an array whose size is the length of
14471         the string.
14473 2009-06-17  Richard Guenther  <rguenther@suse.de>
14475         PR tree-optimization/40389
14476         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
14477         to addressable types.
14478         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
14480 2009-06-17  Richard Guenther  <rguenther@suse.de>
14482         PR middle-end/40460
14483         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
14484         if there is no evolution of left in the loop bail out.
14485         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
14486         chrec_fold_multiply.
14488 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
14489             Janis Johnson  <janis187@us.ibm.com>
14491         PR target/39254
14492         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
14493         for the symbol ref of a constant that is the source of a move
14494         - nor for any other not-obvious-label-ref constants.
14496 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
14498         * plugin.c (position_pass): Skip newly inserted pass during list
14499         traversal to avoid repeated insertion.
14501 2009-06-16  Ian Lance Taylor  <iant@google.com>
14503         * vec.h (VEC_stack_alloc): Define different version if
14504         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
14505         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
14506         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
14507         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
14509 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
14511         * config.gcc (extra_headers): Add ia32intrin.h for x86.
14513         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
14514         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
14515         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
14516         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
14517         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
14518         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
14519         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
14520         (bdesc_special_args): Add __builtin_ia32_rdtsc and
14521         __builtin_ia32_rdtscp.
14522         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
14523         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
14524         and __builtin_ia32_rorhi.
14525         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
14526         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
14527         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
14528         (ix86_expand_args_builtin): Likewise.
14529         (ix86_expand_special_args_builtin): Likewise.
14531         * config/i386/i386.md (UNSPECV_RDTSCP): New.
14532         (UNSPECV_RDTSC): Likewise.
14533         (UNSPECV_RDPMC): Likewise.
14534         (*bsr): Renamed to ...
14535         (bsr): This
14536         (*bsr_rex64): Renamed to ...
14537         (bsr_rex64): This.
14538         (rdpmc): New.
14539         (*rdpmc): Likewise.
14540         (*rdpmc_rex64): Likewise.
14541         (rdtsc): Likewise.
14542         (*rdtsc): Likewise.
14543         (*rdtsc_rex64): Likewise.
14544         (rdtscp): Likewise.
14545         (*rdtscp): Likewise.
14546         (*rdtscp_rex64): Likewise.
14548         * config/i386/ia32intrin.h: New.
14550         * config/i386/x86intrin.h: Include <ia32intrin.h>.
14552 2009-06-16  Ian Lance Taylor  <iant@google.com>
14554         * ira-build.c (copy_info_to_removed_store_destinations):
14555         Initialize parent_a.
14557 2009-06-16  Ian Lance Taylor  <iant@google.com>
14559         * c-decl.c (grokdeclarator): Change size_varies to bool.
14561 2009-06-16  Ian Lance Taylor  <iant@google.com>
14563         * sel-sched.c: Make forward declarations of move_op_hooks and
14564         fur_hooks explicitly extern.
14566 2009-06-16  Ian Lance Taylor  <iant@google.com>
14568         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
14569         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
14571 2009-06-16  Ian Lance Taylor  <iant@google.com>
14573         * resource.c (mark_referenced_resources): Change
14574         include_delayed_effects parameter to bool.  Change all callers.
14575         (mark_end_of_function_resources): Likewise.
14576         * reorg.c (insn_references_resource_p): Likewise.
14577         (insn_sets_resource_p): Likewise.
14578         * resource.h (mark_referenced_resources): Update declaration.
14579         (mark_end_of_function_resources): Update declaration.
14581 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
14583         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
14585 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
14587         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
14588         GCC can bootstrap on AIX with GNU Binutils 2.20.
14590 2009-06-16  Ian Lance Taylor  <iant@google.com>
14592         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
14594 2009-06-16  Ian Lance Taylor  <iant@google.com>
14596         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
14597         inline, not extern inline.
14598         (exact_log2): Likewise.
14599         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
14600         test CLZ_HWI.
14601         (exact_log2): Likewise, but don't test CTZ_HWI.
14603 2009-06-16  Ian Lance Taylor  <iant@google.com>
14605         * bitmap.c (bitmap_clear): Don't declare as inline.
14606         * gimple.c (gimplify_assign): Likewise.
14607         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
14608         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
14609         (sched_scan_info): Remove duplicate definition.
14611 2009-06-16  Ian Lance Taylor  <iant@google.com>
14613         * c-common.c (skip_evaluation): Don't define.
14614         (c_inhibit_evaluation_warnings): Define global variable.
14615         (overflow_warning): Check c_inhibit_evaluation_warnings rather
14616         than skip_evaluation.
14617         (convert_and_check, warn_for_div_by_zero): Likewise.
14618         * c-common.h (skip_evaluation): Don't declare.
14619         (c_inhibit_evaluation_warnings): Declare.
14620         * c-parser.c (c_parser_typeof_specifier): Set
14621         c_inhibit_evaluation_warnings rather than skip_evaluation.
14622         (c_parser_conditional_expression): Likewise.
14623         (c_parser_binary_expression): Likewise.
14624         (c_parser_sizeof_expression): Likewise.
14625         (c_parser_alignof_expression): Likewise.
14626         * c-typeck.c (build_indirect_ref): Check
14627         c_inhibit_evaluation_warnings rather than skip_evaluation.
14628         (build_conditional_expr, build_binary_op): Likewise.
14630 2009-06-16  Richard Guenther  <rguenther@suse.de>
14632         * tree-ssa-alias.c (is_escape_site): Remove.
14633         * tree-ssa-alias.h (enum escape_type): Remove.
14634         (is_escape_site): Likewise.
14635         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
14636         via casts and asms without deferring to is_escape_site.
14638 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
14640         PR middle-end/40446
14641         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
14642         use gen_lowpart if op0 has complex mode.
14644 2009-06-16  Richard Guenther  <rguenther@suse.de>
14646         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
14647         variables add them to ESCAPED.
14648         (find_func_aliases): Do not make all indirectly stored values escaped.
14650 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
14652         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
14653         make_decl_one_only.
14655 2009-06-16  Martin Jambor  <mjambor@suse.cz>
14657         PR tree-optimization/40432
14658         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
14659         check whether we need to force gimple register operand.
14661 2009-06-16  Martin Jambor  <mjambor@suse.cz>
14663         PR tree-optimization/40413
14664         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
14665         build_ref_for_offset.
14666         (propagate_subacesses_accross_link): Fix a typo in a comment.
14668 2009-06-16  Ira Rosen  <irar@il.ibm.com>
14670         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
14671         with additional parameter.
14672         * tree-vectorizer.h (enum vect_def_type): Add new value
14673         vect_nested_cycle.
14674         (enum vect_relevant): Add comments.
14675         (vect_is_simple_reduction): Add new argument.
14676         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
14677         Detect nested cycles.
14678         (vect_is_simple_reduction): Update documentation, add an argument to
14679         distinguish inner-loop reduction from nested cycle, detect nested
14680         cycles, fix printings and indentation, don't swap operands in case
14681         of nested cycle.
14682         (get_initial_def_for_reduction): Handle subtraction.
14683         (vect_create_epilog_for_reduction): Add new argument to specify
14684         reduction variable.
14685         (vect_finalize_reduction): Handle subtraction, fix comments.
14686         (vectorizable_reduction): Handle nested cycles. In case of nested
14687         cycle keep track of the reduction variable position. Call
14688         vect_is_simple_reduction with additional parameter. Use original
14689         statement code in reduction epilogue for nested cycle. Call
14690         vect_create_epilog_for_reduction with additional parameter.
14691         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
14692         inner-loop vectorization.
14693         (vect_recog_widen_sum_pattern): Likewise.
14694         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
14695         and reductions.
14696         (vect_mark_stmts_to_be_vectorized): Likewise.
14697         (vect_get_vec_def_for_operand): Handle nested cycles.
14699 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14701         * doc/invoke.texi (Debugging Options): Fix option index entries
14702         for -fdump-statistics, -frandom-seed add entries for
14703         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
14704         (FRV Options): Fix entries for -mTLS, -mtls.
14705         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
14706         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
14707         (M68hc1x Options): Fix @itemx for -mnominmax.
14708         (MCore Options): Fix entry for -mno-lsim.
14709         (MMIX Options): Fix entry for -mabi=mmixware.
14710         (PDP-11 Options): Fix entry for -mbcopy-builtin.
14712 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
14714         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
14715         Mention the plugin mode of gengtype.
14716         * doc/gty.texi (Source Files Containing Type Information): Likewise.
14717         * gengtype.c: Updated copyright.
14718         (plugin_files, nb_plugin_files) Added new static variables.
14719         (measure_input_list) Care about plugin_files.
14720         (write_rtx_next): Added early return in plugin mode.
14721         (create_file): Updated copyright year in generated file. Added
14722         asserts.
14723         (oprintf): Added early return if NULL outf.
14724         (get_output_file_with_visibility): Care of plugin_files.
14725         (get_output_file_name): May return null.
14726         (write_local): Added early return.
14727         (put_mangled_filename): Ditto.
14728         (finish_root_table): Added check for base_files.
14729         (write_roots): Care about null when plugins.
14730         (main): Added plugin mode.
14732 2009-06-15  Ian Lance Taylor  <iant@google.com>
14734         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
14735         * gcov.c (read_count_file): Add braces around variables declared
14736         before label.
14738         * c.opt (Wjump-misses-init): New warning.
14739         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
14740         -Wall and -Wc++-compat if not already set.
14741         (c_common_post_options): Clear warn_jump_misses_init if it was not
14742         set.
14743         * c-decl.c (struct c_binding): Change type field to a union with
14744         new label field.  Make it the first field in the struct.  Update
14745         references to type to use u.type instead.
14746         (struct c_spot_bindings): Define.
14747         (struct c_goto_bindings): Define.
14748         (c_goto_bindings_p): Define, along with VECs.
14749         (struct c_label_vars): Define.
14750         (struct c_scope): Add has_label_bindings field.
14751         (bind_label, set_spot_bindings): New static functions.
14752         (decl_jump_unsafe, update_spot_bindings): New static functions.
14753         (update_label_decls): New static function.
14754         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
14755         Update binding u.label field to shadowed field.
14756         (c_binding_start_stmt_expr): New function.
14757         (c_binding_end_stmt_expr): New function.
14758         (pushdecl): Don't call c_begin_vm_scope.
14759         (make_label): Add defining and p_label_vars parameters.  Change
14760         all callers.
14761         (lookup_label): Correct test for whether a label has not yet been
14762         defined.  Call bind_label rather than bind.
14763         (warn_about_goto): New static function.
14764         (lookup_label_for_goto): New function.
14765         (declare_label): Call bind_label rather than bind.
14766         (check_earlier_gotos): New static function.
14767         (define_label): Don't give errors about jumping into statement
14768         expressions or scopes of variably modified types.  Call
14769         set_spot_bindings and check_earlier_gotos.  Call bind_label
14770         instead of bind.  Don't set label_context_stack_se or
14771         label_context_stack_vm.
14772         (c_get_switch_bindings): New function.
14773         (c_release_switch_bindings): New function.
14774         (c_check_switch_jump_warnings): New function.
14775         (start_function): Don't set label_context_stack_se or
14776         label_context_stack_vm.
14777         (finish_function): Likewise.
14778         * c-typeck.c (label_context_stack_se): Don't define.
14779         (label_context_stack_vm): Don't define.
14780         (c_finish_goto_label): Call lookup_label_for_goto rather than
14781         lookup_label.  Don't give errors about jumping into a statement
14782         expression or the scope of a variably modified type.  Don't set
14783         label_context_stack_se or label_context_stack_vm.
14784         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
14785         fields.  Add bindings field.
14786         (c_start_case): Don't set deleted fields.  Set bindings field.
14787         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
14788         or blocked_vm.  Call c_check_switch_jump_warnings.
14789         (c_finish_case): Don't test blocked_stmt_expr field.  Call
14790         c_release_switch_bindings.
14791         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
14792         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
14793         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
14794         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
14795         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
14796         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
14797         (c_begin_vm_scope, c_end_vm_scope): Don't define.
14798         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
14799         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
14800         (C_DECL_UNJUMPABLE_VM): Don't define.
14801         (C_DECL_UNDEFINABLE_VM): Don't define.
14802         (struct c_label_list): Don't define.
14803         (struct c_label_context_se): Don't define.
14804         (struct c_label_context_vm): Don't define.
14805         (struct c_spot_bindings): Declare.
14806         (c_bindings_start_stmt_expr): Declare.
14807         (c_bindings_end_stmt_expr): Declare.
14808         (lookup_label_for_goto): Declare.
14809         (c_get_switch_bindings, c_release_switch_bindings): Declare.
14810         (c_check_switch_jump_warnings): Declare.
14811         (label_context_stack_se, label_context_stack_vm): Don't declare.
14812         (c_finish_goto_label): Update declaration.
14813         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
14814         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
14815         (Warning Options): Document -Wjump-misses-init.
14817 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
14819         * tree-object-size.c (addr_object_size): Fix a pasto in the last
14820         change.
14822 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
14824         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
14826 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
14828         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
14830 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
14832         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
14834 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
14836         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
14837         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
14838         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
14839         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
14840         * dwarf2asm.c (dw2_force_const_mem): Update call to
14841         make_decl_one_only.
14842         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
14843         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
14844         * langhooks.c (lhd_comdat_group): Remove.
14845         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
14846         * tree.h (DECL_COMDAT_GROUP): New.
14847         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
14848         (tree_decl_with_vis): Add comdat_group. Remove one_only.
14849         (make_decl_one_only): Change signature.
14850         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
14851         make_decl_one_only.
14852         (make_decl_one_only): Change signature.
14853         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
14855 2009-06-15  Richard Guenther  <rguenther@suse.de>
14857         PR middle-end/40439
14858         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
14860 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14862         * tree-ssa-math-opts.c: Remove extra divide.
14864 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14866         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
14868 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14870         * passes.c: Add bswap pass.
14871         * tree-pass.h: Add pass_optimize_bswap declaration.
14872         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
14873         Include rtl.h, expr.h and optabs.h for optab_handler check.
14874         (struct symbolic_number, pass_optimize_bswap): New definition.
14875         (do_shift_rotate, verify_symbolic_number_p): New functions.
14876         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
14877         (gate_optimize_bswap): New function.
14878         * tree.c (widest_int_cst_value): New function.
14879         * tree.h (widest_int_cst_value): Prototype added.
14881 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
14883         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
14884         REG_EQUAL/REG_EQUIV notes.
14886 2009-06-14  Richard Guenther  <rguenther@suse.de>
14888         PR middle-end/40389
14889         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
14890         has its address taken if NRV was applied and it is addressable.
14891         * tree-ssa-structalias.c (get_constraint_for_address_of): New
14892         function split out from ...
14893         (get_constraint_for_1): ... here.
14894         (handle_rhs_call): Use it to mark the return slot escaped if
14895         it is addressable and NRV was applied.
14897 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
14899         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
14900         Change first argument type to location_t.
14901         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
14902         Do not set input_location.
14903         Use loc instead of input_location throughout.
14905 2009-06-13  Richard Guenther  <rguenther@suse.de>
14907         PR tree-optimization/40421
14908         * tree-predcom.c (should_unroll_loop_p): Remove.
14909         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
14911 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
14913         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14914         Add location argument.
14916 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
14918         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
14919         build_decl.
14920         * config/s390/s390.c (s390_build_builtin_va_list): Same.
14921         (s390_gimplify_va_arg): Pass location to create_artificial_label.
14922         * config/spu/spu-protos.h: Add location to
14923         spu_resolve_overloaded_builtin.
14924         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
14925         spu_build_builtin_va_list.
14926         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
14927         argument.  Pass location to build_function_call_vec.
14928         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
14929         build_decl.
14930         (emit_fpu_switch): Same.
14931         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
14932         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
14933         to build_decl and create_artificial_label.
14934         (xtensa_gimplify_va_arg_expr): Same.
14935         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
14936         (xstormy16_gimplify_va_arg_expr): Same.
14937         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
14938         * config/arm/arm.c (arm_build_builtin_va_list): Same.
14939         * config/mips/mips.c (mips_build_builtin_va_list): Same.
14940         (mips16_build_function_stub): Same.
14941         (mips16_build_call_stub): Same.
14943 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
14945         PR target/40327
14946         * arm/constraints.md (Pa, Pb): New constraints.
14947         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a
14948         split pattern to deal with them.
14950 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
14952         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
14953         fix index entry for -Xpreprocessor.
14955 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
14957         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14958         Add location argument to build_decl call.
14959         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
14960         (rs6000_init_builtins): Same.
14961         (spe_init_builtins): Same.
14962         (rs6000_gimplify_va_arg): Add location argument to
14963         create_artificial_label call.
14965 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
14967         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
14968         * combine-stack-adj.c (pass_stack_adjustments): Use it.
14969         * Makefile.in: Fix GGC dependency for gcse.o.
14971 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
14973         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
14974         * gimple-pretty-print.c (dump_gimple_stmt): Same.
14975         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
14976         created.
14977         * c-parser.c (c_parser_binary_expression): Use current column while
14978         building binary operations.
14979         * common.opt (fshow-column): Enable by default.
14980         * tree-vrp.c (check_array_ref): Use warning_at.
14981         (check_array_bounds): Use location from call back if expr has no
14982         location.
14983         * tree.h: Add location argument to maybe_fold_*.
14984         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
14985         (maybe_fold_offset_to_array_ref): Add location argument and use it.
14986         (maybe_fold_offset_to_component_ref): Same.
14987         (maybe_fold_offset_to_reference): Same.
14988         (maybe_fold_offset_to_address): Same.
14989         (maybe_fold_stmt_indirect): Same.
14990         (maybe_fold_stmt_addition): Same.
14991         (fold_stmt_r): Pass location to maybe_fold_*.
14992         (fold_gimple_assign): Same.
14993         * c-tree.h: Add location argument to finish_decl,
14994         default_function_array_conversion, store_init_value.
14995         * c-decl.c (define_label): Use error_at.
14996         (c_make_fname_decl): Pass location to finish_decl.
14997         (finish_decl): New location argument.
14998         (build_compound_literal): Pass location to store_init_value.
14999         (grokdeclarator): Pass location to finish_decl.
15000         (grokfield): Same.
15001         * c-typeck.c (array_to_pointer_conversion): New location argument.
15002         (function_to_pointer_conversion): Same.
15003         (default_function_array_conversion): Same.
15004         (parser_build_unary_op): Pass location to overflow_warning.
15005         (parser_build_binary_op): Same.  Use warning_at.
15006         (build_unary_op): Pass location to array_to_pointer_conversion.
15007         (build_c_cast): Pass location to digest_init.
15008         (build_modify_expr): New location argument.
15009         (convert_for_assignment): Same.
15010         (store_init_value): Same.
15011         (digest_init): Same.
15012         (output_init_element): Pass location to digest_init and
15013         array_to_pointer_conversion.
15014         (c_finish_return): Pass location to convert_for_assignment.
15015         * gimplify.c (gimplify_conversion): Pass location to
15016         maybe_fold_offset_to_address.
15017         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
15018         to maybe_fold_stmt_addition.
15019         * c-omp.c (c_finish_omp_atomic): Pass new location to
15020         build_modify_expr.
15021         (c_finish_omp_for): Same.
15022         * c-common.c (overflow_warning): New argument.
15023         * c-common.h: New argument to build_modify_expr, overflow_warning.
15024         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
15025         finish_decl.
15026         (c_parser_initializer): Pass location to
15027         default_function_array_conversion.
15028         (c_parser_initelt): Same.
15029         (c_parser_initval): Same.
15030         (c_parser_asm_operands): Same.
15031         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
15032         (c_parser_conditional_expression): Same.
15033         (c_parser_binary_expression): Add location info to stack.  Use it.
15034         (c_parser_unary_expression): Pass location to
15035         default_function_array_conversion, parser_build_unary_op,
15036         build_indirect_ref, c_parser_postfix_expression_after_primary.
15037         (c_parser_postfix_expression_after_primary): New location argument.
15038         Use it.
15039         (c_parser_expression_conv): Pass location to
15040         default_function_array_conversion.
15041         (c_parser_expr_list): Same.
15042         (c_parser_omp_atomic): Same.
15043         (c_parser_omp_for_loop): Same.
15044         * c-tree.h (struct c_declarator): Add comment to id_loc.
15045         (build_array_declarator): New argument.
15046         * c-decl.c (build_array_declarator): Add location argument.
15047         (grokdeclarator): Set id_loc for cdk_array.
15048         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
15049         build_array_declarator.
15050         * tree.c (build_omp_clause): Add location argument.
15051         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
15052         (OMP_CLAUSE_LOCATION): New macro.
15053         (struct tree_omp_clause): Add location field.
15054         (build_omp_clause): Add argument.
15055         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
15056         build_omp_clause.
15057         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
15058         (cp_parser_omp_clause_collapse): Same.
15059         (cp_parser_omp_clause_default): Same.
15060         (cp_parser_omp_clause_if): Same.
15061         (cp_parser_omp_clause_nowait): Same.
15062         (cp_parser_omp_clause_num_threads): Same.
15063         (cp_parser_omp_clause_ordered): Same.
15064         (cp_parser_omp_clause_schedule): Same.
15065         (cp_parser_omp_clause_untied): Same.
15066         (cp_parser_omp_for_loop): Same.
15067         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
15068         * c-tree.h (c_start_case): Add location argument.
15069         (c_process_expr_stmt): Same.
15070         (c_finish_goto_*): Same.
15071         * tree-parloops.c (initialize_reductions): Pass location to
15072         build_omp_clause.
15073         (create_parallel_loop): Same.
15074         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
15075         (gfc_trans_omp_reduction_list): Same.
15076         (gfc_trans_omp_clauses): Same.
15077         (gfc_trans_omp_do): Same.
15078         * c-typeck.c (c_finish_goto_label): Same.
15079         (c_finish_goto_ptr): New location argument.
15080         (c_start_case): Same.
15081         (emit_side_effect_warnings): Same.
15082         (c_process_expr_stmt): Same.
15083         (c_finish_stmt_expr): Same.
15084         (c_finish_omp_clauses): Use error_at instead of error.
15085         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
15086         build_omp_clause.
15087         * c-omp.c (c_split_parallel_clauses): New location argument.
15088         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
15089         to build_omp_clause.
15090         (convert_local_reference_stmt): Same.
15091         (convert_gimple_call): Same.
15092         * c-common.h (c_split_parallel_clauses): New argument.
15093         * c-parser.c (c_parser_statement_after_labels): Pass location to
15094         c_finish_goto_label.
15095         (c_parser_switch_statement): Pass location to c_start_case.
15096         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
15097         and c_process_expr_stmt.
15098         (c_parser_omp_variable_list): Add location argument.
15099         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
15100         (c_parser_omp_clause_default): Same.
15101         (c_parser_omp_clause_if): Same.
15102         (c_parser_omp_clause_num_threads): Same.
15103         (-c_parser_omp_clause_ordered): Same.
15104         (c_parser_omp_clause_reduction): Pass location to
15105         c_parser_omp_variable_list.
15106         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
15107         (c_parser_omp_clause_untied): Same.
15108         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
15109         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
15111         * c-tree.h (check_for_loop_decls, undeclared_variable,
15112         build_component_ref, build_array_ref, build_external_ref,
15113         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
15114         build_conditional_expr, build_compound_expr, c_cast_expr,
15115         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
15116         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
15117         argument.
15118         * c-semantics.c (build_stmt): Same.
15119         (build_case_label): Same.
15120         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
15121         (undeclared_variable): New argument.
15122         (make_label): Same.
15123         (lookup_label): Pass location on down.
15124         (define_label): Same.
15125         (finish_decl): Same.
15126         (build_compound_literal): Same.
15127         (finish_struct): Same.
15128         (finish_function): Do not set location here.
15129         (check_for_loop_decls): New argument.
15130         * tree.c (save_expr): Set location.
15131         (build_empty_stmt): New argument.
15132         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
15133         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
15134         * builtins.c (gimplify_va_arg_expr): Use locations.
15135         (expand_builtin_sync_operation): Same.
15136         * c-typeck.c (build_component_ref): New argument.
15137         (build_array_ref): Same.
15138         (build_external_ref): Same.
15139         (c_expr_sizeof_expr): Same.
15140         (c_expr_sizeof_type): Same.
15141         (parser_build_unary_op): Same.
15142         (build_conditional_expr): Same.
15143         (build_compound_expr): Pass location on down.
15144         (build_compound_expr): New argument.
15145         (build_c_cast): Same.
15146         (c_cast_expr): Same.
15147         (build_asm_expr): Same.
15148         (c_finish_return): Same.
15149         (c_process_expr_stmt): Pass location on down.
15150         (c_finish_stmt_expr): New argument.
15151         (push_clenaup): Same.
15152         (c_finish_omp_parallel): Same.
15153         (c_finish_omp_task): Same.
15154         * gimplify.c (gimplify_call_expr): Pass location on down.
15155         * c-omp.c (c_finish_omp_master): New argument.
15156         (c_finish_omp_critical): Same.
15157         (c_finish_omp_ordered): Same.
15158         (c_finish_omp_barrier): Same.
15159         (-c_finish_omp_taskwait): Same.
15160         (c_finish_omp_atomic): Same.
15161         (c_finish_omp_flush): Same.
15162         * tree-inline.c (copy_tree_body_r): Pass location on down.
15163         (inline_forbidden_p): Remove use of input_location.
15164         * c-gimplify.c (c_build_bind_expr): New argument.
15165         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
15166         (c_sizeof_or_alignof_type): New argument.
15167         (c_alignof_expr): Same.
15168         (build_va_arg): Same.
15169         (c_add_case_label): Same.
15170         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
15171         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
15172         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
15173         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
15174         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
15175         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
15176         New argument.
15177         * stub-objc.c (objc_build_selector_expr): Same.
15178         (objc_build_throw_stmt): Same.
15179         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
15180         (c_parser_initelt): Same.
15181         (c_parser_compound_statement): Same.
15182         (c_parser_compound_statement_nostart): Same.
15183         (c_parser_label): Same.
15184         (c_parser_statement_after_labels): Same.
15185         (c_parser_if_body): Same.
15186         (c_parser_else_body): Same.
15187         (c_parser_if_statement): Same.
15188         (c_parser_switch_statement): Same.
15189         (c_parser_while_statement): Same.
15190         (c_parser_do_statement): Same.
15191         (c_parser_for_statement): Same.
15192         (c_parser_asm_statement): Same.
15193         (c_parser_conditional_expression): Same.
15194         (c_parser_binary_expression): Same.
15195         (c_parser_cast_expression): Same.
15196         (c_parser_unary_expression): Same.
15197         (c_parser_sizeof_expression): Same.
15198         (c_parser_alignof_expression): Same.
15199         (c_parser_postfix_expression): Same.
15200         (c_parser_expression): Same.
15201         (c_parser_objc_receiver): Same.
15202         (c_parser_omp_variable_list): Same.
15203         (c_parser_omp_structured_block): Same.
15204         (c_parser_omp_atomic): New argument.
15205         (c_parser_omp_barrier): Same.
15206         (c_parser_omp_critical): Same.
15207         (c_parser_omp_flush): Pass location on down.
15208         (c_parser_omp_for_loop): New argument.
15209         (c_parser_omp_for): Same.
15210         (c_parser_omp_master): Same.
15211         (c_parser_omp_ordered): Same.
15212         (c_parser_omp_sections_scope): Same.
15213         (c_parser_omp_sections): Same.
15214         (c_parser_omp_parallel): Same.
15215         (c_parser_omp_single): Same.
15216         (c_parser_omp_task): Same.
15217         (c_parser_omp_taskwait): Pass location on down.
15218         (c_parser_omp_construct): Same.
15219         (c_parser_omp_threadprivate): Same.
15220         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
15221         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
15222         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
15223         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
15224         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
15225         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
15226         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
15227         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
15228         config/i386/i386.c, stmt.c:
15229         Add location argument to the following function definitions and/or
15230         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
15231         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
15232         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
15233         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
15234         do_case, c_finish_bc_stmt, build_compound_literal,
15235         build_function_call.
15236         * c-decl.c (build_compound_literal): Add location argument.
15237         Make all diagnostic calls use location.
15238         (start_struct): Same.
15239         (finish_struct): Same.
15240         (start_enum): Same.
15241         (build_enumerator): Same.
15242         (start_function): Same.
15243         (grokdeclarator): Make all diagnostic calls use location.
15244         (store_parm_decls_oldstyle): Same.
15245         * c-typeck.c (build_function_call): Add location argument.
15246         Make all diagnostic calls use location.
15247         (do_case): Same.
15248         (c_finish_bc_stmt): Same.
15249         * tree-nested.c (get_trampoline_type): Add argument.
15250         Pass location to build_decl.
15251         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
15252         * rtl.h (RTL_LOCATION): New.
15253         * c-common.c (c_add_case_label): Add location argument.
15254         Make all diagnostic calls use location.
15255         * c-common.h: Add location argument to make_fname_decl, do_case,
15256         c_add_case_label, build_function_call, resolve_overloaded_builtin.
15257         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
15258         Set it appropriately for every case.  Pass enum_loc to start_enum
15259         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
15260         parser_xref_tag.
15261         (c_parser_struct_or_union_specifier): Save location.  Use it for
15262         start_struct, finish_struct, and parser_xref_tag.
15264 2009-06-12  Ian Lance Taylor  <iant@google.com>
15266         * fold-const.c (fold_unary): Rename local variable and to and_expr.
15268         * c-opts.c (c_common_handle_option): For -Wc++-compat set
15269         cpp_opts->warn_cxx_operator_names.
15271 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15273         PR tree-opt/38865
15274         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
15275         is returns NULL and OP is a VCE, look through the VCE.
15277 2009-06-12  Ian Lance Taylor  <iant@google.com>
15279         PR bootstrap/40430
15280         * collect2.c (main): Use CONST_CAST2 in code inside #if
15281         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
15283 2009-06-12  Joey Ye  <joey.ye@intel.com>
15285         PR middle-end/39146
15286         * cfgexpand.c (get_decl_align_unit): Update
15287         max_used_stack_slot_alignment with align instead of
15288         stack_alignment_needed.
15290         * function.c (assign_stack_local_1): Update
15291         max_used_stack_slot_alignment with alignment_in_bits instead
15292         of stack_alignment_needed.
15293         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
15294         here.
15296 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
15298         * dwarf2out.c (last_var_location_insn): New variable.
15299         (dwarf2out_end_epilogue): Clear last_var_location_insn.
15300         (dwarf2out_var_location): Don't record anything after last real
15301         insn.  Only change labels if there were any real instructions
15302         in between last note and this one, or if changed sections.
15304 2009-06-11  Richard Henderson  <rth@redhat.com>
15306         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
15307         note when storing the frame pointer in a register.
15308         (FRP): Don't redefine to nothing for epilogue.
15309         (alpha_expand_epilogue): Mark register and sp restores.
15310         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
15312         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
15313         when gen_lowpart is needed.
15315 2009-06-11  Richard Henderson  <rth@redhat.com>
15317         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
15319         * dwarf2out.c (need_data_align_sf_opcode): New.
15320         (div_data_align): Move earlier.
15321         (def_cfa_1, reg_save): Use it.
15323 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
15325         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
15326         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
15327         (ix86_handle_option): Handle OPT_mcrc32.
15328         (ix86_target_string): Add -mcrc32.
15329         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
15331         * config/i386/i386.h (TARGET_CRC32): New.
15333         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
15334         (sse4_2_crc32di): Likewise.
15336         * config/i386/i386.opt (mcrc32): New.
15338         * doc/invoke.texi: Document -mcrc32.
15340 2009-06-11  Richard Henderson  <rth@redhat.com>
15342         * common.opt (gdwarf-): Accept a version number.
15343         * doc/invoke.texi (gdwarf-): Update docs.
15344         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
15345         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
15346         version level, and record it.
15348         * dwarf2.h (DW_CIE_VERSION): Remove.
15349         * dwarf2out.c (DWARF_VERSION): Remove.
15350         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
15351         (output_call_frame_info): Use CIE version 3 for dwarf3,
15352         or if the return register column is out of range for version 1.
15353         (dwarf_stack_op_name): Add all dwarf3 values.
15354         (DEBUG_PUBTYPES_SECTION): New.
15355         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
15356         encoding change for dwarf3.
15357         (output_die) [dw_val_class_die_ref]: Likewise.
15358         (output_compilation_unit_header): Emit correct version for dwarf3.
15359         (output_line_info): Likewise.
15360         (output_pubnames): Update for DWARF_VERSION removal.
15361         (output_aranges): Likewise.
15362         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
15363         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
15364         (dwarf2out_finish): Likewise.
15366 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
15368         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
15369         in r148403.
15371 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
15373         PR c/39252
15374         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
15375         * builtins.c (expand_builtin_unreachable): New function.
15376         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
15377         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
15378         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
15379         successors.
15380         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
15381         searching for missing barriers.
15383 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15385         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
15386         when -fprofile-generate* was passed.
15387         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
15389 2009-06-11  Anthony Green  <green@moxielogic.com>
15391         * config/moxie/moxie.md: Define length attribute for all instructions.
15392         (rCC): Define.
15393         (*b<cond:code>): Support limited branch ranges for new PC-relative
15394         branch instructions.
15395         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
15397 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
15399         * config/i386/i386.c (min_insn_size): Use get_attr_length
15400         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
15401         For __asm return 0.
15403         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
15404         instead of emit_insn_before.
15406 2009-06-10  Ian Lance Taylor  <iant@google.com>
15408         PR bootstrap/40408
15409         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
15410         GIMPLE_SWITCH.
15412 2009-06-10  Revital Eres  <eres@il.ibm.com>
15414         * passes.c (init_optimization_passes): Reschedule
15415         predictive-commoning pass before complete unroll pass.
15417 2009-06-10  Martin Jambor  <mjambor@suse.cz>
15419         * cgraph.c (cgraph_node_can_be_local_p): New function.
15420         (cgraph_make_node_local): New function.
15421         * cgraph.h (cgraph_node_can_be_local_p): Declare.
15422         (cgraph_make_node_local): Declare.
15424 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
15426         * tree.h (tree_base): Add packed_flag and user_align fields.
15427         Decrease size of spare field.
15428         (TYPE_USER_ALIGN): Use user_align from tree_base.
15429         (DECL_USER_ALIGN): Likewise.
15430         (TYPE_PACKED): Use packed_flag from tree_base.
15431         (DECL_PACKED): Likewise.
15432         (tree_type): Delete packed_flag and user_align fields.  Widen
15433         precision field.  Widen mode field and shuffle fields to align
15434         mode on an 8-bit boundary.
15435         (tree_decl_common): Delete decl_flag_1 and user_align fields.
15436         Renumber decl_flag_* fields.  Fix comments.  Widen
15437         decl_common_unused field.
15438         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
15439         (DECL_EXTERNAL): Likewise.
15440         (DECL_BIT_FIELD): Likewise.
15441         (DECL_NONADDRESSABLE_P): Likewise.
15442         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
15443         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
15445 2009-06-10  Ian Lance Taylor  <iant@google.com>
15447         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
15448         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
15449         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
15450         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
15451         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
15452         DEF_VEC_ALLOC_FUNC_P.
15453         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
15454         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
15455         DEF_VEC_ALLOC_FUNC_O.
15456         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
15457         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
15458         DEF_VEC_ALLOC_FUNC_I.
15459         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
15460         (vec_stack_p_reserve_exact_1): Declare.
15461         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
15462         (vec_stack_free): Declare.
15463         (VEC_stack_alloc): Define.
15464         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
15465         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
15466         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
15467         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
15468         for void_p.
15469         (stack_vecs): New static variable.
15470         (vec_stack_p_reserve_exact_1): New function.
15471         (vec_stack_o_reserve_1): New static function.
15472         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
15473         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
15474         (vec_stack_free): New function.
15475         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
15476         (VEC_df_ref_stack_alloc): Define.
15477         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
15478         DEF_VEC_ALLOC_P_STACK.
15479         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
15480         (struct df_collection_rec): Change _vec fields to VEC.  Remove
15481         _use fields.
15482         (df_free_collection_rec): Adjust for new fields.
15483         (df_insn_rescan): Use new df_collection_rec fields.
15484         (df_notes_rescan, df_canonize_collection_rec): Likewise.
15485         (df_ref_create_structure, df_ref_record): Likewise.
15486         (df_get_conditional_uses, df_get_call_refs): Likewise.
15487         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
15488         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
15489         (df_record_exit_block_uses, df_bb_verify): Likewise.
15490         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
15491         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
15492         Remove count parameter.  Change return type to void.  Change all
15493         callers.
15494         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
15495         Remove count parameter.  Change return type to void.  Change all
15496         callers.
15497         (df_install_refs): Change old_vec parameter to VEC.  Remove count
15498         parameter.  Change all callers.
15499         (df_install_mws): Change old_vec parameter to VEC.  Remove count
15500         parameter.  Change all callers.
15501         (df_refs_verify): Change new_rec parameter to VEC.  Change call
15502         callers.
15503         (df_mws_verify): Likewise.
15505 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
15507         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
15509 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
15511         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
15513 2009-06-10  Anthony Green  <green@moxielogic.com>
15515         * config/moxie/crti.asm: New file.
15516         * config/moxie/crtn.asm: New file.
15517         * config/moxie/moxie.c: New file.
15518         * config/moxie/moxie.h: New file.
15519         * config/moxie/sfp-machine.h: New file.
15520         * config/moxie/moxie-protos.h: New file.
15521         * config/moxie/t-moxie: Created.
15522         * config/moxie/t-moxie-softfp: Created.
15523         * config/moxie/moxie.md: Created.
15524         * config/moxie/constraints.md: Created.
15525         * config.gcc: Add moxie support.
15526         * doc/md.texi (Machine Constraints): Add moxie constraints.
15527         * doc/contrib.texi (Contributors): Mention moxie port.
15528         * doc/install.texi (Specific): Mention the moxie port.
15530 2009-06-09  Ian Lance Taylor  <iant@google.com>
15532         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
15533         compiling with C++.
15534         * optabs.c (optab_table): Only use designated initializers if
15535         HAVE_DESIGNATED_INITIALIZERS is defined.
15536         (convert_optab_table): Likewise.
15537         (init_optabs): Always call init_insn_codes if
15538         HAVE_DESIGNATED_INITIALIZERS is not defined.
15540 2009-06-09  Ian Lance Taylor  <iant@google.com>
15542         * targhooks.c (default_builtin_vectorized_function): Change fn
15543         parameter to unsigned int.
15544         (default_builtin_vectorized_conversion): Change code parameter to
15545         unsigned int.
15546         (default_builtin_reciprocal): Change fn parameter to unsigned int.
15547         * targhooks.h: Update declarations.
15548         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
15549         parameter to unsigned int.
15551         * c-typeck.c (comptypes_check_enum_int): New static function.
15552         (comptypes_internal): Add enum_and_int_p parameter.  Change all
15553         callers.
15554         (comp_target_types): Add location parameter.  Change all callers.
15555         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
15556         Change all callers.
15557         (function_types_compatible_p, type_lists_compatible_p): Likewise.
15558         (build_conditional_expr): Add colon_loc parameter.  Change all
15559         callers.
15560         (convert_for_assignment): Add location parameter.  Change all callers.
15561         * c-parser.c (c_parser_conditional_expression): Pass location of
15562         colon to build_conditional_expr.
15563         * c-tree.h (build_conditional_expr): Update declaration.
15565 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
15567         * graphite.c: Revert previous patch.
15569 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
15571         PR bootstrap/40103
15572         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
15574 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
15576         * tree-ssa-loop-prefetch.c
15577         (loop_prefetch_arrays): Fixed a portability problem in printf format
15578         string.
15580 2009-06-09  Martin Jambor  <mjambor@suse.cz>
15582         PR tree-optimization/40351
15583         * tree-sra.c (propagate_subacesses_accross_link): Check that a
15584         refrence to a potential artifical subaccess can be constructed.
15586 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
15588         * config/sh/sh-protos.h (sh_optimization_options): Declare.
15589         (sh_override_options): Likewise.
15590         * config/sh/sh.c: Include params.h.
15591         (sh_optimization_options): New.
15592         (sh_override_options): Likewise.
15593         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
15594         (OVERRIDE_OPTIONS): Use sh_override_options.
15596 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
15598         * dwarf2out.c (emit_cfa_remember): New variable.
15599         (add_fde_cfi): If emit_cfa_remember, recurse to add
15600         DW_CFA_remember_state first.
15601         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
15602         instead just set emit_cfa_remember.
15604 2009-06-08  Jan Hubicka  <jh@suse.cz>
15606         PR debug/40126
15607         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
15609 2009-06-08  Jan Hubicka  <jh@suse.cz>
15611         PR middle-end/39834
15612         * cgraphunit.c (save_inline_function_body): Do not copy transform
15613         hooks for saved inline bodies.
15614         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
15615         for given function.
15617 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
15619         * jump.c (returnjump_p): Handle delayed branches.  Add missing
15620         function comment.
15622 2009-06-08  Jan Hubicka  <jh@suse.cz>
15624         PR middle-end/40102
15625         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
15626         original node might've been modified.
15627         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
15629 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
15631         * tree-object-size.c (addr_object_size): Add OSI argument.
15632         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
15633         (compute_builtin_object_size, expr_object_size): Adjust callers.
15634         (plus_stmt_object_size): Call addr_object_size instead of
15635         compute_builtin_object_size.
15637 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
15638             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
15640         * tree-ssa-loop-prefetch.c
15641         (gather_memory_references): Introduced a counter for the number of
15642         memory references.
15643         (anything_to_prefetch_p): Introduced a counter for the number of
15644         prefetches.
15645         (is_loop_prefetching_profitable): New function with a cost model
15646         for prefetching.
15647         (loop_prefetch_arrays): Use the new cost model to determine if
15648         prefetching is profitable.
15649         * params.def (MIN_INSN_TO_PREFETCH_RATIO,
15650         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
15651         * params.h (MIN_INSN_TO_PREFETCH_RATIO,
15652         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
15653         * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
15654         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
15656 2009-06-08  Michael Matz  <matz@suse.de>
15658         PR debug/40012
15659         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
15660         partitions use the same.
15661         (expand_one_var): Deal with DECL_RTL sometimes begin set also
15662         for basevars of SSA_NAMEs.
15663         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
15664         to not expand them twice.
15665         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
15666         multiple places.
15668 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
15670         * common.opt (fcompare-debug=, fcompare-debug-second): New.
15671         (fdump-final-insns=, gtoggle): New.
15672         * doc/invoke.texi: Document them.
15673         * final.c (rest_of_clean_state): Dump final insn stream.
15674         * gcc.c (invoke_as): Hook in -fcompare-debug.
15675         (static_spec_functions): Add compare-debug-dump-opt,
15676         compare-debug-self-opt and compare-debug-auxbase-opt.
15677         (compare_debug, compare_debug_second, compare_debug_opt): New.
15678         (switches_debug_check, n_switches_debug_check): New.
15679         (debug_auxbase_opt, debug_check_temp_file): New.
15680         (process_command): Handle -fno-compare-debug, -fcompare-debug and
15681         -fcompare-debug=*.
15682         (do_self_spec): Handle arguments after switches.
15683         (do_spec_1): Add .gk extension to temp file basenames for compare.
15684         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
15685         (cc1_options): Use it instead of normal auxbase computation for
15686         the second compare-debug compilation.
15687         (compare_files): New.
15688         (main): Set up and implement compare debug mode.
15689         (compare_debug_dump_opt_spec_function): New.
15690         (compare_debug_self_opt_spec_function): New.
15691         (compare_debug_auxbase_opt_spec_function): New.
15692         * toplev.c (process_options): Handle flag_gtoggle,
15693         flag_dump_final_insns.
15694         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
15695         during -fcompare-debug-second compilation.
15697 2009-06-07  Ian Lance Taylor  <iant@google.com>
15699         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
15700         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
15702         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
15703         with no default node.  Change warning with %H to warning_at.
15704         Don't clear warn_switch around case checking.
15705         * doc/invoke.texi (Warning Options): Clarify distinction between
15706         -Wswitch and -Wswitch-enum.
15708 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15710         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
15712 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15714         * gbl-ctors.h: Add header guard.
15716 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15718         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
15719         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
15720         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
15721         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
15722         prototypes for removed functions.
15723         (expressions_equal_p): Move to ...
15724         * tree-ssa-sccvn.h: ... here and ...
15725         * matrix-reorg.c: ... adjust includes.
15727 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15729         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
15731 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15733         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
15734         (finish_function): Remove erroneous whitespace.
15736 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15738         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
15739         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
15741 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15743         * errors.c (internal_error): Commentary typo fix.
15744         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
15745         * tree-ssa-pre.c: Ditto.
15747 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15749         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
15750         them is supposed to hold actual statements.
15752 2009-06-06  Ian Lance Taylor  <iant@google.com>
15754         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
15755         empty statements can now have attributes.
15757 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
15759         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
15760         * config/mips/mips.md: Ditto.
15762 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
15764         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
15765         _RELOCATABLE.
15766         (__eabi_uconvert): Likewise.
15768 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
15770         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
15771         CFI_* definitions with IN_GCC.
15773 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
15775         * xcoffout.h (xcoffout_source_line): Update prototype.
15777 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15779         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
15780         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
15782 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
15784         PR middle-end/40340
15785         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
15786         inlined_function_outer_scope_p blocks for artificial inlines
15787         even at -g0/-g1.
15788         * tree.c (tree_nonartificial_location): Rewrite using
15789         block_nonartificial_location.
15791 2009-06-05  Revital Eres  <eres@il.ibm.com>
15792             Leehod Baruch  <leehod@il.ibm.com>
15794         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
15795         (expand_expr_real_1): Remove comment.
15796         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
15797         Vectorize misaligned access when the target supports it.
15798         (vect_supportable_dr_alignment): Check for unaligned access support.
15799         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
15800         and remove asset.
15802 2009-06-05  Julian Brown  <julian@codesourcery.com>
15804         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
15805         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
15807 2009-06-05  Richard Guenther  <rguenther@suse.de>
15809         PR bootstrap/40350
15810         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
15811         as possibly unused.
15813 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
15815         * config/s390/s390.c (global_not_special_regno_p): New static inline.
15816         (save_gprs): Don't tell unwinder when a global register is saved.
15817         (s390_emit_epilogue): Emit needed epilogue unwind info.
15819 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
15821         * dwarf2out.c (deferred_asm_name): New.
15822         (add_name_and_src_coords_attributes): Defer creation of
15823         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
15824         computed yet.
15825         (move_linkage_attr): New.
15826         (dwarf2out_finish): Revisit deferrals and emit attributes at the
15827         right place.
15829 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
15831         * tree-nested.c (finalize_nesting_tree_1): Declare the
15832         frame_decl in the binding tree.
15834 2009-06-04  Cary Coutant  <ccoutant@google.com>
15836         * basic-block.h (struct basic_block_def): Add discriminator field.
15837         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
15838         callers.
15839         * debug.c (do_nothing_debug_hooks): Add additional entry.
15840         (debug_nothing_int_charstar_int): New function.
15841         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
15842         (debug_nothing_int_charstar_int): New declaration.
15843         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
15844         discriminator value in .loc directive.
15845         * final.c (last_discriminator): New variable.
15846         (discriminator): New variable.
15847         (final_start_function): Initialize above variables, pass current
15848         discriminator to debug hook.
15849         (notice_source_line): Check for discriminator change.
15850         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
15851         * sdbout.c (sdbout_source_line): New parameter.
15852         * tree-cfg.c (struct locus_discrim_map): New structure type.
15853         (discriminator_per_locus): New hash table.
15854         (build_gimple_cfg): Allocate and free discriminator hash table.
15855         (make_edges): Call assign_discriminator.
15856         (locus_map_hash): New function.
15857         (locus_map_eq): New function.
15858         (next_discriminator_for_locus): New function.
15859         (same_line_p): New function.
15860         (assign_discriminator): New function.
15861         (make_cond_expr_edges): Call assign_discriminator.
15862         (make_gimple_switch_edges): Likewise.
15863         (first_non_label_stmt): New function.
15864         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
15865         all callers.
15866         * xcoffout.c (xcoffout_source_line): Add new parameter.
15868         * configure.ac (gcc_cv_as_discriminator): New configury check for
15869         gas support for discriminator.
15870         * configure: Regenerate.
15871         * config.in: Regenerate.
15873 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15875         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
15876         val after checking for integers.
15878 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
15880         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
15881         X64_REGPARM_MAX.
15882         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
15883         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
15884         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
15885         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
15886         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
15887         X64_SSE_REGPARM_MAX.
15888         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
15889         X64_SSE_REGPARM_MAX.
15891 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
15893         * gcc.c (report_times_to_file): New.
15894         (execute): Implement it.
15895         (process_command): Support -time=.
15896         * doc/invoke.texi: Document it.
15898 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
15900         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
15901         that have value exprs.
15903 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
15905         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
15906         declarations for constants until...
15907         (dw2_output_indirect_constant_1): ... this point.
15909 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
15911         PR target/10242
15912         * arm.md (arm_addsi3): Don't try to split an add with an
15913         eliminable register until after reload has completed.
15915 2009-06-03  Ian Lance Taylor  <iant@google.com>
15917         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
15918         * genattrtab.c (write_length_unit_log): Likewise.
15919         * genchecksum.c (dosum): Likewise.
15920         * gengtype.c (write_rtx_next): Likewise.
15921         (finish_root_table, write_roots): Likewise.
15922         * gimple.c (gimple_ops_offset_): Likewise.
15923         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
15924         * config/arc/arc.c (arc_attribute_table): Likewise.
15925         * config/arm/arm.c (arm_attribute_table): Likewise.
15926         * config/avr/avr.c (avr_attribute_table): Likewise.
15927         * config/crx/crx.c (crx_attribute_table): Likewise.
15928         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
15929         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
15930         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
15931         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
15932         * config/sh/sh.c (sh_attribute_table): Likewise.
15933         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
15934         * config/spu/spu.c (spu_attribute_table): Likewise.
15935         * config/v850/v850.c (v850_attribute_table): Likewise.
15937         * config/alpha/alpha.c (vms_attribute_table): Make static.
15938         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
15939         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
15940         * config/mips/mips.c (mips_attribute_table): Likewise.
15942         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
15943         $(SYSTEM_H).
15944         (cc1-checksum.o): Likewise.
15946 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
15948         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
15950 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
15952         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
15953         insn if it is changing sp.  Use gen_add3_insn instead of
15954         conditionally gen_addsi3 and gen_adddi3.
15955         (offset_below_red_zone_p): New static inline function.
15956         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
15957         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
15958         * config/rs6000/ppc-asm.h: Include auto-host.h.
15959         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
15960         CFI_RESTORE): Define.
15961         * config/rs6000/crtresxgpr.asm: Add unwind info.
15962         * config/rs6000/crtresxfpr.asm: Likewise.
15963         * config/rs6000/crtresgpr.asm: Likewise.
15964         * config/rs6000/crtresfpr.asm: Likewise.
15965         * config/rs6000/crtsavgpr.asm: Likewise.
15966         * config/rs6000/crtsavfpr.asm: Likewise.
15968         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
15969         argument of DWARF2_FRAME_REG_OUT macros.
15971 2009-06-03  Julian Brown  <julian@codesourcery.com>
15973         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
15974         words or less (including TImode) in core registers.
15976 2009-06-03  Richard Guenther  <rguenther@suse.de>
15978         PR middle-end/40328
15979         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
15981 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
15983         * statistics.c (statistics_counter_event): Do not record event
15984         in pass dump if its number == -1.
15985         (curr_statistics_hash): Add assert that we never get passes
15986         with static number == -1.
15988 2009-06-03  Richard Guenther  <rguenther@suse.de>
15989             Andrey Belevantsev  <abel@ispras.ru>
15991         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
15992         non-BLKmode arrays addressable.
15994 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
15996         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
15997         * config/m68k/m68k.h: ... here.
15999 2009-06-03  Martin Jambor  <mjambor@suse.cz>
16001         PR tree-optimization/40323
16002         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
16003         assignment.
16005 2009-06-03  Richard Guenther  <rguenther@suse.de>
16007         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
16008         consistently.
16010 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
16012         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
16013         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
16014         JUMP_TABLE_DATA_P where applicable.
16015         * config/sh/sh.c: Ditto.
16016         * config/sh/sh.h: Ditto.
16017         * config/sh/sh.md: Ditto.
16018         * config/sh/symbian.c: Ditto.
16020 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
16022         * config/i386/driver-i386.c (describe_cache): Optimize
16023         concatenation of strings.  Use snprintf instead of sprintf.
16024         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
16025         target when not compiling with GCC.
16027 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
16029         * config/sh/sh.c: Revert last change.
16030         (sh_expand_epilogue): Emit a blockage insn before the frame
16031         pointer adjustment unconditionally.
16033 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
16035         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
16036         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
16037         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
16038         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
16039         to COLLECT_GCC_OPTIONS.
16041 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
16043         * collect2.c (target_system_root): New variable.
16044         (main): Handle --sysroot=.
16045         (ignore_library): Strip the sysroot from the library path.
16047 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
16049         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
16050         (collect2.o): Depend on collect2-aix.h.
16051         (collect2-aix.o): New rule.
16052         * collect2-aix.h: New file.
16053         * collect2-aix.c: Likewise.
16054         * collect2.c: Include collect2-aix.h.  Don't undefine
16055         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
16056         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
16057         Use TARGET_AIX_VERSION instead of _AIX51.
16058         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
16059         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
16060         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
16061         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
16062         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
16064 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
16066         * collect2.c (ignore_library): Avoid premature post-increment
16067         and null deference.
16069 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
16071         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
16072         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
16073         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
16074         CROSS_DIRECTORY_STRUCTURE too.
16075         (LINK_LIBG_SPEC): Likewise.
16076         (LIB_SPEC): Add %R to sysroot paths.
16077         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
16078         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
16079         * config/rs6000/aix51.h: As for aix43.h.
16080         * config/rs6000/aix52.h: Likewise.
16081         * config/rs6000/aix53.h: Likewise.
16082         * config/rs6000/aix61.h: Likewise.
16083         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
16084         to the beginning of sysroot paths.
16086 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
16088         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
16089         INSN_LISTs that are out of the REG_NOTE range.
16091 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
16093         * loop-unroll.c (struct iv_to_split): Add pointer to next.
16094         (struct var_to_expand): Likewise.
16095         (struct opt_info): Add head and tail for linked lists of the above.
16096         (analyze_insn_to_expand_var): Initialize next.
16097         (analyze_iv_to_split_insn): Likewise.
16098         (analyze_insns_in_loop): Create linked lists.
16099         (allocate_basic_variable): Simplify for use without hash table.
16100         (insert_var_expansion_initialization): Likewise, make it type-safer.
16101         (combine_var_copies_in_loop_exit): Likewise.
16102         (apply_opt_in_copies): Walk lists rather than hash tables.
16103         (release_var_copies): Simplified and inlined by hand into...
16104         (free_opt_info): ... this function.
16106 2009-06-02  Richard Guenther  <rguenther@suse.de>
16108         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
16109         for field decls.
16111 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
16113         * cfgexpand.c (gimple_expand_cfg): Discard the source location
16114         only for builtins that are not overridden.
16116 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
16118         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
16119         label string.
16121 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
16123         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
16125 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
16127         * combine.c (move_deaths): Compare LUIDs within the same BB only.
16129 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
16131         * common.opt (fdump-unnumbered-links): New.
16132         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
16133         * print-rtl.c (flag_dump_unnumbered_links): New.
16134         (print_rtx): Test it.
16136 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
16138         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
16139         push/pop multiple to 8-byte alignment.
16141 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
16143         * config/i386/i386.c (queued_cfa_restores): New static variable.
16144         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
16145         functions.
16146         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
16147         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
16148         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
16149         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
16150         note unconditionally.
16151         (ix86_emit_restore_regs_using_mov): Likewise.
16152         (ix86_emit_restore_sse_regs_using_mov): Likewise.
16153         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
16154         it through to ix86_emit_restore_reg_using_pop.
16155         (ix86_emit_leave): Add RED_OFFSET argument.  Call
16156         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
16157         instead of adding REG_CFA_OFFSET note unconditionally.
16158         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
16159         the above functions.  Call ix86_add_queued_cfa_restore_notes when
16160         needed.
16162         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
16163         force output of the label even for dwarf2out_do_cfi_asm.
16164         (add_fde_cfi): If -g2 and above and cfi might change CFA,
16165         force creation of CFI label and chain DW_CFA_set_loc jumping to it
16166         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
16167         caller.
16168         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
16169         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
16170         dwarf2out_cfi_label callers.
16171         * tree.h (dwarf2out_cfi_label): Adjust prototype.
16172         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
16173         Adjust dwarf2out_cfi_label callers.
16174         * config/vax/vax.c (vax_output_function_prologue): Likewise.
16176         * config/i386/i386.h (struct machine_cfa_state,
16177         struct machine_function): Guard with ifndef USED_FOR_TARGET
16178         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
16180         PR other/40024
16181         * emutls.c (__emutls_get_address): Change arr->size to mean number
16182         of allocated arr->data entries instead of # of slots + 1.
16184         PR middle-end/40316
16185         * recog.c (peep2_reinit_state): New function.
16186         (peephole2_init_state): Use it at the end of a basic block and also
16187         when seeing a RTX_FRAME_RELATED_P insn.
16189 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
16191         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
16192         fixuns_truncrfdi2): New.
16193         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
16194         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
16195         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
16196         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
16197         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
16198         *recip_approx): Remove.
16199         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
16200         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
16201         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
16202         move to div.md.
16203         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
16204         setf_exp_rf): New.
16206 2009-06-01  Ian Lance Taylor  <iant@google.com>
16208         * attribs.c (register_attribute): Use CONST_CAST.
16209         * collect2.c (main): Use CONST_CAST2.
16210         (scan_prog_file): Likewise.
16211         * gcc.c (process_command, main): Likewise.
16212         * toplev.c (toplev_main): Likewise.
16214         * c-typeck.c (handle_warn_cast_qual): New static function,
16215         partially broken out of build_c_cast.
16216         (build_c_cast): Call handle_warn_cast_qual.
16217         * doc/invoke.texi (Warning Options): Document new effect of
16218         -Wcast-qual.
16220 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
16222         * diagnostic.c (diagnostic_build_prefix): Always print columns.
16223         (diagnostic_report_current_module): Print columns.
16224         * common.opt (flag_show_column): Enable by default.
16226 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
16228         * alias.c (find_base_term): Check for NULL term before returning.
16230 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
16232         Revert due to PR40320:
16233         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
16234         * calls.c (emit_library_call_value_1): Don't force_operand for move
16235         and push insns.
16237 2009-06-01  Olivier Hainque  <hainque@adacore.com>
16238             Eric Botcazou  <ebotcazou@adacore.com>
16240         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
16241         to be processed as a bitfield for constructor output purposes.
16242         * output.h (initializer_constant_valid_for_bitfield_p): Declare
16243         new function.
16244         * varasm.c (oc_local_state): New type, output_constructor
16245         local state to support communication with helpers.
16246         (oc_outer_state): New type, output_constructor outer state of
16247         relevance in recursive calls.
16248         (output_constructor_array_range): New output_constructor helper,
16249         extracted code for an array range element.
16250         (output_constructor_regular_field): New output_constructor helper,
16251         extracted code for an element that is not a bitfield.
16252         (output_constructor_bitfield): New output_constructor helper,
16253         extracted code for a bitfield element.  Accept an OUTER state
16254         argument for recursive processing.  Recurse on record or array
16255         CONSTRUCTOR values, possibly past noop conversions.
16256         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
16257         VALUE is a valid constant-valued expression for use in a static
16258         bit-field initializer.
16259         (output_constructor): Rework to use helpers.  Accept and honor an
16260         OUTER state argument for recursive calls.  Return total size.  Be
16261         prepared for nested constructors initializing bitfields.
16262         (output_constant): Feed OUTER in calls to output_constructor.
16264 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
16266         * calls.c (emit_library_call_value_1): Don't force_operand for move
16267         and push insns.
16269 2009-06-01  Nick Clifton  <nickc@redhat.com>
16271         * doc/invoke.texi (IA-64 Options): Fix typo.
16273 2009-06-01  Ira Rosen  <irar@il.ibm.com>
16275         PR tree-optimization/39129
16276         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
16277         printed message.
16278         (vect_do_peeling_for_loop_bound): Use
16279         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
16280         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
16281         (vect_loop_versioning): Likewise.
16282         (vect_create_cond_for_alias_checks): Fix indentation.
16283         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
16284         macros.
16285         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
16286         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
16287         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
16288         "control flow in loop".
16289         (vect_estimate_min_profitable_iters): Use
16290         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
16291         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
16292         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
16293         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
16294         * tree-vect-stmts.c (vectorizable_store): Replace the check that the
16295         statement belongs to a group of strided accesses with the exact code
16296         check.
16297         (vectorizable_load): Likewise.
16298         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
16299         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
16301 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
16303         * config/freebsd-stdint.h: New file.
16304         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
16305         Add freebsd-stdint.h to tm_file.
16307 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
16309         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
16310         (thumb2_extendhidi2): Likewise.
16312 2009-05-31  Ian Lance Taylor  <iant@google.com>
16314         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
16316 2009-05-31  Ian Lance Taylor  <iant@google.com>
16318         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
16319         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
16320         (ipa-reference.o): Depend upon gt-ipa-reference.h.
16322 2009-05-31  Jason Merrill  <jason@redhat.com>
16324         * tree-pretty-print.c (print_call_name): Take the callee, not the
16325         call itself.  Make non-static.  Use dump_function_name for functions.
16326         (dump_generic_node): Adjust.
16327         * diagnostic.h: Declare print_call_name.
16328         * gimple-pretty-print.c (dump_gimple_call): Use it.
16330 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
16332         * config/sh/sh.md (ashldi3_std): New define_expand.
16333         (ashldi3): Use it.
16335 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
16337         PR target/40313
16338         * config/sh/sh.c: Include debug.h.
16339         (sh_expand_epilogue): Emit a blockage insn before the frame
16340         pointer adjustment also when dwarf2out_do_frame returns true.
16342 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
16344         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
16345         (thumb2_extendqidi2): New pattern.
16347 2009-05-31  Ira Rosen  <irar@il.ibm.com>
16349         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
16350         mark phis for renaming.
16351         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
16352         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
16353         Call mark_sym_for_renaming.
16354         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
16355         * tree-vect-loop.c (vect_transform_loop): Remove
16356         vect_memsyms_to_rename initialization and a call to
16357         mark_set_for_renaming.
16359 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
16361         PR middle-end/40304
16362         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
16363         frame related even if !set_cfa && style < 0.
16365 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
16367         * config/i386/mingw-tls.c: New file.
16368         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
16369         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
16370         defining _WIN32 but not __CYGWIN__.
16372 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16374         * configure.ac: Add MPC support.
16376         * config.in, configure: Regenerate.
16378 2009-05-29  Richard Henderson  <rth@redhat.com>
16380         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
16381         NOTE_INSN_BASIC_BLOCK.
16382         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
16383         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
16384         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
16385         to be deleted.
16386         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
16387         add in_use field.
16388         (add_cfi): Disable check redefining cfa away from drap.
16389         (lookup_cfa_1): Add remember argument; handle remember/restore.
16390         (lookup_cfa): Pass remember argument.
16391         (cfa_remember): New.
16392         (compute_barrier_args_size_1): Remove sibcall check.
16393         (dwarf2out_frame_debug_def_cfa): New.
16394         (dwarf2out_frame_debug_adjust_cfa): New.
16395         (dwarf2out_frame_debug_cfa_offset): New.
16396         (dwarf2out_frame_debug_cfa_register): New.
16397         (dwarf2out_frame_debug_cfa_restore): New.
16398         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
16399         (dwarf2out_begin_epilogue): New.
16400         (dwarf2out_frame_debug_restore_state): New.
16401         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
16402         DW_CFA_restore_state.
16403         (output_cfi_directive): Likewise.
16404         (convert_cfa_to_fb_loc_list): Likewise.
16405         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
16406         * dwarf2out.h: Update.
16407         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
16408         (copy_insn_1): Early out for null.
16409         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
16410         and dwarf2out_frame_debug_restore_state.
16411         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
16412         (prologue_insn_hash, epilogue_insn_hash): New.
16413         (free_after_compilation): Adjust freeing accordingly.
16414         (record_insns): Create hash table if needed; push insns into
16415         hash instead of array.
16416         (maybe_copy_epilogue_insn): New.
16417         (contains): Search hash table instead of array.
16418         (sibcall_epilogue_contains): Remove.
16419         (thread_prologue_and_epilogue_insns): Split eh_return insns
16420         and mark them as epilogues.
16421         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
16422         scanning in terms of basic blocks.
16423         * insn-notes.def (CFA_RESTORE_STATE): New.
16424         * jump.c (returnjump_p_1): Accept EH_RETURN.
16425         (eh_returnjump_p_1, eh_returnjump_p): New.
16426         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
16427         CFA_REGISTER, CFA_RESTORE): New.
16428         * rtl.def (EH_RETURN): New.
16429         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
16431         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
16432         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
16434         * config/i386/i386.c (gen_push): Update cfa state.
16435         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
16436         add a CFA_ADJUST_CFA note.
16437         (ix86_dwarf_handle_frame_unspec): Remove.
16438         (ix86_expand_prologue): Update cfa state.
16439         (ix86_emit_restore_reg_using_pop): New.
16440         (ix86_emit_restore_regs_using_pop): New.
16441         (ix86_emit_leave): New.
16442         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
16443         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
16444         * config/i386/i386.h (struct machine_cfa_state): New.
16445         (ix86_cfa_state): New.
16446         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
16447         (eh_return_internal): Merge from eh_return_<mode>,
16448         use eh_return rtx, split w/ epilogue.
16450 2009-05-29  Ian Lance Taylor  <iant@google.com>
16452         * builtins.c (validate_gimple_arglist): Don't use va_arg with
16453         enum type.
16454         * calls.c (emit_library_call_value_1): Likewise.
16456         * c-typeck.c (c_build_va_arg): New function.
16457         * c-tree.h (c_build_va_arg): Declare.
16458         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
16459         instead of build_va_arg.
16461 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
16463         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
16464         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
16465         (ptr_difference_cost): Use affine combinations to compute it.
16466         (difference_cost): Likewise.
16467         (get_computation_cost_at): Compute more accurate cost for addresses
16468         if the ratio is a multiplier allowed in addresses.
16469         For non-addresses, consider that an additional offset or symbol is
16470         added only once.
16472 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
16474         * config/i386/i386.c (ix86_decompose_address): Avoid useless
16475         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
16477         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
16478         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
16479         (prefix_rex): For UNIT_MMX don't imply the prefix by default
16480         if MODE_DI.
16481         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
16482         to 1 for TYPE_SSE{IADD1,CVT1}.
16483         (prefix_vex_imm8): Removed.
16484         (length_vex): Only pass 1 as second argument to
16485         ix86_attr_length_vex_default if prefix_extra is 0.
16486         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
16487         (length): For prefix vex computation use length_immediate
16488         attribute instead of prefix_vex_imm8.
16489         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
16490         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
16491         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
16492         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
16493         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
16494         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
16495         a space in between the operands.
16496         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
16497         if one operand is 0xff and the other one si, di, bp or sp.
16498         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
16499         other one si, di, bp or sp.
16500         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
16501         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
16502         type and mode attributes.
16503         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
16504         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
16505         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
16506         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
16507         prefix_data16 attribute iff MODE_DF.
16508         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
16509         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
16510         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
16511         constm128_operand in length_immediate computation.
16512         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
16513         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
16514         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
16515         length_immediate attribute to 1.
16516         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
16517         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
16518         for certain alternatives.
16519         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
16520         prefix_data16 attribute if MODE_V1DF.
16521         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
16522         length_immediate to 1.
16523         (set_got_rex64, set_rip_rex64): Remove length attribute, set
16524         length_address to 4, set mode attribute to MODE_DI.
16525         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
16526         (fxam<mode>2_i387): Set length attribute to 4.
16527         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
16528         *prefetch_3dnow_rex): Override length_address attribute.
16529         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
16530         attributes.
16531         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
16532         (constm128_operand): Removed.
16533         * config/i386/i386.c (memory_address_length): For
16534         disp && !index && !base in 64-bit mode account for SIB byte if
16535         print_operand_address can't optimize disp32 into disp32(%rip)
16536         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
16537         for fs: or gs: segment.
16538         (ix86_attr_length_immediate_default): When checking if shortform
16539         is possible, truncate immediate to the length of the non-shortened
16540         immediate.
16541         (ix86_attr_length_address_default): Ignore MEM_P operands
16542         with X constraint.
16543         (ix86_attr_length_vex_default): Only check for DImode on
16544         GENERAL_REG_P operands.
16545         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
16546         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
16547         (sse_cvttps2pi): Clear prefix_rep attribute.
16548         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
16549         attribute.
16550         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
16551         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
16552         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
16553         iff operand 2 is const_int_operand.
16554         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
16555         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
16556         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
16557         instead of vex.
16558         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
16559         prefix_data16.
16560         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
16561         prefix_data16 attribute for movlpd and movhpd instructions.
16562         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
16563         length_immediate for shufpd instruction.
16564         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
16565         (avx_cmpp<avxmodesuffixf2c><mode>3,
16566         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
16567         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
16568         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
16569         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
16570         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
16571         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
16572         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
16573         prefix_data16 attribute for the first alternative to 1.
16574         (*avx_loadlps): Override length_immediate for the first alternative.
16575         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
16576         attributes for second alternative.
16577         (*vec_concatv2sf_sse4_1): Override length_immediate and
16578         prefix_data16 attributes for second alternative.
16579         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
16580         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
16581         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
16582         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
16583         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
16584         prefix_data16 and length_immediate to 1.
16585         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
16586         to 1.
16587         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
16588         prefix_extra attribute for variants that don't have 0f prefix alone.
16589         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
16590         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
16591         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
16592         *sse4_1_pextrd): Set length_immediate to 1.
16593         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
16594         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
16595         to 1.
16596         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
16597         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
16598         length_immediate to 1 for second alternative.
16599         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
16600         prefix_extra and length_immediate attributes for the first
16601         alternative.
16602         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
16603         first alternative.
16604         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
16605         to 1 for the first and third alternative.
16606         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
16607         alternative.
16608         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
16609         attribute.
16610         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
16611         attribute to 0.
16612         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
16613         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
16614         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
16615         *avx_psign<mode>3): Set prefix_extra attribute to 1.
16616         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
16617         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
16618         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
16619         ssse3_psign<mode>3): Override prefix_rex attribute.
16620         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
16621         (ssse3_palignrti): Override length_immediate to 1.
16622         (ssse3_palignrdi): Override length_immediate to 1, override
16623         prefix_rex attribute.
16624         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
16625         (sse4a_extrqi): Override length_immediate to 2.
16626         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
16627         (sse4a_insertq): Override prefix_data16 to 0.
16628         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
16629         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
16630         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
16631         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
16632         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
16633         and length_immediate to 1.
16634         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
16635         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
16636         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
16637         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
16638         and length_immediate to 1.
16639         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
16640         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
16641         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
16642         avx_ptest256): Override prefix_extra to 1.
16643         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
16644         Override prefix_data16 and length_immediate to 1.
16645         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
16646         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
16647         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
16648         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
16649         prefix_data16 to 0 and prefix_extra to 2.
16650         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
16651         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
16652         attribute.
16653         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
16654         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
16655         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
16656         and prefix_extra to 2.
16657         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
16658         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
16659         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
16660         avx_vpermilvar<mode>3,
16661         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
16662         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
16663         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
16664         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
16665         Override prefix_extra to 1.
16666         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
16667         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
16668         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
16669         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
16670         prefix_extra and length_immediate to 1.
16671         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
16672         modrm to 0.
16673         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
16674         to 1 for the first alternative.
16675         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
16676         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
16677         cases.
16678         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
16679         *movv2sf_internal_avx, *movv2sf_internal): Override
16680         prefix_rep attribute for certain alternatives.
16681         (*mov<mode>_internal): Override prefix_rep or prefix_data16
16682         attributes for certain alternatives.
16683         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
16684         attributes for certain alternatives.
16685         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
16686         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
16687         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
16688         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
16689         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
16690         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
16691         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
16692         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
16693         length_immediate to 1 if operand 2 is const_int_operand.
16694         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
16695         *vec_extractv2si_1): Set length_immediate attribute to 1.
16696         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
16697         using old 3DNOW insn rather than SSE/3DNOW_A.
16698         (mmx_emms, mmx_femms): Clear modrm attribute.
16700 2009-05-29  Martin Jambor  <mjambor@suse.cz>
16702         * tree-sra.c:  New implementation of SRA.
16704         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
16705         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
16706         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
16707         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
16708         (SRA_MAX_STRUCTURE_COUNT): Removed.
16709         (SRA_FIELD_STRUCTURE_RATIO): Removed.
16710         * doc/invoke.texi (sra-max-structure-size): Removed.
16711         (sra-field-structure-ratio): Removed.
16713 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
16715         PR middle-end/40291
16716         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
16717         before expansion.
16719 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
16721         PR rtl-optimization/40101
16722         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
16723         seqno.  Adjust comment.
16724         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
16725         inserting bookkeeping before a jump, the jump is not scheduled.
16726         When no positive seqno found, provide a value.  Add comment.
16728 2009-05-29  Richard Guenther  <rguenther@suse.de>
16730         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
16731         short-cutting on the first component.
16733 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
16735         PR middle-end/39958
16736         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
16737         for trees other than decls/types.
16739 2009-05-29  Richard Guenther  <rguenther@suse.de>
16741         * tree-ssa-operands.c (get_expr_operands): Do not handle
16742         INDIRECT_REFs in the handled-component case.  Remove
16743         unused get_ref_base_and_extent case.
16744         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
16745         tree_low_cst and host_integerp where possible.
16746         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
16747         codes for equivalence.
16748         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
16750 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
16752         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
16753         to tmake_file for i[34567]86-*-cygwin*.
16755 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
16757         PR target/40017
16758         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
16759         (altivec_categorize_keyword, init_vector_keywords,
16760         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
16761         similar to bool.
16763 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
16765         * tree.c (handle_dll_attribute): Check if node is
16766         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
16768 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
16770         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
16771         component.
16772         (thumb2_zero_extendqidi2): Likewise.
16774 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
16776         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
16777         instead of gen_movrt.
16778         * config/sh/sh.md (movrt): Remove.
16780 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
16782         * doc/invoke.texi (IA-64 Options):
16783         Add -msdata, -mfused-madd, -mno-inline-float-divide,
16784         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
16785         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
16786         -msched-prefer-non-control-spec-insns,
16787         -msched-stop-bits-after-every-cycle,
16788         -msched-count-spec-in-critical-path,
16789         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
16790         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
16791         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
16792         and -msched-spec-verbose.
16794 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
16796         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
16797         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
16798         error if used.
16799         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
16801 2009-05-28  Richard Guenther  <rguenther@suse.de>
16803         * tree-ssa-alias.c (ao_ref_init): New function.
16804         (ao_ref_base): Likewise.
16805         (ao_ref_base_alias_set): Likewise.
16806         (ao_ref_alias_set): Likewise.
16807         (refs_may_alias_p_1): Change signature.
16808         (refs_may_alias_p): Adjust.
16809         (refs_anti_dependent_p): Likewise.
16810         (refs_output_dependent_p): Likewise.
16811         (call_may_clobber_ref_p_1): Change signature.
16812         (call_may_clobber_ref_p): Adjust.
16813         (stmt_may_clobber_ref_p_1): New function split out from ...
16814         (stmt_may_clobber_ref_p): ... here.
16815         (maybe_skip_until): Adjust signature.
16816         (get_continuation_for_phi): Likewise.
16817         (walk_non_aliased_vuses): Likewise.
16818         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
16819         (ao_ref_init): Declare.
16820         (ao_ref_base): Likewise.
16821         (ao_ref_alias_set): Likewise.
16822         (stmt_may_clobber_ref_p_1): Likewise.
16823         (walk_non_aliased_vuses): Adjust.
16824         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
16825         (get_ref_from_reference_ops): remove.
16826         (vn_reference_lookup_2): Adjust signature.
16827         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
16828         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
16829         (vn_reference_lookup): Adjust.
16830         (vn_reference_insert): Likewise.
16831         (vn_reference_insert_pieces): Adjust signature.
16832         (visit_reference_op_call): Adjust.
16833         * tree-ssa-pre.c (get_expr_type): Simplify.
16834         (phi_translate_1): Adjust.
16835         (compute_avail): Likewise.
16836         (translate_vuse_through_block): Do not re-build trees.
16837         (value_dies_in_block_x): Likewise.
16838         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
16839         fields.
16840         (vn_reference_lookup_pieces): Adjust declaration.
16841         (vn_reference_insert_pieces): Likewise.
16843 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
16845         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
16846         with checking disabled.
16848 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
16850         PR target/37216
16852         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
16853         macro definition for support of three-operand format aligned
16854         .comm directive in assembler on cygwin/pe/mingw target OS.
16855         * configure:  Regenerate.
16856         * config.h:  Regenerate.
16858         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
16859         aligned form of .comm directive if -mpe-aligned-commons is in effect.
16860         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
16862         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
16863         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
16865 2009-05-28  Ira Rosen  <irar@il.ibm.com>
16867         PR tree-optimization/40254
16868         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
16869         in analysis of basic blocks.
16871 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
16873         PR middle-end/33699
16874         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
16875         * target-def.h (TARGET_CONST_ANCHOR): New macro.
16876         (TARGET_INITIALIZER): Use it.
16877         * cse.c (CHEAPER): Move it up to the other macros.
16878         (insert): Rename this ...
16879         (insert_with_costs): ... to this.  Add cost parameters.  Update
16880         function comment.
16881         (insert): New function.  Call insert_with_costs.
16882         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
16883         find_reg_offset_for_const, try_const_anchors): New functions.
16884         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
16885         when using a const-anchor.  Call insert_const_anchors.
16886         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
16887         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
16889 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
16891         * tree-inline.c (remap_decls): Enable nonlocalized variables
16892         when not optimizing.
16894 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
16896         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
16897         Simplify other tests involving optimize.
16899 2009-05-27  Tom Tromey  <tromey@redhat.com>
16901         * unwind-dw2.c (_Unwind_DebugHook): New function.
16902         (uw_install_context): Call _Unwind_DebugHook.
16904 2009-05-27  Tom Tromey  <tromey@redhat.com>
16906         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
16908 2009-05-27  Ian Lance Taylor  <iant@google.com>
16910         * Makefile.in (LINKER, LINKER_FLAGS): Define.
16911         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
16912         (ALL_LINKERFLAGS): Define.
16913         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
16914         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
16915         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
16916         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
16917         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
16918         $(LINKER_FOR_BUILD).
16919         (build/gcov-iov$(build_exeext)): Likewise.
16921 2009-05-27  Julian Brown  <julian@codesourcery.com>
16923         * gcse.c (target.h): Include.
16924         (can_assign_to_reg_without_clobbers_p): Check that the target allows
16925         copy of argument to a pseudo register.
16927 2009-05-27  Diego Novillo  <dnovillo@google.com>
16929         * tree-ssa-live.c (dump_scope_block): Document arguments.
16930         (dump_scope_blocks): Document.
16931         (debug_scope_blocks): New.
16932         * tree-flow.h (debug_scope_blocks): Declare.
16934 2009-05-21  Denis Chertykov  <denisc@overta.ru>
16936         * doc/contrib.texi (Contributors): Add myself to the list.
16938 2009-05-27  Olivier Hainque  <hainque@adacore.com>
16940         * expr.c (target_align): New function.  Alignment the TARGET of an
16941         assignment may be assume to have.
16942         (highest_pow2_factor_for_target): Use it instead of relying on
16943         immediate tree attributes of TARGET, not necessarily honored when
16944         intermediate bitfields are involved.
16946 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
16948         PR target/40266
16949         * config/i386/driver-i386.c (host_detect_local_cpu): Support
16950         AVX, SSE4, AES, PCLMUL and POPCNT.
16952 2009-05-27  Diego Novillo  <dnovillo@google.com>
16954         * tree-pretty-print.c (dump_location): New.
16955         (dump_generic_node): Call it.
16956         Factor code to handle BLOCK nodes ...
16957         (dump_block_node): ... here.
16959 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
16961         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
16962         with it.
16963         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
16964         included.
16965         * gcc-plugin.h: Include config.h and system.h.
16966         (IN_GCC): Define if not defined.
16968 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
16970         PR middle-end/40249
16971         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
16972         with -fno-inline.
16974 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
16976         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
16977         applicable.
16978         * config/m32r/m32r.h: Ditto.
16979         * config/m32r/m32r.md: Ditto.
16980         * config/m32r/predicates.md: Ditto.
16982 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
16984         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
16986 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
16988         * doc/plugins.texi
16989         (Loading plugins): typo.
16990         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
16991         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
16992         (Interacting with the GCC Garbage Collector): Added new section.
16993         (Giving information about a plugin): Added new section for
16994         PLUGIN_INFO.
16995         * ggc.h (ggc_register_root_tab): Added declaration.
16996         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
16997         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
16998         (register_callback): Improved comment in declaration.
16999         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
17000         (extra_root_vec) Added static variable for dynamic roots registration.
17001         (ggc_register_root_tab) Added new routine.
17002         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
17003         PLUGIN_GGC_MARKING event.
17004         * ggc-zone.c: Include plugin.h.
17005         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
17006         * ggc-page.c: Include plugin.h.
17007         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
17008         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
17009         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
17010         (register_callback): check lack of callbacks for
17011         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
17012         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
17013         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
17014         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
17015         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
17016         dependency on plugin.h.
17017         (plugin.o): Added dependency on ggc.h...
17019 2009-05-26  Richard Guenther  <rguenther@suse.de>
17021         PR middle-end/40248
17022         Revert
17023         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
17024         with mismatched comparison modes.
17026         * expr.c (expand_expr_real_1): Expand the operand of a
17027         VIEW_CONVERT_EXPR in its natural mode.
17029 2009-05-26  Ian Lance Taylor  <iant@google.com>
17031         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
17032         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
17033         (ALL_COMPILERFLAGS): Define.
17034         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
17035         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
17036         (collect2$(exeext), collect2.o): Likewise.
17037         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
17038         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
17039         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
17040         (libbackend.o, intl.o, cppdefault.o): Likewise.
17041         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
17042         (build/%.o): Use $(COMPILER_FOR_BUILD).
17043         (build/gen%$(build_exeext)): Likewise.
17044         (build/gcov-iov$(build_exeext)): LIkewise.
17045         * config/t-darwin (darwin.o): Use $(COMPILER).
17046         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
17047         * config/t-sol2 (sol2-c.o): Likewise.
17048         (sol2.o): Likewise.
17049         * config/t-vxworks (vxworks.o): Likewise.
17050         * config/x-darwin (host-darwin.o): Likewise.
17051         * config/x-hpux (host-hpux.o): Likewise.
17052         * config/x-linux (host-linux.o): Likewise.
17053         * config/x-solaris (host-solaris.o): Likewise.
17054         * config/alpha/x-alpha (driver-alpha.o): Likewise.
17055         * config/arm/t-arm (arm-c.o): Likewise.
17056         * config/arm/t-pe (pe.o): Likewise.
17057         * config/arm/t-wince-pe (pe.o): Likewise.
17058         * config/i386/t-cygming (winnt.o): Likewise.
17059         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
17060         * config/i386/t-cygwin (cygwin1.o): Likewise.
17061         (cygwin2.o): Likewise.
17062         * config/i386/t-i386 (i386-c.o): Likewise.
17063         * config/i386/t-interix (winnt.o): Likewise.
17064         * config/i386/t-netware (netware.o): Likewise.
17065         * config/i386/t-nwld (nwld.o): Likewise.
17066         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
17067         * config/i386/x-i386 (driver-i386.o): Likewise.
17068         * config/i386/x-cygwin (host-cygwin.o): Likewise.
17069         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
17070         * config/ia64/t-ia64 (ia64-c.o): Likewise.
17071         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
17072         * config/mips/x-native (driver-native.o): Likewise.
17073         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
17074         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
17075         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
17076         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
17077         * config/score/t-score-elf (score7.o): Likewise.
17078         (score3.o): Likewise.
17079         * config/sh/t-sh (sh-c.o): Likewise.
17080         * config/sh/t-symbian (sh-c.o): Likewise.
17081         (symbian.o): Likewise.
17082         * config/spu/t-spu-elf (spu-c.o): Likewise.
17083         * config/v850/t-v850 (v850-c.o): Likewise.
17084         * config/v850/t-v850e (v850-c.o): Likewise.
17086 2009-05-26  Richard Guenther  <rguenther@suse.de>
17088         PR tree-optimization/40122
17089         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
17090         VECTOR_CSTs if possible.
17091         (fold_gimple_assign): Likewise.
17093 2009-05-26  Richard Guenther  <rguenther@suse.de>
17095         PR middle-end/40252
17096         * fold-const.c (fold_binary): Use the correct types for building
17097         rotates.
17099 2009-05-26  Richard Guenther  <rguenther@suse.de>
17101         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
17102         redundant calls to merge_alias_info.
17103         (bump_vector_ptr): Likewise.
17104         * tree-ssa-copy.c (merge_alias_info): Remove.
17105         (replace_exp_1): Remove call to merge_alias_info.
17106         (propagate_tree_value): Likewise.
17107         (fini_copy_prop): Propagate points-to info.
17108         * tree-flow.h (merge_alias_info): Remove.
17110 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
17112         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
17114 2009-05-25  Jan Hubicka  <jh@suse.cz>
17116         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
17117         * cgraph.h (struct inline_summary): New filed self_wize,
17118         size_inlining_benefit, self_time and time_inlining_benefit.
17119         (struct cgraph_global_info): Replace insns by time ans size fields.
17120         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
17121         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
17122         (ipcp_update_callgraph): Do not touch function bodies.
17123         * ipa-inline.c: Include except.h
17124         (MAX_TIME): New constant.
17125         (overall_insns): Remove.
17126         (leaf_node_p): New.
17127         (overall_size, max_benefit): New static variables.
17128         (cgraph_estimate_time_after_inlining): New function.
17129         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
17130         (cgraph_clone_inlined_nodes): Update size.
17131         (cgraph_mark_inline_edge): Update size.
17132         (cgraph_estimate_growth): Use size info.
17133         (cgraph_check_inline_limits): Check size.
17134         (cgraph_default_inline_p): Likewise.
17135         (cgraph_edge_badness): Compute badness based on benefit and size cost.
17136         (cgraph_decide_recursive_inlining): Check size.
17137         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
17138         and times.
17139         (cgraph_decide_inlining): Likewise.
17140         (cgraph_decide_inlining_incrementally): Likewise; honor
17141         PARAM_EARLY_INLINING_INSNS.
17142         (likely_eliminated_by_inlining_p): New predicate.
17143         (estimate_function_body_sizes): New function.
17144         (compute_inline_parameters): Use it.
17145         * except.c (must_not_throw_labels): New function.
17146         * except.h (must_not_throw_labels): Declare.
17147         * tree-inline.c (init_inline_once): Kill inlining_weigths
17148         * tree-ssa-structalias.c: Avoid uninitialized warning.
17149         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
17150         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
17151         (PARAM_INLINE_CALL_COST): Remove.
17152         (PARAM_EARLY_INLINING_INSNS): New.
17154 2009-05-25  Richard Guenther  <rguenther@suse.de>
17156         PR tree-optimization/36327
17157         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
17158         callback for reference translation or lookup at the point of may-defs.
17159         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
17160         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
17161         for union COMPONENT_REFs.
17162         (vn_reference_lookup_3): New callback.  Lookup from memset
17163         and CONSTRUCTOR assignment, translate through struct copies.
17164         (vn_reference_lookup_pieces): Make sure to not free the
17165         passed operands array.  Adjust walk_non_aliased_vuses call.
17166         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
17167         make sure we do not leak memory.
17169 2009-05-25  Richard Guenther  <rguenther@suse.de>
17171         * tree-ssa-alias.h (dump_points_to_solution): Declare.
17172         * tree-inline.c (expand_call_inline): Reset the escaped and
17173         callused solutions.
17174         * tree-ssa-structalias.c (pass_build_ealias): New.
17175         * tree-pass.h (pass_build_ealias): Declare.
17176         * passes.c (init_optimization_passes): Add PTA during
17177         early optimizations.
17178         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
17179         and CALLUSED solutions.
17180         (dump_points_to_solution): New function, split out from ...
17181         (dump_points_to_info_for): ... here.
17182         * tree-parloops.c (parallelize_loops): Reset the escaped and
17183         callused solutions.
17185 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17187         PR bootstrap/40027
17188         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
17189         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
17191 2009-05-25  Ira Rosen  <irar@il.ibm.com>
17193         PR tree-optimization/40238
17194         * tree-vect-stmts.c (vect_init_vector): Insert initialization
17195         statements after basic block's labels.
17196         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
17197         to free the allocated memory.
17199 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
17201         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
17202         return address with a USE.
17204 2009-05-24  Richard Guenther  <rguenther@suse.de>
17206         PR middle-end/40233
17207         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
17208         array type from the main variant of the inner type.
17210 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17212         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
17213         definition to bool (from int) to un-break build.
17214         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
17216 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
17218         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
17219         discard_stmt_changes): Delete.
17220         * tree-ssa-operands.c (scb_stack): Delete.
17221         (init_ssa_operands): Do not initialize it.
17222         (fini_ssa_operands): Do not free it.
17223         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
17225         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
17226         update_stmt, remove the others.  Fix comments.
17227         * tree-dfa.c (optimize_stack_restore): Likewise.
17228         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
17229         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
17230         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
17231         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
17232         Likewise.
17233         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
17234         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
17235         (dom_opt_finalize_block): Likewise, adjusting access to
17236         stmts_to_rescan.
17237         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
17238         (stmts_to_rescan): Change item type to gimple.
17239         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
17241 2009-05-24  Ira Rosen  <irar@il.ibm.com>
17243         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
17244         * tree-pass.h (pass_slp_vectorize): New pass.
17245         * params.h (SLP_MAX_INSNS_IN_BB): Define.
17246         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
17247         * tree-vectorizer.c (timevar.h): Include.
17248         (user_vect_verbosity_level): Declare.
17249         (vect_location): Fix comment.
17250         (vect_set_verbosity_level): Update user_vect_verbosity_level
17251         instead of vect_verbosity_level.
17252         (vect_set_dump_settings): Add an argument. Ignore user defined
17253         verbosity if dump flags require higher level of verbosity. Print to
17254         stderr only for loop vectorization.
17255         (vectorize_loops): Update call to vect_set_dump_settings.
17256         (execute_vect_slp): New function.
17257         (gate_vect_slp): Likewise.
17258         (struct gimple_opt_pass pass_slp_vectorize): New.
17259         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
17260         access its members.
17261         (vec_info_for_bb): New function.
17262         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
17263         (VECTORIZATION_ENABLED): New macro.
17264         (SLP_ENABLED, SLP_DISABLED): Likewise.
17265         (vect_is_simple_use): Add bb_vec_info argument.
17266         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
17267         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
17268         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
17269         vect_schedule_slp, vect_analyze_slp): Likewise.
17270         (vect_analyze_stmt): Add slp_tree argument.
17271         (find_bb_location): Declare.
17272         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
17273         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
17274         (vect_analyze_loop_operations, vect_analyze_loop,
17275         get_initial_def_for_induction, vect_create_epilog_for_reduction,
17276         vect_finalize_reduction, vectorizable_reduction,
17277         vectorizable_live_operation, vect_transform_loop): Likewise.
17278         * tree-data-ref.c (dr_analyze_innermost): Update comment,
17279         skip evolution analysis if analyzing a basic block.
17280         (dr_analyze_indices): Likewise.
17281         (initialize_data_dependence_relation): Skip the test whether the
17282         object is invariant for basic blocks.
17283         (compute_all_dependences): Skip dependence analysis for data
17284         references in basic blocks.
17285         (find_data_references_in_stmt): Don't fail in case of invariant
17286         access in basic block.
17287         (find_data_references_in_bb): New function.
17288         (find_data_references_in_loop): Move code to
17289         find_data_references_in_bb and add a call to it.
17290         (compute_data_dependences_for_bb): New function.
17291         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
17292         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
17293         that STEP is 0.
17294         (vect_analyze_data_ref_dependence): Check for interleaving in case of
17295         unknown dependence in basic block and fail in case of dependence in
17296         basic block.
17297         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
17298         dependence instances from either loop or basic block vectorization
17299         info.
17300         (vect_compute_data_ref_alignment): Check if it is loop vectorization
17301         before calling nested_in_vect_loop_p.
17302         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
17303         dependence instances from either loop or basic block vectorization
17304         info.
17305         (vect_verify_datarefs_alignment): Likewise.
17306         (vect_enhance_data_refs_alignment): Adjust function calls.
17307         (vect_analyze_data_refs_alignment): Likewise.
17308         (vect_analyze_group_access): Fix printing. Skip different checks if
17309         DR_STEP is 0. Keep strided stores either in loop or basic block
17310         vectorization data structure. Fix indentation.
17311         (vect_analyze_data_ref_access): Fix comments, allow zero step in
17312         basic blocks.
17313         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
17314         dependence instances from either loop or basic block vectorization
17315         info.
17316         (vect_analyze_data_refs): Update comment. Call
17317         compute_data_dependences_for_bb to analyze basic blocks.
17318         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
17319         case of loop vectorization. In case of basic block vectorization use
17320         data-ref itself as a base.
17321         (vect_create_data_ref_ptr): In case of basic block vectorization:
17322         don't advance the pointer, add new statements before the current
17323         statement.  Adjust function calls.
17324         (vect_supportable_dr_alignment): Support only aligned accesses in
17325         basic block vectorization.
17326         * common.opt (ftree-slp-vectorize): New flag.
17327         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
17328         (vect_pattern_recog_1): Likewise.
17329         * tree-vect-stmts.c (process_use): Likewise.
17330         (vect_init_vector): Add new statements in the beginning of the basic
17331         block in case of basic block SLP.
17332         (vect_get_vec_def_for_operand): Adjust function calls.
17333         (vect_finish_stmt_generation): Likewise.
17334         (vectorizable_call): Add assert that it is loop vectorization, adjust
17335         function calls.
17336         (vectorizable_conversion, vectorizable_assignment): Likewise.
17337         (vectorizable_operation): In case of basic block SLP, take
17338         vectorization factor from statement's type and skip the relevance
17339         check. Adjust function calls.
17340         (vectorizable_type_demotion): Add assert that it is loop
17341         vectorization, adjust function calls.
17342         (vectorizable_type_promotion): Likewise.
17343         (vectorizable_store): Check for outer loop only in case of loop
17344         vectorization. Adjust function calls. For basic blocks, skip the
17345         relevance check and don't advance pointers.
17346         (vectorizable_load): Likewise.
17347         (vectorizable_condition): Add assert that it is loop vectorization,
17348         adjust function calls.
17349         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
17350         that it is not reduction, get vector type, call only supported
17351         functions, skip loop specific parts.
17352         (vect_transform_stmt): Check for outer loop only in case of loop
17353         vectorization.
17354         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
17355         (vect_is_simple_use): Fix comment, add new argument, fix conditions
17356         for external definition.
17357         * passes.c (pass_slp_vectorize): New pass.
17358         * tree-vect-slp.c (find_bb_location): New function.
17359         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
17360         check for patterns only in loops.
17361         (vect_build_slp_tree): Add argument, adjust function calls, fail in
17362         case of multiple types in basic block SLP.
17363         (vect_mark_slp_stmts_relevant): New function.
17364         (vect_supported_load_permutation_p): Fix comment.
17365         (vect_analyze_slp_instance): Add argument. In case of basic block
17366         SLP, take vectorization factor from statement's type, check that
17367         unrolling factor is 1. Adjust function call. Save SLP instance in
17368         either loop or basic block vectorization structure. Return FALSE,
17369         if SLP failed.
17370         (vect_analyze_slp): Add argument. Get strided stores groups from
17371         either loop or basic block vectorization structure. Return FALSE
17372         if basic block SLP failed.
17373         (new_bb_vec_info): New function.
17374         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
17375         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
17376         (vect_schedule_slp): Add argument. Get SLP instances from either
17377         loop or basic block vectorization structure. Set vectorization factor
17378         to be 1 for basic block SLP.
17379         (vect_slp_transform_bb): New function.
17380         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
17382 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
17384         * final.c (shorten_branches): Do not align labels for jump tables.
17385         (final_scan_insn): Use JUMP_TABLE_DATA_P.
17387 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
17389         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
17390         Remove outdated reference to flow.c and fix nits.
17391         * doc/gccint.texi: Tweak RTL description.
17392         * doc/rtl.texi: Likewise.
17394 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
17396         * config/avr/avr.c: Change my email address.
17397         * config/avr/avr.h: Likewise.
17398         * config/avr/avr.md: Likewise.
17399         * config/avr/avr-protos.h: Likewise.
17400         * config/avr/libgcc.S: Likewise.
17402 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
17404         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
17405         (spu_split_load, spu_split_store): Change return type to int.
17406         (spu_split_convert): Declare.
17407         * config/spu/predicates.md (spu_mem_operand): Remove.
17408         (spu_mov_operand): Update.
17409         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
17410         * config/spu/spu.c (regno_aligned_for_load): Remove.
17411         (reg_aligned_for_addr, spu_expand_load): Define.
17412         (spu_expand_extv): Reimplement and handle MEM.
17413         (spu_expand_insv): Handle MEM.
17414         (spu_sched_reorder): Handle insn's with length 0.
17415         (spu_legitimate_address_p): Reimplement.
17416         (store_with_one_insn_p): Return TRUE for any mode with size
17417         larger than 16 bytes.
17418         (address_needs_split): Define.
17419         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
17420         operands.
17421         (spu_convert_move): Define.
17422         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
17423         (spu_split_store): Change all MEM's to TImode.
17424         (spu_init_expanders): Preallocate registers that correspond to
17425         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
17426         mark_reg_pointer.
17427         (spu_split_convert): Define.
17428         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
17429         (_move<mode>, _movdi, _movti): Update predicate and condition.
17430         (load, store): Change to define_split.
17431         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
17432         extend<mode>ti2.
17433         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
17434         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
17435         define_insn_and_split of lshr<mode>3.
17436         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
17437         (<v>ashr<mode>3_imm): Define.
17438         (extv, extzv, insv): Allow MEM operands.
17439         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
17440         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
17441         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
17442         (_spu_convert2): Change to define_insn_and_split and remove the
17443         corresponding define_peephole2.
17444         (stack_protect_set, stack_protect_test, stack_protect_test_si):
17445         Change predicates to memory_operand.
17447 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
17449         * config/arm/thumb2.md: Add 16-bit multiply instructions.
17451 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
17453         PR tree-optimization/40219
17454         * tree.c (iterative_hash_expr): Make sure the builtin function is
17455         a normal builtin function and not a front end or back end builtin
17456         before indexing into the built_in_decls array.
17458 2009-05-22  Richard Guenther  <rguenther@suse.de>
17460         PR middle-end/38964
17461         * alias.c (write_dependence_p): Do not use TBAA for answering
17462         anti-dependence or output-dependence.
17463         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
17464         (emit_pointer_definition): Remove.
17465         (emit_alias_warning): Likewise.
17466         (find_what_var_points_to): Remove TBAA pruning code.
17467         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
17468         violations.
17469         (compute_points_to_sets): Remove code computing the set of
17470         dereferenced pointers.
17471         * tree-data-ref.c (dr_may_alias_p): Properly use the split
17472         oracle for querying anti and output dependencies.
17473         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
17474         if TBAA may be applied.
17475         (refs_anti_dependent_p): New function.
17476         (refs_output_dependent_p): Likewise.
17477         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
17478         (refs_output_dependent_p): Likewise.
17479         * doc/tree-ssa.texi (Memory model): New section.
17480         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
17481         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
17482         * cfgexpand.c (expand_gimple_basic_block): Do not handle
17483         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
17484         * expr.c (expand_expr_real_1): Likewise.
17485         * gimple-low.c (lower_stmt): Likewise.
17486         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
17487         (dump_gimple_cdt): Remove.
17488         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
17489         (gimple_size): Likewise.
17490         (walk_gimple_op): Likewise.
17491         (is_gimple_stmt): Likewise.
17492         (walk_stmt_load_store_addr_ops): Likewise.
17493         (gimple_build_cdt): Remove.
17494         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
17495         * gimple.h (gimple_cdt_new_type): Remove.
17496         (gimple_cdt_new_type_ptr): Likewise.
17497         (gimple_cdt_set_new_type): Likewise.
17498         (gimple_cdt_location): Likewise.
17499         (gimple_cdt_location_ptr): Likewise.
17500         (gimple_cdt_set_location): Likewise.
17501         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
17502         * tree-cfg.c (remove_useless_stmts_1): Do not handle
17503         GIMPLE_CHANGE_DYNAMIC_TYPE.
17504         (verify_types_in_gimple_stmt): Likewise.
17505         * tree-inline.c (estimate_num_insns): Likewise.
17506         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
17507         (copy_decl_to_var): Likewise.
17508         (copy_result_decl_to_var): Likewise.
17509         * tree-pretty-print.c (dump_generic_node): Do not handle
17510         CHANGE_DYNAMIC_TYPE_EXPR.
17511         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
17512         * tree-ssa-operands.c (get_expr_operands): Likewise.
17513         * tree-ssa-structalias.c (struct variable_info): Remove
17514         no_tbaa_pruning member.
17515         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
17516         (unify_nodes): Do not copy it.
17517         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
17518         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
17519         (set_uids_in_ptset): Do not check it.
17520         (find_what_var_points_to): Likewise.
17521         (compute_tbaa_pruning): Remove.
17522         (compute_points_to_sets): Do not call it.
17523         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
17524         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
17525         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
17526         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
17527         (DECL_NO_TBAA_P): Likewise.
17528         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
17529         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
17530         (expand_omp_atomic_pipeline): Do not set it.
17531         * print-tree.c (print_node): Do not dump it.
17532         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
17533         redundant check.
17535 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
17537         PR target/39856
17538         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
17539         for clobber.
17541 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
17543         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
17544         non-external.
17546 2009-05-22  Ben Elliston  <bje@au.ibm.com>
17548         * Makefile.in (bversion.h, s-bversion): New targets.
17549         (TOPLEV_H): Add bversion.h.
17550         * toplev.h: Include "bversion.h".
17551         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
17552         the __format__ attribute only if compiling with the same version
17553         of GCC as the sources (the "build version").
17555 2009-05-22  Ben Elliston  <bje@au.ibm.com>
17557         * c-format.c (handle_format_attribute): Fix comment typo.
17559 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
17561         PR target/37846
17562         * config/ia64/ia64.opt (mfused-madd): New.
17563         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
17564         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
17565         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
17566         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
17567         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
17568         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
17569         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
17570         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
17571         instruction if !TARGET_FUSED_MADD.
17572         (fpma, fpms): Remove colon from name.
17574 2009-05-22  Richard Guenther  <rguenther@suse.de>
17576         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
17577         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
17578         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
17579         TARGET_MEM_REF.
17580         (create_expression_by_pieces): Only convert if necessary.
17581         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
17582         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
17584 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
17586         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
17587         regular pattern from a template and rename it ...
17588         (*extzv_truncsi_exts): ... to this.
17590 2009-05-21  Richard Guenther  <rguenther@suse.de>
17592         * cgraph.h (struct cgraph_node): Remove inline_decl member.
17593         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
17594         (cgraph_default_inline_p): Likewise.
17595         (cgraph_decide_inlining_incrementally): Likewise.
17597 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
17598             Uros Bizjak  <ubizjak@gmail.com>
17600         * config/i386/cpuid.h (bit_MOVBE): New.
17602         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
17604         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
17605         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
17606         (ix86_handle_option): Handle OPT_mmovbe.
17607         (ix86_target_string): Add -mmovbe.
17608         (pta_flags): Add PTA_MOVBE.
17609         (processor_alias_table): Add PTA_MOVBE to "atom".
17610         (override_options): Handle PTA_MOVBE.
17612         * config/i386/i386.h (TARGET_MOVBE): New.
17614         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
17615         (*bswapsi_movbe): New.
17616         (*bswapdi_movbe): Likewise.
17617         (bswapdi2): Renamed to ...
17618         (*bswapdi_1): This.
17619         (bswapdi2): New expander.
17621         * config/i386/i386.opt (mmovbe): New.
17623         * doc/invoke.texi: Document -mmovbe.
17625 2009-05-21  Taras Glek  <tglek@mozilla.com>
17627         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
17628         * gcc-plugin.h (plugin_init): Updated signature.
17629         * gcc-plugin.h (plugin_name_args): Moved to this header.
17630         * doc/plugins.texi (plugin_init): Updated documention to reflect
17631         API change.
17632         * doc/plugins.texi (plugin_name_args): Added to documention.
17634 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
17636         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
17637         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
17639 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
17641         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
17642         JUMP_TABLE_DATA_P predicates where applicable.
17643         * config/i386/predicates.md: Ditto.
17644         * config/i386/sse.md: Ditto.
17646 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
17648         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
17649         operand2 -128 override length_immediate attribute to 1.
17650         * config/i386/predicates.md (constm128_operand): New predicate.
17652         * config/i386/i386.c (memory_address_length): Handle %r12
17653         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
17654         also check REGNO.
17655         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
17656         mode look through optional ZERO_EXTEND and SUBREG.
17657         * config/i386/i386.md (R12_REG): New define_constant.
17658         (prefix_data16): For sse unit set also for MODE_TI insns.
17659         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
17660         insns set if operand 1 is ext_QIreg_operand.
17661         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
17662         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
17663         immediate.
17664         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
17665         mode from MODE_DI to MODE_SI.
17666         (movdi_1_rex64): Override modrm and length_immediate attributes
17667         only for movabs (TYPE_IMOV, alternative 2).
17668         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
17669         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
17670         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
17671         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
17672         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
17673         prefix_rex attribute if DImode.
17674         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
17675         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
17676         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
17677         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
17678         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
17679         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
17680         Likewise.  For TYPE_IMOV clear length_immediate attribute.
17681         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
17682         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
17683         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
17684         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
17685         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
17686         or one operand TYPE_ISHIFT.
17687         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
17688         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
17689         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
17690         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
17691         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
17692         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
17693         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
17694         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
17695         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
17696         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
17697         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
17698         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
17699         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
17700         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
17701         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
17702         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
17703         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
17704         set mode attribute, don't override length attribute.
17705         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
17706         to 1.
17707         (return_internal_long): Set length attribute to 2 instead of 1.
17708         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
17709         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
17710         prefix_rex attribute.
17711         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
17712         New predicates.
17713         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
17715 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17717         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
17719 2009-05-20  Ian Lance Taylor  <iant@google.com>
17721         * tree.c (build_tree_list_vec_stat): New function.
17722         (ctor_to_vec): New function.
17723         (build_nt_call_vec): New function.
17724         (build_call_array): Change args to be a const pointer.
17725         (build_call_vec): New function.
17726         * tree.h (build_nt_call_vec): Declare.
17727         (build_tree_list_vec_stat): Declare.
17728         (build_tree_list_vec): Define.
17729         (build_call_array): Update declaration.
17730         (build_call_vec): Declare.
17731         (ctor_to_vec): Declare.
17732         * c-common.c (tree_vector_cache): New static variable.
17733         (make_tree_vector): New function.
17734         (release_tree_vector): New function.
17735         (make_tree_vector_single): New function.
17736         (make_tree_vector_copy): New function.
17737         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
17738         (make_tree_vector_single, make_tree_vector_copy): Declare.
17739         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
17740         (c_parser_expr_list): Don't manage cache here, instead call
17741         make_tree_vector.
17742         (c_parser_release_expr_list): Remove static function.
17743         (c_parser_vec_to_tree_list): Remove static function.
17744         (c_parser_attributes): Call build_tree_list_vec instead of
17745         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
17746         c_parser_release_expr_list.
17747         (c_parser_postfix_expression_after_primary): Likewise.
17748         (c_parser_objc_keywordexpr): Likewise.
17750 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
17752         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
17753         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
17754         TARGET_CONVERT_TO_TYPE.
17755         * hooks.c (hook_tree_const_tree_null): Define.
17756         * hooks.h (hook_tree_const_tree_null): Declare.
17757         * target.h (struct gcc_target):  Add invalid_parameter_type,
17758         invalid_return_type, promoted_type, and convert_to_type fields.
17759         * target-def.h (TARGET_INVALID_PARAMETER_TYPE): Define.
17760         (TARGET_INVALID_RETURN_TYPE): Define.
17761         (TARGET_PROMOTED_TYPE): Define.
17762         (TARGET_CONVERT_TO_TYPE): Define.
17763         (TARGET_INITIALIZER): Update for new fields.
17764         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
17765         (grokparms): Check targetm.invalid_parameter_type.
17766         * c-typeck.c (default_conversion): Check targetm.promoted_type.
17767         * c-convert.c (convert): Check targetm.convert_to_type.
17769 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
17771         * config/mips/mips.md (*extenddi_truncate<mode>,
17772         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
17773         defintions.
17774         (*extendhi_truncateqi): New define_insn_and_sptit.
17776 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
17778         PR middle-end/40204
17779         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
17780         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
17782 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
17784         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
17785         the operand of VIEW_CONVERT_EXPR.
17787 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
17789         * config/i386/driver-i386.c (host_detect_local_cpu): Check
17790         extended family and model for Intel processors.  Support Intel Atom.
17792 2009-05-20  Olivier Hainque  <hainque@adacore.com>
17794         * gstab.h (stab_code_type): Define, to be used instead of the
17795         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
17796         notice.
17797         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
17798         occurrences by stab_code_type.
17799         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
17801 2009-05-20  Martin Jambor  <mjambor@suse.cz>
17803         * tree-flow.h (insert_edge_copies_seq): Undeclare.
17804         (sra_insert_before): Likewise.
17805         (sra_insert_after): Likewise.
17806         (sra_init_cache): Likewise.
17807         (sra_type_can_be_decomposed_p): Likewise.
17808         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
17809         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
17810         (sra_insert_before): Likewise.
17811         (sra_insert_after): Likewise.
17812         (sra_init_cache): Likewise.
17813         (insert_edge_copies_seq): Made static and moved upwards.
17815         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
17816         case.
17818         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
17820         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
17821         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
17822         simple copies.
17824 2009-05-20  Richard Guenther  <rguenther@suse.de>
17826         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
17827         with mismatched comparison modes.
17829 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17831         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
17832         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
17833         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
17834         with shifts for Thumb2.
17835         (orsi_notsi): New for orn.
17836         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
17837         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
17838         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
17839         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
17840         Don't invert remainder for IOR.
17842 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
17844         PR tree-optimization/40087
17845         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
17846         number_of_iterations_ne): Rename never_infinite argument.
17847         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
17848         number_of_iterations_le): Handle pointer-type ivs when
17849         exit_must_be_taken is false.
17850         (number_of_iterations_cond):  Do not always assume that
17851         exit_must_be_taken if the control variable is a pointer.
17853 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17855         * c-typeck.c (build_binary_op): Allow % on integal vectors.
17856         * doc/extend.texi (Vector Extension): Document that % is allowed too.
17858 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
17860         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
17861         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
17863 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17865         PR c/40172
17866         * c.opt (Wlogical-op): Disabled by default.
17867         * c-opt (c_common_post_options): Do not enable Wlogical-op with
17868         Wextra.
17869         * doc/invoke.texi (Wlogical-op): Likewise.
17871 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
17873         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
17874         into CASE_CONVERT.
17875         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
17876         Propagate the type of the first operand.
17877         <ASSERT_EXPR>: Simplify.
17878         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
17879         Rewrite using the RHS code as discriminant.
17880         <NOP_EXPR>: Turn into CASE_CONVERT.
17881         <PLUS_EXPR>: Propagate the type of the first operand.
17883 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
17885         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
17886         (ia64_dconst_0_375): New.
17887         * config/ia64/ia64.c (ia64_override_options): Remove
17888         -minline-sqrt-min-latency warning.
17889         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
17890         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
17891         * config/ia64/ia64.md (*sqrt_approx): Remove.
17892         (sqrtsf2): Remove #if 0.
17893         (sqrtsf2_internal_thr): Rewrite and move to div.md.
17894         (sqrtdf): Remove assert.
17895         (sqrtdf2_internal_thr): Rewrite and move to div.md.
17896         (sqrtxf2): Remove #if 0.
17897         (sqrtxf2_internal_thr): Rewrite and move to div.md.
17898         * div.md (sqrt_approx_rf): New.
17899         (sqrtsf2_internal_thr): New implementation.
17900         (sqrtsf2_internal_lat): New.
17901         (sqrtdf2_internal_thr: New implementation.
17902         (sqrtxf2_internal): New implementation.
17904 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
17905             Hans-Peter Nilsson  <hp@axis.com>
17907         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
17908         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
17909         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
17910         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
17911         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
17912         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
17913         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
17914         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
17915         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
17916         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
17917         * c-common.c: ...from here.
17919 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17921         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
17923 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17925         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
17927 2009-05-19  Ben Elliston  <bje@au.ibm.com>
17929         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
17930         assignments with memcpy calls.
17931         (add_fdes): Likewise.
17932         (binary_search_unencoded_fdes): Likewise.
17933         (linear_search_fdes): Eliminate type puns.
17935 2009-05-19  Richard Guenther  <rguenther@suse.de>
17937         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
17938         not falsely claim to have propagated into all uses.
17940 2009-05-19  Ben Elliston  <bje@au.ibm.com>
17942         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
17943         version to v3.0.
17945 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
17947         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
17948         * config/sh/sh.c (sh_legitimate_address_p): Make static.
17949         (TARGET_LEGITIMATE_ADDRESS_P): New.
17950         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
17951         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
17953 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
17955         PR debug/40109
17956         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
17957         child of the containing namespace's DIE.
17959 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
17961         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
17962         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
17963         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
17964         extend patterns.
17966 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
17968         PR target/39942
17969         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
17970         gen_align with gen_pad.
17971         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
17972         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
17974         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
17975         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
17977         * config/i386/i386.md (align): Renamed to ...
17978         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
17979         ASM_OUTPUT_MAX_SKIP_PAD.
17981 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
17983         * config.gcc: Fix variable syntax.
17985         PR target/39531
17986         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
17987         before calling exact_log2.
17988         (output_iorsi3): Likewise.
17989         (output_xorsi3): Likewise.
17991 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
17993         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
17994         for the none zero constant operand except for EQ and NE
17995         comprisons even when the first operand is R0.
17997 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
17999         * config/s390/2064.md: Remove trailing whitespaces.
18000         * config/s390/2084.md: Likewise.
18001         * config/s390/constraints.md: Likewise.
18002         * config/s390/fixdfdi.h: Likewise.
18003         * config/s390/libgcc-glibc.ver: Likewise.
18004         * config/s390/s390-modes.def: Likewise.
18005         * config/s390/s390-protos.h: Likewise.
18006         * config/s390/s390.c: Likewise.
18007         * config/s390/s390.h: Likewise.
18008         * config/s390/s390.md: Likewise.
18009         * config/s390/tpf-unwind.h: Likewise.
18011 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
18013         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
18015 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
18017         M68K TLS support.
18018         * configure.ac (m68k-*-*): Check if binutils support TLS.
18019         * configure: Regenerate.
18020         * config/m68k/predicates.md (symbolic_operand): Extend comment.
18021         * config/m68k/constraints.md (Cu): New constraint.
18022         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
18023         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
18024         (movsi): Handle TLS symbols.
18025         (addsi3_5200): Handle XTLS symbols, indent.
18026         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
18027         (m68k_tls_reference_p): Declare.
18028         (m68k_legitimize_address): Declare.
18029         (m68k_unwrap_symbol): Declare.
18030         * config/m68k/m68k.opt (mxtls): New option.
18031         * config/m68k/m68k.c (ggc.h): Include.
18032         (m68k_output_dwarf_dtprel): Implement hook.
18033         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
18034         (m68k_expand_prologue): Load GOT pointer when function needs it.
18035         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
18036         (m68k_legitimate_constant_address_p): Same.
18037         (m68k_decompose_address): Handle TLS references.
18038         (m68k_get_gp): New static function.
18039         (enum m68k_reloc): New contants.
18040         (TLS_RELOC_P): New macro.
18041         (m68k_wrap_symbol): New static function.
18042         (m68k_unwrap_symbol): New function.
18043         (m68k_final_prescan_insn_1): New static function.
18044         (m68k_final_prescan_insn): New function.
18045         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
18046         functions.
18047         (legitimize_pic_address): Handle TLS references..
18048         (m68k_tls_get_addr, m68k_get_tls_get_addr)
18049         (m68k_libcall_value_in_a0_p)
18050         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
18051         (m68k_call_m68k_read_tp): Helper variables and functions for ...
18052         (m68k_legitimize_tls_address): Handle TLS references.
18053         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
18054         New functions.
18055         (m68k_legitimize_address): Handle TLS symbols.
18056         (m68k_get_reloc_decoration): New static function.
18057         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
18058         UNSPEC_RELOC32.
18059         (m68k_output_dwarf_dtprel): Implement hook.
18060         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
18061         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
18062         m68k_call_* routines.
18063         (sched_attr_op_type): Handle TLS symbols.
18064         (gt-m68k.h): Include.
18065         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
18066         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
18068 2009-05-18  Martin Jambor  <mjambor@suse.cz>
18070         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
18071         (visit_store_addr_for_mod_analysis): New function.
18072         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
18073         (determine_cst_member_ptr): Use gimple_assign_single_p.
18074         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
18075         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
18076         operands.  Don't check number of operands of a NOP_EXPR.
18078 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
18080         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
18082 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18084         PR c/40172
18085         * c-common.c (warn_logical_operator): Don't warn if one of
18086         expression isn't always true or false.
18088 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
18090         * config/i386/biarch32.h: New file.
18091         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
18093 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
18095         * config/mips/mips.md (*zero_extend<mode>_trunchi,
18096         *zero_extend<mode>_truncqi): Merge these into ...
18097         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
18098         Name the pattern following this as *zero_extendhi_truncqi.
18100 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
18102         PR middle-end/39301
18103         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
18104         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
18105         (output_info): Make field HOST_WIDEST_INT.
18106         (print_statistics): Use HOST_WIDEST_INT_PRINT.
18107         (dump_bitmat_statistics): Same.
18109 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
18111         * config.gcc (use_gcc_stdint):  Set to wrap.
18112         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
18113         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
18114         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
18115         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
18116         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
18117         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
18118         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
18119         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
18121 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
18123         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
18124         tune_64.
18125         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
18126         Move definitions earlier.
18127         (OPT_ARCH64, OPT_ARCH32): Define.
18128         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
18129         and tune_64.
18131 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
18133         PR target/40153
18134         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
18135         implies.
18137 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
18139         * arm.md (movdi2): Copy non-reg values to DImode registers.
18141 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
18143         PR target/39942
18144         * final.c (label_to_max_skip): New function.
18145         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
18146         CODE_LABEL_NUMBER <= max_labelno.
18147         * output.h (label_to_max_skip): New prototype.
18148         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
18149         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
18150         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
18151         Handle CODE_LABELs with >= 16 byte alignment or with
18152         max_skip == (1 << align) - 1.
18153         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
18154         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
18156         PR target/39942
18157         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
18158         .p2align 3 if MAX_SKIP is smaller than 7.
18159         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
18161 2009-05-15  Ian Lance Taylor  <iant@google.com>
18163         * alias.c (struct alias_set_entry_d): Rename from struct
18164         alias_set_entry.  Change all uses.
18165         * except.c (struct call_site_record_d): Rename from struct
18166         call_site_record.  Change all uses.
18167         * except.h (struct eh_region_d): Rename from struct eh_region.
18168         Change all uses.
18169         * gcse.c (struct hash_table_d): Rename from struct hash_table.
18170         Change all uses.
18171         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
18172         ivtype_map_elt.  Change all uses.
18173         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
18174         Change all uses.
18175         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
18176         * graphite.h (struct name_tree_d): Rename from struct name_tree.
18177         Change all uses.
18178         (struct sese_d): Rename from struct sese.  Change all uses.
18179         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
18180         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
18181         * optabs.h (struct optab_d): Rename from struct optab.  Change all
18182         uses.
18183         (struct convert_optab_d): Rename from struct convert_optab.
18184         Change all uses.
18185         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
18186         ipa_opt_pass.  Change all uses.
18187         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
18188         all uses.
18190         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
18191         defined as a typedef.
18192         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
18193         defined as a tag.
18195 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18197         PR 16302
18198         * fold-const.c (make_range,build_range_check,merge_ranges): Move
18199         declaration to...
18200         (merge_ranges): Returns bool.
18201         * tree.h (make_range): .. to here.
18202         (build_range_check): Likewise.
18203         (merge_ranges): Likewise. Renamed from merge_ranges.
18204         * c-typeck.c (parser_build_binary_op): Update calls to
18205         warn_logical_operator.
18206         * c-common.c (warn_logical_operator): Add new warning.
18207         * c-common.h (warn_logical_operator): Update declaration.
18209 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18211         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
18213 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18215         * doc/install.texi: Document MPC requirements, flags etc.
18217         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
18218         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
18219         Evaluate constant arguments.
18220         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
18221         (fold_builtin_1): Likewise, also evaluate constant arguments.
18222         Remove superfluous break.
18223         (do_mpc_ckconv): New.
18224         * real.h: Include mpc.h.
18225         * toplev.c (print_version): Output MPC version info if available.
18227 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
18229         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
18231 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18233         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
18234         only once.
18236 2009-05-15  Jan Hubicka  <jh@suse.cz>
18238         * doc/invoke.texi (max-early-inliner-iterations): New flag.
18239         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
18240         (try_inline): Fix return value.
18241         (cgraph_decide_inlining_incrementally): Honor new value.
18242         (cgraph_early_inlining): Handle indirect inlining.
18243         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
18245 2009-05-15  Jan Hubicka  <jh@suse.cz>
18247         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
18248         * cgraphunit.c (cgraph_finalize_function): Set it.
18249         (cgraph_expand_function): Use it.
18251 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
18253         * real.c (encode_ieee_half): Define.
18254         (decode_ieee_half): Define.
18255         (ieee_half_format): Define.
18256         (arm_half_format): Define.
18257         * real.h (ieee_half_format): Declare.
18258         (arm_half_format): Declare.
18260 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
18262         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
18263         swapped, and reversed optabs exist before trying to use them.
18265 2009-05-15  Paul Brook  <paul@codesourcery.com>
18266             Sandra Loosemore  <sandra@codesourcery.com>
18268         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
18269         loads.  Allow PRE_DEC.
18270         (output_move_neon): Handle PRE_DEC.
18271         (arm_print_operand): Add 'A' for neon structure loads.
18272         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
18273         * config/arm/neon.md (neon_mov): Update comment.
18274         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
18275         calls.
18276         (Um): New constraint.
18278 2009-05-15  Jan Hubicka  <jh@suse.cz>
18280         Revert the following patch until testsuite fallout is fixed:
18281         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
18282         * cgraph.h (struct inline_summary): New filed self_wize,
18283         size_inlining_benefit, self_time and time_inlining_benefit.
18284         (struct cgraph_global_info): Replace insns by time ans size fields.
18285         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
18286         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
18287         (ipcp_update_callgraph): Do not touch function bodies.
18288         * ipa-inline.c: Include except.h
18289         (MAX_TIME): New constant.
18290         (overall_insns): Remove
18291         (overall_size, max_benefit): New static variables.
18292         (cgraph_estimate_time_after_inlining): New function.
18293         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
18294         (cgraph_clone_inlined_nodes): Update size.
18295         (cgraph_mark_inline_edge): Update size.
18296         (cgraph_estimate_growth): Use size info.
18297         (cgraph_check_inline_limits): Check size.
18298         (cgraph_default_inline_p): Likewise.
18299         (cgraph_edge_badness): Compute badness based on benefit and size cost.
18300         (cgraph_decide_recursive_inlining): Check size.
18301         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
18302         and times.
18303         (cgraph_decide_inlining): Likewise.
18304         (cgraph_decide_inlining_incrementally): Likewise; honor
18305         PARAM_EARLY_INLINING_INSNS.
18306         (likely_eliminated_by_inlining_p): New predicate.
18307         (estimate_function_body_sizes): New function.
18308         (compute_inline_parameters): Use it.
18309         * except.c (must_not_throw_labels): New function.
18310         * except.h (must_not_throw_labels): Declare.
18311         * tree-inline.c (init_inline_once): Kill inlining_weigths
18312         * tree-ssa-structalias.c: Avoid uninitialized warning.
18313         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
18314         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
18315         (PARAM_INLINE_CALL_COST): Remove.
18316         (PARAM_EARLY_INLINING_INSNS): New.
18318 2009-05-15  Richard Guenther  <rguenther@suse.de>
18320         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
18321         not TODO_update_ssa.
18323 2009-05-15  Richard Guenther  <rguenther@suse.de>
18325         PR tree-optimization/39999
18326         * gimple.h (gimple_expr_type): Use the expression type looking
18327         through useless conversions.
18328         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
18329         (vn_nary_op_insert_stmt): Likewise.
18330         (simplify_binary_expression): Likewise.
18332 2009-05-15  Richard Guenther  <rguenther@suse.de>
18334         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
18335         New options, enabled by default.
18336         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
18337         Document.
18338         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
18339         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
18340         * tree-ssa-structalias.c (gate_tree_pta): New function.
18341         (pass_build_alias): Use it.
18343 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
18345         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
18346         recurse on an invariant address if a conversion from a pointer
18347         type to a wider integer type is involved.
18349 2009-05-15  Jan Hubicka  <jh@suse.cz>
18351         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
18352         * cgraph.h (struct inline_summary): New filed self_wize,
18353         size_inlining_benefit, self_time and time_inlining_benefit.
18354         (struct cgraph_global_info): Replace insns by time ans size fields.
18355         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
18356         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
18357         (ipcp_update_callgraph): Do not touch function bodies.
18358         * ipa-inline.c: Include except.h
18359         (MAX_TIME): New constant.
18360         (overall_insns): Remove
18361         (overall_size, max_benefit): New static variables.
18362         (cgraph_estimate_time_after_inlining): New function.
18363         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
18364         (cgraph_clone_inlined_nodes): Update size.
18365         (cgraph_mark_inline_edge): Update size.
18366         (cgraph_estimate_growth): Use size info.
18367         (cgraph_check_inline_limits): Check size.
18368         (cgraph_default_inline_p): Likewise.
18369         (cgraph_edge_badness): Compute badness based on benefit and size cost.
18370         (cgraph_decide_recursive_inlining): Check size.
18371         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
18372         and times.
18373         (cgraph_decide_inlining): Likewise.
18374         (cgraph_decide_inlining_incrementally): Likewise; honor
18375         PARAM_EARLY_INLINING_INSNS.
18376         (likely_eliminated_by_inlining_p): New predicate.
18377         (estimate_function_body_sizes): New function.
18378         (compute_inline_parameters): Use it.
18379         * except.c (must_not_throw_labels): New function.
18380         * except.h (must_not_throw_labels): Declare.
18381         * tree-inline.c (init_inline_once): Kill inlining_weigths
18382         * tree-ssa-structalias.c: Avoid uninitialized warning.
18383         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
18384         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
18385         (PARAM_INLINE_CALL_COST): Remove.
18386         (PARAM_EARLY_INLINING_INSNS): New.
18387         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
18388         (inline-call-cost): Remove.
18389         (early-inlining-insns): New.
18391 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
18393         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
18394         for bounds.
18395         (print_int_cst_bounds_in_octal_p): Likewise.
18396         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
18397         with subtypes.
18398         * dwarf2out.c (base_type_die): Likewise.
18399         (is_subrange_type): Delete.
18400         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
18401         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
18402         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
18403         if the destination type is boolean.
18404         (build_range_check): Do not special-case subtypes.
18405         (fold_sign_changed_comparison): Likewise.
18406         (fold_unary): Likewise.
18407         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
18408         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
18409         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
18410         * tree.c (subrange_type_for_debug_p): New predicate based on the
18411         former is_subrange_type.
18412         * tree.h (subrange_type_for_debug_p): Declare.
18413         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
18414         (convert_affine_scev): Remove call to above function.
18415         (chrec_convert_aggressive): Likewise.
18416         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
18417         false for conversions involving subtypes.
18418         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
18419         (vrp_val_min): Likewise.
18420         (needs_overflow_infinity): Likewise.
18421         (extract_range_from_unary_expr): Likewise.
18423 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
18425         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
18426         * config/frv/frv.c: Likewise.
18427         * config/s390/s390.c: Likewise.
18428         * config/sparc/sparc.h: Likewise.
18429         * config/i386/i386.h: Likewise.
18430         * config/i386/i386.c: Likewise.
18431         * config/crx/crx.c: Likewise.
18432         * config/m68hc11/m68hc11.h: Likewise.
18433         * config/iq2000/iq2000.c: Likewise.
18434         * config/mn10300/mn10300.h: Likewise.
18435         * config/mn10300/mn10300.c: Likewise.
18436         * config/m68k/m68k.c: Likewise.
18437         * config/rs6000/rs6000.c: Likewise.
18438         * config/rs6000/xcoff.h: Likewise.
18439         * config/rs6000/linux64.h: Likewise.
18440         * config/rs6000/sysv4.h: Likewise.
18441         * config/score/score3.c: Likewise.
18442         * config/score/score7.c: Likewise.
18443         * config/score/score.c: Likewise.
18444         * config/arm/arm.md: Likewise.
18445         * config/mips/mips.c: Likewise.
18446         * config/mips/mips.md: Likewise.
18447         * config/bfin/bfin.h: Likewise.
18448         * config/pa/pa.c: Likewise.
18449         * config/pa/constraints.md: Likewise.
18451         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
18452         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
18453         * config/pdp11/pdp11.h: Use memory_address_p instead.
18455 2009-05-14  Ian Lance Taylor  <iant@google.com>
18457         * passes.c (finish_optimization_passes): Change i to int.
18458         * plugin.c (plugins_active_p): Change event to int.
18459         (dump_active_plugins): Likewise.
18460         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
18461         Add cast.
18462         * tree.c (tree_range_check_failed): Change c to unsigned int.
18463         (omp_clause_range_check_failed): Likewise.
18464         (build_common_builtin_nodes): Change mode to int.  Add cast.
18465         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
18466         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
18468         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
18469         ++ or -- with a variable of enum type.
18471 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
18473         PR driver/40144
18474         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
18476 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
18478         * store-motion.c: Do not include params.h
18479         * Makefile.in: Fix dependencies for various files.
18481 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
18483         * auto-inc-dec.c: Fix pass description, remove apparent
18484         accidental duplication.
18486 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18488         PR middle-end/40147
18489         * ipa-utils.h (memory_identifier_string): Moved to ...
18490         * tree.h (memory_identifier_string): Here.  Add GTY(()).
18492 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
18494         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
18495         in the former documentation of...
18496         (GO_IF_LEGITIMATE_ADDRESS): ... this.
18497         * ira-conflicts.c (get_dup_num): Use address_operand.
18498         * targhooks.c (default_legitimate_address_p): New.
18499         * targhooks.h (default_legitimate_address_p): New.
18500         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
18501         Call hook.
18502         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
18503         * target.h (struct target): Add legitimate_address_p.
18504         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
18505         (TARGET_INITIALIZER): Include it.
18507         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18508         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
18509         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
18510         (TARGET_LEGITIMATE_ADDRESS_P): New.
18512         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18513         (REG_OK_STRICT_P): Delete.
18514         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
18515         (frv_legitimate_address_p_1): ... this.
18516         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
18517         (frv_legitimate_address_p_1): ... the renamed old
18518         frv_legitimate_address_p.
18519         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
18520         (TARGET_LEGITIMATE_ADDRESS_P): New.
18522         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18523         * config/s390/s390-protos.h (legitimate_address_p): Remove.
18524         * config/s390/s390.c (legitimate_address_p): Rename to...
18525         (s390_legitimate_address_p): ... this, make static.
18526         (legitimize_address): Adjust call.
18527         (TARGET_LEGITIMATE_ADDRESS_P): New.
18528         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
18530         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18531         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
18532         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
18533         (TARGET_LEGITIMATE_ADDRESS_P): New.
18535         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18536         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
18537         * config/spu/spu.c (spu_legitimate_address): Rename to...
18538         (spu_legitimate_address_p): ... this, make static.
18539         (TARGET_LEGITIMATE_ADDRESS_P): New.
18541         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18542         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
18543         * config/sparc/sparc.c (legitimate_address_p): Rename to...
18544         (sparc_legitimate_address_p): ... this, make static and return bool.
18545         (legitimize_address): Adjust call.
18546         (TARGET_LEGITIMATE_ADDRESS_P): New.
18548         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18549         * config/i386/i386-protos.h (legitimate_address_p): Remove.
18550         * config/i386/i386.c (legitimate_address_p): Rename to...
18551         (ix86_legitimate_address_p): ... this, make static.
18552         (constant_address_p): Move after it, adjust call.
18553         (TARGET_LEGITIMATE_ADDRESS_P): New.
18555         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18556         * config/avr/avr-protos.h (legitimate_address_p): Remove.
18557         * config/avr/avr.c (legitimate_address_p): Rename to...
18558         (avr_legitimate_address_p): ... this, make static.
18559         (legitimize_address): Adjust call.
18560         (TARGET_LEGITIMATE_ADDRESS_P): New.
18562         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18563         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
18564         * config/crx/crx.c (crx_legitimate_address_p): Make static.
18565         (TARGET_LEGITIMATE_ADDRESS_P): New.
18567         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18568         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
18569         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
18570         (TARGET_LEGITIMATE_ADDRESS_P): New.
18572         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18573         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
18574         Remove.
18575         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
18576         Make static.
18577         (TARGET_LEGITIMATE_ADDRESS_P): New.
18579         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18580         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
18581         Remove.
18582         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
18583         Rename to...
18584         (m68hc11_legitimate_address_p): ... this, make static.
18585         (go_if_legitimate_address_internal): Rename to...
18586         (m68hc11_legitimate_address_p_1): ... this.
18587         (legitimize_address): Adjust call.
18588         (TARGET_LEGITIMATE_ADDRESS_P): New.
18590         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18591         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
18592         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
18593         (TARGET_LEGITIMATE_ADDRESS_P): New.
18595         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18596         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
18597         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
18598         (mn10300_legitimate_address_p): ... this, make static.
18599         (TARGET_LEGITIMATE_ADDRESS_P): New.
18601         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18602         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
18603         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
18604         (TARGET_LEGITIMATE_ADDRESS_P): New.
18606         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18607         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
18608         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
18609         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18610         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
18611         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
18612         (rs6000_legitimate_address_p): ... this, make static.
18613         (TARGET_LEGITIMATE_ADDRESS_P): New.
18614         (REG_MODE_OK_FOR_BASE_P): Delete.
18615         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
18617         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18618         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
18619         Delete.
18620         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
18621         static, adjust types.
18622         (TARGET_LEGITIMATE_ADDRESS_P): New.
18624         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18625         * config/score/score.c (score_address_p): Rename to...
18626         (score_legitimate_address_p): ... this.
18627         (TARGET_LEGITIMATE_ADDRESS_P): New.
18628         * config/score/score3.c (score3_address_p): Rename to...
18629         (score3_legitimate_address_p): ... this.
18630         * config/score/score7.c (score7_address_p): Rename to...
18631         (score7_legitimate_address_p): ... this.
18633         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
18634         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
18635         GO_IF_LEGITIMATE_ADDRESS): Delete.
18636         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
18637         thumb2_legitimate_address_p): Delete.
18638         (arm_legitimate_address_p): Rename to...
18639         (arm_legitimate_address_outer_p): ... this.
18640         * config/arm/constraints.md ("Uq"): Adjust call.
18641         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
18642         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
18643         to...
18644         (arm_legitimate_address_outer_p): ... this.
18645         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
18646         static.
18647         (TARGET_LEGITIMATE_ADDRESS_P): New.
18649         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18650         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
18651         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
18652         (TARGET_LEGITIMATE_ADDRESS_P): New.
18654         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18655         * config/vax/vax-protos.h (legitimate_address_p): Remove.
18656         * config/vax/vax.c (legitimate_address_p): Rename to...
18657         (vax_legitimate_address_p): ... this, make static.
18658         (TARGET_LEGITIMATE_ADDRESS_P): New.
18660         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18661         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
18662         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
18663         (TARGET_LEGITIMATE_ADDRESS_P): New.
18665         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18666         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
18667         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
18668         (mmix_legitimate_address_p): ... this, make static.
18669         (TARGET_LEGITIMATE_ADDRESS_P): New.
18671         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
18672         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
18673         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
18674         (TARGET_LEGITIMATE_ADDRESS_P): New.
18676 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
18678         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
18679         of MODE_COMPLEX_INT.
18681 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18683         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
18684         LCT_NORMAL in function call.
18685         * mips-tdump.c (print_file_desc): Add cast to enum type.
18686         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
18687         (mark_stabs): Add casts to enum types.
18688         (parse_stabs_common): Add casts to enum types.
18690 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
18692         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
18693         Check for invalid values of LETTER.
18695 2009-05-13  Taras Glek  <tglek@mozilla.com>
18697         * attribs.c (register_attribute): moved out attribute registration
18698         into register_attribute.
18699         * doc/plugins.texi: Documented register_attribute and
18700         PLUGIN_ATTRIBUTES.
18701         * gcc-plugin.h: Added forward decl for register_attribute.
18702         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
18703         * plugin.c (register_callback, invoke_plugin_callbacks): Added
18704         PLUGIN_ATTRIBUTES boilerplate.
18706 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
18708         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
18709         values even in sentinel and empty entries.
18710         (ms_printf_flag_specs):  Likewise.
18711         (ms_scanf_flag_specs):  Likewise.
18712         (ms_strftime_flag_specs):  Likewise.
18713         (ms_print_char_table):  Likewise.
18714         (ms_scan_char_table):  Likewise.
18715         (ms_time_char_table):  Likewise.
18717 2009-05-13  Doug Kwan  <dougkwan@google.com>
18719         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
18721 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
18723         * config/mips/mips.md (store): Add attributes for QI and HI.
18724         Update comment.
18725         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
18726         (truncdi<mode>2): ... this new pattern.
18728 2009-05-13  Brad Hards  <bradh@kde.org>
18730         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
18732 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
18733             Ben Elliston <bje@au.ibm.com>
18735         PR middle-end/40035
18736         * dse.c (check_mem_read_rtx): Guard against width == -1.
18738 2009-05-13  Michael Matz  <matz@suse.de>
18740         PR middle-end/39976
18741         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
18742         (trivially_conflicts_p): New function.
18743         (insert_backedge_copies): Use it.
18745 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
18747         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
18748         (handle_stdc_pragma): Use new enum constant names.
18749         (handle_pragma_float_const_decimal64): Ditto.
18751 2009-05-13  Ian Lance Taylor  <iant@google.com>
18753         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
18754         tree.def.
18756 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
18758         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
18759         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
18760         multilibs.
18761         * config/m68k/m68k.h (FL_UCLINUX): Define.
18763 2009-05-13  Jan Hubicka  <jh@suse.cz>
18765         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
18767 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
18769         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
18770         unless -fschedule-insns is specified.
18772 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
18774         PR target/39561
18775         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
18776         TARGET_EXPAND_CBRANCHDI4.
18777         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
18778         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
18779         (cmpeqdi): Fix comment.
18781 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
18783         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
18784         (sh_legitimate_address_p): Likewise.
18785         * config/sh/sh.c (sh_legitimate_index_p): New.
18786         (sh_legitimate_address_p): Likewise.
18787         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
18788         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
18789         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
18790         (MAYBE_BASE_REGISTER_RTX_P): New macro.
18791         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
18792         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
18793         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
18794         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
18795         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
18797 2009-05-12  Jan Hubicka  <jh@suse.cz>
18799         * tree-inline.c (estimate_operator_cost): Add operands;
18800         when division happens by constant, it is cheap.
18801         (estimate_num_insns): Loads and stores are not having cost of 0;
18802         EH magic stuff is cheap; when computing runtime cost of switch,
18803         use log2 base of amount of its cases; builtin_expect has cost of 0;
18804         compute cost for moving return value of call.
18805         (init_inline_once): Initialize time_based flags.
18806         * tree-inline.h (eni_weights_d): Add time_based flag.
18808 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
18810         * df-core.c: Update head documentation.
18812 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
18814         PR bootstrap/40118
18815         * rs6000.c (rs6000_generate_compare): Use op1b instead of
18816         shadowing exisiting variable op1.
18818 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
18820         PR target/37179
18821         * config/i386/driver-i386.c (processor_signatures): New enum.
18822         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
18823         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
18824         processor signature to detect geode processor.
18826 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
18828         Revert:
18830         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
18832         * optabs.c (prepare_cmp_insn): Temporarily disable test that
18833         causes spurious differences between trunk and cond-optab branch.
18835 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
18837         * dojump.c (compare_from_rtx): Delete.
18838         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
18839         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
18840         if the comparison does not satisfy the predicate; test predicates for
18841         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
18842         further if one existing pattern fails.
18843         * expr.h (compare_from_rtx): Delete.
18844         (prepare_operand): Declare it.
18845         * optabs.c: Change "lib call" to "libcall" throughout.
18846         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
18847         HAVE_conditional_trap, emit_cmp_insn): Delete.
18848         (can_compare_p): Delete cmp_optab case.
18849         (prepare_float_lib_cmp): Return an rtx and a machine mode.
18850         Accept other parameters by value.
18851         (prepare_operand): Make non-static.
18852         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
18853         other parameters by value.  Try to widen operands here based on
18854         an optab_methods argument and looking at cbranch_optab.
18855         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
18856         loop.  Use cbranch_optab directly.
18857         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
18858         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
18859         assertion.
18860         (emit_conditional_move, emit_conditional_add): Inline what's needed
18861         of compare_from_rtx, using new prepare_cmp_insn for the rest.
18862         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
18863         with COMPARE.  Move cmov_optab and cstore_optab above
18864         with cbranch_optab, move cmp_optab down with ucmp_optab,
18865         remove tst_otpab.  Do not initialize trap_rtx.
18866         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
18867         for trap code.  Do not check HAVE_conditional_trap.  Use
18868         prepare_cmp_insn.  Accept no predicate for operand 3.
18869         * optabs.h (OTI_cmp): Mark as used only for libcalls.
18870         (OTI_ctrap, ctrap_optab): New.
18871         (tst_optab): Delete.
18872         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
18873         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
18874         with lookup of ctrap_optab.
18875         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
18876         Delete.
18877         (ctrap_optab): New.
18879         * combine.c (combine_simplify_rtx, simplify_set): Do not
18880         special case comparing against zero for cc0 machines.
18881         * simplify-rtx.c (simplify_binary_operation_1): Never remove
18882         COMPARE on cc0 machines.
18883         (simplify_relational_operation): Return a new expression when
18884         a COMPARE could be removed.
18885         * final.c (final_scan_insn): Compare cc_status values
18886         against LHS of a (compare FOO (const_int 0)) cc0 source.
18887         Also check if cc_status.value is the full compare.
18889         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
18890         (cstoreMM4): Document.
18891         (conditional_trap): Document ctrapMM4 instead.
18892         (sync_compare_and_swapMM): Refer to cbranchcc4.
18893         (Dependent Patterns): Eliminate obsolete information referring to
18894         the old jump optimization phase.
18895         (Canonicalization): Include cbranchcc4 case, omit canonicalization
18896         of compares with 0 on cc0 machines.
18897         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
18898         avoiding references to cc0.  Remove text about storing operands
18899         in cmpMM.
18900         * doc/tm.texi (Condition Codes): Include blurb on different
18901         condition code representations, separate into subsections for
18902         CC0, MODE_CC and conditional execution.
18904         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
18905         alpha_emit_setcc): Accept operands and a machine mode.
18906         * config/alpha/alpha.c (alpha_emit_conditional_branch):
18907         Get code/op0/op1 from operands, use machine mode argument
18908         instead of alpha_compare.fp_p.  Emit the branch here.
18909         (alpha_emit_setcc): Likewise, and return boolean.
18910         (alpha_emit_conditional_move): Likewise.  Assert that
18911         cmp_op_mode == cmp_mode, and simplify accordingly.
18912         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
18913         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
18914         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
18915         Delete.
18916         (stack probe test): Use cbranchdi4.
18917         * config/alpha/predicates.md (alpha_cbranch_operator): New.
18919         * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
18920         * config/arc/arc.h (movsicc, movsfcc): Use it.
18921         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
18922         (cbranchsi4, cstoresi4): New.
18923         (cmpsi, bCC and sCC expanders): Remove.
18925         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
18926         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
18927         * config/arm/predicates.md (arm_comparison_operator): Only include
18928         floating-point operators if there is a hardware floating-point unit.
18929         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
18930         deferring to cbranch_cc and cstore_cc respectively.
18931         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
18932         cbranch_cc, cstore_cc): New.
18933         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
18934         arm_compare_op1.
18935         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
18937         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
18938         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
18939         as an argument.
18940         (adjust_insn_length): Adjust calls.
18941         (avr_reorg): Handle (compare (foo) (const_int 0)).
18942         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
18943         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
18944         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
18945         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
18946         (bCC): Remove.
18947         (cbranchqi4, cbranchhi4, cbranchsi4): New.
18948         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
18950         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
18951         (cbranchsi4, cstorebi4, cstoresi4): New.
18952         (movbisi): This insn is duplicate, split it to zero_extend.
18953         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
18954         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
18955         (bfin_optimize_loop): Use cbranch expander.
18956         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
18957         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
18958         (bfin_bimode_comparison_operator): ... this.
18959         (bfin_direct_comparison_operator): New.
18961         * config/cris/cris.c (cris_normal_notice_update_cc): Look
18962         inside (compare FOO (const_int 0)).
18963         (cris_rtx_costs): Handle ZERO_EXTRACT.
18964         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
18965         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
18966         (*tstdi_v32): Delete.
18967         (*cmpdi_non_v32): Add M alternative for operand 1.
18968         (cmpsi, cmp<mode>): Make private.
18969         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
18970         with COMPARE.
18971         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
18973         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
18974         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
18975         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
18976         (cc_reg_operand): New.
18977         (any_cond): Delete.
18978         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
18979         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
18980         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
18981         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
18982         crx_expand_scond): Delete.
18984         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
18985         (cbranchsi4): New.
18986         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
18987         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
18989         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
18990         cstoresi4, cstoresf4, cstoredf4): New.
18991         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
18992         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
18993         Receive the entire operands array.
18994         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
18995         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
18996         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
18997         Get test/op0/op1 from the operands array.
18998         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
19000         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
19001         (h8300_expand_store): New.
19002         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
19003         (const_int 0)).
19004         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
19005         (h8300_expand_store): New.
19006         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
19007         or do not try to produce (set (cc0) REG).
19008         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
19009         change a compare into a move to a scratch register.  Disable some
19010         peepholes when comparing with zero.
19011         (tstsi, tsthi, tstsi, cmpqi): Make private.
19012         (cmphi): Delete.
19013         (bCC, sCC): Delete.
19014         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
19015         cstoresi4): New.
19017         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
19018         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
19019         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
19020         (ix86_emit_i387_log1p): Use cbranchxf2.
19021         (ix86_expand_setcc): Return void.
19022         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
19023         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
19024         cmp<MODEF>, cmpcc): Remove.
19025         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
19026         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
19027         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
19028         (sCC and bCC expanders): Remove.
19029         (stack_protect_test): Use cbranchcc4.
19031         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
19032         Delete.
19033         (ia64_expand_compare): Accept three rtx by reference and return void.
19034         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
19035         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
19036         from *expr.  Update *expr with the BImode comparison to do.
19037         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
19038         cmptf, bCC, sCC, conditional_trap): Delete.
19039         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
19040         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
19041         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
19042         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
19043         * config/ia64/predicates.md (ia64_cbranch_operator): New.
19045         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
19046         type of last argument.
19047         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
19048         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
19049         use machine mode argument instead of branch_type.  Remove dead
19050         code for floating-point comparisons.
19051         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
19052         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
19053         Remove.
19054         (cbranchsi4, cstoresi4): New.
19055         * config/iq2000/predicates.md (reg_or_const_operand): New.
19057         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
19058         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
19059         (b<code>_op): Rewrite to...
19060         (bcc_op): ... this, using match_operator.
19061         (s<code>_op): Rewrite to...
19062         (scc_op): ... this, using match_operator.
19063         (s<code>_24_op): Rewrite to...
19064         (scc_op_24): ... this, using match_operator.
19065         (s<code>_<mode>): Rewrite to...
19066         (cstore<mode>4): ... this, using match_operator.
19067         (s<code>_<mode>_24): Rewrite to...
19068         (cstore<mode>4_24): ... this, using match_operator.
19069         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
19070         m32c_unpend_compare, m32c_expand_scc): Delete.
19071         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
19072         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
19073         (m32c_expand_movcc): Change NE to EQ if necessary.
19074         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
19076         * config/m32r/m32r-protos.h (gen_cond_store): New.
19077         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
19078         (gen_cond_store): New, from sCC patterns.
19079         (m32r_expand_block_move): Use cbranchsi4.
19080         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
19081         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
19082         (cbranchsi4, cstoresi4): New.
19084         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
19085         Delete.
19086         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
19087         (m68hc11_notice_update_cc): Look into a compare with 0.
19088         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
19089         Delete.
19090         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
19091         cmphi, cmpqi, bCC): Delete.
19092         (cbranchsi4, cbranchhi4, cbranchqi4): New.
19093         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
19094         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
19095         sets with COMPARE.
19097         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
19098         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
19099         * config/m68k/constraints.md (H): New.
19100         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
19101         the define_insn below.
19102         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
19103         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
19104         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
19105         patterns): Wrap RHS with COMPARE.
19106         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
19107         (*cmpdi_internal): Name this pattern.
19108         (cmpdi): Change to define_insn.
19109         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
19110         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
19111         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
19112         predicate.
19113         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
19114         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
19115         (conditional_trap): Change to...
19116         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
19117         (*conditional_trap): Use the ordered_comparison_operator and
19118         const1_operand predicates.
19119         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
19120         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
19121         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
19122         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
19124         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
19125         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
19126         (mcore_gen_compare): New.
19127         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
19128         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
19129         (mcore_gen_compare): ... this.
19130         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
19131         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
19132         (stack probe pattern): Use cbranchsi4.
19134         * config/mips/predicates.md (mips_cstore_operator): New.
19135         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
19136         * config/mips/mips.md (any_cond): Delete.
19137         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
19138         always succeed.
19139         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
19140         fixuns_truncsfdi2): Use cbranch patterns.
19141         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
19142         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
19143         Adjust call to mips_expand_conditional_branch.
19144         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
19145         cstore<GPR:mode>4.
19146         * config/mips/mips-protos.h (mips_expand_conditional_branch,
19147         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
19148         * config/mips/mips.c (cmp_operands): Delete.
19149         (mips_emit_compare): Get comparison operands from *op0/*op1.
19150         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
19151         that it succeeds.  Use op0/op1 instead of cmp_operands.
19152         (mips_expand_conditional_branch, mips_expand_conditional_move,
19153         mips_expand_conditional_trap): Likewise.
19154         (mips_block_move_loop): Use cbranch patterns.
19155         * config/mips/mips.h (cmp_operands): Delete.
19157         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
19158         (mmix_gen_compare_reg): Just return a register in the right CC mode.
19159         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
19160         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
19161         (*cmpcc_folded): Rename to...
19162         (*cmpdi_folded): this.
19163         (*cmpcc): Rename to...
19164         (*cmps): ... this.
19165         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
19166         (bCC): Remove.
19167         (cbranchdi4): New.
19168         (cbranchdf4): New.  Handle invalid comparisons here.
19169         * config/mmix/predicates.md (float_comparison_operator): New.
19171         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
19172         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
19173         * config/mn10300/mn10300.md (tst): Delete.
19174         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
19175         Name these patterns and wrap RHS in a compare.
19176         (*cmpsi): Make this pattern private.  Include tst.
19177         (*cmpsf): Make this pattern private.
19178         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
19179         (compare with zero peepholes): Likewise.
19180         (bCC): Remove.
19181         (cbranchsi4, cbranchsf4): New.
19182         (casesi): Use cbranchsi4.
19184         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
19185         hppa_branch_type): Delete.
19186         (return_addr_rtx): Use cbranchsi4.
19187         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
19188         Emit CCFPmode comparison here.
19189         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
19190         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
19191         hppa_branch_type): Delete.
19192         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
19193         (movsicc, movdicc): Remove references to hppa_compare_op0,
19194         hppa_compare_op1 and compare_from_rtx.
19195         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
19196         (casesi): Use cbranchsi4.
19198         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
19199         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
19200         * config/pdp11/pdp11.md (register_or_const0_operand): New.
19201         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
19202         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
19203         (bCC): Delete.
19204         (cbranchdf4, cbranchhi4, cbranchqi4): New.
19205         (*branch, *branch_inverted): New.
19207         * config/picochip/picochip.md (cbranchhi4): Use
19208         ordered_comparison_operator.
19209         (cmphi, bCC): Remove.
19211         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
19212         (trap_comparison_operator): Delete.
19213         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
19214         rs6000_emit_cbranch): Accept mode and operands.
19215         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
19216         rs6000_compare_fp_p): Delete.
19217         (rs6000_generate_compare): Accept mode and comparison.  Extract code
19218         and op0/op1 from there.  Replace references to rs6000_compare_op0
19219         and rs6000_compare_op1.
19220         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
19221         extract result from passed operands.
19222         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
19223         extract loc from passed operands.
19224         (rs6000_emit_cmove): Likewise.
19225         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
19226         rs6000_compare_fp_p): Delete.
19227         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
19228         (cbranch<GPR>4, cbranch<FP>4): New.
19229         (cstore<mode>4): New.  Consolidate here all choices about when to use
19230         portable or specialized sCC sequences.
19231         (stack_protect_test): Use cbranchsi4.
19232         (conditional_trap): Replace with ctrap<GPR>4.
19233         (conditional trap insn): Replace trap_comparison_operator with
19234         ordered_comparison_operator.
19236         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
19237         (s390_emit_prologue): Use ctrap.
19238         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
19239         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
19240         New predicates replacing...
19241         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
19242         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
19243         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
19244         (add<mode>cc): Do not use s390_compare_op0/op1.
19245         (s<code>): Change to...
19246         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
19247         (seq): Change to...
19248         (cstorecc4): ... this.  Handle EQ or NE equally.
19249         (*sne): Un-privatize for use in cstorecc4.
19250         (b<code>): Change to...
19251         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
19252         (conditional_trap): Replace with...
19253         (ctrap<GPR>4, ctrap<FP>4): ... these.
19254         (stack_protect): Use cbranchcc4.
19256         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
19257         * config/score/score-protos.h (score_gen_cmp): Delete.
19258         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
19259         (score_block_move-loop): Use cbranchsi4.
19260         * config/score/score.md (cbranchsi4): New.
19261         (cmpsi, bCC): Delete.
19262         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
19263         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
19264         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
19265         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
19266         * config/score/score3.h (score3_gen_cmp): Delete.
19267         * config/score/score7.h (score7_gen_cmp): Delete.
19269         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
19270         (sh_emit_scc_to_t): ... this.  Return void.
19271         (from_compare): Rename to...
19272         (sh_emit_compare_and_branch): ... this.
19273         (sh_emit_compare_and_set): New.
19274         (sh_expand_t_scc): Accept operands.
19275         * config/sh/predicates.md (sh_float_comparison_operator): New.
19276         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
19277         (prepare_scc_operands): Rename to...
19278         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
19279         arguments.
19280         (sh_emit_cheap_store_flag): New.
19281         (sh_emit_set_t_insn): New.
19282         (from_compare): Rename to...
19283         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
19284         handling of TARGET_SH2E floating point to avoid recursive call.
19285         Generate branch here.
19286         (sh_emit_compare_and_set): New.
19287         (sh_expand_t_scc): Get op0/op1 from arguments.
19288         (sh_emit_cheap_store_flag): New.
19289         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
19290         cases.
19291         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
19292         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
19293         (movsicc, movdicc): Do nothing when it recreated operands from
19294         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
19295         prepare_scc_operands (now sh_emit_scc_to_t).
19296         (udivdi3): Use cstoresi4.
19297         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
19298         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
19299         (cbranchint4_media, cbranchfp4_media): New.
19300         (casesi): Use cbranchdi4.
19301         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
19302         Delete.
19303         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
19304         (movnegt): Remove second operand.
19305         (cbranchsf4, cbranchdf4): New.
19306         (stack_protect): Use cbranchdi4/cbranchsi4.
19308         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
19309         (gen_compare_reg): Accept comparison, extract part of it to...
19310         (gen_compare_reg_1): ... this.
19311         (gen_compare_operator): Delete.
19312         (gen_v9_scc): Accept separate destination, comparison code and arms.
19313         Do not use sparc_compare_op0/sparc_compare_op1.
19314         (emit_scc_insn, emit_conditional_branch_insn): New.
19315         (emit_v9_brxx): Make static.  Remove useless assertion.
19316         (sparc_emit_float_lib_cmp): Return RTL instead of calling
19317         emit_cmp_insn.
19318         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
19319         * config/sparc/sparc-protos.h (gen_compare_reg,
19320         sparc_emit_float_lib_cmp): Adjust prototype.
19321         (emit_scc_insn, emit_conditional_branch_insn): New.
19322         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
19323         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
19324         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
19325         iterators to the top.
19326         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
19327         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
19328         snedi_special_trunc): Delete.
19329         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
19330         and snedi_special_trunc.
19331         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
19332         cbranchdi4, cbranch<F:mode>4): New.
19333         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
19334         here.  Use gen_compare_reg instead of gen_compare_operator.
19335         (conditional_trap): Replace with...
19336         (ctrapsi4, ctrapdi4): ... this.
19337         (stack_protect_test): Use cbranchcc4.
19339         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
19340         argument to rtx.
19341         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
19342         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
19343         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
19344         from operands[0] or operands[3] depending on is_set.
19345         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
19346         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
19347         cmpdf, bCC), sCC: Remove.
19348         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
19349         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
19350         cstoredf4): New.
19351         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
19352         spu_emit_branch_or_set.
19354         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
19355         Add two arguments.
19356         * config/stormy16/stormy16.h (xstormy16_compare_op0,
19357         xstormy16_compare_op1): Delete.
19358         * config/stormy16/stormy16.c (xstormy16_compare_op0,
19359         xstormy16_compare_op1): Delete.
19360         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
19361         Adjust calls.
19362         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
19363         (cmphi, cmpsi, bCC): Remove.
19365         * config/v850/v850.md (tstsi, cmpsi): Fold into...
19366         (*cmpsi): ... this one.
19367         (cbranchsi4, cstoresi4): New.
19368         (bCC expanders): Delete.
19369         (sCC insns): Fold into...
19370         (*setcc): ... this one.
19371         (casesi): Do not use gen_cmpsi and gen_bgtu.
19372         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
19373         (movsicc): Simplify.
19374         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
19376         * config/vax/vax-protos.h (cond_name): New.
19377         (vax_output_conditional_branch): Remove.
19378         * config/vax/vax.c (cond_name): New.
19379         (vax_output_conditional_branch): Remove.
19380         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
19381         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
19382         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
19383         (bit<VAXint>): Wrap source with (compare).
19384         (b<code> and following unnamed pattern): Rename to *branch and
19385         *branch_reversed.  Change macroization to match_operator.
19386         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
19388         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
19389         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
19390         Change last argument to machine_mode.
19391         (xtensa_expand_scc): Add machine_mode argument.
19392         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
19393         (gen_conditional_move, xtensa_expand_conditional_branch,
19394         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
19395         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
19396         Adjust operand numbers.
19397         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
19398         Delete.
19399         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
19400         (cmpsi, cmpsf, b<code>, s<code>): Delete.
19401         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
19403 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
19405         * optabs.c (prepare_cmp_insn): Temporarily disable test that
19406         causes spurious differences between trunk and cond-optab branch.
19408 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
19410         PR target/37137
19411         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
19413 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
19415         * tree.c (iterative_hash_pointer): Delete.
19416         (iterative_hash_expr): Short-circuit handling of NULL pointer.
19417         Hash UIDs and versions of SSA names.  Don't special-case built-in
19418         function declarations.
19420 2009-05-11  Ian Lance Taylor  <iant@google.com>
19422         PR bootstrap/40103
19423         * graphite.c: Force -Wc++-compat to only be a warning before
19424         #including "cloog/cloog.h".
19426 2009-05-11  Martin Jambor  <mjambor@suse.cz>
19428         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
19430 2009-05-11  Jan Hubicka  <jh@suse.cz>
19432         * tree-ssa-loop-ivcanon.c: Include target.h
19433         (struct loop_size): new structure.
19434         (constant_after_peeling): New predicate.
19435         (tree_estimate_loop_size): New function.
19436         (estimated_unrolled_size): Rewrite for new estimates.
19437         (try_unroll_loop_completely): Use new estimates.
19438         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
19440 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19442         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
19443         libcpp interface change.
19444         (spu_macro_to_expand): Likewise.
19446 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
19448         PR tree-optimization/40026
19449         * gimplify.c (gimplify_init_constructor): Change initial conditional
19450         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
19451         optimize_compound_literals_in_ctor.
19453 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
19455         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
19456         New devices.
19457         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
19459 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
19461         * tree-vect-data-refs.c (vect_analyze_group_access): Use
19462         HOST_WIDE_INT for gap.
19464 2009-05-11  Ira Rosen  <irar@il.ibm.com>
19466         PR tree-optimization/40074
19467         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
19468         account in group size and step comparison.
19470 2009-05-11  Richard Guenther  <rguenther@suse.de>
19472         * passes.c (init_optimization_passes): Strip now incorrect comment.
19473         (execute_function_todo): Do not set PROP_alias.
19474         * tree-pass.h (PROP_alias): Remove.
19475         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
19476         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
19477         * tree-nrv.c (pass_return_slot): Likewise.
19478         * tree-object-size.c (pass_object_sizes): Likewise.
19479         * tree-ssa-dom.c (pass_dominator): Likewise.
19480         (pass_phi_only_cprop): Likewise.
19481         * tree-ssa-dse.c (pass_dse): Likewise.
19482         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
19483         (pass_cselim): Likewise.
19484         * tree-ssa-pre.c (pass_pre): Likewise.
19485         (pass_fre): Likewise.
19486         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
19487         * tree-ssa-sink.c (pass_sink_code): Likewise.
19488         * tree-stdarg.c (pass_stdarg): Likewise.
19489         * tree-tailcall.c (pass_tail_calls): Likewise.
19490         * tree-vrp.c (pass_vrp): Likewise.
19492 2009-05-10  Ian Lance Taylor  <iant@google.com>
19494         * basic-block.h (enum profile_status): Break out of struct
19495         control_flow_graph.
19496         * cgraph.h (struct inline_summary): Break out of struct
19497         cgraph_local_info.
19498         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
19499         of struct cgraph_order_sort.
19500         * combine.c (enum undo_kind): New enum, broken out of struct undo.
19501         * cse.c (struct branch_path): Break out of struct
19502         cse_basic_block_data.
19503         * except.h (enum eh_region_type): Break out of struct eh_region.
19504         * gcc.c (enum add_del): Break out of struct modify_target.
19505         * genrecog.c (enum decision_type): Break out of struct decision_test.
19506         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
19507         ggc_pch_data.
19508         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
19509         * regmove.c (enum match_use): New enum, broken out of struct match.
19510         * sched-int.h (enum post_call_group): New enum, broken out of
19511         struct deps.
19512         (struct deps_reg): Break out of struct deps.
19513         * target.h (struct asm_int_op): Break out of struct gcc_target.
19514         * tree-eh.c (struct goto_queue_node): Break out of struct
19515         leh_tf_state.
19516         * tree-inline.h (enum copy_body_cge_which): Break out of
19517         copy_body_data.
19518         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
19520         * c-decl.c (in_struct, struct_types): New static variables.
19521         (pushtag): Add loc parameter.  Change all callers.
19522         (lookup_tag): Add ploc parameter.  Change all callers.
19523         (check_compound_literal_type): New function.
19524         (parser_xref_tag): Add loc parameter.  Change all callers.  If
19525         -Wc++-compat, warn about struct/union/enum types defined within a
19526         struct or union.
19527         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
19528         and loc parameters.  Change all callers.  Change error calls to
19529         error_at, using loc.  For a redefinition, if the location of the
19530         original definition is known, report it.  Set in_struct and
19531         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
19532         (finish_struct): Add new parameters enclosing_in_struct and
19533         enclosing_struct_types.  Change all callers.  Set
19534         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
19535         in the struct.  If in a struct, add this struct to struct_types.
19536         (start_enum): Add loc parameter.  Change all callers.  Use
19537         error_at for errors, using loc.  For a redefinition, if the
19538         location of the original definition is known, report it.  If in a
19539         struct, add this enum type to struct_types.  If -Wc++-compat warn
19540         if in sizeof, typeof, or alignof.
19541         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
19542         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
19543         (c_parser_enum_specifier): Get enum location for start_enum.
19544         (c_parser_struct_or_union_specifier): Get struct location for
19545         start_struct.  Save in_struct and struct_types status between
19546         start_struct and finish_struct.
19547         (c_parser_cast_expression): Get location of cast.
19548         (c_parser_alignof_expression): Get location of type.
19549         (c_parser_postfix_expression): Likewise.
19550         (c_parser_postfix_expression_after_paren_type): Add type_loc
19551         parameter.  Change all callers.  Call check_compound_literal_type.
19552         Use type_loc for error about variable size type.
19553         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
19554         of an enum constant from an enum type defined in a struct or union.
19555         (c_cast_expr): Add loc parameter.  Change all callers.  If
19556         -Wc++-compat, warn about defining a type in a cast.
19557         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
19558         (start_enum, start_struct, finish_struct): Update declarations.
19559         (parser_xref_tag, c_cast_expr): Update declarations.
19560         (check_compound_literal_type): Declare.
19562 2009-05-11  Ben Elliston  <bje@au.ibm.com>
19564         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
19565         for recent libcpp interface change.
19566         (rs6000_macro_to_expand): Likewise.
19568 2009-05-10  Michael Matz  <matz@suse.de>
19570         PR target/40031
19571         * config/arm/arm.c (require_pic_register): Emit on entry edge,
19572         not at entry of function.
19574 2009-05-10  Richard Guenther  <rguenther@suse.de>
19576         PR tree-optimization/40081
19577         Revert
19578         * tree-sra.c (instantiate_element): Instantiate scalar replacements
19579         using the main variant of the element type.  Do not fiddle with
19580         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
19582         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
19583         structs with volatile fields.
19585 2009-05-10  Jan Hubicka  <jh@suse.cz>
19587         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
19588         (estimate_move_cost): Assert that it does not get called for
19589         VOID_TYPE_P.
19590         (estimate_num_insns): Skip VOID types in argument handling.
19591         (optimize_inline_calls): Delete unreachable blocks and verify that
19592         callgraph is valid.
19594 2009-05-10  Jan Hubicka  <jh@suse.cz>
19596         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
19597         * cgraph.c (cgraph_mark_address_taken_node): New function.
19598         (dump_cgraph_node): Dump new flag.
19599         * cgraph.h (struct cgraph_node): Add address_taken.
19600         (cgraph_mark_address_taken_node): New function.
19601         * ipa.c (cgraph_postorder): Prioritize functions with address taken
19602         since new direct calls can be born.
19604 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
19606         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
19607         tok->val.node.node.
19609 2009-05-10  Jan Hubicka  <jh@suse.cz>
19611         PR middle-end/40084
19612         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
19613         argument; rewrite.
19614         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
19615         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
19616         * tree-inline.c (copy_bb): Set frequency correctly.
19617         (fold_marked_statements): Update call to
19618         cgraph_update_edges_for_call_stmt.
19620 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
19622         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
19623         identifiers in diagnostics.
19624         * config/arm/arm.c (arm_handle_fndecl_attribute,
19625         arm_handle_isr_attribute): Likewise.
19626         * config/avr/avr.c (avr_handle_progmem_attribute,
19627         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
19628         * config/bfin/bfin.c (handle_int_attribute,
19629         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
19630         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
19631         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
19632         Likewise.
19633         * config/darwin.c (darwin_handle_kext_attribute,
19634         darwin_handle_weak_import_attribute): Likewise.
19635         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
19636         h8300_handle_eightbit_data_attribute,
19637         h8300_handle_tiny_data_attribute): Likewise.
19638         * config/i386/i386.c (ix86_handle_cconv_attribute,
19639         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
19640         * config/i386/winnt.c (ix86_handle_shared_attribute,
19641         ix86_handle_selectany_attribute): Likewise.
19642         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
19643         * config/m32c/m32c.c (function_vector_handler): Likewise.
19644         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
19645         m68hc11_handle_fntype_attribute): Likewise.
19646         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
19647         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
19648         * config/mips/mips.c (mips_insert_attributes,
19649         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
19650         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
19651         rs6000_handle_struct_attribute): Likewise.
19652         * config/sh/sh.c (sh_insert_attributes,
19653         sh_handle_resbank_handler_attribute,
19654         sh_handle_interrupt_handler_attribute,
19655         sh2a_handle_function_vector_handler_attribute,
19656         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
19657         Likewise.
19658         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
19659         * config/spu/spu.c (spu_handle_fndecl_attribute,
19660         spu_handle_vector_attribute): Likewise.
19661         * config/stormy16/stormy16.c
19662         (xstormy16_handle_interrupt_attribute): Likewise.
19663         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
19664         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
19666 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
19668         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
19669         (pp_translate_identifiers): New.
19670         (pp_identifier): Only conditionally translate identifier to locale
19671         character set.
19672         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
19673         (pp_base_tree_identifier): Only conditionally translate identifier
19674         to locale character set.
19675         * c-pretty-print.c (M_): Define.
19676         (pp_c_type_specifier, pp_c_primary_expression): Mark English
19677         fragments for conditional translation with M_.
19678         * tree-pretty-print.c (maybe_init_pretty_print): Disable
19679         identifier translation.
19681 2009-05-10  Richard Guenther  <rguenther@suse.de>
19683         PR tree-optimization/40081
19684         * tree-sra.c (instantiate_element): Instantiate scalar replacements
19685         using the main variant of the element type.  Do not fiddle with
19686         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
19688 2009-05-09  Jan Hubicka  <jh@suse.cz>
19690         PR middle-end/40080
19691         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
19692         indirect calls; verify cgraph afterwards.
19694 2009-05-09  Jan Hubicka  <jh@suse.cz>
19696         PR bootstrap/40082
19697         * ipa.c (update_inlined_to_pointer): New function.
19698         (cgraph_remove_unreachable_nodes): Use it.
19700 2009-05-09  Jan Hubicka  <jh@suse.cz>
19702         * tree-eh.c (struct leh_state): Remove prev_try.
19703         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
19704         not track prev_try.
19705         * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
19706         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
19707         remove_eh_handler_and_replace, foreach_reachable_handler,
19708         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
19709         * except.h (struct eh_region): Remove eh_region_u_cleanup.
19710         (gen_eh_region_cleanup): Update prototype.
19712 2009-05-09  Jan Hubicka  <jh@suse.cz>
19714         PR middle-end/40043
19715         * except.c (copy_eh_region): Always set prev_try.
19716         (redirect_eh_edge_to_label): Find outer try.
19717         (foreach_reachable_handler): When looking for prev try
19718         handle case where previous try is not going to be taken.
19720 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
19722         PR tree-optimization/40049
19723         * tree-vect-stmts.c (vectorizable_operation): If the machine has
19724         only vector/vector shifts, convert the type of the constant to the
19725         appropriate type to avoid building incorrect trees, which
19726         eventually have problems with garbage collection.
19728 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
19730         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
19731         -1 for complex floating-point types if honoring signed zeros.
19733 2009-05-08  Jan Hubicka  <jh@suse.cz>
19735         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
19736         argument; handle correctly when profile is absent.
19737         (build_cgraph_edges): Update.
19738         (rebuild_cgraph_edges): Update.
19739         * cgraph.c: Do not include varray.h.
19740         (cgraph_set_call_stmt_including_clones): New function.
19741         (cgraph_create_edge_including_clones): Likewise
19742         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
19743         (cgraph_update_edges_for_call_stmt): Handle clones.
19744         (cgraph_remove_node): Handle clone tree.
19745         (cgraph_remove_node_and_inline_clones): New function.
19746         (dump_cgraph_node): Dump clone tree.
19747         (cgraph_clone_node): Handle clone tree.
19748         (clone_function_name): Bring here from tree-inline.c.
19749         (cgraph_create_virtual_clone): New function.
19750         * cgraph.h (ipa_replace_map): Move here from ipa.h.
19751         (cgraph_clone_info): New function.
19752         (strut cgraph_node): Add clone_info and new clone tree pointers.
19753         (cgraph_remove_node_and_inline_clones,
19754         cgraph_set_call_stmt_including_clones,
19755         cgraph_create_edge_including_clones,
19756         cgraph_create_virtual_clone): Declare.
19757         (cgraph_function_versioning): Use VEC argument.
19758         (compute_call_stmt_bb_frequency): Update prototype.
19759         (cgraph_materialize_all_clones): New function.
19760         * ipa-cp.c (ipcp_update_cloned_node): Remove.
19761         (ipcp_create_replace_map): Update to VECtors.
19762         (ipcp_update_callgraph): Use virtual clones.
19763         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
19764         (ipcp_update_profiling): Do not update local profiling.
19765         (ipcp_insert_stage): Use VECtors and virtual clones.
19766         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
19767         (clone_of_p): New function.
19768         (cgraph_preserve_function_body_p): Use clone tree.
19769         (cgraph_optimize): Materialize clones.
19770         (cgraph_function_versioning): Update for VECtors.
19771         (save_inline_function_body): Use clone tree.
19772         (cgraph_materialize_clone): New function.
19773         (cgraph_materialize_all_clones): Likewise.
19774         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
19775         * ipa.c: Include gimple.h.
19776         (cgraph_remove_unreachable_nodes): Use clone tree.
19777         * ipa-prop.c (ipa_note_param_call): Update call to
19778         compute_call_stmt_bb_frequencycall.
19779         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
19780         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
19781         (copy_bb): Handle updating of clone tree; add new edge when new call
19782         appears.
19783         (expand_call_inline): Be strict about every call having edge.
19784         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
19785         (delete_unreachable_blocks_update_callgraph): New function.
19786         (tree_function_versioning): Use VECtors; always remove unreachable
19787         blocks and fold conditionals.
19788         * tree-inline.h: Do not include varray.h.
19789         (tree_function_versioning): Remove.
19790         * Makefile.in (GTFILES): Remove tree-inline.c
19791         * passes.c (do_per_function): Do only functions having body.
19792         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
19793         tree.
19795 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
19796             Andrew Morrow  <acm@google.com>
19798         PR c/36892
19799         * c-common.c (c_common_attribute_table): Permit deprecated
19800         attribute to take an optional argument.
19801         (handle_deprecated_attribute): If the optional argument to
19802         __attribute__((deprecated)) is not a string ignore the attribute
19803         and emit a warning.
19805         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
19806         * c-typeck.c (build_component_ref): Likewise.
19807         (build_external_ref): Likewise.
19809         * toplev.c (warn_deprecated_use): Add an attribute argument.
19810         Emit the message associated with __attribute__((deprecated)).
19812         * toplev.h (warn_deprecated_use): Updated.
19814         * doc/extend.texi: Document new optional parameter to
19815         __attribute__((deprecated))
19817 2009-05-08  Michael Eager <eager@eagercon.com>
19819         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
19820         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
19822 2009-05-08  Richard Guenther  <rguenther@suse.de>
19824         PR tree-optimization/40062
19825         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
19826         Avoid exponential behavior.
19828 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
19830         PR rtl-optimization/33928
19831         PR 26854
19832         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
19833         process_uses, build_single_def_use_links): New.
19834         (update_df): Update use_def_ref.
19835         (forward_propagate_into): Use get_def_for_use instead of use-def
19836         chains.
19837         (fwprop_init): Call build_single_def_use_links and let it initialize
19838         dataflow.
19839         (fwprop_done): Free use_def_ref.
19840         (fwprop_addr): Eliminate duplicate call to df_set_flags.
19841         * df-problems.c (df_rd_simulate_artificial_defs_at_top,
19842         df_rd_simulate_one_insn): New.
19843         (df_rd_bb_local_compute_process_def): Update head comment.
19844         (df_chain_create_bb): Use the new RD simulation functions.
19845         * df.h (df_rd_simulate_artificial_defs_at_top,
19846         df_rd_simulate_one_insn): New.
19847         * opts.c (decode_options): Enable fwprop at -O1.
19848         * doc/invoke.texi (-fforward-propagate): Document this.
19850 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
19852         PR c/24581
19853         * c-typeck.c (build_binary_op): Handle arithmetic between one real
19854         and one complex operand specially.
19855         * tree-complex.c (some_nonzerop): Do not identify a real value as
19856         zero if flag_signed_zeros.
19858 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
19860         PR rtl-optimization/33928
19861         * loop-invariant.c (record_use): Fix && vs. || mishap.
19863 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
19865         PR rtl-optimization/33928
19866         * loop-invariant.c (struct use): Add addr_use_p.
19867         (struct def): Add n_addr_uses.
19868         (struct invariant): Add cheap_address.
19869         (create_new_invariant): Set cheap_address.
19870         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
19871         (record_uses): Pass df_ref to record_use.
19872         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
19873         used only as such.
19875 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
19877         * config/sh/sh.c: Do not include c-pragma.h.
19879 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19881         * config/spu/spu.c: Remove include of c-common.h.
19883 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
19885         PR c/39037
19886         * c-common.h (mark_valid_location_for_stdc_pragma,
19887         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
19888         clear_float_const_decimal64, float_const_decimal64_p): New.
19889         * c.opt (Wunsuffixed-float-constants): New.
19890         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
19891         unsuffixed float constant, handle new warning.
19892         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
19893         * c-decl.c (c_scope): New flag float_const_decimal64.
19894         (set_float_const_decimal64, clear_float_const_decimal64,
19895         float_const_decimal64_p): New.
19896         (push_scope): Set new flag.
19897         * c-parser.c (c_parser_translation_unit): Mark when it's valid
19898         to use STDC pragmas.
19899         (c_parser_external_declaration): Ditto.
19900         (c_parser_compound_statement_nostart): Ditto.
19901         * c-pragma.c (valid_location_for_stdc_pragma,
19902         mark_valid_location_for_stdc_pragma,
19903         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
19904         handle_pragma_float_const_decimal64): New.
19905         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
19906         * cp/semantics.c (valid_location_for_stdc_pragma_p,
19907         set_float_const_decimal64, clear_float_const_decimal64,
19908         float_const_decimal64_p): New dummy functions.
19909         * doc/extend.texi (Decimal Float): Remove statement that the
19910         pragma, and suffix for double constants, are not supported.
19911         * doc/invoke.texi (Warning Options): List new option.
19912         (-Wunsuffixed-float-constants): New.
19914 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
19916         * config/i386/i386.c: Do not include c-common.h.
19918 2009-05-07  Mark Heffernan  <meheff@google.com>
19920         * doc/invoke.texi (Debugging Options): Document change of debugging
19921         dump location.
19922         * opts.c (decode_options): Make dump_base_name relative to
19923         aux_base_name directory.
19925 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
19927         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
19928         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
19930 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
19932         * Makefile.in (install-plugin): Simplify a bit.
19934 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
19936         * Makefile.in (OBJS-common): Add regcprop.o.
19937         (regcprop.o): New.
19938         * timevar.def (TV_CPROP_REGISTERS): New.
19939         * regrename.c (regrename_optimize): Return 0.
19940         (rest_of_handle_regrename): Delete.
19941         (pass_rename_registers): Point to regrename_optimize.
19942         (struct value_data_entry, struct value_data,
19943         kill_value_one_regno, kill_value_regno, kill_value,
19944         set_value_regno, init_value_data, kill_clobbered_value,
19945         kill_set_value, kill_autoinc_value, copy_value,
19946         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
19947         replace_oldest_value_reg, replace_oldest_value_addr,
19948         replace_oldest_value_mem, copyprop_hardreg_forward_1,
19949         debug_value_data, validate_value_data): Move...
19950         * regcprop.c: ... here.
19951         (rest_of_handle_cprop): Delete.
19952         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
19954 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
19956         PR middle-end/40057
19957         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
19958         GEN_INT for 1 << bitnum.
19959         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
19960         build_int_cst_type.
19962 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
19964         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
19965         Remove wrong description of "nand" operation.
19967 2009-05-06  Richard Guenther  <rguenther@suse.de>
19968             Adam Nemet  <anemet@caviumnetworks.com>
19970         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
19971         comment.  Add that if LHS is not a gimple register, then RHS1 has
19972         to be a single object (GIMPLE_SINGLE_RHS).
19974 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
19976         * expr.c (get_def_for_expr): Move it up in the file.
19977         (store_field): When expanding a bit-field store, look at the
19978         defining gimple stmt for the masking conversion.
19980 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
19982         PR middle-end/39986
19983         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
19984         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
19985         32-bit memcpy into long.
19987 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
19989         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
19990         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
19991         new_reg_loc_descr.
19992         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
19993         instead of appending DW_OP_deref*.
19995 2009-05-06  Michael Matz  <matz@suse.de>
19997         PR middle-end/40021
19998         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
19999         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
20001 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
20003         * Makefile.in (install-plugin): Fix srcdir handling.
20005 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
20007         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
20008         when processing for not_regs_needed bitmap.
20009         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
20010         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while
20011         handling it for rhs.
20013 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
20015         * config/i386/i386.md (unnamed inc/dec peephole): Use
20016         optimize_insn_for_size_p instead of optimize_size.
20017         * config/i386/predicates.md (incdec_operand): Likewise.
20018         (aligned_operand): Likewise.
20019         * config/i386/sse.md (divv8sf3): Likewise.
20020         (sqrtv8sf2): Likewise.
20022 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
20024         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
20026         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
20028 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
20030         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
20031         ssemodesuffixf2c with avxmodesuffixf2c.
20033 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
20035         PR c/40032
20036         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
20038 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
20040         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
20041         (struct tree_base): Adjust spacing for 8 bit boundaries.
20042         (struct tree_decl_common): Add decl_by_reference_flag bit.
20043         (DECL_BY_REFERENCE): Adjust.
20044         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
20045         print DECL_BY_REFERENCE bit.
20046         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
20047         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
20048         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
20049         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
20050         unconditionally.
20052         PR middle-end/39666
20053         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
20054         range of the type, but default label is missing, add it with one
20055         of the existing labels instead of adding a new label for it.
20057 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
20059         * dwarf.h: Remove.
20061 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
20063         * Makefile.in (enable_plugin, plugin_includedir): New.
20064         (install): Depend on install-plugin.
20065         (PLUGIN_HEADERS): New.
20066         (install-plugin): New.
20067         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
20069 2009-05-05  Richard Guenther  <rguenther@suse.de>
20071         PR tree-optimization/40022
20072         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
20073         the only vuse.
20074         (phivn_valid_p): Fix tuplification error, simplify.
20075         (phiprop_insert_phi): Add dumps.
20076         (propagate_with_phi): Simplify.
20078 2009-05-05  Richard Guenther  <rguenther@suse.de>
20080         PR middle-end/40023
20081         * builtins.c (gimplify_va_arg_expr): Properly build the address.
20083 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
20085         * tree.h (strip_float_extensions): Remove duplicate declaration.
20086         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
20087         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
20088         block_ultimate_origin): Rearrange the declarations line to match the
20089         comment that indicates the .c file which the functions are defined.
20090         (dwarf2out_*, set_decl_rtl): Add comment.
20091         (get_base_address): Adjust comment.
20092         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
20093         declarations line and add comment.
20094         (is_builtin_name): Add blank after function name, for clarity.
20096 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
20098         * attribs.c (decl_attributes): Use %qE for identifiers in
20099         diagnostics.
20100         * cgraphunit.c (verify_cgraph_node): Translate function names to
20101         locale character set in diagnostics.
20102         * coverage.c (get_coverage_counts): Use %qE for identifiers in
20103         diagnostics.
20104         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
20105         Document that functions are named in UTF-8.
20106         * expr.c (expand_expr_real_1): Translate function names to locale
20107         character set in diagnostics.
20108         * gimplify.c (omp_notice_variable, omp_is_private,
20109         gimplify_scan_omp_clauses): Use %qE for identifiers in
20110         diagnostics.
20111         * langhooks.c (lhd_print_error_function): Translate function names
20112         to locale character set.
20113         * langhooks.h (decl_printable_name): Document that return value is
20114         in internal character set.
20115         * stmt.c: Include pretty-print.h
20116         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
20117         diagnostics.
20118         (resolve_operand_name_1): Translate named operand name to locale
20119         character set.
20120         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
20121         diagnostics.
20122         * toplev.c (announce_function): Translate function names to locale
20123         character set.
20124         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
20125         (default_tree_printer): Use pp_identifier or translate identifiers
20126         to locale character set.  Mark "<anonymous>" for translation.
20127         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
20128         for identifiers in diagnostics.
20129         * tree.c (handle_dll_attribute): Use %qE for identifiers in
20130         diagnostics.
20131         * varasm.c (output_constructor): Use %qE for identifiers in
20132         diagnostics.
20134 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
20136         * configure.ac: use ` ` instead of $()
20137         * configure: Regenerate.
20139 2009-05-05  Ben Elliston  <bje@au.ibm.com>
20141         * config/pa/linux-atomic.c: Eliminate conditional include of
20142         errno.h on non-LP64 systems to simplify build requirements.
20144 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
20146         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
20147         diagnostics.
20148         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
20149         and pass value to identifier_to_locale.
20150         (warn_variable_length_array): Make name a tree.
20151         (grokdeclarator): Separate diagnostic texts for named and unnamed
20152         declarators.  Use %qE for named declarators.
20153         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
20154         diagnostics.
20155         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
20156         identifiers in diagnostics.
20157         * c-typeck.c (push_member_name, start_init): Pass identifiers to
20158         identifier_to_locale.  Mark "anonymous" strings for translation.
20160 2009-05-04  Michael Eager <eager@eagercon.com>
20162         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
20163         address for DImode/DFmode only if double-precision FP regs.
20165 2009-05-04  Michael Eager <eager@eagercon.com>
20167         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
20168         TARGET_SINGLE_FLOAT check.
20170 2009-05-04  Michael Eager <eager@eagercon.com>
20172         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
20174 2009-05-04  Michael Eager <eager@eagercon.com>
20176         * gcc/config.gcc (powerpc-xilinx-eabi*): Add tm t-xilinx
20177         * config/rs6000/t-xilinx: New
20179 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
20181         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
20182         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
20183         * gcc/explow.c (memory_address): Use target hook.
20184         * gcc/targhooks.c (default_legitimize_address): New.
20185         * gcc/targhooks.h (default_legitimize_address): New.
20186         * gcc/target.h (legitimize_address): New.
20187         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
20188         (TARGET_INITIALIZER): Include it.
20189         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
20191         * config/bfin/bfin-protos.h (legitimize_address): Remove.
20192         * config/bfin/bfin.c (legitimize_address): Remove.
20193         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
20194         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
20195         Remove.
20196         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
20197         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
20199         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
20200         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
20201         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
20202         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
20203         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
20204         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
20205         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
20206         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
20207         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
20208         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
20209         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
20210         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
20211         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
20212         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
20213         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
20214         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
20215         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
20216         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
20217         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
20218         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
20219         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
20220         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
20221         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
20223         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
20224         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
20225         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
20226         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
20227         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
20228         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
20229         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
20230         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
20231         (thumb_legitimize_address): Delete.
20232         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
20233         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
20234         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
20235         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
20236         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
20237         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
20238         Delete.
20239         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
20240         Delete.
20242         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
20243         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
20244         * config/m32r/m32r.c (m32r_legitimize_address): New.
20245         * config/m68k/m68k.c (m68k_legitimize_address): New.
20246         * config/score/score.c (score_legitimize_address): Standardize.
20247         * config/score/score3.c (score3_legitimize_address): Standardize.
20248         * config/score/score3.h (score3_legitimize_address): Adjust.
20249         * config/score/score7.c (score7_legitimize_address): Standardize.
20250         * config/score/score7.h (score7_legitimize_address): Adjust.
20251         * config/sh/sh.c (sh_legitimize_address): New.
20252         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
20254         * gcc/config/s390/s390.c (legitimize_address): Rename to...
20255         (s390_legitimize_address): ... this.
20256         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
20257         (sparc_legitimize_address): ... this.
20258         * gcc/config/i386/i386.c (legitimize_address): Rename to...
20259         (ix86_legitimize_address): ... this.
20260         * gcc/config/avr/avr.c (legitimize_address): Rename to...
20261         (avr_legitimize_address): ... this.
20262         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
20263         (mn10300_legitimize_address): ... this.
20264         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
20265         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
20266         (alpha_expand_mov): Adjust call.
20268         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
20269         * config/spu/spu.c (spu_legitimize_address): Likewise.
20270         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
20271         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
20273 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
20275         * intl.c (locale_encoding, locale_utf8): New.
20276         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
20277         * intl.h (locale_encoding, locale_utf8): Declare.
20278         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
20279         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
20280         New.
20281         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
20282         argument.
20283         (pp_tree_identifier): Define to call pp_base_tree_identifier.
20284         (pp_base_tree_identifier): Declare as function.
20285         (identifier_to_locale): Declare.
20286         * Makefile.in (pretty-print.o): Update dependencies.
20287         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
20289 2009-05-04  Richard Guenther  <rguenther@suse.de>
20291         PR middle-end/40015
20292         * builtins.c (fold_builtin_memory_op): Do not decay to element
20293         type if the size matches the whole array.
20295 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
20297         * expmed.c (synth_mult): When trying out a shift, pass the result
20298         of a signed shift.
20300 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
20302         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
20303         (shiftsub1_cost): New.
20304         (init_expmed): Compute shiftsub1_cost.
20305         (synth_mult): Optimize multiplications by constants of the form
20306         -(2^^m-1) for some constant positive integer m.
20308 2009-05-03  Richard Guenther  <rguenther@suse.de>
20310         PR c/39983
20311         * c-typeck.c (array_to_pointer_conversion): Do not built
20312         ADDR_EXPRs of arrays of pointer-to-element type.
20313         * c-gimplify.c (c_gimplify_expr): Revert change fixing
20314         up wrong ADDR_EXPRs after-the-fact.
20315         * c-common.c (strict_aliasing_warning): Strip pointer
20316         conversions for obtaining the original type.
20317         * builtins.c (fold_builtin_memset): Handle array types.
20318         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
20319         and array types
20321 2009-05-03  Richard Guenther  <rguenther@suse.de>
20323         PR middle-end/23329
20324         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
20325         Do not lose casts from array types with unknown extent to array
20326         types with known extent.
20327         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
20328         alias set compatibility.
20330 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20332         * flags.h (extra_warnings): Delete.
20333         * toplev.c (process_options): Handle Wuninitialized here.
20334         * opts.c (extra_warnings): Delete.
20335         (set_Wextra): Delete.
20336         (common_handle_option): -Wextra can be handled automatically.
20337         * c-opts.c (c_common_handle_option): Delete obsolete code.
20338         (c_common_post_options): Simplify comment.
20339         * common.opt (W): Add Var.
20340         (Wextra): Add Var.
20341         (Wuninitialized): Initialize to -1.
20343 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
20344             Richard Guenther  <rguenther@suse.de>
20346         * expr.c (get_def_for_expr): New function.
20347         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
20348         SSA rather than trees.
20349         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
20350         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
20352 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
20354         * c-common.c (reswords): Add _Imaginary.
20355         * c-common.c (enum rid): Add RID_IMAGINARY.
20357 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
20359         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
20360         Patch by Richard Guenther.
20362 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
20364         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
20365         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
20366         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
20367         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
20368         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
20369         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
20370         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
20371         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
20372         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
20373         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
20374         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
20375         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
20376         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
20377         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
20378         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
20379         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
20380         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
20381         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
20383 2009-05-02  Richard Guenther  <rguenther@suse.de>
20385         PR tree-optimization/39940
20386         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
20387         doing so.
20389 2009-05-02  Richard Guenther  <rguenther@suse.de>
20391         PR middle-end/40001
20392         * tree-ssa.c (execute_update_addresses_taken): Properly check
20393         if we can mark a variable DECL_GIMPLE_REG_P.
20394         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
20395         back to the end of the function.
20396         (is_gimple_reg_type): Remove complex type special casing.
20397         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
20398         if not optimizing.
20400 2009-05-02  Ben Elliston  <bje@au.ibm.com>
20402         * doc/collect2.texi (Collect2): Document search path behaviour
20403         when configured with --with-ld.
20405 2009-05-02  Jan Hubicka  <jh@suse.cz>
20407         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
20408         parameter; update callers.
20409         (coalesce_cost_edge): EH edges are costier because they needs
20410         splitting even if not critical and even more costier when there are
20411         multiple EH predecestors.
20413 2009-05-02  Jan Hubicka  <jh@suse.cz>
20415         * except.c (remove_eh_handler_and_replace): Handle updating after
20416         removing TRY blocks.
20418 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
20420         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
20422 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
20424         * varasm.c: Do not include c-pragma.h.
20425         * attribs.c: Do not incude c-common.h.
20427 2009-05-01  Michael Matz  <matz@suse.de>
20429         * calls.c (initialize_argument_information): Handle SSA names like
20430         decls with a non MEM_P DECL_RTL.
20432 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
20434         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
20435         * ipa-utils.c: Likewise.
20436         * ipa-type-escape.c: Likewise.
20437         * cgraphunit.c Do not include c-common.h.
20438         * ipa-pure-const.c: Likewise.
20439         * tree-if-conv.c: Likewise.
20440         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
20441         * ipa-struct-reorg.c: Likewise.
20442         * tree-nomudflap.c: Likewise.
20443         * tree-ssa-structalias.c: Likewise.
20445 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
20447         * store-motion.c: Many cleanups to make this pass a first-class
20448         citizen instead of an appendix to gcse load motion.  Add TODO list
20449         to make this pass faster/cleaner/better.
20451         (struct ls_expr): Post gcse.c-split cleanups.
20452         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
20453         "stores" field to "avail_stores".
20454         (pre_ldst_mems): Rename to store_motion_mems.
20455         (pre_ldst_table): Rename to store_motion_mems_table.
20456         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
20457         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
20458         (ldst_entry): Rename to st_expr_entry, update users.
20459         (free_ldst_entry): Rename to free_st_expr_entry, update users.
20460         (free_ldst_mems): Rename to free_store_motion_mems, update users.
20461         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
20462         update caller.
20463         (first_ls_expr): Rename to first_st_expr, update users.
20464         (next_ls_expr): Rename to next_st_expr, update users.
20465         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
20466         fields properly for store motion instead of names inherited from load
20467         motion in gcse.c.
20468         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
20469         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
20470         are done with it.
20472         (ae_kill): Rename to st_kill, update users.
20473         (ae_gen): Rename to st_avloc, update users.
20474         (transp): Rename to st_transp, update users.
20475         (pre_insert_map): Rename to st_insert_map, update users.
20476         (pre_delete_map): Rename to st_delete_map, update users.
20477         (insert_store, build_store_vectors, free_store_memory,
20478         one_store_motion_pass): Update for abovementioned changes.
20480         (gcse_subst_count, gcse_create_count): Remove.
20481         (one_store_motion_pass): New statistics counters "n_stores_deleted"
20482         and "n_stores_created", local variables.
20484         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
20485         use for_each_rtx.
20487         (regvec, compute_store_table_current_insn): Remove.
20488         (reg_set_info, reg_clear_last_set): Remove.
20489         (compute_store_table): Use DF caches instead of local dataflow
20490         solvers.
20492 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
20494         * c-objc-common.c (c_tree_printer): Print identifiers with
20495         pp_identifier, not pp_string.  Mark "({anonymous})" for
20496         translation.
20497         * c-pretty-print.c (pp_c_ws_string): New.
20498         (pp_c_cv_qualifier, pp_c_type_specifier,
20499         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
20500         pp_c_storage_class_specifier, pp_c_function_specifier,
20501         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
20502         pp_c_primary_expression, pp_c_postfix_expression,
20503         pp_c_unary_expression, pp_c_shift_expression,
20504         pp_c_relational_expression, pp_c_equality_expression,
20505         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
20506         use pp_string and pp_c_ws_string in place of pp_identifier and
20507         pp_c_identifier for non-identifiers.  Mark English strings for
20508         translation.
20509         * c-pretty-print.h (pp_c_ws_string): Declare.
20511 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
20512             Roland McGrath <roland@redhat.com>
20514         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
20515         (ENABLE_LD_BUILDID): New configuration option.
20516         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
20517         (LINK_BUILDID_SPEC): New macro.
20518         (init_spec): If defined, prepend it between LINK_EH_SPEC and
20519         link_spec.
20520         * doc/install.texi: Document --enable-linker-build-id option.
20521         * configure: Rebuild.
20522         * config.in: Rebuild.
20524 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
20526         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
20527         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
20528         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
20529         MIPS_GP_SAVE_AREA_SIZE.
20530         * config/mips/mips.c (struct mips_frame_info): Update comment
20531         before arg_pointer_offset and hard_frame_pointer_offset.
20532         (mips_compute_frame_info): Update diagram before function: to
20533         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
20534         indicate the position of frame_pointer_rtx with -fstack-protector and
20535         to show args_size.  Don't allocate cprestore area for leaf functions
20536         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
20537         cprestore_size.
20538         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
20540 2009-04-30  Michael Matz  <matz@suse.de>
20542         PR tree-optimization/39955
20543         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
20545 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
20547         * ira.c (setup_cover_and_important_classes):  Use safe macro
20548         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
20549         directly.
20550         * genpreds.c (write_tm_preds_h):  Output suitable definition of
20551         REG_CLASS_FOR_CONSTRAINT.
20553 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
20555         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
20556         instead of an int.
20557         * bitmap.c (bitmap_descriptor): Likewise.
20558         * ggc-common.c (loc_descriptor): Likewise.
20559         * varray.c (varray_descriptor): Likewise.
20560         * vec.c (vec_descriptor): Likewise.
20562 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
20564         * Makefile.in (dce.o): Add $(EXCEPT_H).
20565         * dce.c: Include except.h and delete redundant vector definitions.
20566         (deletable_insn_p): Return false for non-call insns that can throw
20567         if DF is running.
20569 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
20571         * gcse.c (ae_gen): Remove.
20572         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
20573         and make non-static function to make it available in store-motion.c.
20574         Update call sites with search-and-replace.
20575         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
20576         extract_mentioned_regs, extract_mentioned_regs_helper,
20577         find_moveable_store, compute_store_table, load_kills_store, find_loads,
20578         store_killed_in_insn, store_killed_after, store_killed_before,
20579         build_store_vectors, insert_insn_start_basic_block, insert-store,
20580         remove_reachable_equiv_notes, replace_store_insn, delete_store,
20581         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
20582         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
20583         * store-motion.c: ...new file.  Also copy data structures from gcse.c
20584         and clean up to remove parts not used by store motion.
20585         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
20586         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
20588 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20590         PR target/38571
20591         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
20592         when optimizing for size.
20594 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
20596         * gcse.c (gcse_constant_p): Fix typo in last change.
20598 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
20600         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
20602 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
20604         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
20606 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
20608         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
20609         CONST_HIGH_PART result.
20611 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
20613         * config/avr/avr.c (initial_elimination_offset): Rename to
20614         avr_initial_elimination_offset.
20615         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
20616         change return type to bool.
20617         (avr_can_eliminate): New function.
20618         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
20619         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
20620         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
20621         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
20622         avr_initial_elimination_offset.
20623         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
20624         (avr_initial_elimination_offset): Define.
20626 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
20627             Steven Bosscher  <steven@gcc.gnu.org>
20629         PR rtl-optimization/39938
20630         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
20631         * cfgrtl.c: Include insn-attr.h.
20632         (rest_of_pass_free_cfg): New function.
20633         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
20634         * resource.c (init_resource_info): Remove call to df_analyze.
20636 2009-04-29  Richard Guenther  <rguenther@suse.de>
20638         PR target/39943
20639         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
20640         allow conversion to signed integers.
20642 2009-04-29  Richard Guenther  <rguenther@suse.de>
20644         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
20645         shifts of floating point vectors if the shift amount is
20646         a constant multiple of the element size.
20648 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
20649             Michael Matz  <matz@suse.de>
20651         PR middle-end/39927
20652         PR bootstrap/39929
20653         * tree-outof-ssa.c (emit_partition_copy): New function.
20654         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
20655         insert_part_to_rtx_on_edge): Perform the partition base var
20656         copy using emit_partition_copy.
20657         (insert_value_copy_on_edge): Convert constants to the right mode.
20658         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
20659         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
20661 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
20663         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
20664         scan backwards to try to find a constant to initialize it.
20666         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
20667         insn before the loop_end instruction, don't look past labels.
20669 2009-04-29  Richard Guenther  <rguenther@suse.de>
20671         PR middle-end/39937
20672         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
20673         loose type conversions.
20674         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
20675         stmts only if there are no uses of its definition.
20677 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
20679         * config/bfin/bfin.h (splitting_loops): Declare.
20680         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
20681         Reorder bit definitions to be ascending.
20682         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
20683         * config/bfin/bfin.c (splitting_loops): New variable.
20684         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
20685         (struct loop_info): Remove members INIT and LOOP_INIT.
20686         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
20687         the LSETUP sequence.  Allow LC to be loaded from any register, but
20688         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
20689         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
20690         set to 1.
20691         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
20692         of reload_completed.
20694         From Jie Zhang:
20695         * config/bfin/bfin.md (movsi_insn): Refine constraints.
20697 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
20699         * Makefile.in (PLUGIN_VERSION_H): New.
20700         (OBJS-common): Remove plugin-version.o.
20701         (plugin.o): Depend on (PLUGIN_VERSION_H).
20702         (plugin-version.o): Remove.
20703         * configure: Regenerate
20704         * configure.ac: Create plugin-version.h.
20705         * gcc-plugin.h (plugin_gcc_version): Remove.
20706         (plugin_default_version_check): Change signature.
20707         * plugin-version.c: Remove.
20708         * plugin.c: Include plugin-version.h.
20709         (str_plugin_gcc_version_name): Remove.
20710         (try_init_one_plugin): Pass gcc version to plugin_init.
20711         (plugin_default_version_check): Both gcc and plugin versions are now
20712         arguments.
20714 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
20716         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
20717         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
20718         Remove special case testing for last insn of inner loops. Don't fail
20719         if the loop ends with a jump, emit an extra nop instead.
20721         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
20722         DREGS rather than comparing directly.  Remove code that tries to
20723         account for latencies.
20725 2009-04-29  Richard Guenther  <rguenther@suse.de>
20727         PR tree-optimization/39941
20728         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
20729         eliminating an indirect call.
20731 2009-04-29  Richard Guenther  <rguenther@suse.de>
20733         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
20734         parameter.  Allow invariants as base if !require_lvalue.
20735         (verify_gimple_assign_single): Adjust.
20737 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
20739         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
20740         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
20741         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
20742         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
20743         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
20744         a VEC_SELECT.
20745         * config/bfin/bfin.c (bfin_expand_builtin,
20746         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
20748 2009-04-28  Richard Guenther  <rguenther@suse.de>
20750         * tree-vect-loop.c (get_initial_def_for_induction): Use
20751         correct types for pointer increment.
20753 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20755         * toplev.c (print_version): Update GMP version string calculation.
20757 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
20759         PR rtl-optimization/39938
20760         * resource.c (init_resource_info): Add call to df_analyze.
20762 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
20764         * config/alpha/alpha.md (usegp): Cast the result of
20765         alpha_find_lo_sum_using_gp to enum attr_usegp.
20766         * config/alpha/alpha.c (override_options): Remove end-of-structure
20767         marker element from cpu_table.  Use array size of cpu_table to handle
20768         -mcpu and -mtune options.
20769         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
20771 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
20773         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
20774         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
20775         tune_32 and tune_64.
20776         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
20777         support on PowerPC.
20778         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
20779         * config/rs6000/option-defaults.h: ... here.  New file.
20780         (OPT_64, OPT_32): Define.
20781         (MASK_64BIT): Define to 0 if not already defined.
20782         (OPT_ARCH64, OPT_ARCH32): Define.
20783         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
20784         and tune_64.
20786 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20788         * config/arm/arm.c (arm_override_options): Emit error on using
20789         fpa with AAPCS.
20791 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
20793         PR rtl-optimization/39914
20794         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
20795         registers for allocnos created from user-defined variables only
20796         when not optimizing.
20798 2009-04-28  Richard Guenther  <rguenther@suse.de>
20800         PR middle-end/39937
20801         * fold-const.c (fold_binary): Use distribute_real_division only
20802         on float types.
20804 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
20806         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
20807         add hpux-stdint.h to tm_file.
20808         (hppa[12]*-*-hpux11*): Ditto.
20809         (ia64*-*-hpux*): Ditto.
20810         * config/hpux-stdint.h: New.
20811         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
20812         __STDC_EXT__ for all compiles.
20813         * config/pa/pa-hpux.h: Ditto.
20814         * config/pa/pa-hpux10.h: Ditto.
20815         * config/pa/pa-hpux11.h: Ditto.
20817 2009-04-28  Catherine Moore  <clm@codesourcery.com>
20819         * debug.h (set_name): Add comment.
20821 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
20823         PR target/39929
20824         * config/darwin.c (machopic_gen_offset): Check
20825         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
20826         * config/arm/arm.c (require_pic_register): Likewise.
20828 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
20830         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
20831         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
20832         m32c_promote_prototypes): Delete.
20834 2009-04-28  Michael Matz  <matz@suse.de>
20836         PR middle-end/39922
20837         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
20838         constants.
20840 2009-04-28  Richard Guenther  <rguenther@suse.de>
20842         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
20844 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20846         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
20847         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
20848         * config/arm/arm-tune.md: Regenerate.
20850 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
20852         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
20853         block if there are complex incoming edges.
20854         (sel_merge_blocks): Remove useless assert.
20855         (sel_redirect_edge_and_branch): Check that edge was redirected.
20856         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
20857         (sel_find_rgns): Delete declaration.
20858         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
20859         the region when it is not a preheader.
20861 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
20863         PR c/39323
20864         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
20866 2009-04-28  Richard Guenther  <rguenther@suse.de>
20868         * tree.h (SSA_NAME_VALUE): Remove.
20869         (struct tree_ssa_name): Remove value_handle member.
20870         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
20871         array for jump threading.
20872         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
20873         SSA_NAME_VALUEs.
20874         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
20875         * tree-flow.h (threadedge_initialize_values): Declare.
20876         (threadedge_finalize_values): Likewise.
20877         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
20878         (SSA_NAME_VALUE): Define.
20879         (threadedge_initialize_values): New function.
20880         (threadedge_finalize_values): Likewise.
20881         * tree-ssa-dom.c (ssa_name_values): New global variable.
20882         (SSA_NAME_VALUE): Define.
20883         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
20885 2009-04-28  Ira Rosen  <irar@il.ibm.com>
20887         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
20888         Use REPORT_VECTORIZED_LOCATIONS instead
20889         REPORT_VECTORIZED_LOOPS.
20890         * tree-vectorizer.c (vect_verbosity_level): Make static.
20891         (vect_loop_location): Rename to vect_location.
20892         (vect_set_verbosity_level): Update comment.
20893         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
20894         and vect_location.
20895         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
20896         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
20897         instead REPORT_UNVECTORIZED_LOOPS.
20898         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
20899         and vect_loop_def to vect_external_def and vect_internal_def.
20900         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
20901         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
20902         REPORT_UNVECTORIZED_LOCATIONS.
20903         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
20904         and vect_used_in_loop and to vect_unused_in_scope and
20905         vect_used_in_scope.
20906         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
20907         (vect_verbosity_level): Remove declaration.
20908         (vect_analyze_operations): Likewise.
20909         (vect_analyze_stmt): Declare.
20910         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
20911         REPORT_UNVECTORIZED_LOCATIONS.
20912         (vect_get_loop_niters): Fix indentation.
20913         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
20914         (vect_analyze_loop_operations): New function.
20915         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
20916         vect_analyze_operations.
20917         (vect_is_simple_reduction): Use new names.
20918         (vectorizable_live_operation, vect_transform_loop): Likewise.
20919         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
20920         to specify whether the data references can be a part of interleaving
20921         chain.
20922         (vect_analyze_data_ref_dependence): Use new names.
20923         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
20924         (vect_create_addr_base_for_vector_ref): Remove redundant code.
20925         * tree-vect-patterns.c (widened_name_p): Use new names.
20926         (vect_recog_dot_prod_pattern): Likewise.
20927         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
20928         (process_use, vect_mark_stmts_to_be_vectorized,
20929         vect_model_simple_cost, vect_model_store_cost,
20930         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
20931         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
20932         vectorizable_operation, vectorizable_type_demotion,
20933         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
20934         vectorizable_condition): Likewise.
20935         (vect_analyze_operations): Split into vect_analyze_loop_operations
20936         and ...
20937         (vect_analyze_stmt): ... new function.
20938         (new_stmt_vec_info): Use new names.
20939         (vect_is_simple_use): Use new names and fix comment.
20940         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
20941         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
20943 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
20945         PR target/39911
20946         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
20947         and integer modes for x87 operands.  Do not ICE for unsupported size,
20948         generate error instead.  Generate error for unsupported operand types.
20949         ['z']: Do not handle HImode memory operands specially.  Warning
20950         for floating-point operands.  Fallthru to 'Z' for unsupported operand
20951         types.  Do not ICE for unsupported size, generate error instead.
20952         (output_387_binary_op): Use %Z to output operands.
20953         (output_fp_compare): Ditto.
20954         (output_387_reg_move): Ditto.
20956 2009-04-28  Ben Elliston  <bje@au.ibm.com>
20958         PR c++/35652
20959         Revert:
20961         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20963         * builtins.c (c_strlen): Do not warn here.
20964         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
20965         * c-common.c (pointer_int_sum): Take an explicit location.
20966         Warn about offsets out of bounds.
20967         * c-common.h (pointer_int_sum): Adjust declaration.
20969 2009-04-27  Ian Lance Taylor  <iant@google.com>
20971         * collect2.c (is_ctor_dtor): Change type of ret field in struct
20972         names to symkind.
20973         * dce.c (run_fast_df_dce): Change type of old_flags to int.
20974         * df-core.c (df_set_flags): Change return type to int.  Change
20975         type of old_flags to int.
20976         (df_clear_flags): Likewise.
20977         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
20978         (df_get_conditional_uses): Likewise.
20979         * df.h (df_set_flags, df_clear_flags): Update declarations.
20980         * dwarf2out.c (struct indirect_string_node): Change type of form
20981         field to enum dwarf_form.
20982         (AT_string_form): Change return type to enum dwarf_form.
20983         * fixed-value.c (fixed_compare): Add cast to enum type.
20984         * fwprop.c (update_df): Change 0 to VOIDmode.
20985         * gensupport.c: Change 0 to UNKNOWN.
20986         * gimple.h (gimple_cond_code): Add cast to enum type.
20987         * haifa-sched.c (reemit_notes): Add cast to enum type.
20988         * hooks.c (hook_int_void_no_regs): Remove function.
20989         * hooks.h (hook_int_void_no_regs): Remove declaration.
20990         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
20991         * predict.c (combine_predictions_for_insn): Add casts to enum type.
20992         * real.c (real_arithmetic): Add cast to enum type.
20993         (real_compare): Likewise.
20994         * target.h (struct gcc_target): Change return type of
20995         branch_target_register_class to enum reg_class.
20996         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
20997         default_branch_target_register_class.
20998         * targhooks.c (default_branch_target_register_class): New function.
20999         * targhooks.h (default_branch_target_register_class): Declare.
21000         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
21001         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
21002         cast to int.
21003         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
21004         ERROR_MARK.
21005         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
21006         vect_uninitialized_def.  Change 0 to ERROR_MARK.
21007         * tree-vect-stmts.c (supportable_widening_operation): Don't
21008         initialize icode1 and icode2.
21009         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
21010         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
21011         and to STD_C89.
21012         (cmn_err_flag_specs): Change 0 to STD_C89.
21013         (cmn_err_char_table): Likewise.
21014         * config/arm/arm.c (get_arm_condition_code): Change type of code
21015         to enum arm_cond_code.
21016         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
21017         (IWMMXT_BUILTIN2): Likewise.
21018         (neon_builtin_type_bits): Don't define typedef.
21019         (neon_builtin_datum): Change type of bits field to int.
21020         (arm_expand_neon_args): Add cast to enum type.
21021         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
21022         TLS_MODEL_NONE.
21023         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
21024         casts to enum type.
21025         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
21026         MIPS_FP_COND_f.
21027         * config/mips/mips.md (jal_macro): Return enum constant.
21028         (single_insn): Likewise.
21029         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
21030         CODE_FOR_nothing.
21031         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21032         casts to enum type.
21033         * config/s390/s390.c (s390_tune_flags): Change type to int.
21034         (s390_arch_flags): Likewise.
21035         (s390_handle_arch_option): Change flags field of struct pta to int.
21036         * config/s390/s390.h (s390_tune_flags): Update declaration.
21037         (s390_arch_flags): Likewise.
21038         * config/sh/sh.c (prepare_move_operands): Compare
21039         tls_symbolic_operand result with enum constant.
21040         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
21041         (sh_expand_prologue): Add cast to enum type.
21042         (sh_expand_epilogue): Likewise.
21043         (tls_symbolic_operand): Change return type to enum tls_model.
21044         (fpscr_set_from_mem): Add cast to enum type.
21045         (legitimize_pic_address): Compare tls_symbolic_operand result with
21046         enum constant.
21047         (sh_target_reg_class): Change return type to enum reg_class.
21048         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
21049         PROCESSOR_xxx.
21050         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
21051         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
21052         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
21053         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
21054         (delayed_branch, tls_call_delay): Likewise.
21055         (eligible_for_sibcall_delay): Likewise.
21056         (eligible_for_return_delay): Likewise.
21057         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
21058         (spu_expand_builtin_1): Likewise.
21060         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
21061         for all types of conversions.
21062         (output_init_element): Issue -Wc++-compat warning if needed when
21063         initializing a bitfield with enum type.
21064         * c-parser.c (c_parser_expression): Set original_type to
21065         original_type of right hand operand of comma operator.
21067 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21069         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
21070         grammar nits.
21071         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
21072         * doc/cpp.texi (Standard Predefined Macros)
21073         (Implementation-defined behavior): Likewise.
21074         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
21075         * doc/gimple.texi (GIMPLE Exception Handling)
21076         (@code{GIMPLE_ASSIGN}): Likewise.
21077         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
21078         * doc/invoke.texi (Warning Options, Optimize Options)
21079         (AVR Options, Darwin Options): Likewise.
21080         (Optimize Options): Reformulate -fwhole-program description.
21081         * doc/loop.texi (Lambda): Likewise.
21082         * doc/md.texi (Output Template, Define Constraints)
21083         (Standard Names, Insn Splitting): Likewise.
21084         * doc/options.texi (Option properties): Likewise.
21085         * doc/passes.texi (Tree-SSA passes): Likewise.
21086         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
21087         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
21088         (File Names and DBX): Likewise.
21089         * doc/trouble.texi (Incompatibilities): Likewise.
21091 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
21093         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
21094         instruction is correct.
21096 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
21098         Allow non-constant arguments to conversion intrinsics.
21099         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
21100         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
21101         * spu.c (print_operand): Handle 'v' and 'w'.
21102         (exp2_immediate_p, spu_gen_exp2): Define.
21103         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
21104         spu_convtf_1): Update parameter descriptions.
21105         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
21106         * constraints.md ('v', 'w'): New.
21107         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
21108         Remove.
21109         (i2f, I2F): New define_mode_attr.
21110         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
21111         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
21112         fixuns_truncv4sfv4si2):  Update to use mode attribute.
21113         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
21114         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
21115         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
21116         patterns for combine.
21118 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
21120         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
21121         (cprop, hoist, pre, store_motion): New debug counters.
21122         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
21123         is not an RTL pass anymore.
21124         (pass_profiling): Remove extern decl for pass removed in 2005.
21125         (pass_gcse, pass_jump_bypass): Remove.
21126         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
21127         to 0 for clean state.
21128         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
21129         * cse.c (gate_handle_cse_after_global_opts,
21130         rest_of_handle_cse_after_global_opts): New functions.
21131         (pass_cse_after_global_opts): New pass, does local CSE.
21132         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
21133         (TV_CPROP): New timevar.
21134         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
21135         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
21136         (gcse_main, recompute_all_luids): Remove.
21137         (compute_hash_table_work): Call max_reg_num instead of reading
21138         max_gcse_regno.
21139         (cprop_jump): Don't set run_jump_opt_after_gcse.
21140         (constprop_register): Always allow to alter jumps.
21141         (cprop_insn): Likewise.
21142         (do_local_cprop): Likewise.
21143         (local_cprop_pass): Likewise.  Return non-zero if something changed.
21144         (cprop): Remove function, fold interesting bits into one_cprop_pass.
21145         (find_implicit_sets): Add note about missed optimization opportunity.
21146         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
21147         pass_rtl_cprop execute function.
21148         Don't bother tracking the pass number, each pass gets its own dumpfile
21149         now anyway.
21150         Always allow to alter jumpsand bypass jumps.
21151         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
21152         will just find no suitable set.
21153         (pre_edge_insert): Fix dumping, this function is for PRE only.
21154         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
21155         pass_rtl_pre execute function.
21156         (hoist_code): Return non-zero if something changed.  Keep track of
21157         substitutions and insertions for statistics gathering similar to PRE.
21158         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
21159         called from the pass_rtl_hoist execute function.  Show pass statistics.
21160         (compute_store_table): Use max_reg_num directly instead of using the
21161         formerly global max_gcse_regno.
21162         (build_store_vectors): Likewise.
21163         (replace_store_insn): Fix dumping.
21164         (store_motion): Rename to ...
21165         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
21166         pass, called from the pass_rtl_store_motion execute function.  Keep
21167         track of substitutions and insertions for statistics gathering similar
21168         to PRE.
21169         (bypass_jumps): Remove, fold interesting bits into ...
21170         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
21171         from the pass_rtl_cprop execute function.
21172         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
21173         pass_jump_bypass): Remove.
21174         (gate_handle_gcse, rest_of_handle_gcse): Remove.
21175         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
21176         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
21177         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
21178         (gate_rtl_store_motion, execute_rtl_store_motion,
21179         pass_rtl_store_motion): New.
21180         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
21181         make it clear that -fcse-skip-blocks is a no-op for backward compat.
21182         * passes.c (init_optimization_passes): Remove pass_gcse and
21183         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
21184         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
21185         instead of pass_jump_bypass.
21187 2009-04-27  Richard Guenther  <rguenther@suse.de>
21189         PR middle-end/39928
21190         * gimplify.c (gimplify_expr): If we are required to create
21191         a temporary make sure it ends up as register.
21193 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
21195         PR target/39903
21196         * config/i386/i386.c (construct_container): Don't call
21197         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
21198         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
21200 2009-04-27  Michael Matz  <matz@suse.de>
21202         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
21203         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
21204         * tree-ssa-live.h (find_replaceable_exprs): Return a bitmap.
21205         (dump_replaceable_exprs): Take a bitmap.
21206         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
21207         array.
21208         (expand_gimple_basic_block): Likewise.
21209         * tree-ssa-ter.c (struct temp_expr_table_d): Make
21210         replaceable_expressions member a bitmap.
21211         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
21212         (mark_replaceable): Likewise.
21213         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
21214         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
21216 2009-04-27  Richard Guenther  <rguenther@suse.de>
21218         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
21219         (verify_stmts): Dispatch to gimple/type verification code.
21220         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
21221         issue with call argument types.
21223 2009-04-27  Michael Matz  <matz@suse.de>
21225         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
21226         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
21227         to above.
21229 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
21230             Eric Botcazou  <ebotcazou@adacore.com>
21232         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
21233         a label's basic block.
21234         (mark_target_live_regs): Tidy and rework obsolete comments.
21235         Change back DF problem to LIVE.  If a label starts a basic block,
21236         assume that all registers that used to be live then still are.
21237         (init_resource_info): If a label starts a basic block, set its
21238         BLOCK_FOR_INSN accordingly.
21239         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
21241 2009-04-27  Richard Guenther  <rguenther@suse.de>
21243         * tree-flow-inline.h (function_ann): Remove.
21244         (get_function_ann): Likewise.
21245         * tree-dfa.c (create_function_ann): Remove.
21246         * tree-flow.h (struct static_var_ann_d): Remove.
21247         (struct function_ann_d): Likewise.
21248         (union tree_ann_d): Remove fdecl member.
21249         (function_ann_t): Remove.
21250         (function_ann, get_function_ann, create_function_ann): Remove
21251         declarations.
21253 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
21255         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
21257 2009-04-27  Jan Hubicka  <jh@suse.cz>
21259         * ipa-pure-const.c (struct funct_state_d): New fields
21260         state_previously_known, looping_previously_known; remove
21261         state_set_in_source.
21262         (analyze_function): Use new fields.
21263         (propagate): Avoid assumption that state_set_in_source imply
21264         nonlooping.
21266         * tree-ssa-loop-niter.c (finite_loop_p): New function.
21267         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
21268         * cfgloop.h (finite_loop_p): Declare.
21270 2009-04-26  Michael Matz  <matz@suse.de>
21272         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
21274 2009-04-26  Michael Matz  <matz@suse.de>
21276         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
21277         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
21278         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
21279         pass_mark_used_blocks): Remove.
21280         * tree-optimize.c (pass_free_datastructures,
21281         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
21282         * passes.c (init_optimization_passes): Don't call
21283         pass_mark_used_blocks, remove dead code.
21285 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
21287         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
21288         * tree-ssa-live.h (register_ssa_partition): Likewise.
21290 2009-04-26  Michael Matz  <matz@suse.de>
21292         Expand from SSA.
21293         * builtins.c (fold_builtin_next_arg): Handle SSA names.
21294         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
21295         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
21296         SSA names.
21297         (compare_pairs): Swap cost comparison.
21298         (coalesce_ssa_name): Don't use change_partition_var.
21299         * tree-nrv.c (struct nrv_data): Add modified member.
21300         (finalize_nrv_r): Set it.
21301         (tree_nrv): Use it to update statements.
21302         (pass_nrv): Require PROP_ssa.
21303         * tree-mudflap.c (mf_decl_cache_locals,
21304         mf_build_check_statement_for): Use make_rename_temp.
21305         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
21306         * alias.c (find_base_decl): Handle SSA names.
21307         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
21308         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
21309         * rtl.h (set_reg_attrs_for_parm): Declare.
21310         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
21311         to "optimized", remove unused locals at finish.
21312         (execute_free_datastructures): Make global, call
21313         delete_tree_cfg_annotations.
21314         (execute_free_cfg_annotations): Don't call
21315         delete_tree_cfg_annotations.
21317         * ssaexpand.h: New file.
21318         * expr.c (toplevel): Include ssaexpand.h.
21319         (expand_assignment): Handle SSA names the same as register variables.
21320         (expand_expr_real_1): Expand SSA names.
21321         * cfgexpand.c (toplevel): Include ssaexpand.h.
21322         (SA): New global variable.
21323         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
21324         (SSAVAR): New macro.
21325         (set_rtl): New helper function.
21326         (add_stack_var): Deal with SSA names, use set_rtl.
21327         (expand_one_stack_var_at): Likewise.
21328         (expand_one_stack_var): Deal with SSA names.
21329         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
21330         before unique numbers.
21331         (expand_stack_vars): Use set_rtl.
21332         (expand_one_var): Accept SSA names, add asserts for them, feed them
21333         to above subroutines.
21334         (expand_used_vars): Expand all partitions (without default defs),
21335         then only the local decls (ignoring those expanded already).
21336         (expand_gimple_cond): Remove edges when jumpif() expands an
21337         unconditional jump.
21338         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
21339         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
21340         SSA name.
21341         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
21342         members of SA; deal with PARM_DECL partitions here; expand
21343         all PHI nodes, free tree datastructures and SA.  Commit instructions
21344         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
21345         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
21346         info and statements at start, collect garbage at finish.
21347         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
21348         (VAR_ANN_PARTITION) Remove.
21349         (change_partition_var): Don't declare.
21350         (partition_to_var): Always return SSA names.
21351         (var_to_partition): Only accept SSA names.
21352         (register_ssa_partition): Only check argument.
21353         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
21354         member.
21355         (delete_var_map): Don't free it.
21356         (var_union): Only accept SSA names, simplify.
21357         (partition_view_init): Mark only useful SSA names as used.
21358         (partition_view_fini): Only deal with SSA names.
21359         (change_partition_var): Remove.
21360         (dump_var_map): Use ssa_name instead of partition_to_var member.
21361         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
21362         basic blocks.
21363         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
21364         (struct _elim_graph): New member const_dests; nodes member vector of
21365         ints.
21366         (set_location_for_edge): New static helper.
21367         (create_temp): Remove.
21368         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
21369         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
21370         (new_elim_graph): Allocate const_dests member.
21371         (clean_elim_graph): Truncate const_dests member.
21372         (delete_elim_graph): Free const_dests member.
21373         (elim_graph_size): Adapt to new type of nodes member.
21374         (elim_graph_add_node): Likewise.
21375         (eliminate_name): Likewise.
21376         (eliminate_build): Don't take basic block argument, deal only with
21377         partition numbers, not variables.
21378         (get_temp_reg): New static helper.
21379         (elim_create): Use it, deal with RTL temporaries instead of trees.
21380         (eliminate_phi): Adjust all calls to new signature.
21381         (assign_vars, replace_use_variable, replace_def_variable): Remove.
21382         (rewrite_trees): Only do checking.
21383         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
21384         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
21385         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
21386         contains_tree_r, MAX_STMTS_IN_LATCH,
21387         process_single_block_loop_latch, analyze_edges_for_bb,
21388         perform_edge_inserts): Remove.
21389         (expand_phi_nodes): New global function.
21390         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
21391         functions, initialize new parameter, remember partitions having a
21392         default def.
21393         (finish_out_of_ssa): New global function.
21394         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
21395         don't reset in_ssa_p here, don't disable TER when mudflap.
21396         (pass_del_ssa): Remove.
21397         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
21398         partition members.
21399         (execute_free_datastructures): Declare.
21400         * Makefile.in (SSAEXPAND_H): New variable.
21401         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
21402         * basic-block.h (commit_one_edge_insertion): Declare.
21403         * passes.c (init_optimization_passes): Move pass_nrv and
21404         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
21405         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
21406         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
21407         (redirect_branch_edge): Deal with super block when expanding, split
21408         out jump patching itself into ...
21409         (patch_jump_insn): ... here, new static helper.
21411 2009-04-26  Michael Matz  <matz@suse.de>
21413         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
21414         beyond num_ssa_names.
21415         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
21416         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
21418 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
21420         PR inline-asm/39543
21421         * fwprop.c (forward_propagate_asm): New function.
21422         (forward_propagate_and_simplify): Propagate also into __asm, if it
21423         doesn't increase the number of referenced registers.
21425         PR c/39889
21426         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
21428 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
21430         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
21431         note_nonlocal_vla_type for nonlocal VLAs.
21432         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
21433         contains_remapped_vars, remap_vla_decls): New functions.
21434         (convert_nonlocal_reference_stmt): If not optimizing, call
21435         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
21436         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
21437         if it wasn't found in var_map.
21438         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
21439         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
21440         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
21441         declare_vars.
21442         * gimplify.c (nonlocal_vlas): New variable.
21443         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
21444         referenced VLAs.
21445         (gimplify_body): Create and destroy nonlocal_vlas.
21447         * dwarf2out.c (loc_descr_plus_const): New function.
21448         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
21449         mem_loc_descriptor, loc_descriptor_from_tree_1,
21450         descr_info_loc, gen_variable_die): Use it.
21452         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
21453         !TREE_STATIC VAR_DECLs.
21454         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
21455         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
21456         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
21457         DECL_BY_REFERENCE is valid.
21458         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
21459         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
21460         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
21461         Copy DECL_BY_REFERENCE.
21462         (struct nesting_copy_body_data): New type.
21463         (nesting_copy_decl): New function.
21464         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
21465         if they have variable length.
21467 2009-04-26  Michael Matz  <matz@suse.de>
21469         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
21470         mark new temporaries for renaming.
21472 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
21474         PR c/39581
21475         * c-decl.c (global_bindings_p): Return negative value.
21476         (c_variable_size): New.  Based on variable_size from
21477         stor-layout.c.
21478         (grokdeclarator): Call c_variable_size not variable_size.
21480 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
21482         * config/i386/i386.c (print_operand) ['z']: Fix typo.
21484 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
21486         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
21487         Redefine it to just use mingw/include.
21488         (ASM_SPEC): Rules for -m32 and -m64.
21489         (LINK_SPEC): Use Likewise.
21490         (SPEC_32): New define.
21491         (SPEC_64): Likewise.
21492         (SUB_LINK_SPEC): Likewise.
21493         (MULTILIB_DEFAULTS): New define.
21494         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
21495         Add multilib options.
21496         (MULTILIB_DIRNAMES): Likewise.
21497         (MULTILIB_OSDIRNAMES): Likewise.
21498         (LIBGCC): Likewise.
21499         (INSTALL_LIBGCC): Likewise.
21501 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
21503         PR c/39556
21504         * c-tree.h (enum c_inline_static_type): New.
21505         (record_inline_static): Declare.
21506         * c-decl.c (struct c_inline_static, c_inline_statics,
21507         record_inline_static, check_inline_statics): New.
21508         (pop_file_scope): Call check_inline_statics.
21509         (start_decl): Call record_inline_static instead of pedwarning
21510         directly for static in inline function.
21511         * c-typeck.c (build_external_ref): Call record_inline_static
21512         instead of pedwarning directly for static referenced in inline
21513         function.
21515 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
21517         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
21518         not new but only being rescanned.
21519         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
21520         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
21521         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
21522         record_set_info, compute_set, grealloc): Remove.
21523         (recompute_all_luids): New function.
21524         (gcse_main): Don't compute sets, and don't do related memory
21525         allocations/free-ing.  If something changed before the end of the
21526         pass, update LUIDs using recompute_all_luids.
21527         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
21528         (free_gcse_mem): Don't free it either.
21529         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
21530         Use the df insn LUIDs.
21531         (load_killed_in_block): Likewise.
21532         (compute_hash_table_work): Don't compute reg_set_in_block.
21533         (compute_transp): Use DF_REG_DEF_CHAINs.
21534         (local_cprop_pass): Don't use compute_sets and related functions.
21535         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
21536         Use get_max_uid() instead of max_cuid.
21537         (insert_insn_end_basic_block, pre_insert_copy_insn,
21538         update_ld_motion_stores): Don't try to
21539         keep reg_set tables up to date.
21540         (pre_insert_copies): Use df insn LUIDs.
21541         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
21542         (reg_set_info): Don't use extra bitmap argument.
21543         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
21544         information to compute regs_set_in_block.
21545         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
21546         (bypass_jumps): Don't use compute_sets and friends.
21548 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21550         PR testsuite/39710
21551         * opts.c (undocumented_msg): Do not leave blank even with
21552         ENABLE_CHECKING.
21554 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
21556         * c-decl.c (build_enumerator): Allow values folding to integer
21557         constants but not integer constant expressions with a pedwarn if
21558         pedantic.
21560 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
21562         PR c/39582
21563         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
21564         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
21565         type is an integer constant.
21567 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
21569         PR target/39897
21570         * config/i386/i386.c (print_operand) ['z']: Revert handling of
21571         HImode operands.
21573 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
21575         PR c/39564
21576         * c-decl.c (grokdeclarator): Diagnose declarations of functions
21577         with variably modified return type and no storage class
21578         specifiers, except for the case of nested functions.  Distinguish
21579         extern declarations of functions with variably modified return
21580         types from those of objects with variably modified types.
21582 2009-04-25  Jan Hubicka  <jh@suse.cz>
21584         * tree.c (list_equal_p): New function.
21585         * tree.h (list_equal_p): Declare.
21586         * coretypes.h (edge_def, edge, const_edge, basic_block_def
21587         basic_block_def, basic_block, const_basic_block): New.
21588         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
21589         (redirect_eh_edge): New function.
21590         (make_eh_edge_update_phi): EH edges are not abnormal.
21591         * except.c: Include tree-flow.h.
21592         (list_match): New function.
21593         (eh_region_replaceable_by_p): New function.
21594         (replace_region): New function.
21595         (hash_type_list): New function.
21596         (hash_eh_region): New function.
21597         (eh_regions_equal_p): New function.
21598         (merge_peers): New function.
21599         (remove_unreachable_regions): Verify EH tree when checking;
21600         merge peers.
21601         (copy_eh_region_1): New function.
21602         (copy_eh_region): New function.
21603         (push_reachable_handler): New function.
21604         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
21605         regions without label but with live RESX.
21606         * except.h (redirect_eh_edge_to_label): New.
21607         * tree-flow.h (redirect_eh_edge): New.
21608         * coretypes.h (edge_def, edge, const_edge, basic_block_def
21609         basic_block_def, basic_block, const_basic_block): Remove.
21610         * Makefile.in (except.o): Add dependency on tree-flow.h
21611         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
21612         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
21613         Remove.
21615 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
21617         PR bootstrap/39645
21618         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
21619         on the destination of memcpy.
21621 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
21623         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
21624         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
21625         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
21627 2009-04-25  Jan Hubicka  <jh@suse.cz>
21629         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
21630         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
21631         to be reached by different label than left.
21632         (update_eh_edges): Update comment; remove edge_to_remove if possible
21633         and return true if suceeded.
21634         (cleanup_empty_eh): Accept sharing map; handle shared regions.
21635         (cleanup_eh): Compute sharing map.
21636         * except.c (remove_eh_handler_and_replace): Add argument if we should
21637         update regions.
21638         (remove_unreachable_regions): Update for label sharing.
21639         (label_to_region_map): Likewise.
21640         (get_next_region_sharing_label): New function.
21641         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
21642         prev_try pointers.
21643         (remove_eh_handler): Update.
21644         (remove_eh_region_and_replace_by_outer_of): New function.
21645         * except.h (struct eh_region): Add next_region_sharing_label.
21646         (remove_eh_region_and_replace_by_outer_of,
21647         get_next_region_sharing_label): Declare.
21648         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
21650 2009-04-25  Jan Hubicka  <jh@suse.cz>
21652         * tree-cfg.c (split_critical_edges): Split also edges where we can't
21653         insert code even if they are not critical.
21655 2009-04-25  Jan Hubicka  <jh@suse.cz>
21657         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
21658         (gimple_can_remove_branch_p): EH edges won't remove branch by
21659         redirection.
21660         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
21661         updating of non-abnormal EH edges.
21662         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
21663         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
21664         (split_critical_edges): Split also edges where emitting code on them
21665         will lead to splitting later.
21667 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
21668             H.J. Lu  <hongjiu.lu@intel.com>
21670         PR target/39590
21671         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
21672         the configured assembler supports fildq and fistpq mnemonics.
21673         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
21674         * configure: Regenerated.
21675         * config.in: Ditto.
21677         * config/i386/i386.c (print_operand): Handle 'Z'.
21678         ['z']: Remove handling of special fild/fist suffixes.
21679         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
21680         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
21681         suffix of fild insn.
21682         (*floatsi<mode>2_vector_mixed): Ditto.
21683         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
21684         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
21685         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
21686         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
21687         * config/i386/gas.h (GAS_MNEMONICS): Remove.
21689 2009-04-25  Ben Elliston  <bje@au.ibm.com>
21691         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
21692         the source of a set operation.
21694 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
21696         * target.h (struct gcc_target): Add case_values_threshold field.
21697         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
21698         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
21699         * targhooks.c (default_case_values_threshold): New function.
21700         * targhooks.h (default_case_values_threshold): Declare function.
21701         * stmt.c (expand_case): Use case_values_threshold target hook.
21702         * expr.h (case_values_threshold): Remove declartation.
21703         * expr.c (case_values_threshold): Remove function.
21704         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
21706         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
21707         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
21708         (avr_case_values_threshold): Declare as static.
21709         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
21711         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
21712         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
21713         (mn10300_case_values_threshold): New function.
21715 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
21717         * ira.c (setup_cover_and_important_classes): Add enum cast.
21719 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
21721         * genpreds.c (write_enum_constraint_num): Output definition of
21722         CONSTRAINT_NUM_DEFINED_P macro.
21723         * ira.c (setup_cover_and_important_classes): Use
21724         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
21726 2009-04-24  DJ Delorie  <dj@redhat.com>
21728         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
21729         __SH2A_SINGLE_ONLY__ also.
21731 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
21733         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
21734         (movdf_internal): Ditto.
21735         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
21736         SFmode and DFmode constants.
21737         (ia64_print_operand): Add 'G' format for printing
21738         floating point constants.
21740 2009-04-24  Richard Guenther  <rguenther@suse.de>
21742         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
21743         from unsigned additions.
21745 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
21747         * c-typeck.c (set_init_index): Allow array designators that are
21748         not integer constant expressions with a pedwarn if pedantic.
21750 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
21752         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
21753         zero if no overlap in nonzero bits between the operands.
21755 2009-04-24  Ian Lance Taylor  <iant@google.com>
21757         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
21758         (record_dead_and_set_regs): Likewise.
21759         * df.h (struct df_mw_hardreg): Change flags field to int.
21760         (struct df_base_ref): Likewise.
21761         (struct df): Change changeable_flags field to int.
21762         * df-scan.c (df_defs_record): Change clobber_flags to int.
21763         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
21764         constants rather than #define macros.
21765         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
21766         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
21767         (enum dwarf_calling_convention): Likewise.
21768         (enum dwarf_line_number_x_ops): Likewise.
21769         (enum dwarf_call_frame_info): Likewise.
21770         (enum dwarf_source_language): Likewise.
21771         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
21772         (add_calling_convention_attribute): Likewise.
21773         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
21774         (combine_comparisons): Change compcode to int.  Add cast to enum type.
21775         * genrecog.c (maybe_both_true_2): Change c to int.
21776         (write_switch): Likewise.  Add cast to enum type.
21777         * gimplify.c (gimplify_omp_for): Handle return values from
21778         gimplify_expr using MIN rather than bitwise or.
21779         (gimplify_expr): Add cast to enum type.
21780         * ipa-prop.c (update_jump_functions_after_inlining): Change
21781         IPA_BOTTOM to IPA_JF_UNKNOWN.
21782         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
21783         Add casts to enum type.
21784         (setup_cover_and_important_classes): Change cl to int.  Add casts
21785         to enum type.
21786         (setup_class_translate): Change cl and mode to int.
21787         (ira_init_once): Change mode to int.
21788         (free_register_move_costs): Likewise.
21789         (setup_prohibited_mode_move_regs): Add casts to enum type.
21790         * langhooks.c (add_builtin_function_common): Rework assertion that
21791         value fits bitfield.
21792         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
21793         * omega.c (omega_do_elimination): Avoid math on enum types.
21794         * optabs.c (expand_vec_shift_expr): Remove casts to int.
21795         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
21796         int local to handle integral_argment value.
21797         * regmove.c (try_auto_increment): Change PUT_MODE to
21798         PUT_REG_NOTE_KIND.
21799         * reload.c (push_secondary_reload): Add casts to enum type.
21800         (secondary_reload_class, find_valid_class): Likewise.
21801         * reload1.c (emit_input_reload_insns): Likewise.
21802         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
21803         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
21804         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
21805         constant.
21806         * tree.c (build_common_builtin_nodes): Add casts to enum type.
21807         * tree-complex.c (complex_lattice_t): Typedef to int rather than
21808         enum type.
21809         (expand_complex_libcall): Add casts to enum type.
21810         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
21811         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
21812         with ERROR_MARK, not NUM_TREE_CODES.
21813         (vect_create_epilog_for_reduction): Likewise.
21814         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
21815         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
21816         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
21817         enum machine_mode.
21818         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
21819         vect_unused_in_loop.  Change 0 to loop_vect.
21820         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
21821         * var-tracking.c (get_init_value): Change return type to enum
21822         var_init_status.
21823         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
21824         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
21825         arm_fp_model.
21826         (arm_override_options): Add casts to enum type.
21827         (arm_emit_tls_decoration): Likewise.
21828         * config/i386/i386.c (ix86_function_specific_restore): Add casts
21829         to enum type.
21830         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
21831         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
21832         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
21833         enum type.
21834         * config/s390/s390.c (code_for_builtin_64): Change to array of
21835         enum insn_code.
21836         (code_for_builtin_31): Likewise.
21837         (s390_expand_builtin): Change code_for_builtin to enum insn_code
21838         const *.
21839         * config/sparc/sparc.c (sparc_override_options): Change value
21840         field in struct code_model to enum cmodel.  In initializer change
21841         0 to NULL and add cast to enum type.
21843         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
21844         Change all callers.  Issue a -Wc++-compat warning using
21845         lhs_origtype if necessary.
21846         (convert_for_assignment): Issue -Wc++-compat warnings about
21847         invalid conversions to enum type on assignment.
21848         * c-common.h (build_modify_expr): Update declaration.
21850 2009-04-24  Nick Clifton  <nickc@redhat.com>
21852         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
21853         (function_arg_advance): Likewise.
21854         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
21855         5th alternative.
21857 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
21859         * config/s390/constraints.md ('I', 'J'): Fix condition.
21861 2009-04-24  Diego Novillo  <dnovillo@google.com>
21863         * gengtype-parse.c (parse_error): Add newline after message.
21865 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
21867         * config/i386/sse.md (avxmodesuffixs): Removed.
21868         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
21869         (*avx_pinsr<ssevecsize>): This.
21871 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
21873         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
21874         follow chains of regs with a single definition, and allow expressions
21875         that are function_invariant_p.
21876         (simple_rhs_p): Allow expressions that are function_invariant_p.
21878 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
21880         PR middle-end/39867
21881         * fold-const.c (fold_cond_expr_with_comparison): When folding
21882         > and >= to MAX, make sure the MAX uses the same type as the
21883         comparison's operands.
21885 2009-04-24  Nick Clifton  <nickc@redhat.com>
21887         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
21888         addressing for DImode accesses.
21889         (frv_print_operand_address): Handle PLUS case.
21890         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
21892 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
21894         PR rtl-optimization/39794
21895         * alias.c (canon_true_dependence): Add x_addr argument.
21896         * rtl.h (canon_true_dependence): Adjust prototype.
21897         * cse.c (check_dependence): Adjust canon_true_dependence callers.
21898         * cselib.c (cselib_invalidate_mem): Likewise.
21899         * gcse.c (compute_transp): Likewise.
21900         * dse.c (scan_reads_nospill): Likewise.
21901         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
21902         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
21903         canon_base_addr of the group, plus optional offset.
21904         (struct group_info): Rename canon_base_mem to
21905         canon_base_addr.
21906         (get_group_info): Set canon_base_addr to canon_rtx of base, not
21907         canon_rtx of base_mem.
21909 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
21911         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
21912         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
21914 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21916         * config/spu/spu-builtins.h: Delete file.
21918         * config/spu/spu.h (enum spu_builtin_type): Move here from
21919         spu-builtins.h.
21920         (struct spu_builtin_description): Likewise.  Add GTY marker.
21921         Do not use enum spu_function_code or enum insn_code.
21922         (spu_builtins): Add extern declaration.
21924         * config/spu/spu.c: Do not include "spu-builtins.h".
21925         (enum spu_function_code, enum spu_builtin_type_index,
21926         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
21927         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
21928         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
21929         unsigned_V2DI_type_node): Move here from spu-builtins.h.
21930         (spu_builtin_types): Make static.  Add GTY marker.
21931         (spu_builtins): Add extern declaration with GTY marker.
21932         Include "gt-spu.h".
21934         * config/spu/spu-c.c: Do not include "spu-builtins.h".
21935         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
21936         Check programmatically whether all parameters are scalar.
21938         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
21940 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
21942         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
21943         assignment from the constructor either if the target is volatile.
21945 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
21947         * config/arm/arm.md (insv): Do not share operands[0].
21949 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
21951         * config/vxlib-tls.c (active_tls_threads): Delete.
21952         (delete_hook_installed): New.
21953         (tls_delete_hook): Don't delete the delete hook.
21954         (tls_destructor): Delete it here.
21955         (__gthread_set_specific): Adjust installing the delete hook.
21956         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
21957         __gthread_leave_tsd_dtor_context.
21959 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
21961         * c-format.c (gcc_tdiag_char_table): Add support for %E.
21963 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
21965         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
21966         enum type.
21967         (alpha_rtx_costs): Ditto.
21968         (emit_unlikely_jump): Use add_reg_note.
21969         (emit_frame_store_1): Ditto.
21970         (alpha_expand_prologue): Ditto.
21971         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
21972         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
21974 2009-04-23  Nick Clifton  <nickc@redhat.com>
21976         * config/v850/v850.md (epilogue): Remove suppressed code.
21977         (return): Rename to return_simple and remove test of frame size.
21978         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
21979         to gen_return_simple.
21981 2009-04-22  Jing Yu  <jingyu@google.com>
21983         PR testsuite/39781
21984         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
21986 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21988         PR C/31499
21989         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
21990         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
21991         value is a VECTOR_CST, the element type is the element type of the
21992         vector.
21994 2009-04-22  DJ Delorie  <dj@redhat.com>
21996         * config/m32c/m32c.h: Update GTY annotations to new syntax.
21998 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
22000         * alias.c (find_base_term): Move around LO_SUM case, so that
22001         CONST falls through into PLUS/MINUS handling.
22003         PR c/39855
22004         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
22005         into 0, use omit_one_operand.
22007 2009-04-23  Ben Elliston  <bje@au.ibm.com>
22009         * config/rs6000/linux-unwind.h (get_regs): Remove type
22010         puns. Change the type of `pc' to an array of unsigned ints and
22011         update all users.  Constify frame24.
22013 2009-04-22  DJ Delorie  <dj@redhat.com>
22015         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
22016         declarations before code.
22017         (current_function_special_page_vector): Likewise.
22018         (m32c_expand_insv): Silence a warning.
22020 2009-04-21  Taras Glek  <tglek@mozilla.com>
22022         * alias.c: Update GTY annotations to new syntax.
22023         * basic-block.h: Likewise.
22024         * bitmap.h: Likewise.
22025         * c-common.h: Likewise.
22026         * c-decl.c: Likewise.
22027         * c-parser.c: Likewise.
22028         * c-pragma.c: Likewise.
22029         * c-tree.h: Likewise.
22030         * cfgloop.h: Likewise.
22031         * cgraph.h: Likewise.
22032         * config/alpha/alpha.c: Likewise.
22033         * config/arm/arm.h: Likewise.
22034         * config/avr/avr.h: Likewise.
22035         * config/bfin/bfin.c: Likewise.
22036         * config/cris/cris.c: Likewise.
22037         * config/darwin.c: Likewise.
22038         * config/frv/frv.c: Likewise.
22039         * config/i386/i386.c: Likewise.
22040         * config/i386/i386.h: Likewise.
22041         * config/i386/winnt.c: Likewise.
22042         * config/ia64/ia64.h: Likewise.
22043         * config/iq2000/iq2000.c: Likewise.
22044         * config/mips/mips.c: Likewise.
22045         * config/mmix/mmix.h: Likewise.
22046         * config/pa/pa.c: Likewise.
22047         * config/pa/pa.h: Likewise.
22048         * config/rs6000/rs6000.c: Likewise.
22049         * config/s390/s390.c: Likewise.
22050         * config/sparc/sparc.c: Likewise.
22051         * config/xtensa/xtensa.c: Likewise.
22052         * cselib.h: Likewise.
22053         * dbxout.c: Likewise.
22054         * dwarf2out.c: Likewise.
22055         * except.c: Likewise.
22056         * except.h: Likewise.
22057         * fixed-value.h: Likewise.
22058         * function.c: Likewise.
22059         * function.h: Likewise.
22060         * gimple.h: Likewise.
22061         * integrate.c: Likewise.
22062         * optabs.c: Likewise.
22063         * output.h: Likewise.
22064         * real.h: Likewise.
22065         * rtl.h: Likewise.
22066         * stringpool.c: Likewise.
22067         * tree-data-ref.c: Likewise.
22068         * tree-flow.h: Likewise.
22069         * tree-scalar-evolution.c: Likewise.
22070         * tree-ssa-address.c: Likewise.
22071         * tree-ssa-alias.h: Likewise.
22072         * tree-ssa-operands.h: Likewise.
22073         * tree.c: Likewise.
22074         * tree.h: Likewise.
22075         * varasm.c: Likewise.
22076         * varray.h: Likewise.
22077         * vec.h: Likewise.
22078         * coretypes.h: Do not define GTY macro if it is already defined.
22079         * doc/gty.texi: Update GTY documentation to new syntax.
22080         * gengtype-lex.l: Enforce attribute-like syntax for GTY
22081         annotations on structs.
22082         * gengtype-parse.c: Likewise.
22084 2009-04-22  Mark Heffernan  <meheff@google.com>
22086         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
22088 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
22090         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
22091         where appropriate.
22093 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
22095         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
22096         the same as a PLUS without a shift.  Increase the cost of a
22097         CONST_INT in MULT.
22099 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22101         * Makefile.in: Update dependencies.
22102         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
22103         * errors.h: Remove bogus comment about compatibility.
22104         (warning): Update declaration.
22105         * genautomata.c: Update all calls to warning.
22106         * gimple.c: Do not include errors.h. Include toplev.h.
22107         * tree-ssa-structalias.c: Do not include errors.h.
22108         * omega.c: Likewise.
22109         * tree-ssa-reassoc.c: Likewise.
22110         * config/spu/spu-c.c: Likewise.
22111         * config/spu/t-spu-elf: Update dependencies.
22113 2009-04-22  Richard Guenther  <rguenther@suse.de>
22115         PR tree-optimization/39824
22116         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
22117         make sure the types are compatible.
22119 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22121         PR c++/14875
22122         * c-common.c (c_parse_error): Take a token_flags parameter.
22123         Use token_type for the token type instead.
22124         Pass token_flags to cpp_type2name.
22125         * c-common.h (c_parse_error): Update declaration.
22126         * c-parser.c (c_parser_error): Pass 0 as token flags.
22128 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
22130         PR rtl-optimization/39580
22131         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
22133 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22135         * function.c (expand_function_end): Do not emit a jump to the "naked"
22136         return label for fall-through returns.
22137         * except.c (sjlj_emit_function_exit): Always place the call to the
22138         unregister function at the location installed by expand_function_end.
22140 2009-04-22  Richard Guenther  <rguenther@suse.de>
22142         PR tree-optimization/39845
22143         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
22144         (gen_inbound_check): Likewise.
22146 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
22148         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
22149         padding for PPC.
22150         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
22151         * config/vxlib.c (__gthread_once): Add race guard for PPC.
22153 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
22155         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
22156         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
22157         shift counts to avoid out-of-bounds array accesses.
22159 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
22161         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
22162         (Pmode): Move above.
22164 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
22166         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
22167         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
22168         GET_CODE macro.  Use IN_RANGE macro where appropriate.
22169         * config/alpha/alpha.h: Ditto.
22170         * config/alpha/alpha.md: Ditto.
22171         * config/alpha/constraints.md: Ditto.
22172         * config/alpha/predicates.md: Ditto.
22174 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
22176         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
22177         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22178         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22179         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22180         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22181         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22182         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22183         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22184         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22185         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22186         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22187         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22188         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22189         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22190         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22191         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22192         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22193         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22194         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22195         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22196         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22197         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22198         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22199         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22200         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22201         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22202         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
22204 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
22206         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
22207         references from comments.
22208         * cfgbuild.c (count_basic_blocks): Delete.
22209         (find_basic_blocks_1): Delete.
22210         (find_basic_blocks): Delete.
22211         * except.c (finish_eh_generation): Make static.  Move comment from
22212         except.h here.  Remove find_basic_blocks references from comments.
22213         * except.h (finish_eh_generation): Delete.
22214         * basic-block.h (find_basic_blocks): Delete.
22215         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
22217 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
22219         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
22220         (sdbout_parms):  Likewise.
22222 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
22224         * config/sh/sh.c (prepare_cbranch_operands): Use
22225         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
22226         (expand_cbranchdi4): Likewise.
22227         (from_compare): Add cast to enum type.
22228         (expand_cbranchsi4): Use add_reg_note.
22229         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
22230         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
22231         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
22232         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
22233         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
22234         instead of CODE_FOR_nothing.
22235         (cbranchdi4): Likewise.  Fix the order of arguments for
22236         gen_rtx_fmt_ee.
22237         (push_fpscr): Use add_reg_note.
22238         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
22239         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
22241 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
22243         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
22244         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
22245         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
22246         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
22247         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
22248         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
22249         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
22250         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
22251         config/alpha/x-vms, config/arc/t-arc,
22252         config/arm/README-interworking, config/arm/arm-c.c,
22253         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
22254         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
22255         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
22256         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
22257         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
22258         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
22259         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
22260         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
22261         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
22262         config/cris/t-elfmulti, config/crx/t-crx,
22263         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
22264         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
22265         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
22266         config/h8300/t-h8300, config/i386/athlon.md,
22267         config/i386/darwin-libgcc.10.4.ver,
22268         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
22269         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
22270         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
22271         config/i386/t-linux64, config/i386/t-nwld,
22272         config/i386/t-rtems-i386, config/i386/t-sol2-10,
22273         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
22274         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
22275         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
22276         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
22277         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
22278         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
22279         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
22280         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
22281         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
22282         config/m68k/t-uclinux, config/mcore/t-mcore,
22283         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
22284         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
22285         config/mips/crtn.asm, config/mips/irix-crti.asm,
22286         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
22287         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
22288         config/mips/mips-fixed.md, config/mips/sb1.md,
22289         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
22290         config/mips/t-iris6, config/mips/t-isa3264,
22291         config/mips/t-libgcc-mips16, config/mips/t-linux64,
22292         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
22293         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
22294         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
22295         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
22296         config/mn10300/t-linux, config/mn10300/t-mn10300,
22297         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
22298         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
22299         config/picochip/libgccExtras/clzsi2.asm,
22300         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
22301         config/rs6000/darwin-libgcc.10.4.ver,
22302         config/rs6000/darwin-libgcc.10.5.ver,
22303         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
22304         config/rs6000/t-aix43, config/rs6000/t-aix52,
22305         config/rs6000/t-darwin, config/rs6000/t-fprules,
22306         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
22307         config/rs6000/t-lynx, config/rs6000/t-netbsd,
22308         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
22309         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
22310         config/rs6000/t-rtems, config/rs6000/t-spe,
22311         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
22312         config/score/t-score-elf, config/sh/divcost-analysis,
22313         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
22314         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
22315         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
22316         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
22317         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
22318         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
22319         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
22320         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
22321         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
22322         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
22323         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
22324         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
22325         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
22326         limitx.h, version.c, xcoff.h: Add copyright and license notices.
22327         * config/h8300/genmova.sh: Include copyright and license notices
22328         in generated output.
22329         * config/h8300/mova.md: Regenerate.
22330         * doc/install.texi2html: Include word "Copyright" in copyright
22331         notice and use name "Free Software Foundation, Inc.".
22332         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
22333         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
22334         ChangeLog-2007, ChangeLog-2008: Correct dates.
22336 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
22338         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
22339         NE_EXPR operations as well.
22340         * c-parser.c (c_parser_condition): Do not set location information on
22341         the condition.
22342         (c_parser_conditional_expression): Likewise.
22343         (c_parser_binary_expression): Set location information on operators.
22344         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
22345         TRUTH_NOT_EXPR has been folded.
22346         * fold-const.c (fold_truth_not_expr): Copy location information from
22347         the incoming expression to the outgoing one.
22348         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
22349         recursive calls on the LHS of the operator but pass that of the
22350         operator to recursive calls on the RHS of the operator.  Set it
22351         on the COND_EXPR.
22352         (shortcut_cond_expr): Set the locus of the operator on the second
22353         COND_EXPR and that of the expression on the first in degenerate cases.
22354         Pass the locus of the expression to calls to shortcut_cond_r.
22355         Set the locus of the 'then' block on the associated jump, if any.
22356         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
22357         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
22358         expression to call to gimplify_boolean_expr.
22360 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
22362         * config.gcc: Add additional configuration for
22363         i686-w64-mingw* and x86_64-w64-mingw* triplet.
22364         * config/i386/mingw-w64.h: New mingw-w64 specific header.
22365         (CPP_SPEC): Redefine for allowing -municode option.
22366         (STARTFILE_SPEC): Likewise.
22367         * config/i386/t-mingw-w64: New.
22368         * config/i386/mingw-w64.opt: New.
22369         (municode): Add new target option.
22370         * doc/invoke.texi (municode): Add documentation for new option.
22372 2009-04-21  Ian Lance Taylor  <iant@google.com>
22374         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22375         Correct test for number of arguments.
22376         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
22378 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
22380         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
22381         argument of emit_library_call.
22383 2009-04-21  Richard Guenther  <rguenther@suse.de>
22385         PR middle-end/39829
22386         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
22387         inside VIEW_CONVERT_EXPRs.
22389 2009-04-21  Martin Jambor  <mjambor@suse.cz>
22391         * tree-switch-conversion.c (build_constructors): Split a long line.
22392         (constructor_contains_same_values_p): New function.
22393         (build_one_array): Create assigns of constants if possible, do not
22394         call mark_sym_for_renaming, call update_stmt.
22395         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
22396         make_rename_temp.  Do not call mark_symbols_for_renaming, call
22397         update_stmt.
22398         (gen_def_assigns): Do not call mark_symbols_for_renaming or
22399         find_new_referenced_vars, call update_stmt.
22400         (gen_inbound_check): Use create_tmp_var and create ssa names manually
22401         instead of calling make_rename_temp.  Do not call
22402         find_new_referenced_vars or mark_symbols_for_renaming, call
22403         update_stmt.
22405 2009-04-21  Richard Guenther  <rguenther@suse.de>
22407         PR tree-optimization/39827
22408         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
22409         (tree_ssa_phiprop): Pass the correct array size.
22411 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
22413         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
22415 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22417         PR 16202
22418         * c-typeck.c (lvalue_p): Move declaration ...
22419         * c-common.h (lvalue_p): ... to here.
22420         * c-common.c (candidate_equal_p): New.
22421         (add_tlist): Use it.
22422         (merge_tlist): Use it.
22423         (warn_for_collisions_1): Likewise.
22424         (warning_candidate_p): Accept more candidates.
22425         (verify_tree): A warning candidate can be an expression. Use
22426         candidate_equal_p.
22428 2009-04-21  Ben Elliston  <bje@au.ibm.com>
22430         PR target/5267
22431         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
22432         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
22433         options.  Remove -mcall-solaris documentation.
22435 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22437         PR c++/13358
22438         * doc/invoke.texi (-Wlong-long): Update description.
22439         * c-lex (interpret_integer): Only warn if there was no previous
22440         overflow and -Wlong-long is enabled.
22441         * c-decl.c (declspecs_add_type): Drop redundant flags.
22442         * c.opt (Wlong-long): Init to -1.
22443         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
22444         and front-end warn_long_long. Wlong-long only depends on other
22445         flags if it is uninitialized.
22446         * c-parser.c (disable_extension_diagnostics): warn_long_long is
22447         the same for CPP and FE.
22448         (restore_extension_diagnostics): Likewise.
22450 2009-04-20  Ian Lance Taylor  <iant@google.com>
22452         Fix enum conversions which are invalid in C++:
22453         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
22454         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
22455         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
22456         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
22457         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
22458         (dbxout_parms): Likewise.
22459         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
22460         (df_clear_flags): Likewise.
22461         * df-problems.c (df_rd_bb_local_compute_process_def): Change
22462         top_flag parameter to int.
22463         (df_chain_create_bb_process_use): Likewise.
22464         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
22465         Remove cast.
22466         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
22467         (df_ref_create_structure, df_def_record_1): Likewise.
22468         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
22469         (df_notes_rescan): Change 0 to VOIDmode in function call.
22470         (df_get_call_refs, df_insn_refs_collect): Likewise.
22471         (df_bb_regs_collect): Likewise.
22472         (df_entry_block_defs_collect): Likewise.
22473         (df_exit_block_uses_collect): Likewise.
22474         * df.h: Update declarations.
22475         * double-int.c (double_int_divmod): Add cast to enum type.
22476         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
22477         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
22478         (based_loc_descr): Likewise.
22479         (loc_descriptor_from_tree_1): Change first_op and second_op to
22480         enum dwarf_location_atom.  Add cast to enum type.
22481         * expmed.c (init_expmed): Change 0 to SET in function call.
22482         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
22483         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
22484         (do_store_flag): Likewise.
22485         * fixed-value.h (struct fixed_value): Change mode to enum
22486         machine_mode.
22487         * function.c (assign_parms): Change 0 to VOIDmode in function call.
22488         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
22489         function call.
22490         (insert_insn_decl, insert_decl, insert_state): Likewise.
22491         (automata_list_finish): Likewise.
22492         * genrecog.c (process_define_predicate): Add cast to enum type.
22493         * gensupport.c (init_predicate_table): Add cast to enum type.
22494         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
22495         function call.
22496         (gimple_build_call_1, gimple_build_label): Likewise.
22497         (gimple_build_goto, gimple_build_asm_1): Likewise.
22498         (gimple_build_switch_1, gimple_build_cdt): Likewise.
22499         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
22500         (enum fallback): Rename from enum fallback_t.
22501         (fallback_t): Typedef as int.
22502         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
22503         GSI_SAME_STMT in function call.
22504         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
22505         enum type.
22506         (setup_reg_class_relations): Likewise.
22507         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
22508         (setup_prohibited_class_mode_regs): Add cast to enum type.
22509         (setup_prohibited_mode_move_regs): Likewise.
22510         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
22511         (record_address_regs): Change i to enum reg_class.
22512         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
22513         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
22514         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
22515         (GET_MODE_2XWIDER_MODE): Likewise.
22516         (GET_CLASS_NARROWEST_MODE): Likewise.
22517         * omp-low.c (expand_omp_for): Add cast to enum type.
22518         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
22519         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
22520         * postreload.c (reload_cse_simplify_operands): Change rclass local
22521         to enum reg_class.
22522         * predict.c (combine_predictions_for_insn): Change best_predictor
22523         and predictor to enum br_predictor.
22524         (combine_predictions_for_bb): Likewise.
22525         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
22526         use SET_PREDICT_EXPR_OUTCOME.
22527         * real.c (real_arithmetic): Change icode to code in function call.
22528         * reginfo.c (init_move_cost): Add casts to enum type.
22529         (init_reg_sets_1, init_fake_stack_mems): Likewise.
22530         * regmove.c (regclass_compatible_p): Change class0 and class1 to
22531         enum reg_class.
22532         * reload.c (find_valid_class): Add casts to enum type.
22533         (push_reload): Change 0 to NO_REGS in function call.
22534         (find_reloads): Change this_alternative to array of enum
22535         reg_class.  Remove some now-unnecessary casts.
22536         (make_memloc): Change 0 to VOIDmode in function call.
22537         * reload1.c (reload): Change 0 to VOIDmode in function call.
22538         (eliminate_regs_1, elimination_effects): Likewise.
22539         (eliminate_regs_in_insn): Likewise.
22540         (emit_input_reload_insns): Add cast to enum type.
22541         (delete_output_reload): Change 0 to VOIDmode in function call.
22542         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
22543         to enum type in function call.
22544         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
22545         (SET_PREDICT_EXPR_OUTCOME): Define.
22546         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
22547         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
22548         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
22549         (dump_function): Likewise.
22550         * tree-dump.h: Update declarations.
22551         * tree-pass.h: Update declarations.
22552         * varasm.c (assemble_integer): Change mclass to enum mode_class.
22553         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
22554         enum type.
22555         (arm_rtx_costs_1): Correct parenthesization.
22556         (arm_rtx_costs): Add casts to enum type.
22557         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
22558         (vfp_emit_fstmd): Use add_rg_note.
22559         (emit_multi_reg_push, emit_sfm): Likewise.
22560         (thumb_set_frame_pointer): Likewise.
22561         (arm_expand_prologue): Likewise.
22562         (arm_regno_class): Change return type to enum reg_class.
22563         (thumb1_expand_prologue): Use add_reg_note.
22564         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
22565         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
22566         in function call.
22567         * config/arm/gentune.sh: Add cast to enum type.
22568         * config/arm/arm-tune.md: Rebuild.
22569         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
22570         (ix86_split_fp_branch, predict_jump): Likewise.
22571         (ix86_expand_multi_arg_builtin): Change sub_code from enum
22572         insn_code to enum rtx_code.
22573         (ix86_builtin_vectorized_function): Add cast to enum type.
22574         * config/i386/i386.md (truncdfsf2): Change slot to enum
22575         ix86_stack_slot.
22576         (truncxf<mode>2, isinf<mode>2): Likewise.
22577         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
22578         enum type.
22579         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
22580         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
22581         (insert_bundle_state): Change 1 to INSERT in function call.
22582         (ia64_add_bundle_selector_before): Likewise.
22583         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
22584         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
22585         (restore_stack_nonlocal): Likewise.
22586         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
22587         function call.
22588         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
22589         function call.
22590         (mips_rtx_costs): Likewise.
22591         (mips_override_options): Add casts to enum type.
22592         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
22593         in function call.
22594         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
22595         (store_reg, set_reg_plus_d): Likewise.
22596         (hppa_expand_prologue, hppa_profile_hook): Likewise.
22597         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
22598         cast to enum type.
22599         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
22600         function call.
22601         (emit_unlikely_jump): Use add_reg_note.
22602         (rs6000_emit_allocate_stack): Likewise.
22603         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
22604         (output_toc): Change 1 to INSERT in function call.
22605         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
22606         (rs6000_initialize_trampoline): Likewise.
22607         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
22608         function call.
22609         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
22610         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
22611         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
22612         (save_gprs): Use add_reg_note.
22613         (s390_emit_prologue): Likewise.
22614         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
22615         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
22616         (sparc_fold_builtin): Add cast to enum type.
22617         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
22618         enum insn_code.
22619         (spu_expand_prologue): Use add_reg_note.
22620         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
22622 2009-04-20  Ian Lance Taylor  <iant@google.com>
22624         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
22625         (c_parser_postfix_expression_after_primary): Get VEC for list of
22626         arguments.  Get original types of arguments.  Call
22627         build_function_call_vec.
22628         (cached_expr_list_1, cached_expr_list_2): New static variables.
22629         (c_parser_expr_list): Change return type to VEC *.  Add
22630         p_orig_types parameter.  Change all callers.
22631         (c_parser_release_expr): New static function.
22632         (c_parser_vec_to_tree_list): New static function.
22633         * c-typeck.c (build_function_call): Rewrite to build a VEC and
22634         call build_function_call_vec.
22635         (build_function_call_vec): New function, based on old
22636         build_function_call.
22637         (convert_arguments): Remove nargs and argarray parameters.  Change
22638         values to a VEC.  Add origtypes parameter.
22639         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
22640         (convert_for_assignment): Add origtype parameter.  Change all
22641         callers.  If warn_cxx_compat, check for conversion to an enum
22642         type when calling a function.
22643         (store_init_value): Add origtype parameter.  Change all callers.
22644         (digest_init): Likewise.
22645         (struct init_node): Add origtype field.
22646         (add_pending_init): Add origtype parameter.  Change all callers.
22647         (output_init_element): Likewise.
22648         (output_pending_init_elements): Pass origtype from init_node to
22649         output_init_element.
22650         (process_init_element): Pass origtype from c_expr to
22651         output_init_element.
22652         (c_finish_return): Add origtype parameter.  Change all callers.
22653         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
22654         caller.
22655         (sync_resolve_params): Likewise.
22656         (sync_resolve_return): Change params to first_param.  Change caller.
22657         (resolve_overloaded_builtins): Change params to VEC *.  Change
22658         callers.  Save first parameter around call to build_function_call_vec.
22659         * c-decl.c (finish_decl): Add origtype parameter.  Change all
22660         callers.  Call build_function_call_vec rather than
22661         build_function_call for cleanup.
22662         * c-tree.h: Update declarations.
22663         * c-common.h: Update declarations.
22664         * stub-objc.c (objc_rewrite_function_call): Change parameter from
22665         params to first_param.
22666         * target.h (struct gcc_target): Change resolve_overloaded_builtin
22667         params parameter from tree to void *.
22668         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22669         Change arglist parameter to have type void *, and to be a pointer
22670         to a VEC.
22671         * config/rs6000/rs6000-protos.h
22672         (altivec_resolve_overloaded_builtin): Update declaration.
22673         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
22674         fnargs parameter to have type void *, and to be a pointer to a
22675         VEC.  Call build_function_call_vec instead of
22676         build_function_call.
22677         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
22679 2009-04-20  Joey Ye  <joey.ye@intel.com>
22680             Xuepeng Guo  <xuepeng.guo@intel.com>
22681             H.J. Lu  <hongjiu.lu@intel.com>
22683         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
22685         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
22686         (IX86_LEA_PRIORITY): Likewise.
22687         (distance_non_agu_define): New function.
22688         (distance_agu_use): Likewise.
22689         (ix86_lea_for_add_ok): Likewise.
22690         (ix86_dep_by_shift_count): Likewise.
22692         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
22693         should split for LEA.
22695         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
22696         function.
22697         (ix86_dep_by_shift_count): Likewise.
22699 2009-04-20  Richard Guenther  <rguenther@suse.de>
22701         * expr.c (handled_component_p): Move ...
22702         * tree.h (handled_component_p): ... here.
22703         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
22704         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
22705         and REALPART_EXPR to be in one group.
22707 2009-04-20  Richard Guenther  <rguenther@suse.de>
22709         * basic-block.h (get_all_dominated_blocks): Declare.
22710         * dominance.c (get_all_dominated_blocks): New function.
22711         * tree-cfg.c (get_all_dominated_blocks): Remove.
22712         (remove_edge_and_dominated_blocks): Adjust.
22713         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
22714         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
22715         instead of recursing.
22717 2009-04-20  Doug Kwan  <dougkwan@google.com>
22719         * cgraph.h (cgraph_node_ptr): New type for vector functions.
22720         (struct cgraph_node_set_def): New type.
22721         (cgraph_node_set) New type. Also declare vector functions.
22722         (struct cgraph_node_set_element_def): New type.
22723         (cgraph_node_set_element): Ditto.
22724         (cgraph_node_set_iterator): New iterator type.
22725         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
22726         cgraph_node_set_remove, dump_cgraph_node_set,
22727         debug_cgraph_node_set): New prototypes.
22728         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
22729         cgraph_node_set_size): New inlines.
22730         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
22731         including cgraph.h.
22732         (struct ipa_opt_pass): Add struct cgraph_node_set_def
22733         argument to function 'write_summary'.
22734         * ipa.c: Include ggc.h.
22735         (hash_cgraph_node_set_element,
22736         eq_cgraph_node_set_element, cgraph_node_set_new,
22737         cgraph_node_set_add, cgraph_node_set_remove,
22738         cgraph_node_set_find, dump_cgraph_node_set,
22739         debug_cgraph_node_set): New functions.
22740         * Makefile.in (ipa.o): Add dependency on GGC_H.
22742 2009-04-20  Ira Rosen  <irar@il.ibm.com>
22744         PR tree-optimization/39675
22745         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
22746         check of the return code of vect_schedule_slp. Check that
22747         stmt_vec_info still exists for the statement, before checking its
22748         vectorization type.
22750 2009-04-20  Michael Matz  <matz@suse.de>
22752         * Makefile.in (generated_files): Take out $(simple_generated_c).
22754 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
22756         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
22757         (UINTPTR_TYPE):  Likewise.
22759 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
22761         PR c/37481
22762         * c-typeck.c (digest_init): Check for initializing an array with a
22763         string literal.
22765 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
22767         PR c/19771
22768         * c-semantics.c (pop_stmt_list): Propagate
22769         STATEMENT_LIST_HAS_LABEL to parent statement list.
22771 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
22773         * config/mips/mips.h (mips_tune_attr): New macro.
22774         * config/mips/mips.md (cpu): Use it.
22776 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
22778         PR c/38243
22779         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
22780         declaring a tag.
22782 2009-04-19  Diego Novillo  <dnovillo@google.com>
22784         * toplev.c (compile_file): Move call to coverage_finish ...
22785         * cgraphunit.c (ipa_passes): ... here.
22786         Call cgraph_process_new_functions.
22787         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
22788         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
22790 2009-04-19  Jan Hubicka  <jh@suse.cz>
22792         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
22793         cfun.
22794         (dump_cgraph_node): Dump can throw external flag.
22795         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
22797 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22799         PR c/32061
22800         PR c++/36954
22801         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
22802         * common.opt (Wlogical-op): Move from here...
22803         * c.opt (Wlogical-op): ... to here.
22804         * c-typeck.c (parser_build_binary_op): Update call to
22805         warn_logical_operator.
22806         * c-opts.c (c_common_post_options): Enable warn_logical_op with
22807         extra_warnings.
22808         * c-common.c (warn_logical_op): Update.
22809         * c-common.h (warn_logical_op): Update declaration.
22811 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
22813         * tree.c (protected_set_expr_location): Fix formatting.
22815 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
22817         PR c/27676
22818         * c-typeck.c (readonly_warning): new.
22819         (build_unary_op, build_modify_expr): Use readonly_warning for
22820         storing into something readonly but not const-qualified.
22822 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
22824         PR c/22367
22825         * c-typeck.c (build_unary_op): Check for taking address of
22826         expression of type void.
22828 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
22830         PR c/35210
22831         * c-typeck.c (build_function_call): Check for calling a function
22832         with qualified void return types.  Call require_complete_type when
22833         generating a trap.
22835 2009-04-18  Jan Hubicka  <jh@suse.cz>
22837         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
22838         Set nothrow flag.
22839         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
22840         can_throw_external flag.
22841         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
22842         * ipa-pure-const.c (ignore_edge): New function.
22843         (propagate): Compute order for NOTHROW computation; set NOTHROWs
22844         only over can_throw_external edges.
22845         (local_pure_const): Add nothrow flag.
22846         * ipa-utils.c (searchc): Add ignore_edge callback.
22847         (ipa_utils_reduced_inorder): Add ignore_edge callback.
22848         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
22849         (set_nothrow_function_flags): Update cgraph.
22850         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
22852 2009-04-18  Richard Guenther  <rguenther@suse.de>
22854         PR middle-end/39804
22855         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
22856         (fold_stmt): ... this and ...
22857         (fold_stmt_inplace): ... this.
22858         (fold_stmt_1): Fold references in calls and asms.
22859         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
22861 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
22863         * tree-vrp.c (ssa_name_nonzero_p): Remove.
22864         * tree.h: Remove the prototype for ssa_name_nonzero_p.
22866 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
22868         * tree.c (function_args_count): Remove.
22869         * tree.h: Remove the prototype for function_args_count.
22871 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
22873         * tree-iterator.c (expr_only): Remove.
22874         * tree.h: Remove the prototype for expr_only.
22876 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
22878         * reginfo.c (cannot_change_mode_set_regs): Remove.
22879         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
22881 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
22883         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
22884         whether operands 0 and 1 overlaps.
22886 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22888         PR middle-end/36902
22889         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
22890         pointer. Use warning_at instead of warning.
22891         (search_for_addr_array): Likewise.
22892         (check_array_bounds): Likewise.
22893         (check_all_array_refs): Check that the incoming edge is not in the
22894         list of edges to be removed.
22895         (check_all_array_refs): Avoid the temporal pointer.
22896         (vrp_visit_cond_stmt): Fix typo.
22897         (simplify_switch_using_ranges): Handle the case where the switch
22898         index is an integer constant.
22900 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
22902         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
22904 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
22906         * doc/extend.texi, doc/invoke.texi: Fix typos.
22908 2009-04-17  Cary Coutant  <ccoutant@google.com>
22910         * tree-flow-inline.h (get_lineno): Fix inverted test.
22912 2009-04-17  Diego Novillo  <dnovillo@google.com>
22914         * tree-ssa-pre.c (create_expression_by_pieces): Remove
22915         assertion for AVAIL_OUT.
22917 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
22919         PR target/38627
22920         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
22921         * config/sh/linux-atomic.asm: Likewise.
22923 2009-04-17  Diego Novillo  <dnovillo@google.com>
22925         * except.c (debug_eh_tree): New.
22926         (struct eh_region, struct eh_status): Move ...
22927         * except.h: ... here.
22928         (add_type_for_runtime): Declare extern.
22929         (lookup_type_for_runtime): Likewise.
22930         (debug_eh_tree): Declare.
22931         * Makefile.in (GTFILES): List except.h before except.c
22933 2009-04-17  Diego Novillo  <dnovillo@google.com>
22935         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
22936         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
22937         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
22938         (find_vars_r): ... here.
22939         * tree-flow.h (find_referenced_vars_in): Declare.
22940         * tree-ssa-pre.c (create_expression_by_pieces): Assert
22941         that AVAIL_OUT exists for BLOCK.
22942         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
22943         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
22944         (tree-parloops.o): Likewise.
22946 2009-04-17  Simon Baldwin  <simonb@google.com>
22948         * toplev.c (default_tree_printer): Add handling for %E format.
22950 2009-04-17  Diego Novillo  <dnovillo@google.com>
22952         * tree-pretty-print.c (dump_generic_node): Add break after
22953         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
22954         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
22955         FUNCTION_TYPE together.  Call print_struct_decl when printing
22956         structures and TDF_SLIM is not given.
22957         (print_struct_decl): Fix logic for detecting recursion.
22959 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
22961         PR 31567
22962         * gcc.c (create_at_file): New.
22963         (compile_input_file_p): New.
22964         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
22965         * main.c (main): Update call to toplev_main.
22966         * toplev.c (toplev_main): Change signature. Call expandargv.
22967         * toplev.h (toplev_main): Change signature.
22969 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
22971         * dwarf2out.c (field_byte_offset): Use the type size as the field size
22972         if the latter is not constant.
22974 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
22976         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
22978 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
22980         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
22981         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
22983 2009-04-17  Richard Guenther  <rguenther@suse.de>
22985         * tree-ssa-structalias.c (get_constraint_for_component_ref):
22986         Handle component references view-converting an invariant address.
22988 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
22990         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
22991         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
22992         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
22993         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
22994         Use @deftypevr rather than @deftypevar.
22996 2009-04-17  Richard Guenther  <rguenther@suse.de>
22998         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
22999         (get_prop_source_stmt): Likewise.
23000         (can_propagate_from): Likewise.
23002 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
23004         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
23005         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
23006         (--with-multilib-list): Add default value.
23007         * configure: Regenerate.
23008         * Makefile.in (TM_ENDIAN_CONFIG): Define.
23009         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
23010         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
23011         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
23012         Don't add default cpu to multilib list unnecessarily, but do enable
23013         the relevant compiler option..
23014         Add support for --with-multilib-list=<blank> and
23015         --with-multilib-list=!<somelib> to supress unwanted multilibs.
23016         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
23017         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
23018         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
23019         TM_MULTILIB_CONFIG.
23020         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
23021         (MULTILIB_OSDIRNAMES): New variable.
23022         * config/sh/t-1e: Delete file.
23023         * config/sh/t-mlib-sh1: Delete file.
23024         * config/sh/t-mlib-sh2: Delete file.
23025         * config/sh/t-mlib-sh2a: Delete file.
23026         * config/sh/t-mlib-sh2a-nofpu: Delete file.
23027         * config/sh/t-mlib-sh2a-single: Delete file.
23028         * config/sh/t-mlib-sh2a-single-only: Delete file.
23029         * config/sh/t-mlib-sh2e: Delete file.
23030         * config/sh/t-mlib-sh3e: Delete file.
23031         * config/sh/t-mlib-sh4: Delete file.
23032         * config/sh/t-mlib-sh4-nofpu: Delete file.
23033         * config/sh/t-mlib-sh4-single: Delete file.
23034         * config/sh/t-mlib-sh4-single-only: Delete file.
23035         * config/sh/t-mlib-sh4a: Delete file.
23036         * config/sh/t-mlib-sh4a-nofpu: Delete file.
23037         * config/sh/t-mlib-sh4a-single: Delete file.
23038         * config/sh/t-mlib-sh4a-single-only: Delete file.
23039         * config/sh/t-mlib-sh4al: Delete file.
23040         * config/sh/t-mlib-sh5-32media: Delete file.
23041         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
23042         * config/sh/t-mlib-sh5-64media: Delete file.
23043         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
23044         * config/sh/t-mlib-sh5-compact: Delete file.
23045         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
23046         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
23047         * doc/install.texi (Options specification): Add
23048         --with-multilib-list and --with-endian.
23050 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
23052         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
23053         REVISION_c.
23054         (OBJS-common): Add plugin-version.o.
23055         (plugin-version.o): New.
23056         * gcc-plugin.h (plugin_gcc_version): New.
23057         (plugin_default_version_check): New.
23058         (plugin_init_func, plugin_init): Add version argument.
23059         * plugin-version.c: New.
23060         * plugin.c (str_plugin_gcc_version_name): New.
23061         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
23062         pass it to the init function.
23063         (plugin_default_version_check): New.
23065 2009-04-17  Richard Guenther  <rguenther@suse.de>
23067         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
23068         for decl-vs-decl disambiguation.
23070 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
23072         * config/s390/s390.h (s390_tune_attr): New macro definition.
23073         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
23075 2009-04-17  Richard Guenther  <rguenther@suse.de>
23077         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
23078         (fold_stmt_r): Likewise.
23079         (maybe_fold_reference): New function.
23080         (fold_gimple_assign): Handle cases fold_stmt_r did.
23081         (fold_stmt): Do not use fold_stmt_r.
23082         (fold_stmt_inplace): Likewise.
23084 2009-04-17  Richard Guenther  <rguenther@suse.de>
23086         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
23087         (record_equivalences_from_stmt): Remove useless checks and
23088         simplifications.
23089         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
23090         the type is already suitable.
23092 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
23094         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
23096 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
23098         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
23099         (CMPtype): Define as __gcc_CMPtype.
23101 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
23103         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
23104         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
23106 2009-04-17  Richard Guenther  <rguenther@suse.de>
23108         PR tree-optimization/39746
23109         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
23110         special-casing for builtins and static variable use/def.
23111         (call_may_clobber_ref_p_1): Likewise.
23113 2009-04-16  Ian Lance Taylor  <iant@google.com>
23115         * df.h: Include "timevar.h".
23116         (struct df_problem): Change tv_id field to timevar_id_t.
23117         * tree-pass.h: Include "timevar.h".
23118         (struct opt_pass): Change tv_id field to timevar_id_t.
23119         * timevar.h (timevar_id_t): Define TV_NONE.
23120         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
23121         TV_NONE rather than tv_id != 0.
23122         (execute_one_pass): Likewise.
23123         * Makefile.in (DF_H): Add $(TIMEVAR_H).
23124         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
23125         dependencies to $(TREE_PASS_H).
23126         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
23127         to TV_NONE.
23128         (pass_branch_target_load_optimize2): Likewise.
23129         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
23130         (pass_outof_cfg_layout_mode): Likewise.
23131         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
23132         (pass_rebuild_cgraph_edges): Likewise.
23133         (pass_remove_cgraph_callee_edges): Likewise.
23134         * df-core.c (pass_df_initialize_opt): Likewise.
23135         (pass_df_initialize_no_opt): Likewise.
23136         (pass_df_finish): Likewise.
23137         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
23138         * except.c (pass_set_nothrow_function_flags): Likewise.
23139         (pass_convert_to_eh_region_ranges): Likewise.
23140         * final.c (pass_compute_alignments): Likewise.
23141         * function.c (pass_instantiate_virtual_regs): Likewise.
23142         (pass_init_function): Likewise.
23143         (pass_leaf_regs): Likewise.
23144         (pass_match_asm_constraints): Likewise.
23145         * gimple-low.c (pass_lower_cf): Likewise.
23146         (pass_mark_used_blocks): Likewise.
23147         * init-regs.c (pass_initialize_regs): Likewise.
23148         * integrate.c (pass_initial_value_sets): Likewise.
23149         * ira.c (pass_ira): Likewise.
23150         * jump.c (pass_cleanup_barriers): Likewise.
23151         * omp-low.c (pass_expand_omp): Likewise.
23152         (pass_lower_omp): Likewise.
23153         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
23154         * recog.c (pass_split_all_insns): Likewise.
23155         (pass_split_after_reload): Likewise.
23156         (pass_split_before_regstack): Likewise.
23157         (pass_split_before_sched2): Likewise.
23158         (pass_split_for_shorten_branches): Likewise.
23159         * reginfo.c (pass_reginfo_init): Likewise.
23160         (pass_subregs_of_mode_init): Likewise.
23161         (pass_subregs_of_mode_finish): Likewise.
23162         * passes.c (pass_postreload): Likewise.
23163         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
23164         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
23165         (pass_warn_function_return): Likewise.
23166         (pass_warn_function_noreturn): Likewise.
23167         * tree-complex.c (pass_lower_complex): Likewise.
23168         (pass_lower_complex_O0): Likewise.
23169         * tree-if-conv.c (pass_if_conversion): Likewise.
23170         * tree-into-ssa.c (pass_build_ssa): Likewise.
23171         * tree-mudflap.c (pass_mudflap_1): Likewise.
23172         (pass_mudflap_2): Likewise.
23173         * tree-nomudflap.c (pass_mudflap_1): Likewise.
23174         (pass_mudflap_2): Likewise.
23175         * tree-nrv.c (pass_return_slot): Likewise.
23176         * tree-object-size.c (pass_object_sizes): Likewise.
23177         * tree-optimize.c (pass_all_optimizations): Likewise.
23178         (pass_early_local_passes): Likewise.
23179         (pass_all_early_optimizations): Likewise.
23180         (pass_cleanup_cfg): Likewise.
23181         (pass_cleanup_cfg_post_optimizing): Likewise.
23182         (pass_free_datastructures): Likewise.
23183         (pass_free_cfg_annotations): Likewise.
23184         (pass_fixup_cfg): Likewise.
23185         (pass_init_datastructures): Likewise.
23186         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
23187         (pass_late_warn_uninitialized): Likewise.
23188         (pass_update_address_taken): Likewise.
23189         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
23190         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
23191         (pass_cse_sincos): Likewise.
23192         (pass_convert_to_rsqrt): Likewise.
23193         * tree-ssa-structalias.c (pass_build_alias): Likewise.
23194         * tree-stdarg.c (pass_stdarg): Likewise.
23195         * tree-tailcall.c (pass_tail_recursion): Likewise.
23196         (pass_tail_calls): Likewise.
23197         * tree-vect-generic.c (pass_lower_vector): Likewise.
23198         (pass_lower_vector_ssa): Likewise.
23199         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
23201 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
23203         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
23204         XLR entry.
23205         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
23206         Handle -march=xlr.
23207         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
23208         logical and signext.
23210 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
23212         PR target/39767
23213         * config/sh/predicates.md (arith_operand): Check if the operand
23214         of TRUNCATE is a REG.
23216 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
23218         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
23219         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
23221 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
23223         * tree-iterator.c (tsi_split_statement_list_after,
23224         tsi_split_statement_list_before): Remove.
23225         * tree-iterator.h: Remove the prototypes for
23226         tsi_split_statement_list_after and tsi_split_statement_list_before.
23228 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
23230         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
23231         * tree-ssa-propagate.h: Remove the prototype for
23232         stmt_makes_single_load.
23234 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
23236         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
23237         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
23239 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
23241         * tree-iterator.c (EXPR_LAST_BODY): Remove.
23243 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
23245         * except.c (eh_region_outer_p): Remove.
23246         * except.h: Remove the prototype for eh_region_outer_p.
23248 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
23250         * function.c (current_function_assembler_name): Remove.
23251         * function.h: Remove the prototype for
23252         current_function_assembler_name.
23254 2009-04-16  Ian Lance Taylor  <iant@google.com>
23256         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
23257         (add_reg_note): Call alloc_reg_note.
23258         * rtl.h (alloc_reg_note): Declare.
23259         * combine.c (try_combine): Use alloc_reg_note.
23260         (recog_for_combine, move_deaths): Likewise.
23261         (distribute_notes): Use alloc_reg_note and add_reg_note.
23262         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
23263         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
23264         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
23266 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
23268         PR rtl-optimization/39762
23269         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
23270         ira_may_move_out_cost): Add comments about way of their usage.
23271         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
23273         * ira-conflicts.c (process_regs_for_copy): Use function
23274         ira_get_register_move_cost instead of global
23275         ira_register_move_cost.
23277         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
23278         color_pass, move_spill_restore, update_curr_costs): Ditto.
23280         * ira-lives.c (process_single_reg_class_operands): Ditto.
23282         * ira-emit.c (emit_move_list): Ditto.
23284         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
23285         (record_reg_classes): Ditto.  Use functions
23286         ira_get_register_move_cost and ira_get_may_move_cost instead of
23287         global vars ira_register_move_cost, ira_may_move_out_cost and
23288         ira_may_move_in_cost.
23289         (record_address_regs): Don't call ira_init_register_move_cost.
23290         Use function ira_get_may_move_cost instead of global
23291         ira_may_move_in_cost.
23292         (process_bb_node_for_hard_reg_moves): Use function
23293         ira_get_register_move_cost instead of global ira_register_move_cost.
23294         (ira_costs): Don't call ira_init_register_move_cost.
23296 2009-04-16  Richard Guenther  <rguenther@suse.de>
23298         * tree-cfg.c (verify_gimple_assign_binary):
23299         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
23300         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
23301         (create_general_new_stmt): Note that this function is broken.
23303 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
23305         * common.opt (fhelp): Add Var(help_flag).
23306         * gcc-plugin.h (plugin_info): Add help.
23307         * plugin.c (plugin_name_args): Add help.
23308         (register_plugin_info): Set plugin->help.
23309         (print_help_one_plugin): New.
23310         (print_plugins_help): New.
23311         * plugin.h (print_plugins_help): New.
23312         * toplev.c (toplev_main): Call print_plugins_help if needed.
23314 2009-04-16  Richard Guenther  <rguenther@suse.de>
23316         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
23317         (gimple_ior_addresses_taken_1): New function.
23318         (gimple_ior_addresses_taken): Likewise.
23319         * gimple.h (struct gimple_statement_with_ops_base): Remove
23320         addresses_taken member.
23321         (gimple_ior_addresses_taken): Declare.
23322         (gimple_addresses_taken, gimple_addresses_taken_ptr,
23323         gimple_set_addresses_taken): Remove.
23324         * ipa-reference.c (mark_address): New function.
23325         (scan_stmt_for_static_refs): Use it for marking addresses taken.
23326         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
23327         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
23328         (gimple_add_to_addresses_taken): Remove.
23329         (get_tmr_operands): Call mark_address_taken.
23330         (get_asm_expr_operands): Likewise.
23331         (get_expr_operands): Likewise.
23332         (build_ssa_operands): Do not clear the addresses_taken bitmap.
23333         (free_stmt_operands): Do not free it.
23334         * tree-ssa.c (delete_tree_ssa): Likewise.
23335         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
23337 2009-04-16  Richard Guenther  <rguenther@suse.de>
23339         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
23340         (walk_stmt_load_store_ops): Likewise.
23341         * gimple.c (get_base_loadstore): New function.
23342         (walk_stmt_load_store_addr_ops): Likewise.
23343         (walk_stmt_load_store_ops): Likewise.
23344         * ipa-pure-const.c (check_op): Simplify.
23345         (check_load, check_store): New functions.
23346         (check_stmt): Use walk_stmt_load_store_ops.
23347         * ipa-reference.c (mark_load): Adjust signature.
23348         (mark_store): Likewise.
23349         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
23351 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
23353         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
23354         (plugin_info): New.
23355         * opts.c (common_handle_option): Don't call print_version.
23356         * plugin.c (plugin_name_args): Add version.
23357         (register_plugin_info): New.
23358         (register_callback): Handle PLUGIN_INFO.
23359         (try_init_one_plugin): New.
23360         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
23361         if failed to init.
23362         (finalize_one_plugin): New.
23363         (finalize_plugins): New.
23364         (print_one_plugin): New.
23365         (print_plugins_versions): New.
23366         * plugin.h (print_plugins_versions): New.
23367         (finalize_plugins): New.
23368         * toplev.c (compile_file): Don't call initialize_plugins.
23369         (print_version): Call print_plugins_versions.
23370         (toplev_main): Call initialize_plugins. Print version if needed.
23371         Call finalize_plugins.
23373 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
23375         * common.opt (fversion): New.
23376         * gcc.c (print_version): New.
23377         (process_command): Don't print the version. Just set print_version.
23378         (main): Print version. Call subprocesses if print_version and
23379         verbose_flag are set.
23380         * opts.c (common_handle_option): Handle OPT_fversion.
23382 2009-04-16  Richard Guenther  <rguenther@suse.de>
23383             Ira Rosen  <irar@il.ibm.com>
23385         PR tree-optimization/39698
23386         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
23387         type of the reduction variable.  Only generate the def if
23388         it is needed.
23390         * omp-low.c (expand_omp_for_generic): When converting to a pointer
23391         make sure to first convert to an integer of the same precision.
23392         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
23393         the type of the evolution correctly in computing the new
23394         induction variable base.
23396 2009-04-16  Richard Guenther  <rguenther@suse.de>
23398         PR middle-end/39625
23399         * tree-cfg.c (make_blocks): Split statements with to-be
23400         abnormal SSA names on the lhs.
23402 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
23404         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
23405         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
23406         * c-typeck.c (really_start_incremental_init): Likewise.
23407         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
23408         (TARGET_INITIALIZER): Remove it.
23409         * target.h (struct target): Remove vector_opaque_p.
23410         * tree.c (build_opaque_vector_type): New.
23411         * tree.h (TYPE_VECTOR_OPAQUE): New.
23412         (build_opaque_vector_type): Declare.
23413         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
23414         * config/rs6000/rs6000.c (build_opaque_vector_type,
23415         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
23416         (rs6000_init_builtins): Use build_opaque_vector_type for
23417         opaque_V4SI_type_node.
23419 2009-04-15  Catherine Moore  <clm@codesourcery.com>
23421         * debug.h (set_name):  Declare.
23422         * dwarf2out.c (dwarf2out_set_name): Declare.
23423         (dwarf2_debug_hooks): Add set_name.
23424         (find_AT_string): New.
23425         (add_AT_string): Call find_AT_string.
23426         (dwarf2out_set_name): New.
23427         * cp/decl.c (grokdeclarator): Call set_name.
23428         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
23429         * debug.c (do_nothing_debug_hooks):  Likewise.
23430         * dbxout.c (dbx_debug_hooks): Likewise.
23431         * sdbout.c (sdb_debug_hooks): Likewise.
23433 2009-04-15  Michael Eager  <eager@eagercon.com>
23435         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
23436         reg for single-precision FPU.
23437         * config/rs6000/rs6000.md (movsi_internal1): Only for
23438         !TARGET_SINGLE_FPU.
23439         (movsi_internal1_single): New. Add pattern to move SI values to/from
23440         single-precision FP regs.
23442 2009-04-15  Richard Guenther  <rguenther@suse.de>
23444         * omp-low.c (lower_rec_input_clauses): Build correct address
23445         expressions.
23446         (expand_omp_for_generic): Fix multiplication type.
23447         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
23448         (generate_memset_zero): Fix types.
23449         * tree-profile.c (prepare_instrumented_value): Correctly
23450         widen a pointer.
23452 2009-04-15  Ian Lance Taylor  <iant@google.com>
23454         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
23455         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
23456         for -Wall and for -Wc++-compat.
23457         (c_common_post_options): For C++, set warn_enum_compare if not
23458         already set.
23459         * c-tree.h (struct c_expr): Add field original_type.
23460         (build_external_ref): Update declaration.
23461         * c-parser.c (c_parser_braced_init): Set original_type.
23462         (c_parser_initelt): Likewise.
23463         (c_parser_expr_no_commas): Likewise.
23464         (c_parser_conditional_expression): Likewise.
23465         (c_parser_cast_expression): Likewise.
23466         (c_parser_unary_expression): Likewise.  Pull setting of
23467         original_code to top of function.
23468         (c_parser_sizeof_expression): Set original_type.
23469         (c_parser_alignof_expression): Likewise.
23470         (c_parser_postfix_expression): Likewise.  Pull setting of
23471         original_code to top of function.
23472         (c_parser_postfix_expression_after_paren_type): Set original_type.
23473         (c_parser_postfix_expression_after_primary): Likewise.
23474         (c_parser_expression): Likewise.
23475         * c-typeck.c (build_external_ref): Add type parameter.  Change all
23476         callers.
23477         (c_expr_sizeof_expr): Set original_type field.
23478         (parser_build_unary_op): Likewise.
23479         (parser_build_binary_op): Likewise.  Optionally warn about
23480         comparisons of enums of different types.
23481         (digest_init): Set original_type field.
23482         (really_start_incremental_init): Likewise.
23483         (push_init_level, pop_init_level): Likewise.
23484         * doc/invoke.texi (Warning Options): -Wenum-compare now
23485         supported in C.
23487 2009-04-15  Richard Guenther  <rguenther@suse.de>
23489         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
23490         out a necessary conversion.
23491         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
23492         names we didn't value number.
23493         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
23495 2009-04-15  Richard Guenther  <rguenther@suse.de>
23497         PR tree-optimization/39764
23498         * tree-ssa-ccp.c (get_value): Canonicalize value with
23499         canonicalize_float_value.
23501 2009-04-15  Jan Hubicka  <jh@suse.cz>
23503         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
23504         Wrong version of patch.
23506 2009-04-15  Jan Hubicka  <jh@suse.cz>
23508         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
23510 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
23512         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
23513         our distinct integral and vector types.
23515 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
23517         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
23518         * init.c (build_vtbl_address): Remove call to assemble_external.
23520 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
23522         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
23523         output for other floating point modes.
23525 2009-04-14  Diego Novillo  <dnovillo@google.com>
23527         * diagnostic.c (diagnostic_report_diagnostic): Do not
23528         warn about loaded plugins for DK_ERROR and DK_WARNING.
23529         * c-decl.c (declspecs_add_type): Move call to
23530         invoke_plugin_callbacks ...
23531         * c-parser.c (c_parser_declspecs): ... here.
23532         * plugin.c (dump_active_plugins): Tidy output.
23534 2009-04-14  Diego Novillo  <dnovillo@google.com>
23535             Le-Chun Wu  <lcwu@google.com>
23537         * configure.ac: Add --enable-plugin support.
23538         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
23539         * Makefile.in (PLUGIN_H): Define.
23540         Export ENABLE_PLUGIN and GMPINC to site.exp.
23541         Add PLUGINLIBS to link command.
23542         Add/modify dependencies for plugin.o and files including plugin.h.
23543         (plugin.o): New.
23544         * config.in: Regenerate.
23546         * opts.c (common_handle_option): Handle OPT_fplugin_ and
23547         OPT_fplugin_arg_.
23549 2009-04-14  Le-Chun Wu  <lcwu@google.com>
23551         * tree-pass.h (register_one_dump_file): Add a prototype for
23552         register_one_dump_file.
23553         * toplev.c (compile_file): Call initialize_plugins.
23554         (do_compile): Call invoke_plugin_callbacks.
23555         (toplev_main): Call invoke_plugin_callbacks.
23556         * common.opt: Add -fplugin= and -fplugin-arg-.
23557         * gcc-plugin.h: New public header file for plugins to include.
23558         * plugin.c: New source file.
23559         * plugin.h: New internal header file.
23560         * passes.c (register_one_dump_file): Make it external.
23562         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
23564 2009-04-14  Diego Novillo  <dnovillo@google.com>
23566         * doc/plugins.texi: New.
23567         * doc/gccint.texi: Add reference to Plugins chapter.
23568         * doc/invoke.texi: Document -fplugin and -fplugin-arg
23569         * diagnostic.c (diagnostic_report_diagnostic): Warn about
23570         loaded plugins, if any.
23571         * timevar.def (TV_PLUGIN_INIT): Define.
23572         (TV_PLUGIN_RUN): Define.
23573         * plugin.c: Include timevar.h
23574         (plugins_active_p): New.
23575         (dump_active_plugins): New.
23576         (debug_active_plugins): New.
23578 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
23580         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
23581         library paths.
23582         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
23584 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
23586         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
23587         the same as a minus without a shift.
23589 2009-04-14  Nick Clifton  <nickc@redhat.com>
23591         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
23592         comparisons with small integers will always produce a short
23593         branch.
23595 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
23597         Merge:
23598         2008-12-19  Diego Novillo  <dnovillo@google.com>
23600         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
23602 2009-04-14  Richard Guenther  <rguenther@suse.de>
23604         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
23605         verification.
23606         (verify_gimple_assign_binary): Likewise.  Handle shifts and
23607         rotates correctly.
23608         (verify_gimple_phi): Print the mismatched argument position.
23609         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
23610         Fix types.
23611         (vect_update_init_of_dr): Likewise.
23612         * matrix-reorg.c (transform_access_sites): Do what the
23613         comment suggests.
23614         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
23616 2009-04-13  Michael Eager  <eager@eagercon.com>
23618         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
23619         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
23620         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
23621         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
23622         remove duplicate config
23624 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
23626         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
23627         file_name:line_number type locator of the call site.
23629 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
23631         * genautomata.c: Put blank after comma.
23632         (automaton_decls): New.
23633         (struct unit_usage): Add comments to member next.
23634         (store_alt_unit_usage): Keep the list ordered.
23635         (unit_present_on_list_p, equal_alternatives_p): New.
23636         (check_regexp_units_distribution): Check units distribution
23637         correctness correctly.
23638         (main): Don't write automata if error is found.  Return correct
23639         exit code.
23641         * config/m68k/cf.md (cfv4_ds): Remove.
23642         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
23643         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
23645         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
23646         power4-load-ext, power4-store, power4-store-update,
23647         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
23648         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
23649         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
23650         power4-sqrt, power4-isync): Modify reservation to make correct
23651         unit distribution to automata.
23653         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
23654         power5-store-update, power5-two, power5-three, power5-lmul,
23655         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
23657 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
23659         * except.c (pass_set_nothrow_function_flags): Set name and add
23660         TODO_dump_func.
23661         (set_nothrow_function_flags): Mention in the dump file when
23662         changing a function to nothrow.
23664 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
23666         PR/39066
23667         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
23668         instead of unsigned long.
23670 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23672         * config/arm/arm.c (return_used_this_function): Remove.
23673         (arm_output_function_prologue): Remove use of
23674         return_used_this_function.
23675         (output_return_instruction): Replace use of
23676         return_used_this_function
23677         by cfun->machine->return_used_this_function.
23678         (arm_output_epilogue): Likewise.
23679         (arm_output_function_epilogue): Likewise.
23680         (thumb_unexpanded_epilogue): Likewise.
23681         * config/arm/arm.h (struct machine_function):
23682         New member return_used_this_function.
23684 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
23686         * doc/install.texi: Correct description of default directory for
23687         --with-gxx-include-dir.
23689 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
23691         * fold-const.c (build_range_check): Properly deal with enumeral and
23692         boolean base types.
23694 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
23696         * doc/invoke.texi (max_gcse_passes): Remove documentation.
23697         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
23698         * params.h (MAX_GCSE_PASSES): Remove.
23699         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
23700         in sequence.  Remove ability to run multiple passes.
23701         (bypass_jumps): Report run as third CPROP pass.
23703 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
23705         PR middle-end/39651
23706         * except.c (can_throw_external): Look at each insn in a SEQUENCE
23707         when deciding whether the whole SEQUENCE can throw.
23709 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
23711         PR target/39740
23712         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
23713         offseted label references.
23715 2009-04-11  Jan Hubicka  <jh@suse.cz>
23717         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
23719 2009-04-11  Richard Guenther  <rguenther@suse.de>
23721         PR middle-end/39732
23722         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
23723         return variables as TREE_ADDRESSABLE.
23725 2009-04-11  Richard Guenther  <rguenther@suse.de>
23727         PR tree-optimization/39713
23728         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
23729         reference trees have SSA_NAME operands.
23731 2009-04-11  Richard Guenther  <rguenther@suse.de>
23733         PR c/39712
23734         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
23735         address expressions.
23737 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
23739         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
23740         match changes in Cygwin 1.7
23741         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
23742         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
23744 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
23746         PR tree-optimization/39701
23747         * doc/invoke.texi (Optimization Options): Document change in
23748         meaning and initialization of -fdelete-null-pointer-checks.
23750 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
23752         PR middle-end/39701
23753         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
23755         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
23756         here.
23758         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
23760 2009-04-10  Chao-ying Fu  <fu@mips.com>
23762         * doc/tm.texi (Instruction Output): Document
23763         TARGET_ASM_FINAL_POSTSCAN_INSN.
23764         * target.h (final_postscan_insn): New field in asm_out.
23765         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
23766         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
23767         * final.c (final_scan_insn): Call
23768         targetm.asm_out.final_postscan_insn after outputting
23769         an asm macro and a normal instruction.
23771         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
23772         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
23773         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
23774         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
23775         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
23777 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
23779         PR middle-end/39701
23780         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
23781         variables as non-NULL even with -fdelete-null-pointer-checks.
23783 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
23785         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
23787 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
23789         PR target/39678
23790         * config/i386/i386.c (classify_argument): Handle SCmode with
23791         (bit_offset % 64) != 0.
23793 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
23795         * doc/invoke.texi (Optimize Options): Add cross-reference to
23796         -Q --help=optimizers examples.
23798 2009-04-10  Ben Elliston  <bje@au.ibm.com>
23800         PR target/36800
23801         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
23802         regalign for the reg == fpr and TDmode case.
23804 2009-04-09  David Ayers  <ayers@fsfe.org>
23806         PR objc/29200
23807         * objc/objc-act.c (warn_with_method): Remove helper function.
23808         (check_duplicates): Call warning and inform directly.
23809         (really_start_method): Likewise.
23811 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
23813         * expmed.c (expand_divmod): Always use a comparison for a division
23814         by a large unsigned integer.
23816         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
23817         for things others than variables or functions as nonzero.
23819 2009-04-09  Nick Clifton  <nickc@redhat.com>
23821         * unwind-compat.c: Change copyright header to refer to version
23822         3 of the GNU General Public License with version 3.1 of the
23823         GCC Runtime Library Exception and to point readers at the
23824         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
23825         * config/alpha/crtfastmath.c: Likewise.
23826         * config/alpha/linux-unwind.h: Likewise.
23827         * config/alpha/qrnnd.asm: Likewise.
23828         * config/alpha/vms-crt0-64.c: Likewise.
23829         * config/alpha/vms-crt0.c: Likewise.
23830         * config/alpha/vms-dwarf2.asm: Likewise.
23831         * config/alpha/vms-dwarf2eh.asm: Likewise.
23832         * config/alpha/vms-psxcrt0-64.c: Likewise.
23833         * config/alpha/vms-psxcrt0.c: Likewise.
23834         * config/alpha/vms_tramp.asm: Likewise.
23835         * config/arc/initfini.c: Likewise.
23836         * config/arc/lib1funcs.asm: Likewise.
23837         * config/arm/bpabi-v6m.S: Likewise.
23838         * config/arm/bpabi.S: Likewise.
23839         * config/arm/bpabi.c: Likewise.
23840         * config/arm/crti.asm: Likewise.
23841         * config/arm/crtn.asm: Likewise.
23842         * config/arm/ieee754-df.S: Likewise.
23843         * config/arm/ieee754-sf.S: Likewise.
23844         * config/arm/lib1funcs.asm: Likewise.
23845         * config/arm/libunwind.S: Likewise.
23846         * config/arm/linux-atomic.c: Likewise.
23847         * config/arm/mmintrin.h: Likewise.
23848         * config/arm/pr-support.c: Likewise.
23849         * config/arm/unaligned-funcs.c: Likewise.
23850         * config/arm/unwind-arm.c: Likewise.
23851         * config/arm/unwind-arm.h: Likewise.
23852         * config/avr/libgcc.S: Likewise.
23853         * config/bfin/crti.s: Likewise.
23854         * config/bfin/crtlibid.s: Likewise.
23855         * config/bfin/crtn.s: Likewise.
23856         * config/bfin/lib1funcs.asm: Likewise.
23857         * config/bfin/linux-unwind.h: Likewise.
23858         * config/cris/arit.c: Likewise.
23859         * config/cris/cris_abi_symbol.c: Likewise.
23860         * config/darwin-64.c: Likewise.
23861         * config/darwin-crt2.c: Likewise.
23862         * config/darwin-crt3.c: Likewise.
23863         * config/darwin.h: Likewise.
23864         * config/dbxelf.h: Likewise.
23865         * config/dfp-bit.c: Likewise.
23866         * config/dfp-bit.h: Likewise.
23867         * config/elfos.h: Likewise.
23868         * config/fixed-bit.c: Likewise.
23869         * config/fixed-bit.h: Likewise.
23870         * config/fp-bit.c: Likewise.
23871         * config/fp-bit.h: Likewise.
23872         * config/fr30/crti.asm: Likewise.
23873         * config/fr30/crtn.asm: Likewise.
23874         * config/fr30/lib1funcs.asm: Likewise.
23875         * config/freebsd-spec.h: Likewise.
23876         * config/frv/cmovd.c: Likewise.
23877         * config/frv/cmovh.c: Likewise.
23878         * config/frv/cmovw.c: Likewise.
23879         * config/frv/frvbegin.c: Likewise.
23880         * config/frv/frvend.c: Likewise.
23881         * config/frv/lib1funcs.asm: Likewise.
23882         * config/glibc-stdint.h: Likewise.
23883         * config/h8300/clzhi2.c: Likewise.
23884         * config/h8300/crti.asm: Likewise.
23885         * config/h8300/crtn.asm: Likewise.
23886         * config/h8300/ctzhi2.c: Likewise.
23887         * config/h8300/fixunssfsi.c: Likewise.
23888         * config/h8300/lib1funcs.asm: Likewise.
23889         * config/h8300/parityhi2.c: Likewise.
23890         * config/h8300/popcounthi2.c: Likewise.
23891         * config/i386/ammintrin.h: Likewise.
23892         * config/i386/att.h: Likewise.
23893         * config/i386/avxintrin.h: Likewise.
23894         * config/i386/biarch64.h: Likewise.
23895         * config/i386/bmmintrin.h: Likewise.
23896         * config/i386/cpuid.h: Likewise.
23897         * config/i386/cross-stdarg.h: Likewise.
23898         * config/i386/crtfastmath.c: Likewise.
23899         * config/i386/crtprec.c: Likewise.
23900         * config/i386/cygming-crtbegin.c: Likewise.
23901         * config/i386/cygming-crtend.c: Likewise.
23902         * config/i386/cygwin.asm: Likewise.
23903         * config/i386/emmintrin.h: Likewise.
23904         * config/i386/gmm_malloc.h: Likewise.
23905         * config/i386/gthr-win32.c: Likewise.
23906         * config/i386/i386.h: Likewise.
23907         * config/i386/immintrin.h: Likewise.
23908         * config/i386/linux-unwind.h: Likewise.
23909         * config/i386/linux64.h: Likewise.
23910         * config/i386/mm3dnow.h: Likewise.
23911         * config/i386/mmintrin-common.h: Likewise.
23912         * config/i386/mmintrin.h: Likewise.
23913         * config/i386/nmmintrin.h: Likewise.
23914         * config/i386/pmm_malloc.h: Likewise.
23915         * config/i386/pmmintrin.h: Likewise.
23916         * config/i386/smmintrin.h: Likewise.
23917         * config/i386/sol2-c1.asm: Likewise.
23918         * config/i386/sol2-ci.asm: Likewise.
23919         * config/i386/sol2-cn.asm: Likewise.
23920         * config/i386/sol2-gc1.asm: Likewise.
23921         * config/i386/tmmintrin.h: Likewise.
23922         * config/i386/unix.h: Likewise.
23923         * config/i386/w32-unwind.h: Likewise.
23924         * config/i386/wmmintrin.h: Likewise.
23925         * config/i386/x86-64.h: Likewise.
23926         * config/i386/x86intrin.h: Likewise.
23927         * config/i386/xmmintrin.h: Likewise.
23928         * config/ia64/crtbegin.asm: Likewise.
23929         * config/ia64/crtend.asm: Likewise.
23930         * config/ia64/crtfastmath.c: Likewise.
23931         * config/ia64/crti.asm: Likewise.
23932         * config/ia64/crtn.asm: Likewise.
23933         * config/ia64/fde-glibc.c: Likewise.
23934         * config/ia64/lib1funcs.asm: Likewise.
23935         * config/ia64/linux-unwind.h: Likewise.
23936         * config/ia64/quadlib.c: Likewise.
23937         * config/ia64/unwind-ia64.c: Likewise.
23938         * config/linux.h: Likewise.
23939         * config/m32c/m32c-lib1.S: Likewise.
23940         * config/m32c/m32c-lib2-trapv.c: Likewise.
23941         * config/m32c/m32c-lib2.c: Likewise.
23942         * config/m32r/initfini.c: Likewise.
23943         * config/m68hc11/larith.asm: Likewise.
23944         * config/m68hc11/m68hc11-crt0.S: Likewise.
23945         * config/m68k/cf.md: Likewise.
23946         * config/m68k/crti.s: Likewise.
23947         * config/m68k/crtn.s: Likewise.
23948         * config/m68k/lb1sf68.asm: Likewise.
23949         * config/m68k/linux-unwind.h: Likewise.
23950         * config/mcore/crti.asm: Likewise.
23951         * config/mcore/crtn.asm: Likewise.
23952         * config/mcore/lib1.asm: Likewise.
23953         * config/mips/linux-unwind.h: Likewise.
23954         * config/mips/loongson.h: Likewise.
23955         * config/mips/mips16.S: Likewise.
23956         * config/mmix/crti.asm: Likewise.
23957         * config/mmix/crtn.asm: Likewise.
23958         * config/pa/fptr.c: Likewise.
23959         * config/pa/hpux-unwind.h: Likewise.
23960         * config/pa/lib2funcs.asm: Likewise.
23961         * config/pa/linux-atomic.c: Likewise.
23962         * config/pa/linux-unwind.h: Likewise.
23963         * config/pa/milli64.S: Likewise.
23964         * config/pa/quadlib.c: Likewise.
23965         * config/pa/stublib.c: Likewise.
23966         * config/picochip/libgccExtras/adddi3.asm: Likewise.
23967         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
23968         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
23969         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
23970         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
23971         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
23972         * config/picochip/libgccExtras/divmod15.asm: Likewise.
23973         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
23974         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
23975         * config/picochip/libgccExtras/longjmp.asm: Likewise.
23976         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
23977         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
23978         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
23979         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
23980         * config/picochip/libgccExtras/setjmp.asm: Likewise.
23981         * config/picochip/libgccExtras/subdi3.asm: Likewise.
23982         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
23983         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
23984         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
23985         * config/rs6000/750cl.h: Likewise.
23986         * config/rs6000/altivec.h: Likewise.
23987         * config/rs6000/biarch64.h: Likewise.
23988         * config/rs6000/crtresfpr.asm: Likewise.
23989         * config/rs6000/crtresgpr.asm: Likewise.
23990         * config/rs6000/crtresxfpr.asm: Likewise.
23991         * config/rs6000/crtresxgpr.asm: Likewise.
23992         * config/rs6000/crtsavfpr.asm: Likewise.
23993         * config/rs6000/crtsavgpr.asm: Likewise.
23994         * config/rs6000/darwin-asm.h: Likewise.
23995         * config/rs6000/darwin-fallback.c: Likewise.
23996         * config/rs6000/darwin-fpsave.asm: Likewise.
23997         * config/rs6000/darwin-ldouble.c: Likewise.
23998         * config/rs6000/darwin-tramp.asm: Likewise.
23999         * config/rs6000/darwin-unwind.h: Likewise.
24000         * config/rs6000/darwin-vecsave.asm: Likewise.
24001         * config/rs6000/darwin-world.asm: Likewise.
24002         * config/rs6000/e500crtres32gpr.asm: Likewise.
24003         * config/rs6000/e500crtres64gpr.asm: Likewise.
24004         * config/rs6000/e500crtres64gprctr.asm: Likewise.
24005         * config/rs6000/e500crtrest32gpr.asm: Likewise.
24006         * config/rs6000/e500crtrest64gpr.asm: Likewise.
24007         * config/rs6000/e500crtresx32gpr.asm: Likewise.
24008         * config/rs6000/e500crtresx64gpr.asm: Likewise.
24009         * config/rs6000/e500crtsav32gpr.asm: Likewise.
24010         * config/rs6000/e500crtsav64gpr.asm: Likewise.
24011         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
24012         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
24013         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
24014         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
24015         * config/rs6000/eabi-ci.asm: Likewise.
24016         * config/rs6000/eabi-cn.asm: Likewise.
24017         * config/rs6000/eabi.asm: Likewise.
24018         * config/rs6000/linux-unwind.h: Likewise.
24019         * config/rs6000/linux64.h: Likewise.
24020         * config/rs6000/paired.h: Likewise.
24021         * config/rs6000/paired.md: Likewise.
24022         * config/rs6000/ppc64-fp.c: Likewise.
24023         * config/rs6000/ppu_intrinsics.h: Likewise.
24024         * config/rs6000/rs6000.h: Likewise.
24025         * config/rs6000/si2vmx.h: Likewise.
24026         * config/rs6000/sol-ci.asm: Likewise.
24027         * config/rs6000/sol-cn.asm: Likewise.
24028         * config/rs6000/spe.h: Likewise.
24029         * config/rs6000/spu2vmx.h: Likewise.
24030         * config/rs6000/sysv4.h: Likewise.
24031         * config/rs6000/tramp.asm: Likewise.
24032         * config/rs6000/vec_types.h: Likewise.
24033         * config/s390/linux-unwind.h: Likewise.
24034         * config/s390/tpf-unwind.h: Likewise.
24035         * config/score/crti.asm: Likewise.
24036         * config/score/crtn.asm: Likewise.
24037         * config/sh/crt1.asm: Likewise.
24038         * config/sh/crti.asm: Likewise.
24039         * config/sh/crtn.asm: Likewise.
24040         * config/sh/divtab-sh4-300.c: Likewise.
24041         * config/sh/divtab-sh4.c: Likewise.
24042         * config/sh/divtab.c: Likewise.
24043         * config/sh/lib1funcs-4-300.asm: Likewise.
24044         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
24045         * config/sh/lib1funcs.asm: Likewise.
24046         * config/sh/lib1funcs.h: Likewise.
24047         * config/sh/linux-atomic.asm: Likewise.
24048         * config/sh/linux-unwind.h: Likewise.
24049         * config/sh/shmedia.h: Likewise.
24050         * config/sh/sshmedia.h: Likewise.
24051         * config/sh/ushmedia.h: Likewise.
24052         * config/sparc/crtfastmath.c: Likewise.
24053         * config/sparc/linux-unwind.h: Likewise.
24054         * config/sparc/sol2-c1.asm: Likewise.
24055         * config/sparc/sol2-ci.asm: Likewise.
24056         * config/sparc/sol2-cn.asm: Likewise.
24057         * config/spu/divmodti4.c: Likewise.
24058         * config/spu/divv2df3.c: Likewise.
24059         * config/spu/float_disf.c: Likewise.
24060         * config/spu/float_unsdidf.c: Likewise.
24061         * config/spu/float_unsdisf.c: Likewise.
24062         * config/spu/float_unssidf.c: Likewise.
24063         * config/spu/mfc_multi_tag_release.c: Likewise.
24064         * config/spu/mfc_multi_tag_reserve.c: Likewise.
24065         * config/spu/mfc_tag_release.c: Likewise.
24066         * config/spu/mfc_tag_reserve.c: Likewise.
24067         * config/spu/mfc_tag_table.c: Likewise.
24068         * config/spu/multi3.c: Likewise.
24069         * config/spu/spu_internals.h: Likewise.
24070         * config/spu/spu_intrinsics.h: Likewise.
24071         * config/spu/spu_mfcio.h: Likewise.
24072         * config/spu/vec_types.h: Likewise.
24073         * config/spu/vmx2spu.h: Likewise.
24074         * config/stormy16/stormy16-lib2.c: Likewise.
24075         * config/svr4.h: Likewise.
24076         * config/sync.c: Likewise.
24077         * config/v850/lib1funcs.asm: Likewise.
24078         * config/vxlib-tls.c: Likewise.
24079         * config/vxlib.c: Likewise.
24080         * config/vxworks-dummy.h: Likewise.
24081         * config/xtensa/crti.asm: Likewise.
24082         * config/xtensa/crtn.asm: Likewise.
24083         * config/xtensa/ieee754-df.S: Likewise.
24084         * config/xtensa/ieee754-sf.S: Likewise.
24085         * config/xtensa/lib1funcs.asm: Likewise.
24086         * config/xtensa/lib2funcs.S: Likewise.
24087         * config/xtensa/linux-unwind.h: Likewise.
24088         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
24089         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
24090         * coretypes.h: Likewise.
24091         * crtstuff.c: Likewise.
24092         * defaults.h: Likewise.
24093         * dwarf2.h: Likewise.
24094         * emutls.c: Likewise.
24095         * gbl-ctors.h: Likewise.
24096         * gcov-io.h: Likewise.
24097         * ginclude/float.h: Likewise.
24098         * ginclude/iso646.h: Likewise.
24099         * ginclude/stdarg.h: Likewise.
24100         * ginclude/stdbool.h: Likewise.
24101         * ginclude/stddef.h: Likewise.
24102         * ginclude/stdfix.h: Likewise.
24103         * ginclude/stdint-gcc.h: Likewise.
24104         * ginclude/tgmath.h: Likewise.
24105         * gthr-aix.h: Likewise.
24106         * gthr-dce.h: Likewise.
24107         * gthr-gnat.c: Likewise.
24108         * gthr-gnat.h: Likewise.
24109         * gthr-lynx.h: Likewise.
24110         * gthr-mipssde.h: Likewise.
24111         * gthr-nks.h: Likewise.
24112         * gthr-posix.c: Likewise.
24113         * gthr-posix.h: Likewise.
24114         * gthr-posix95.h: Likewise.
24115         * gthr-rtems.h: Likewise.
24116         * gthr-single.h: Likewise.
24117         * gthr-solaris.h: Likewise.
24118         * gthr-tpf.h: Likewise.
24119         * gthr-vxworks.h: Likewise.
24120         * gthr-win32.h: Likewise.
24121         * gthr.h: Likewise.
24122         * libgcc2.c: Likewise.
24123         * libgcc2.h: Likewise.
24124         * libgcov.c: Likewise.
24125         * tsystem.h: Likewise.
24126         * typeclass.h: Likewise.
24127         * unwind-c.c: Likewise.
24128         * unwind-compat.h: Likewise.
24129         * unwind-dw2-fde-compat.c: Likewise.
24130         * unwind-dw2-fde-darwin.c: Likewise.
24131         * unwind-dw2-fde-glibc.c: Likewise.
24132         * unwind-dw2-fde.c: Likewise.
24133         * unwind-dw2-fde.h: Likewise.
24134         * unwind-dw2.c: Likewise.
24135         * unwind-dw2.h: Likewise.
24136         * unwind-generic.h: Likewise.
24137         * unwind-pe.h: Likewise.
24138         * unwind-sjlj.c: Likewise.
24139         * unwind.inc: Likewise.
24140         * config/arm/neon-gen.ml: Change generated copyright header to
24141         refer to version 3 of the GNU General Public License with
24142         version 3.1 of the GCC Runtime Library Exception and to point
24143         readers at the COPYING3 and COPYING3.RUNTIME files and the
24144         FSF's license web page.
24145         * config/arm/arm_neon.h: Regenerate.
24147 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
24149         * config/cris/cris.md: Change copyright header to refer to version
24150         3 of the GNU General Public License.
24151         * doc/install.texi2html: Change copyright header to refer to version
24152         3 of the GNU General Public License and to point readers at the
24153         COPYING3 file and the FSF's license web page.
24154         * config/vax/linux.h: Likewise.
24156 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
24158         * config/i386/i386.md (cmpcc): New.
24159         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
24160         (sync_compare_and_swap_cc*): Delete.
24162         * config/s390/s390.c (s390_compare_emitted): Remove.
24163         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
24164         s390_compare_emitted used to be handled.  Assert that modes match.
24165         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
24166         refer to sync_compare_and_swap_ccsi.
24167         * config/s390/s390.h (s390_compare_emitted): Remove.
24168         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
24169         instead of s390_compare_emitted.
24170         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
24171         instead of s390_compare_emitted.
24172         * config/s390/s390.md (cmpcc): New.
24173         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
24174         CC_REGNUM, do not pretend it's set.
24175         (sync_compare_and_swap_cc*): Delete.
24176         * config/s390/predicates.md (cc_reg_operand): New.
24178         * expr.c (sync_compare_and_swap_cc): Delete.
24179         * optabs.h (sync_compare_and_swap_cc): Delete.
24180         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
24181         is being used with can_compare_p.
24182         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
24183         (find_cc_set): New.
24184         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
24185         look for a MODE_CC set instead.  Use emit_store_flag.
24186         (expand_compare_and_swap_loop): Likewise, with some additional
24187         complication to avoid a force_reg when useless.  Use
24188         emit_cmp_and_jump_insns.
24189         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
24190         * doc/md.texi (sync_compare_and_swap_cc): Merge with
24191         sync_compare_and_swap documentation.
24193 2009-04-09  Jan Hubicka  <jh@suse.cz>
24195         * except.c (find_prev_try): Break out from ....
24196         (duplicate_eh_regions): ... here; properly update prev_try pointers
24197         when duplication part of tree.
24198         (dump_eh_tree): Improve dumping.
24199         (verify_eh_region): New.
24200         (verify_eh_tree): Use it.
24202 2009-04-06  Richard Guenther  <rguenther@suse.de>
24204         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
24205         &ARRAY addresses by adjusting their types and prepending
24206         a conversion.
24207         * tree-cfg.c (verify_gimple_assign_single): Verify that
24208         addresses are correct.
24210 2009-04-09  Richard Guenther  <rguenther@suse.de>
24212         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
24213         indices into an array reference if possible.
24214         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
24215         Fold POINTER_PLUS_EXPR statements with invariant address.
24217 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
24219         PR target/39634
24220         * config.gcc (powerpc64-*-linux*): Always build biarch.
24222 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
24224         PR c/39613
24225         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
24226         it and pedwarn if this results in an INTEGER_CST.
24228 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24230         * doc/install.texi: Update minimum GMP version.  Remove obsolete
24231         text in MPFR section.
24233 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
24235         * dwarf2out.c (class_scope_p): New static inline.
24236         (class_or_namespace_scope_p): Use it.
24237         (gen_variable_die): Use DW_TAG_member tag for static data member
24238         declarations instead of DW_TAG_variable.
24240         PR middle-end/39573
24241         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
24242         variables.
24244 2009-04-08  Richard Guenther  <rguenther@suse.de>
24246         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
24247         valueize random data.
24249 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
24251         * config.gcc (aix tm_file):  Add aix-stdint.h.
24252         (aix tm clause use_gcc_stdint):  Set to wrap.
24253         * config/rs6000/aix-stdint.h:  New file.
24255 2009-04-08  Richard Guenther  <rguenther@suse.de>
24257         PR middle-end/36291
24258         * tree-dfa.c (add_referenced_var): Do not recurse into
24259         global initializers.
24260         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
24261         exposed variables.
24262         (fold_const_aggregate_ref): Likewise.
24264 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
24266         * recog.c (ordered_comparison_operator): New.
24267         * gensupport.c (std_preds): Add it.
24268         * doc/md.texi (Machine-Independent Predicates): Document it.
24270 2009-04-08  Jan Hubicka  <jh@suse.cz>
24272         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
24273         * function.h (rtl_eh): Remove exception_handler_label_map.
24274         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
24275         remove_exception_handler_label, for_each_eh_label_1): Remove.
24276         (rtl_remove_unreachable_regions): Remove.
24277         (convert_from_eh_region_ranges): Do not remove unreachable regions.
24278         (find_exception_handler_labels): Don't build the hashtable.
24279         (maybe_remove_eh_handler): Remove.
24280         (for_each_eh_label): Rewrite to walk the tree.
24281         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
24282         * except.h (maybe_remove_eh_handler): Remove.
24283         * passes.c (init_optimization_passes): Schedule second EH cleanup
24284         before out-of-ssa.
24285         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
24286         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
24288 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
24290         * genoutput.c (validate_optab_operands): New.
24291         (gen_insn, gen_expand): Call it.
24293         * genflags.c (gen_insn): Detect misused iterators.
24294         (main): Pass line_no to gen_insn, exit with status 1 on error.
24296         * genextract.c (line_no): Make global.
24297         (VEC_safe_set_locstr): Change assertion to error message.
24298         (main): Exit with status 1 on error.
24300 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
24302         PR c/39614
24303         PR c/39673
24304         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
24305         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
24306         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
24307         * c-convert.c (convert): Do not call fold on results of conversion
24308         functions when the result is a C_MAYBE_CONST_EXPR.
24309         * c-parser.c (c_parser_postfix_expression): Do not fold condition
24310         of __builtin_choose_expr.
24311         * c-typeck.c (remove_c_maybe_const_expr): New.
24312         (build_unary_op, build_conditional_expr, build_compound_expr,
24313         build_binary_op, c_objc_common_truthvalue_conversion): Call
24314         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
24315         integer operands.
24317 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
24319         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
24320         CODE to produce a new one. Add a prototype to use fold_convert_const
24322 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
24324         PR bootstrap/39660
24325         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
24326         mix declarations and code.
24328 2009-04-08  Ben Elliston  <bje@au.ibm.com>
24330         * gcc.c: Replace `CC' with `GCC' throughout.
24332 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
24334         * doc/invoke.texi: Document Atom support.
24336 2009-04-07  Jason Merrill  <jason@redhat.com>
24338         PR c++/25185
24339         * c-common.h, c-common.c: Add flag_pretty_templates.
24340         * c-opts.c (c_common_handle_option): Set it.
24341         * c.opt: Add -fno-pretty-templates.
24342         * doc/invoke.texi (C++ Dialect Options): Likewise.
24344 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
24346         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
24347         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
24348         (ia64_expand_builtin): Likewise.
24350 2009-04-07  Martin Jambor  <mjambor@suse.cz>
24352         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
24353         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
24354         ADDR_EXPRS are include too.
24356 2009-04-07  Richard Guenther  <rguenther@suse.de>
24358         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
24359         decls are only used if passes as parameters or if they are
24360         local statics and the call is not to a builtin.
24361         (call_may_clobber_ref_p_1): Likewise.
24363 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
24365         * expr.c (do_store_flag): Remove last argument.  Simplify code
24366         to avoid duplication of tests already done by can_compare_p.
24367         (expand_expr_real_1): Adjust caller.
24369 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
24371         * optabs.c (can_compare_p): Test the predicate of a
24372         cbranch and cstore pattern.
24374 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
24376         * expr.c (convert_move): Use emit_store_flag instead of
24377         "emulating" it.
24379 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
24381         * config/i386/i386.c (ix86_compare_emitted): Remove.
24382         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
24383         ix86_compare_op0 like ix86_compare_emitted used to be handled.
24384         * config/i386/i386.h (ix86_compare_emitted): Remove.
24385         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
24386         instead of ix86_compare_emitted.
24387         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
24389 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
24391         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
24392         Add t-sysroot-suffix to tmake_file.
24393         * config/print-sysroot-suffix.sh: New file.
24394         * config/t-sysroot-suffix: New file.
24396 2009-04-07  Ben Elliston  <bje@au.ibm.com>
24398         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
24399         as the latter produces a warning when the target does not support
24400         infinity.
24402 2009-04-07  Ben Elliston  <bje@au.ibm.com>
24404         * dfp.c: Replace type punning assignments with memcpy throughout.
24405         * Makefile.in (dfp.o-warn): Remove.
24407 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
24409         PR target/39634
24410         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
24411         Include soft-fp/t-softfp after rs6000/t-linux64.
24413 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
24415         * stor-layout.c (set_sizetype): Use the full precision of their
24416         machine mode for bitsize types.
24418 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
24420         * config/i386/i386.md: Revert 2 accidental checkins.
24422 2009-04-06  Joey Ye  <joey.ye@intel.com>
24423             Xuepeng Guo  <xuepeng.guo@intel.com>
24424             H.J. Lu  <hongjiu.lu@intel.com>
24426         Atom pipeline model, tuning and insn selection.
24427         * config.gcc (atom): Add atom config options and target.
24429         * config/i386/atom.md: New.
24431         * config/i386/i386.c (atom_cost): New cost.
24432         (m_ATOM): New macro flag.
24433         (initial_ix86_tune_features): Set m_ATOM.
24434         (x86_accumulate_outgoing_args): Likewise.
24435         (x86_arch_always_fancy_math_387): Likewise.
24436         (processor_target): Add Atom cost.
24437         (cpu_names): Add Atom cpu name.
24438         (override_options): Set Atom ISA.
24439         (ix86_issue_rate): New case PROCESSOR_ATOM.
24440         (ix86_adjust_cost): Likewise.
24442         * config/i386/i386.h (TARGET_ATOM): New target macro.
24443         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
24444         (TARGET_OPT_AGU): New target option.
24445         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
24446         (processor_type): Add PROCESSOR_ATOM.
24448         * config/i386/i386.md (cpu): Add new value "atom".
24449         (use_carry, movu): New attr.
24450         (atom.md): Include atom.md.
24451         (adddi3_carry_rex64): Set attr "use_carry".
24452         (addqi3_carry): Likewise.
24453         (addhi3_carry): Likewise.
24454         (addsi3_carry): Likewise.
24455         (*addsi3_carry_zext): Likewise.
24456         (subdi3_carry_rex64): Likewise.
24457         (subqi3_carry): Likewise.
24458         (subhi3_carry): Likewise.
24459         (subsi3_carry): Likewise.
24460         (x86_movdicc_0_m1_rex64): Likewise.
24461         (*x86_movdicc_0_m1_se): Likewise.
24462         (x86_movsicc_0_m1): Likewise.
24463         (*x86_movsicc_0_m1_se): Likewise.
24464         (*adddi_1_rex64): Emit add insn as much as possible.
24465         (*addsi_1): Likewise.
24466         (return_internal): Set atom_unit.
24467         (return_internal_long): Likewise.
24468         (return_pop_internal): Likewise.
24469         (*rcpsf2_sse): Set atom_sse_attr attr.
24470         (*qrt<mode>2_sse): Likewise.
24471         (*prefetch_sse): Likewise.
24473         * config/i386/i386-c.c (ix86_target_macros_internal): New case
24474         PROCESSOR_ATOM.
24475         (ix86_target_macros_internal): Likewise.
24477         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
24478         (*prefetch_sse_rex): Likewise.
24479         (sse_rcpv4sf2): Likewise.
24480         (sse_vmrcpv4sf2): Likewise.
24481         (sse_sqrtv4sf2): Likewise.
24482         (<sse>_vmsqrt<mode>2): Likewise.
24483         (sse_ldmxcsr): Likewise.
24484         (sse_stmxcsr): Likewise.
24485         (*sse_sfence): Likewise.
24486         (sse2_clflush): Likewise.
24487         (*sse2_mfence): Likewise.
24488         (*sse2_lfence): Likewise.
24489         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
24490         (<sse>_movup<ssemodesuffixf2c>): Likewise.
24491         (avx_movdqu<avxmodesuffix>): Likewise.
24492         (avx_lddqu<avxmodesuffix>): Likewise.
24493         (sse2_movntv2di): Change attr "type" to "ssemov".
24494         (sse2_movntsi): Likewise.
24495         (rsqrtv8sf2): Change attr "type" to "sseadd".
24496         (sse3_addsubv2df3): Set attr "atom_unit".
24497         (sse3_h<plusminus_insn>v4sf3): Likewise.
24498         (*sse2_pmaddwd): Likewise.
24499         (*vec_extractv2di_1_rex64): Likewise.
24500         (*vec_extractv2di_1_avx): Likewise.
24501         (sse2_psadbw): Likewise.
24502         (ssse3_phaddwv8hi3): Likewise.
24503         (ssse3_phaddwv4hi3): Likewise.
24504         (ssse3_phadddv4si3): Likewise.
24505         (ssse3_phadddv2si3): Likewise.
24506         (ssse3_phaddswv8hi3): Likewise.
24507         (ssse3_phaddswv4hi3): Likewise.
24508         (ssse3_phsubwv8hi3): Likewise.
24509         (ssse3_phsubwv4hi3): Likewise.
24510         (ssse3_phsubdv4si3): Likewise.
24511         (ssse3_phsubdv2si3): Likewise.
24512         (ssse3_phsubswv8hi3): Likewise.
24513         (ssse3_phsubswv4hi3): Likewise.
24514         (ssse3_pmaddubsw128): Likewise.
24515         (sse3_pmaddubsw: Likewise.
24516         (ssse3_palignrti): Likewise.
24517         (ssse3_palignrdi): Likewise.
24519 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
24521         * doc/install.texi (Specific): Fix two cross-references to MinGW.
24523 2009-04-06  Richard Guenther  <rguenther@suse.de>
24525         PR tree-optimization/28868
24526         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
24527         of which PHI results we inserted.
24528         (insert_into_preds_of_block): Record inserted PHIs.
24529         (eliminate): Eliminate redundant PHI nodes.
24530         (init_pre): Init inserted_phi_names.
24532 2009-04-06  Richard Guenther  <rguenther@suse.de>
24534         PR tree-optimization/39643
24535         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
24536         IMAGPART_EXPRs of complex constants.
24537         (execute_fold_all_builtins): If we folded a call queue
24538         TODO_update_address_taken.
24540 2009-04-06  Jan Hubicka  <jh@suse.cz>
24542         PR middle-end/39659
24543         * except.c (remove_unreachable_regions): Propagate may_contain_throw
24544         flag.
24546 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
24548         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
24549         delay slot.
24550         (ic_invalidate_array): Likewise.
24552 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
24554         * calls.c (emit_library_call_value_1): Fix a problem with parameter
24555         alignment for library calls.
24557 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
24559         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
24560         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
24561         * config/i386/mingw-stdint.h:  New file.
24563 2009-04-05  Richard Guenther  <rguenther@suse.de>
24565         PR tree-optimization/39648
24566         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
24567         our &A vs. &A[0] IL deficiencies.
24569 2009-04-04  Jan Hubicka  <jh@suse.cz>
24571         * except.c (sjlj_find_directly_reachable_regions): Be ready for
24572         removed toplevel regions.
24573         (sjlj_mark_call_sites): Likewise.
24575 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
24577         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
24578         (cygwin tm clause use_gcc_stdint):  Set to wrap.
24579         * config/i386/cygwin-stdint.h:  New file.
24581 2009-04-04  Richard Guenther  <rguenther@suse.de>
24583         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
24584         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
24585         single-argument PHIs if we are in loop-closed SSA form.
24586         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
24587         for the pre-condition.
24588         (slpeel_tree_peel_loop_to_edge): Likewise.
24589         (vect_build_loop_niters): Take an optional sequence to append stmts.
24590         (vect_generate_tmps_on_preheader): Likewise.
24591         (vect_do_peeling_for_loop_bound): Take extra guards for the
24592         pre-condition.
24593         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
24594         the cost model check.
24595         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
24596         guards if we are going to peel.  Do not apply versioning in that case.
24597         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
24598         (vect_do_peeling_for_loop_bound): Likewise.
24599         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
24600         loop bound only record extra pre-conditions, do not apply loop
24601         versioning.
24603 2009-04-04  Richard Guenther  <rguenther@suse.de>
24605         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
24606         renaming code.
24608 2009-04-04  Jan Hubicka  <jh@suse.cz>
24610         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
24611         last_basic_block for size of bb->index indexed array.
24612         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
24613         compute_out, link_btr_uses, build_btr_def_use_webs,
24614         build_btr_def_use_webs, migrate_btr_defs): Likewise.
24616 2009-04-04  Jan Hubicka  <jh@suse.cz>
24618         * except.c (remove_eh_handler_and_replace): Break out from ...
24619         (remove_eh_handler): ... here.
24620         (bring_to_root): New function.
24621         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
24622         handled ones, bring others to root of tree.
24624 2009-04-04  Jan Hubicka  <jh@suse.cz>
24626         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
24627         (all_phis_safe_to_merge): New function.
24628         (update_info): New structure.
24629         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
24630         (cleanup_empty_eh): Update SSA if possible.
24632 2009-04-04  Richard Guenther  <rguenther@suse.de>
24634         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
24635         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
24636         (append_vuse): Likewise.
24638 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
24640         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
24641         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
24642         instead of REG_UNSAVED for DW_CFA_undefined.
24643         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
24644         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
24645         outermost frame.
24647 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
24649         PR target/39501
24650         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
24652 2009-04-04  Richard Guenther  <rguenther@suse.de>
24654         PR tree-optimization/8781
24655         PR tree-optimization/37892
24656         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
24657         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
24658         (valueize_refs): Call it for *& valueizations.
24659         (shared_reference_ops_from_ref): Rename to ...
24660         (valueize_shared_reference_ops_from_ref): ... this and valueize.
24661         (shared_reference_ops_from_call): Rename to ...
24662         (valueize_shared_reference_ops_from_call): ... this and valueize.
24663         (vn_reference_lookup): Update.
24664         (visit_reference_op_call): Likewise.
24665         * tree-ssa-pre.c (phi_translate_1): Fold *&.
24666         (eliminate): Value-replace the call address in call statements.
24668 2009-04-04  Richard Guenther  <rguenther@suse.de>
24670         PR tree-optimization/39636
24671         * tree-ssa-forwprop.c
24672         (forward_propagate_addr_into_variable_array_index): Check for
24673         GIMPLE_ASSIGN before accessing the rhs code.
24675 2009-04-03  Jason Merrill  <jason@redhat.com>
24677         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
24679 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
24681         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
24682         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
24683         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
24684         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
24685         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
24686         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
24687         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
24688         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
24689         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
24690         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
24691         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
24692         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
24693         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
24694         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
24695         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
24696         Use fr_reg_or_fp01_operand instead of fr_register_operand
24698         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
24699         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
24700         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
24702 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
24704         PR rtl-optimization/39607
24705         PR rtl-optimization/39631
24707         Revert:
24709         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
24710         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
24711         instead of DF_LR_OUT.
24712         * ira-lives.c (process_bb_node_lives): Ditto.
24713         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
24714         instead of DF_LR_{OUT,IN}.
24715         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
24716         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
24718 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
24720         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
24721         (execute_lower_omp): Always run but take the short way out if -fopenmp
24722         is not given.
24723         (gate_lower_omp): Remove, forcing the pass manager to always run the
24724         pass and always set PROP_gimple_lomp.
24725         (pass_lower_omp): Remove gate function.
24726         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
24727         PROP_trees.  Instead, require it.
24728         * ipa-cp.c (pass_ipa_cp): Likewise.
24729         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
24730         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
24731         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
24732         and PROP_gimple_leh.
24734 2009-04-03  Richard Guenther  <rguenther@suse.de>
24736         PR middle-end/13146
24737         PR tree-optimization/23940
24738         PR tree-optimization/33237
24739         PR middle-end/33974
24740         PR middle-end/34093
24741         PR tree-optimization/36201
24742         PR tree-optimization/36230
24743         PR tree-optimization/38049
24744         PR tree-optimization/38207
24745         PR tree-optimization/38230
24746         PR tree-optimization/38301
24747         PR tree-optimization/38585
24748         PR middle-end/38895
24749         PR tree-optimization/38985
24750         PR tree-optimization/39299
24751         * tree-ssa-structalias.h: Remove.
24752         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
24753         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
24754         (struct vuse_element_d): Remove.
24755         (struct vuse_vec_d): Likewise.
24756         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
24757         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
24758         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
24759         VUSE_ELEMENT_VAR): Likewise.
24760         (struct voptype_d): Likewise.
24761         (NUM_VOP_FREE_BUCKETS): Likewise.
24762         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
24763         (struct stmt_operands_d): Remove.
24764         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
24765         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
24766         VDEF_NUM, VDEF_VECT): Likewise.
24767         (copy_virtual_operands): Remove.
24768         (operand_build_cmp): Likewise.
24769         (create_ssa_artificial_load_stmt): Likewise.
24770         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
24771         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
24772         vuse_index and mayuse_index members.  Pack and move done and iter_type
24773         members to the front.
24774         (SSA_OP_VMAYUSE): Remove.
24775         (SSA_OP_VIRTUAL_USES): Adjust.
24776         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
24777         (unlink_stmt_vdef): Declare.
24778         (add_to_addressable_set): Remove.
24779         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
24780         (vrp_visit_stmt): Likewise.
24781         * doc/tree-ssa.texi (Alias analysis): Update.
24782         * doc/invoke.texi (max-aliased-vops): Remove docs.
24783         (avg-aliased-vops): Likewise.
24784         * tree-into-ssa.c (syms_to_rename): Remove.
24785         (need_to_update_vops_p): Likewise.
24786         (need_to_initialize_update_ssa_p): Rename to ...
24787         (update_ssa_initialized_fn): ... this.  Track function we are
24788         initialized for.
24789         (symbol_marked_for_renaming): Simplify.
24790         (add_new_name_mapping): Do not set need_to_update_vops_p.
24791         (dump_currdefs): Use SYMS_TO_RENAME.
24792         (rewrite_update_stmt): Always walk all uses/defs.
24793         (dump_update_ssa): Adjust.
24794         (init_update_ssa): Take function argument.  Track what we are
24795         initialized for.
24796         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
24797         (create_new_def_for): Initialize for cfun, assert we are initialized
24798         for cfun.
24799         (mark_sym_for_renaming): Simplify.
24800         (mark_set_for_renaming): Do not initialize update-ssa.
24801         (need_ssa_update_p): Simplify.  Take function argument.
24802         (name_mappings_registered_p): Assert we ask for the correct function.
24803         (name_registered_for_update_p): Likewise.
24804         (ssa_names_to_replace): Likewise.
24805         (release_ssa_name_after_update_ssa): Likewise.
24806         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
24807         (dump_decl_set): Do not print a newline.
24808         (debug_decl_set): Do it here.
24809         (dump_update_ssa): And here.
24810         * tree-ssa-loop-im.c (move_computations): Adjust.
24811         (movement_possibility): Likewise.
24812         (determine_max_movement): Likewise.
24813         (gather_mem_refs_stmt): Likewise.
24814         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
24815         or NAME_MEMORY_TAG.
24816         * tree-complex.c (update_all_vops): Remove.
24817         (expand_complex_move): Adjust.
24818         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
24819         Simplify test for memory referencing statement.  Exclude
24820         non-invariant ADDR_EXPRs.
24821         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
24822         * tree-loop-distribution.c (generate_memset_zero): Adjust.
24823         (rdg_flag_uses): Likewise.
24824         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
24825         related code.
24826         (tree_optimize_tail_calls_1): Also split the
24827         edge from the entry block if we have degenerate PHI nodes in
24828         the first basic block.
24829         * tree.c (init_ttree): Remove memory-tag related code.
24830         (tree_code_size): Likewise.
24831         (tree_node_structure): Likewise.
24832         (build7_stat): Re-write to be build6_stat.
24833         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
24834         (SSA_VAR_P): Adjust.
24835         (struct tree_memory_tag): Remove.
24836         (struct tree_memory_partition_tag): Likewise.
24837         (union tree_node): Adjust.
24838         (build7): Re-write to be build6.
24839         * tree-pass.h (pass_reset_cc_flags): Remove.
24840         (TODO_update_address_taken): New flag.
24841         (pass_simple_dse): Remove.
24842         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
24843         * params.h (MAX_ALIASED_VOPS): Remove.
24844         (AVG_ALIASED_VOPS): Likewise.
24845         * omp-low.c (expand_omp_taskreg): Update SSA form.
24846         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
24847         aliases the lhs in a copy stmt.
24848         * tree-ssa-dse.c (struct address_walk_data): Remove.
24849         (memory_ssa_name_same): Likewise.
24850         (memory_address_same): Likewise.
24851         (get_kill_of_stmt_lhs): Likewise.
24852         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
24853         unused stores.  Look through PHI nodes into post-dominated regions.
24854         (dse_optimize_stmt): Simplify.  Properly remove stores.
24855         (tree_ssa_dse): Compute dominators.
24856         (execute_simple_dse): Remove.
24857         (pass_simple_dse): Likewise.
24858         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
24859         gimple_loaded_syms and gimple_stored_syms computation.
24860         * toplev.c (dump_memory_report): Dump alias and pta stats.
24861         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
24862         (vn_reference_eq): Likewise.
24863         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
24864         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
24865         valueize_vuses): Remove.
24866         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
24867         (get_def_ref_stmt_vuse): ... this.
24868         (vn_reference_lookup_2): New function.
24869         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
24870         walking equivalent vuses.  Simplify.
24871         (vn_reference_lookup): Likewise.
24872         (vn_reference_insert): Likewise.
24873         (vn_reference_insert_pieces): Likewise.
24874         (visit_reference_op_call): Simplify.
24875         (visit_reference_op_load): Likewise.
24876         (visit_reference_op_store): Likewise.
24877         (init_scc_vn): Remove shared_lookup_vuses initialization.
24878         (free_scc_vn): Remove shared_lookup_vuses freeing.
24879         (sort_vuses, sort_vuses_heap): Remove.
24880         (get_ref_from_reference_ops): Export.
24881         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
24882         vector with single vuse pointer.
24883         (vn_reference_lookup_pieces, vn_reference_lookup,
24884         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
24885         (shared_vuses_from_stmt): Remove.
24886         (get_ref_from_reference_ops): Declare.
24887         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
24888         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
24889         memory-tag related code.
24890         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
24891         (likely_value): Add comment, skip static-chain of call statements.
24892         (surely_varying_stmt_p): Adjust.
24893         (gimplify_and_update_call_from_tree): Likewise.
24894         (execute_fold_all_builtins): Do not rebuild alias info.
24895         (gimplify_and_update_call_from_tree): Properly update VOPs.
24896         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
24897         (copy_ref_info): Remove memory-tag related code.
24898         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
24899         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
24900         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
24901         computation.
24902         * tree-ssa-dom.c (gimple_p): Remove typedef.
24903         (eliminate_redundant_computations): Adjust.
24904         (record_equivalences_from_stmt): Likewise.
24905         (avail_expr_hash): Likewise.
24906         (avail_expr_eq): Likewise.
24907         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
24908         (stmt_makes_single_load): Likewise.
24909         (stmt_makes_single_store): Likewise.
24910         * tree-ssa-alias.c: Rewrite completely.
24911         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
24912         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
24913         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
24914         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
24915         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
24916         Remove public functions.
24917         (pass_reset_cc_flags): Remove.
24918         (pass_build_alias): Move ...
24919         * tree-ssa-structalias.c (pass_build_alias): ... here.
24920         * tree-ssa-alias.c (may_be_aliased): Move ...
24921         * tree-flow-inline.h (may_be_aliased): ... here.
24922         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
24923         count_uses_and_derefs): Move ...
24924         * gimple.c: ... here.
24925         * gimple.h (count_uses_and_derefs): Declare.
24926         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
24927         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
24928         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
24929         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
24930         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
24931         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
24932         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
24933         New functions.
24934         * tree-dfa.c (refs_may_alias_p): Move ...
24935         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
24936         * tree-ssa-alias.h: New file.
24937         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
24938         (statement_sink_location): Likewise.
24939         * opts.c (decode_options): Do not adjust max-aliased-vops or
24940         avg-aliased-vops values.
24941         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
24942         (TV_CALL_CLOBBER): Likewise.
24943         (TV_FLOW_SENSITIVE): Likewise.
24944         (TV_FLOW_INSENSITIVE): Likewise.
24945         (TV_MEMORY_PARTITIONING): Likewise.
24946         (TV_ALIAS_STMT_WALK): New timevar.
24947         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
24948         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
24949         (get_address_description): Remove memory-tag related code.
24950         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
24951         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
24952         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
24953         and immediate uses in statements.  Document.
24954         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
24955         (dump_symbols): Remove.
24956         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
24957         * alias.c (get_deref_alias_set): New function split out from ...
24958         (get_alias_set): ... here.
24959         * alias.h (get_deref_alias_set): Declare.
24960         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
24961         type parameter.  Remove restrict pointer handling.  Create a
24962         ref-all pointer in case type-based alias sets do not conflict.
24963         (vect_analyze_data_refs): Remove SMT related code.
24964         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
24965         (vectorizable_load): Likewise.
24966         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
24967         (DR_SYMBOL_TAG, DR_VOPS): Remove.
24968         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
24969         Ignore vops and SMTs.
24970         (dr_analyze_alias): Likewise..
24971         (free_data_ref): Likewise.
24972         (create_data_ref): Likewise.
24973         (analyze_all_data_dependences): Likewise.
24974         (get_references_in_stmt): Adjust.
24975         * tree-flow-inline.h (gimple_aliases_computed_p,
24976         gimple_addressable_vars, gimple_call_clobbered_vars,
24977         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
24978         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
24979         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
24980         gimple_mem_ref_stats): Remove.
24981         (gimple_vop): New function.
24982         (op_iter_next_use): Remove vuses and mayuses cases.
24983         (op_iter_next_def): Remove vdefs case.
24984         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
24985         (clear_and_done_ssa_iter): Do not set removed fields.
24986         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
24987         Assert we are not iterating over vuses or vdefs if not also
24988         iterating over uses or defs.
24989         (op_iter_init_use): Likewise.
24990         (op_iter_init_def): Likewise.
24991         (op_iter_next_vdef): Remove.
24992         (op_iter_next_mustdef): Likewise.
24993         (op_iter_init_vdef): Likewise.
24994         (compare_ssa_operands_equal): Likewise.
24995         (link_use_stmts_after): Handle vuse operand.
24996         (is_call_used): Use is_call_clobbered.
24997         (is_call_clobbered): Global variables are always call clobbered,
24998         query the call-clobbers bitmap.
24999         (mark_call_clobbered): Ignore global variables.
25000         (clear_call_clobbered): Likewise.
25001         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
25002         virtual operands sanity check.
25003         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
25004         Remove.
25005         (TARGET_MEM_REF): Remove TMR_TAG operand.
25006         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
25007         Remove call-clobber related code.
25008         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
25009         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
25010         partitions or escape reason.
25011         (get_single_def_stmt, get_single_def_stmt_from_phi,
25012         get_single_def_stmt_with_phi): Remove.
25013         (dump_referenced_vars): Tidy.
25014         (get_ref_base_and_extent): Allow bare decls.
25015         (collect_dfa_stats): Adjust.
25016         * graphite.c (rename_variables_in_stmt): Adjust.
25017         (graphite_copy_stmts_from_block): Likewise.
25018         (translate_clast): Likewise.
25019         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
25020         (EXPR_DIES): New.
25021         (translate_vuse_through_block): Use the oracle.
25022         (phi_translate_1): Adjust.
25023         (value_dies_in_block_x): Use the oracle.  Cache the outcome
25024         in EXPR_DIES.
25025         (valid_in_sets): Check if the VUSE for
25026         a REFERENCE is available.
25027         (eliminate): Do not remove stmts during elimination,
25028         instead queue and remove them afterwards.
25029         (do_pre): Do not rebuild alias info.
25030         (pass_pre): Run TODO_rebuild_alias before PRE.
25031         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
25032         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
25033         (mark_all_v_defs_stmt): Remove.
25034         (mark_all_v_defs_seq): Adjust.
25035         (sra_replace): Likewise.
25036         (scalarize_use): Likewise.
25037         (scalarize_copy): Likewise.
25038         (scalarize_init): Likewise.
25039         (scalarize_ldst): Likewise.
25040         (todoflags): Remove.
25041         (tree_sra): Do not rebuild alias info.
25042         (tree_sra_early): Adjust.
25043         (pass_sra): Run TODO_update_address_taken before SRA.
25044         * tree-predcom.c (set_alias_info): Remove.
25045         (prepare_initializers_chain): Do not call it.
25046         (mark_virtual_ops_for_renaming): Adjust.
25047         (mark_virtual_ops_for_renaming_list): Remove.
25048         (initialize_root_vars): Adjust.
25049         (initialize_root_vars_lm): Likewise.
25050         (prepare_initializers_chain): Likewise.
25051         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
25052         (may_propagate_copy_into_stmt): Likewise.
25053         (merge_alias_info): Do nothing for now.
25054         (propagate_tree_value_into_stmt): Adjust.
25055         (stmt_may_generate_copy): Likewise.
25056         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
25057         not mark symbols for renaming.
25058         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
25059         with the same statement, make sure to update the new pointed-to one.
25060         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
25061         call statements, do not mark symbols for renaming.
25062         (mark_operand_necessary): Dump something.
25063         (ref_may_be_aliased): New function.
25064         (mark_aliased_reaching_defs_necessary_1): New helper function.
25065         (mark_aliased_reaching_defs_necessary): Likewise.
25066         (mark_all_reaching_defs_necessary_1): Likewise.
25067         (mark_all_reaching_defs_necessary): Likewise.
25068         (propagate_necessity): Do not process virtual PHIs.  For
25069         non-aliased loads mark all reaching definitions as necessary.
25070         For aliased loads and stores mark the immediate dominating
25071         aliased clobbers as necessary.
25072         (visited): New global static.
25073         (perform_tree_ssa_dce): Free visited bitmap after propagating
25074         necessity.
25075         (remove_dead_phis): Perform simple dead virtual PHI removal.
25076         (remove_dead_stmt): Properly unlink virtual operands when
25077         removing stores.
25078         (eliminate_unnecessary_stmts): Schedule PHI removal after
25079         stmt removal.
25080         * tree-ssa-ter.c (is_replaceable_p): Adjust.
25081         (process_replaceable): Likewise.
25082         (find_replaceable_in_bb): Likewise.
25083         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
25084         based on the single gimple vop.
25085         (verify_flow_insensitive_alias_info): Remove.
25086         (verify_flow_sensitive_alias_info): Likewise.
25087         (verify_call_clobbering): Likewise.
25088         (verify_memory_partitions): Likewise.
25089         (verify_alias_info): Likewise.
25090         (verify_ssa): Adjust..
25091         (execute_update_addresses_taken): Export.  Update SSA
25092         manually.  Optimize only when optimizing.  Use a local bitmap.
25093         (pass_update_address_taken): Remove TODO_update_ssa, add
25094         TODO_dump_func.
25095         (pass_update_address_taken): Just use TODO_update_address_taken.
25096         (init_tree_ssa): Do not initialize addressable_vars.
25097         (verify_ssa): Verify new VUSE / VDEF properties.
25098         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
25099         Do not call verify_alias_info.
25100         (delete_tree_ssa): Clear the VUSE, VDEF operands.
25101         Do not free the loaded and stored syms bitmaps.  Reset the escaped
25102         and callused solutions.  Do not free addressable_vars.
25103         Remove memory-tag related code.
25104         (warn_uninitialized_var): Aliases are always available.
25105         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
25106         * lambda-code.c (can_put_in_inner_loop): Adjust.
25107         (can_put_after_inner_loop): Likewise.
25108         (perfect_nestify): Likewise.
25109         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
25110         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
25111         (vectorizable_conversion): Do not mark symbols for renaming.
25112         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
25113         (expand_call_inline): Unlink the calls virtual operands before
25114         replacing it.
25115         (tree_function_versioning): Do not call update_ssa if we are not
25116         updating clones.  Simplify.
25117         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
25118         (propagate_with_phi): Likewise..
25119         * tree-outof-ssa.c (create_temp): Remove memory tag and call
25120         clobber code.  Assert we are not aliased or global.
25121         * tree-flow.h: Include tree-ssa-alias.h
25122         (enum escape_type): Remove.
25123         (struct mem_sym_stats_d): Likewise.
25124         (struct mem_ref_stats_d): Likewise.
25125         (struct gimple_df): Add vop member.  Remove global_var,
25126         call_clobbered_vars, call_used_vars, addressable_vars,
25127         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
25128         escaped and callused members.
25129         (struct ptr_info_def): Remove all members, add points-to solution
25130         member pt.
25131         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
25132         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
25133         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
25134         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
25135         (tree-ssa-alias.o): Likewise.
25136         (toplev.o): Add tree-ssa-alias.h
25137         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
25138         * gimple.c (gimple_set_bb): Fix off-by-one error.
25139         (is_gimple_reg): Do not handle memory tags.
25140         (gimple_copy): Also copy virtual operands.
25141         Delay updating the statement.  Do not reset loaded and stored syms.
25142         (gimple_set_stored_syms): Remove.
25143         (gimple_set_loaded_syms): Likewise.
25144         (gimple_call_copy_skip_args): Copy the virtual operands
25145         and mark the new statement modified.
25146         * tree-ssa-structalias.c (may_alias_p): Remove.
25147         (set_uids_in_ptset): Take the alias set to prune with as
25148         parameter.  Fold in the alias test of may_alias_p.
25149         (compute_points_to_sets): Compute whether a ptr is dereferenced
25150         in a local sbitmap.
25151         (process_constraint): Deal with &ANYTHING on the lhs, reject all
25152         other ADDRESSOF constraints on the lhs.
25153         (get_constraint_for_component_ref): Assert that we don't get
25154         ADDRESSOF constraints from the base of the reference.
25155         Properly generate UNKNOWN_OFFSET for DEREF if needed.
25156         (struct variable_info): Remove collapsed_to member.
25157         (get_varinfo_fc): Remove.
25158         (new_var_info): Do not set collapsed_to.
25159         (dump_constraint): Do not follow cycles.
25160         (dump_constraint_graph): Likewise.
25161         (build_pred_graph): Likewise.
25162         (build_succ_graph): Likewise.
25163         (rewrite_constraints): Likewise.
25164         (do_simple_structure_copy): Remove.
25165         (do_rhs_deref_structure_copy): Remove.
25166         (do_lhs_deref_structure_copy): Remove.
25167         (collapse_rest_of_var): Remove.
25168         (do_structure_copy): Re-implement.
25169         (pta_stats): New global variable.
25170         (dump_pta_stats): New function.
25171         (struct constraint_expr): Make offset signed.
25172         (UNKNOWN_OFFSET): Define special value.
25173         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
25174         (solution_set_expand): New helper function split out from ...
25175         (do_sd_constraint): ... here.
25176         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
25177         (do_ds_constraint): Likewise.
25178         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
25179         and CALLUSED = *CALLUSED.
25180         (set_union_with_increment): Make inc argument signed.
25181         (type_safe): Remove.
25182         (get_constraint_for_ptr_offset): Handle unknown and negative
25183         constant offsets.
25184         (first_vi_for_offset): Handle offsets before start.  Bail
25185         out early for offsets beyond the variable extent.
25186         (first_or_preceding_vi_for_offset): New function.
25187         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
25188         Together with ESCAPED = *ESCAPED this properly computes reachability.
25189         (find_what_var_points_to): New function.
25190         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
25191         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
25192         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
25193         pt_solutions_intersect): New functions.
25194         (compute_call_used_vars): Remove.
25195         (compute_may_aliases): New main entry into PTA computation.
25196         * gimple.h (gimple_p): New typedef.
25197         (struct gimple_statement_base): Remove references_memory_p.
25198         (struct gimple_statement_with_memory_ops_base): Remove
25199         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
25200         members.
25201         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
25202         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
25203         gimple_set_references_memory): Remove.
25204         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
25205         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
25206         New functions.
25207         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
25208         (verify_expr): Allow RESULT_DECL.
25209         (gimple_duplicate_bb): Do not copy virtual operands.
25210         (gimple_duplicate_sese_region): Adjust.
25211         (gimple_duplicate_sese_tail): Likewise.
25212         (mark_virtual_ops_in_region): Remove.
25213         (move_sese_region_to_fn): Do not call it.
25214         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
25215         and pass_simple_dse.
25216         (execute_function_todo): Handle TODO_update_address_taken,
25217         call execute_update_addresses_taken for TODO_rebuild_alias.
25218         (execute_todo): Adjust.
25219         (execute_one_pass): Init dump files early.
25220         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
25221         call-clobbered.
25222         (create_general_new_stmt): Clear vops.
25223         * tree-ssa-reassoc.c (get_rank): Adjust.
25224         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
25225         symbols for renaming.
25226         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
25227         (PARAM_AVG_ALIASED_VOPS): Likewise.
25228         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
25229         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
25230         * tree-ssa-operands.c: Simplify for new virtual operand representation.
25231         (operand_build_cmp, copy_virtual_operands,
25232         create_ssa_artificial_load_stmt, add_to_addressable_set,
25233         gimple_add_to_addresses_taken): Remove public functions.
25234         (unlink_stmt_vdef): New function.
25236 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
25238         * config.gcc (powerpc-*-linux*): Merge variants.
25240 2009-04-02  Chao-ying Fu  <fu@mips.com>
25241             James Grosbach  <james.grosbach@microchip.com>
25243         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
25244         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
25245         cop0_sp_offset.
25246         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
25247         keep_interrupts_masked_p, use_debug_exception_return_p.
25248         (mips_attribute_table): Add interrupt, use_shadow_register_set,
25249         keep_interrupts_masked, use_debug_exception_return.
25250         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
25251         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
25252         New functions.
25253         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
25254         (mips_print_operand): Process COP0 registers to print $0 .. $31
25255         correctly for GAS to process.
25256         (mips_interrupt_extra_call_saved_reg_p): New function.
25257         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
25258         extra registers.
25259         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
25260         (mips_compute_frame_info): Add supports for interrupt context that
25261         includes doubleword accumulators and COP0 registers.
25262         (mips_for_each_saved_acc): New function.
25263         (mips_for_each_saved_gpr_and_fpr): Change the function name from
25264         mips_for_each_saved_reg.
25265         (mips_save_reg): Save accumulators.
25266         (mips_kernel_reg_p): A new for_each_rtx callback.
25267         (mips_expand_prologue): Support interrupt handlers.
25268         (mips_restore_reg): Restore accumulators.
25269         (mips_expand_epilogue): Support interrupt handlers.
25270         (mips_can_use_return_insn): Return false for interrupt handlers.
25271         (mips_epilogue_uses): New function.
25272         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
25273         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
25274         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
25275         cop0_move): New instructions.
25276         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
25277         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
25278         defines.
25279         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
25280         New defines.
25281         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
25282         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
25283         interrupt handlers, we use K0 as the temporary register.
25284         (EPILOGUE_USES): Change to a function call.
25285         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
25286         handlers, we use K0 as the temporary register.
25288         * doc/extend.texi (Function Attributes): Document interrupt,
25289         use_shadow_register_set, keep_interrupts_masked,
25290         use_debug_exception_return for MIPS attributes.
25292 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
25294         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
25295         Remove a number of t-files from tmake_file.
25296         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
25297         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
25298         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
25299         target_prototype, not TARGET_PROTOTYPE.
25300         (LINK_OS_GNU_SPEC): Define.
25301         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
25302         and darwin-ldoubdle.c.
25304 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
25306         PR driver/39293
25307         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
25308         (cpp_options): Ditto.
25309         (default_compilers): Ditto.
25310         (display_help): Ditto.
25311         (process_command): Ditto.
25312         (do_spec_1): Ditto.
25313         (set_input): Use lbasename instead of duplicate code.
25314         (save_temps_prefix): New static for -save-temps=obj.
25315         (save_temps_length): Ditto.
25317         * doc/invoke.texi (-save-temps=obj): Document new variant to
25318         -save-temps switch.
25320 2009-04-02  Jeff Law  <law@redhat.com>
25322         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
25323         variable.
25325 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
25327         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
25328         * configure: Regenerated.
25330 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
25332         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
25333         share the argument list.
25335 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
25337         Merge
25339         2009-02-12  Diego Novillo  <dnovillo@google.com>
25341         * varpool.c (debug_varpool): New.
25342         * cgraph.h (debug_varpool): Declare.
25344 2009-04-02  Jan Hubicka  <jh@suse.cz>
25346         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
25347         pass.
25349 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
25351         * config/i386/i386.c (ix86_abi): Move initialization to ...
25352         (override_options): Here.
25354 2009-04-02  Christian Bruel  <christian.bruel@st.com>
25356         * config/sh/sh.c (sh_dwarf_register_span): New function.
25357         (TARGET_DWARF_REGISTER_SPAN): Define.
25358         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
25360 2009-04-02  Ira Rosen  <irar@il.ibm.com>
25362         PR tree-optimization/39595
25363         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
25364         interleaved loads group is not  greater than the SLP group size.
25366 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
25368         * builtins.c (is_builtin_name): New.
25369         (called_as_built_in): Use is_builtin_name.
25370         * tree.h (is_builtin_name): New.
25371         * varasm.c (incorporeal_function_p): Use is_builtin_name
25373 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
25375         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
25377 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
25379         PR c++/26693
25380         * c-decl.c (clone_underlying_type): Move this ...
25381         * c-common.c (set_underlying_type): ... here.
25382         Also, make sure the function properly sets TYPE_STUB_DECL() on
25383         the newly created typedef variant type.
25384         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
25385         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
25386         points.
25388 2009-04-02  Richard Guenther  <rguenther@suse.de>
25390         PR tree-optimization/37221
25391         * tree-flow.h (degenerate_phi_result): Declare.
25392         * tree-ssa-dom.c (degenerate_phi_result): Export.
25393         * tree-scalar-evolution.c (analyze_initial_condition): If
25394         the initial condition is defined by a degenerate PHI node
25395         use the degenerate value.
25397 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
25399         PR rtl-optimization/39588
25400         * combine.c (merge_outer_ops): Do not set the constant when this
25401         is not necessary.
25402         (simplify_shift_const_1): Do not modify it either in this case.
25404 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
25406         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
25407         tuning is deprecated if -mtune value is set to an Itanium1 variant.
25409 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
25411         PR c/29027
25412         * c-lex.c (interpret_float): Default (no suffix) is double.
25414 2009-04-1  Xinliang David Li  <davidxl@google.com>
25416         * config/i386/i386.c (legitimate_constant_p): Recognize
25417         all one vector constant.
25419 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
25421         * config/vax/vax.c: Add #includes to silence warnings.
25422         Change #include order to silence two warnings.
25424 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
25426         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
25427         (ASM_SPEC): Pass -k to the assembler for PIC code.
25429 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
25431         * config.gcc: Add vax-*-linux* to the switch.
25432         * config/vax/linux.h: New file. (TARGET_VERSION,
25433         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
25435 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
25437         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
25438         Use predicate macros instead of GET_CODE() == foo.
25439         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
25440         ashlsi3, rotrsi3, <unnamed>): Likewise.
25442 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
25444         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
25445         jbbccihi, jbbccisi): Remova trailing whitespace.
25446         * config/vax/constraints.md: Likewise.
25447         * config/vax/elf.h (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25448         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
25449         * config/vax/predicates.md: Likewise.
25450         * config/vax/vax.c (print_operand_address, vax_output_int_move,
25451         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
25452         * config/vax/vax.h: Likewise.
25453         * config/vax/vax.md (nonlocal_goto): Likewise.
25455 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
25457         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
25458         (indirectable_address_p, adjacent_operands_p): Add spaces around
25459         braces.
25460         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
25462 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
25464         * config/vax/vax.c (legitimate_constant_address_p,
25465         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
25466         index_term_p, reg_plus_index_p, legitimate_address_p,
25467         vax_mode_dependent_address_p): Update comments to match functions
25468         modified by the recent int->bool conversion.
25470 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
25472         * config/vax/builtins.md: Update copyright message.
25473         * config/vax/constraints.md: Likewise.
25474         * config/vax/netbsd-elf.h: Likewise.
25475         * config/vax/predicates.md: Likewise.
25476         * config/vax/vax-protos.h: Likewise.
25477         * config/vax/vax.c: Likewise.
25478         * config/vax/vax.h: Likewise.
25479         * config/vax/vax.md: Likewise.
25480         * config/vax/vax.opt: Likewise.
25482 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
25484         * config/vax/builtins.md (ffssi2, ffssi2_internal,
25485         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
25486         * config/vax/constraints.md (B, R): Likewise.
25487         * config/vax/predicates.md (external_memory_operand,
25488         nonimmediate_addsub_di_operand): Likewise.
25489         * config/vax/vax.c (vax_output_int_add): Likewise.
25490         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
25491         untyped_call): Likewise.
25493 2009-04-01  Matt Thomas  <matt@3am-software.com>
25495         * config/vax/predicates.md: New file.
25496         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
25497         external_const_operand, nonsymbolic_operand, external_memory_operand,
25498         indirect_memory_operand, indexed_memory_operand,
25499         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
25500         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
25501         predicate.
25502         * config/vax/constraints.md: New file.
25503         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
25504         New constraint.
25505         * config/vax/builtins.md: New file.
25506         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
25507         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
25508         jbbccisi): Define.
25509         * config/vax/vax.opt (mqmath): Add option.
25510         * config/vax/vax.md (isfx): Extend with DI.
25511         (VAXintQH, VAXintQHSD): Define.
25512         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
25513         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
25514         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
25515         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
25516         (movdi): Update constraints and use vax_output_int_move().
25517         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
25518         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
25519         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
25520         nonlocal_goto): New.
25521         (mov<mode>): Extend accepted operand types.
25522         (subdi3_old): Rename from subdi3, change update constraints and use
25523         a new implementation.
25524         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
25525         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
25526         MOVE_RATIO, CLEAR_RATIO): Define.
25527         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
25528         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
25529         (PRINT_OPERAND): Redefine using a function instead of inlined code.
25530         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
25531         (split_quadword_operands): Make static and really allow variable
25532         splitting.
25533         (print_operand_address): Update for PIC generation.
25534         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
25535         indexable_address_p, fixup_mathdi_operand,
25536         vax_expand_addsub_di_operands, adjacent_operands_p): New.
25537         (vax_float_literal, legitimate_constant_p,
25538         indirectable_constant_address_p, index_term_p,
25539         reg_plus_index_p): Return bool instead of int.
25540         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
25541         where needed.
25542         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
25543         generation.
25544         (vax_output_conditional_branch): Indent.
25545         (legitimate_constant_address_p, indirectable_constant_address_p,
25546         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
25547         vax_mode_dependent_address_p): Return bool instead of int, update for
25548         PIC generation.
25549         * config/vax/vax-protos.h (legitimate_constant_address_p,
25550         legitimate_constant_p, legitimate_address_p,
25551         vax_mode_dependent_address_p): Change declaration to bool.
25552         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
25553         vax_expand_addsub_di_operands, vax_output_int_subtract,
25554         vax_output_movmemsi): Declare.
25555         (split_quadword_operands, vax_float_literal): Delete declaration.
25556         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
25557         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
25558         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
25559         ASM_OUTPUT_DWARF_PCREL): Define.
25560         (ASM_SPEC): Change definition to allow PIC generation.
25562 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
25564         * doc/sourcebuild.texi: Update front-end requirements.
25566 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
25568         PR target/39226
25569         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
25570         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
25571         (booldi3_internal3): Use boolean_or_operator instead of
25572         boolean_operator.
25574 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
25576         PR c/39605
25577         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
25578         declarator whose size is not an integer constant expression but
25579         folds to an integer constant, then treat it as a constant
25580         subsequently.
25582 2009-04-01  Richard Guenther  <rguenther@suse.de>
25584         * fold-const.c (fold_plusminus_mult_expr): Do not fold
25585         i * 4 + 2 to (i * 2 + 1) * 2.
25587 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
25589         PR c/37772
25590         * c-parser.c (c_parser_asm_statement): Skip until close paren and
25591         return if c_parser_asm_string_literal returned NULL.
25593 2009-04-01  Nick Clifton  <nickc@redhat.com>
25595         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
25596         already defined.
25597         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
25598         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
25599         other typedefs to avoid conflicts with libgcc2.c.  Define labels
25600         to gain 16-bit bit-manipulation functions from libgcc2.c and then
25601         include it.
25602         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
25603         to gain 16-bit trapping arithmetic functions from libgcc2.c and
25604         then include it.
25606 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
25608         * varasm.c (default_function_rodata_section): Declare DOT as
25609         const char*.
25611 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
25612             Andrey Galkin  <agalkin@hypercom.com>
25614         PR/39492
25615         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
25616         Make object_name unique for each process.
25618 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
25620         PR other/39591
25621         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
25622         addressable variables in the parallel that could go out of scope while
25623         running queued tasks.
25625 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
25627         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
25628         (CASE_VALUES_THRESHOLD): Redefine.
25629         * config/avr/avr.c (avr_override_options): Remove initialization of
25630         avr_case_values_threshold variable.
25631         (avr_case_values_threshold): Remove variable. Add new function.
25632         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
25633         * config/avr/avr.opt (mno-tablejump): Remove option.
25634         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
25636 2009-04-01  DJ Delorie  <dj@redhat.com>
25638         * varasm.c (default_function_rodata_section): Don't assume
25639         anything about where the first '.' in the section name is.
25641 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
25643         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
25644         rs6000_emit_stack_tie.
25646 2009-03-31  Ian Lance Taylor  <iant@google.com>
25648         * tree-eh.c (tree_remove_unreachable_handlers): Compare
25649         gimple_code with GIMPLE_RESX, not RESX.
25651 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
25653         * c-common.c (c_get_ident): New.
25654         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
25656 2009-04-01  Ben Elliston  <bje@au.ibm.com>
25658         * config/rs6000/sysv4.opt (msdata): Improve option description.
25660 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
25662         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
25663         (divdf3_internal_lat): Remove.
25664         (divxf3_internal_lat): Remove.
25665         (divxf3_internal_thr): Remove.
25666         (divxf): Use divxf3_internal.
25667         * config/ia64/div.md (divsf3_internal_lat): New.
25668         (divdf3_internal_lat): New.
25669         (divxf3_internal): New.
25671 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
25673         PR c/448
25674         * Makefile.in (USE_GCC_STDINT): Define.
25675         (stmp-int-hdrs): Install stdint.h if applicable.
25676         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
25677         if known.
25678         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
25679         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
25680         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
25681         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
25682         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
25683         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
25684         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
25685         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
25686         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
25687         (c_common_nodes_and_builtins): Initialize
25688         underlying_wchar_type_node.  Do not initialize
25689         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
25690         nodes for new types.
25691         (c_stddef_cpp_builtins): Define macros for new types.
25692         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
25693         Remove.
25694         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
25695         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
25696         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
25697         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
25698         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
25699         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
25700         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
25701         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
25702         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
25703         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
25704         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
25705         int16_type_node, int32_type_node, int64_type_node,
25706         uint8_type_node, uint16_type_node, c_uint32_type_node,
25707         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
25708         int_least32_type_node, int_least64_type_node,
25709         uint_least8_type_node, uint_least16_type_node,
25710         uint_least32_type_node, uint_least64_type_node,
25711         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
25712         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
25713         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
25714         uintptr_type_node): Define.
25715         * c-cppbuiltin.c (builtin_define_constants,
25716         builtin_define_type_minmax): New.
25717         (builtin_define_stdint_macros): Define more macros.
25718         (c_cpp_builtins): Define more limit macros.
25719         (type_suffix): New.
25720         (builtin_define_type_max): Define in terms of
25721         builtin_define_type_minmax.  Remove is_long parameter.  All
25722         callers changed.
25723         * config.gcc (use_gcc_stdint): Define.
25724         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
25725         Add newlib-stdint.h for generic targets.
25726         * config/glibc-stdint.h, config/newlib-stdint.h,
25727         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
25728         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
25729         * config/score/score.h (UINTPTR_TYPE): Define.
25730         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
25731         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
25732         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
25733         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
25734         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
25735         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
25736         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
25737         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
25738         * config/spu/spu.h (STDINT_LONG32): Define.
25739         * configure.ac (use_gcc_stdint): Substitute.
25740         * configure: Regenerate.
25741         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
25742         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
25743         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
25744         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
25745         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
25746         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
25747         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
25748         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
25749         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
25750         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
25751         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
25752         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
25753         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
25754         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
25755         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
25756         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
25757         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
25758         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
25759         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
25760         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
25761         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
25762         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
25763         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
25764         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
25765         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
25766         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
25767         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
25768         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
25769         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
25771 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
25773         * loop-iv.c (suitable_set_for_replacement): Renamed from
25774         simplify_using_assignment; changed to return bool and to accept new
25775         args DEST and SRC.  Return true iff we find a source/destination pair
25776         that can be used to make a replacement, and fill SRC and DEST if so.
25777         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
25778         changed.
25779         (simplify_using_initial_values): Deal with altered regs here and track
25780         more precisely the effect they have on the validity of our expression.
25782         * loop-iv.c (simplify_using_condition): A condition of the form
25783         (EQ REG CONST) can be used to simply make a substitution.
25784         (simplify_using_initial_values): Keep track of conditions we have seen
25785         and keep using them to simplify new expressions, while applying the
25786         same substitutions to them as to the expression.
25788         * simplify-rtx.c (simplify_relational_operation_1): Simplify
25789         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
25790         GEU/LTU reversed.
25792         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
25793         changed.  Use this when trying to improve the upper bound.
25794         Generate the comparison by using simplify_gen_relational.
25796         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
25798         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
25799         functions.
25800         (simplify_using_assignment, simplify_using_initial_values): Call
25801         replace_in_expr to make replacements.  Call replace_single_def_regs
25802         once on the initial version of the expression.
25804 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25806         PR target/27237
25807         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
25809 2009-03-31  Richard Guenther  <rguenther@suse.de>
25811         PR middle-end/31029
25812         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
25813         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
25815 2009-03-31  Richard Guenther  <rguenther@suse.de>
25817         * tree.h (div_if_zero_remainder): Declare.
25818         * fold-const.c (div_if_zero_remainder): Export.
25819         * tree-ssa-forwprop.c
25820         (forward_propagate_addr_into_variable_array_index): Handle
25821         constant array index addition outside of the variable index.
25823 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
25825         PR target/39592
25826         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
25827         define_splits, floatunssi<mode>2): Require x87 conversions from
25828         DImode to be permitted.
25830 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
25832         PR preprocessor/15638
25833         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
25835 2009-03-31  Richard Guenther  <rguenther@suse.de>
25837         PR middle-end/23401
25838         PR middle-end/27810
25839         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
25840         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
25841         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
25842         a separate statement.
25843         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
25844         (lookup_tmp_var): Likewise.
25845         (is_gimple_formal_tmp_or_call_rhs): Remove.
25846         (is_gimple_reg_or_call_rhs): Rename to ...
25847         (is_gimple_reg_rhs_or_call): ... this.
25848         (is_gimple_mem_or_call_rhs): Rename to ...
25849         (is_gimple_mem_rhs_or_call): ... this.
25850         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
25851         DECL_GIMPLE_REG_P only if is_formal is true.
25852         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
25853         for non-proper post-modify expression gimplification.
25854         (gimplify_self_mod_expr): For post-modify expressions gimplify
25855         the lvalue to a minimal lvalue.
25856         (rhs_predicate_for): Remove formal temp case.
25857         (gimplify_modify_expr_rhs): Likewise.
25858         (gimplify_addr_expr): Use is_gimple_reg.
25859         (gimplify_expr): Remove formal temp cases.
25860         (gimple_regimplify_operands): Likewise.
25861         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
25862         and FILTER_EXPR like constants.
25863         * gimple.c (walk_gimple_op): Fix val_only initialization, use
25864         is_gimple_reg.
25865         (is_gimple_formal_tmp_rhs): Remove.
25866         (is_gimple_reg_rhs): Remove special casing.
25867         (is_gimple_mem_rhs): Fix.
25868         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
25869         (is_gimple_formal_tmp_var): Remove.
25870         (is_gimple_formal_tmp_reg): Likewise.
25871         (is_gimple_min_lval): Allow invariant component ref parts.
25872         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
25873         is_gimple_formal_tmp_reg): Remove declarations.
25874         * tree-cfg.c (verify_expr): Verify that variables with address
25875         taken do not have DECL_GIMPLE_REG_P set.
25876         * tree-mudflap.c (mf_build_check_statement_for): Use
25877         force_gimple_operand instead of gimplify_expr.
25879 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
25881         * modulo-sched.c (sms_schedule_by_order): Pass the actual
25882         schedulable rows to compute_split_row.
25884 2009-03-31  Ben Elliston  <bje@au.ibm.com>
25886         PR target/31635
25887         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
25888         OPT_mvrsave.
25890 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
25892         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
25893         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
25894         * configure: Regenerate.
25895         * config.in: Regenerate.
25896         * config/rs6000/rs6000.opt (mtls-markers): Add.
25897         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
25898         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
25899         (tls_ld_aix, tls_ld_sysv): Likewise.
25900         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
25901         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
25903 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
25905         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
25907 2009-03-30  Jan Hubicka  <jh@suse.cz>
25909         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
25910         out of RESX.
25911         (tree_remove_unreachable_handlers): Cleanup EH predecestor
25912         detection and label handling.
25914 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
25916         * ira-int.h (ira_allocno): Rename left_conflicts_num to
25917         left_conflicts_size.
25918         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
25919         ALLOCNO_LEFT_CONFLICTS_SIZE.
25921         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
25922         remove_allocno_from_bucket_and_push,
25923         allocno_spill_priority_compare, push_allocnos_to_stack,
25924         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
25925         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
25926         (setup_allocno_left_conflicts_num): Ditto.  Rename to
25927         setup_allocno_left_conflicts_size.
25928         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
25929         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
25930         setup_allocno_left_conflicts_size instead of
25931         setup_allocno_left_conflicts_num.
25933         * ira-build.c (ira_create_allocno): Use
25934         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
25935         ALLOCNO_LEFT_CONFLICTS_NUM.
25937 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
25939         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
25940         instead of DF_LR_OUT.
25942         * ira-lives.c (process_bb_node_lives): Ditto.
25944         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
25945         instead of DF_LR_{OUT,IN}.
25947         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
25949         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
25951 2009-03-30  Jan Hubicka  <jh@suse.cz>
25953         * except.c (label_to_region_map): Fix thinko.
25955 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
25957         PR middle-end/38237
25958         * tree.h (tree_find_value): New declaration.
25959         * tree.c (tree_find_value): New function.
25960         * varasm.c (assemble_external): Avoid duplicate entries on lists.
25962 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
25964         PR debug/39563
25965         * c-decl.c (struct c_binding): Add locus field.
25966         (bind): Add locus argument, set locus field from it.
25967         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
25968         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
25969         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
25970         implicitly_declare, undeclared_variable, lookup_label,
25971         declare_label, c_make_fname_decl, c_builtin_function,
25972         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
25973         bind callers.
25975 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
25977         PR target/38781
25978         * config/i386/i386.c (classify_argument): Check total size of
25979         structure.
25981 2009-03-30  Martin Jambor  <mjambor@suse.cz>
25983         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
25984         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
25985         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
25986         respectively.
25988         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
25989         seen_variable_array_ref while also traversing a union.
25991         * tree-inline.c (optimize_inline_calls): Do not call
25992         cgraph_node_remove_callees.
25993         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
25994         (pass_remove_cgraph_callee_edges): New variable.
25995         * passes.c (init_optimization_passes): Add
25996         pass_remove_cgraph_callee_edges after early inlining and before all
25997         late intraprocedural passes.
25999         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
26001 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
26003         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
26004         Fix typos in names.
26006 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
26008         * combine.c (simplify_comparison): Use have_insn_for.
26009         * dojump.c (do_jump): Likewise.
26011 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
26013         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
26014         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
26015         sparc_compare_op0 like sparc_compare_emitted used to be handled.
26016         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
26017         instead of sparc_compare_emitted.
26018         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
26019         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
26020         instead of sparc_compare_emitted.
26022 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
26024         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
26025         enter/exit cfglayout mode.
26026         (pass_partition_block): Require it.
26027         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
26028         (combine_instructions): Track basic blocks instead of labels.
26029         (update_cfg_for_uncondjump): New.
26030         (try_combine): Use it.  Update jumps after rescanning.
26031         (pass_combine): Require PROP_cfglayout.
26032         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
26034 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
26036         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
26037         Provide/destroy PROP_cfglayout respectively.
26038         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
26039         * tree-pass.h (PROP_cfglayout): New.
26041 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
26043         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
26044         fold_convert_const_fixed_from_fixed,
26045         fold_convert_const_fixed_from_int,
26046         fold_convert_const_fixed_from_real, fold_negate_const): Do not
26047         set TREE_CONSTANT_OVERFLOW.
26048         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
26049         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
26051 2009-03-30  Ira Rosen  <irar@il.ibm.com>
26053         * tree-vect-loop-manip.c: New file.
26054         * tree-vectorizer.c: Update documentation and included files.
26055         (vect_loop_location): Make extern.
26056         (rename_use_op): Move to tree-vect-loop-manip.c
26057         (rename_variables_in_bb, rename_variables_in_loop,
26058         slpeel_update_phis_for_duplicate_loop,
26059         slpeel_update_phi_nodes_for_guard1,
26060         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
26061         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
26062         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
26063         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
26064         find_loop_location): Likewise.
26065         (new_stmt_vec_info): Move to tree-vect-stmts.c.
26066         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
26067         get_vectype_for_scalar_type, vect_is_simple_use,
26068         supportable_widening_operation, supportable_narrowing_operation):
26069         Likewise.
26070         (bb_in_loop_p): Move to tree-vect-loop.c.
26071         (new_loop_vec_info, destroy_loop_vec_info,
26072         reduction_code_for_scalar_code, report_vect_op,
26073         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
26074         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
26075         (vect_supportable_dr_alignment): Likewise.
26076         * tree-vectorizer.h (tree-data-ref.h): Include.
26077         (vect_loop_location): Declare.
26078         Reorganize function declarations according to the new file structure.
26079         * tree-vect-loop.c: New file.
26080         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
26081         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
26082         * tree-vect-data-refs.c: New file.
26083         * tree-vect-patterns.c (timevar.h): Don't include.
26084         * tree-vect-stmts.c: New file.
26085         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
26086         tree-vect-slp.c, tree-vect-loop.c.
26087         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
26088         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
26089         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
26090         (tree-vect-analyze.o): Remove.
26091         (tree-vect-transform.o): Likewise.
26092         (tree-vect-data-refs.o): Add rule.
26093         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
26094         tree-vect-slp.o): Likewise.
26095         (tree-vect-patterns.o): Remove redundant dependencies.
26096         (tree-vectorizer.o): Likewise.
26097         * tree-vect-slp.c: New file.
26099 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26101         * optc-gen.awk: Warn if an option flag has multiple different
26102         help strings.
26104 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
26106         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
26107         -floop-block): Document dependences on PPL, CLooG and Graphite.
26109 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
26111         PR rtl-optimization/323
26112         * c-common.c (c_fully_fold, convert_and_check,
26113         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
26114         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
26115         * c-common.def (EXCESS_PRECISION_EXPR): New.
26116         * c-cppbuiltin.c (builtin_define_float_constants): Define
26117         constants with enough digits for long double.
26118         * c-lex.c (interpret_float): Interpret constant with excess
26119         precision where appropriate.
26120         * c-opts.c (c_common_post_options): Set
26121         flag_excess_precision_cmdline.  Give an error for
26122         -fexcess-precision=standard for C++ for processors where the
26123         option is significant.
26124         * c-parser.c (c_parser_conditional_expression): Handle excess
26125         precision in condition.
26126         * c-typeck.c (convert_arguments): Handle arguments with excess
26127         precision.
26128         (build_unary_op): Move excess precision outside operation.
26129         (build_conditional_expr): Likewise.
26130         (build_compound_expr): Likewise.
26131         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
26132         (build_modify_expr): Handle excess precision in RHS.
26133         (convert_for_assignment): Handle excess precision in converted
26134         value.
26135         (digest_init, output_init_element, process_init_element): Handle
26136         excess precision in initializer.
26137         (c_finish_return): Handle excess precision in return value.
26138         (build_binary_op): Handle excess precision in operands and add
26139         excess precision as needed for operation.
26140         * common.opt (-fexcess-precision=): New option.
26141         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
26142         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
26143         For standard excess precision, output explicit conversion to and
26144         truncation from XFmode.
26145         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
26146         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
26147         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
26148         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
26149         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
26150         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
26151         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
26152         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
26153         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
26154         define_splits, sqrt<mode>2): Disable where appropriate for
26155         standard excess precision.
26156         * convert.c (convert_to_real): Do not shorten arithmetic to type
26157         for which excess precision would be used.
26158         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
26159         * doc/invoke.texi (-fexcess-precision=): Document option.
26160         (-mfpmath=): Correct index entry.
26161         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
26162         flag_excess_precision): New.
26163         * langhooks.c (lhd_post_options): Set
26164         flag_excess_precision_cmdline.
26165         * opts.c (common_handle_option): Handle -fexcess-precision=.
26166         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
26167         init_excess_precision): New.
26168         (lang_dependent_init_target): Call init_excess_precision.
26169         * tree.c (excess_precision_type): New.
26170         * tree.h (excess_precision_type): Declare.
26172 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
26174         PR c/35235
26175         * c-typeck.c (build_component_ref): Do not copy qualifiers from
26176         non-lvalue to component.
26178 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
26180         PR preprocessor/34695
26181         * Makefile.in (c-opts.o): Depend on c-tree.h.
26182         * c-common.c: Move down include of diagnostic.h.
26183         (done_lexing, c_cpp_error): New.
26184         * c-common.h (done_lexing): Declare.
26185         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
26186         (parse_in).
26187         * c-opts.c: Include c-tree.h.
26188         (c_common_init_options): Set preprocessor error callback.
26189         (c_common_handle_option): Do not set preprocessor
26190         inhibit_warnings, warnings_are_errors, warn_system_headers,
26191         pedantic_errors or inhibit_warnings flags.
26192         (c_common_post_options): Do not check cpp_errors (parse_in).
26193         (c_common_finish): Do not output dependencies if there were
26194         errors.  Do not check return value of cpp_finish.
26195         * c-ppoutput.c (pp_file_change): Set input_location.
26196         * c-tree.h (c_cpp_error): Declare.
26197         * diagnostic.c (diagnostic_set_info_translated): Also initialize
26198         override_column.
26199         (diagnostic_build_prefix): Check override_column.
26200         * diagnostic.h (diagnostic_info): Add override_column field.
26201         (diagnostic_override_column): Define.
26203 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
26205         * c-common.c (c_expand_expr, c_staticp): Remove.
26206         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
26207         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
26208         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
26209         * c-gimplify.c (gimplify_compound_literal_expr,
26210         optimize_compound_literals_in_ctor): Remove.
26211         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
26212         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
26213         * c-semantics.c (emit_local_var): Remove.
26215         * langhooks-def.h (lhd_expand_expr): Remove.
26216         * langhooks.c (lhd_expand_expr): Remove.
26217         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
26219         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
26220         handling from c-semantics.c; don't call into langhook.
26221         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
26222         * gimplify.c (gimplify_compound_literal_expr,
26223         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
26224         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
26225         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
26226         as was done in c-gimplify.c.
26227         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
26228         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
26229         Move from c-common.h.
26230         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
26232         * tree.c (staticp): Do not call langhook.
26233         * langhooks.c (lhd_staticp): Delete.
26234         * langhooks-def.h (lhd_staticp): Delete prototype.
26235         (LANG_HOOKS_STATICP): Delete.
26236         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
26238         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
26239         instead of DECL_STMTs.
26241 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
26243         PR c/456
26244         PR c/5675
26245         PR c/19976
26246         PR c/29116
26247         PR c/31871
26248         PR c/35198
26249         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
26250         void_type_node.
26251         (fold_call_expr): Return a NOP_EXPR from folding rather than the
26252         contained expression.
26253         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
26254         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
26255         conditional expressions for C.
26256         (decl_constant_value_for_optimization): Move from
26257         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
26258         whether optimizing and that the expression is a VAR_DECL not of
26259         array type instead of doing such checks in the caller.  Do not
26260         check pedantic.  Call gcc_unreachable for C++.
26261         * c-common.def (C_MAYBE_CONST_EXPR): New.
26262         * c-common.h (c_fully_fold, c_save_expr,
26263         decl_constant_value_for_optimization): New prototypes.
26264         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
26265         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
26266         EXPR_INT_CONST_OPERANDS): Define.
26267         * c-convert.c (convert): Strip nops from expression.
26268         * c-decl.c (groktypename): Take extra parameters expr and
26269         expr_const_operands.  Update call to grokdeclarator.
26270         (start_decl): Update call to grokdeclarator.  Add statement for
26271         expressions used in type of decl.
26272         (grokparm): Update call to grokdeclarator.
26273         (push_parm_decl): Update call to grokdeclarator.
26274         (build_compound_literal): Add parameter non_const and build a
26275         C_MAYBE_COSNT_EXPR if applicable.
26276         (grokdeclarator): Take extra parameters expr and
26277         expr_const_operands.  Track expressions used in declaration
26278         specifiers and declarators.  Fold array sizes and track whether
26279         they are constant expressions and whether they are integer
26280         constant expressions.
26281         (parser_xref_tag): Set expr and expr_const_operands fields in
26282         return value.
26283         (grokfield): Update call to grokdeclarator.
26284         (start_function): Update call to grokdeclarator.
26285         (build_null_declspecs): Set expr and expr_const_operands fields in
26286         return value.
26287         (declspecs_add_type): Handle expressions in typeof specifiers.
26288         * c-parser.c (c_parser_declspecs): Set expr and
26289         expr_const_operands fields for declaration specifiers.
26290         (c_parser_enum_specifier): Likewise.
26291         (c_parser_struct_or_union_specifier): Likewise.
26292         (c_parser_typeof_specifier): Likewise.  Update call to
26293         groktypename.  Fold expression as needed.  Return expressions with
26294         type instead of adding statements.
26295         (c_parser_attributes): Update calls to c_parser_expr_list.
26296         (c_parser_statement_after_labels): Fold expression before passing
26297         to objc_build_throw_stmt.
26298         (c_parser_condition): Fold expression.
26299         (c_parser_asm_operands): Fold expression.
26300         (c_parser_conditional_expression): Use c_save_expr.  Update call
26301         to build_conditional_expr.
26302         (c_parser_alignof_expression): Update call to groktypename.
26303         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
26304         original_code.  Fold expression argument of va_arg.  Create
26305         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
26306         argument to va_arg.  Update calls to groktypename.  Fold array
26307         index for offsetof.  Verify that first argument to
26308         __builtin_choose_expr has integer type.
26309         (c_parser_postfix_expression_after_paren_type): Update calls to
26310         groktypename and build_compound_literal.  Handle expressions with
26311         side effects in type name.
26312         (c_parser_postfix_expression_after_primary): Update call to
26313         c_parser_expr_list.  Set original_code for calls to
26314         __builtin_constant_p.
26315         (c_parser_expr_list): Take extra parameter fold_p.  Fold
26316         expressions if requested.
26317         (c_parser_objc_type_name): Update call to groktypename.
26318         (c_parser_objc_synchronized_statement): Fold expression.
26319         (c_parser_objc_receiver): Fold expression.
26320         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
26321         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
26322         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
26323         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
26324         (struct c_typespec): Add elements expr and expr_const_operands.
26325         (struct c_declspecs): Add elements expr and expr_const_operands.
26326         (groktypename, build_conditional_expr, build_compound_literal):
26327         Update prototypes.
26328         (in_late_binary_op): Declare.
26329         * c-typeck.c (note_integer_operands): New function.
26330         (in_late_binary_op): New variable.
26331         (decl_constant_value_for_broken_optimization): Move to c-common.c
26332         and rename to decl_constant_value_for_optimization.
26333         (default_function_array_conversion): Do not strip nops.
26334         (default_conversion): Do not call
26335         decl_constant_value_for_broken_optimization.
26336         (build_array_ref): Do not fold result.
26337         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
26338         result when operand is a VLA.
26339         (c_expr_sizeof_type): Update call to groktypename.  Handle
26340         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
26341         result when operand names a VLA type.
26342         (build_function_call): Update call to build_compound_literal.
26343         Only fold result for calls to __builtin_* functions.  Strip
26344         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
26345         the function designator.
26346         (convert_arguments): Fold arguments.  Update call to
26347         convert_for_assignment.
26348         (build_unary_op): Handle increment and decrement of
26349         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
26350         decrement earlier.  Fold operand of increment and decrement.
26351         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
26352         built for integer operand.  Wrap returns that are INTEGER_CSTs
26353         without being integer constant expressions or that have integer
26354         constant operands without being INTEGER_CSTs.
26355         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
26356         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
26357         result is an integer constant expression or can be used in
26358         unevaluated parts of one and avoid folding and wrap as
26359         appropriate.  Fold operands before possibly doing -Wsign-compare
26360         warnings.
26361         (build_compound_expr): Wrap result for C99 if operands can be used
26362         in integer constant expressions.
26363         (build_c_cast): Update call to digest_init.  Do not ignore
26364         overflow from casting floating-point constants to integers.  Wrap
26365         results that could be confused with integer constant expressions,
26366         null pointer constants or floating-point constants.
26367         (c_cast_expr): Update call to groktypename.  Handle expressions
26368         included in type name.
26369         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
26370         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
26371         Update calls to convert_for_assignment.
26372         (convert_for_assignment): Take new parameter
26373         null_pointer_constant.  Do not strip nops or call
26374         decl_constant_value_for_broken_optimization.  Set
26375         in_late_binary_op for conversions to boolean.
26376         (store_init_value): Update call to digest_init.
26377         (digest_init): Take new parameter null_pointer_constant.  Do not
26378         call decl_constant_value_for_broken_optimization.  pedwarn for
26379         initializers not constant expressions.  Update calls to
26380         convert_for_assignment.
26381         (constructor_nonconst): New.
26382         (struct constructor_stack): Add nonconst element.
26383         (really_start_incremental_init, push_init_level, pop_init_level):
26384         Handle constructor_nonconst and nonconst element.
26385         (set_init_index): Call constant_expression_warning for array
26386         designators.
26387         (output_init_element): Fold value.  Set constructor_nonconst as
26388         applicable.  pedwarn for initializers not constant expressions.
26389         Update call to digest_init.  Call constant_expression_warning
26390         where constant initializers are required.
26391         (process_init_element): Use c_save_expr.
26392         (c_finish_goto_ptr): Fold expression.
26393         (c_finish_return): Fold return value.  Update call to
26394         convert_for_assignment.
26395         (c_start_case): Fold switch expression.
26396         (c_process_expr_stmt): Fold expression.
26397         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
26398         ensure statement expression is not evaluated in constant expression.
26399         (build_binary_op): Track whether results are integer constant
26400         expressions or may occur in such, disable folding and wrap results
26401         as applicable.  Fold operands for -Wsign-compare warnings unless
26402         in_late_binary_op.
26403         (c_objc_common_truthvalue_conversion): Handle results folded to
26404         integer constants that are not integer constant expressions.
26405         * doc/extend.texi: Document when typeof operands are evaluated,
26406         that condition of __builtin_choose_expr is an integer constant
26407         expression, and more about use of __builtin_constant_p in
26408         initializers.
26410 2009-03-29  Richard Guenther  <rguenther@suse.de>
26412         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
26413         propagate addresses of array references.
26415 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
26417         * regmove.c (perhaps_ends_bb_p): Remove.
26418         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
26419         from INSN and check that the main loop stays within that basic block.
26420         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
26421         (regmove_forward_pass): Split out from regmove_optimize.  Use
26422         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
26423         (regmove_backward_pass): Split out from regmove_optimize.  Use
26424         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
26425         (regmove_optimize): Simplify.
26427 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
26429         PR target/39545
26430         * config/i386/i386.c (classify_argument): Ignore flexible array
26431         member in struct and warn ABI change.
26433 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
26435         * config/i386/i386-protos.h (ix86_agi_dependent): New.
26437         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
26438         (ix86_adjust_cost): Updated.
26440 2009-03-29  Jan Hubicka  <jh@suse.cz>
26442         PR middle-end/28850
26443         * tree-pass.h (pass_cleanup_eh): New function.
26444         (remove_unreachable_regions): Break code handling RTL
26445         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
26446         that can not be reached by runtime.
26447         (can_be_reached_by_runtime): New function.
26448         (label_to_region_map): New function.
26449         (num_eh_regions): New function.
26450         (rtl_remove_unreachable_regions): New function.
26451         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
26452         (remove_eh_region): New function.
26453         * except.h: Include sbitmap and vecprim.
26454         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
26455         num_eh_regions): Declare.
26456         * passes.c (init_optimization_passes): Schedule cleanup_eh.
26457         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
26458         * tree-eh.c (tree_remove_unreachable_handlers): New function.
26459         (tree_empty_eh_handler_p): New function.
26460         (cleanup_empty_eh): New function.
26461         (cleanup_eh): New function.
26462         (pass_cleanup_eh): New function.
26464 2009-03-29  Jan Hubicka  <jh@suse.cz>
26466         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
26467         for removed regions.
26469 2009-03-29  Jan Hubicka  <jh@suse.cz>
26471         * except.c (dump_eh_tree): Dump all datastructures.
26473 2009-03-29  Jan Hubicka  <jh@suse.cz>
26475         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
26476         (duplicate_eh_regions_1): Likewise.
26477         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
26478         vector; call EH verification.
26479         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
26480         Be ready for region being removed.
26482 2009-03-29  Jan Hubicka  <jh@suse.cz>
26484         * bitmap.c (bitmap_last_set_bit): New function.
26485         * bitmap.h (bitmap_last_set_bit): Declare.
26487 2009-03-29  David Ayers  <ayers@fsfe.org>
26489         PR objc/27377
26490         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
26491         by calling objc_compare_types and surpress warnings about
26492         incompatible C pointers that are compatible ObjC pointers.
26494 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
26496         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
26497         call initialize_inline_failed.
26498         (initialize_inline_failed): Move it from here ...
26499         * cgraph.c (initialize_inline_failed): ... to here.
26500         (cgraph_create_edge): Call initialize_inline_failed rather than
26501         setting inline_failed directly.
26503 2009-03-29  Ben Elliston  <bje@au.ibm.com>
26505         PR target/32542
26506         * sysv4.opt (msdata): Improve comment.
26507         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
26508         * sysv4.h (SVR4_ASM_SPEC): Likewise.
26510 2009-03-29  Ben Elliston  <bje@au.ibm.com>
26512         PR target/30451
26513         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
26514         load and store attributes.
26516 2009-03-29  Ben Elliston  <bje@au.ibm.com>
26518         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
26519         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
26520         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
26521         * doc/extend.texi (X86 Built-in Functions): Add index entries for
26522         __builtin_infq and __builtin_huge_valq.
26524 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
26526         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
26527         atmega8m1 devices.
26528         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
26529         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
26531 2009-03-28  Xinliang David Li  <davidxl@google.com>
26533         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
26534         (do_dbg_cnt): New function.
26536 2009-03-28  Jan Hubicka  <jh@suse.cz>
26538         Merge from pretty-ipa:
26540         2009-03-27  Jan Hubicka  <jh@suse.cz>
26542         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
26543         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
26544         * passes.c (function_called_by_processed_nodes_p): New.
26545         * ipa-pure-const.c (check_call): Fix handling of operands.
26546         (analyze_function): Dump debug output for skipped bodies.
26547         (local_pure_const): Use function_called_by_processed_nodes_p.
26548         * dwarf2out.c (reference_to_unused): Use output.
26549         * passes.c (do_per_function_toporder): Likewise.
26551         2008-11-12  Jan Hubicka  <jh@suse.cz>
26553         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
26554         * ipa-pure-const.c (funct_state_d): Add can throw field; make
26555         state_set_in_source enum
26556         (check_decl): Ignore memory tags; do not set fake looping flags;
26557         dump diagnostics.
26558         (check_operand, check_tree, check_rhs_var, check_lhs_var,
26559         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
26560         (check_call, analyze_function): Rewrite.
26561         (check_stmt): New.
26562         (add_new_function): Update call of analyze_function.
26563         (generate_summary): Add call of analyze_function.
26564         (propagate): Propagate can_throw; handle state_set_in_source correctly.
26565         (local_pure_const): New function.
26566         (pass_local_pure_const): New pass.
26567         * ipa-inline.c (inline_transform): Set after_inlining.
26568         * tree-eh.c (stmt_can_throw_external): New.
26569         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
26570         work with aliasing built.
26571         * tree-flow.h (stmt_can_throw_external): New.
26572         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
26573         and local pure/const pass in early and late optimization queue.
26575 2009-03-28  Martin Jambor  <mjambor@suse.cz>
26577         * fold-const.c (get_pointer_modulus_and_residue): New parameter
26578         allow_func_align.
26579         (fold_binary): Allow function decl aligment consideration is the
26580         second argument is integer constant one.
26581         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
26582         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
26583         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
26585 2009-03-28  Jan Hubicka  <jh@suse.cz>
26587         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
26588         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
26589         * function.h (rtl_data): Add nothrow flag.
26590         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
26591         set DECL_NOTHROW for AVAILABLE functions.
26593 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
26595         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
26596         following vector keyword has expansion starting with pixel or bool
26597         keyword, expand vector to __vector and pixel or bool to __pixel or
26598         __bool.
26600         PR c++/39554
26601         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
26602         warn_if_disallowed_function_p): Removed.
26603         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
26604         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
26605         warning_if_disallowed_function_p.
26606         * flags.h (warn_if_disallowed_function_p,
26607         warn_disallowed_functions): Removed.
26608         * common.opt (Wdisallowed-function-list=): Removed.
26609         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
26611 2009-03-28  Richard Guenther  <rguenther@suse.de>
26613         PR tree-optimization/38723
26614         * tree-ssa-pre.c (compute_avail): Add all default definitions to
26615         the entry block.
26617 2009-03-28  Jan Hubicka  <jh@suse.cz>
26619         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
26620         test introduced by my previous patch.
26622 2009-03-28  Richard Guenther  <rguenther@suse.de>
26624         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
26625         the PHIs value undefined.
26627 2009-03-28  Jan Hubicka  <jh@suse.cz>
26629         * tree-pass.h (pass_fixup_cfg): New pass.
26630         * ipa-inline.c (inline_transform): Set
26631         always_inline_functions_inlined/after_inlining.
26632         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
26633         (pass_fixup_cfg): New pass.
26634         * passes.c (init_optimization_passes): Add fixup_cfg.
26636 2009-03-28  Richard Guenther  <rguenther@suse.de>
26638         PR tree-optimization/38458
26639         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
26640         argument use the arguments copy-of value.
26642 2009-03-28  Richard Guenther  <rguenther@suse.de>
26644         PR tree-optimization/38180
26645         * tree-ssa-ccp.c (get_default_value): Simplify.
26646         (likely_value): Likewise.
26647         (surely_varying_stmt_p): Properly handle VOP case.
26648         (ccp_initialize): Likewise.
26649         (ccp_fold): Handle propagating through *&.
26650         (fold_const_aggregate_ref): Also handle decls.
26652 2009-03-28  Jan Hubicka  <jh@suse.cz>
26654         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
26655         * cgraph.h (cgraph_node): Likewise.
26656         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
26657         (cgraph_reset_node): Use process flag.
26658         (cgraph_mark_functions_to_output): Likewise.
26659         (cgraph_expand_function): Likewise.
26660         (cgraph_expand_all_functions): Likewise.
26661         (cgraph_output_in_order): Likewise.
26662         * dwarf2out.c (reference_to_unused): Likewise.
26663         * passes.c do_per_function_toporder): Likewise.
26665 2009-03-28  Jan Hubicka  <jh@suse.cz>
26667         Bring from lto-branch:
26669         2008-09-03  Doug Kwan  <dougkwan@google.com>
26671         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
26672         enums instead of reason strings.
26673         * cgraph.c (cgraph_create_edge): Same.
26674         (cgraph_inline_failed_string): New function.
26675         * cgraph.h (cgraph_inline_failed_t): New enum type.
26676         (cgraph_inline_failed_string): New prototype.
26677         (struct cgraph_edge): Change type of INLINED_FAILED from constant
26678         char pointer to cgraph_inline_failed_t.
26679         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
26680         (cgraph_default_inline_p): Ditto.
26681         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
26682         to cgraph_inline_failed_t pointer.
26683         * cif-code.def: New file.
26684         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
26685         reason string.
26686         (cgraph_check_inline_limits): Change type of REASON to pointer to
26687         cgraph_inline_failed_t.  Replace reason strings with enums.
26688         (cgraph_default_inline_p): Ditto.
26689         (cgraph_recursive_inlining_p): Ditto.
26690         (update_caller_keys): Change type of FAILED_REASON to
26691         cgraph_inline_failed_t.
26692         (cgraph_set_inline_failed): Change type of REASON to pointer to
26693         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
26694         convert enums to strings for text output.
26695         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
26696         to be of type cgraph_inline_failed_t.  Replace reason strings with
26697         enums.  Call cgraph_inline_failed_string to covert enums
26698         to strings for text output.
26699         (cgraph_decide_inlining): Replace reason strings with enums.
26700         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
26701         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
26702         for text output.
26703         * tree-inline.c (expand_call_inline): Change type of REASON
26704         to cgraph_inline_failed_t.  Replace reason strings with enums.
26705         Call cgraph_inline_failed_string for text output.
26706         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
26707         (cgraph.o): Ditto.
26709 2009-03-28  Jan Hubicka  <jh@suse.cz>
26711         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
26712         cgraph_clone_node): Remove master clone handling.
26713         (cgraph_is_master_clone, cgraph_master_clone): Remove.
26714         * cgraph.h (master_clone): Remove.
26715         (cgraph_is_master_clone, cgraph_master_clone): Remove.
26716         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
26717         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
26719 2009-03-28  Jan Hubicka  <jh@suse.cz>
26721         * cgraph.c (cgraph_function_body_availability): Functions declared
26722         inline are always safe to assume that it is not going to be replaced.
26724 2009-03-28  Richard Guenther  <rguenther@suse.de>
26726         PR tree-optimization/38513
26727         * tree-ssa-pre.c (eliminate): Remove redundant stores.
26728         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
26729         EXC_PTR_EXPR and FILTER_EXPR.
26730         (get_ref_from_reference_ops): Likewise.
26732 2009-03-28  Richard Guenther  <rguenther@suse.de>
26734         PR tree-optimization/38968
26735         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
26736         Use FLOOR_MOD_EXPR to compute misalignment.
26738 2009-03-28  Richard Guenther  <rguenther@suse.de>
26740         PR tree-optimization/37795
26741         * tree.h (combine_comparisons): Declare.
26742         * fold-const.c (combine_comparisons): Export.
26743         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
26744         comparisons.
26745         (ifcombine_iforif): Use combine_comparisons.
26747 2009-03-28  Jan Hubicka  <jh@suse.cz>
26749         * tree-eh.c (inlinable_call_p): New function.
26750         (make_eh_edges): Use it.
26751         (verify_eh_edges): Use it.
26752         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
26753         * except.c (reachable_next_level): Add inlinable_function argument
26754         (sjlj_find_directly_reachable_regions): Update.
26755         (add_reachable_handler): Do not set saw_any_handlers.
26756         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
26757         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
26758         Add new inlinable call parameter.
26759         (can_throw_internal, can_throw_external): Update.
26760         * except.h (can_throw_internal_1, can_throw_external_1,
26761         foreach_reachable_handler): Update declaration.
26763 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
26765         * config/arm/t-arm-coff, config/h8300/coff.h,
26766         config/i386/i386-aout.h, config/i386/i386-coff.h,
26767         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
26768         config/pdp11/2bsd.h, config/rs6000/aix41.h,
26769         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
26770         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
26771         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
26772         sys-types.h: Remove.
26773         * Makefile.in: Remove protoize and fixproto support and references
26774         in comments.
26775         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
26776         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
26777         Remove.
26778         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
26779         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
26780         unprotoize$(exeext).
26781         (rest.encap): Don't depend on $(STMP_FIXPROTO)
26782         (.PHONY): Don't depend on proto.
26783         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
26784         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
26785         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
26786         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
26787         build/gen-protos.o, build/scan.o, xsys-protos.h,
26788         build/fix-header$(build_exeext), build/fix-header.o,
26789         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
26790         stmp-install-fixproto): Remove.
26791         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
26792         SYSCALLS.c or fixproto files.
26793         (install-common): Don't install protoize.
26794         (install-headers-tar, install-headers-cpio, install-headers-cp):
26795         Don't depend on $(STMP_FIXPROTO).
26796         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
26797         install fixproto files or write out fixproto settings.
26798         (uninstall): Don't uninstall protoize.
26799         * config.gcc (use_fixproto): Remove.
26800         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
26801         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
26802         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
26803         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
26804         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
26805         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
26806         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
26807         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
26808         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
26809         * config/t-vxworks (STMP_FIXPROTO): Remove.
26810         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
26811         STMP_FIXPROTO): Remove.
26812         * config.in, configure: Regenerate.
26813         * crtstuff.c (gid_t, uid_t): Don't undefine.
26814         * doc/install.texi: Change m68k-coff to m68k-elf in example.
26815         (arm-*-coff, arm-*-aout: Remove target entries.
26816         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
26817         Remove mention of AIX 4.1.
26818         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
26819         * doc/invoke.texi (Running Protoize): Remove.
26820         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
26821         (Protoize Caveats): Remove.
26822         * tsystem.h: Update comments on headers assumed to exist.
26824 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
26826         * genautomata.c: Add a new year to the copyright.  Add a new
26827         reference.
26828         (struct insn_reserv_decl): Add comments for member bypass_list.
26829         (find_bypass): Remove.
26830         (insert_bypass): New.
26831         (process_decls): Use insert_bypass.
26832         (output_internal_insn_latency_func): Output all bypasses with the
26833         same input insn in one switch case.
26835         * rtl.def (define_bypass): Describe bypass choice.
26836         * doc/md.texi (define_bypass): Ditto.
26838 2009-03-27  Richard Guenther  <rguenther@suse.de>
26840         * gimplify.c (mark_addressable): Export.
26841         * tree-flow.h (mark_addressable): Declare.
26842         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
26843         * tree-ssa.c (verify_phi_args): Verify that address taken
26844         variables have TREE_ADDRESSABLE set.
26846 2009-03-27  Richard Guenther  <rguenther@suse.de>
26848         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
26849         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
26850         Do not mark decls TREE_ADDRESSABLE.
26851         (build_fold_addr_expr): Adjust.
26852         (fold_addr_expr): Remove.
26853         (fold_unary): Use build_fold_addr_expr.
26854         (fold_comparison): Likewise.
26855         (split_address_to_core_and_offset): Likewise.
26856         * coverage.c (tree_coverage_counter_addr): Mark the array decl
26857         TREE_ADDRESSABLE.
26858         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
26859         (gimplify_modify_expr_to_memcpy): Mark source and destination
26860         addressable.
26861         * omp-low.c (create_omp_child_function): Mark the object decl
26862         TREE_ADDRESSABLE.
26863         (lower_rec_input_clauses): Mark the var we take the address of
26864         TREE_ADDRESSABLE.
26865         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
26867 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
26869         PR middle-end/39315
26870         * cfgexpand.c (expand_one_stack_var_at): Change alignment
26871         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
26873 2009-03-27  Richard Guenther  <rguenther@suse.de>
26875         PR tree-optimization/39120
26876         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
26877         constraints.
26878         (handle_lhs_call): Process return constraints.  Add escape
26879         constraints if necessary.
26880         (handle_const_call): Fill out return constraints.  Make nested
26881         case more precise.  Avoid consttmp if possible.
26882         (handle_pure_call): Fill out return constraints.  Avoid
26883         callused if possible.
26884         (find_func_aliases): Simplify call handling.
26886 2009-03-27  Richard Guenther  <rguenther@suse.de>
26888         PR tree-optimization/39120
26889         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
26890         as a representative.
26891         (solve_graph): Do propagate CALLUSED.
26892         (handle_pure_call): Use a scalar constraint from CALLUSED for
26893         the return value.
26894         (find_what_p_points_to): CALLUSED shall not appear in poins-to
26895         solutions.
26897 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
26899         PR c/39323
26900         * c-common.c (handle_aligned_attribute): Properly check alignment
26901         overflow.  Use (1U << i) instead of (1 << i).
26903         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
26905         * expr.h (get_mem_align_offset): Updated.
26907         * tree.h (tree_decl_common): Change align to "unsigned int" and
26908         move it before pointer_alias_set.
26910 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
26911             Jakub Jelinek  <jakub@redhat.com>
26913         PR target/38034
26914         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
26915         gr_register_operand with gr_reg_or_0_operand.
26916         (cmpxchg_rel_di): Likewise.
26917         (sync_lock_test_and_set<mode>): Likewise.
26919 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
26921         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
26922         (true_regnum): Likewise.
26924         * rtlanal.c (subreg_info): Moved to ...
26925         * rtl.h (subreg_info): Here.  New.
26926         (subreg_get_info): New.
26928         * rtlanal.c (subreg_get_info): Make it extern.
26930 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
26932         PR target/39472
26933         * config/i386/i386.c (ix86_abi): New.
26934         (override_options): Handle -mabi=.
26935         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
26936         (ix86_call_abi_override): Likewise.
26937         (init_cumulative_args): Likewise.
26938         (function_arg_advance): Likewise.
26939         (function_arg_64): Likewise.
26940         (function_arg): Likewise.
26941         (ix86_pass_by_reference): Likewise.
26942         (ix86_function_value_regno_p): Likewise.
26943         (ix86_build_builtin_va_list_abi): Likewise.
26944         (setup_incoming_varargs_64): Likewise.
26945         (is_va_list_char_pointer): Likewise.
26946         (ix86_init_machine_status): Likewise.
26947         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
26948         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
26949         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
26950         (ix86_function_abi): Make it static and return enum calling_abi.
26951         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
26952         with ix86_abi.
26953         (ix86_fn_abi_va_list): Updated.
26955         * config/i386/i386.h (ix86_abi): New.
26956         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
26957         (CONDITIONAL_REGISTER_USAGE): Likewise.
26958         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
26959         (machine_function): Likewise.
26961         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
26962         with ix86_abi.
26963         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
26964         (STACK_BOUNDARY): Likewise.
26965         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
26967         * config/i386/i386.opt (mabi=): New.
26969         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
26970         return enum calling_abi.
26971         (ix86_function_type_abi): Likewise.
26972         (ix86_function_abi): Removed.
26974         * doc/invoke.texi: Document -mabi= option for x86.
26976 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26978         * builtins.c (real_dconstp): Delete.
26979         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
26981 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
26982             Jakub Jelinek  <jakub@redhat.com>
26984         PR debug/37959
26985         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
26986         (gen_subprogram_die): When a function is explicit, generate the
26987         DW_AT_explicit attribute.
26988         * langhooks.h (struct lang_hooks_for_decls): Add
26989         function_decl_explicit_p langhook.
26990         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
26991         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
26993 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
26995         * builtins.c (fold_builtin_memory_op): Optimize memmove
26996         into memcpy if we can prove source and destination don't overlap.
26998         * tree-inline.c: Include gt-tree-inline.h.
26999         (clone_fn_id_num): New variable.
27000         (clone_function_name): New function.
27001         (tree_function_versioning): Use it.
27002         * Makefile.in (GTFILES): Add tree-inline.c.
27004 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
27006         * BASE-VER: Change to 4.5.0.
27008 2009-03-27  Xinliang David Li  <davidxl@google.com>
27010         PR tree-optimization/39557
27011         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
27013 2009-03-27  Xinliang David Li  <davidxl@google.com>
27015         PR tree-optimization/39548
27016         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
27017         candidate check.
27019 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27021         * c-common.c (pointer_int_sum): Use %wd on return from
27022         tree_low_cst.
27024 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
27026         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
27027         on return from tree_low_cst.
27029 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
27031         PR c++/36799
27032         * ginclude/stdarg.h (va_copy): Define also for
27033         __GXX_EXPERIMENTAL_CXX0X__.
27035 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
27037         PR c++/35652
27038         * builtins.h (c_strlen): Do not warn here.
27039         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
27040         * c-common.c (pointer_int_sum): Take an explicit location.
27041         Warn about offsets out of bounds.
27042         * c-common.h (pointer_int_sum): Adjust declaration.
27044 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27046         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
27047         markup glitch.
27049 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
27051         PR c++/39554
27052         * opts.c (warn_if_disallowed_function_p): Don't assume
27053         get_callee_fndecl must return non-NULL.
27055 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
27057         PR rtl-optimization/39522
27058         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
27059         when reg_reloaded_valid is set.
27061 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27063         * config/spu/divv2df3.c: New file.
27064         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
27065         (DPBIT_FUNCS): Filter out _div_df.
27067 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
27069         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
27070         a jump insn, count that jump in the distance to the loop start.
27072 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
27074         PR target/39523
27075         * config/sh/sh.c (calc_live_regs): Fix condition for global
27076         registers except PIC_OFFSET_TABLE_REGNUM.
27078 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
27080         PR/39518
27081         * doc/invoke.texi (-mconsole): New.
27082         (-mcygwin): New.
27083         (-mno-cygwin): New.
27084         (-mdll): New.
27085         (-mnop-fun-dllimport): New.
27086         (-mthread): New.
27087         (-mwin32): New.
27088         (-mwindows): New.
27089         (sub section "i386 and x86-64 Windows Options"): New.
27091 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
27093         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
27094         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
27096 2009-03-25  Richard Guenther  <rguenther@suse.de>
27098         PR middle-end/39497
27099         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
27100         of -Wno-error.
27102 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
27104         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
27105         neither of haifa/selective schedulers are working.
27107 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27109         * doc/invoke.texi (Debugging Options): Fix description of
27110         -fno-merge-debug-strings.
27112 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
27114         * config/cris/libgcc.ver: New version-script.
27115         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
27117         * configure.ac <GAS features, nop mnemonic>: Add pattern
27118         crisv32-*-* for "nop".
27119         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
27120         * configure: Regenerate.
27122 2009-03-24  Ira Rosen  <irar@il.ibm.com>
27124         PR tree-optimization/39529
27125         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
27126         mark_sym_for_renaming for the tag copied to the new vector
27127         pointer.
27129 2009-03-24  Arthur Loiret  <aloiret@debian.org>
27131         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
27132         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
27133         EXTRA_SPEC_FUNCTIONS.
27134         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
27135         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
27136         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
27137         -march and -mtune options.
27139 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
27141         * config/m68k/t-rtems: Add m5329 multilib.
27143 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
27144             Jakub Jelinek  <jakub@redhat.com>
27146         PR debug/39524
27147         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
27148         nodes.
27150 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
27152         PR c/39495
27153         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
27154         instead of c_parser_expression_conv, if original_code isn't one of the
27155         4 allowed comparison codes, fail.
27157 2009-03-23  Richard Guenther  <rguenther@suse.de>
27159         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
27160         * tree.h (struct tree_type): Likewise.
27161         * reload.h (struct insn_chain): Likewise.
27162         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
27163         * function.h (struct function): Likewise.
27164         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
27166 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
27168         PR tree-optimization/39516
27169         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
27171 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
27173         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
27174         should be set true if BITS_PER_WORD of target is bigger than 32
27176 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
27178         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
27179         Translate -B-options to -rpath-link.  Correct existing
27180         rpath-link and conditionalize on !nostdlib.
27182 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27184         * doc/extend.texi (Function Attributes, Variable Attributes):
27185         Fix typos.
27186         * doc/invoke.texi (Debugging Options, Optimize Options)
27187         (i386 and x86-64 Options, MCore Options): Likewise.
27189 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
27191         PR debug/37890
27192         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
27193         it for block local namespace aliases.
27194         (gen_decl_die): Pass context_die to gen_namespace_die.
27196 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
27198         PR c/39495
27199         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
27200         minimum or maximum value.
27202 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
27204         * reginfo.c (globalize_reg): Recompute derived reg sets.
27206 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
27208         PR target/39063
27209         * libgcc2.c (mprotect): Do not use signed arguments for
27210         VirtualProtect, use DWORD arguments.  Also fix the 'may
27211         be used uninitialized' warning for the np variable.
27213 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
27215         PR target/39496
27216         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
27217         functions using regparm calling conventions when not optimizing.
27218         (ix86_function_sseregparm): Similarly for sseregparm calling
27219         conventions.
27221 2009-03-19  Li Feng  <nemokingdom@gmail.com>
27223         PR middle-end/39500
27224         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
27225         dependence if the first conflict is after niter iterations.
27227 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
27229         PR middle-end/38609
27230         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
27231         functions with dynamic stack-pointer adjustments.
27233 2009-03-19  Ben Elliston  <bje@au.ibm.com>
27235         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
27236         option; change to -msdata=data.
27238 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27240         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
27241         and -fopenmp.
27243 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
27245         PR target/35180
27246         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
27248 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
27250         * doc/invoke.texi (Code Gen Options): Expand discussion of
27251         -fno-common.
27253 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
27255         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
27256         * matrix-reorg.c (struct matrix_info): Likewise.
27257         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
27258         * rtl.h (struct mem_attrs): Likewise.
27259         * df.h (struct df): Likewise.
27260         * tree-data-ref.h (struct data_dependence_relation): Likewise.
27261         * ira-int.h (struct ira_allocno): Likewise.
27262         * df-scan.c (struct df_collection_rec): Likewise.
27263         * ira.c (struct equivalence): Likewise.
27264         * function.c (struct temp_slot): Likewise.
27265         * cfgloop.h (struct loop): Likewise.
27267         PR debug/39485
27268         * function.c (use_register_for_decl): When not optimizing, disregard
27269         register keyword for variables with types containing methods.
27271 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
27273         PR middle-end/39447
27274         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
27275         (is_simple_operand): Call contains_component_ref_p before calling data
27276         reference analysis that would fail on COMPONENT_REFs.
27278         * tree-vrp.c (search_for_addr_array): Fix formatting.
27280 2009-03-18  Richard Guenther  <rguenther@suse.de>
27282         * tree-vect-transform.c (vect_loop_versioning): Fold the
27283         generated comparisons.
27284         * tree-vectorizer.c (set_prologue_iterations): Likewise.
27285         (slpeel_tree_peel_loop_to_edge): Likewise.
27287 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27289         PR middle-end/37805
27290         * opts.c (print_specific_help): In addition to `undocumented',
27291         accept `separate' and `joined' flags if passed alone.  Describe
27292         output by the first matched one of those.
27293         (common_handle_option): Skip over empty strings.
27294         * gcc.c (display_help): Fix help string for `--help='.
27295         * doc/invoke.texi (Option Summary, Overall Options): With
27296         `--help=', classes and qualifiers can both be repeated, but
27297         only the latter can be negated.  One should not pass only
27298         negated qualifiers.  Fix markup and examples.
27300         Revert
27301         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
27302         PR middle-end/37805
27303         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
27304         and -fhelp=separate.
27306 2009-03-17  Jing Yu  <jingyu@google.com>
27308         PR middle-end/39378
27309         * function.h (struct rtl_data): Move is_thunk from here...
27310         (struct function): ...to here.
27311         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
27312         * varasm.c (assemble_start_function): Change is_thunk from crtl to
27313         cfun.
27314         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
27315         cfun.
27316         (alpha_does_function_need_gp, alpha_start_function): Likewise.
27317         (alpha_output_function_end_prologue): Likewise.
27318         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
27319         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
27320         (rs6000_output_function_epilogue): Likewise.
27321         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
27323 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
27325         PR target/39482
27326         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
27327         from different units in a single alternative.
27328         (*truncdfsf_i387): Ditto.
27329         (*truncxfsf2_mixed): Ditto.
27330         (*truncxfdf2_mixed): Ditto.
27332 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
27334         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
27335         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
27337         PR debug/39474
27338         * tree-ssa-live.c (remove_unused_locals): Don't remove local
27339         unused non-artificial variables when not optimizing.
27341         PR debug/39471
27342         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
27343         DW_TAG_imported_module even if decl is IMPORTED_DECL with
27344         NAMESPACE_DECL in its DECL_INITIAL.
27346         PR middle-end/39443
27347         * optabs.c (set_user_assembler_libfunc): New function.
27348         * expr.h (set_user_assembler_libfunc): New prototype.
27349         * c-common.c: Include libfuncs.h.
27350         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
27351         for memcmp, memset, memcpy, memmove and abort.
27352         * Makefile.in (c-common.o): Depend on libfuncs.h.
27354         PR debug/39412
27355         * dwarf2out.c (gen_inlined_enumeration_type_die,
27356         gen_inlined_structure_type_die, gen_inlined_union_type_die,
27357         gen_tagged_type_instantiation_die): Removed.
27358         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
27359         do nothing.
27361 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
27363         PR testsuite/38526
27364         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
27365         its use.
27366         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
27367         (check-parallel-%): Ditto.
27368         (check-consistency): Ditto.
27370 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
27372         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
27373         local variable rhs by NULL_TREE.
27375 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
27377         PR target/39477
27378         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
27380 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
27382         PR target/39476
27383         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
27385 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
27387         PR target/39473
27388         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
27389         for ms->sysv ABI calls only in 64bit mode.
27391         * config/i386/i386.md (untyped_call): Support 32bit.
27393 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
27395         * doc/extend.texi: Replace x86_65 with x86_64.
27397 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
27399         PR tree-optimization/39455
27400         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
27401         mismatches for POINTER_TYPE_P (type).
27402         (number_of_iterations_le): Likewise.
27404 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
27406         * config/picochip/picochip.c: Removed profiling support.
27407         * config/picochip/picochip.md: Removed profiling instruction.
27408         * config/picochip/picochip.h: Removed profiling builtin.
27410 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
27412         * doc/install.texi (--with-host-libstdcxx): Document.
27414 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
27416         PR target/34299
27417         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
27418         generate a warning if the function name does not begin with
27419         "__vector" and the function has either the 'signal' or 'interrupt'
27420         attribute, from here to ...
27421         (avr_declare_function_name): ...here. New function.
27422         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
27423         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
27425 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
27427         PR bootstrap/39454
27428         * cse.c (fold_rtx): Don't modify original const_arg1 when
27429         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
27430         separate variable instead.
27431         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
27432         from out of range shift counts.
27433         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
27435 2009-03-13  Catherine Moore  <clm@codesourcery.com>
27437         * config/i386/x-mingw32 (host-mingw32.o): Replace
27438         diagnostic.h with $(DIAGNOSTIC_H).
27440 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
27442         PR target/39431
27443         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
27444         predicate.
27445         * config/i386/sync.md (sync_compare_and_swap<mode>,
27446         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
27447         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
27448         into a register.
27449         (sync_double_compare_and_swapdi_pic,
27450         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
27451         cmpxchg8b_pic_memory_operand instead of just memory_operand.
27453 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
27455         PR target/39445
27456         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
27458 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
27460         PR target/39327
27461         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
27462         (avx_addsubv4df3): Likewise.
27463         (*avx_addsubv4sf3): Likewise.
27464         (sse3_addsubv4sf3): Likewise.
27466 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
27468         PR target/38824
27469         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
27471 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
27473         PR debug/39432
27474         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
27475         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
27476         registers for allocnos created from user-defined variables.
27478 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27480         PR target/39181
27481         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
27482         of non-integer mode as well.
27484 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
27486         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
27487         for functions for which the parameter types are unknown.
27489 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
27491         PR target/39137
27492         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
27493         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
27494         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
27495         * config/i386/i386.c (ix86_local_alignment): For
27496         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
27497         long long variables on the stack to avoid dynamic realignment.
27498         Allow the first argument to be a decl rather than type.
27499         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
27501 2009-03-11  Nick Clifton  <nickc@redhat.com>
27503         PR target/5362
27504         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
27505         options.
27506         Add description to mno-lsim option.
27507         * config/mcore/mcore.h: Remove comment about deprecated m4align
27508         option.
27509         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
27510         * doc/invoke.texi: Add description of mno-lsim and
27511         mstack-increment options.
27513         * config/fr30/fr30.opt: Document the -mno-lsim option.
27514         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
27515         and -mno-lsim options.
27517 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27519         * fold-const.c (fold_comparison): Only call fold_inf_compare
27520         if the mode supports infinities.
27522 2009-03-11  Jason Merrill  <jason@redhat.com>
27524         PR debug/39086
27525         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
27526         end already did.  Notice GIMPLE_CALL modifications of the result.
27527         Don't copy debug information from an ignored decl or a decl from
27528         another function.
27530 2009-03-10  Richard Guenther  <rguenther@suse.de>
27531             Nathan Froyd  <froydnj@codesourcery.com>
27533         PR middle-end/37850
27534         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
27535         (__divMODE3): Likewise.
27537 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
27539         PR tree-optimization/39394
27540         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
27541         DECL_SIZE_UNIT of variable length FIELD_DECLs.
27543 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27545         * recog.c (verfiy_changes): Disallow renaming of hard regs in
27546         inline asms for register asm ("") declarations.
27548 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
27550         * fold-const.c (fold_unary): Fix comment.
27552 2009-03-07  Jan Hubicka  <jh@suse.cz>
27554         PR target/39361
27555         * tree-inline.c (setup_one_parameter): Do replacement of const
27556         argument by constant in SSA form.
27558 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27560         PR middle-end/38028
27561         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
27562         determine alignment passed to assign_stack_local.
27563         (assign_parms_unsplit_complex): Likewise.
27564         * except.c (sjlj_build_landing_pads): Likewise.
27566 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
27568         PR middle-end/39360
27569         * tree-flow.h (add_referenced_var): Return bool instead of void.
27570         * tree-dfa.c (add_referenced_var): Return result of
27571         referenced_var_check_and_insert call.
27572         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
27573         of referenced_var_check_and_insert.
27575         PR debug/39372
27576         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
27577         (gen_variable_die): Emit DW_AT_location on abstract static variable's
27578         DIE, don't emit it if abstract origin already has it.
27579         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
27580         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
27582 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27584         * genpreds.c (needs_variable): Fix parentheses at variable name
27585         detection.
27586         (write_tm_constrs_h): Indent generated code.
27588 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27590         * doc/extend.texi (Function Attributes): Add documentation
27591         for isr attributes.
27593 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
27595         PR debug/39387
27596         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
27597         take locus from its DECL_SOURCE_LOCATION instead of input_location.
27599 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
27601         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
27602         the loop as bad.
27604 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
27606         PR debug/39379
27607         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
27608         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
27610 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
27612         * config/i386/i386.md (R8_REG, R9_REG): New constants.
27613         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
27614         constants instead of magic numbers.
27615         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
27616         (QI_REG_P): Ditto.
27617         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
27618         (x86_64_ms_abi_int_parameter_registers): Ditto.
27619         (x86_64_int_return_registers): Ditto.
27620         (ix86_maybe_switch_abi): Ditto.
27621         (ix86_expand_call): Ditto for clobbered_registers array.
27622         (ix86_hard_regno_mode_ok): Ditto.
27623         (x86_extended_QIreg_mentioned_p): Ditto.
27625 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
27627         PR tree-optimization/39349
27628         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
27630         * combine.c (gen_lowpart_for_combine): Use omode when generating
27631         clobber.
27633 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
27635         PR rtl-optimization/39235
27636         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
27638 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
27640         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
27642 2009-03-04  Richard Guenther  <rguenther@suse.de>
27644         PR tree-optimization/39362
27645         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
27646         that occur in abnormal PHIs should be varying.
27648 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
27650         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
27651         Extend comments.
27652         (simple_iv):  Take loop as an argument instead of statement.
27653         * tree-scalar-evolution.h (simple_iv): Declaration changed.
27654         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
27655         to simple_iv.
27656         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
27657         Ditto.
27658         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
27659         * matrix-reorg.c (analyze_transpose): Ditto.
27660         * tree-data-ref.c (dr_analyze_innermost): Ditto.
27661         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
27662         * tree-predcom.c (ref_at_iteration): Ditto.
27663         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
27665 2009-03-04  Richard Guenther  <rguenther@suse.de>
27667         PR tree-optimization/39358
27668         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
27669         escaped_id and callused_id.
27670         (solve_graph): Likewise.
27672 2009-03-04  Richard Guenther  <rguenther@suse.de>
27674         PR tree-optimization/39339
27675         * tree-sra.c (try_instantiate_multiple_fields): Make it
27676         no longer ICE on the above.
27678 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
27680         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
27681         that fits within Pmode.
27683 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
27685         PR middle-end/10109
27686         * tm.texi (LIBCALL_VALUE): Update description.
27688 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
27690         PR middle-end/34443
27691         * doc/extend.texi (section): Update description.
27693 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
27695         PR middle-end/39345
27696         * tree-inline.c (remapped_type): New.
27697         (can_be_nonlocal): Call remapped_type instead of remap_type.
27699 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
27701         PR fortran/39354
27702         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
27703         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
27705 2009-03-03  Richard Guenther  <rguenther@suse.de>
27707         PR middle-end/39272
27708         * tree.c (tree_nonartificial_location): New function.
27709         * tree.h (tree_nonartificial_location): Declare.
27710         * builtins.c (expand_builtin_memory_chk): Provide location
27711         of the call location for artificial function pieces.
27712         (maybe_emit_chk_warning): Likewise.
27713         (maybe_emit_sprintf_chk_warning): Likewise.
27714         (maybe_emit_free_warning): Likewise.
27715         * expr.c (expand_expr_real_1): Likewise.
27717 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
27719         PR tree-optimization/39343
27720         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
27721         COMPONENT_REF t has ARRAY_TYPE.
27723 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
27725         PR middle-end/39335
27726         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
27727         when the type precision of the induction variable should be
27728         larger than the type precision of nit.
27729         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
27730         * graphite.c (graphite_loop_normal_form): Same.
27731         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
27733 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
27735         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
27736         (*call_1_rex64_ms_sysv): Use named constants instead of magic
27737         numbers to describe clobbered registers.
27738         (*call_value_0_rex64_ms_sysv): Ditto.
27739         * config/i386/mmx.md (mmx_emms): Ditto.
27740         (mmx_femms): Ditto.
27742 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
27744         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
27745         of ABI_64.
27747 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27749         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
27750         (spu_section_type_flags): New function.
27752 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
27754         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
27755         reg_class_contents of FLOAT_REGS into a temporary.
27757 2009-03-02  Richard Guenther  <rguenther@suse.de>
27758             Ira Rosen  <irar@il.ibm.com>
27760         PR tree-optimization/39318
27761         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
27762         information to the vectorized statement.
27764 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
27766         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
27767         variable.  Use defined names instead of magic constants for REX SSE
27768         registers.
27770 2009-03-01  Richard Guenther  <rguenther@suse.de>
27772         PR tree-optimization/39331
27773         * omp-low.c (lower_send_shared_vars): Do not receive new
27774         values for the reference of DECL_BY_REFERENCE parms or results.
27776 2009-03-01  Jan Hubicka  <jh@suse.cz>
27778         PR debug/39267
27779         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
27780         BLOCK_NONLOCALIZED_VAR): New macros.
27781         (tree_block): Add nonlocalized_vars.
27782         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
27783         gen_decl_die): Add origin argument.  Allow generation of die with
27784         origin at hand only.
27785         (gen_member_die, gen_type_die_with_usage, force_decl_die,
27786         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
27787         of gen_*.
27788         (gen_block_die): Fix checking for unused blocks.
27789         (process_scope_var): Break out from .... ; work with origins only.
27790         (decls_for_scope) ... here; process nonlocalized list.
27791         (dwarf2out_ignore_block): Look for nonlocalized vars.
27792         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
27793         vars.
27794         (dump_scope_block): Dump them.
27795         * tree-inline.c (remap_decls): Handle nonlocalized vars.
27796         (remap_block): Likewise.
27797         (can_be_nonlocal): New predicate.
27798         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
27800 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27802         * configure: Regenerate.
27804 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27806         * optc-gen.awk: No need to duplicate option flags twice.
27807         Reuse help texts for duplicate options which do not have any.
27809         * gcc.c (display_help): Document --version.
27811         * gcc.c (main): If print_help_list and verbose_flag, ensure
27812         driver output comes before subprocess output.
27814         * optc-gen.awk: Assign all remaining fields to help string,
27815         space-separated, for multi-line help in *.opt.
27817         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
27818         -Wno-pedantic-ms-format is for MinGW targets only.
27820         * doc/options.texi (Option file format): Fix bad indentation,
27821         restoring dropped sentence.
27823 2009-02-28  Jan Hubicka  <jh@suse.cz>
27825         * tree-inline.c (tree_function_versioning): Output debug info.
27827 2009-02-28  Jan Hubicka  <jh@suse.cz>
27829         PR debug/39267
27830         * tree-inline.c (setup_one_parameter): Do not copy propagate
27831         arguments when not optimizing.
27833 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
27835         PR target/39327
27836         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
27837         (avx_addsubv4df3): Likewise.
27838         (*avx_addsubv4sf3): Likewise.
27839         (sse3_addsubv4sf3): Likewise.
27840         (*avx_addsubv2df3): Likewise.
27841         (sse3_addsubv2df3): Likewise.
27842         (avx_unpckhps256): Correct item selectors.
27843         (avx_unpcklps256): Likewise.
27844         (avx_unpckhpd256): Likewise.
27845         (avx_unpcklpd256): Likewise.
27847 2009-02-28  Jan Hubicka  <jh@suse.cz>
27849         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
27850         static vars.
27851         (copy_arguments_for_versioning): If var is declared don't declare it.
27852         (tree_function_versioning): First setup substitutions and then copy
27853         args.
27855 2009-02-27  Jan Hubicka  <jh@suse.cz>
27857         PR debug/39267
27858         * cgraph.h (varpool_output_debug_info): Remove.
27859         * cgraphunit.c (varpool_output_debug_info): Remove.
27860         * dwarf2out.c (deferred_locations_struct): New struct
27861         (deferred_locations): New type.
27862         (deferred_locations_list): New static var.
27863         (deffer_location): New function.
27864         (gen_variable_die): Use it.
27865         (decls_for_scope): Output info on local static vars.
27866         (dwarf2out_finish): Process deferred locations.
27867         * varpool.c (varpool_output_debug_info): Remove.
27869 2009-02-27  Jan Hubicka  <jh@suse.cz>
27871         PR debug/39267
27872         * tree.h (TREE_PROTECTED): Fix comment.
27873         (BLOCK_HANDLER_BLOCK): Remove.
27874         (struct tree_block): Remove handler_block add body_block.
27875         (inlined_function_outer_scope_p): New.
27876         (is_body_block): Remove.
27877         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
27878         * dwarf2out.c (is_inlined_entry_point): Remove.
27879         (add_high_low_attributes): Use inlined_function_outer_scope_p.
27880         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
27881         code.
27882         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
27883         * gimplify.c (gimplify_expr): Gimplify body blocks.
27884         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
27885         block with multiple subblocks.
27886         (dump_scope_block): Prettier output; dump more flags and info.
27887         (dump_scope_blocks): New.
27888         (remove_unused_locals): Use dump_scope_blocks.
27889         * tree-flow.h (dump_scope_blocks): Declare.
27890         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
27891         * stmt.c (is_body_block): Remove.
27892         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
27893         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
27895 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
27897         PR middle-end/39308
27898         * graphite.c (graphite_loop_normal_form): Do not call
27899         number_of_iterations_exit from a gcc_assert.
27901 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27903         * config/s390/s390.c (s390_swap_cmp): Look for conditional
27904         jumps if COND is NULL.
27905         (find_cond_jump): New function.
27906         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
27907         * config/s390/s390.md: Remove z10_cobra attribute value.
27909 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
27911         * config/alpha/alpha.h (alpha_expand_mov): Return false if
27912         force_const_mem returns NULL_RTX.
27914 2009-02-26  Jan Hubicka  <jh@suse.cz>
27916         PR debug/39267
27917         * cgraph.h (varpool_output_debug_info): Remove.
27918         * cgraphunit.c (varpool_output_debug_info): Remove.
27919         * dwarf2out.c (deferred_locations_struct): New struct
27920         (deferred_locations): New type.
27921         (deferred_locations_list): New static var.
27922         (deffer_location): New function.
27923         (gen_variable_die): Use it.
27924         (decls_for_scope): Output info on local static vars.
27925         (dwarf2out_finish): Process deferred locations.
27926         * varpool.c (varpool_output_debug_info): Remove.
27928 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
27930         PR rtl-optimization/39241
27931         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
27932         to subreg_offset_representable_p.
27934 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
27936         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
27937         execute function prototype.  Get f and nregs from max_reg_num
27938         and get_insns.  Remove the first backward pass as it's dead,
27939         guard the forward pass by flag_expensive_optimizations.
27940         (rest_of_handle_regmove): Delete.
27941         (pass_regmove): Replace it with regmove_optimize.
27943 2009-02-25  Martin Jambor  <mjambor@suse.cz>
27945         PR tree-optimization/39259
27946         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
27947         calls_alloca function flags.
27948         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
27949         calls are detected.
27951 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
27953         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
27954         flags_set_1_rtx, flags_set_1_set): Delete.
27955         (regmove_optimize): Do not call mark_flags_life_zones.
27957 2009-02-24  Julian Brown  <julian@codesourcery.com>
27959         PR target/35965
27960         * config/arm/arm.c (require_pic_register): Only set
27961         cfun->machine->pic_reg once per function.
27963 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
27965         * doc/invoke.texi (Link Options): Document an easier way to pass
27966         options that take arguments to the GNU linker using -Xlinker and -Wl.
27968 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
27970         PR target/33785
27971         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
27973 2009-02-24  Richard Guenther  <rguenther@suse.de>
27975         PR debug/39285
27976         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
27978 2009-02-24  Richard Guenther  <rguenther@suse.de>
27979             Zdenek Dvorak  <ook@ucw.cz>
27981         PR tree-optimization/39233
27982         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
27983         from converting them to a generic type.
27985 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
27987         PR tree-optimization/39260
27988         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
27989         contains a condition with a real type.
27990         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
27992 2009-02-23  Jason Merrill  <jason@redhat.com>
27994         PR c++/38880
27995         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
27996         narrowing_initializer_constant_valid_p.
27997         (narrowing_initializer_constant_valid_p): Don't return
27998         null_pointer_node for adding a pointer to itself.
28000 2009-02-23  Jan Hubicka  <jh@suse.cz>
28002         PR c/12245
28003         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
28004         resizing.
28006 2009-02-23  Jan Hubicka  <jh@suse.cz>
28008         PR tree-optimization/37709
28009         * tree.c (block_ultimate_origin): Move here from dwarf2out.
28010         * tree.h (block_ultimate_origin): Declare.
28011         * dwarf2out.c (block_ultimate_origin): Move to tree.c
28012         * tree-ssa-live.c (remove_unused_scope_block_p):
28013         Eliminate blocks containig no instructions nor live variables nor
28014         nested blocks.
28015         (dump_scope_block): New function.
28016         (remove_unused_locals): Enable removal of dead blocks by default;
28017         enable dumping at TDF_DETAILS.
28019 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
28021         * config/i386/i386.c (classify_argument): Don't allow COImode
28022         and OImode.
28023         (function_arg_advance_32): Don't allow OImode.
28024         (function_arg_32): Likewise.
28025         (function_value_32): Likewise.
28026         (return_in_memory_32): Likewise.
28027         (function_arg_64): Remove OImode comment.
28029 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
28031         PR target/39261
28032         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
28033         ix86_expand_vector_set for V4DImode in 64bit mode only.
28034         (ix86_expand_vector_init_one_var): Likewise.
28036 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
28038         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
28040 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
28042         PR bootstrap/39257
28043         * loop-iv.c: Revert last change.
28044         * emit-rtl.c: Likewise.
28046 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
28048         PR target/39256
28049         * config/i386/i386.c (type_natural_mode): Remove an extra
28050         space in the warning message.
28051         (function_value_32): Handle 32-byte vector modes.
28052         (return_in_memory_32): Likewise.
28054 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
28056         * loop-iv.c (truncate_value): New function.
28057         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
28058         of lowpart_subreg.
28059         (lowpart_subreg): Move to...
28060         * emit-rtl.c: ...here.
28062 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
28064         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
28065         accidental and undocumented change at revision 140860.
28067 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
28069         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
28070         take gimple_seq * arguments.
28071         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
28072         types_compatible_p langhook.
28074 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
28075             Joseph Myers  <joseph@codesourcery.com>
28077         * config/arm/arm.c (arm_builtin_va_list): New function.
28078         (arm_expand_builtin_va_start): Likewise.
28079         (arm_gimplify_va_arg_expr): Likewise.
28080         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
28081         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
28082         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
28083         (va_list_type): New variable.
28084         (arm_mangle_type): Mangle va_list_type appropriately.
28086 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
28088         PR middle-end/39157
28089         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
28090         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
28091         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
28092         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
28093         parameter to 1000 for -O1 by default.
28094         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
28095         parameter.
28096         * loop-invariant.c: Include params.h.
28097         (move_loop_invariants): Don't call move_single_loop_invariants on
28098         very large loops.
28100 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
28102         * calls.c (emit_library_call_value_1): Use slot_offset instead of
28103         offset when calculating bounds for indexing stack_usage_map.  Fixes
28104         a buffer overflow with certain target setups.
28106 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
28108         PR target/39240
28109         * calls.c (expand_call): Clear try_tail_call if caller and callee
28110         disagree in promotion of function return value.
28112 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
28114         PR target/39175
28115         * c-common.c (c_determine_visibility): If visibility changed and
28116         DECL_RTL has been already set, call make_decl_rtl to update symbol
28117         flags.
28119 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
28121         PR c++/39188
28122         * varasm.c (assemble_variable): Don't check DECL_NAME when
28123         globalizing a variable.
28125 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
28127         PR c/38483
28128         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
28129         expression before any __builtin_trap call.
28130         * c-typeck.c (build_function_call): Convert and check function
28131         arguments before generating a call to a trap.  Evaluate the
28132         function arguments before the trap.
28134 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
28136         PR target/39228
28137         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
28138         (UNSPEC_FXAM_MEM): New unspec.
28139         (fxam<mode>2_i387_with_temp): New insn and split pattern.
28140         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
28141         memory using fxam<mode>2_i387_with_temp to remove excess precision.
28143 2009-02-19  Richard Guenther  <rguenther@suse.de>
28145         PR tree-optimization/39207
28146         PR tree-optimization/39074
28147         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
28148         storedanything_tree): New.
28149         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
28150         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
28151         (build_succ_graph): Add edges from STOREDANYTHING to all
28152         non-direct nodes.
28153         (init_base_vars): Initialize STOREDANYTHING.
28154         (compute_points_to_sets): Free substitution info after
28155         building the succ graph.
28156         (ipa_pta_execute): Likewise.
28158         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
28159         field.
28160         (do_ds_constraint): Do not add to special var or non-pointer
28161         field solutions.
28162         (type_could_have_pointers): Split out from ...
28163         (could_have_pointers): ... here.  For arrays use the element type.
28164         (create_variable_info_for): Initialize may_have_pointers.
28165         (new_var_info): Likewise.
28166         (handle_lhs_call): Make the HEAP variable unknown-sized.
28167         (intra_create_variable_infos): Use a type with pointers for
28168         PARM_NOALIAS, make it unknown-sized.
28170 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
28172         PR target/39224
28173         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
28175 2009-02-18  Jason Merrill  <jason@redhat.com>
28177         PR target/39179
28178         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
28179         value if DECL_EXTERNAL.
28180         * tree-sra.c (sra_walk_gimple_assign): Likewise.
28181         * target.h (gcc_target::binds_local_p): Clarify "module".
28182         * tree.h (TREE_PUBLIC): Clarify "module".
28184 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
28186         PR target/38891
28187         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
28188         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
28190 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
28192         PR target/39082
28193         * c.opt (Wabi): Support C and ObjC.
28194         (Wpsabi): New.
28196         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
28198         * config/i386/i386.c (classify_argument): Warn once about the ABI
28199         change when passing union with long double.
28201         * doc/invoke.texi: Update -Wabi for warning psABI changes.
28203 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
28205         PR c/35447
28206         * c-parser.c (c_parser_compound_statement): Always enter and leave
28207         a scope.
28209 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28211         PR target/34587
28212         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
28214 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
28216         PR tree-optimization/36922
28217         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
28218         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
28219         Likewise.
28221 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
28223         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
28224         to 0 for EABI64.
28226 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
28228         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
28230 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
28232         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
28233         tree sharing.
28235 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
28236             Richard Sandiford  <rdsandiford@googlemail.com>
28238         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
28239         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
28240         (loongson_biadd): ...this.
28242 2009-02-17  Richard Guenther  <rguenther@suse.de>
28244         PR tree-optimization/39202
28245         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
28246         a var make sure to follow existing collapses.
28248 2009-02-17  Richard Guenther  <rguenther@suse.de>
28250         PR middle-end/39214
28251         * langhooks.c (lhd_print_error_function): Check for NULL block.
28253 2009-02-17  Richard Guenther  <rguenther@suse.de>
28255         PR tree-optimization/39204
28256         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
28257         of the PHI arg.
28259 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
28261         * config/soft-fp/double.h: Update from glibc CVS.
28263 2009-02-17  Richard Guenther  <rguenther@suse.de>
28265         PR tree-optimization/39207
28266         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
28267         strict-aliasing warnings for pointers pointing to NULL.
28269 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
28271         PR c/35446
28272         * c-parser.c (c_parser_braced_init): Call pop_init_level when
28273         skipping until next close brace.
28275 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
28277         PR target/37049
28278         * config/i386/i386.c (ix86_expand_push): Set memory alignment
28279         to function argument boundary.
28281 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
28283         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
28284         in the lea_add. Reload eventually constraints it properly.
28285         * config/picochip/constraints.md: Remove the target constraint
28286         "b", since it is not needed anymore.
28288 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
28290         * gthr-dce.h: Uglify function parameter and local variable names.
28291         * gthr-gnat.h: Likewise.
28292         * gthr-mipssde.h: Likewise.
28293         * gthr-nks.h: Likewise.
28294         * gthr-posix95.h: Likewise.
28295         * gthr-posix.h: Likewise.
28296         * gthr-rtems.h: Likewise.
28297         * gthr-single.h: Likewise.
28298         * gthr-solaris.h: Likewise.
28299         * gthr-tpf.h: Likewise.
28300         * gthr-vxworks.h: Likewise.
28301         * gthr-win32.h: Likewise.
28303 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
28305         PR target/39196
28306         * config/i386/i386.md: Restrict the new peephole2 to move
28307         between MMX/SSE registers.
28309 2009-02-15  Richard Guenther  <rguenther@suse.de>
28311         Revert
28312         2009-02-13  Richard Guenther  <rguenther@suse.de>
28314         * configure.ac: Enable LFS.
28315         * configure: Re-generate.
28316         * config.in: Likewise.
28318 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28320         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
28321         spu_srqwbyte, spu_srqwbytebc): Define.
28322         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
28323         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
28324         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
28325         "shrqby_<mode>"): New insn-and-split patterns.
28326         * config/spu/spu.c (expand_builtin_args): Determine and return
28327         number of operands using spu_builtin_description data.
28328         (spu_expand_builtin_1): Use it.
28330 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
28332         PR target/38056
28333         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
28334         TARGET_CONST_GP.
28336 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
28338         PR target/39149
28339         * config/i386/i386.c (override_options): Correct warning
28340         messages for -malign-loops, -malign-jumps and -malign-functions.
28342 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
28344         PR target/39152
28345         * config/i386/i386.md: Restrict the new peephole2 to move
28346         between the general purpose registers.
28348 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
28350         PR target/39162
28351         * config/i386/i386.c (type_natural_mode): Add a new argument.
28352         Return the original mode and warn ABI change if vector size is 32byte.
28353         (function_arg_advance): Updated.
28354         (function_arg): Likewise.
28355         (ix86_function_value): Likewise.
28356         (ix86_return_in_memory): Likewise.
28357         (ix86_sol10_return_in_memory): Likewise.
28358         (ix86_gimplify_va_arg): Likewise.
28359         (function_arg_32): Don't warn ABX ABI change here.
28360         (function_arg_64): Likewise.
28362 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
28364         * loop-iv.c (implies_p): In the final case, test that operands 0
28365         of the two comparisons match.
28367         * config/bfin/bfin.c (find_prev_insn_start): New function.
28368         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
28369         (find_next_insn_start): Move.
28371 2009-02-13  Richard Guenther  <rguenther@suse.de>
28373         * configure.ac: Enable LFS.
28374         * configure: Re-generate.
28375         * config.in: Likewise.
28377 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
28379         PR c/35444
28380         * c-parser.c (c_parser_parms_list_declarator): Discard pending
28381         sizes on syntax error after some arguments have been parsed.
28383 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
28385         * doc/invoke.texi (-fira): Remove.
28387 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
28389         * caller-save.c: Replace regclass.c with reginfo.c in comments.
28390         * recog.c: Likewise.
28391         * rtl.h: Likewise.
28393 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
28395         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
28396         (umul_ppmm): Likewise.
28397         (count_leading_zeros): Likewise.
28398         (count_trailing_zeros): Likewise.
28399         (UMUL_TIME): Likewise.
28401 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
28403         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
28404         soft-fp/t-softfp to tmake_file.
28406         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
28407         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
28408         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
28409         IA64_BUILTIN_INFQ]: New.
28410         (ia64_init_builtins): Initialize __builtin_infq,
28411         __builtin_fabsq and __builtin_copysignq if not HPUX.
28412         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
28413         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
28415         * config/ia64/lib1funcs.asm (__divtf3): Define only if
28416         SHARED is defined.
28417         (__fixtfti): Likewise.
28418         (__fixunstfti): Likewise.
28419         (__floattitf): Likewise.
28421         * config/ia64/libgcc-glibc.ver: New.
28422         * config/ia64/t-fprules-softfp: Likewise.
28423         * config/ia64/sfp-machine.h: Likewise.
28425         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
28426         (LIBGCC2_TF_CEXT): Likewise.
28427         (TF_SIZE): Likewise.
28428         (TARGET_INIT_LIBFUNCS): Likewise.
28430         * config/ia64/t-glibc (SHLINB_MAPFILES):
28431         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
28433 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
28435         * config/i386/i386.c (construct_container): Rewrite processing
28436         BLKmode with X86_64_SSE_CLASS.
28438 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
28440         PR target/39152
28441         * config/i386/i386.md: Replace simplify_replace_rtx with
28442         replace_rtx in the new peephole2.
28444 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
28446         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
28447         loop unrolling do not happen at -O2.
28449 2009-02-12  Michael Matz  <matz@suse.de>
28451         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
28453 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
28455         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
28456         for -g3.
28458 2009-02-12  Ben Elliston  <bje@au.ibm.com>
28460         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
28461         patterns when updating the back chain.  Missed in the 2009-02-10
28462         change.
28464 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
28466         * doc/extend.texi (Decimal Floating Types): Update identifier of
28467         draft TR and list of missing support.
28469 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
28471         PR middle-end/39154
28472         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
28473         bit to variable length decl's flags, add it also to its
28474         pointer replacement variable.
28476 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
28477             Jakub Jelinek  <jakub@redhat.com>
28479         PR target/39118
28480         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
28481         (memory_blockage): New expander.
28482         (*memory_blockage): New insn pattern.
28483         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
28484         instead of general blockage at the end of function prologue when
28485         frame pointer is used to access red zone area.  Do not emit blockage
28486         when profiling, it is emitted in generic code.
28487         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
28488         function epilogue when frame pointer is used to access red zone area.
28490 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
28492         PR target/38824
28493         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
28494         by arithmetic with memory operands.
28495         * config/i386/predicates.md (commutative_operator): New.
28497 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
28499         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
28500         bulleted lists.
28502 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
28504         * alias.h (record_alias_subset): Declare.
28505         * alias.c (record_alias_subset): Make global.
28507 2009-02-10  Nick Clifton  <nickc@redhat.com>
28509         * tree-parloops.c: Change license to GPLv3.
28510         * ipa-struct-reorg.c: Change license to GPLv3.
28511         * ipa-struct-reorg.h: Change license to GPLv3.
28513 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
28515         PR c/39084
28516         * c-decl.c (start_struct): Return NULL on error.
28518 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
28520         PR middle-end/39124
28521         * cfgloopmanip.c (remove_path): Call remove_bbs after
28522         cancel_loop_tree, not before it.
28524         PR target/39139
28525         * function.h (struct function): Add has_local_explicit_reg_vars bit.
28526         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
28527         VAR_DECLs were seen.
28528         * tree-ssa-live.c (remove_unused_locals): Recompute
28529         cfun->has_local_explicit_reg_vars.
28530         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
28531         copies or clearings if cfun->has_local_explicit_reg_vars.
28533 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
28535         PR target/39118
28536         * config/i386/i386.c (expand_prologue): Emit blockage at the end
28537         of function prologue when frame pointer is used to access
28538         red zone area.
28540 2009-02-10  Richard Guenther  <rguenther@suse.de>
28542         PR middle-end/39127
28543         * gimplify.c (gimple_regimplify_operands): Always look if
28544         we need to create a temporary.
28546 2009-02-10  Richard Guenther  <rguenther@suse.de>
28548         PR tree-optimization/39132
28549         * tree-loop-distribution.c (todo): New global var.
28550         (generate_memset_zero): Trigger TODO_rebuild_alias.
28551         (tree_loop_distribution): Return todo.
28553 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
28555         PR target/39119
28556         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
28557         (x86_64_reg_class_name): Removed.
28558         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
28559         first one isn't X86_64_SSE_CLASS or any other ones aren't
28560         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
28561         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
28562         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
28563         and 3 X86_64_SSEUP_CLASS.
28564         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
28565         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
28567 2009-02-10  Ben Elliston  <bje@au.ibm.com>
28569         * config/rs6000/rs6000.md (allocate_stack): Always use an update
28570         form instruction to update the stack back chain word, even if the
28571         user has disabled the generation of update instructions.
28572         (movdi_<mode>_update_stack): New.
28573         (movsi_update_stack): Likewise.
28574         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
28575         always use an update form instruction to update the stack back
28576         chain word.
28578 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
28580         PR middle-end/38953
28581         * graphite.c (if_region_set_false_region): After moving a region in
28582         the false branch of a condition, remove the empty dummy basic block.
28583         (gloog): Remove wrong fix for PR38953.
28585 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28587         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
28588         generation due to implicit sign extension.
28590 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
28592         PR middle-end/38981
28593         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
28594         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
28596 2009-02-09  Richard Guenther  <rguenther@suse.de>
28598         PR middle-end/35202
28599         * convert.c (convert_to_real): Disable (float)fn((double)x)
28600         to fnf(x) conversion if errno differences may occur and
28601         -fmath-errno is set.
28603 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
28605         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
28606         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
28607         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
28609 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
28611         PR c/35434
28612         * c-common.c (handle_alias_attribute): Disallow attribute for
28613         anything not a FUNCTION_DECL or VAR_DECL.
28615 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
28617         PR c/39035
28618         * real.c (do_compare): Special-case compare of zero against
28619         decimal float value.
28621 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
28623         PR c/36432
28624         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
28625         as indicating flexible array members unless the field itself is
28626         being declarared as the incomplete array.
28628 2009-02-06  Jan Hubicka  <jh@suse.cz>
28630         PR tree-optimization/38844
28631         * ipa-inline.c (try_inline): Stop inlining recursion when edge
28632         is already inlined.
28634 2009-02-06  Richard Guenther  <rguenther@suse.de>
28636         PR middle-end/38977
28637         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
28638         fork because we may expand it as __gcov_fork.
28640 2009-02-06  Nick Clifton  <nickc@redhat.com>
28642         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
28644 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
28646         PR tree-optimization/35659
28647         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
28648         vn_phi_eq): Shortcut if hashcode does not match.
28649         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
28650         NULL operands.
28651         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
28652         and avoid iterative_hash_expr.
28653         (FOR_EACH_VALUE_ID_IN_SET): New.
28654         (value_id_compare): Remove.
28655         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
28656         sort expressions by value id.
28658 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
28660         PR target/38991
28661         * config/sh/predicates.md (general_movsrc_operand): Don't check
28662         the subreg of system registers here.
28664 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
28666         PR c++/39106
28667         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
28668         on the copied decl.
28670 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
28672         PR rtl-optimization/39110
28673         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
28674         addresses, not aligned ones.
28676 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
28677             Richard Guenther  <rguenther@suse.de>
28679         PR tree-optimization/39100
28680         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
28681         comment says and add edges.
28683 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
28685         PR c/35435
28686         * c-common.c (handle_tls_model_attribute): Ignore attribute for
28687         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
28689 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
28691         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
28692         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
28693         register_bb_in_sese, new_sese, free_sese): Moved.
28694         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
28695         outermost_loop_in_scop, build_scop_iteration_domain,
28696         expand_scalar_variables_ssa_name, get_vdef_before_scop,
28697         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
28698         Use loop_in_sese_p instead of loop_in_scop_p.
28699         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
28700         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
28701         (scopdet_basic_block_info): Fix bug in scop detection.
28702         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
28703         eq_loop_to_cloog_loop): Remove.
28704         (nb_loops_around_loop_in_scop, nb_loop
28705         ref_nb_loops): Moved here...
28706         * graphite.h (ref_nb_loops): ... from here.
28707         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
28708         (loop_domain_dim, loop_iteration_vector_dim): Remove.
28709         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
28711 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
28712             Hans-Peter Nilsson  <hp@axis.com>
28714         PR rtl-optimization/37889
28715         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
28716         Move offset handling from PLUS to before the switch.  Use new
28717         arguments when considering SYMBOL_REFs too.
28718         (rtx_addr_can_trap_p): Pass dummy offset and size.
28719         (enum may_trap_p_flags): Remove.
28720         (may_trap_p_1): Pass size from MEM_SIZE.
28722         PR rtl-optimization/38921
28723         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
28724         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
28725         * rtlanal.c (may_trap_after_code_motion_p): Delete.
28726         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
28728 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
28730         AVX Programming Reference (January, 2009)
28731         * config/i386/sse.md (*vpclmulqdq): New.
28733 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
28735         PR tree-optimization/38977
28736         PR gcov-profile/38292
28737         * calls.c (special_function_p): Disregard __builtin_ prefix.
28739 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
28741         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
28742         non-indexable addresses even before reload.
28744 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
28746         PR c/29129
28747         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
28748         as having variable size.  Do not give an error for unnamed
28749         parameters with [*] declarators.  Give a warning for type names
28750         with [*] declarators and mark them as variable size.
28751         * c-parser.c (c_parser_sizeof_expression): Do not give an error
28752         for sizeof applied to [*] type names.
28754 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
28756         PR C++/36607
28757         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
28759 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
28761         * gcc.c (process_command): Update copyright notice dates.
28762         * gcov.c (print_version): Likewise.
28763         * gcov-dump.c (print_version): Likewise.
28764         * mips-tfile.c (main): Likewise.
28765         * mips-tdump.c (main): Likewise.
28767 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
28769         PR c/35433
28770         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
28771         for composite type involving a zero-length array type.
28773 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
28775         PR target/35318
28776         * function.c (match_asm_constraints_1): Skip over
28777         initial optional % in the constraint.
28779         PR inline-asm/39059
28780         * c-parser.c (c_parser_postfix_expression): If fixed point is not
28781         supported, don't accept FIXED_CSTs.
28782         * c-decl.c (finish_declspecs): Error if fixed point is not supported
28783         and _Sat is used without _Fract/_Accum.  Set specs->type to
28784         integer_type_node for cts_fract/cts_accum if fixed point is not
28785         supported.
28787 2009-02-02  Catherine Moore  <clm@codesourcery.com>
28789         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
28791 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
28793         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
28794         (ABI_HAS_64BIT_SYMBOLS): Use it.
28795         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
28797 2009-02-02  Paul Brook  <paul@codesourcery.com>
28799         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
28801 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
28803         PR inline-asm/39058
28804         * recog.h (asm_operand_ok): Add constraints argument.
28805         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
28806         recurse on matching constraint.
28807         (check_asm_operands): Pass constraints as 3rd argument to
28808         asm_operand_ok.  Don't look up matching constraint here.
28809         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
28810         to asm_operand_ok.
28812 2009-02-02  Ben Elliston  <bje@au.ibm.com>
28814         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
28815         TARGET_NARROW_VOLATILE_BITFIELD macro names.
28817 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28819         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
28820         information.  Remove some obsolete information.  Reorganize.
28822         * config/pa/fptr.c: Revert license to GPL 2.
28823         * config/pa/milli64.S: Likewise.
28825 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
28827         PR target/38904
28828         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
28829         LIBRARY name in, instead of hard-coding it.
28830         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
28831         extra target make frag to tmake_files according to EH model.
28832         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
28833         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
28834         frags that define makefile variable EH_MODEL appropriately.
28835         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
28836         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
28837         to "-sjlj" according to type of EH configured.
28838         (LIBGCC_SONAME):  Concatenate it to shared library base name.
28839         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
28840         to "_sjlj" according to type of EH configured.
28841         (LIBGCC_SONAME):  Concatenate it to shared library base name.
28842         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
28843         (SHLIB_LINK):  Add missing semicolon to if-else construct.
28844         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
28845         string value of "pe_dll" command-line option.
28846         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
28847         (SHLIB_SONAME):  Use it when overriding t-cygming default.
28848         (SHLIB_IMPLIB):  Override t-cygming default.
28849         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
28850         string value of "pe_dll" command-line option.
28852 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
28854         PR target/38952
28855         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
28856         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
28858 2009-01-31  Richard Guenther  <rguenther@suse.de>
28860         PR tree-optimization/38937
28861         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
28862         computing the transitive closure.
28864 2009-01-30  Richard Guenther  <rguenther@suse.de>
28866         PR tree-optimization/39041
28867         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
28868         Propagate variable indices only if the types match for this stmt.
28870 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
28872         PR target/39013
28873         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
28874         inline but never defined.
28876 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
28878         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
28879         (*insv_h_di_reg_extimm): New insn.
28880         (*insv_l<mode>_reg_extimm): New insn.
28882 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
28884         * config/picochip/picochip.c (flag_conserve_stack): set
28885         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
28886         fconserve-stack. Reduce call-overhead used by inliner.
28888 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
28890         PR/38157
28891         * common.opt (flag_conserve_stack): Initialised to zero.
28893 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
28895         PR/39002
28896         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
28897         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
28898         method.
28900 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
28902         * ira-color.c (allocno_reload_assign): Update comments.
28903         * regmove.c (regmove_optimize): Likewise.
28905         * ra.h: Removed.
28907 2009-01-29  Robert Millan  <rmh@aybabtu.com>
28909         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
28910         * config/i386/kopensolaris-gnu.h: New file.  Undefine
28911         `MD_UNWIND_SUPPORT'.
28912         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
28914 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
28916         PR tree-optimization/39007
28917         * tree-loop-distribution.c (generate_builtin): Use
28918         recompute_dominator to compute the immediate dominator of the
28919         basic block just after the loop.
28921 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
28923         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
28924         (ASM_OUTPUT_DWARF_PCREL): Define.
28926 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
28928         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
28929         * doc/passes.texi: Remove entries about regclass, local-alloc, and
28930         global.  Modify entries about regmove and IRA.
28932         * ra-conflict.c: Remove the file.
28934         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
28936         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
28937         (pass_regclass_init): Rename to pass_reginfo_init.
28939         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
28941         * toplev.h (flag_ira): Remove.
28943         * caller-save.c (setup_save_areas): Remove flag_ira.
28945         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
28947         * global.c: Remove the file.
28949         * opts.c (decode_options): Remove flag_ira.
28951         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
28953         * regmove.c: Modify file description.
28954         (find_use_as_address, try_auto_increment): Define them only if
28955         AUTO_INC_DEC is defined.
28956         (replacement_quality, replace_in_call_usage, fixup_match_1,
28957         stable_and_no_regs_but_for_p): Remove.
28958         (reg_set_in_bb): Make it static.
28959         (regmove_optimize): Remove flag_ira and code which worked for
28960         !flag_ira.
28962         * local-alloc.c: Remove the file.
28964         * common.opt (fira): Remove.
28966         * ira.c: Include except.h.
28967         (eliminable_regset): Move from global.c.
28968         (mark_elimination): Ditto.  Remove flag_ira.
28969         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
28970         equiv_mem_modified, validate_equiv_mem_from_store,
28971         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
28972         contains_replace_regs, memref_referenced_p, memref_used_between_p,
28973         no_equiv, recorded_label_ref): Move from local-alloc.c.
28974         (update_equiv_regs): Ditto.  Make it static.
28975         (print_insn_chain, print_insn_chains): Move it from global.c.
28976         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
28977         (build_insn_chain): Ditto.  Make it static.
28978         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
28979         Rename to init_live_subregs.
28980         (gate_ira): Remove flag_ira.
28982         * regclass.c: Rename reginfo.c.  Change file description.
28983         (FORBIDDEN_INC_DEC_CLASSES): Remove.
28984         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
28985         (init_reg_sets_1): Remove code for evaluation of
28986         reg_class_superclasses and losing_caller_save_reg_set.
28987         (init_regs): Remove init_reg_autoinc.
28988         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
28989         ok_for_base_p_nonstrict): Remove.
28990         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
28991         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
28992         corresponding entries.
28993         (dump_regclass, record_operand_costs, scan_one_insn,
28994         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
28995         record_address_regs, auto_inc_dec_reg_p): Remove.
28996         (gt-regclass.h): Rename to gt-reginfo.h.
28998         * rtl.h (dump_global_regs, retry_global_alloc,
28999         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
29001         * Makefile.in (RA_H): Remove.
29002         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
29003         Rename regclass.o to reginfo.o.
29004         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
29005         gt-reginfo.h.
29006         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
29007         (GTFILES): Rename regclass.c to reginfo.c.
29009         * passes.c (init_optimization_passes): Remove pass_local_alloc and
29010         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
29012         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
29013         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
29014         Remove flag_ira.
29015         (finish_spills): Ditto.  Remove code for !flag_ira.
29017 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
29019         PR middle-end/35854
29020         * doc/invoke.texi (rtl debug options): Complete rewrite.
29021         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
29022         to auto_inc_dec".
29023         * mode-switching.c (pass_mode_switching): Rename pass from
29024         "mode-sw" to "mode_sw".
29025         * except.c (pass_convert_to_eh_ranges): Rename pass from
29026         "eh-ranges" to "eh_ranges".
29027         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
29028         to "subreg1".
29031 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
29032             Alexander Monakov  <amonakov@ispras.ru>
29034         PR middle-end/38857
29035         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
29036         register.
29037         (move_exprs_to_boundary): Change return type and pass through
29038         should_move from move_op.  Relax assert.  Update usage ...
29039         (schedule_expr_on_boundary): ... here.  Use should_move instead of
29040         cant_move.
29041         (move_op_orig_expr_found): Indicate that insn was disconnected from
29042         stream.
29043         (code_motion_process_successors): Do not call after_merge_succs
29044         callback if original expression was not found when traversing any of
29045         the branches.
29046         (code_motion_path_driver): Change return type.  Update prototype.
29047         (move_op): Update comment.  Add a new parameter (should_move).  Update
29048         prototype.  Set *should_move based on indication provided by
29049         move_op_orig_expr_found.
29051 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
29053         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
29054         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
29055         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
29056         * config/rs6000/rs6000.c (rs6000_override_options): Default
29057         avoid-indexed-addresses on for Power6, off for everything else.
29058         (avoiding_indexed_address_p): New function.
29059         (rs6000_legitimize_address): Use it.
29060         (rs6000_legitimate_address): Likewise.
29061         * config/rs6000/rs6000.md (movXX_updateX): Likewise
29063 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
29065         PR tree-optimization/38997
29066         * tree-loop-distribution.c (generate_memset_zero): Use
29067         POINTER_PLUS_EXPR for a pointer addition.
29069 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
29071         * config/s390/s390.md (bswap<mode>2): New pattern added.
29073 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
29075         * config/s390/s390.md (*tls_load_31): Added type attribute.
29077 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
29079         * config/s390/s390.md: Fix a few comments.
29081 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
29083         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
29084         (*tm<mode>_full): Fixed z10prop attribute.
29085         (*tst<mode>_extimm): Fixed z10prop attribute.
29086         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
29087         (*tstqiCCT_cconly): Fixed z10prop attribute.
29088         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
29089         (*movsi_larl): Fixed z10prop attribute.
29090         (*movsi_zarch): Fixed z10prop attribute.
29091         (*movsi_eas): Fixed z10prop attribute.
29092         (*movhi): Fixed z10prop attribute.
29093         (*movqi): Fixed z10prop attribute.
29094         (*movstrictqi): Fixed z10prop attribute.
29095         (*mov<mode>): Fixed z10prop attribute.
29096         (*movcc): Fixed z10prop attribute.
29097         (*sethighpartdi_64): Fixed z10prop attribute.
29098         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
29099         (*negdi2_sign_cc): Fixed z10prop attribute.
29100         (*negdi2_sign): Fixed z10prop attribute.
29101         (*absdi2_sign_cc): Fixed z10prop attribute.
29102         (*absdi2_sign): Fixed z10prop attribute.
29103         (*negabsdi2_sign_cc): Fixed z10prop attribute.
29104         (*negabsdi2_sign): Fixed z10prop attribute.
29105         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
29106         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
29107         (doloop_si64): Fixed z10prop attribute.
29108         (doloop_si31): Fixed z10prop attribute.
29109         (doloop_long): Fixed z10prop attribute.
29110         (indirect_jump): Fixed z10prop attribute.
29111         (nop): Fixed z10prop attribute.
29112         (main_base_64): Fixed z10prop attribute.
29113         (reload_base_64): Fixed z10prop attribute.
29115 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
29117         PR rtl-optimization/38740
29118         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
29119         if !optimize.
29120         * config/mips/mips.c (mips_reorg): Likewise.
29122 2009-01-28  Richard Guenther  <rguenther@suse.de>
29124         PR tree-optimization/38926
29125         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
29126         with the correct value id to a value.
29127         (do_regular_insertion): Use the value number of edoubleprime
29128         for the value number of the expr.
29130         Revert
29131         2008-08-21  Richard Guenther  <rguenther@suse.de>
29133         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
29134         a PHI ask VN if it is already available.
29135         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
29136         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
29138 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
29140         PR middle-end/38934
29141         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
29142         set to varying whenever max has TREE_OVERFLOW set, similarly
29143         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
29145 2009-01-28  Richard Guenther  <rguenther@suse.de>
29147         PR middle-end/38908
29148         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
29149         uninitialized aggregate uses in call arguments.
29151 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
29153         PR tree-optimization/38984
29154         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
29155         the nothing_id variable if -fno-delete-null-pointer-checks.
29157 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
29159         PR target/38988
29160         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
29161         (set_got_offset_rex64): Ditto.
29163 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
29165         PR target/38941
29166         * doc/extend.texi: Improve local variable with asm reg.
29168 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
29170         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
29171         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
29172         was not supplied then set warn_packed_bitfield_compat to the
29173         default value of 1.
29174         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
29175         against 1.
29177 2009-01-27  Richard Guenther  <rguenther@suse.de>
29179         PR tree-optimization/38503
29180         * cfgexpand.c (expand_gimple_basic_block): Ignore
29181         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
29182         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
29183         variables that cannot have TBAA applied.
29184         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
29185         statements.
29187 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
29189         PR middle-end/38969
29190         * calls.c (initialize_argument_information): Do not wrap complex
29191         arguments in SAVE_EXPR.
29193 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
29195         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
29196         (INSTALL_LIBGCC): Revert typo commit.
29198 2009-01-26  Richard Guenther  <rguenther@suse.de>
29200         PR tree-optimization/38745
29201         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
29202         from special handling.
29204 2009-01-26  Richard Guenther  <rguenther@suse.de>
29206         PR tree-optimization/38745
29207         * tree-ssa.c (execute_update_addresses_taken): Do not include
29208         variables that cannot possibly be a register in not_reg_needs.
29209         Do not clear TREE_ADDRESSABLE on vars that may not become
29210         registers.
29211         * tree-ssa.c (update_alias_info_1): Include those in the set
29212         of addressable vars.
29214 2009-01-26  Richard Guenther  <rguenther@suse.de>
29216         PR middle-end/38851
29217         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
29218         * tree-ssa-dse.c: Include langhooks.h
29219         (execute_simple_dse): Remove stores with zero size.
29221 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
29223         PR c/38957
29224         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
29225         as PLUS_EXPR.
29227 2009-01-24  Julian Brown  <julian@codesourcery.com>
29229         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
29230         config/arm/linux-atomic.c.
29231         * config/arm/linux-atomic.c: New.
29233 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
29235         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
29236         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
29237         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
29239 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
29241         PR c/38938
29242         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
29243         properly.
29245 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
29247         PR tree-optimization/38953
29248         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
29249         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
29250         (gloog): Split the exit of the scop when the scop exit is a loop exit.
29251         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
29252         changed the CFG.
29254 2009-01-24  Paul Brook  <paul@codesourcery.com>
29256         * config/arm/neon.md (neon_type): Move to arm.md.
29257         (neon_mov<VSTRUCT>): Add neon_type attribute.
29258         * config/arm/arm.md (neon_type): Move to here.
29259         (conds): Add "unconditioal" and use as default for NEON insns.
29261 2009-01-24  Ben Elliston  <bje@au.ibm.com>
29263         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
29264         void *' warning from -Wc++-compat.
29265         * Makefile.in (dominance.o-warn): Remove.
29267 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
29269         PR tree-optimization/38932
29270         * fold-const.c (fold_unary_ignore_overflow): New.
29271         * tree.h (fold_unary_ignore_overflow): Declare.
29272         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
29273         * tree-ssa-sccvn.c (visit_reference_op_load,
29274         simplify_unary_expression): Likewise.
29276 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
29278         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
29279         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
29280         regardless of their type.
29281         * c-common.c (handle_packed_attribute): Don't ignore packed on
29282         bitfields.
29283         * c.opt (Wpacked-bitfield-compat): New warning option.
29284         * stor-layout.c (place_field): Warn if offset of a field changed.
29285         * doc/extend.texi (packed): Mention the ABI change.
29286         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
29287         (Warning Options): Add it to the list.
29289 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
29291         * c-opts.c (c_common_post_options): Fix a typo in comments.
29293 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
29295         PR middle-end/38615
29296         * gimplify.c (gimplify_init_constructor): Fix promotion of const
29297         variables to static.
29298         * doc/invoke.texi (-fmerge-all-constants): Update description.
29300 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
29302         PR target/38931
29303         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
29304         (*movdi_1_rex64): Use type "mmx" for alternative 5.
29306 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
29308         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
29309         a word boundary.
29310         (LOCAL_ALIGNMENT): Similarly.
29312 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
29313             Joseph Myers  <joseph@codesourcery.com>
29315         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
29316         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
29317         * config/arm/arm-tune.md: Regenerate.
29318         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
29319         -march=iwmmxt2.
29321 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
29323         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
29324         version number to five.
29326 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
29328         PR c++/38930
29329         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
29330         * c-common.c (set_underlying_type): Likewise.
29331         (is_typedef_decl ): Likewise
29332         * tree.h: Likewise
29333         (set_underlying_type): Likewise.
29334         (is_typedef_type): Likewise.
29336 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
29338         PR middle-end/38587
29339         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
29340         crossing setjmps.
29342 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
29344         PR bootstrap/37660
29345         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
29346         (LIBGCC_SPEC):  Don't define.
29347         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
29349 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
29351         PR rtl-optimization/38879
29352         * alias.c (base_alias_check): Unaligned access via AND address can
29353         alias all surrounding object types except those with sizes equal
29354         or wider than the size of unaligned access.
29356 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
29358         PR c++/26693
29359         * c-decl.c (clone_underlying_type): Move this ...
29360         * c-common.c (set_underlying_type): ... here.
29361         Also, make sure the function properly sets TYPE_STUB_DECL() on
29362         the newly created typedef variant type.
29363         (is_typedef_decl ): New entry point.
29364         * tree.h: Added a new member member_types_needing_access_check to
29365         struct tree_decl_non_common.
29366         (set_underlying_type): New entry point.
29367         (is_typedef_type): Likewise.
29369 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
29371         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
29372         Check whether two instructions have memory references that
29373         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
29374         are helper functions for traversing.
29375         * alias.h (insn_alias_sets_confilict_p): New prototypes.
29376         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
29377         not to draw dependency edge for instructions with non-conflicting
29378         alias sets.
29380 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
29382         PR other/38758
29383         * longlong.h: Update copyright years.  Use soft-fp license notice.
29384         Sync __clz_tab declaration with glibc.
29386 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
29388         PR target/30687
29389         * doc/extend.texi (syscall_linkage): New.
29390         (version_id): Modify.
29392 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
29393             Richard Guenther  <rguenther@suse.de>
29395         PR tree-optimization/38747
29396         PR tree-optimization/38748
29397         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
29398         conversion if the base address is an indirect reference and the
29399         aliasing sets could cause issues.
29401 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
29403         * common.opt (fgraphite, fgraphite-identity): Add comment for
29404         explaining why these options are not documented.
29406 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
29408         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
29409         gimple_call_lhs is NULL.
29411 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
29413         PR target/38868
29414         * emit-rtl.c (adjust_address_1): Make sure memref is never
29415         overwritten.
29417 2009-01-20  Ben Elliston  <bje@au.ibm.com>
29419         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
29420         const qualifier from arg parameter. Remove unnecessary cast to char *.
29421         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
29422         const qualifier from arg 2.
29424 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
29426         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
29428 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
29430         PR c/38869
29431         * rtl.h (reinit_regs): New prototype.
29432         * regclass.c: Include ira.h.
29433         (reinit_regs): New.
29434         * Makefile.in (regclass.o): Add ira.h.
29435         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
29437 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
29439         PR target/38736
29440         * c-common.c (handle_aligned_attribute): Use
29441         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
29442         default alignment value.
29444         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
29446         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
29447         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
29449         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
29450         __BIGGEST_ALIGNMENT__.
29452         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
29454 2009-01-18  Richard Guenther  <rguenther@suse.de>
29456         PR tree-optimization/38819
29457         * tree-flow.h (operation_could_trap_helper_p): Declare.
29458         * tree-eh.c (operation_could_trap_helper_p): Export.
29459         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
29460         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
29461         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
29462         are about to insert a possibly trapping instruction and fail
29463         in this case.
29465 2009-01-18  Andreas Schwab  <schwab@suse.de>
29467         * doc/install.texi (Configuration): Remove obsolete paragraph
29468         about use of --with-gnu-ld with --with-gnu-as.
29470 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
29472         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
29473         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
29474         Follow spelling conventions.
29476 2009-01-18  Ben Elliston  <bje@au.ibm.com>
29478         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
29479         C++ warning about implicit conversion from void * to struct
29480         bitmap_head_def *.
29481         (bitmap_obstack_free): Likewise for bitmap_element *.
29482         * Makefile.in (bitmap.o-warn): Remove.
29484 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
29486         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
29488 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
29489             Tobias Grosser  <tobi.grosser@amd.com>
29491         * graphite.c (graphite_trans_scop_block): Do not block single
29492         nested loops.
29494 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
29496         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
29497         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
29498         test with assertion.
29500 2009-01-16  Richard Guenther  <rguenther@suse.de>
29502         PR tree-optimization/38835
29503         PR middle-end/36227
29504         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
29505         and INT + PTR -> (INT)(PTR p+ INT) folding.
29506         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
29508 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
29510         PR target/38554
29511         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
29512         the subreg from a lowpart subreg if it is also casting the value.
29514 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
29515             Tobias Grosser  <tobi.grosser@amd.com>
29517         * graphite.c (compare_prefix_loops): New.
29518         (build_scop_canonical_schedules): Rewritten.
29519         (graphite_transform_loops): Move build_scop_canonical_schedules
29520         after build_scop_iteration_domain.
29522 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
29523             Tobias Grosser  <tobi.grosser@amd.com>
29525         * graphite.c (add_conditions_to_domain): Add the loops to
29526         the dimension of the iteration domain.  Do copy the domain
29527         only when it exists.
29528         (build_scop_conditions_1): Do not call add_conditions_to_domain.
29529         (add_conditions_to_constraints): New.
29530         (can_generate_code_stmt, can_generate_code): Removed.
29531         (gloog): Do not call can_generate_code.
29532         (graphite_transform_loops): Call add_conditions_to_constraints
29533         after building the iteration domain.
29535 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
29537         PR tree-optimization/38789
29538         * tree-ssa-threadedge.c
29539         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
29540         __builtin_constant_p.
29542 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
29544         * dce.c (delete_unmarked_insns): Reversed the order that insns are
29545         examined before deleting them.
29547 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
29549         * function.c (aggregate_value_p): Correctly extract the function
29550         type from CALL_EXPR_FN lookup.
29552 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
29554         * config/picochip/picochip.c (picochip_override_options): Revert
29555         CFI asm flag disable commited previously.
29557 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
29558             Tobias Grosser  <tobi.grosser@amd.com>
29559             Jan Sjodin  <jan.sjodin@amd.com>
29561         * graphite.c (scan_tree_for_params): On substractions negate
29562         all the coefficients of the term.
29563         (clast_to_gcc_expression_red): New.  Handle reduction expressions
29564         of more than two operands.
29565         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
29566         (get_vdef_before_scop): Handle also the case of default definitions.
29568 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
29570         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
29571         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
29572         Also use them when walking CALL_INSN_FUNCTION_USAGE.
29574 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
29575             Joey Ye  <joey.ye@intel.com>
29577         PR middle-end/37843
29578         * cfgexpand.c (expand_stack_alignment): Don't update stack
29579         boundary nor check incoming stack boundary here.
29580         (gimple_expand_cfg): Update stack boundary and check incoming
29581         stack boundary here.
29583 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
29585         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
29587 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
29589         PR rtl-optimization/38245
29590         * calls.c (expand_call): Add stack arguments to
29591         CALL_INSN_FUNCTION_USAGE even for pure calls (when
29592         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
29593         in regs and partially in memory or BLKmode arguments.
29594         (emit_library_call_value_1): Add stack arguments to
29595         CALL_INSN_FUNCTION_USAGE even for pure calls (when
29596         ACCUMULATE_OUTGOING_ARGS).
29597         * dce.c: Include tm_p.h.
29598         (find_call_stack_args): New function.
29599         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
29600         argument.
29601         (mark_insn): Call find_call_stack_args for CALL_Ps.
29602         (prescan_insns_for_dce): Walk insns backwards in bb rather than
29603         forwards.  Allocate and free arg_stores bitmap if needed, pass it
29604         down to deletable_insn_p, don't mark stores set in arg_stores
29605         bitmap, clear the bitmap at the beginning of each bb.
29606         * Makefile.in (dce.o): Depend on $(TM_P_H).
29608 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
29610         PR target/22599
29611         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
29612         to make sure the insn is a conditional test (bug 22599).  Reformat a
29613         few long lines.
29615 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
29617         PR middle-end/38431
29618         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
29619         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
29620         (gloog): Do not call cleanup_tree_cfg.
29621         (graphite_transform_loops): Call cleanup_tree_cfg after all
29622         scops have been code generated.
29624 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
29625         * doc/gty.texi (Invoking the garbage collector): Added new node
29626         and section documenting ggc_collect.
29628 2009-01-14  Richard Guenther  <rguenther@suse.de>
29630         PR tree-optimization/38826
29631         PR middle-end/38477
29632         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
29633         initialization notes only if we actually emitted a warning.
29634         (intra_create_variable_infos): Add constraints for a result decl
29635         that is passed by hidden reference.
29636         (build_pred_graph): Mark all related variables non-direct on
29637         address-taking.
29639 2009-01-14  Nick Clifton  <nickc@redhat.com>
29641         * ira-conflicts.c: Include addresses.h for the definition of
29642         base_reg_class.
29643         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
29644         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
29646 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
29648         PR target/38811
29649         * Makefile.in (ira-lives.o): Add except.h.
29651         * ira-lives.c: Include except.h.
29652         (process_bb_node_lives): Process can_throw_internal.
29654 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
29656         PR rtl-optimization/38774
29657         * combine.c (simplify_set): When undoing cc_use change, don't do
29658         PUT_CODE on the newly created comparison, but instead put back the
29659         old comparison.
29661 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
29663         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
29664         values.  Remove duplicate arm8 entry.
29666 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
29668         PR tree-optimization/38786
29669         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
29670         the SSA_NAME case of expand_scalar_variables_expr.
29671         Set the type of an expression to the type of its assign statement.
29672         (expand_scalar_variables_expr): Also gather the scalar computation
29673         used to index the memory access.  Do not pass loop_p.
29674         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
29675         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
29676         the gimple_stmt_iterator where it inserts new code.
29677         Do not pass loop_p.
29678         (copy_bb_and_scalar_dependences): Do not pass loop_p.
29679         (translate_clast): Update call to copy_bb_and_scalar_dependences.
29681 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
29683         * graphite.h (debug_value): Removed.
29684         * graphite.c (debug_value): Removed.
29686 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
29688         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
29689         ldrd/strd with two 32-bit instructions.
29691 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
29693         * config/arm/arm.c (struct processors): Pass for speed down into
29694         cost helper functions.
29695         (const_ok_for_op): Handle COMPARE and inequality nodes.
29696         (arm_rtx_costs_1): Rewrite.
29697         (arm_size_rtx_costs): Update prototype.
29698         (arm_rtx_costs): Pass speed down to helper functions.
29699         (arm_slowmul_rtx_costs): Rework cost calculations.
29700         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
29701         (arm_9e_rtx_costs): Likewise.
29703 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
29705         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
29706         relocations of local symbols wider than UNITS_PER_WORD are not valid.
29707         (alpha_legitimize_address): Do not split local symbols wider than
29708         UNITS_PER_WORD into HIGH/LO_SUM parts.
29710 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
29712         PR bootstrap/38580
29713         * gcc.c (process_command): Replace call to execvp with calls
29714         to pex_one and exit.
29716 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
29718         PR target/29141
29719         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
29720         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
29721         variant for devices with 3-byte PC.
29722         (__tablejump_elpm__): New.
29724 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
29726         PR c/32041
29727         * c-parser.c (c_parser_postfix_expression): Allow `->' in
29728         offsetof member-designator, handle it as `[0].'.
29730 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29732         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
29733         function when not using named sections on targets with named sections
29734         if branch distance is less than 262132.
29736 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
29738         * combine.c (combine_instructions):  Recompute
29739         optimize_this_for_speed_p  for each BB in the main combine loop.
29741 2009-01-12  Tomas Bily  <tbily@suse.cz>
29743         PR middlend/38385
29744         * tree-loop-distribution.c (prop_phis): New function.
29745         (generate_builtin): Call prop_phis.
29747 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
29749         PR tree-optimization/38807
29750         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
29751         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
29753 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
29755         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
29756         subreg of op0 to the original op0.
29758 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
29760         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
29762 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
29764         PR debug/7055
29765         * mips-tfile.c (parse_def): Fix parsing of def strings
29766         starting with digits.
29768 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
29770         PR target/38695
29771         * config/arm/arm.c (arm_is_long_call_p): Don't call
29772         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
29774 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
29776         * regrename.c (regrename_optimize): Fix dumping.
29777         (find_oldest_value_reg): Preserve REG_POINTER.
29778         (copy_hardreg_forward_1): Likewise.
29780 2009-01-09  Diego Novillo  <dnovillo@google.com>
29782         * gimple.h (struct gimple_statement_base) <uid>: Document
29783         the restrictions on its use.
29784         (gimple_uid): Tidy.
29785         (gimple_set_uid): Tidy.
29787 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
29789         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
29790         zero guard even if align_bytes != 0 and count is smaller than
29791         size_needed.
29793 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
29795         PR rtl-optimization/38495
29796         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
29797         (add_range_and_copies_from_move_list): Print all added ranges.
29798         Add ranges to memory optimized destination.
29800 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
29802         PR target/38686
29803         PR target/38708
29804         * config/i386/i386.c (override_options): Reject
29805         -mstringop-strategy=rep_8byte with -m32.
29806         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
29807         to 1.  Do count comparison against epilogue_size_needed at compile
29808         time even when count_exp was constant forced into register.  For
29809         size_needed don't jump to epilogue, instead just avoid aligning
29810         and invoke the body algorithm.  If need_zero_guard, add zero guard
29811         even if count is non-zero, but smaller than size_needed + number of
29812         bytes that could be stored for alignment.
29813         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
29814         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
29815         but smaller than size_needed + number of bytes that could be stored
29816         for alignment.  Compare size_needed with epilogue_size_needed instead
29817         of desired_align - align, don't adjust size_needed, pass
29818         epilogue_size_needed to the epilogue expanders.
29820         PR c/35742
29821         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
29823 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29825         * pa.c (last_address): Change to unsigned.
29826         (update_total_code_bytes): Change argument to unsigned.  Don't
29827         check if insn addresses are set.
29828         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
29829         addresses are not set.
29830         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
29832 2009-01-09  Nick Clifton  <nickc@redhat.com>
29834         * config/sh/symbian.c: Replace uses of DECL_INLINE with
29835         DECL_DECLARED_INLINE_P.
29837 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
29839         PR middle-end/38347
29840         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
29841         GET_MODE (op0) in operand_subword_force calls.
29843         PR middle-end/38771
29844         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
29845         fold_convert arg0 operands to TREE_TYPE (op0) first.
29847 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
29849         * params.def (ira-max-conflict-table-size): Decrease default value
29850         to 1000.
29852 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
29854         PR tree-optimization/37031
29855         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
29856         on parameter_set.
29857         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
29858         allocate it using gc instead of heap, use VEC_quick_push instead of
29859         VEC_safe_push.
29860         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
29861         instead of heap, use VEC_quick_push instead of VEC_safe_push.
29862         * tree-data-ref.h (struct access_matrix): Change matrix to gc
29863         allocated vector from heap allocated.
29864         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
29865         * tree-loop-linear.c (linear_transform_loops): Allocate nest
29866         vector only after perfect_loop_nest_depth call.
29868 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
29869             Jan Sjodin  <jan.sjodin@amd.com>
29871         PR tree-optimization/38559
29872         * graphite.c (debug_value, copy_constraint,
29873         swap_constraint_variables, scale_constraint_variable, ): New.
29874         (get_lower_bound, get_upper_bound): Removed.
29875         (graphite_trans_bb_strip_mine): Clean up this code that works
29876         only for constant number of iterations.  Fully copy upper and
29877         lower bound constraints, not only the constant part of them.
29878         * graphite.h (debug_value): Declared.
29880 2009-01-08  Ira Rosen  <irar@il.ibm.com>
29882         PR tree-optimization/37194
29883         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
29884         Don't add the cost of cost model guard in prologue to scalar
29885         outside cost in case of known number of iterations.
29887 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
29888             Alan Modra  <amodra@bigpond.net.au>
29890         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
29891         non-word-aligned REG+CONST addressing.
29893 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
29895         PR target/38706
29896         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
29897         free_after_compilation when outputting a thunk.
29898         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
29899         Do not call free_after_compilation here.
29901 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
29903         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
29904         (ix86_valid_target_attribute_inner_p): Ditto.
29906 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
29908         PR tree-optimization/38492
29909         PR tree-optimization/38498
29910         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
29911         * tree-chrec.h (scev_is_linear_expression): Declared.
29912         * graphite.c (graphite_cannot_represent_loop_niter): New.
29913         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
29914         (graphite_loop_normal_form): Use gcc_assert.
29915         (scan_tree_for_params): Use CASE_CONVERT.
29916         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
29917         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
29918         Use gcc_assert.  Discard scops that contain unhandled cases.
29919         (build_scop_conditions): Return a boolean status for unhandled cases.
29920         (strip_mine_profitable_p): Print the loop number, not its depth.
29921         (is_interchange_valid): Pass the depth of the loop nest, don't
29922         recompute it wrongly.
29923         (graphite_trans_bb_block): Same.
29924         (graphite_trans_bb_block): Print tentative of loop blocking.
29925         (graphite_trans_scop_block): Do not print that the loop has been
29926         blocked.
29927         (graphite_transform_loops): Do not handle scops that contain condition
29928         scalar phi nodes.
29930 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
29932         AVX Programming Reference (December, 2008)
29933         * config/i386/avxintrin.h (_mm256_stream_si256): New.
29934         (_mm256_stream_pd): Likewise.
29935         (_mm256_stream_ps): Likewise.
29937         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
29938         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
29939         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
29940         (bdesc_special_args): Add __builtin_ia32_movntdq256,
29941         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
29942         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
29943         (ix86_expand_special_args_builtin): Likewise.
29945         * config/i386/sse.md (AVXMODEDI): New.
29946         (avx_movnt<mode>): Likewise.
29947         (avx_movnt<mode>): Likewise.
29948         (<sse>_movnt<mode>): Remove AVX support.
29949         (sse2_movntv2di): Likewise.
29951 2009-01-07  Richard Guenther  <rguenther@suse.de>
29953         PR middle-end/38751
29954         * fold-const.c (extract_muldiv): Remove obsolete comment.
29955         (fold_plusminus_mult_expr): Undo MINUS_EXPR
29956         to PLUS_EXPR canonicalization for the canonicalization.
29958 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
29960         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
29961         hosted cross-compilers generating less efficient code.
29963 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
29965         * function.h (rtl_data): Add a dbr_scheduled_p field.
29966         * reorg.c (dbr_schedule): Set it.
29967         (gate_handle_delay_slots): Check it.
29968         * config/mips/mips.c (mips_base_delayed_branch): Delete.
29969         (mips_reorg): Check flag_delayed_branch instead of
29970         mips_base_delayed_branch.
29971         (mips_override_options): Don't set mips_base_delayed_branch
29972         or flag_delayed_branch.
29974 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
29976         PR rtl-optimization/38426.
29977         * ira.c (ira): Set current_function_is_leaf earlier.
29979 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
29981         PR rtl-optimization/38722
29982         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
29983         too early, only set a flag and modify after last possible
29984         undo_all point.
29986 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
29988         PR c/34252
29989         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
29990         * real.c (decimal_single_format): Correct values of emin and emax.
29991         (decimal_double_format): Ditto.
29992         (decimal_quad_format): Ditto.
29993         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
29994         computation of DECnn_MIN and DECnn_MAX for corrected values of
29995         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
29996         __DECnn_MIN__, and adjust its computation for the corrected value
29997         of emin.
29999 2009-01-06  Jan Hubicka  <jh@suse.cz>
30001         PR target/38744
30002         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
30004 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
30006         * doc/contrib.texi (Contributors): Slightly adjust the end note.
30007         Add Robert Clark to the list of testers.
30009 2009-01-06  Jan Hubicka  <jh@suse.cz>
30010             Kai Tietz  <kai.tietz@onevision.com>
30012         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
30013         * config/i386/i386.c (ix86_expand_call): Add clobbers.
30015 2009-01-06  Jan Hubicka  <jh@suse.cz>
30016             Kai Tietz  <kai.tietz@onevision.com>
30018         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
30019         for w64 ABI.
30020         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
30021         (ix86_nsaved_regs): Count only general purpose regs.
30022         (ix86_nsaved_sseregs): New.
30023         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
30024         to 16 for w64; compute padding and size of sse reg save area.
30025         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
30026         general purpose regs.
30027         (ix86_emit_save_sse_regs_using_mov): New.
30028         (ix86_expand_prologue): Save SSE regs if needed.
30029         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
30030         (ix86_emit_restore_sse_regs_using_mov): New.
30031         (ix86_expand_epilogue): Save SSE regs if needed.
30033 2009-01-06  Jan Hubicka  <jh@suse.cz>
30034             Kai Tietz  <kai.tietz@onevision.com>
30036         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
30037         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
30038         functions when accumulate outgoing args is off.
30040 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
30042         PR bootstrap/38742
30043         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
30044         before using pseudos_have_intersected_live_ranges_p.
30046         * ira-int.h (ira_assert): Always define.
30048 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
30050         AVX Programming Reference (December, 2008)
30051         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
30052         (_mm256_permute2_pd): Likewise.
30053         (_mm_permute2_ps): Likewise.
30054         (_mm256_permute2_ps): Likewise.
30055         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
30056         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
30058         * config/i386/i386.c (ix86_builtins): Remove
30059         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
30060         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
30061         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
30062         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
30063         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
30064         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
30065         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
30066         __builtin_ia32_vpermil2ps256.
30067         (ix86_init_mmx_sse_builtins): Updated.
30068         (ix86_expand_args_builtin): Likewise.
30070 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30072         * pa.c (output_call): Relocate non-jump insns in the delay slot of
30073         long absolute calls when generating PA 2.0 code.
30075 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
30077         PR rtl-optimization/38583
30078         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
30080         * params.def (ira-max-conflict-table-size): New.
30082         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
30084         * ira.h (ira_conflicts_p): New external definition.
30086         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
30087         table.  Report this.  Return result of building.
30088         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
30089         building conflict table.
30091         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
30092         (ira_color): Use ira_conflicts_p.
30094         * global.c: Include ira.h.
30095         (pseudo_for_reload_consideration_p, build_insn_chain): Use
30096         ira_conflicts_p.
30098         * Makefile.in (global.o): Add ira.h.
30100         * ira-build.c (mark_all_loops_for_removal,
30101         propagate_some_info_from_allocno): New.
30102         (remove_unnecessary_allocnos): Call
30103         propagate_some_info_from_allocno.
30104         (remove_low_level_allocnos): New.
30105         (remove_unnecessary_regions): Add parameter.  Call
30106         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
30107         parameter to remove_unnecessary_regions.
30108         (ira_build): Remove all regions but root if the conflict table was
30109         not built.  Update conflict hard regs for allocnos crossing calls.
30111         * ira.c (ira_conflicts_p): New global.
30112         (ira): Define and use ira_conflicts_p.
30114         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
30115         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
30116         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
30118 2009-01-06  Ben Elliston  <bje@au.ibm.com>
30120         * gengtype-lex.l (YY_NO_INPUT): Define.
30122 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
30124         PR c/34911
30125         * c-common.c (handle_vector_size_attribute): Also reject
30126         BOOLEAN_TYPE types.
30128 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
30130         PR tree-optimization/38492
30131         * graphite.c (rename_map_elt, debug_rename_elt,
30132         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
30133         rename_map_elt_info, eq_rename_map_elts,
30134         get_new_name_from_old_name, bb_in_sese_p): Moved around.
30135         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
30136         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
30137         (sese_build_livein_liveouts): New.
30138         (new_sese, free_sese): New.
30139         (new_scop): Call new_sese.
30140         (free_scop): Call free_sese.
30141         (rename_variables_from_edge, rename_phis_end_scop): Removed.
30142         (register_old_new_names): Renamed register_old_and_new_names.
30143         (register_scop_liveout_renames, add_loop_exit_phis,
30144         insert_loop_close_phis, struct igp,
30145         default_liveout_before_guard, add_guard_exit_phis,
30146         insert_guard_phis, copy_renames): New.
30147         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
30148         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
30149         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
30150         (scop_adjust_phis_for_liveouts): New.
30151         (gloog): Call scop_adjust_phis_for_liveouts.
30153         * graphite.h (struct sese): Documented.  Added fields liveout,
30154         num_ver and livein.
30155         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
30156         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
30157         (struct scop): Added field liveout_renames.
30158         (SCOP_LIVEOUT_RENAMES): New.
30160 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
30162         PR tree-optimization/38510
30163         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
30164         (translate_clast): Call recompute_all_dominators before
30165         graphite_verify.
30166         (gloog): Call recompute_all_dominators before graphite_verify.
30168 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
30169             Jan Sjodin  <jan.sjodin@amd.com>
30171         PR tree-optimization/38500
30172         * graphite.c (create_sese_edges): Call fix_loop_structure after
30173         splitting blocks.
30175 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
30177         * config.gcc: Add m32r*-*-rtems*.
30178         * config/m32r/rtems.h: New file.
30180 2009-01-05  Ben Elliston  <bje@au.ibm.com>
30182         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
30183         (.po.pox): Likewise.
30184         (po/gcc.pot): Likewise.
30186 2009-01-04  David S. Miller  <davem@davemloft.net>
30188         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
30189         (STARTING_FRAME_OFFSET): Always set to zero.
30191 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
30193         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
30194         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
30195         fixed-point types, and vectors of the same.
30197 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
30199         * config/mips/sync.md (*mb_barrier): Rename to...
30200         (*memory_barrier): ...this.
30202 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
30204         * doc/extend.texi (Function Attributes): Move @cindex after @item
30205         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
30206         and put in alphabetical order. Fix 'target' name and put in order.
30207         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
30208         typos.
30210 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
30212         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
30213         (memory_barrier): Expand as unspec instead of unspec_volatile.
30214         Remove mem:BLK from insn operands.  Use Pmode scratch register.
30215         (*memory_barrier): Define as unspec instead of unspec_volatile.
30216         Use (match_dup 0) as input operand.
30218         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
30219         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
30220         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
30221         scratch register.  Remove operand 1.
30222         (*stbar): Define as unspec instead of unspec_volatile.
30223         Use (match_dup 0) as input operand, remove (const_int 8).
30224         (*membar): Define as unspec instead of unspec_volatile.
30225         Use (match_dup 0) as input operand, remove input operand 2.
30227         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
30228         (memory_barrier): Expand as unspec instead of unspec_volatile.
30229         Remove mem:BLK from insn operands.  Use Pmode scratch register.
30230         (*memory_barrier): Define as unspec instead of unspec_volatile.
30231         Use (match_dup 0) as input operand.
30233         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
30234         Remove mem:BLK from insn operands.  Use Pmode scratch register.
30235         Set volatile flag on operand 0.
30236         (*memory_barrier): New insn pattern.
30238         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
30239         insn operands.
30240         (*memory_barrier): Use (match_dup 0) as input operand.
30242         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
30243         Remove mem:BLK from insn operands.  Use Pmode scratch register.
30244         Set volatile flag on operand 0.
30245         (*mb_internal): New insn pattern.
30247         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
30249 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
30251         PR middle-end/38586
30252         * function.c (struct temp_slot): Move to the section of the file
30253         that deals with temp slots.  Remove field 'address'.
30254         (temp_slot_address_table): New hash table of address -> temp slot.
30255         (struct temp_slot_address_entry): New struct, items for the table.
30256         (temp_slot_address_compute_hash, temp_slot_address_hash,
30257         temp_slot_address_eq, insert_temp_slot_address): Support functions
30258         for the new table.
30259         (find_temp_slot_from_address): Rewrite to use the new hash table.
30260         (remove_unused_temp_slot_addresses): Remove addresses of temp
30261         slots that have been made available.
30262         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
30263         worker function for remove_unused_temp_slot_addresses.
30264         (assign_stack_temp_for_type): Don't clear the temp slot address list.
30265         Add the temp slot address to the address -> temp slot map.
30266         (update_temp_slot_address): Update via insert_temp_slot_address.
30267         (free_temp_slots): Call remove_unused_temp_slot_addresses.
30268         (pop_temp_slots): Likewise.
30269         (init_temp_slots): Allocate the address -> temp slot map, or empty
30270         the map if it is already allocated.
30271         (prepare_function_start): Initialize temp slot processing.
30273 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
30275         PR middle-end/38584
30276         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
30277         Calculate the size of all stack vars assuming no packing of stack
30278         vars will happen, replacing a quadratic algorithm with a linear one.
30280 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
30282         PR target/38707
30283         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
30284         can't be used.
30286 2009-01-03  Diego Novillo  <dnovillo@google.com>
30288         * doc/contrib.texi: Update contributions.
30290 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
30292         PR c++/38705
30293         * builtins.c (fold_builtin_memory_op): Give up if either operand
30294         is volatile.  Set srctype or desttype to non-qualified version
30295         of the other type.
30297         PR c/38700
30298         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
30299         and FUNCTION_DECLs.
30301 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
30303         PR rtl-optimization/35805
30304         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
30305         problem if fast dce is able to remove any instructions.
30306         * dce.c (dce_process_block): Fix dump message.
30308 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
30310         PR 33649
30311         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
30313 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
30315         PR middle-end/38690
30316         * tree-flow.h (op_code_prio, op_prio): New prototypes.
30317         * tree-pretty-print.c (op_code_prio): New function.
30318         (op_prio): No longer static.  Use op_code_prio.
30319         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
30320         Use op_prio and op_code_prio to determine if () should be
30321         printed around operand(s) or not.
30323         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
30324         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
30325         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
30326         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
30327         pp_character instead of pp_string for single letter printing.
30329 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
30331         * doc/extend.texi: Fix '#pragma GCC option' typo.
30333 2009-01-02  Richard Guenther  <rguenther@suse.de>
30335         * doc/install.texi (--enable-checking): Mention different
30336         default for stage1.
30337         (--enable-stage1-checking): Document.
30339 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
30341         PR middle-end/30142
30342         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
30343         case to be an error.
30345 2009-01-02  Ben Elliston  <bje@au.ibm.com>
30347         * config/fp-bit.h (pack_d): Constify argument.
30348         * config/fp-bit.c (makenan): Constify return type. Remove casts.
30349         (isnan): Constify argument.
30350         (isinf): Likewise.
30351         (iszero): Likewise.
30352         (pack_d): Likewise.
30353         (_fpadd_parts): Constify return type.
30354         (_fpmul_parts): Likewise.
30355         (_fpdiv_parts): Likewise.
30357 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
30359         PR c/36489
30360         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
30361         warn about overwriting initializer with side-effects or
30362         -Woverride-init if !IMPLICIT.
30363         (output_init_element): Likewise.  Pass IMPLICIT down to
30364         add_pending_init.
30365         (process_init_element): Add IMPLICIT argument.  Pass it down
30366         to output_init_element.
30367         (push_init_element, pop_init_level, set_designator): Adjust
30368         process_init_element callers.
30369         (set_nonincremental_init, set_nonincremental_init_from_string):
30370         Adjust add_pending_init callers.
30371         (output_pending_init_elements): Adjust output_init_element callers.
30372         * c-tree.h (process_init_element): Adjust prototype.
30373         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
30374         process_init_element callers.
30377 Copyright (C) 2009 Free Software Foundation, Inc.
30379 Copying and distribution of this file, with or without modification,
30380 are permitted in any medium without royalty provided the copyright
30381 notice and this notice are preserved.