OSDN Git Service

2008-10-13 Kai Tietz <kai.tietz@onevision.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-10-13  Kai Tietz  <kai.tietz@onevision.com>
2
3         Fix PR/25502
4         * c-format.c (convert_format_name_to_system_name): Use
5         TARGET_OVERRIDES_FORMAT_INIT.
6         * config.gcc (extra_options): Add for mingw targets mingw.opt.
7         * config/i386/mingw.opt: New.
8         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_INIT): New.
9         * config/i386/msformat-c.c (TARGET_OVERRIDES_FORMAT_INIT): New.
10         (ms_printf_length_specs): Removed const specifier.
11         * doc/tm.texi (TARGET_OVERRIDES_FORMAT_INIT): New.
12         * doc/invoke.texi (Wno-pedantic-ms-format): New.
13
14 2008-10-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15
16         * builtins.c: Remove MPFR_VERSION_NUM(2,3,0) conditionals.
17         * doc/install.texi: Bump recommended MPFR to 2.3.2.
18
19 2008-10-12  Kenneth Zadeck <zadeck@naturalbridge.com>
20
21         PR middle-end/37808
22         * df-scan.c (df_ref_change_reg_with_loc_1): Added test to make
23         sure that ref has valid bb.
24         
25 2008-10-12  Richard Henderson  <rth@redhat.com>
26
27         PR middle-end/37447
28         * Makefile.in (reload1.o): Depend on EMIT_RTL_H.
29         * alias.c (value_addr_p, stack_addr_p): Remove.
30         (nonoverlapping_memrefs_p): Remove IRA special case.
31         * emit-rtl.c (get_spill_slot_decl, set_mem_attrs_for_spill): New.
32         * emit-rtl.h (set_mem_attrs_for_spill): Declare.
33         * reload1.c (alter_reg): Use it.
34
35 2008-10-12  Uros Bizjak  <ubizjak@gmail.com>
36
37         * config/i386/driver-i386.c (detect_caches_cpuid2): Use array
38         of registers instead of eax, ebx, ecx and edx.  Use for loop
39         and check register for non-zero value before the call
40         to decode_caches_intel.
41
42 2008-10-11  Kenneth Zadeck <zadeck@naturalbridge.com>
43
44         PR rtl-optimization/37448
45         * df.h: (df_ref_class): New enum.
46         (DF_REF_TYPE_NAMES, df_ref_extract): Removed.
47         (struct df_ref): Replaced with union df_ref_d.
48         (df_base_ref, df_artificial_ref, df_regular_ref, df_extract_ref):
49         New members of df_ref_d union.
50         (DF_REF_REAL_REG, DF_REF_REGNO, DF_REF_REAL_LOC, DF_REF_REG,
51         DF_REF_LOC, DF_REF_BB, DF_REF_INSN_INFO, DF_REF_INSN,
52         DF_REF_CLASS, DF_REF_TYPE, DF_REF_CHAIN, DF_REF_ID, DF_REF_FLAGS,
53         DF_REF_ORDER, DF_REF_IS_ARTIFICIAL, DF_REF_NEXT_REG,
54         DF_REF_PREV_REG, DF_REF_EXTRACT_WIDTH, DF_REF_EXTRACT_OFFSET,
55         DF_REF_EXTRACT_MODE): Replaced definition to access union
56         df_ref_d.
57         (DF_MWS_REG_DEF_P, DF_MWS_REG_USE_P, DF_MWS_TYPE): New macros.
58         (df_scan_bb_info, df_bb_regno_first_def_find,
59         df_bb_regno_last_def_find, df_find_def, df_find_use,
60         df_refs_chain_dump, df_regs_chain_dump, df_ref_debug,
61         debug_df_ref, df_chain_create, df_chain_unlink, df_chain_copy,
62         df_ref_create, df_ref_remove, df_compute_accessed_bytes,
63         df_get_artificial_defs, df_get_artificial_uses, union_defs)
64         Replaced struct df_ref * with df_ref.
65         * df-scan.c (df_collection_rec, df_null_ref_rec,
66         df_ref_chain_delete_du_chain, df_ref_chain_delete, df_install_ref,
67         df_grow_ref_info, df_ref_create, df_reg_chain_unlink,
68         df_ref_compress_rec, df_ref_remove, df_ref_chain_delete_du_chain,
69         df_ref_chain_delete, df_free_collection_rec, df_insn_rescan,
70         df_reorganize_refs_by_reg_by_reg,
71         df_reorganize_refs_by_reg_by_insn, df_reorganize_refs_by_reg,
72         df_ref_change_reg_with_loc_1, df_notes_rescan, df_swap_refs,
73         df_sort_and_compress_refs, df_install_ref, df_install_refs,
74         df_ref_record, df_get_conditional_uses, df_get_call_refs,
75         df_bb_refs_record, df_exit_block_uses_collect,
76         df_record_exit_block_uses, df_reg_chain_mark,
77         df_reg_chain_verify_unmarked, df_refs_verify): Replaced struct
78         df_ref * with df_ref.
79         (df_ref_record, df_uses_record, df_ref_create_structure): Added
80         df_ref_class parameter.
81         (df_scan_problem_data): Added new pools for different types of
82         refs.
83         (df_scan_free_internal, df_scan_alloc, df_free_ref,
84         df_ref_create_structure): Processed new ref pools.
85         (df_scan_start_dump): Added counts of refs and insns.
86         (df_ref_create, df_notes_rescan, df_def_record_1, df_uses_record,
87         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
88         df_entry_block_defs_collect, df_exit_block_uses_collect): Added
89         code to pass df_ref_class down to ref creation functions.
90         (df_reg_chain_unlink, df_ref_remove, df_ref_change_reg_with_loc_1,
91         df_reg_chain_mark): Use macros to hide references to df_refs.
92         (df_ref_chain_change_bb): Removed.
93         (df_insn_change_bb): Remove calls to df_ref_insn_change_bb.
94         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
95         Enhanced to understand df_ref union structure.
96         * fwprop.c (local_ref_killed_between_p, use_killed_between,
97         all_uses_available_at, update_df, try_fwprop_subst,
98         forward_propagate_subreg, forward_propagate_and_simplify,
99         forward_propagate_into, fwprop, fwprop_addr): Replaced struct
100         df_ref * with df_ref.
101         (use_killed_between, all_uses_available_at): Use macros to hide
102         references to df_refs.
103         * regstat.c (regstat_bb_compute_ri,
104         regstat_bb_compute_calls_crossed): Replaced struct df_ref * with
105         df_ref.
106         * see.c (see_handle_relevant_defs, see_handle_relevant_uses,
107         see_handle_relevant_refs, see_analyze_one_def,
108         see_update_relevancy, see_propagate_extensions_to_uses): Replaced
109         struct df_ref * with df_ref.
110         * ra-conflict.c (record_one_conflict, clear_reg_in_live,
111         global_conflicts): Replaced struct df_ref * with df_ref.
112         * ddg.c (create_ddg_dep_from_intra_loop_link,
113         add_cross_iteration_register_deps, build_inter_loop_deps):
114         Replaced struct df_ref * with df_ref.
115         (create_ddg_dep_from_intra_loop_link,
116         add_cross_iteration_register_deps): Use macros to hide references
117         to df_refs.
118         * auto-inc-dec.c (find_inc, merge_in_block): Replaced struct
119         df_ref * with df_ref.
120         * df-core.c (df_bb_regno_first_def_find,
121         df_bb_regno_last_def_find, df_find_def, df_find_use,
122         df_refs_chain_dump, df_regs_chain_dump, df_ref_debug,
123         debug_df_ref): Replaced struct df_ref * with df_ref.
124         (df_mws_dump, df_ref_debug): Use macros to hide references to df_refs.
125         * cse.c (cse_extended_basic_block): Replaced struct df_ref * with
126         df_ref.
127         * web.c (union_defs, entry_register, replace_ref, web_main):
128         Replaced struct df_ref * with df_ref.
129         (union_defs, replace_ref): Use macros to hide references to df_refs.
130         * global.c (compute_regs_asm_clobbered, build_insn_chain):
131         Replaced struct df_ref * with df_ref.
132         * ifcvt.c (dead_or_predicable): Replaced struct df_ref * with df_ref.
133         * sel-sched-ir.c (maybe_downgrade_id_to_use, setup_id_reg_sets, ):
134         Replaced struct df_ref * with df_ref.
135         * ira-lives.c (mark_ref_live, def_conflicts_with_inputs_p,
136         mark_ref_dead, process_bb_node_lives): Replaced struct df_ref *
137         with df_ref.
138         * local-alloc.c (block_alloc): Replaced struct df_ref * with df_ref.
139         * df-byte-scan.c (df_compute_accessed_bytes_extract,
140         df_compute_accessed_bytes_strict_low_part,
141         df_compute_accessed_bytes_subreg, df_compute_accessed_bytes):
142         Replaced struct df_ref * with df_ref.
143         (df_compute_accessed_bytes): Use macros to hide references to df_refs.
144         * init-regs.c (initialize_uninitialized_regs): Replaced struct
145         df_ref * with df_ref.
146         * loop-invariant.c (invariant_for_use, hash_invariant_expr_1,
147         check_dependency, check_dependencies, record_uses): Replaced
148         struct df_ref * with df_ref.
149         (invariant_for_use, check_dependency): Use macros to hide
150         references to df_refs.
151         * loop-iv.c (iv_analysis_loop_init, iv_get_reaching_def,
152         get_biv_step_1, get_biv_step, record_iv, iv_analyze_def,
153         iv_analyze, biv_p): Replaced struct df_ref * with df_ref.
154         (iv_analysis_loop_init, iv_get_reaching_def): Use macros to hide
155         references to df_refs.
156         * ira.c (compute_regs_asm_clobbered): Replaced struct df_ref *
157         with df_ref.
158         * combine.c (create_log_links): Replaced struct df_ref * with df_ref.
159         * df-problems.c (df_rd_bb_local_compute_process_def,
160         df_lr_bb_local_compute, df_live_bb_local_compute, df_chain_create,
161         df_chain_unlink_1, df_chain_unlink, df_chain_copy,
162         df_chain_remove_problem, df_chain_create_bb_process_use,
163         df_chain_create_bb, df_chain_top_dump, df_chain_bottom_dump,
164         df_byte_lr_check_regs, df_byte_lr_bb_local_compute,
165         df_byte_lr_simulate_defs, df_byte_lr_simulate_uses,
166         df_byte_lr_simulate_artificial_refs_at_top,
167         df_byte_lr_simulate_artificial_refs_at_end, df_create_unused_note,
168         df_note_bb_compute, df_note_add_problem, df_simulate_defs,
169         df_simulate_uses, df_simulate_artificial_refs_at_end,
170         df_simulate_artificial_refs_at_top): Replaced struct df_ref * with
171         df_ref.
172         (df_chain_dump): Use macros to hide references to df_refs.
173         * config/mips/mips.c (r10k_simplify_address): Replaced struct
174         df_ref * with df_ref.
175         * dce.c (mark_nonreg_stores, delete_corresponding_reg_eq_notes,
176         mark_artificial_uses, mark_reg_dependencies,
177         byte_dce_process_block): Replaced struct df_ref * with df_ref.
178
179 2008-10-11  Eric Botcazou  <ebotcazou@adacore.com>
180
181         * tree.h (contains_packed_reference): Mention ARRAY_RANGE_REF in
182         head comment.
183         (array_ref_element_size): Likewise.
184         (array_ref_low_bound): Likewise.
185         (array_ref_up_bound): Likewise.
186         * expr.c (contains_packed_reference): Likewise.
187         (array_ref_element_size): Likewise.
188         (array_ref_low_bound): Likewise.
189         (array_ref_up_bound): Likewise.
190         * tree-ssa-loop-ivopts.c (idx_contains_abnormal_ssa_name_p): Deal
191         with ARRAY_RANGE_REF.
192         (idx_find_step): Likewise.
193         (idx_record_use): Likewise.
194         (strip_offset_1): Likewise.
195         (idx_remove_ssa_names): Likewise.
196
197 2008-10-11  Uros Bizjak  <ubizjak@gmail.com>
198             Andi Kleen  <ak@linux.intel.com>
199
200         * config/i386/cpuid.h (__cpuid_count): New defines.
201         * config/i386/driver-i386.c (struct cache_desc): New structure.
202         (describe_cache): Use struct cache_desc to pass cache descriptions.
203         (detect_l2_cache): Ditto. Rename from decode_l2_cache.
204         (detect_caches_amd): Use struct cache_desc to describe caches.
205         (decode_caches_intel): Use struct cache_desc to pass cache
206         descriptions.  Update descriptions to match latest (rev -032,
207         December 2007) CPUID documentation.  Do not check valid bit here.
208         Check for Xeon MP value 0x49 problems.
209         (detect_caches_cpuid2): New function, split from detect_caches_intel.
210         Check valid bit before calling decode_caches_intel.  Detect number
211         of times to repeat CPUID instruction.
212         (detect_caches_cpuid4): New function.
213         (detect_caches_intel): Depending on max_level, call
214         detect_caches_cpuid2 or detect_caches_cpuid4.  Call detect_l2_cache
215         only when other methods fail to provide valid L2 cache description.
216
217 2008-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
218
219         PR middle-end/37608
220         * pa.md (call, call_value): Generate an rtx for register r4 and pass
221         it to PIC call patterns.
222         (call_symref_pic): Revise pattern to expose PIC register save.  Remove
223         code generation and attributes from pattern.  Change peephole2 to split
224         for noreturn case.  Revise split pattern for non noreturn case.
225         (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
226         call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
227         * pa.c (attr_length_call): Simplify extraction of call rtx.  Add some
228         asserts.
229
230 2008-10-11  David Edelsohn  <edelsohn@gnu.org>
231
232         * config/rs6000/rs6000.md (aux_truncdfsf2): Remove TARGET_SINGLE_FLOAT.
233         (addsf3, subsf3, mulsf3 ! TARGET_POWERPC): Remove TARGET_SINGLE_FLOAT
234         and fp_type.
235         (divdf3): Reformat long line.
236
237 2008-10-11  Michael J. Eager  <eager@eagercon.com>
238
239         * config/rs6000/rs6000.c (rs6000_parse_fpu_option): Interpret
240         -mfpu options.
241         (rs6000_handle_option): Process -mfpu options.
242         * config/rs6000/rs6000.h: (TARGET_XILINX_FPU): New.
243         (enum fpu_type_t): New.
244         * config/rs6000/rs6000.md (attr fp_type): New.  Include xfpu.md.
245         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3, trunctfdf2): Set
246         fp_type.
247         (floatsisf2): Remove TARGET_SINGLE_FPU condition.
248         (floatdidf2): Add TARGET_SINGLE_FPU condition.
249         * config/rs6000/rs6000.opt (-mfpu): New.
250         (-mxilinx-fpu): New.
251         * config/rs6000/sysv4.h: (DRIVER_SELF_SPECS): New.
252         * config/rs6000/xfpu.h: New. Define TARGET_XILINX_FPU.
253         * config/rs6000/xfpu.md: New. Define Xilinx pipeline.
254         * gcc/config.gcc: powerpc-xilinx-eabi target: New.
255         * gcc/doc/invoke.texi (RS/6000 and PowerPC Options): Add -mfpu option.
256
257 2008-10-11  Jakub Jelinek  <jakub@redhat.com>
258
259         PR target/35760
260         * config/rs6000/rs6000.c (rs6000_legitimize_address): Only create
261         LO_SUM on Darwin if mode has just one unit.
262
263 2008-10-10  H.J. Lu  <hongjiu.lu@intel.com>
264
265         PR debug/37002
266         * dwarf2out.c (mem_loc_descriptor): Use DRAP for vDRAP which
267         has been optimized out.
268
269 2008-10-10  Richard Sandiford  <rdsandiford@googlemail.com>
270
271         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Test PIC_ADDR_P
272         instead of PIC_DIRECT_ADDR_P.
273         (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
274         (IS_LITERAL_OR_SYMBOLIC_S16_P, IS_LITERAL_OR_SYMBOLIC_U16_P): Delete.
275         (IS_NON_EXPLICIT_CONSTANT_P): Don't test PIC_OFFSET_P.
276         (PIC_OFFSET_P): Rename to...
277         (PCREL_SYMOFF_P): ...this.
278         (PIC_DIRECT_ADDR_P): Delete.
279         (MOVI_SHORI_BASE_OPERAND_P): Check PCREL_SYMOFF_P instead of
280         PIC_OFFSET_P.
281         (OUTPUT_ADDR_CONST_EXTRA): Don't require unspecs to have a
282         single argument.  Handle UNSPEC_EXTRACT_S16, UNSPEC_EXTRACT_U16,
283         UNSPEC_SYMOFF and UNSPEC_PCREL_SYMOFF.
284         * config/sh/sh.c (print_operand): Remove CONST handling.
285         (unspec_caller_rtx_p): Rewrite to use split_const and check
286         the operands of UNSPEC bases.
287         (fixup_mova): Replace (unspec [(minus A B)] UNSPEC_PIC)
288         with (unspec [A B] UNSPEC_SYMOFF).
289         (nonpic_symbol_mentioned_p): Check for UNSPEC_SYMOFF and
290         UNSPEC_PCREL_SYMOFF.
291         (sh_secondary_reload): Test PIC_ADDR_P instead of PIC_DIRECT_ADDR_P.
292         * config/sh/sh.md (UNSPEC_EXTRACT_S16): New unspec.
293         (UNSPEC_EXTRACT_U16): Likewise.
294         (UNSPEC_SYMOFF): Likewise.
295         (UNSPEC_PCREL_SYMOFF): Likewise.
296         (movsi_const): Use UNSPEC_EXTRACT_*16s to extract 16-bit portions
297         of constants.
298         (movsi_const_16bit): Likewise.
299         (movdi_const, movdi_const_32bit, movdi_const_16bit): Likewise.
300         (GOTaddr2picreg): Replace (unspec [(minus A (minus B pc))] UNSPEC_PIC)
301         with (unspec [A B] UNSPEC_PCREL_SYMOFF).
302         (sym_label2reg): Replace (minus (const (unspec [A] UNSPEC_PIC)) B)
303         with (unspec [A B] UNSPEC_SYMOFF).
304         (symPLT_label2reg): Replace (minus A (minus B pc)) with
305          (unspec [A B] PCREL_UNSPEC_SYMOFF).
306         * config/sh/constraints.md (Css): Check for an UNSPEC_EXTRACT_S16.
307         (Csu): Likewise UNSPEC_EXTRACT_U16.
308         (Csy): Test PIC_ADDR_P instead of PIC_DIRECT_ADDR_P.
309         (Cpg): Update after changes to IS_NON_EXPLICIT_CONSTANT_P.
310
311 2008-10-10  Stepan Kasal  <skasal@redhat.com>
312
313         * gcc/doc/invoke.texi (Optimize Options): Fix typo in examples
314         for loop strip mining and loop blocking.
315
316 2008-10-10  Alexandre Oliva  <aoliva@redhat.com>
317
318         * fortran/trans-types.c (gfc_get_nodesc_array_type): Don't
319         vary types depending on debug info.
320
321 2008-10-10  Alexandre Oliva  <aoliva@redhat.com>
322
323         * c-gimplify.c (c_genericize): Don't refer to DECL_ASSEMBLER_NAME
324         before ensuring it's already computed.
325
326 2008-10-09  Jakub Jelinek  <jakub@redhat.com>
327
328         * rtl.h (locator_eq): New decl.
329         * cfglayout.c (locator_scope): New function.
330         (insn_scope): Use it.
331         (locator_eq): New function.
332         (fixup_reorder_chain): Search for last insn in src bb
333         that has locator set or first insn in dest bb.  Use
334         locator_eq instead of == to compare locators.
335         * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
336         * cfgcleanup.c (try_forward_edges): Use locator_eq instead of
337         == to compare locators.
338
339         * tree-ssa-live.c (remove_unused_locals): Mark all edge's goto_block
340         as used.
341         * gimple-low.c (lower_function_body, lower_gimple_return,
342         lower_builtin_setjmp): Set gimple_block on the newly created stmts.
343         * tree-cfg.c (make_cond_expr_edges, make_goto_expr_edges): Only set
344         goto_block on edges if goto_locus is known.
345
346         PR middle-end/37774
347         * tree.h (get_object_alignment): Declare.
348         * emit-rtl.c (set_mem_attributes_minus_bitpos): Call
349         get_object_alignment if needed.
350         * builtins.c (get_pointer_alignment): Move ADDR_EXPR operand handling
351         to ...
352         (get_object_alignment): ... here.  New function.  Try harder to
353         determine alignment from get_inner_reference returned offset.
354
355 2008-10-08  Jakub Jelinek  <jakub@redhat.com>
356
357         * graphite.c (gloog): Don't call find_unreachable_blocks
358         before delte_unreachable_blocks.
359
360         * cfgexpand.c (expand_gimple_cond): Convert also goto_block and
361         goto_locus of true_edge into RTL locator.
362
363 2008-10-08  Uros Bizjak  <ubizjak@gmail.com>
364
365         * config/i386/i386.md (*jcc_btdi_rex64): Clobber FLAGS_REG.
366         (*jcc_btdi_mask_rex64): Ditto.
367         (*jcc_btsi): Ditto.
368         (*jcc_btsi_mask): Ditto.
369         (*jcc_btsi_1): Ditto.
370         (*jcc_btsi_mask_1): Ditto.
371
372 2008-10-08  Paul Brook  <paul@codesourcery.com>
373
374         * config/arm/bpabi.h (ARM_FUNCTION_PROFILER): Define new EABI
375         compatible profiler (__gnu_mcount_nc).
376         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
377
378 2008-10-08  H.J. Lu  <hongjiu.lu@intel.com>
379
380         * config/i386/i386.c (initial_ix86_tune_features): Add
381         X86_TUNE_USE_VECTOR_FP_CONVERTS.
382         * config/i386/i386.h (ix86_tune_indices): Likewise.
383         (TARGET_USE_VECTOR_FP_CONVERTS): New.
384
385         * config/i386/i386.md: Check TARGET_USE_VECTOR_FP_CONVERTS
386         instead of (TARGET_USE_VECTOR_CONVERTS || TARGET_GENERIC)
387         for FP to FP splitters.
388
389 2008-10-08  H.J. Lu  <hongjiu.lu@intel.com>
390
391         * config/i386/i386.md: Add missing gen_sse2_cvtdq2p to convert
392         splitter.
393
394 2008-10-08  Jakub Jelinek  <jakub@redhat.com>
395
396         PR target/36635
397         PR target/37290
398         PR rtl-optimization/37341
399         * cse.c (cse_cc_succs): Add ORIG_BB argument, don't follow edges
400         to ORIG_BB, pass through ORIG_BB recursively.
401         (cse_condition_code_reg): Adjust caller.
402
403 2008-10-08  Kai Tietz  <kai.tietz@onevision.com>
404
405         * sdbout.c (sdbout_one_type): Treat the value type
406         CONST_DECL for enumerals.
407
408 2008-10-07  H.J. Lu  <hongjiu.lu@intel.com>
409
410         * config/i386/i386.md: Remove trailing white spaces.
411
412 2008-10-07  Kenneth Zadeck <zadeck@naturalbridge.com>
413
414         PR rtl-optimization/37448
415         * alloc-pool.c (struct alloc_pool_descriptor) [elt_size]: New field.
416         (stuct alloc_pool_descriptor) [created, allocated, current, peak]:
417         Make unsigned long.
418         (struct output_info) [count]: Renamed total_created and made
419         unsigned long.
420         (struct output_info) [size]: Renamed total_allocated and made
421         unsigned long.
422         (create_alloc_pool, empty_alloc_pool, pool_alloc, pool_free):
423         Properly keep track of desc->size.
424         (print_statistics, dump_alloc_pool_statistics): Enhance the
425         printing of statistics to print the number of elements and to use
426         unsigned longs.
427         
428 2008-10-07  Jakub Jelinek  <jakub@redhat.com>
429
430         PR middle-end/37576
431         * opts.h (CL_SAVE): Move up to flags range.
432         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET,
433         CL_COMMON): Renumber.
434         (CL_MIN_OPTION_CLASS): Set to CL_PARAMS.
435         * opts.c (common_handle_option): Revert last change.
436
437 2008-10-07  H.J. Lu  <hongjiu.lu@intel.com>
438
439         * config/i386/i386-protos.h (ix86_schedule): New.
440
441         * config/i386/i386.c (ix86_schedule): New.
442         (override_options): Add schedule to processor_alias_table.  Set
443         ix86_schedule from the schedule field in processor_alias_table.
444         (ix86_function_specific_save): Save ix86_schedule.
445         (ix86_function_specific_restore): Restore ix86_schedule.
446
447         * config/i386/i386.md (cpu): Map to ix86_schedule instead of
448         ix86_tune.  Add none and remove i386, i486, pentium4, nocona
449         and generic32.
450
451         * config/i386/i386.opt: Add schedule.
452
453         * config/i386/ppro.md: Remove generic32.
454
455 2008-10-07  Simon Martin  <simartin@users.sourceforge.net>
456
457         PR c/35437
458         * expr.c (count_type_elements): Handle ERROR_MARK.
459
460 2008-10-07  Jakub Jelinek  <jakub@redhat.com>
461
462         PR debug/29609
463         PR debug/36690
464         PR debug/37616
465         * basic-block.h (struct edge_def): Add goto_block field.
466         * cfglayout.c (fixup_reorder_chain): Ensure that there is at least
467         one insn with locus corresponding to edge's goto_locus if !optimize.
468         * profile.c (branch_prob): Copy edge's goto_block.
469         * cfgrtl.c (force_nonfallthru_and_redirect): Use goto_locus for
470         emitted jumps.
471         (cfg_layout_merge_blocks): Emit a nop with edge's goto_locus
472         locator in between the merged basic blocks if !optimize and needed.
473         * cfgexpand.c (expand_gimple_cond): Convert goto_block and
474         goto_locus into RTL locator.  For unconditional jump use that
475         locator for the jump insn.
476         (expand_gimple_cond): Convert goto_block and goto_locus into
477         RTL locator for all remaining edges.  For unconditional jump
478         use that locator for the jump insn.
479         * cfgcleanup.c (try_forward_edges): Avoid the optimization if
480         there is more than one edge or insn locator along the forwarding
481         edges and !optimize.  If there is just one, set e->goto_locus.
482         * tree-cfg.c (make_cond_expr_edges, make_goto_expr_edges): Set also
483         edge's goto_block.
484         (move_block_to_fn): Adjust edge's goto_block.
485
486 2008-10-07  H.J. Lu  <hongjiu.lu@intel.com>
487
488         PR middle-end/37731
489         * expmed.c (expand_mult): Properly check DImode constant in
490         CONST_DOUBLE.
491
492 2008-10-07  Jakub Jelinek  <jakub@redhat.com>
493
494         PR debug/37738
495         * dwarf2out.c (common_block_die_table): New variable.
496         (common_block_die_table_hash, common_block_die_table_eq): New
497         functions.
498         (gen_variable_die): Look up a DW_TAG_common_block die for a particular
499         COMMON block in the current scope rather than globally.  Optimize
500         DW_OP_addr SYMBOL_REF DW_OP_plus_uconst off into
501         DW_OP_addr SYMBOL_REF+off.
502
503 2008-10-07  Eric Botcazou  <ebotcazou@adacore.com>
504
505         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <VIEW_CONVERT_EXPR>:
506         Return true for non-addressable GIMPLE operands.
507
508 2008-10-07  H.J. Lu  <hongjiu.lu@intel.com>
509
510         PR target/24765
511         * config/i386/i386.c (initial_ix86_tune_features): Remove
512         X86_TUNE_USE_BIT_TEST.
513         * config/i386/i386.h (ix86_tune_indices): Likewise.
514         (TARGET_USE_BIT_TEST): Removed.
515
516 2008-10-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
517
518         * config.gcc (arm*-*-*): Add aapcs-linux to supported ABIs.
519
520 2008-10-06  Adam Nemet  <anemet@caviumnetworks.com>
521
522         * config/mips/mips.md (mulsi3_mul3, muldi3_mul3): Merge these ...
523         (mul<mode>3_mul3): ... into this new template.
524
525 2008-10-06  Aldy Hernandez  <aldyh@redhat.com>
526
527         * gimplify.c (gimplify_arg): Add location argument.  Use it.
528         (gimplify_call_expr): Pass location to gimplify_arg.
529         (gimplify_modify_expr_to_memcpy): Same.
530         (gimplify_modify_expr_to_memset): Same.
531
532 2008-10-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
533
534         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
535         Update calls to build_unary_op and build_indirect_ref for location
536         changes.
537
538 2008-10-06  Aldy Hernandez  <aldyh@redhat.com>
539
540         build_modify_expr.
541         * c-decl.c (finish_decl): Pass input_location to build_unary_op.
542         * c-typeck.c (array_to_pointer_conversion): Pass location to
543         build_unary_op.
544         (function_to_pointer_conversion): Use error_at and warning_at.
545         (build_indirect_ref): Same.
546         (build_array_ref): Pass location to build_binary_op.
547         (parser_build_unary_op): Do not set location after calling
548         build_unary_op.
549         (build_unary_op): Add location argument.  Use it throughout.  Set
550         EXPR_LOCATION before returning new tree.
551         (build_modify_expr): Same.
552         (build_binary_op): Use location throughout.  Set EXPR_LOCATION before
553         returning node.
554         * c-omp.c (c_finish_omp_atomic): Pass location to build_unary_op,
555         build_indirect_ref, build_modify_expr.
556         (c_finish_omp_for): Same.  Use error_at instead of error.
557         * c-common.c (c_common_truthvalue_conversion): Pass location to
558         build_unary_op.
559         (warn_for_div_by_zero): Add location argument.
560         * c-common.h: Add argument to build_modify_expr, build_indirect_ref,
561         build_unary_op, warn_for_div_by_zero.
562         * c-parser.c (c_parser_typeof_specifier): Use
563         protected_set_expr_location.
564         (c_parser_statement_after_labels): Same.
565         (c_parser_condition): Same.
566         (c_parser_expr_no_commas): Pass correct location to build_modify_expr.
567         (c_parser_conditional_expression): Use protected_set_expr_location.
568         (c_parser_unary_expression): Pass location to build_indirect_ref.
569         (c_parser_postfix_expression_after_primary): Pass location to
570         build_indirect_ref, build_unary_op.
571         (c_parser_omp_for_loop): Set the increment expression's EXPR_LOCATION.
572
573 2008-10-06  Joshua Kinard  <kumba@gentoo.org>
574
575         * doc/invoke.texi: List r1x000 family under the -march MIPS option.
576         * config/mips/mips.h (PROCESSOR_R10000): New processor_type.
577         * config/mips/mips.c (mips_cpu_info_table): Add r10000, r12000,
578         r14000 and r16000.
579         (mips_rtx_cost_data): Add a PROCESSOR_R10000 entry.
580         (mips_issue_rate): Handle PROCESSOR_R10000.
581         * config/mips/mips.md (cpu): Add r10000.
582         Include r10000.md.
583         * config/mips/10000.md: New file.
584
585 2008-10-06  Richard Sandiford  <rdsandiford@googlemail.com>
586
587         * config/rs6000/rs6000-protos.h (rs6000_find_base_term): Declare.
588         * config/rs6000/rs6000.h (FIND_BASE_TERM): New macro.
589         * config/rs6000/rs6000.c (rs6000_find_base_term): New function.
590
591 2008-10-06  Richard Sandiford  <rdsandiford@googlemail.com>
592
593         * config/darwin-protos.h (machopic_function_base_name): Delete.
594         (machopic_function_base_sym): Likewise.
595         (machopic_gen_offset): Declare.
596         * config/darwin.h (MACHOPIC_FUNCTION_BASE_NAME): New macro.
597         (ASM_OUTPUT_LABELREF): Use it instead of a hard-coded string constant.
598         * config/darwin.c (machopic_function_base_name): Delete.
599         (machopic_function_base_sym): Likewise.
600         (gen_pic_offset): Rename to...
601         (machopic_gen_offset): ...this and remove the pic_base argument.
602         Instead use MACHO_DYNAMIC_NO_PIC_P to decide whether a PIC offset
603         is needed.  Create an UNSPEC_MACHOPIC_OFFSET if so, and set
604         crtl->uses_pic_offset_table.
605         (machopic_indirect_data_reference): Use new machopic_gen_offset
606         interface.
607         (machopic_legitimize_pic_address): Likewise.
608         (machopic_operand_p): Check for UNSPEC_MACHOPIC_OFFSET.
609
610         * config/i386/darwin.h (GOT_SYMBOL_NAME): Use
611         MACHOPIC_FUNCTION_BASE_NAME instead of machopic_function_base_name.
612         * config/i386/i386.c (output_set_got): Likewise.
613         (darwin_local_data_pic): Check for an UNSPEC_MACHOPIC_OFFSET
614         instead of a MINUS.
615         (legitimate_pic_operand_p): Handle UNSPEC_MACHOPIC_OFFSET.
616         (legitimate_address_p): Likewise.
617         (output_pic_addr_const): Likewise.
618         (output_addr_const_extra): Likewise.
619         (ix86_delegitimize_address): Expect darwin_local_data_pic to
620         match an UNSPEC rather than a MINUS.
621         * config/i386/i386.md (UNSPEC_MACHOPIC_OFFSET): Define.
622         (builtin_setjmp_receiver): Use machopic_gen_offset.
623         * config/i386/predicates.md (pic_symbolic_operand): Handle
624         UNSPEC_MACHOPIC_OFFSET.
625
626         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
627         Use machopic_gen_offset and machopic_operand_p.
628         (rs6000_output_addr_const_extra): Handle UNSPEC_MACHOPIC_OFFSET.
629         (rs6000_emit_prologue): Use MACHOPIC_FUNCTION_BASE_NAME.
630         * config/rs6000/rs6000.md (UNSPEC_MACHOPIC_OFFSET): Define.
631         (builtin_setjmp_receiver): Use MACHOPIC_FUNCTION_BASE_NAME.
632         Set crtl->uses_pic_offset_table.
633
634 2008-10-06  Richard Sandiford  <rdsandiford@googlemail.com>
635
636         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
637         Declare.
638         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): New macro.
639         * config/rs6000/rs6000.md (UNSPEC_TOCREL): New constant.
640         * config/rs6000/rs6000.c (constant_pool_expr_1): Delete.
641         (constant_pool_expr_p): Use split_const and check the base.
642         (toc_relative_expr_p): Likewise, checking for an UNSPEC_TOCREL
643         instead of a MINUS.
644         (legitimate_constant_pool_address_p): Check toc_relative_p
645         instead of constant_pool_expr_p.
646         (print_operand_address): Always use output_addr_const for
647         constant pool addresses.
648         (rs6000_output_addr_const_extra): New function.
649         (create_TOC_reference): Create an UNSPEC_TOCREL instead of a MINUS.
650
651 2008-10-06  Vladimir Makarov  <vmakarov@redhat.com>
652
653         PR middle-end/37535
654
655         * ira-lives.c (mark_reg_live, mark_reg_dead): New functions.
656         (mark_ref_live, mark_ref_dead): Use them.
657         (def_conflicts_with_inputs_p): Remove.
658         (mark_early_clobbers): New function.
659         (process_bb_node_lives): Call preprocess_constraints and
660         mark_early_clobbers.
661
662         * doc/rtx.texi (clobber): Change how RA deals with clobbers.
663
664 2008-10-06  Danny Smith  <dannysmith@users.sourceforge.net>
665
666         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Add thread cleanup
667         lib with -mthread switch.
668
669 2008-10-05  Dodji Seketeli  <dodji@redhat.com>
670
671         PR c++/37410
672         * dwarf2out.c (dwarf2out_imported_module_or_decl): Split this
673         function in two, making it call a new and reusable
674         dwarf2out_imported_module_or_decl() that takes the containing
675         BLOCK of the declaration in argument.
676         (dwarf2out_imported_module_or_decl_real): New function.
677         (decls_for_scope, gen_decl_die, dwarf2out_decl): Take
678         IMPORTED_DECL in account.
679         * tree.def: Added IMPORTED_DECL node type.
680         * tree.h: Added accessors for IMPORTED_DECL nodes.
681         * tree.c (init_ttree): Initialise IMPORTED_DECL node type.
682
683 2008-10-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
684
685         * doc/gimple.texi: Fix some typos, wrap some long lines,
686         fix some broken wraps with continuations.
687         * tree-ssa-reassoc.c: Fix comment typos.
688
689 2000-10-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
690
691         PR target/37603
692         * pa.c (legitimize_pic_address): Force function labels to memory in
693         word mode.
694
695 2008-10-04  Anton Blanchard  <anton@samba.org>
696
697         * config/rs6000/rs6000.c (rs6000_emit_sync): Use gen_lwsync().
698         (rs6000_split_atomic_op): Same.
699         (rs6000_split_compare_and_swap): Same.
700         (rs6000_split_compare_and_swapqhi): Same.
701
702 2008-10-04  Richard Guenther  <rguenther@suse.de>
703
704         * tree-ssa-sccvn.c (vn_reference_op_eq): Use types_compatible_p
705         instead of pointer equality.
706         (vn_nary_op_eq): Likewise.
707
708 2008-10-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
709
710         * config/rs6000/rs6000.md (fseldfsf4): Add TARGET_SINGLE_FLOAT 
711         condition.
712         (fselsfdf4): Make condition on "TARGET_HARD_FLOAT && TARGET_FPRS &&
713         TARGET_DOUBLE_FLOAT && TARGET_SINGLE_FLOAT".
714
715 2008-10-03  Danny Smith  <dannysmith@users.sourceforge.net>
716
717         * config/i386/winnt.c (i386_pe_strip_name_encoding_full):
718         Revert previous change.
719
720 2008-10-03  Tom Tromey  <tromey@redhat.com>
721
722         * stringpool.c (ggc_alloc_string): Terminate string.
723
724 2008-10-03  Jakub Jelinek  <jakub@redhat.com>
725
726         * gimplify.c (gimplify_function_tree): For -finstrument-functions
727         use gimple_bind_{,set_}block instead of gimple_{,set_}block.
728         * gimple.h (gimple_bind_set_block): Allow second argument to be NULL.
729
730         PR debug/37726
731         * gimplify.c (declare_vars): Use gimple_bind_block instead of
732         gimple_block.
733
734 2008-10-03  Pascal Obry  <obry@adacore.com>
735
736         * gcov.c (create_file_names): Properly handle UNIX and DOS
737         directory separators.
738         (make_gcov_file_name): Likewise + convert the ':' DOS drive
739         separator to '~' to ensure clean filenames on Windows.
740
741 2008-10-02  Danny Smith  <dannysmith@users.sourceforge.net>
742
743         * config/i386/winnt.c (i386_pe_strip_name_encoding_full):
744         Add a null terminator to the stripped name.
745
746 2008-10-02  David Edelsohn  <edelsohn@gnu.org>
747
748         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Revert
749         TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
750         (function_arg_advance): Condition on TARGET_DOUBLE_FLOAT,
751         TARGET_SINGLE_FLOAT.  Revert SCALAR_FLOAT_MODE_P condition.
752         (function_arg): Condition on TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
753         (rs6000_function_value): Revert TARGET_DOUBLE_FLOAT,
754         TARGET_SINGLE_FLOAT.
755
756 2008-10-02  Daniel Jacobowitz  <dan@codesourcery.com>
757
758         * builtins.c (fold_builtin_pow): Check for 0 ** NEGATIVE.
759
760 2008-10-02  Richard Guenther  <rguenther@suse.de>
761
762         PR middle-end/37713
763         * tree-ssa.c (useless_type_conversion_p_1): For COMPLEX_TYPE
764         and VECTOR_TYPE recurse with useless_type_conversion_p which
765         properly handles void pointer conversion.
766
767 2008-10-02  Danny Smith  <dannysmith@users.sourceforge.net>  
768
769         PR target/37528
770         * config/i386/mingw32.h (LIBGCC_SPEC) : Replace with ..
771         (REAL_LIBGCC_SPEC): New.  Always include -lgcc.
772
773 2008-10-01  Andrew Pinski  <andrew_pinski@playstation.sony.com>
774
775         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
776         Handle ALTIVEC_BUILTIN_VEC_SPLATS, ALTIVEC_BUILTIN_VEC_PROMOTE,
777         ALTIVEC_BUILTIN_VEC_EXTRACT, and ALTIVEC_BUILTIN_VEC_INSERT specially,
778         they translate to non builtins.
779         * config/rs6000/rs6000.c (altivec_init_builtins): Add new variable
780         opaque_ftype_opaque.  Define builtins __builtin_vec_splats,
781         __builtin_vec_promote, __builtin_vec_extract, and
782         __builtin_vec_insert.
783         * config/rs6000/rs6000.h (enum rs6000_builtins): Add
784         ALTIVEC_BUILTIN_VEC_EXTRACT, ALTIVEC_BUILTIN_VEC_PROMOTE,
785         ALTIVEC_BUILTIN_VEC_INSERT, and ALTIVEC_BUILTIN_VEC_SPLATS.
786         * config/rs6000/altivec.h (vec_extract): Define
787         (vec_insert): Define.
788         (vec_splats): Define.
789         (vec_promote): Define.
790
791 2008-10-01  Andrew Pinski  <andrew_pinski@playstation.sony.com>
792             Yukishige Shibata  <shibata@rd.scei.sony.co.jp>
793             Trevor Smigiel  <Trevor_Smigiel@playstation.sony.com>
794
795         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add Cell
796         Altivec intrinsics.
797         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Delete
798         prototype.  Add new parameter, blk.
799         Use BLKmode for the MEM if blk is true.
800         (altivec_expand_builtin): Handle ALTIVEC_BUILTIN_STVLX,
801         ALTIVEC_BUILTIN_STVLXL, ALTIVEC_BUILTIN_STVRX, and
802         ALTIVEC_BUILTIN_STVRXL.
803         Update usage of altivec_expand_lv_builtin.
804         Handle ALTIVEC_BUILTIN_LVLX, ALTIVEC_BUILTIN_LVLXL,
805         ALTIVEC_BUILTIN_LVRX, and ALTIVEC_BUILTIN_LVRXL.
806         (altivec_init_builtins): If compiling for the Cell, also define the
807         cell VMX builtins.
808         * config/rs6000/rs6000.h (rs6000_builtins): Define
809         ALTIVEC_BUILTIN_LVLX, ALTIVEC_BUILTIN_LVLXL, ALTIVEC_BUILTIN_LVRX,
810         ALTIVEC_BUILTIN_LVRXL, ALTIVEC_BUILTIN_STVLX, ALTIVEC_BUILTIN_STVLXL,
811         ALTIVEC_BUILTIN_STVRX, ALTIVEC_BUILTIN_STVRXL,
812         ALTIVEC_BUILTIN_VEC_LVLX, ALTIVEC_BUILTIN_VEC_LVLXL,
813         ALTIVEC_BUILTIN_VEC_LVRX, ALTIVEC_BUILTIN_VEC_LVRXL,
814         ALTIVEC_BUILTIN_VEC_STVLX, ALTIVEC_BUILTIN_VEC_STVLXL,
815         ALTIVEC_BUILTIN_VEC_STVRX, and ALTIVEC_BUILTIN_VEC_STVRXL.
816         * config/rs6000/altivec.md (define_constants): Define UNSPEC_LVLX,
817         UNSPEC_LVLXL, UNSPEC_LVRX, UNSPEC_LVRXL, UNSPEC_STVLX, UNSPEC_STVLXL,
818         UNSPEC_STVRX, and UNSPEC_STVRXL.
819         (altivec_lvlx): New pattern.
820         (altivec_lvlxl): New pattern.
821         (altivec_lvrx): New pattern.
822         (altivec_lvrxl): New pattern.
823         (altivec_stvlx): New pattern.
824         (altivec_stvlxl): New pattern.
825         (altivec_stvrx): New pattern.
826         (altivec_stvrxl): New pattern.
827         * config/rs6000/altivec.h (vec_lvlx): Define if PPU is defined.
828         (vec_lvlxl): Likewise.
829         (vec_lvrx): Define if PPU is defined.
830         (vec_lvrxl): Likewise.
831         (vec_stvlx): Define if PPU is defined.
832         (vec_stvlxl): Likewise.
833         (vec_stvrx): Define if PPU is defined.
834         (vec_stvrxl): Likewise.
835
836 2008-10-01  Geert Bosch  <bosch@adacore.com>
837
838         * tree.c (contains_placeholder_p): Return 0 for a SAVE_EXPR.
839
840 2008-10-01  Richard Guenther  <rguenther@suse.de>
841
842         PR tree-optimization/37617
843         * tree-ssa-pre.c (create_expression_by_pieces): During FRE
844         do not add to the NEW_SETS.
845
846 2008-10-01  Richard Guenther  <rguenther@suse.de>
847
848         PR middle-end/37285
849         * tree-vrp.c (execute_vrp): If we optimized away the default
850         case make sure to promote the label that got in place of it
851         to a default case label.
852
853 2008-10-01  Richard Henderson  <rth@redhat.com>
854
855         PR tree-opt/35737
856         * tree-complex.c (set_component_ssa_name): Don't optimize
857         is_gimple_min_invariant values with ssa_names in abnormal phis.
858
859 2008-09-30  Paolo Bonzini  <bonzini@gnu.org>
860
861         PR tree-optimization/37662
862         * tree-ssa-ccp.c (fold_gimple_assign): Invert the operands of a
863         commutative binary operation if they are in the wrong order and
864         fold_build2 produces non-GIMPLE.
865
866 2008-09-30  Jakub Jelinek  <jakub@redhat.com>
867
868         PR tree-optimization/37662
869         PR tree-optimization/37663
870         * tree-vrp.c (simplify_truth_ops_using_ranges): Don't call
871         get_value_range with non-SSA_NAME.  Don't assert operands have been
872         folded, instead just bail out.
873
874 2008-09-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
875
876         * config/rs6000/rs6000.md (fnmadds combiner): Revert typo.
877
878 2008-09-30  Richard Guenther  <rguenther@suse.de>
879
880         PR middle-end/37491
881         * tree-vect-transform.c (vect_create_data_ref_ptr): Properly
882         build restrict-qualified pointers.
883         (vectorizable_store): Move alias check later.
884         (vectorizable_load): Likewise.
885
886 2008-09-30  Paolo Bonzini  <bonzini@gnu.org>
887
888         * c-common.c (empty_if_body_warning): Remove.
889         * c-common.h (empty_if_body_warning): Remove.
890         * c-parser.c (c_parser_if_body, c_parser_else_body): Implement
891         here the -Wempty-body warning for `if' and `else' statements.
892         * c-typeck.c (c_finish_if_stmt): Do not call empty_body_warning.
893
894 2008-09-29  H.J. Lu  <hongjiu.lu@intel.com>
895
896         * config/i386/i386.opt: Add msse2avx.
897
898         * config/i386/linux.h (ASM_SPEC): New.  Support -msse2avx.
899         * config/i386/linux64.h (ASM_SPEC): Likewise.
900
901         * doc/invoke.texi: Document -msse2avx.
902
903 2008-09-29  Eric Botcazou  <ebotcazou@adacore.com>
904
905         * dwarf2out.c (constant_size): Use HOST_WIDE_INT in parameter type.
906
907 2008-09-29  Joseph Myers  <joseph@codesourcery.com>
908
909         * ifcvt.c (noce_emit_store_flag): If using condition from original
910         jump, reverse it if if_info->cond was reversed.
911
912 2008-09-29  Eric Botcazou  <ebotcazou@adacore.com>
913
914         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
915         non-constant memory if it cannot be forced to constant memory.
916         Overhaul surrounding code and factor out common condition.
917
918 2008-09-29  Jeff Law <law@redhat.com>
919
920         * reload1.c (alter_reg): Add missing curly braces.
921
922 2008-09-29  Michael J. Eager  <eager@eagercon.com>
923
924         * config/rs6000/predicates.md (easy_fp_constant): Single FP consts
925         are easy.
926         * config/rs6000/rs6000.c (rs6000_override_options): Move
927         rs6000_init_hard_regno_mode_ok after all options changed.
928         Set rs6000_single_float, rs6000_double_float if TARGET_HARD_FLOAT.
929         (rs6000_handle_option): Process -msingle-float, -mdouble-float,
930         -msimple-fpu flags.  Add warning messages if single FP not configured.
931         (rs6000_file_start): Output gnu_attribute for single-float.
932         (legitimate_lo_sum_address_p): Condition on TARGET_DOUBLE_FLOAT.
933         (rs6000_legitimize_address): Likewise.
934         (rs6000_legitimize_reload_address): Likewise.
935         (rs6000_emit_move): Condition on TARGET_DOUBLE_FLOAT,
936         TARGET_SINGLE_FLOAT.
937         (function_arg_advance): Likewise (partial conversion).
938         (setup_incoming_varargs): Condition on TARGET_DOUBLE_FLOAT.
939         (rs6000_gimplify_va_arg): Condition on TARGET_DOUBLE_FLOAT,
940         TARGET_SINGLE_FLOAT.
941         (rs6000_split_multireg_move): Condition on TARGET_DOUBLE_FLOAT.
942         (rs6000_emit_prologue): Likewise.
943         (rs6000_function_value): Condition on TARGET_DOUBLE_FLOAT,
944         TARGET_SINGLE_FLOAT.
945         (rs6000_libcall_value): Likewise.
946         * config/rs6000/rs6000.h (TARGET_SINGLE_FLOAT): New default to 1.
947         (TARGET_DOUBLE_FLOAT): New default to 1
948         (TARGET_SIMPLE_FPU): New default to 0
949         (TARGET_SINGLE_FPU): New default to 0
950         (TARGET_SINGLE_FLOAT_MODE): New.
951         (TARGET_DOUBLE_FLOAT_MODE): New.
952         * config/rs6000/singlefp.h: New; redefine TARGET_SINGLE_FLOAT,
953         TARGET_DOUBLE_FLOAT, TARGET_SIMPLE_FPU, TARGET_SINGLE_FPU,
954         UNITS_PER_FP_WORD
955         * config/rs6000/rs6000.md (define_mode_iterator): Condition on
956         TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
957         (extendsfdf2, extendsfdf2_fpr, truncdfsf2, truncdfsf2_fpr,
958         copysigndf3,fseldfsf4, negdf2, negdf2_fpr, absdf2, absdf2_fpr,
959         nabsdf2_fpr, adddf3, adddf3_fpr, subdf3, subdf3_fpr, muldf3,
960         muldf3_fpr, divdf3, divdf3_fpr, sqrtdf2, smaxdf3, smindf3,
961         movdfcc, *fseldfdf4, floatsidf2, *floatsidf2_internal,
962         floatunssidf2, *floatunssidf2_internal, fix_truncdfsi2,
963         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
964         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2,
965         rounddf2, floatdidf2, floatsidf_ppc64_mfpgpr, floatsidf_ppc64,
966         floatunssidf_ppc64, fix_truncdfdi2, movdf_hardfloat32,
967         movdf_hardfloat64_mfpgpr, movdf_hardfloat64, extenddftf2_fprs,
968         extenddftf2_internal, trunctfdf2_internal2, fix_trunc_helper,
969         abstf2_internal, movdf_update1, movdf_update2, cmpdf_internal1,
970         cmptf_internal1, *cmptf_internal2): Condition on
971         TARGET_DOUBLE_FLOAT.
972         (aux_truncdfsf2, negsf2, *negsf2, abssf2, *abssf2, addsf3, subsf3,
973         mulsf3, divsf3, sqrtsf2, copysignsf3, smaxsf3, sminsf3, movsfcc,
974         *fselsfsf4, fixuns_truncsfsi2, fix_truncsfsi2, floatunssisf2,
975         btruncsf2, ceilsf2, floorsf2, roundsf2, floatdisf2_internal1,
976         floatdisf2_internal2, *movsf_hardfloat, trunctfsf2_fprs,
977         *movsf_update1, *movsf_update2, *cmpsf_internal1): Condition on
978         TARGET_SINGLE_FLOAT.
979         (divsf3, sqrtsf2, divdf3, divdf3_fpr): Condition on TARGET_SIMPLE_FPU.
980         * config/rs6000/rs6000.opt (-msingle-float): New.
981         (-mdouble-float): New.
982         (-msimple-fpu): New.
983         * doc/invoke.texi (RS/6000 and PowerPC Options): Add
984         -msingle-float, -mdouble-float, -msimple-fpu options.
985         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Set
986         _SOFT_DOUBLE for -msingle-float.
987         * config.gcc: New config for target=powerpc-xilinx-eabi.
988
989 2008-09-29  Tobias Grosser  <grosser@fim.uni-passau.de>
990
991         * graphite.c (dot_all_scops_1): Remove unused checks. SCoPs always
992         have exit and entry.
993         (new_scop): Take entry and exit edge to define new SCoP.
994         (sd_region_p): New structure used during SCoP detection.
995         (move_scops): Delete.
996         (move_sd_regions): New.
997         (scopdet_info): Change the definition from edges back to basic_blocks.
998         (scopdet_edge_info):  Work on basic_blocks and rename to
999         scopdet_basic_block_info.
1000         (split_difficult_bb): At the moment removed. We should later
1001         add it at another place.
1002         (build_scops_1): Work on basic_blocks.
1003         (bb_in_sd_region): New.
1004         (find_single_entry_edge): New.
1005         (find_single_exit_edge): New.
1006         (create_single_entry_edge): New.
1007         (sd_region_without_exit): New.
1008         (create_single_exit_edge): New.
1009         (unmark_exit_edges): New.
1010         (mark_exit_edges): New.
1011         (create_sese_edges): New.
1012         (build_graphite_scops): New.
1013         (build_scops): Make SCoPs SESE.
1014         (limit_scops): Use the new functions.
1015
1016 2008-09-29  Hans-Peter Nilsson  <hp@axis.com>
1017
1018         * config/cris/cris.h (IRA_COVER_CLASSES): Define.
1019
1020 2008-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1021
1022         PR target/37640
1023         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Force
1024         address to a register before taking the lower part.
1025
1026 2008-09-28  Kaz Kojima  <kkojima@gcc.gnu.org>
1027
1028         * config/sh/sh.h (OVERRIDE_OPTIONS): Unset flag_dwarf2_cfi_asm
1029         for SHmedia.
1030
1031 2008-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1032             Kaushal Kantawala  <kaushal_kantawala@playstation.sony.com>
1033
1034         PR tree-opt/36891
1035         * tree-ssa-loop-im.c (rewrite_reciprocal): Set DECL_GIMPLE_REG_P on
1036         the newly created variable.
1037         Create a VECTOR_CST of all 1s for vector types.
1038
1039 2008-09-28  Eric Botcazou  <ebotcazou@adacore.com>
1040
1041         PR middle-end/36575
1042         * fold-const.c (div_and_round_double) <ROUND_DIV_EXPR>: Fix typo.
1043
1044 2008-09-28  Eric Botcazou  <ebotcazou@adacore.com>
1045
1046         * expmed.c (store_fixed_bit_field): Always use convert_to_mode in
1047         order to convert between modes.
1048         (extract_bit_field_1): Test TRULY_NOOP_TRUNCATION on the right mode.
1049
1050 2008-09-27  Kaz Kojima  <kkojima@gcc.gnu.org>
1051
1052         * config/sh/sh.c (sh_gimplify_va_arg_expr): Use VIEW_CONVERT_EXPR
1053         if needed.
1054
1055 2008-09-26  Vladimir Makarov  <vmakarov@redhat.com>
1056
1057         Revert:
1058         2008-09-25  Vladimir Makarov  <vmakarov@redhat.com>
1059         * ira-lives.c:...
1060         * doc/rtl.texi:...
1061
1062 2008-09-26  Adam Nemet  <anemet@caviumnetworks.com>
1063
1064         * config/mips/mips.h (ISA_HAS_DMUL3, ISA_HAS_BADDU, ISA_HAS_BBIT,
1065         ISA_HAS_CINS, ISA_HAS_EXTS, ISA_HAS_SEQ_SNE, ISA_HAS_POP): Change
1066         them to yield false with MIPS16.
1067
1068 2008-09-26  Jakub Jelinek  <jakub@redhat.com>
1069
1070         PR middle-end/37275
1071         * dwarf2out.c (tls_mem_loc_descriptor): New function.
1072         (mem_loc_descriptor): Use it for MEM.  For PLUS fail if second
1073         mem_loc_descriptor failed.  Accept UNSPEC.
1074         (loc_descriptor): Use tls_mem_loc_descriptor for MEM.  For PARALLEL
1075         fail if one of the loc_descriptor calls for pieces failed.
1076         (loc_descriptor_from_tree_1): Handle even DECL_EXTERNAL __thread vars,
1077         as long as they bind locally.  For COMPONENT_REF, ARRAY_REF etc. fail
1078         if loc_descriptor_from_tree_1 on offset failed.
1079
1080         PR middle-end/37576
1081         * opts.c (common_handle_option): Don't call print_specific_help with
1082         CL_SAVE as first argument.
1083
1084 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
1085             Steve Ellcey  <sje@cup.hp.com>
1086
1087         * configure: Regenerate for new libtool.
1088         * aclocal.m4: Ditto.
1089
1090 2008-09-26  Pat Haugen  <pthaugen@us.ibm.com>
1091
1092         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Use correct
1093         alias set on MEM when saving stack pointer.
1094         * config/rs6000/rs6000.md (allocate_stack): Likewise
1095
1096 2008-09-26  Dorit Nuzman  <dorit@il.ibm.com>
1097
1098         PR tree-optimization/37574
1099         * tree-vectorizer.c (vect_is_simple_use): Fix indentation.
1100         * tree-vect-transform.c (vect_get_constant_vectors): Use vectype
1101         instead of vector_type for constants. Take computation out of loop.
1102         (vect_get_vec_def_for_operand): Use only vectype for constant case,
1103         and use only vector_type for invariant case.
1104         (get_initial_def_for_reduction): Use vectype instead of vector_type.
1105
1106 2008-09-25  Jakub Jelinek  <jakub@redhat.com>
1107
1108         PR c/37645
1109         * c-common.c (handle_weakref_attribute): Ignore the attribute unless
1110         the decl is a VAR_DECL or FUNCTION_DECL.
1111
1112 2008-09-25  Vladimir Makarov  <vmakarov@redhat.com>
1113
1114         PR middle-end/37535
1115         * ira-lives.c (mark_reg_live, mark_reg_dead): New functions.
1116         (mark_ref_live, mark_ref_dead): Use them.
1117         (def_conflicts_with_inputs_p): Remove.
1118         (mark_early_clobbers): New function.
1119         (process_bb_node_lives): Call preprocess_constraints and
1120         mark_early_clobbers.
1121
1122         * doc/rtl.texi (clobber): Change how RA deals with clobbers.
1123
1124 2008-09-25  Vladimir Makarov  <vmakarov@redhat.com>
1125
1126         PR middle-end/37448
1127         * ira-int.h (IRA_ALLOCNO_TEMP): Rename to ALLOCNO_TEMP.
1128         (ira_compress_allocno_live_ranges): New prototype.
1129
1130         * ira-color.c: Rename IRA_ALLOCNO_TEMP to ALLOCNO_TEMP.
1131         (coalesced_allocnos_living_at_program_points): New.
1132         (coalesced_allocnos_live_at_points_p,
1133         set_coalesced_allocnos_live_points): New functions.
1134         (coalesce_spill_slots): Rewrite.
1135         
1136         * ira-lives.c (remove_some_program_points_and_update_live_ranges,
1137         ira_compress_allocno_live_ranges): New functions.
1138
1139         * ira-build.c (ira_flattening): Call
1140         ira_compress_allocno_live_ranges.
1141         (ira_build): Ditto.
1142
1143 2008-09-25  H.J. Lu  <hongjiu.lu@intel.com>
1144
1145         * config/i386/i386.md: Check cmp/branch fuse for cmp peephole
1146         optimization.
1147
1148 2008-09-25  Richard Sandiford  <rdsandiford@googlemail.com>
1149
1150         * combine.c (make_compound_operation): Handle the 'E' format.
1151         (count_rtxs): Likewise.
1152         (update_table_tick): Likewise.
1153         (get_last_value_validate): Likewise.
1154
1155 2008-09-25  Eric Botcazou  <ebotcazou@adacore.com>
1156
1157         * dbxout.c (dbxout_parms): Fetch the inner REG inside a PARALLEL.
1158
1159 2008-09-25 Sergei Dyshel <sergeid@il.ibm.com>
1160
1161         * matrix-reorg.c (transform_allocation_sites): Initializers 
1162         added to avoid the warning.
1163
1164 2008-09-25  Martin Jambor  <mjambor@suse.cz>
1165
1166         * cgraph.c (free_nodes): New variable.
1167         (NEXT_FREE_NODE): New macro.
1168         (cgraph_create_node): Reuse nodes from the free list.  Do not
1169         update uid if doing so.
1170         (cgraph_remove_node): Add the node to the free list.
1171
1172 2008-09-25  Gerald Pfeifer  <gerald@pfeifer.com>
1173
1174         * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
1175
1176 2008-09-24  Richard Henderson  <rth@redhat.com>
1177
1178         * dwarf2.h (DW_OP_GNU_encoded_addr): New.
1179         * unwind-dw2.c (execute_stack_op): Handle it.
1180
1181 2008-09-24  David Edelsohn  <edelsohn@gnu.org>
1182
1183         Revert:
1184         2008-09-24  Michael J. Eager  <eager@eagercon.com>
1185
1186 2008-09-24  Aldy Hernandez  <aldyh@redhat.com>
1187
1188         * c-common.c (fname_decl): New location argument.
1189         * c-common.h (fname_decl): Same.
1190         * c-parser.c (c_lex_one_token): Use {warning,error}_at instead of
1191         {warning,error}.
1192         (c_parser_typeof_specifier): Same.
1193         (c_parser_parms_list_declarator): Same.
1194         (c_parser_asm_string_literal): Same.
1195         (c_parser_compound_statement_nostart): Same.
1196         (c_parser_label): Same.
1197         (c_parser_do_statement): Same.
1198         (c_parser_asm_statement): Same.
1199         (c_parser_unary_expression): Same.
1200         (c_parser_sizeof_expression): Same.
1201         (c_parser_postfix_expression): Same.
1202         (c_parser_pragma): Same.
1203         (c_parser_omp_clause_collapse): Same.
1204         (c_parser_omp_clause_num_threads): Same.
1205         (c_parser_omp_clause_schedule): Same.
1206         (c_parser_omp_all_clauses): Same.
1207         (c_parser_omp_sections_scope): Same.
1208         (c_parser_omp_for_loop): Same.  Pass condition's location to
1209         c_objc_common_truthvalue_conversion.
1210         (c_parser_enum_specifier): Remove comment.
1211
1212 2008-09-24  Michael J. Eager  <eager@eagercon.com>
1213
1214         * config/rs6000/predicates.md (easy_fp_constant): Single FP consts
1215         are easy.
1216         * config/rs6000/rs6000.c (rs6000_override_options): Move
1217         rs6000_init_hard_regno_mode_ok after all options changed.
1218         Set rs6000_single_float, rs6000_double_float if TARGET_HARD_FLOAT.
1219         (rs6000_handle_option): Process -msingle-float, -mdouble-float,
1220         -msimple-fpu flags.  Add warning messages if single FP not configured.
1221         (rs6000_file_start): Output gnu_attribute for single-float.
1222         (legitimate_lo_sum_address_p): Condition on TARGET_DOUBLE_FLOAT.
1223         (rs6000_legitimize_address): Likewise.
1224         (rs6000_legitimize_reload_address): Likewise.
1225         (rs6000_emit_move): Condition on TARGET_DOUBLE_FLOAT,
1226         TARGET_SINGLE_FLOAT.
1227         (function_arg_advance): Likewise.
1228         (function_arg): Likewise.
1229         (setup_incoming_varargs): Condition on TARGET_DOUBLE_FLOAT.
1230         (rs6000_gimplify_va_arg): Condition on TARGET_DOUBLE_FLOAT,
1231         TARGET_SINGLE_FLOAT.
1232         (rs6000_split_multireg_move): Condition on TARGET_DOUBLE_FLOAT.
1233         (rs6000_emit_prologue): Likewise.
1234         (rs6000_function_value): Condition on TARGET_DOUBLE_FLOAT,
1235         TARGET_SINGLE_FLOAT.
1236         (rs6000_libcall_value): Likewise.
1237         * config/rs6000/rs6000.h (TARGET_SINGLE_FLOAT): New default to 1.
1238         (TARGET_DOUBLE_FLOAT): New default to 1
1239         (TARGET_SIMPLE_FPU): New default to 0
1240         (TARGET_SINGLE_FPU): New default to 0
1241         (TARGET_SINGLE_FLOAT_MODE): New.
1242         (TARGET_DOUBLE_FLOAT_MODE): New.
1243         * config/rs6000/singlefp.h: New; redefine TARGET_SINGLE_FLOAT,
1244         TARGET_DOUBLE_FLOAT, TARGET_SIMPLE_FPU, TARGET_SINGLE_FPU,
1245         UNITS_PER_FP_WORD
1246         * config/rs6000/rs6000.md (define_mode_iterator): Condition on
1247         TARGET_DOUBLE_FLOAT, TARGET_SINGLE_FLOAT.
1248         (extendsfdf2, extendsfdf2_fpr, truncdfsf2, truncdfsf2_fpr,
1249         copysigndf3,fseldfsf4, negdf2, negdf2_fpr, absdf2, absdf2_fpr,
1250         nabsdf2_fpr, adddf3, adddf3_fpr, subdf3, subdf3_fpr, muldf3,
1251         muldf3_fpr, divdf3, divdf3_fpr, sqrtdf2, smaxdf3, smindf3,
1252         movdfcc, *fseldfdf4, floatsidf2, *floatsidf2_internal,
1253         floatunssidf2, *floatunssidf2_internal, fix_truncdfsi2,
1254         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
1255         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2,
1256         rounddf2, floatdidf2, floatsidf_ppc64_mfpgpr, floatsidf_ppc64,
1257         floatunssidf_ppc64, fix_truncdfdi2, movdf_hardfloat32,
1258         movdf_hardfloat64_mfpgpr, movdf_hardfloat64, extenddftf2_fprs,
1259         extenddftf2_internal, trunctfdf2_internal2, fix_trunc_helper,
1260         abstf2_internal, movdf_update1, movdf_update2, cmpdf_internal1,
1261         cmptf_internal1, *cmptf_internal2): Condition on
1262         TARGET_DOUBLE_FLOAT.
1263         (aux_truncdfsf2, negsf2, *negsf2, abssf2, *abssf2, addsf3, subsf3,
1264         mulsf3, divsf3, sqrtsf2, copysignsf3, smaxsf3, sminsf3, movsfcc,
1265         *fselsfsf4, fixuns_truncsfsi2, fix_truncsfsi2, floatunssisf2,
1266         btruncsf2, ceilsf2, floorsf2, roundsf2, floatdisf2_internal1,
1267         floatdisf2_internal2, *movsf_hardfloat, trunctfsf2_fprs,
1268         *movsf_update1, *movsf_update2, *cmpsf_internal1): Condition on
1269         TARGET_SINGLE_FLOAT.
1270         (divsf3, sqrtsf2, divdf3, divdf3_fpr): Condition on TARGET_SIMPLE_FPU.
1271         * config/rs6000/rs6000.opt (-msingle-float): New.
1272         (-mdouble-float): New.
1273         (-msimple-fpu): New.
1274         * doc/invoke.texi (RS/6000 and PowerPC Options): Add
1275         -msingle-float, -mdouble-float, -msimple-fpu options.
1276         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Set
1277         _SOFT_DOUBLE for -msingle-float.
1278         * config.gcc: New config for target=powerpc-xilinx-eabi.
1279
1280 2008-09-23  Eric Botcazou  <ebotcazou@adacore.com>
1281
1282         * config/sparc/constraints.md: New file.
1283         * config/sparc/sparc.md: Include it.
1284         * config/sparc/sparc-protos.h (memory_ok_for_ldd): Declare.
1285         (sparc_extra_constraint_check): Delete.
1286         * config/sparc/sparc.c (register_ok_for_ldd): Minor tweaks.
1287         (memory_ok_for_ldd): New predicate.
1288         (sparc_extra_constraint_check): Delete.
1289         * config/sparc/sparc.h (REG_CLASS_FROM_LETTER): Likewise.
1290         (CONST_OK_FOR_LETTER_P): Likewise.
1291         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
1292         (EXTRA_CONSTRAINT): Likewise.
1293
1294 2008-08-23  Steve Ellcey  <sje@cup.hp.com>
1295
1296         * regrename.c (do_replace): Copy REG_POINTER value to new reg.
1297
1298 2008-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
1299
1300         * alias.c (find_base_value): Use FIND_BASE_TERM.
1301         * doc/tm.texi (FIND_BASE_TERM): Update documentation.
1302
1303 2008-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
1304
1305         * config/i386/i386.c: Include cselib.h.
1306         (ix86_pic_register_p): New function.
1307         (ix86_delegitimize_address): Use it to check for the PIC register.
1308
1309 2008-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
1310
1311         * doc/tm.texi (FIND_BASE_TERM): Expand documentation.
1312         * config/i386/i386.c (ix86_find_base_term): Don't check for
1313         SYMBOL_REF and LABEL_REF.
1314
1315 2008-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
1316
1317         * config/i386/i386.c (ix86_delegitimize_address): Wrap the
1318         constant PLUS in a CONST.
1319
1320 2008-09-23  Kai Tietz  <kai.tietz@onevision.com>
1321
1322         * config/i386/i386.c (ix86_function_ok_for_sibcall): Correct
1323         check for sibcall support for w64.
1324
1325 2008-09-23  Eric Botcazou  <ebotcazou@adacore.com>
1326
1327         * c-ppoutput.c (cb_used_define): Do nothing for a builtin node.
1328
1329 2008-09-23  Aldy Hernandez  <aldyh@redhat.com>
1330
1331         * c-tree.h: Add argument to c_objc_common_truthvalue_conversion,
1332         parser_build_binary_op.
1333         * c-decl.c (build_enumerator): Pass location to build_binary_op.
1334         * c-typeck.c (build_array_ref): Same.
1335         (parser_build_unary_op): New location argument.
1336         (pointer_diff): Pass location to build_binary_op,
1337         c_objc_common_truthvalue_conversion.
1338         (build_modify_expr): Same.
1339         (build_unary_op): New location argument.
1340         (build_binary_op): New location argument.
1341         (c_objc_common_truthvalue_conversion): Pass location to
1342         c_*common_truthvalue_conversion.
1343         * c-convert.c (convert): Same.
1344         * c-common.c (binary_op_error): New location argument.
1345         (pointer_int_sum): Pass location to build_binary_op.
1346         (c_common_truthvalue_conversion): New location argument.
1347         (warn_for_sign_compare): Same.
1348         * c-common.h: Add location argument to c_common_truthvalue_conversion,
1349         binary_op_error, build_binary_op, warn_for_sign_compare.
1350         * c-parser.c (c_parser_condition): Pass location to
1351         c_*common_truthvalue_conversion.
1352         (c_parser_conditional_expression): Save condition's location and pass
1353         it on down.
1354         (c_parser_binary_expression): Same, but for the binary operator's
1355         location.
1356         (c_parser_omp_for_loop): Pass location to
1357         c_objc_common_truthvalue_conversion.
1358
1359 2008-09-23  Martin Jambor  <mjambor@suse.cz>
1360
1361         * cgraph.c (cgraph_free_edge): Use sizeof(*e).
1362         (cgraph_node_remove_callees): New temporary f.  Hold the next item
1363         in f when looping.
1364         (cgraph_node_remove_callers): Likewise.
1365
1366         * ipa-prop.c (ipa_edge_removal_hook): Use ATTRIBUTE_UNUSED.
1367         (ipa_node_removal_hook): Likewise.
1368
1369         * doc/gimple.texi (gimple_copy_call_skip_args): Changed to
1370         gimple_call_copy_skip_args and moved to the gimple_call section.
1371         * gimple.c (gimple_copy_call_skip_args): Renamed to
1372         gimple_call_copy_skip_args.  Changed al users.
1373
1374 2008-09-22  Vladimir Makarov  <vmakarov@redhat.com>
1375
1376         * ira-color.c (start_allocno_priorities): Rename to
1377         setup_allocno_priorities.  Use costs and
1378         ALLOCNO_EXCESS_PRESSURE_POINTS_NUM instead of frequencies and
1379         range lengths.  Get rid off doubles.
1380         (ira_fast_allocations): Call start_allocno_priorities.
1381         
1382 2008-09-22  David Daney  <ddaney@avtrex.com>
1383
1384         PR target/37593
1385         * config/mips/mips.h (FUNCTION_PROFILER): Call _mcount via a
1386         register if TARGET_LONG_CALLS.
1387
1388 2008-09-22  Richard Guenther  <rguenther@suse.de>
1389
1390         PR tree-optimization/37145
1391         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Re-enable
1392         value-numbering union accesses with their offset and size only.
1393         (visit_reference_op_load): Fix simplification of inserted conversions.
1394         * tree-ssa-pre.c (find_or_generate_expression): Do not
1395         recursively generate expressions if running FRE.
1396
1397 2008-09-22  Adam Nemet  <anemet@caviumnetworks.com>
1398
1399         * config/mips/mips.h (ISA_HAS_BADDU): New macro.
1400         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el, *baddu_di<mode>):
1401         New patterns.
1402
1403 2008-09-22  Richard Guenther  <rguenther@suse.de>
1404
1405         PR tree-optimization/37145
1406         * tree-ssa-pre.c (fully_constant_expression): Simplify builtin calls.
1407         (phi_translate_1): Constant fold references.
1408
1409 2008-09-22  Ira Rosen  <irar@il.ibm.com>
1410
1411         PR tree-optimization/37482
1412         * tree-vectorizer.h (struct _slp_instance): Add new field.
1413         (SLP_INSTANCE_FIRST_LOAD_STMT): New.
1414         (get_earlier_stmt): New function.
1415         * tree-vect-analyze.c (vect_find_first_load_in_slp_instance): New
1416         function.
1417         (vect_analyze_slp_instance): Set SLP_INSTANCE_FIRST_LOAD_STMT.
1418         * tree-vect-transform.c (vect_finish_stmt_generation): Remove the
1419         asserts that GSI points to the scalar statement being vectorized.
1420         Set new statement location according to GSI.
1421         (vect_schedule_slp_instance): Use GSI of
1422         SLP_INSTANCE_FIRST_LOAD_STMT when vectorizing loads.
1423
1424 2008-09-21  Jan Hubicka  <jh@suse.cz>
1425
1426         * ipa-cp.c (ipcp_estimate_growth): Check recursive calls.
1427         (ipcp_insert_stage): Update dead_nodes bitmap.
1428
1429 2008-09-22  Danny Smith  <dannysmith@users.sourceforge.net>
1430
1431         PR target/37528 
1432         * config/i386/t-cygming (SHLIB_LC): Remove.
1433         (SHLIB_LINK): Don't add static objects to SHLIB_IMPLIB
1434         * config/i386/t-cygwin (SHLIB_LC): Specify all required libraries.
1435
1436 2008-09-22  Hans-Peter Nilsson  <hp@axis.com>
1437
1438         PR middle-end/37170
1439         PR middle-end/37280
1440         * final.c (mark_symbol_ref_as_used): New helper function.
1441         (output_operand): Instead of just looking inside MEMs for
1442         SYMBOL_REFs, use new helper function and for_each_rtx.
1443         * varasm.c (assemble_external): Move #ifndef ASM_OUTPUT_EXTERNAL
1444         to after weak-handling.  Don't mark decls with TREE_STATIC as weak.
1445         Make head comment more general.
1446         * config/darwin.c (machopic_output_indirection): Handle weak
1447         references here, like in assemble_external.
1448
1449 2008-09-21  Eric Botcazou  <ebotcazou@adacore.com>
1450
1451         * config/sparc/sparc-protos.h (gen_compare_operator): Declare.
1452         (sparc_emit_float_lib_cmp): Change return type.
1453         * config/sparc/sparc.c (gen_compare_reg): Add comment about TFmode.
1454         (gen_compare_operator): New function.
1455         (sparc_emit_float_lib_cmp): Return the new operator to be used in
1456         the comparison sequence.  Minor tweaks.
1457         * config/sparc/sparc.md (seq, sne, sgt, slt, sge, sle): Assert
1458         that the final operator and the result of sparc_emit_float_lib_cmp
1459         match for software TFmode; use emit_insn in lieu of emit_jump_insn.
1460         (beq, bne, bgt, blt, bge, ble, bunordered, bordered, bungt, bunlt,
1461         buneq, bunge, bunle, bltgt): Assert that the final operator and the
1462         result of sparc_emit_float_lib_cmp match for software TFmode.
1463         (movqicc, movhicc, movsicc, movdicc): Merge into...
1464         (mov<I:mode>cc): ...this.
1465         (movsfcc, movdfcc, movtfcc): Merge into...
1466         (mov<F:mode>cc): ...this.
1467         (movqi_cc_sp64, movhi_cc_sp64, movsi_cc_sp64, movdi_cc_sp64): Merge
1468         into...
1469         (mov<I:mode>_cc_v9): ...this.
1470         (movdi_cc_sp64_trunc): Delete.
1471         (movqi_cc_reg_sp64, movhi_cc_reg_sp64, movsi_cc_reg_sp64,
1472         movdi_cc_reg_sp64): Merge into...
1473         (mov<I:mode>_cc_reg_sp64): ...this.
1474         (movsf_cc_sp64): Rename into...
1475         (movsf_cc_v9): ...this.
1476         (movdf_cc_sp64): Rename into...
1477         (movdf_cc_v9): ...this.
1478         (movtf_cc_hq_sp64): Rename into...
1479         (movtf_cc_hq_v9): ...this.
1480         (movtf_cc_sp64): Rename into...
1481         (movtf_cc_v9): ...this.  Adjust for renaming of movdf_cc_sp64.
1482
1483 2008-09-21  Diego Novillo  <dnovillo@google.com>
1484
1485         * doc/gccint.texi: Include generic.texi and gimple.texi.
1486         Re-order index.
1487         * doc/tree-ssa.texi (GENERIC): Move to generic.texi.
1488         (GIMPLE): Move to gimple.texi.
1489         (Annotations): Remove references to to stmt_ann_t and
1490         ssa_name_ann_t.
1491         (SSA Operands): Rename from 'Statement Operands'.
1492         * doc/generic.texi: New.
1493         * doc/gimple.texi: New.
1494         * Makefile.in (TEXI_GCCINT_FILES): Add generic.texi and gimple.texi.
1495         * Makefile.in (TEXI_GCCINT_FILES):
1496         * gimple.c (gimple_copy_call_skip_args): Rename from
1497         giple_copy_call_skip_args.  Update all users.
1498         * doc/gimple.texi (gimple_copy_call_skip_args): Document.
1499
1500 2008-09-21  Ira Rosen  <irar@il.ibm.com>
1501
1502         PR tree-optimization/37539
1503         * tree-vect-transform.c (vect_transform_strided_load): Save vector
1504         statement in related statement field only for the first load of the
1505         group of loads with the same data reference.
1506
1507 2008-09-20  Adam Nemet  <anemet@caviumnetworks.com>
1508
1509         * config/mips/mips.h (TUNE_OCTEON): New macro.
1510         * config/mips/mips.c (mips_issue_rate): Return 2 for Octeon.
1511         (mips_multipass_dfa_lookahead): Return 2 for Octeon.
1512         * config/mips/octeon.md: New file.
1513         * config/mips/mips.md: Include octeon.md.  Restore
1514         semi-alphabetical order of include files.
1515
1516 2008-09-20  H.J. Lu  <hongjiu.lu@intel.com>
1517
1518         PR target/37571
1519         * config/i386/i386.md (*jcc_fused_1): Removed.
1520         (*jcc_fused_2): Likewise.
1521         (*jcc_fused_3): Likewise.
1522         (*jcc_fused_4): Likewise.
1523
1524 2008-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
1525
1526         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Define.
1527         (IRA_COVER_CLASSES): Refer to TARGET_IRA_COVER_CLASSES.
1528         * target.h (gcc_target): Add ira_cover_classes.
1529         * ira.c: Remove IRA_COVER_CLASSES guards.
1530         (setup_cover_and_important_classes): Use targetm.ira_cover_classes
1531         instead of IRA_COVER_CLASSES.
1532         (setup_cover_and_important_classes): Remove IRA_COVER_CLASSES guard.
1533         (setup_class_translate): Likewise.
1534         (setup_reg_class_intersect_union): Likewise.
1535         (find_reg_class_closure): Replace IRA_COVER_CLASSES guard with a
1536         test of targetm.ira_cover_classes.
1537         * opts.c (decode_options): Use targetm.ira_cover_classes instead
1538         of IRA_COVER_CLASSES.
1539         * target-def.h (TARGET_IRA_COVER_CLASSES): Define.
1540         (TARGET_INITIALIZER): Include it.
1541         * targhooks.h (default_ira_cover_classes): Declare.
1542         * targhooks.c (default_ira_cover_classes): New function.
1543
1544 2008-09-19  Bob Wilson  <bob.wilson@acm.org>
1545         
1546         * config/xtensa/xtensa.md (reload<mode>_literal): Handle MEM operands.
1547         
1548 2008-09-19  Ian Lance Taylor  <iant@google.com>
1549
1550         * varasm.c (narrowing_initializer_constant_valid_p): Return
1551         NULL_TREE if ENDTYPE is not an integer.
1552
1553 2008-09-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1554
1555         PR tree-opt/30930
1556         * tree-ssa.c (execute_update_addresses_taken): Also update
1557         DECL_GIMPLE_REG_P for vector and complex types.
1558
1559 2008-09-19  Andrew MacLeod  <amacleod@redhat.com>
1560             Jan Hubicka  <jh@suse.cz>
1561
1562         PR middle-end/37567
1563         * tree-ssa-ter.c (free_temp_expr_table): Make sure fields are actually
1564         empty before freeing them.
1565         (find_replaceable_exprs): Move asserts to free_temp_expr_table.
1566
1567 2008-09-18  Bob Wilson  <bob.wilson@acm.org>
1568
1569         * configure.ac: Add HAVE_AS_TLS check for Xtensa.
1570         * config/xtensa/predicates.md (tls_symbol_operand): New.
1571         * config/xtensa/xtensa.c (TARGET_HAVE_TLS): Define.
1572         (TARGET_CANNOT_FORCE_MEM): Define.
1573         (xtensa_tls_symbol_p): New.
1574         (xtensa_emit_move_sequence): Check for and legitimize TLS addresses.
1575         (xtensa_legitimate_address_p): Disallow constant pool TLS references.
1576         (xtensa_tls_module_base): New.
1577         (xtensa_call_tls_desc): New.
1578         (xtensa_legitimize_tls_address): New.
1579         (xtensa_legitimize_address): Handle TLS symbols.
1580         (xtensa_tls_referenced_p_1): New.
1581         (xtensa_tls_referenced_p): New.
1582         (xtensa_output_addr_const_extra): Handle UNSPEC_TPOFF and
1583         UNSPEC_DTPOFF.
1584         (XTENSA_BUILTIN_THREAD_POINTER): New.
1585         (XTENSA_BUILTIN_SET_THREAD_POINTER): New.
1586         (xtensa_init_builtins): Set NOTHROW and READONLY for umulsidi3
1587         builtin.  Add declarations for __builtin_thread_pointer and
1588         __builtin_set_thread_pointer.
1589         (xtensa_fold_builtin): Recognize new builtins.
1590         (xtensa_expand_builtin): Expand new builtins.
1591         * config/xtensa/xtensa.h (XCHAL_HAVE_THREADPTR): Define default value.
1592         (TARGET_THREADPTR): Define.
1593         (HAVE_AS_TLS): Define default value.
1594         (LEGITIMATE_CONSTANT_P): Disallow TLS references.
1595         * config/xtensa/xtensa.md (UNSPEC_TPOFF, UNSPEC_DTPOFF): New.
1596         (UNSPEC_TLS_FUNC, UNSPEC_TLS_ARG, UNSPEC_TLS_CALL, UNSPEC_TP): New.
1597         (UNSPECV_SET_TP): New.
1598         (sym_TPOFF, sym_DTPOFF): New.
1599         (load_tp, set_tp, tls_func, tls_arg, tls_call): New.
1600         * config/xtensa/xtensa-protos.h (xtensa_tls_referenced_p): Declare.
1601         * configure: Regenerated.
1602         
1603 2008-09-18  H.J. Lu  <hongjiu.lu@intel.com>
1604
1605         PR target/37394
1606         * config/ia64/ia64.c (ia64_optimization_options): Move
1607         checking and setting flag_schedule_insns_after_reload and
1608         ia64_flag_schedule_insns2 back to ...
1609         (ia64_override_options): Here.
1610
1611 2008-09-18  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1612
1613         PR rtl-opt/37451
1614         * loop-doloop.c (doloop_modify): New argument zero_extend_p and
1615         zero extend count after the correction to it is done.
1616         (doloop_optimize): Update call to doloop_modify, don't zero extend
1617         count before call.
1618
1619 2008-09-18  Martin Jambor  <mjambor@suse.cz>
1620
1621         * ipa-cp.c (ipcp_estimate_growth): Return 0 instead of false.
1622
1623         * ipa-prop.c: Correct comments.
1624         * ipa-prop.h: Likewise.
1625
1626 2008-09-18  Jan Hubicka  <jh@suse.cz>
1627
1628         PR middle-end/37448
1629         * ipa-reference.c (ipa_reference_local_vars_info_d,
1630         ipa_reference_global_vars_info_d,
1631         ipa_reference_local_vars_info_t, ipa_reference_global_vars_info_t,
1632         ipa_reference_vars_info_t): Move here from ipa-reference.h
1633         (node_duplication_hook_holder, node_removal_hook_holder): New.
1634         (get_reference_vars_info_from_cgraph): Rename to ...
1635         (get_reference_vars_info): ... this one, use cgraph uids.
1636         (get_local_reference_vars_info, get_global_reference_vars_info):
1637         Use cgraph instead of decl.
1638         (ipa_reference_get_read_local, ipa_reference_get_written_local):
1639         Remove.
1640         (ipa_reference_get_read_global, ipa_reference_get_not_read_global
1641         ipa_reference_get_written_global,
1642         ipa_reference_get_not_written_global): Use cgraph argument.
1643         (check_call): Simplify avail check.
1644         (scan_stmt_for_static_refs): Update.
1645         (propagate_bits): Update.
1646         (merge_callee_local_info): Remove.
1647         (init_function_info): Use cgraph nodes.
1648         (clean_function_local_data): Break out from ...
1649         (clean_function): ... here.
1650         (copy_local_bitmap, copy_global_bitmap): New functions.
1651         (duplicate_node_data, remove_node_data): New functions.
1652         (generate_summary): Register hooks; use visibility instead of
1653         master clones.
1654         (propafate): Use cgraph nodes; copy bitmap to each node in cycle.
1655         * ipa-reference.h (ipa_reference_local_vars_info_d,
1656         ipa_reference_global_vars_info_d,
1657         ipa_reference_local_vars_info_t, ipa_reference_global_vars_info_t,
1658         ipa_reference_vars_info_t): Move to ipa-reference.c
1659         (ipa_reference_get_read_local, ipa_reference_get_written_local):
1660         Remove.
1661         (ipa_reference_get_read_global, ipa_reference_get_written_global,
1662         ipa_reference_get_not_read_global,
1663         ipa_reference_get_not_written_global): Update prototype.
1664         * ipa-pure-const.c (funct_state_vec): Turn into VECtor.
1665         (init_state): Remove.
1666         (node_duplication_hook_holder, node_removal_hook_holder): New.
1667         (get_function_state, set_function_state): Use VECtor.
1668         (analyze_function): Check body availability.
1669         (add_new_function): Likewise.
1670         (duplicate_node_data, remove_node_data): New.
1671         (generate_summary): Register hooks; do not care about clones.
1672         (propafate): Do not care about clones; recursive functions are
1673         not looping.
1674         * ipa-utils.c (searchc, ipa_utils_reduced_inorder): Do not skip clones.
1675         * ipa-prop.c (edge_removal_hook_holder, node_removal_hook_holder,
1676         * edge_duplication_hook_holder, node_duplication_hook_holder): Make
1677         static.
1678         * tree-flow.h (function_ann_d): Remove reference_vars_info.
1679         * tree-ssa-opreands.c (add_call_clobber_ops, add_call_read_ops):
1680         Update call of ipa-reference accesors.
1681
1682 2008-09-18  Simon Baldwin  <simonb@google.com>
1683
1684         * c-opts.c (c_common_handle_option): Add handling for
1685         -Wbuiltin-macro-redefined command line option.
1686         * c.opt: Added builtin-macro-redefined option.
1687         * doc/invoke.texi (Warning Options): Add -Wbuiltin-macro-redefined
1688         documentation.
1689
1690 2008-09-18  Richard Guenther  <rguenther@suse.de>
1691
1692         PR tree-optimization/37258
1693         * tree-ssa-sccvn.c (vn_phi_compute_hash): Include the precision
1694         and signedness for integral types.
1695         (vn_phi_eq): Require compatible types.
1696
1697 2008-09-18  Jakub Jelinek  <jakub@redhat.com>
1698
1699         PR debug/34037
1700         * gimplify.c (gimplify_type_sizes): When not optimizing, ensure
1701         TYPE_MIN_VALUE and TYPE_MAX_VALUE is not is not DECL_IGNORED_P
1702         VAR_DECL.
1703         * cfgexpand.c (expand_used_vars): Keep DECL_ARTIFICIAL
1704         !DECL_IGNORED_P vars in local_decls list for instantiate_decls,
1705         ggc_free other TREE_LIST nodes from that chain.
1706         * function.c (instantiate_decls): Instantiate also DECL_RTL
1707         of vars in cfun->local_decls, free that list afterwards.
1708
1709 2008-09-18  Eric Botcazou  <ebotcazou@adacore.com>
1710
1711         * config/sparc/sol2.h (WIDEST_HARDWARE_FP_SIZE): Move to...
1712         * config/sparc/sparc.h (WIDEST_HARDWARE_FP_SIZE): ...here.
1713
1714 2008-09-18  Andrew MacLeod  <amacleod@redhat.com>
1715
1716         * tree-outof-ssa.c (eliminate_useless_phis): Fix formatting.
1717         * tree-flow-.h (struct immediate_use_iterator_d): Fix comment.
1718
1719 2008-09-18  Andrew MacLeod  <amacleod@redhat.com>
1720
1721         PR tree-optimization/37102
1722         * tree-outof-ssa.c (remove_gimple_phi_args): Remove all the PHI args
1723         from a node. Check to see if another PHI is dead.
1724         (eliminate_useless_phis): Rename from eliminate_virtual_phis and 
1725         remove real PHIs which have no uses.
1726         (rewrite_out_of_ssa): Call eliminate_useless_phis.
1727
1728 2008-09-18  Richard Guenther  <rguenther@suse.de>
1729
1730         PR middle-end/37284
1731         * tree-cfg.c (remove_useless_stmts_1): Remove
1732         GIMPLE_CHANGE_DYNAMIC_TYPE if not optimizing.
1733
1734 2008-09-18  Nick Clifton  <nickc@redhat.com>
1735
1736         * config/frv/frv.h (IRA_COVER_CLASSES): Define.
1737         (SECONDARY_INPUT_RELOAD_CLASS): Omit unused argument in call
1738         to frv_secondary_reload_class.
1739         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
1740         * config/frv/frv.c (TARGET_SECONDARY_RELOAD): Define.
1741         (frv_secondary_reload_class): Omit unused parameter.
1742         (frv_secondary_reload): New function.  Handle the case when
1743         secondary_reload_class() is called before the reload_(in|out)
1744         _optabs have been initialised.
1745         * config/frv/frv-protos.h (frv_secondary_reload_class): Omit
1746         unused parameter.
1747         * config/frv/frv.md: Define an exclusion set between fr550_m0
1748         and fr550_f0.
1749
1750 2008-09-18  Richard Guenther  <rguenther@suse.de>
1751
1752         PR tree-optimization/37456
1753         * tree-ssa-reassoc.c (build_and_add_sum): If the stmt we
1754         want to insert after ends a BB insert on the single fallthru
1755         outgoing edge.
1756
1757 2008-09-18  Andreas Krebbel  <krebbel1@de.ibm.com>
1758
1759         * doc/invoke.texi: Document -mhard-dfp, -mno-hard-dfp.
1760         Mention -march=z9-109, z9-ec and z10.
1761
1762 2008-09-18  Uros Bizjak  <ubizjak@gmail.com>
1763
1764         PR rtl-optimization/37544
1765         * regrename.c (maybe_mode_change): Exit early when copy_mode
1766         is narrower than orig_mode and narrower than new_mode.
1767
1768 2008-09-18  Alexander Monakov  <amonakov@ispras.ru>
1769
1770         PR middle-end/37499
1771         * sched-int.h (struct _haifa_insn_data): Remove unused field ref_count.
1772
1773         * sched-rgn.c (ref_counts): Remove.
1774         (insn_referenced): New static variable.
1775         (INSN_REF_COUNT): Remove.
1776         (sched_run_compute_dependencies): Use insn_referenced instead of
1777         INSN_REF_COUNT.
1778         (add_branch_dependences): Likewise.  Delete dead assignment.
1779
1780 2008-09-17  Adam Nemet  <anemet@caviumnetworks.com>
1781
1782         * haifa-sched.c (dep_cost_1): Recognize the producer even if the
1783         consumer is an asm.  Add comment why this is important.
1784         (choose_ready): Add comment to the "INSN_CODE (insn) >= 0 ||
1785         recog_memoized (insn) < 0" assert.  Put ENABLE_CHECKING around it.
1786
1787 2008-09-17  Joseph Myers  <joseph@codesourcery.com>
1788
1789         * expr.c (emit_group_store): Do not shift before moving via a
1790         stack slot.
1791
1792 2008-09-17  Eric Botcazou  <ebotcazou@adacore.com>
1793
1794         * varasm.c (initializer_constant_valid_p): Forbid view-conversions
1795         from aggregate to non-aggregate type if the bit pattern is not fully
1796         preserved afterwards.
1797
1798 2008-09-17  Richard Guenther  <rguenther@suse.de>
1799
1800         * tree-cfg.c (verify_types_in_gimple_assign): Rename to ...
1801         (verify_gimple_assign): ... this.  Split into ...
1802         (verify_gimple_assign_unary): ... this,
1803         (verify_gimple_assign_binary): ... that,
1804         (verify_gimple_assign_single): ... and this.
1805         (verify_types_in_gimple_stmt): Call verify_gimple_assign.
1806         Fix GIMPLE_CHANGE_DYNAMIC_TYPE handling.
1807         (verify_types_in_gimple_min_lval): Handle TARGET_MEM_REF.
1808         (verify_types_in_gimple_reference): Be forgiving with
1809         VIEW_CONVERT_EXPRs.
1810         (verify_gimple_phi): Deal with virtual operands.
1811
1812         * tree.def (PREDICT_EXPR): Change to tcc_expression.
1813
1814 2008-09-17  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1815
1816         * tree.c (get_callee_fndecl): Don't call the language hook.
1817         * langhooks.h (lang_hooks): Remove lang_get_callee_fndecl.
1818         * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): Kill.
1819         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_GET_CALLEE_FNDECL.
1820
1821 2008-09-17  Jakub Jelinek  <jakub@redhat.com>
1822
1823         * tree.c (protected_set_expr_location): Don't unnecessarily
1824         check for error_mark_node.
1825
1826 2008-09-17  Art Haas  <ahaas@impactweather.com>
1827
1828         * ipa-reference.c (analyze_function): Declare step only if
1829         ENABLE_CHECKING is defined.
1830
1831 2008-09-17  Jan Hubicka  <jh@suse.cz>
1832
1833         PR c++/18071
1834         * tree.h (DECL_INLINE): remove.
1835         (DECL_DECLARED_INLINE_P): Update docs.
1836         (DECL_NO_INLINE_WARNING_P): new.
1837         (tree_function_decl): Replace inline_flag by no_inline_warning_flag.
1838         * tree-inline.c (inlinable_function_p): Set DECL_NO_INLINE_WARNING_P.
1839
1840 2008-09-17  Jakub Jelinek  <jakub@redhat.com>
1841             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1842
1843         PR bootstrap/37441
1844         * dwarf2out.c (dwarf2out_do_cfi_asm) [MIPS_DEBUGGING_INFO]: Return
1845         false.
1846
1847 2008-09-17  Jan Hubicka  <jh@suse.cz>
1848
1849         * ipa-reference.c (ipa_obstack): Remove.
1850         (local_info_obstack, global_info_obstack): New.
1851         (add_static_var): We now handle variables only.
1852         (mark_address_taken, mark_load, mark_store): New functions based on ...
1853         (check_operand): ... remove.
1854         (get_asm_stmt_operands): Rename to ...
1855         (check_asm_memory_clobber): ... this. Look only for memory clobber.
1856         (scan_stmt_for_static_refs): Rewrite.
1857         (scan_op_for_static_refs): Rename to ...
1858         (scan_initializer_for_static_refs): do not look for VAR_DECL
1859         initializers; stop recursion on types and decls.
1860         (ipa_init): Use proper obstacks.
1861         (analyze_variable): Use scan_initializer_for_static_refs.
1862         (init_function_info): Use local obstack.
1863         (analyze_function): Simplify.
1864         (add_new_function): We don't need visited_nodes obstack.
1865         (generate_summary): Use proper obstacks; cleanup after propagation.
1866
1867 2008-09-17  Richard Guenther  <rguenther@suse.de>
1868
1869         PR middle-end/37385
1870         PR tree-optimization/37491
1871         * alias.c (get_alias_set): Use the canonical type.
1872         * tree-vect-transform.c (vectorizable_store): Use the type of
1873         the lhs for the vector type.  Adjust checking.
1874         (vectorizable_load): Adjust checking.
1875
1876 2008-09-16  Jakub Jelinek  <jakub@redhat.com>
1877             Adam Nemet  <anemet@caviumnetworks.com>
1878
1879         PR rtl-optimization/37483
1880         * ifcvt.c (noce_try_sign_mask): Use if_info->test_bb instead of
1881         if_info->insn_b's bb as argument to optimize_bb_for_speed_p.
1882         Rearrange code to better match the original comment.  Check
1883         t_unconditional first.  Improve comment.
1884
1885 2008-09-16  Jakub Jelinek  <jakub@redhat.com>
1886
1887         PR c/37529
1888         * gimplify.c (gimplify_expr) <case GOTO_EXPR>: If gimplification of
1889         GOTO_DESTINATION failed, don't create GIMPLE_GOTO.
1890
1891         PR c++/37530
1892         * gimplify.c (gimplify_expr) <case TRY_CATCH_EXPR>: Don't create
1893         GIMPLE_TRY if cleanup sequence is empty.
1894
1895 2008-09-16  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1896
1897         PR middle-end/37263
1898         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Prefer the
1899         eliminate IV if the cost are the same.
1900
1901 2008-09-16  Richard Guenther  <rguenther@suse.de>
1902
1903         PR middle-end/37380
1904         * tree-sra.c (sra_build_assignment): Do not call the gimplifier
1905         if not necessary.
1906
1907 2008-09-16  Richard Guenther  <rguenther@suse.de>
1908
1909         PR tree-optimization/37508
1910         * tree-vrp.c (simplify_truth_ops_using_ranges): Also allow -1.
1911
1912 2008-09-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1913
1914         * config/sh/sh.md (movsf_ie): Fix length for TARGET_SH2A.
1915
1916 2008-09-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1917
1918         * config/rs6000/rs6000.md (floatsidf2): Rewrite PowerPC64 case to
1919         use gen_floatdidf2 directly.
1920         (floatunssidf2): Likewise.
1921         (floatsidf_ppc64_mfpgpr): Remove.
1922         (floatsidf_ppc64): Remove.
1923         (floatunssidf_ppc64): Remove.
1924
1925 2008-09-15  Jakub Jelinek  <jakub@redhat.com>
1926
1927         * ira-color.c (finish_cost_update): Free update_cost_queue_elems
1928         rather than update_cost_queue.
1929
1930         * tree-ssa-alias.c (init_alias_info): Call bitmap_obstack_release
1931         in every call starting with the second one, instead of only when
1932         alias_bitmap_obstack.elements != NULL.
1933
1934         * tree-predcom.c (filter_suitable_components): Free all refs in
1935         act->refs vector before calling release_component.
1936         (add_ref_to_chain): Free ref if not adding it to chain->refs.
1937
1938         * tree-data-ref.c (free_subscripts): Free all subscript objects.
1939
1940         * tree-loop-linear.c (linear_transform_loops): Initialize
1941         lambda_obstack only after calling perfect_loop_nest_depth.
1942         Goto free_and_continue instead of just continue for later failures.
1943
1944         PR middle-end/37479
1945         * doc/invoke.texi: Document -fno-dwarf2-cfi-asm.
1946
1947         PR libmudflap/36397
1948         * tree-mudflap.c (mf_xform_derefs_1): Handle VIEW_CONVERT_EXPR.
1949
1950 2008-09-14  Andreas Schwab  <schwab@suse.de>
1951
1952         * tree-call-cdce.c (check_target_format): Accept Motorola formats.
1953
1954 2008-09-14  Jan Hubicka  <jh@suse.cz>
1955
1956         * invoke.texi (-fconserve-stack): Document.
1957         * opts.c (decode_options): Handle conserve_stack.
1958         * common.opt (fconvserve_stack): New.
1959
1960 2008-09-14  David Edelsohn  <edelsohn@gnu.org>
1961
1962         * config.host: Add x-aix to host_xmake_file.
1963         * config/rs6000/t-aix52: Do not override LDFLAGS.
1964         * config/rs6000/x-aix: New file.
1965
1966 2008-09-14  Andy Hutchinson  <hutchinsonandy@aim.com>
1967
1968         PR target/19636
1969         PR target/24894
1970         PR target/31644
1971         PR target/31786
1972         * config/avr/avr.c (legitimate_address_p): Fix problem where subreg
1973         is not recognized as a valid register usage. Allow REG_X to be used
1974         as a base pointer.
1975         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Remove code that
1976         forces a reload when using a base register.
1977
1978 2008-09-14  Danny Smith  <dannysmith@users.sourceforge.net>
1979
1980         * config/i386/cygming-crtend.c (register_frame_ctor): If
1981         DEFAULT_USE_CXA_ATEXIT, register __gcc_deregister_frame
1982         directly with atexit.
1983         (deregister_frame_ctor): Rename to ...
1984         (deregister_frame_dtor): Use to call __gcc_deregister_frame
1985         if !DEFAULT_USE_CXA_ATEXIT.
1986
1987 2008-09-13  Jan Hubicka  <jh@suse.cz>
1988
1989         * cgraph.c: Include value-prof.h
1990         * Makefile.in (cgraph.o): Add value-prof.h dependency.
1991
1992 2008-09-13  Jan Hubicka  <jh@suse.cz>
1993
1994         PR middle-end/32581
1995         * tree-profile.c (add_abnormal_goto_call_edges): New function.
1996         (tree_gen_interval_profiler, tree_gen_pow2_profiler,
1997         tree_gen_one_value_profiler, tree_gen_average_profiler,
1998         tree_gen_ic_func_profiler, tree_gen_ior_profiler): Use it.
1999
2000 2008-09-13  Jan Hubicka  <jh@suse.cz>
2001
2002         * i386.c (ix86_expand_movmem, ix86_expand_movstr): Avoid processing
2003         too many bytes on misalligned blocks.
2004
2005 2008-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2006
2007         * doc/cfg.texi: Fix some typos.
2008         * doc/extend.texi: Likewise.
2009         * doc/install.texi: Likewise.
2010         * doc/invoke.texi: Likewise.
2011         * doc/rtl.texi: Likewise.
2012         * doc/tree-ssa.texi: Likewise.
2013
2014 2008-09-13  Richard Guenther  <rguenther@suse.de>
2015
2016         PR middle-end/30141
2017         * tree-nested.c (finalize_nesting_tree_1): Generate valid
2018         gimple stores for memory rhs.
2019
2020 2008-09-13  H.J. Lu  <hongjiu.lu@intel.com>
2021
2022         PR rtl-optimization/37489
2023         * cse.c (fold_rtx): Don't return const_true_rtx for float
2024         compare if FLOAT_STORE_FLAG_VALUE is undefined.
2025
2026 2008-09-13  Jan Hubicka  <jh@suse.cz>
2027
2028         PR tree-optimization/37392
2029         * tree-inline.c (remap_gimple_stmt): Do not remap return value.
2030
2031 2008-09-13  Martin Jambor  <mjambor@suse.cz>
2032             Jan Hubicka  <jh@suse.cz>
2033
2034         * cgraph.c (free_edges): New variable.
2035         (NEXT_FREE_EDGE): New macro.
2036         (cgraph_free_edge): New function.
2037         (cgraph_remove_edge): Call cgraph_remove_edge_1.
2038         (cgraph_node_remove_callees): Likewise.
2039         (cgraph_node_remove_callers): Likewise.
2040         (cgraph_create_edge): Reuse edges from the free list.  Do not
2041         update uid if doing so.
2042         (cgraph_remove_*_hook): Add free call.
2043
2044 2008-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
2045
2046         * ira-color.c (conflict_allocno_vec): Delete.
2047         (update_cost_queue_elem): New structure.
2048         (update_cost_queue): New variable.
2049         (update_cost_queue_tail): Likewise.
2050         (update_cost_queue_elems): Likewise.
2051         (allocno_update_cost_check): Delete.
2052         (initiate_cost_update): Allocate update_cost_queue_elems
2053         instead of allocno_update_cost_check.
2054         (finish_cost_update): Update the free()s accordingly.
2055         (start_update_cost): New function.
2056         (queue_update_cost): Likewise.
2057         (get_next_update_cost): Likewise.
2058         (update_copy_costs_1): Inline into...
2059         (update_copy_costs): ...here.  Use a queue instead of recursive calls.
2060         Use cover_class instead of ALLOCNO_COVER_CLASS (another_allocno),
2061         once we've established they are equal.  Don't allocate update
2062         costs if there is nothing to add to them.
2063         (update_conflict_hard_regno_costs): Remove ALLOCNO and
2064         DIVISOR arguments.  Use a queue instead of recursive calls;
2065         process all the allocnos in the initial queue, rather than
2066         a single allocno.
2067         (assign_hard_reg): Use queue_update_cost instead of
2068         conflict_allocno_vec.  Queue coalesced allocnos instead
2069         of calling update_conflict_hard_regno_costs for each one.
2070         Just call update_conflict_hard_regno_costs once for the
2071         entire queue.
2072         (ira_color): Remove conflict_allocno_vec handling.
2073
2074 2008-09-12  Sebastian Pop  <sebastian.pop@amd.com>
2075
2076         PR tree-optimization/37484
2077         * graphite.c (scop_record_loop): Use snprintf instead of sprintf.
2078         (save_var_name): Same.
2079         (initialize_cloog_names): Same.
2080         (initialize_cloog_names): Same.
2081
2082 2008-09-12  Sebastian Pop  <sebastian.pop@amd.com>
2083
2084         * tree-scalar-evolution.c (set_instantiated_value): Set
2085         instantiated_below.
2086
2087 2008-09-12  Vladimir Makarov  <vmakarov@redhat.com>
2088
2089         PR rtl-opt/37377
2090
2091         * ira-build.c (common_loop_tree_node_dominator): Remove.
2092         (copy_live_ranges_to_removed_store_destinations): New function.
2093         (regno_top_level_allocno_map): Move to top level from ...
2094         (ira_flattening): ... here.  Use
2095         copy_live_ranges_to_removed_store_destinations.
2096
2097         * ira-emit.c (generate_edge_moves): Fix a comment.
2098
2099 2008-09-12  Anatoly Sokolov  <aesok@post.ru>
2100
2101         PR target/37466
2102         * config/avr/avr.md (movsi_lreg_const peephole2): Add match_dup for
2103         scratch register after 'set' pattern.
2104
2105 2008-09-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2106
2107         * emit-rtl.c (set_reg_attrs_from_value): Fix invalid alignment
2108         information passed to mark_reg_pointer.
2109         * explow.c (force_reg): Likewise.
2110
2111 2008-09-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2112
2113         * config/spu/spu.c (spu_override_options): Default to -mno-safe-hints
2114         when building for the celledp architecture.
2115
2116 2008-09-12  Richard Guenther  <rguenther@suse.de>
2117
2118         * tree-vrp.c (simplify_truth_ops_using_ranges): Fix types.
2119
2120 2008-09-12  Eric Botcazou  <ebotcazou@adacore.com>
2121
2122         PR rtl-optimization/37424
2123         * ira-color.c (coalesced_pseudo_reg_slot_compare): Untie by comparing
2124         the regnos instead of the addresses.
2125
2126 2008-09-11  Janis Johnson  <janis187@us.ibm.com>
2127
2128         * ginclude/float.h (DEC_EVAL_METHOD): Correct the macro name.
2129
2130 2008-09-11  Richard Guenther  <rguenther@suse.de>
2131
2132         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Avoid
2133         entering the weaker equivalence recording.
2134
2135         * tree-ssa-phiprop.c (propagate_with_phi): Fix tuplification.
2136
2137 2008-09-11  Jeff Law <law@redhat.com>
2138
2139         * reload1.c (alter_reg): Undo the BYTE_BIG_ENDIAN correction performed
2140         by assign_stack_local on the IRA path for stack slot sharing
2141         as well as the non-IRA path.
2142
2143 2008-09-11  Uros Bizjak  <ubizjak@gmail.com>
2144
2145         * config/i386/i386.h: Fix whitespace issues.
2146
2147 2008-09-11  Martin Jambor  <mjambor@suse.cz>
2148
2149         * ipa-prop.h (struct ipa_param_flags): Removed.
2150         (struct ipa_param_descriptor): New structure.
2151         (struct ipa_node_params): ipcp_lattices, param_decls and
2152         param_flags moved to ipa_param_description.
2153         (ipa_get_ith_param): Renamed to ipa_get_param, changed to access
2154         descriptors.  Renamed all users.
2155         (ipa_is_ith_param_modified): Renamed to ipa_is_param_modified,
2156         changed to access descriptors.  Renamed all users.
2157         (ipa_is_ith_param_called): Renamed to ipa_is_param_called, changed
2158         to access descriptors. Renamed all users.
2159         * ipa-cp.c (ipcp_init_cloned_node): Call
2160         ipa_initialize_node_params instead of ipa_count_formal_params and
2161         ipa_create_param_decls_array.
2162         (ipcp_analyze_node): Likewise.
2163         (ipcp_get_ith_lattice): Renamed to ipcp_get_lattice, changed to access
2164         descriptors.  Renamed all users.
2165         (ipcp_initialize_node_lattices): Remove allocation.
2166         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
2167         ipa_initialize_node_params instead of ipa_count_formal_params and
2168         ipa_create_param_decls_array.
2169         * ipa-prop.c (ipa_create_param_decls_array): Renamed to
2170         ipa_populate_param_decls, made static, added parameter info,
2171         renamed mt to node, removed allocation, changed to use
2172         descriptors.
2173         (ipa_count_formal_params): Made static, added parameter info,
2174         renamed mt to node.
2175         (ipa_initialize_node_params): New function.
2176         (ipa_check_stmt_modifications): Changed to use descriptors.
2177         (ipa_detect_param_modifications): Removed allocation, changed to
2178         use descriptors.
2179         (ipa_note_param_call): Changed to use descriptors.
2180         (ipa_analyze_params_uses): Removed allocation.
2181         (ipa_free_node_params_substructures): Changed to use descriptors.
2182         (ipa_edge_duplication_hook): Use the unused attribute.
2183         (ipa_node_duplication_hook): Use the unused attribute, changed to
2184         use descriptors, changed to duplicate descriptors.
2185
2186         * ipa-inline.c (cgraph_mark_inline_edge): New parameter new_edges,
2187         changed all callers.  Call ipa_propagate_indirect_call_infos if doing
2188         indirect inlining.  Made static.
2189         (cgraph_decide_inlining): Freeing ipa-prop structures after inlining
2190         functions called only once.
2191         (cgraph_decide_recursive_inlining): Don't call
2192         ipa_propagate_indirect_call_infos, pass new_edges to
2193         cgraph_mark_inline_edge instead.
2194         (cgraph_decide_inlining_of_small_functions): Don't call
2195         ipa_propagate_indirect_call_infos, pass new_edges to
2196         cgraph_mark_inline_edge instead.
2197         (cgraph_decide_inlining): Don't call
2198         ipa_propagate_indirect_call_infos.
2199         * ipa-prop.c: Check that vectors are allocated.
2200
2201         * ipa-inline.c (cgraph_mark_inline_edge): Returns boolean, true
2202         iff a new cgraph edges have been created.
2203         (cgraph_decide_inlining): New variable redo_always_inline.
2204         Flattening and always_inlining loop until callgraph stabilizes.
2205         * ipa-prop.c (update_call_notes_after_inlining): Returns boolean,
2206         true iff new cgraph edges have been created.
2207         (propagate_info_to_inlined_callees): Likewise.
2208         (ipa_propagate_indirect_call_infos): Likewise.
2209
2210 2008-09-11  Richard Guenther  <rguenther@suse.de>
2211
2212         * tree-vectorizer.c (slpeel_add_loop_guard): Fix types.
2213         (set_prologue_iterations): Likewise.
2214         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref):
2215         Likewise.
2216         (vect_update_init_of_dr): Likewise.
2217         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Fix
2218         type verification.
2219         * fold-const.c (fold_unary): Do not generate calculations
2220         in sub-types.
2221
2222 2008-09-11  Paolo Bonzini  <bonzini@gnu.org>
2223
2224         * dojump.c (do_jump) [BIT_AND_EXPR]: Move below.  Fall through to
2225         TRUTH_AND_EXPR for boolean (1-bit precision) expressions.
2226         (do_jump) [BIT_IOR_EXPR]: Compile as TRUTH_OR_EXPR.
2227
2228         * tree-flow.h (simplify_stmt_using_ranges): Accept a GSI, return
2229         a bool.
2230         * tree-ssa-propagate.c (substitute_and_fold): Pass a GSI to
2231         VRP's simplify_stmt_using_ranges.  Do simplify_stmt_using_ranges
2232         before finalizing the changes.
2233         * tree-vrp.c (extract_range_from_binary_expr): Add limited support
2234         for BIT_IOR_EXPR.
2235         (simplify_truth_ops_using_ranges): New.
2236         (simplify_div_or_mod_using_ranges, simplify_abs_using_ranges,
2237         simplify_cond_using_ranges, simplify_switch_using_ranges): Return
2238         whether a simplification was made.
2239         (simplify_stmt_using_ranges): Ditto, and accept a GSI.  For GS_ASSIGN,
2240         use a switch statement and also call simplify_truth_ops_using_ranges.
2241
2242 2008-09-11  Jan Hubicka  <jh@suse.cz>
2243
2244         * ggc-common.c (loc_array): Make static.
2245         * dce.c (rest_of_handle_ud_dce): Free worklist.
2246
2247 2008-09-11  Jan Hubicka  <jh@suse.cz>
2248
2249         * cgraph.c (cgraph_release_function_body): Plug memory leak on
2250         ipa_transforms_to_apply and CFG; ggc_free gimple df and struct
2251         function so we are sure we do not dangle it forever.
2252         * function.c (outer_function_chain, find_function_data): Remove.
2253         (function_context_stack): New.
2254         (push_function_context, pop_function_context): Update.
2255         * function.h (struct function): Remove pointer outer.
2256         (outer_function_chain, find_function_data): Remove.
2257         * stmt.c (force_label_rtx): Remove dead call of find_function_data.
2258
2259 2008-09-11  Jan Hubicka  <jh@suse.cz>
2260
2261         PR middle-end/37448
2262         * cgraph.c (cgraph_create_edge): Use !cgraph_edge for sanity check.
2263
2264 2008-09-11  Jan Hubicka  <jh@suse.cz>
2265
2266         * tree-ssa-pre.c (phi_translate_1): Fix memory leak
2267
2268 2008-09-11  Jan Hubicka  <jh@suse.cz>
2269
2270         * tree-ssa.c (redirect_edge_var_map_clear): Fix formatting.
2271         (free_var_map_entry): New function.
2272         (redirect_edge_var_map_destroy): Use it.
2273
2274 2008-09-11  Jan Hubicka  <jh@suse.cz>
2275
2276         PR middle-end/37448
2277         * tree-inline.c (add_lexical_block): Replace with ...
2278         (prepend_lexical_block): ... prepend at begginig.
2279         (remap_blocks): Use it and reverse later.
2280         (expand_call_inline): Use prepend_lexical_block.
2281
2282 2008-09-11  Jan Hubicka  <jh@suse.cz>
2283
2284         * gimplify.c (pop_gimplify_context): Free bind_expr_stack.
2285
2286 2008-09-11  Jan Hubicka  <jh@suse.cz>
2287
2288         * function.c (free_after_compilation): Call insn_locators_free.
2289         * cfglayout.c (insn_locators_free): New function.
2290         * rtl.h (insn_locators_free): Declare.
2291
2292 2008-09-11  Jan Hubicka  <jh@suse.cz>
2293
2294         * ifcvt.c (check_cond_move_block): Make regs argument pointer to
2295         vector pointer.
2296         (cond_move_process_if_block): Update call.
2297
2298 2008-09-11  Jan Hubicka  <jh@suse.cz>
2299
2300         * toplev.c (dump_memory_report): Call dump_vec_loc_statistics.
2301         * vec.c: Include hashtab.h
2302         (vec_descriptor, ptr_hash_entry): New structures.
2303         (vec_desc_hash, vec_ptr_map): New static variables.
2304         (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr, vec_descriptor,
2305         register_overhead, free_overhead, vec_heap_free): New functions.
2306         (vec_gc_o_reserve_1): ggc_free when resizing to 0.
2307         (vec_heap_o_reserve_1): free when resizing to 0; add statistics.
2308         (cmp_statistic, add_statistics, dump_vec_loc_statistics):
2309         New functions.
2310
2311 2008-09-11  Ira Rosen  <irar@il.ibm.com>
2312
2313         PR tree-optimization/37474
2314         * tree-vect-analyze.c (vect_supported_load_permutation_p): Check the
2315         length of load permutation.
2316
2317 2008-09-11  Andreas Schwab  <schwab@suse.de>
2318
2319         * config/m68k/m68k.h (IRA_COVER_CLASSES): Define.
2320
2321 2008-09-11  Jakub Jelinek  <jakub@redhat.com>
2322
2323         PR target/37382
2324         * expmed.c (extract_low_bits): Avoid creating invalid subregs.
2325         * dse.c (find_shift_sequence): Use extract_low_bits instead of
2326         simplify_gen_subreg.
2327
2328 2008-09-11  Ira Rosen  <irar@il.ibm.com>
2329
2330         * tree-vect-transform.c (vectorizable_store): Use the rhs vector type
2331         for alias check.
2332
2333 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
2334
2335         PR middle-end/37338
2336         * gimplify.c (gimplify_body): Call default_rtl_profile.
2337
2338         PR target/36904
2339         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Return NULL
2340         instead of tok->val.node if not expanding to something else.  Handle
2341         intervening CPP_PADDING tokens.
2342         (altivec_categorize_keyword): Remove unneeded comparisons.
2343
2344 2008-09-10  Richard Guenther  <rguenther@suse.de>
2345
2346         * tree-ssa-pre.c (phi_translate_1): Fix memory leak.
2347
2348 2008-09-10  Richard Guenther  <rguenther@suse.de>
2349
2350         PR middle-end/37432
2351         * tree-inline.c (insert_init_stmt): Make sure to not
2352         insert invalid gimple stores.
2353
2354 2008-09-10  Sebastian Pop  <sebastian.pop@amd.com>
2355
2356         PR tree-optimization/37388
2357         * toplev.c (process_options): Fail and warn when graphite
2358         flags are used, but the compiler has not been configured
2359         with graphite libraries.
2360         * graphite.c (graphite_transform_loops): Remove printfs
2361         to dump_file for the case when graphite is not available.
2362
2363 2008-09-10  H.J. Lu  <hongjiu.lu@intel.com>
2364
2365         PR target/37434:
2366         * config/i386/i386.c (ix86_expand_vector_init_interleave): Force
2367         the even element into register.
2368         (ix86_expand_vector_init_general): Don't use
2369         ix86_expand_vector_init_interleave on V16QImode and V8HImode
2370         if we can't move from GPR to SSE register directly.
2371
2372 2008-09-10  Bernd Schmidt  <bernd.schmidt@analog.com>
2373
2374         * config/bfin/bfin.c (workaround_speculation): Correct algorithm to
2375         not lose track of the number of NOPs needed.  Number of NOPs needed
2376         for sync vs. loads workaround was switched; corrected.  Run second
2377         pass for all workarounds.  No NOPs needed after call insns.  Change
2378         second pass to use find_next_insn_start and find_load helpers in order
2379         to properly detect parallel insns.
2380         * config/bfin/bfin.md (cbranch_with_nops): Increase length.
2381
2382 2008-09-10  Jan Hubicka  <jh@suse.cz>
2383
2384         * value-prof.c (gimple_ic): Fix tuplification bug.
2385         * sched-deps.c (sched_insns_conditions_mutex_p): Silence unitialized
2386         var warning.
2387
2388 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
2389
2390         PR tree-optimization/37353
2391         * tree-call-cdce.c (cond_dead_built_in_calls): Remove.
2392         (shrink_wrap_conditional_dead_built_in_calls): Add calls argument, use
2393         calls instead of cond_dead_built_in_calls.
2394         (tree_call_cdce): Add cond_dead_built_in_calls automatic variable,
2395         initalize the vector only before adding first entry.  Use VEC_safe_push
2396         instead of VEC_quick_push.  Pass cond_dead_built_in_calls to
2397         shrink_wrap_conditional_dead_built_in_calls call.
2398
2399 2008-09-10  Ira Rosen  <irar@il.ibm.com>
2400
2401         PR tree-optimization/37385
2402         * tree-vect-transform.c (vect_create_data_ref_ptr): Add a new
2403         argument, and use it as a vector type if not NULL.
2404         (vectorizable_store): Call vect_create_data_ref_ptr with the type of
2405         vectorized rhs.
2406         (vect_setup_realignment): Call vect_create_data_ref_ptr with
2407         additional argument.
2408         (vectorizable_load): Likewise.
2409
2410 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
2411
2412         * config/i386/i386.md (SWI32): New mode iterator.
2413         (jcc_fused_1, jcc_fused_2, jcc_fused_3, jcc_fused_4): Use it instead
2414         of SWI.
2415
2416 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
2417
2418         PR rtl-optimization/37435
2419         * caller-save.c (insert_restore, insert_save): Check the mode by
2420         reg_save_code.
2421
2422 2008-09-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2423
2424         PR other/37265
2425         * dwarf2asm.c (dw2_force_const_mem): Use unstripped symbol name for
2426         splay tree lookup.
2427         (dw2_output_indirect_constant_1): Use unstripped name in symbol
2428         reference.
2429
2430 2008-09-09  Sandra Loosemore  <sandra@codesourcery.com>
2431
2432         * doc/invoke.texi (ARM Options): Correct errors in discussion
2433         of -mfloat-abi, -mhard-float, and -msoft-float.
2434
2435 2008-09-09  Jakub Jelinek  <jakub@redhat.com>
2436             Jan Hubicka  <jh@suse.cz>
2437
2438         PR middle-end/37356
2439         * tree-inline.c (copy_bb): Insert stmt into copy_basic_block before
2440         calling gimple_regimplify_operands on it.  Iterate over all newly
2441         added statements, not just the last one.
2442         (insert_init_stmt): Insert stmt into seq first, then call
2443         gimple_regimplify_operands on it.  Don't create new gimplification
2444         context, nor find referenced vars.
2445
2446 2008-09-09  Jakub Jelinek  <jakub@redhat.com>
2447
2448         PR other/37419
2449         * ipa-prop.h (ipa_propagate_indirect_call_infos): Change last argument
2450         to pointer to vector pointer.
2451         * ipa-prop.c (ipa_propagate_indirect_call_infos,
2452         propagate_info_to_inlined_callees): Likewise.
2453         (update_call_notes_after_inlining): Likewise.  Push new indirect edge
2454         to *new_edges instead of new_edges.  Reread IPA_EDGE_REF after
2455         ipa_check_create_edge_args.
2456         * ipa-inline.c (cgraph_decide_recursive_inlining): Change last
2457         argument to pointer to vector pointer.
2458         (cgraph_decide_inlining_of_small_function): Adjust
2459         cgraph_decide_recursive_inlining and ipa_propagate_indirect_call_infos
2460         calls.
2461
2462         PR target/37438
2463         * config/i386/i386.md (zero_extendqihi2_movzbl): Enable when
2464         optimizing for size, not speed.
2465
2466         PR rtl-optimization/37408
2467         * function.c (assign_parm_find_stack_rtl): Set correct MEM_SIZE
2468         if parm is promoted.
2469
2470 2008-09-09  Sebastian Pop  <sebastian.pop@amd.com>
2471
2472         PR tree-optimization/37375
2473         * tree-scalar-evolution.c (scev_info_str): Add field
2474         instantiated_below.
2475         (new_scev_info_str, eq_scev_info, find_var_scev_info,
2476         set_scalar_evolution, get_scalar_evolution, get_instantiated_value,
2477         set_instantiated_value): Pass instantiated_below.
2478         (analyze_scalar_evolution_1, analyze_scalar_evolution): Update calls
2479         to above functions.
2480         (instantiate_scev_1, instantiate_scev): Pass a basic block above which
2481         the definitions are not instantiated.
2482
2483         * tree-scalar-evolution.h (instantiate_scev): Update declaration.
2484         (block_before_loop): New.
2485         * tree-data-ref.c (dr_analyze_indices): Update uses of
2486         instantiate_scev.
2487         * graphite.c (block_before_scop): New.
2488         (loop_affine_expr, stmt_simple_for_scop_p, harmful_stmt_in_bb): Pass a
2489         basic block, not a loop for determining the parameters.
2490         (scopdet_edge_info, build_scops_1): Do not pass outermost loop in the
2491         scop.
2492         (idx_record_params, find_params_in_bb, find_scop_parameters,
2493         build_loop_iteration_domains, add_conditions_to_domain): Update calls
2494         to instantiate_scev.
2495
2496         * Makefile.in (cfgloopmanip.o): Add missing dependency on TREE_FLOW_H.
2497
2498 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
2499
2500         PR rtl-opt/37333
2501
2502         * ira-build.c (ira_create_allocno): Setup frequency to 0.
2503
2504         * ira-color.c (update_conflict_hard_regno_costs): Remove assert.
2505         Check zero freq and increase if necessary.
2506
2507 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
2508
2509         * ira-conflicts.c (process_regs_for_copy): Check that the hard
2510         regno is in the right range.  Add comments.
2511
2512 2008-09-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2513
2514         * Makefile.in (mips-tfile.o-warn): Don't error out on mips-tfile.c
2515         warnings.
2516         * mips-tfile.c (copy_object): Cast alloca result to int *.
2517         * mips-tdump.c (print_symbol): Cast xmalloc return values to
2518         proper types.
2519         Rename class to sclass.
2520         (read_tfile): Cast read_seek return values to proper types.
2521         Cast xcalloc return value to proper type.
2522
2523 2008-09-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2524
2525         * config/sol2.h (REGISTER_TARGET_PRAGMAS): Move ...
2526         * config/i386/sol2.h (REGISTER_SUBTARGET_PRAGMAS): ... here.
2527         * config/sparc/sol2.h (REGISTER_TARGET_PRAGMAS): ... and here.
2528
2529 2008-09-09  Jan Hubicka  <jh@suse.cz>
2530
2531         * profile.c (is_edge_inconsistent): Add debug output; ignore
2532         negative count on fake edges.
2533         (is_inconsistent): Add debug output.
2534
2535 2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
2536
2537         * haifa-sched.c (advance_one_cycle): Do not print '\n' before printing
2538         dump message.
2539         (choose_ready): When first insn is chosen from the ready list, also
2540         dump it.
2541
2542 2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
2543
2544         PR rtl-optimization/37360
2545         * haifa-sched.c (max_issue): Do not assert that we never issue more
2546         insns than issue_rate.  Add comment.
2547
2548 2008-09-09  Richard Guenther  <rguenther@suse.de>
2549
2550         * tree-cfg.c (verify_types_in_gimple_op): Remove.
2551         (verify_types_in_gimple_call): Rename to ...
2552         (verify_gimple_call): ... this.  Enhance.
2553         (verify_types_in_gimple_cond): Remove.
2554         (verify_gimple_comparison): New function ...
2555         (verify_types_in_gimple_assign): ... split out from here.
2556         (verify_types_in_gimple_return): Rename to ...
2557         (verify_gimple_return): ... this.  Enhance.
2558         (verify_types_in_gimple_switch): Rename to ...
2559         (verify_gimple_switch): ... this.  Enhance.
2560         (verify_gimple_goto): New function.
2561         (verify_types_in_gimple_phi): Rename to ...
2562         (verify_gimple_phi): ... this.  Enhance.
2563         (verify_types_in_gimple_stmt): Adjust calls to helper functions.
2564         Fold in single-statement cases from verify_types_in_gimple_seq_2.
2565         (verify_types_in_gimple_seq_2): Remove cases handled in
2566         verify_types_in_gimple_stmt.
2567
2568 2008-09-09  Bernd Schmidt  <bernd.schmidt@analog.com>
2569
2570         * config/bfin/bfin.c (n_regs_to_save): New static variable.
2571         (push_multiple_operation, pop_multiple_operation): Set it.
2572         (workaround_rts_anomaly): New function.
2573         (workaround_speculation): New function, broken out of bfin_reorg.
2574         (bfin_reorg): Call the new functions.
2575
2576 2008-09-09  Richard Guenther  <rguenther@suse.de>
2577
2578         PR middle-end/37354
2579         PR middle-end/30165
2580         * gimplify.c (gimplify_conversion): Change conversions of
2581         non-register type to VIEW_CONVERT_EXPRs.
2582         (gimplify_addr_expr): If we need to make the operand
2583         addressable make sure to use a properly initialized
2584         temporary for that so it gets a valid gimple store.
2585
2586 2008-09-09  Aldy Hernandez  <aldyh@redhat.com>
2587
2588         * function.h (struct function): Add function_start_locus.
2589         * cfgexpand.c (gimple_expand_cfg): Use it.
2590         * c-parser.c (c_parser_declaration_or_fndef): Set it.
2591
2592 2008-09-09  Richard Guenther  <rguenther@suse.de>
2593
2594         PR tree-optimization/37433
2595         * tree-ssa-ccp.c (ccp_fold): Properly guard folding of
2596         function calls.
2597
2598 2008-09-09  Richard Guenther  <rguenther@suse.de>
2599
2600         PR tree-optimization/37387
2601         * tree-ssa-ifcombine.c (ifcombine_iforif): Convert the name
2602         and bits to a common type.
2603
2604 2008-09-09  Nick Clifton  <nickc@redhat.com>
2605
2606         * config/v850/v850.md (return): Restore frame size restriction.
2607
2608 2008-09-09  Paolo Bonzini  <bonzini@gnu.org>
2609
2610         * c-common.c (c_expand_decl): Remove.
2611         * c-common.h (anon_aggr_type_p): Remove prototype.
2612         (DECL_ANON_UNION_ELEMS): Remove.
2613         * c-objc-common.h (LANG_HOOKS_EXPAND_DECL): Remove.
2614         * c-decl.c (anon_aggr_type_p): Remove.
2615         * langhooks-def.h (LANG_HOOKS_EXPAND_DECL): Remove.
2616         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_EXPAND_DECL.
2617         * langhooks.h (struct lang_hooks): Remove expand_decl.
2618         * langhooks.c (lhd_expand_decl): Remove.
2619         * stmt.c (expand_anon_union_decl): Remove.
2620         * tree.h (expand_anon_union_decl): Remove prototype.
2621
2622 2008-08-09  Andy Hutchinson  <hutchinsonandy@aim.com>
2623
2624         PR target/36609
2625         * config/avr/avr.c (avr_reorg): Create RTL for reversed compare with
2626         zero.
2627         * config/avr/avr.md  (QISI) : Define mode iterator.
2628         (negated_tst<mode>) : Redefine as split using mode macro.
2629         (reversed_tstqi): Define insn as reversed compare with zero.
2630         (reversed_tsthi): Ditto.
2631         (reversed_tstsi): Ditto.
2632
2633 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
2634
2635         PR middle-end/37393
2636         * tree-inline.c (copy_bb): When replacing a gimple_call_va_arg_pack_p
2637         call stmt by new_call, clear gimple_bb on stmt after gsi_replace.
2638
2639         PR middle-end/37414
2640         * predict.c (optimize_function_for_size_p): Don't segfault if
2641         FUN is NULL.
2642         * fold-const.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop,
2643         tree_swap_operands_p): Don't test cfun != NULL before calling
2644         optimize_function_for_s*_p.
2645
2646 2008-09-08  Eric Botcazou  <ebotcazou@adacore.com>
2647
2648         * ira-color.c (ira_reuse_stack_slot): Set slot_num on success at the
2649         end of the search.
2650
2651 2008-09-08  M R Swami Reddy <MR.Swami.Reddy@nsc.com>
2652
2653         * crx/crx.h (IRA_COVER_CLASSES): Define.
2654
2655 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
2656
2657         PR middle-end/37337
2658         * tree-ssa-dom.c (optimize_stmt): Call maybe_clean_or_replace_eh_stmt
2659         even when a stmt has been gimple_modified_p, but after fold_stmt is
2660         not any longer.  Remove unneeded may_have_exposed_new_symbols
2661         initializations.
2662
2663 2008-09-08  Richard Guenther  <rguenther@suse.de>
2664
2665         PR tree-optimization/37421
2666         * tree-ssa-sccvn.c (visit_copy): Make sure to fully
2667         valueize the RHS.
2668
2669 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
2670
2671         PR middle-end/37415
2672         * opts.c (common_handle_option): Handle OPT_ftree_store_ccp.
2673
2674 2008-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2675
2676         PR driver/37409
2677         * pa-hpux.h (LINK_SPEC): Strip -fwhole-program.
2678         * pa-hpux10.h (LINK_SPEC): Likewise.
2679         * pa-hpux11.h (LINK_SPEC): Likewise.
2680
2681 2008-09-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2682
2683         * pa32-regs.h (IRA_COVER_CLASSES): Define.
2684         * pa64-regs.h (IRA_COVER_CLASSES): Define.
2685
2686 2008-09-07  Helge Deller  <deller@gmx.de>
2687
2688         * pa/linux-atomic.c: New file.
2689         * pa/t-linux (LIB2FUNCS_STATIC_EXTRA): Define.
2690         * pa/t-linux64 (LIB2FUNCS_STATIC_EXTRA): Define.
2691
2692 2008-09-07  Richard Guenther  <rguenther@suse.de>
2693             Ira Rosen  <irar@il.ibm.com>
2694
2695         PR tree-optimization/36630
2696         * tree-vect-transform.c (vect_update_ivs_after_vectorizer):
2697         Call STRIP_NOPS before calling evolution_part_in_loop_num.
2698
2699 2008-09-07  Dorit Nuzman  <dorit@il.ibm.com>
2700             Ira Rosen  <irar@il.ibm.com>
2701
2702         PR tree-optimization/35642
2703         * config/rs6000/altivec.md (mulv8hi3): Implement.
2704
2705 2008-09-06  Jeff Law <law@redhat.com>
2706
2707         * h8300/h8300.h (IRA_COVER_CLASSES): Define.
2708
2709 2008-09-06  Jan Hubicka  <jh@suse.cz>
2710
2711         PR tree-optimization/14703
2712         * tree-ssa-live.c (remove_unused_scope_block_p): Remove ignored
2713         declarations.
2714         * passes.c (init_optimization_passes): Recompute inline parameters.
2715
2716 2008-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
2717
2718         * config/mips/mips.c (mips_function_ok_for_sibcall): Check for
2719         DECL being null.
2720
2721 2008-09-06  Richard Sandiford  <rdsandiford@goolemail.com>
2722             Peter Fuerst  <post@pfrst.de>
2723
2724         * doc/invoke.texi: Document -mr10k-cache-barrier=.
2725         * doc/extend.texi: Document __builtin_mips_cache.
2726         * config/mips/mips-ftypes.def: Add a (VOID, SI, CVPOINTER) entry.
2727         * config/mips/mips.opt (mr10k-cache-barrier=): New option.
2728         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
2729         __GCC_HAVE_BUILTIN_MIPS_CACHE.
2730         (TARGET_CACHE_BUILTIN, ISA_HAS_CACHE): New macros.
2731         * config/mips/mips.c (mips_r10k_cache_barrier_setting): New enum.
2732         (set_push_mips_isas): New variable.
2733         (mips_r10k_cache_barrier): New variable.
2734         (cache): New availability predicate.
2735         (mips_builtins): Add an entry for __builtin_mips_cache.
2736         (mips_build_cvpointer_type): New function.
2737         (MIPS_ATYPE_CVPOINTER): New macro.
2738         (mips_prepare_builtin_arg): Only use the insn's mode if the rtx's
2739         mode is VOIDmode.
2740         (r10k_simplified_address_p, r10k_simplify_address)
2741         (r10k_uncached_address_p, r10k_safe_address_p)
2742         (r10k_needs_protection_p_1, r10k_needs_protection_p_store)
2743         (r10k_needs_protection_p_call, r10k_needs_protection_p)
2744         (r10k_insert_cache_barriers): New functions.
2745         (mips_reorg_process_insns): Delete cache barriers after a
2746         branch-likely instruction.
2747         (mips_reorg): Call r10k_insert_cache_barriers.
2748         (mips_handle_option): Handle OPT_mr10k_cache_barrier_.
2749         * config/mips/mips.md (UNSPEC_MIPS_CACHE): New constant.
2750         (UNSPEC_R10K_CACHE_BARRIER): Likewise.
2751         (mips_cache, r10k_cache_barrier): New define_insns.
2752
2753 2008-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
2754
2755         * ira-int.h (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
2756         * ira-color.c (setup_allocno_left_conflicts_num): Use
2757         hard_reg_set_equal_p instead of a comparison with
2758         ira_zero_hard_reg_set.
2759         * ira.c (setup_reg_subclasses): Likewise.
2760         (setup_cover_and_important_classes): Likewise.
2761         (setup_class_translate): Likewise.
2762         (setup_reg_class_intersect_union): Likewise.
2763         (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
2764         (ira_init_once): Don't initialize them.
2765
2766 2008-09-05  Vladimir Makarov  <vmakarov@redhat.com>
2767
2768         * doc/tm.texi (IRA_COVER_CLASSES): Fix a typo.
2769
2770 2008-09-05  Vladimir Makarov  <vmakarov@redhat.com>
2771
2772         * ira-color.c (ira_fast_allocation): Permit global allocno allocation.
2773
2774 2008-09-05  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
2775
2776         Improved branch hints, safe hints, and scheduling.
2777
2778         * haifa-sched.c (sched_emit_insn) : Define.
2779         * sched-int.h (sched_emit_insn) : Add prototype.
2780         * doc/invoke.texi (-mdual-nops, -mhint-max-nops,
2781         -mhint-max-distance -msafe-hints) : Document.
2782         * config/spu/spu.c (spu_flag_var_tracking): New.
2783         (TARGET_SCHED_INIT_GLOBAL, TARGET_SCHED_INIT,
2784         TARGET_SCHED_REORDER, TARGET_SCHED_REORDER2,
2785         TARGET_ASM_FILE_START): Define.
2786         (TARGET_SCHED_ADJUST_PRIORITY): Remove.
2787         (STOP_HINT_P, HINTED_P, SCHED_ON_EVEN_P): Define.
2788         (spu_emit_branch_hint): Add blocks argument.
2789         (insert_branch_hints, insert_nops): Remove.
2790         (pad_bb, insert_hbrp_for_ilb_runout, insert_hbrp, in_spu_reorg,
2791         uses_ls_unit, spu_sched_init_global, spu_sched_init,
2792         spu_sched_reorder, asm_file_start): New functions.
2793         (clock_var, spu_sched_length, pipe0_clock,
2794         pipe1_clock, prev_clock_var, prev_priority,
2795         spu_ls_first, prev_ls_clock): New static variables.
2796         * config/spu/spu.h (TARGET_DEFAULT): Add MASK_SAFE_HINTS.
2797         * config/spu.md (iprefetch): Add operand, make it clobber MEM.
2798         (nopn_nv): Add a non-volatile version of nop.
2799         * config/spu/spu.opt (-mdual-nops, -mhint-max-nops,
2800         -mhint-max-distance, -msafe-hints): New options.
2801
2802 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
2803             Samuel Tardieu  <sam@rfc1149.net>
2804
2805         * opts.c (decode_options): Combine nested if statements.
2806
2807         PR target/37283
2808         * opts.c (decode_options): Handle more relationships among
2809         unit-at-a-time, toplevel-reorder, and section-anchors.
2810
2811 2008-09-05  David Daney  <ddaney@avtrex.com>
2812
2813         * doc/install.texi (--enable-reduced-reflection): Document new option.
2814
2815 2008-09-05  Bob Wilson  <bob.wilson@acm.org>
2816
2817         * config/xtensa/predicates.md (nonimmed_operand, mem_operand): Use
2818         constantpool_mem_p.
2819         (constantpool_operand): New.
2820         (move_operand): Disallow sub-word modes for the constant pool.
2821         * config/xtensa/xtensa.c (TARGET_SECONDARY_RELOAD): Define.
2822         (xtensa_secondary_reload_class): Replace with....
2823         (xtensa_secondary_reload): this function.  Remove SIGN_EXTEND check.
2824         Set icode for sub-word reloads from the constant pool.
2825         * config/xtensa/xtensa.h (SECONDARY_INPUT_RELOAD_CLASS): Delete.
2826         (SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
2827         * config/xtensa/xtensa.md (reload<mode>_literal): New.
2828         * config/xtensa/xtensa-protos.h: Update prototypes.
2829
2830 2008-09-05  Joseph Myers  <joseph@codesourcery.com>
2831
2832         * config/mips/mips.h (enum reg_class): Add FRAME_REGS.
2833         (REG_CLASS_NAMES): Update.
2834         (REG_CLASS_CONTENTS): Update.
2835         * config/mips/mips.c (mips_regno_to_class): Use FRAME_REGS instead
2836         of ALL_REGS for regs 77 and 78.
2837         * function.c (instantiate_virtual_regs_in_insn): Assert that
2838         return value of simplify_gen_subreg is not NULL.
2839
2840 2008-09-05  Paolo Bonzini  <bonzini@gnu.org>
2841
2842         * emit-rtl.c (gen_rtvec): Rewrite not using gen_rtvec_v.
2843         (gen_rtvec_v): Fix coding standards.
2844
2845 2008-09-04  Jan Hubicka  <jh@suse.cz>
2846
2847         * i386.c (decide_alg): Be more conservative about optimizing for size.
2848
2849 2008-09-04  Ian Lance Taylor  <iant@google.com>
2850
2851         * varasm.c (narrowing_initializer_constant_valid_p): New
2852         static function.
2853         (initializer_constant_valid_p): Call it.
2854
2855 2008-09-04  Jeff Law  <law@redhat.com>
2856
2857         * fold-const.c (native_encode_real): Fix computation of WORDS.
2858         (native_interpret_real): Likewise.
2859
2860 2008-09-04  Janis Johnson  <janis187@us.ibm.com>
2861
2862         * config/rs6000/t-rs6000: Remove target gt-rs6000.h.
2863
2864 2008-09-04  Vladimir Makarov  <vmakarov@redhat.com>
2865
2866         * ira-conflicts.c (process_regs_for_copy): Check insn to check
2867         that the cost is already taken into account in ira-costs.c
2868
2869         * ira-int.h (ira_debug_copy, ira_debug_copies): New.
2870
2871         * ira-build.c (print_copy, print_copies, ira_debug_copy,
2872         ira_debug_copies): New.
2873         (ira_bulid): Call print_copies.
2874
2875         * doc/tm.texi (IRA_COVER_CLASSES): Fix the description.
2876
2877 2008-09-04  Samuel Tardieu  <sam@rfc1149.net>
2878
2879         PR target/32783
2880         * config/rs6000/rs6000.c (optimization_options): Remove check of
2881         flag_toplevel_order.
2882
2883 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
2884
2885         * config/mips/mips.h (ISA_HAS_SEQ_SNE): New macro.
2886         * config/mips/mips.c (mips_expand_scc): Also expand seq and sne if
2887         second operand is a reg_imm10_operand.
2888         * config/mips/mips.md (*seq_<GPR:mode><GPR2:mode>_seq,
2889         *sne_<GPR:mode><GPR2:mode>_sne): New patterns.
2890         (*seq_<GPR:mode><GPR2:mode>): Rename to
2891         *seq_zero_<GPR:mode><GPR2:mode>.  Don't match if
2892         ISA_HAS_SEQ_SNE.
2893         (*seq_<GPR:mode><GPR2:mode>_mips16): Rename to
2894         *seq_zero_<GPR:mode><GPR2:mode>_mip16.  Don't match if
2895         ISA_HAS_SEQ_SNE.
2896         (*sne_<GPR:mode><GPR2:mode>): Rename to
2897         *sne_zero_<GPR:mode><GPR2:mode>.  Don't match if
2898         ISA_HAS_SEQ_SNE.
2899
2900 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
2901
2902         * config/mips/mips.h (ISA_HAS_EXTS): New macro.
2903         * config/mips/mips.md (*ashr_trunc<mode>): Name the pattern
2904         combining an arithmetic right shift by more than 31 and a
2905         trunction.  Don't match for out-of-range shift amounts.  Set
2906         attribute mode to <MODE>.
2907         (*lshr32_trunc<mode>): Name the pattern combining a logical right
2908         shift by 32 and and a truncation.  Set attribute mode to <MODE>.
2909         (*<optab>_trunc<mode>_exts): New pattern for truncated right
2910         shifts by less than 32.
2911         (extv): Change predicate on first operand to accept registers.
2912         Change predicate of the other operands from immediate_operand to
2913         const_int_operand.  Expand exts when source is a register.
2914         (extzv): Change predicate of the constant operands from
2915         immediate_operand to const_int_operand.
2916         (extzv<mode>): Change predicate of the constant operands from
2917         immediate_operand to const_int_operand and no constraint. Also
2918         remove mode.
2919         (*extzv_trunc<mode>_exts): New pattern.
2920
2921 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
2922
2923         * config/mips/mips.h (ISA_HAS_CINS): New macro.
2924         * config/mips/mips-protos.h (mask_low_and_shift_p,
2925         mask_low_and_shift_len): Declare.
2926         * config/mips/mips.c (mask_low_and_shift_p,
2927         mask_low_and_shift_len): New functions.
2928         (mips_print_operand): Handle new operand prefix "m".
2929         * config/mips/mips.md (*cins<mode>): New pattern.
2930
2931 2008-09-04  Bernd Schmidt  <bernd.schmidt@analog.com>
2932
2933         * config/bfin/bfin.c (gen_one_bundle): Don't create new nops when
2934         optimizing for size.
2935
2936 2008-09-04  Richard Sandiford  <rdsandiford@googlemail.com>
2937
2938         * df-scan.c (df_get_entry_block_def_set): Add STACK_POINTER_REGNUM
2939         regardless of epilogue_completed.
2940
2941 2008-09-04  Vladimir Makarov  <vmakarov@redhat.com>
2942
2943         PR middle-end/37359
2944         * ira-lives.c (process_bb_node_lives): Check setjmp.
2945
2946 2008-09-04  Richard Sandiford  <rdsandiford@googlemail.com>
2947
2948         PR middle-end/37243
2949         * ira-build.c (form_loop_tree): Reverse BB walk.
2950         (create_bb_allocnos): Likewise.
2951         * ira-lives.c (make_regno_born_and_dead, regs_set): Delete.
2952         (mark_reg_store): Rename to...
2953         (mark_ref_live): ...this and take a df_ref argument instead of
2954         note_stores arguments.  Assert that we have a register.
2955         (mark_reg_clobber): Delete.
2956         (def_conflicts_with_inputs_p): New function.
2957         (mark_reg_conflicts): Delete.
2958         (mark_reg_death): Rename to...
2959         (mark_ref_dead): ...this and take a df_ref argument instead of
2960         a register.  Assert that we have a register.
2961         (process_bb_node_lives): Hoist frequency calculation out of
2962         instruction walk.  Convert from a forwards scan to a backwards scan.
2963         Use DF_REF_USES and DF_REF_DEFS instead of register notes and
2964         note_stores.  Remove EH_RETURN_DATA_REGNO and regs_set handling.
2965         (create_allocno_live_ranges): Don't create regs_set.
2966
2967 2008-09-04  Ian Lance Taylor  <iant@google.com>
2968
2969         * rtl.h (LABEL_REF_NONLOCAL_P): Don't check for REG_LABEL_OPERAND
2970         or REG_LABEL_TARGET.
2971         * calls.c (emit_library_call_value_1): Use MEM_P rather than
2972         comparing MODE with MEM.
2973         * gimple.c (gimple_build_predict): Cast END_PREDICTORS before
2974         comparing with GF_PREDICT_TAKEN.
2975         (gimple_get_lhs): Change code to enum gimple_code.
2976         (gimple_set_lhs): Likewise.
2977         * ifcvt.c (noce_process_if_block): Correct GET_MODE to GET_CODE.
2978         * omp-low.c (find_omp_clause): Change kind parameter to enum
2979         omp_clause_code.
2980         * tree-flow.h (find_omp_clause): Update declaration.
2981         * regrename.c (clear_dead_regs): Change kind parameter to enum
2982         reg_note.
2983         * reload1.c (eliminate_regs_1): Use REG_NOTE_KIND rather than
2984         GET_MODE.
2985         * see.c (see_get_extension_data): Change return type to enum
2986         entry_type.  Change UNKNOWN to NOT_RELEVANT, SIGN_EXTEND to
2987         SIGNED_EXTENDED_DEF, ZERO_EXTEND to ZERO_EXTENDED_DEF.
2988         (see_gen_normalized_extension): Change extension_code parameter to
2989         enum entry_type.
2990         (see_seek_pre_extension_expr): Change extension_code to enum
2991         entry_type.
2992         (see_merge_one_def_extension): Likewise.
2993         (see_handle_relevant_defs): Likewise.
2994         (see_handle_relevant_uses): Likewise.
2995         (see_analyze_one_def): Likewise.
2996         * tree-cfg.c (need_fake_edge_p): Compare gimple code with
2997         GIMPLE_ASM rather than ASM_EXPR.
2998         * tree-ssa-alias.c (is_escape_site): Compare gimple code with
2999         GIMPLE_RETURN rather than RETURN_EXPR.
3000         * tree-ssa-ccp.c (likely_value): Change code to enum gimple_code.
3001         (evaluate_stmt): Likewise.
3002         * tree-vect-analyze.c (vect_analyze_operations): Change relevance
3003         to enum vect_relevant.
3004         (vect_mark_stmts_to_be_vectorized): Change assertion to not
3005         compare gimple codes with tree codes.
3006
3007 2008-09-04  Paul Brook  <paul@codesourcery.com>
3008
3009         * config/arm/arm.c (arm_size_rtx_costs): Call cost function.
3010
3011 2008-09-04  Bernd Schmidt  <bernd.schmidt@analog.com>
3012
3013         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Restore a null
3014         pointer check lost in the recent no-unit-at-a-time patch.
3015
3016 2008-09-04  Jan Hubicka  <jh@suse.cz>
3017
3018         PR middle-end/37343
3019         * tree-switch-conversion.c (check_final_bb): Accept only IP
3020         invariants.
3021
3022 2008-09-04  Jan Hubicka  <jh@suse.cz>
3023
3024         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
3025         Break out from ...
3026         (vrp_evaluate_conditional_warnv_with_ops): ... this one.  Add
3027         using_ranges argument.
3028         (vrp_evaluate_conditional): Avoid bogus warning for type range.
3029         (vrp_visit_cond_stmt): Update call of
3030         vrp_evaluate_conditional_warnv_with_ops
3031
3032 2008-09-04  Jan Hubicka  <jh@suse.cz>
3033
3034         PR tree-optimization/37345
3035         PR tree-optimization/37358
3036         PR tree-optimization/37357
3037         * tree.c (build_function_type_skip_args): Build distinct type copy;
3038         set TYPE_CONTEXT.
3039         (build_function_decl_skip_args): Set type of new decl not orig decl;
3040         clear DECL_VINDEX for methods turned into functions.
3041
3042 2008-09-04  Nick Clifton  <nickc@redhat.com>
3043
3044         * configure.ac (HAVE_GAS_LCOMM_WITH_ALIGNMENT): New assembler check.
3045         * configure: Regenerate.
3046         * config.in: Regenerate.
3047         * config/i386/bsd.h (ASM_OUTPUT_ALIGNED_LOCAL): Use .lcomm with an
3048         alignment field, if it is supported.
3049
3050 2008-09-04  Kai Tietz  <kai.tietz@onevision.com>
3051
3052         * config/i386/t-mingw32 (SHLIB_LC): Change order of import
3053         libraries.
3054
3055 2008-09-03  David Edelsohn  <edelsohn@gnu.org>
3056
3057         * config/rs6000/rs6000.c (processor_target_table): Do not
3058         enable VMX for POWER6.
3059
3060 2008-09-03  Anton Blanchard  <anton@samba.org>
3061
3062         * config/rs6000/rs6000.c (rs6000_split_lock_test_and_set): Do not
3063         emit memory barrier before operation.
3064
3065 2008-09-03  John David Anglin  <dave.anglin@nrc.cnrc.gc.ca>
3066
3067         PR testsuite/37325
3068         * config/pa/pa64-hpux.h (ASM_OUTPUT_EXTERNAL_REAL): Call
3069         default_elf_asm_output_external.
3070
3071 2008-09-03  Jeff Law  <law@redhat.com>
3072
3073         * h8300.c (expand_a_shift): Avoid invalid RTL sharing.
3074
3075 2008-09-03  Richard Henderson  <rth@redhat.com>
3076
3077         * config/alpha/alpha.c (alpha_split_lock_test_and_set): Move
3078         memory barrier to below the test-and-set.
3079         (alpha_split_lock_test_and_set_12): Likewise.
3080
3081 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
3082
3083         PR rtl-opt/37243
3084
3085         * ira-int.h (ira_loop_tree_node): Rename mentioned_allocnos to
3086         all_allocnos.
3087
3088         * ira-color.c (print_loop_title): Use all_allocnos.
3089         (color_pass): Ditto.  Don't add border_allocnos.  Check that
3090         subloop allocno in the correspdoning bitmap all_allocnos.
3091
3092         * ira-emit.c (change_loop): Use all_allocnos.
3093
3094         * ira-build.c (create_loop_tree_nodes, finish_loop_tree_node): Ditto.
3095         (ira_create_allocno): Set up all_allocnos bit for the created allocno.
3096         (create_cap_allocno): Remove setting mentioned_allocnos.
3097         (create_insn_allocnos): Ditto.
3098         (remove_unnecessary_allocnos): Use all_allocnos.
3099         (check_allocno_creation): Check that allocnos are in the
3100         corresponding bitmap all_allocnos.
3101
3102 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
3103
3104         PR rtl-opt/37243
3105
3106         * ira-conflicts.c (REG_SUBREG_P, go_through_subreg): New.
3107         (process_regs_for_copy): Process subregs.  Refine check when cost
3108         is taken into account in ira-costs.c.
3109         (process_reg_shuffles): Use REG_SUBREG_P.
3110         (add_insn_allocno_copies): Ditto.  Ignore modes.
3111
3112         * ira-color.c (conflict_allocno_vec): New.
3113         (COST_HOP_DIVISOR): New macro.
3114         (update_copy_costs_1): Use it.
3115         (update_conflict_hard_regno_costs): New function.
3116         (assign_hard_reg): Use it.
3117         (ira_color): Allocate and free conflict_allocno_vec.
3118
3119 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
3120
3121         PR rtl-opt/37296
3122
3123         * ira-int.h (ira_sort_insn_chain): Remove.
3124
3125         * ira.c (basic_block_order_nums, chain_insn_order,
3126         chain_freq_compare, chain_bb_compare, ira_sort_insn_chain): Remove.
3127         (ira): Don't call ira_sort_insn_chain.
3128
3129         * reload1.c (reload): Don't call ira_sort_insn_chain.
3130
3131 2008-09-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3132
3133         PR middle-end/37293
3134         * cgraphunit.c (update_call_expr): Remove eh regions from statements
3135         which become non throw.
3136         (cgraph_function_versioning): Also clear DECL_WEAK.  Call
3137         update_call_expr after updating the flags on the decl.
3138
3139 2008-09-03  Jan Hubicka  <jh@suse.cz>
3140
3141         PR tree-optimization/37315
3142         * cgraph.c (cgraph_create_edge): Use gimple_has_body_p.
3143         * cgraphunit.c (verify_cgraph_node): drop gimple_body check.
3144         (cgraph_analyze_functions): Use node->analyzed
3145         (cgraph_mark_functions_to_output): Likewise.
3146         (cgraph_expand_function): All functions can be released after
3147         expanding.
3148         (cgraph_optimize): Use gimple_has_body_p.
3149         * ipa-inline.c (cgraph_clone_inlined_nodes): Use analyzed flag.
3150         (cgraph_decide_inlining_incrementally): Likewise.
3151         (inline_transform): Inline transform.
3152         * tree-inline.c (initialize_cfun): Do now shallow copy structure;
3153         copy fields needed.
3154         (inlinable_function_p): Drop gimple_body check.
3155         (expand_call_inline): Use gimple_has_body_p.
3156         * gimple.c (gimple_has_body_p): New.
3157         * gimple.h (gimple_has_body_p): Add prototype.
3158         * tree-cfg.c (execute_build_cfg): Remove gimple_body.
3159         (dump_function_to_file): Use gimple_has_body_p check.
3160
3161 2008-09-03  Jakub Jelinek  <jakub@redhat.com>
3162
3163         PR c++/37346
3164         * gimple.h (gimple_has_substatements): GIMPLE_OMP_CRITICAL has
3165         substatements.
3166         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_CRITICAL.
3167
3168 2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
3169
3170         From Michael Frysinger  <michael.frysinger@analog.com>
3171         * config/bfin/bfin.c (bfin_cpus[]): Add 0.1 for bf522, bf523, bf524,
3172         bf525, bf526, bf527, bf542, bf544, bf547, bf548, and bf549.  Add 0.2
3173         for bf538.
3174
3175 2008-09-03  Hari Sandanagobalane  <hariharan@picochip.com>
3176
3177         Add picoChip port.
3178         * doc/extend.texi: Document picoChip builtin functions.
3179         * doc/invoke.texi: Document picoChip options.
3180         * doc/contrib.texi: Add picoChip contribution.
3181         * doc/md.texi: Document picoChip constraints.
3182         * config.gcc: Add picochip-*-*.
3183         * config/picochip/: Add new port.
3184
3185 2008-09-03  Richard Guenther  <rguenther@suse.de>
3186
3187         PR tree-optimization/37328
3188         * tree-sra.c (sra_build_assignment): Gimplify properly.
3189         (generate_copy_inout): Take the correct stmt as definition,
3190         remove bogus assert.
3191
3192 2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
3193
3194         * config/bfin/bfin.c (bfin_expand_prologue): Honour no_stack_limit
3195         attributes.
3196
3197         From Michael Frysinger  <michael.frysinger@analog.com>
3198         * config/bfin/bfin.c (bfin_handle_option): Remove BF561 warning.
3199
3200 2008-09-03 Danny Smith  <dannysmith@usrs.sourceforge.net>
3201
3202         * gthr-win32.h (CONST_CAST2): Really make sure CONST_CAST2 is defined.
3203         (__gthread_setspecific): Revert 2008-08-31 change to
3204         __GTHREAD_HIDE_W32API case.  Apply it to !__GTHREAD_HIDE_W32API case.
3205
3206 2008-09-02  Aldy Hernandez  <aldyh@redhat.com>
3207
3208         * diagnostic.c (error_at): New.
3209         * toplev.h (error_at): New prototype.
3210         * c-typeck.c (build_array_ref): Call error_at instead of error.
3211         Pass location to pedwarn.
3212
3213 2008-09-02  Adam Nemet  <anemet@caviumnetworks.com>
3214
3215         * sel-sched.c (sel_hard_regno_rename_ok): Mark arguments unused.
3216
3217 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
3218
3219         * dwarf2out.c (tree_add_const_value_attribute): Only handle
3220         VAR_DECL and CONST_DECL.
3221
3222 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
3223             Jakub Jelinek  <jakub@redhat.com>
3224
3225         * config/i386/i386.c (X86_64_VARARGS_SIZE): Removed.
3226         (setup_incoming_varargs_64): Assume cum != NULL. Set/check
3227         ix86_varargs_gpr_size and ix86_varargs_fpr_size.  Use
3228         ix86_varargs_gpr_size instead of X86_64_REGPARM_MAX.
3229         Don't set ix86_save_varrargs_registers.
3230         (ix86_setup_incoming_varargs): Assume cum != NULL.
3231         (ix86_va_start): Check ix86_varargs_gpr_size and
3232         ix86_varargs_fpr_size instead of cfun->va_list_gpr_size and
3233         cfun->va_list_fpr_size, respectively.  Subtract 8*X86_64_REGPARM_MAX
3234         from frame pointer if ix86_varargs_gpr_size == 0.
3235         (ix86_compute_frame_layout): Updated.
3236         * config/i386/i386.h (ix86_save_varrargs_registers): Removed.
3237         (ix86_varargs_gpr_size): Define.
3238         (ix86_varargs_fpr_size): Likewise.
3239         (machine_function): Remove save_varrargs_registers.
3240         Add varargs_gpr_size and varargs_fpr_size.
3241
3242 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
3243
3244         * config/alpha/alpha.c (va_list_skip_additions,
3245         alpha_stdarg_optimize_hook, alpha_gimplify_va_arg_1): Tuplify.
3246         (alpha_gimplify_va_arg): Call unshare_expr on second use of
3247         offset_field.
3248
3249         PR tree-optimization/36766
3250         * tree-cfg.c (gimple_purge_all_dead_eh_edges): Do nothing
3251         for already removed basic blocks.
3252
3253         PR target/36332
3254         * real.c (real_maxval): Clear a lower bit to make real_maxval
3255         match get_max_float for IBM long double format.
3256
3257 2008-09-02  Andreas Schwab  <schwab@suse.de>
3258
3259         * configure.ac: Use m4_quote to quote the expansion of m4_do.
3260         * configure: Regenerate.
3261
3262 2008-09-02  Richard Sandiford  <rdsandiford@googlemail.com>
3263
3264         * simplify-rtx.c (simplify_binary_operation_1): Check for CONST,
3265         SYMBOL_REF and LABEL_REF when applying plus_constant, instead of
3266         checking for a non-VOID CONSTANT_P.
3267
3268 2008-09-02  Jan Hubicka  <jh@suse.cz>
3269
3270         * predict.c (pass_strip_predict_hints): Avoid bugs dump file.
3271         * expmed.c (expand_divmod): Fix test of smod_pow2_cheap and
3272         sdiv_pow2_cheap
3273
3274 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
3275
3276         * expr.c (emit_group_store): Don't assert stack temp mode size.
3277
3278 2008-09-02  Sebastian Pop  <sebastian.pop@amd.com>
3279             Tobias Grosser  <grosser@fim.uni-passau.de>
3280             Jan Sjodin  <jan.sjodin@amd.com>
3281             Harsha Jagasia  <harsha.jagasia@amd.com>
3282             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
3283             Konrad Trifunovic  <konrad.trifunovic@inria.fr>
3284             Adrien Eliche  <aeliche@isty.uvsq.fr>
3285
3286         Merge from graphite branch.
3287         * graphite.c: New.
3288         * graphite.h: New.
3289         * tree-loop-linear.c (perfect_loop_nest_depth): Export.
3290         * doc/invoke.texi (-floop-block, -floop-interchange,
3291         -floop-strip-mine): Document new flags.
3292         * tree-into-ssa.c (gimple_vec): Moved...
3293         * tree-loop-distribution.c (rdg_component): Moved...
3294         * cfgloopmanip.c: Include tree-flow.h.
3295         (update_dominators_in_loop): New.
3296         (create_empty_if_region_on_edge): New.
3297         (create_empty_loop_on_edge): New.
3298         (loopify): Use update_dominators_in_loop.
3299         * tree-pass.h (pass_graphite_transforms): Declared.
3300         * configure: Regenerate.
3301         * tree-phinodes.c (make_phi_node): Export.
3302         (add_phi_node_to_bb): New, split from create_phi_node.
3303         * tree-chrec.c (for_each_scev_op): New.
3304         * tree-chrec.h (for_each_scev_op): Declared.
3305         * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
3306         (remove_statement): Call get_phi_with_result.
3307         * config.in (HAVE_cloog): Undef.
3308         * gdbinit.in (pgg): New.
3309         * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
3310         * tree-ssa-loop.c (graphite_transforms): New.
3311         (gate_graphite_transforms): New.
3312         (pass_graphite_transforms): New.
3313         * configure.ac (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC,
3314         HAVE_cloog): Defined.
3315         * tree-vectorizer.c (rename_variables_in_bb): Export.
3316         * tree-data-ref.c (dr_may_alias_p): Export.
3317         (stmt_simple_memref_p): New.
3318         (find_data_references_in_stmt): Export.
3319         (find_data_references_in_loop): Export.
3320         (create_rdg_edge_for_ddr): Initialize RDGE_RELATION.
3321         (create_rdg_edges_for_scalar): Initialize RDGE_RELATION.
3322         (create_rdg_vertices): Export.
3323         (build_empty_rdg): New.
3324         (build_rdg): Call build_empty_rdg.  Free dependence_relations.
3325         * tree-data-ref.h (rdg_component): ... here.
3326         (scop_p): New.
3327         (struct data_reference): Add a field scop.
3328         (DR_SCOP): New.
3329         (find_data_references_in_loop): Declared.
3330         (find_data_references_in_stmt): Declared.
3331         (create_rdg_vertices): Declared.
3332         (dr_may_alias_p): Declared.
3333         (stmt_simple_memref_p): Declared.
3334         (struct rdg_edge): Add a field ddr_p relation.
3335         (build_empty_rdg): Declared.
3336         * lambda.h (lambda_matrix): Declare a VEC of.
3337         (find_induction_var_from_exit_cond): Declared.
3338         (lambda_vector_compare): New.
3339         * common.opt (fgraphite, floop-strip-mine,
3340         floop-interchange, floop-block): New flags.
3341         * lambda-code.c (find_induction_var_from_exit_cond): Export.
3342         * cfgloop.c (is_loop_exit): New.
3343         * cfgloop.h (is_loop_exit): Declared.
3344         (create_empty_if_region_on_edge): Declared.
3345         (create_empty_loop_on_edge): Declared.
3346         * tree-flow.h (add_phi_node_to_bb): Declared.
3347         (make_phi_node): Declared.
3348         (rename_variables_in_bb): Declared.
3349         (perfect_loop_nest_depth): Declared.
3350         (graphite_transform_loops): Declared.
3351         * Makefile.in (cfgloopmanip.o): Depend on TREE_FLOW_H.
3352         (graphite.o-warn): Add -Wno-error.
3353         (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC): Declared.
3354         (LIBS): Add GMPLIBS, CLOOGLIBS, PPLLIBS.
3355         (INCLUDES): Add PPLINC, CLOOGINC.
3356         (OBJS-common): Add graphite.o.
3357         (graphite.o): Add rule.
3358         * gimple.h (gimple_vec): ... here.
3359         * tree-cfg.c (print_loops): Start printing at ENTRY_BLOCK_PTR.
3360         * passes.c (init_optimization_passes): Schedule
3361         pass_graphite_transforms.
3362
3363 2008-09-02  Samuel Tardieu  <sam@rfc1149.net>
3364
3365         PR target/37283
3366         * opts.c (decode_options): Move processing of -fno-unit-at-a-time
3367         and -fno-toplevel-reorder after handle_options.
3368
3369 2008-09-02  Paul Brook  <paul@codesourcery.com>
3370
3371         * config/arm/arm.c (arm_tune_cortex_a9): Define.
3372         (arm_override_options): Set arm_tune_cortex_a9.
3373         (arm_rtx_costs_1): Make register shifts more expensive on Cortex-A9.
3374         (arm_issue_rate): Handle cortexa9.
3375         * config/arm/arm.h (arm_tune_cortex_a9): Declare.
3376         * config/arm/arm-cores.def: Add cortex-a9.
3377         * config/arm/arm-tune.md: Regenerate.
3378         * config/arm/arm.md: Include cortex-a9.md.
3379         (generic_sched, generic_vfp): Add cortexa9.
3380         * config/arm/cortex-a9.md: New file.
3381
3382 2008-09-02  Richard Guenther  <rguenther@suse.de>
3383
3384         PR tree-optimization/37327
3385         * tree-vrp.c (register_new_assert_for): Make sure to not have
3386         TREE_OVERFLOW set on the bound.
3387
3388 2008-09-02  Alexander Monakov  <amonakov@ispras.ru>
3389
3390         Fixed typo in date of the 2008-09-01 MOVE_RATIO commit.
3391
3392         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 1.
3393         * config/ia64/ia64.c (ia64_set_sched_flags): Always initialize
3394         spec_info->mask.
3395
3396 2008-09-02  Victor Kaplansky  <victork@il.ibm.com>
3397
3398         * gcc/config/spu/spu.md (divdf3): Removed.
3399
3400 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
3401
3402         PR tree-optimization/37095
3403         * cgraph.c (cgraph_node): When creating new cgraph node after
3404         assembler_name_hash has been populated, record it in the hash
3405         table.
3406
3407 2008-09-01  Paul Brook  <paul@codesourcery.com>
3408
3409         * doc/invoke.texi: Document -mword-relocations.
3410         * config/arm/uclinux-elf.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
3411         * config/arm/symbian.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
3412         * config/arm/vxworks.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
3413         * config/arm/arm.c (arm_split_constant): Use arm_emit_movpair.
3414         (arm_rtx_costs_1, arm_size_rtx_costs): Handle HIGH and LO_SUM.
3415         (arm_emit_movpair): New function.
3416         (arm_print_operand <c>): Handle sybolic addresses.
3417         * config/arm/arm.h (TARGET_USE_MOVT): Define.
3418         (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
3419         * config/arm/arm-protos.h (arm_emit_movpair): Add prototype.
3420         * config/arm/arm.opt: Add -mword-relocations.
3421         * config/arm/arm.md (movsi): Use arm_emit_movpair.
3422         (arm_movt, arm_movw): New.
3423
3424 2008-09-01  Paul Brook  <paul@codesourcery.com>
3425
3426         * config/arm/arm.c (arm_override_options): Set arm_abi earlier.
3427         Allow Interworking on ARMv4 EABI based targets.
3428         * config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Define.
3429         (SUBTARGET_EXTRA_ASM_SPEC, LINK_SPEC): Add TARGET_FIX_V4BX_SPEC.
3430
3431 2008-09-01  Paul Brook  <paul@codesourcery.com>
3432
3433         * config/arm/thumb2.md (thumb2_negscc): Match the correct operand for
3434         optimized LT0 test.  Remove optimization for GT.
3435
3436 2008-09-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3437
3438         * pa64-hpux.h (LIB_SPEC): Link against librt when building static
3439         openmp applications.
3440         * pa-hpux11.h (LIB_SPEC): Likewise.
3441
3442         * ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS
3443         is defined.
3444
3445 2008-09-01  Jan Hubicka  <jh@suse.cz>
3446
3447         * predict.c (maybe_hot_count_p, maybe_hot_edge_p): When profile is
3448         present, use only counts; when guessed use only frequencies.
3449         (estimate_bb_frequencies): Use function_frequency.
3450         * profile.c (compute_branch_probabilities): Exit early when
3451         profile reading failed. Set profile_status.
3452         (branch_prob): Do not set profile_status.
3453
3454 2008-09-01  Aldy Hernandez  <aldyh@redhat.com>
3455
3456         * tree.c (protected_set_expr_location): New.
3457         * tree.h (protected_set_expr_location): New prototype.
3458         * c-tree.h (build_array_ref): Add argument.
3459         (parser_build_unary_op): Same.
3460         * c-typeck.c (build_indirect_ref): Handle new location argument.
3461         (build_array_ref): Same.
3462         (parser_build_unary_op): Same.
3463         * gimplify.c (gimplify_asm_expr): Set input_location before calling
3464         error.
3465         * c-omp.c (c_finish_omp_atomic): Pass location when calling
3466         build_indirect_ref.
3467         * c-common.c (finish_label_address_expr): Handle new location argument.
3468         * c-common.h (build_indirect_ref): Add argument.
3469         (finish_label_address_expr): Same.
3470         * c-parser.c (c_parser_unary_expression): Pass location to build
3471         functions.
3472         (c_parser_postfix_expression): Same.
3473
3474 2008-09-01  Paul Brook  <paul@codesourcery.com>
3475
3476         * config/arm/arm.md: Include cortex-r4f.md.
3477         (attr fpu): Update type list.
3478         (attr type): Add fcpys, ffariths, ffarithd, fadds, faddd, fconsts,
3479         fconstd, fcmps and fcmpd.
3480         (attr tune_cortexr4): Define.
3481         (attr generic_sched, attr generic_vfp): Use tune_cortexr4.
3482         * config/arm/vfp.md: Document fcpys, ffariths, ffarithd, fadds, faddd,
3483         fconsts, fconstd, fcmps and fcmpd.  Use them in insn patterns.
3484         * config/arm/arm.c (arm_issue_rate): Add cortexr4f.
3485         * config/arm/arm1020e.md (v10_ffarith, v10_farith): Use new insn types.
3486         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_add_sub,
3487         cortex_a8_vfp_farith: Ditto.
3488         * config/arm/vfp11.md (vfp_ffarith, vfp_farith): Ditto.
3489         * config/arm/cortex-r4.md: Use tune_cortexr4.
3490         * config/arm/cortex-r4f.md: New file.
3491
3492 2008-09-01  Richard Guenther  <rguenther@suse.de>
3493
3494         PR tree-optimization/37305
3495         * tree-ssa-ccp.c (ccp_fold): Do not set TREE_OVERFLOW on
3496         the result of constant conversions.
3497         (fold_gimple_assign): Likewise.
3498
3499 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
3500
3501         * sel-sched-ir.c (cmp_v_in_regset_pool): Surround with
3502         #ifdef ENABLE_CHECKING.
3503
3504 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
3505
3506         * sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING.
3507         * sched-int.h (print_insn, print_pattern, print_value): Declare also
3508         when !INSN_SCHEDULING.
3509
3510 2008-09-01  Andreas Schwab  <schwab@suse.de>
3511
3512         * config/ia64/ia64.c (TARGET_ADDRESS_COST): Update.
3513
3514 2008-09-01  Paul Brook  <paul@codesourcery.com>
3515
3516         * config/arm/arm.c (arm_no_early_mul_dep): Handle multiply-subtract.
3517
3518 2008-09-01  Jan Hubicka  <jh@suse.cz>
3519
3520         * config/spu/spu.c (spu_expand_block_move) Update call of MOVE_RATIO.
3521
3522         * expr.c (MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P, SET_BY_PIECES_P):
3523         Pass speed operand.
3524         * expr.h (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Update.
3525         * gimplify.c (gimplify_init_constructor): Add speed operand.
3526         * tree-sra.c (decide_block_copy): Likewise.
3527         * tree-inline.c (estimate_move_cost): Likewise.
3528         * config/alpha/alpha.h (MOVE_RATIO): Update.
3529         * config/frv/frv.c (MOVE_RATIO): Update.
3530         * config/spu/spu.h (MOVE_RATIO): Update.
3531         * config/sparc/sparc.h (MOVE_RATIO): Update.
3532         * config/i386/i386.h (MOVE_RATIO, CLEAR_RATIO): Update.
3533         * config/m68hc11/m68hc11.h (MOVE_RATIO): Update.
3534         * config/cris/cris.h (MOVE_RATIO): Update.
3535         * config/mn10300/mn10300.h (MOVE_RATIO): Update.
3536         * config/arm/arm.h (MOVE_RATIO): Update.
3537         * config/pa/pa.md: Update uses of MOVE_RATIO
3538         * config/pa/pa.h (MOVE_RATIO): Update.
3539         * config/mips/mips.h (MOVE_RATIO, MOVE_BY_PIECES,
3540         CLEAR_RATIO, SET_RATIO): Update.
3541         * config/h8300/h8300.h (MOVE_RATIO): Update.
3542         * config/v850/v850.h (MOVE_RATIO): Update.
3543         * config/bfin/bfin.h (MOVE_RATIO): Update.
3544
3545 2008-08-31  Andrey Belevantsev  <abel@ispras.ru>
3546             Dmitry Melnik  <dm@ispras.ru>
3547             Dmitry Zhurikhin  <zhur@ispras.ru>
3548             Alexander Monakov  <amonakov@ispras.ru>
3549             Maxim Kuvyrkov  <maxim@codesourcery.com>
3550
3551         * sel-sched.h, sel-sched-dump.h, sel-sched-ir.h, sel-sched.c,
3552         sel-sched-dump.c, sel-sched-ir.c: New files.
3553         * Makefile.in (OBJS-common): Add selective scheduling object files.
3554         (sel-sched.o, sel-sched-dump.o, sel-sched-ir.o): New entries.
3555         (SEL_SCHED_IR_H, SEL_SCHED_DUMP_H): New entries.
3556         (sched-vis.o): Add dependency on $(INSN_ATTR_H).
3557         * cfghooks.h (get_cfg_hooks, set_cfg_hooks): New prototypes.
3558         * cfghooks.c (get_cfg_hooks, set_cfg_hooks): New functions.
3559         (make_forwarder_block): Update loop latch if we have redirected
3560         the loop latch edge.
3561         * cfgloop.c (get_loop_body_in_custom_order): New function.
3562         * cfgloop.h (LOOPS_HAVE_FALLTHRU_PREHEADERS): New enum field.
3563         (CP_FALLTHRU_PREHEADERS): Likewise.
3564         (get_loop_body_in_custom_order): Declare.
3565         * cfgloopmanip.c (has_preds_from_loop): New.
3566         (create_preheader): Honor CP_FALLTHRU_PREHEADERS.
3567         Assert that the preheader edge will be fall thru when it is set.
3568         * common.opt (fsel-sched-bookkeeping, fsel-sched-pipelining,
3569         fsel-sched-pipelining-outer-loops, fsel-sched-renaming,
3570         fsel-sched-substitution, fselective-scheduling): New flags.
3571         * cse.c (hash_rtx_cb): New.
3572         (hash_rtx): Use it.
3573         * dbgcnt.def (sel_sched_cnt, sel_sched_region_cnt,
3574         sel_sched_insn_cnt): New counters.
3575         * final.c (compute_alignments): Export.  Free dominance
3576         info after loop_optimizer_finalize.
3577         * genattr.c (main): Output maximal_insn_latency prototype.
3578         * genautomata.c (output_default_latencies): New.
3579         Factor its code from ...
3580         (output_internal_insn_latency_func): ... here.
3581         (output_internal_maximal_insn_latency_func): New.
3582         (output_maximal_insn_latency_func): New.
3583         * hard-reg-set.h (UHOST_BITS_PER_WIDE_INT): Define unconditionally.
3584         (struct hard_reg_set_iterator): New.
3585         (hard_reg_set_iter_init, hard_reg_set_iter_set,
3586         hard_reg_set_iter_next): New functions.
3587         (EXECUTE_IF_SET_IN_HARD_REG_SET): New macro.
3588         * lists.c (remove_free_INSN_LIST_node,
3589         remove_free_EXPR_LIST_node): New functions.
3590         * loop-init.c (loop_optimizer_init): When
3591         LOOPS_HAVE_FALLTHRU_PREHEADERS, set CP_FALLTHRU_PREHEADERS when
3592         calling create_preheaders.
3593         (loop_optimizer_finalize): Do not verify flow info after reload.
3594         * recog.c (validate_replace_rtx_1): New parameter simplify.
3595         Default it to true.  Update all uses.  Factor out simplifying
3596         code to ...
3597         (simplify_while_replacing): ... this new function.
3598         (validate_replace_rtx_part,
3599         validate_replace_rtx_part_nosimplify): New.
3600         * recog.h (validate_replace_rtx_part,
3601         validate_replace_rtx_part_nosimplify): Declare.
3602         * rtl.c (rtx_equal_p_cb): New.
3603         (rtx_equal_p): Use it.
3604         * rtl.h (rtx_equal_p_cb, hash_rtx_cb): Declare.
3605         (remove_free_INSN_LIST_NODE, remove_free_EXPR_LIST_node,
3606         debug_bb_n_slim, debug_bb_slim,    print_rtl_slim): Likewise.
3607         * vecprim.h: Add a vector type for unsigned int.
3608         * haifa-sched.c: Include vecprim.h and cfgloop.h.
3609         (issue_rate, sched_verbose_param, note_list, dfa_state_size,
3610         ready_try, cycle_issued_insns, spec_info): Make global.
3611         (readyp): Initialize.
3612         (dfa_lookahead): New global variable.
3613         (old_max_uid, old_last_basic_block): Remove.
3614         (h_i_d): Make it a vector.
3615         (INSN_TICK, INTER_TICK, QUEUE_INDEX, INSN_COST): Make them work
3616         through HID macro.
3617         (after_recovery, adding_bb_to_current_region_p):
3618         New variables to handle correct insertion of the recovery code.
3619         (struct ready_list): Move declaration to sched-int.h.
3620         (rgn_n_insns): Removed.
3621         (rtx_vec_t): Move to sched-int.h.
3622         (find_insn_reg_weight): Remove.
3623         (find_insn_reg_weight1): Rename to find_insn_reg_weight.
3624         (haifa_init_h_i_d, haifa_finish_h_i_d):
3625         New functions to initialize / finalize haifa instruction data.
3626         (extend_h_i_d, init_h_i_d): Rewrite.
3627         (unlink_other_notes): Move logic to add_to_note_list.  Handle
3628         selective scheduler.
3629         (ready_lastpos, ready_element, ready_sort, reemit_notes,
3630         find_fallthru_edge): Make global, remove static prototypes.
3631         (max_issue): Make global.  Add privileged_n and state parameters.  Use
3632         them.
3633         (extend_global, extend_all): Removed.
3634         (init_before_recovery): Add new param.  Fix the handling of the case
3635         when we insert a recovery code before the EXIT which has a predecessor
3636         with a fallthrough edge to it.
3637         (create_recovery_block): Make global.  Rename to
3638         sched_create_recovery_block.  Update.
3639         (change_pattern): Rename to sched_change_pattern.  Make global.
3640         (speculate_insn): Rename to sched_speculate_insn.  Make global.
3641         Split haifa-specific functionality into ...
3642         (haifa_change_pattern): New static function.
3643         (sched_extend_bb): New static function.
3644         (sched_init_bbs): New function.
3645         (current_sched_info): Change type to struct haifa_sched_info.
3646         (insn_cost): Adjust for selective scheduling.
3647         (dep_cost_1): New function.  Move logic from ...
3648         (dep_cost): ... here.
3649         (dep_cost): Use dep_cost_1.
3650         (contributes_to_priority_p): Use sched_deps_info instead of
3651         current_sched_info.
3652         (priority): Adjust to work with selective scheduling.  Process the
3653         corner case when all dependencies don't contribute to priority.
3654         (rank_for_schedule): Use ds_weak instead of dep_weak.
3655         (advance_state): New function.  Move logic from ...
3656         (advance_one_cycle): ... here.
3657         (add_to_note_list, concat_note_lists): New functions.
3658         (rm_other_notes): Make static.  Adjust for selective scheduling.
3659         (remove_notes, restore_other_notes): New functions.
3660         (move_insn): Add two arguments.  Update assert.  Don't call
3661         reemit_notes.
3662         (choose_ready): Remove lookahead variable, use dfa_lookahead.
3663         Remove more_issue, max_points.  Move the code to initialize
3664         max_lookahead_tries to max_issue.
3665         (schedule_block): Remove rgn_n_insns1 parameter.  Don't allocate
3666         ready.  Adjust use of move_insn.  Call restore_other_notes.
3667         (luid): Remove.
3668         (sched_init, sched_finish): Move Haifa-specific initialization/
3669         finalization to ...
3670         (haifa_sched_init, haifa_sched_finish): ... respectively.
3671         New functions.
3672         (setup_sched_dump): New function.
3673         (haifa_init_only_bb): New static function.
3674         (haifa_speculate_insn): New static function.
3675         (try_ready): Use haifa_* instead of speculate_insn and change_pattern.
3676         (extend_ready, extend_all): Remove.
3677         (sched_extend_ready_list, sched_finish_ready_list): New functions.
3678         (create_check_block_twin, add_to_speculative_block): Use
3679         haifa_insns_init instead of extend_global.  Update to use new
3680         initialization functions.  Change parameter.  Factor out code from
3681         create_check_block_twin to ...
3682         (sched_create_recovery_edges) ... this new function.
3683         (add_block): Remove.
3684         (sched_scan_info): New.
3685         (extend_bb): Use sched_scan_info.
3686         (init_bb, extend_insn, init_insn, init_insns_in_bb, sched_scan): New
3687         static functions for walking through scheduling region.
3688         (sched_luids): New vector variable to replace uid_to_luid.
3689         (luids_extend_insn): New function.
3690         (sched_max_luid): New variable.
3691         (luids_init_insn): New function.
3692         (sched_init_luids, sched_finish_luids): New functions.
3693         (insn_luid): New debug function.
3694         (sched_extend_target): New function.
3695         (haifa_init_insn): New static function.
3696         (sched_init_only_bb): New hook.
3697         (sched_split_block): New hook.
3698         (sched_split_block_1): New function.
3699         (sched_create_empty_bb): New hook.
3700         (sched_create_empty_bb_1): New function.
3701         (common_sched_info, ready): New global variables.
3702         (current_sched_info_var): Remove.
3703         (move_block_after_check): Use common_sched_info.
3704         (haifa_luid_for_non_insn): New static function.
3705         (init_before_recovery): Use haifa_init_only_bb instead of add_block.
3706         (increase_insn_priority): New.
3707         * modulo-sched.c: (issue_rate): Remove static declaration.
3708         (sms_sched_info): Change type to haifa_sched_info.
3709         (sms_sched_deps_info, sms_common_sched_info): New variables.
3710         (setup_sched_infos): New.
3711         (sms_schedule): Initialize them.  Call haifa_sched_init/finish.
3712         Do not call regstat_free_calls_crossed.
3713         (sms_print_insn): Use const_rtx.
3714         * params.def (PARAM_MAX_PIPELINE_REGION_BLOCKS,
3715         PARAM_MAX_PIPELINE_REGION_INSNS, PARAM_SELSCHED_MAX_LOOKAHEAD,
3716         PARAM_SELSCHED_MAX_SCHED_TIMES, PARAM_SELSCHED_INSNS_TO_RENAME,
3717         PARAM_SCHED_MEM_TRUE_DEP_COST): New.
3718         * sched-deps.c (sched_deps_info): New.  Update all relevant uses of
3719         current_sched_info to use it.
3720         (enum reg_pending_barrier_mode): Move to sched-int.h.
3721         (h_d_i_d): New variable. Initialize to NULL.
3722         ({true, output, anti, spec, forward}_dependency_cache): Initialize
3723         to NULL.
3724         (estimate_dep_weak): Remove static declaration.
3725         (sched_has_condition_p): New function.  Adjust users of
3726         sched_get_condition to use it instead.
3727         (conditions_mutex_p): Add arguments indicating which conditions are
3728         reversed.  Use them.
3729         (sched_get_condition_with_rev): Rename from sched_get_condition.  Add
3730         argument to indicate whether returned condition is reversed.  Do not
3731         generate new rtx when condition should be reversed; indicate it by
3732         setting new argument instead.
3733         (add_dependence_list_and_free): Add deps parameter.
3734         Update all users.  Do not free dependence list when
3735         deps context is readonly.
3736         (add_insn_mem_dependence, flush_pending_lists): Adjust for readonly
3737         contexts.
3738         (remove_from_dependence_list, remove_from_both_dependence_lists): New.
3739         (remove_from_deps): New. Use the above functions.
3740         (cur_insn, can_start_lhs_rhs_p): New static variables.
3741         (add_or_update_back_dep_1): Initialize present_dep_type.
3742         (haifa_start_insn, haifa_finish_insn, haifa_note_reg_set,
3743         haifa_note_reg_clobber, haifa_note_reg_use, haifa_note_mem_dep,
3744         haifa_note_dep): New functions implementing dependence hooks for
3745         the Haifa scheduler.
3746         (note_reg_use, note_reg_set, note_reg_clobber, note_mem_dep,
3747         note_dep): New functions.
3748         (ds_to_dt, extend_deps_reg_info, maybe_extend_reg_info_p): New
3749         functions.
3750         (init_deps): Initialize last_reg_pending_barrier and deps->readonly.
3751         (free_deps): Initialize deps->reg_last.
3752         (sched_analyze_reg, sched_analyze_1, sched_analyze_2,
3753         sched_analyze_insn): Update to use dependency hooks infrastructure
3754         and readonly contexts.
3755         (deps_analyze_insn): New function.  Move part of logic from ...
3756         (sched_analyze): ... here.  Also move some logic to ...
3757         (deps_start_bb): ... here.  New function.
3758         (add_forw_dep, delete_forw_dep): Guard use of INSN_DEP_COUNT with
3759         sel_sched_p.
3760         (sched_deps_init): New function.  Move code from ...
3761         (init_dependency_caches): ... here.  Remove.
3762         (init_deps_data_vector): New.
3763         (sched_deps_finish): New function.  Move code from ...
3764         (free_dependency_caches): ... here.  Remove.
3765         (init_deps_global, finish_deps_global): Adjust for use with
3766         selective scheduling.
3767         (get_dep_weak): Move logic to ...
3768         (get_dep_weak_1): New function.
3769         (ds_merge): Move logic to ...
3770         (ds_merge_1): New static function.
3771         (ds_full_merge, ds_max_merge, ds_get_speculation_types): New functions.
3772         (ds_get_max_dep_weak): New function.
3773         * sched-ebb.c (sched_n_insns): Rename to sched_rgn_n_insns.
3774         (n_insns): Rename to rgn_n_insns.
3775         (debug_ebb_dependencies): New function.
3776         (init_ready_list): Use it.
3777         (begin_schedule_ready): Use sched_init_only_bb.
3778         (ebb_print_insn): Indicate when an insn starts a new cycle.
3779         (contributes_to_priority, compute_jump_reg_dependencies,
3780         add_remove_insn, fix_recovery_cfg): Add ebb_ prefix to function names.
3781         (add_block1): Remove to ebb_add_block.
3782         (ebb_sched_deps_info, ebb_common_sched_info): New variables.
3783         (schedule_ebb): Initialize them.  Use remove_notes instead of
3784         rm_other_notes.  Use haifa_local_init/finish.
3785         (schedule_ebbs): Use haifa_sched_init/finish.
3786         * sched-int.h: Include vecprim.h, remove rtl.h.
3787         (struct ready_list): Delete declaration.
3788         (sched_verbose_param, enum sched_pass_id_t,
3789         bb_vec_t, insn_vec_t, rtx_vec_t): New.
3790         (struct sched_scan_info_def): New structure.
3791         (sched_scan_info, sched_scan, sched_init_bbs,
3792         sched_init_luids, sched_finish_luids, sched_extend_target,
3793         haifa_init_h_i_d, haifa_finish_h_i_d): Declare.
3794         (struct common_sched_info_def): New.
3795         (common_sched_info, haifa_common_sched_info,
3796         sched_emulate_haifa_p): Declare.
3797         (sel_sched_p): New.
3798         (sched_luids): Declare.
3799         (INSN_LUID, LUID_BY_UID, SET_INSN_LUID): Declare.
3800         (sched_max_luid, insn_luid): Declare.
3801         (note_list, remove_notes, restore_other_notes, bb_note): Declare.
3802         (sched_insns_init, sched_insns_finish, xrecalloc, reemit_notes,
3803         print_insn, print_pattern, print_value, haifa_classify_insn,
3804         sel_find_rgns, sel_mark_hard_insn, dfa_state_size, advance_state,
3805         setup_sched_dump, sched_init, sched_finish,
3806         sel_insn_is_speculation_check): Export.
3807         (struct ready_list): Move from haifa-sched.c.
3808         (ready_try, ready, max_issue): Export.
3809         (ebb_compute_jump_reg_dependencies, find_fallthru_edge,
3810         sched_init_only_bb, sched_split_block, sched_split_block_1,
3811         sched_create_empty_bb, sched_create_empty_bb_1,
3812         sched_create_recovery_block, sched_create_recovery_edges): Export.
3813         (enum reg_pending_barrier_mode): Export.
3814         (struct deps): New fields `last_reg_pending_barrier' and `readonly'.
3815         (deps_t): New.
3816         (struct sched_info): Rename to haifa_sched_info.  Use const_rtx for
3817         print_insn field.  Move add_block and fix_recovery_cfg to
3818         common_sched_info_def.  Move compute_jump_reg_dependencies,
3819         use_cselib  ...
3820         (struct sched_deps_info_def): ... this new structure.
3821         (sched_deps_info): Declare.
3822         (struct spec_info_def): Remove weakness_cutoff, add
3823         data_weakness_cutoff and control_weakness_cutoff.
3824         (spec_info): Declare.
3825         (struct _haifa_deps_insn_data): Split from haifa_insn_data.  Add
3826         dep_count field.
3827         (struct haifa_insn_data): Rename to struct _haifa_insn_data.
3828         (haifa_insn_data_def, haifa_insn_data_t): New typedefs.
3829         (current_sched_info): Change type to struct haifa_sched_info.
3830         (haifa_deps_insn_data_def, haifa_deps_insn_data_t): New typedefs.
3831         (h_d_i_d): New variable.
3832         (HDID): New accessor macro.
3833         (h_i_d): Change type to VEC (haifa_insn_data_def, heap) *.
3834         (HID): New accessor macro.  Rewrite h_i_d accessor macros through HID
3835         and HDID.
3836         (IS_SPECULATION_CHECK_P): Update for selective scheduler.
3837         (enum SCHED_FLAGS): Update for selective scheduler.
3838         (enum SPEC_SCHED_FLAGS): New flag SEL_SCHED_SPEC_DONT_CHECK_CONTROL.
3839         (init_dependency_caches, free_dependency_caches): Delete declarations.
3840         (deps_analyze_insn, remove_from_deps, get_dep_weak_1,
3841         estimate_dep_weak, ds_full_merge, ds_max_merge, ds_weak,
3842         ds_get_speculation_types, ds_get_max_dep_weak, sched_deps_init,
3843         sched_deps_finish, haifa_note_reg_set, haifa_note_reg_use,
3844         haifa_note_reg_clobber, maybe_extend_reg_info_p, deps_start_bb,
3845         ds_to_dt): Export.
3846         (rm_other_notes): Delete declaration.
3847         (schedule_block): Remove one argument.
3848         (cycle_issued_insns, issue_rate, dfa_lookahead, ready_sort,
3849         ready_element, ready_lastpos, sched_extend_ready_list,
3850         sched_finish_ready_list, sched_change_pattern, sched_speculate_insn,
3851         concat_note_lists): Export.
3852         (struct region): Move from sched-rgn.h.
3853         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
3854         RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
3855         BLOCK_TO_BB, CONTAINING_RGN): Export.
3856         (ebb_head, BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB, INSN_BB): Likewise.
3857         (current_nr_blocks, current_blocks, target_bb): Likewise.
3858         (dep_cost_1, sched_is_disabled_for_current_region_p, sched_rgn_init,
3859         sched_rgn_finish, rgn_setup_region, sched_rgn_compute_dependencies,
3860         sched_rgn_local_init, extend_regions,
3861         rgn_make_new_region_out_of_new_block, compute_priorities,
3862         debug_rgn_dependencies, free_rgn_deps, contributes_to_priority,
3863         extend_rgns, deps_join rgn_setup_common_sched_info,
3864         rgn_setup_sched_infos, debug_regions, debug_region, dump_region_dot,
3865         dump_region_dot_file, haifa_sched_init, haifa_sched_finish): Export.
3866         (get_rgn_sched_max_insns_priority, sel_add_to_insn_priority,
3867         increase_insn_priority): Likewise.
3868         * sched-rgn.c: Include sel-sched.h.
3869         (ref_counts): New static variable.  Use it ...
3870         (INSN_REF_COUNT): ... here.  Rewrite and move closer to uses.
3871         (FED_BY_SPEC_LOAD, IS_LOAD_INSN): Rewrite to use HID accessor macro.
3872         (sched_is_disabled_for_current_region_p): Delete static declaration.
3873         (struct region): Move to sched-int.h.
3874         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
3875         ebb_head): Define and initialize.
3876         (RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
3877         BLOCK_TO_BB, CONTAINING_RGN, debug_regions, extend_regions,
3878         BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB): Move to
3879         sched-int.h.
3880         (find_single_block_region): Add new argument to indicate that EBB
3881         regions should be constructed.
3882         (debug_live): Delete declaration.
3883         (current_nr_blocks, current_blocks, target_bb):
3884         Remove static qualifiers.
3885         (compute_dom_prob_ps, check_live, update_live, set_spec_fed): Delete
3886         declaration.
3887         (init_regions): Delete declaration.
3888         (debug_region, bb_in_region_p, dump_region_dot_file, dump_region_dot,
3889         rgn_estimate_number_of_insns): New.
3890         (too_large): Use estimate_number_of_insns.
3891         (haifa_find_rgns): New. Move the code from ...
3892         (find_rgns): ... here.  Call either sel_find_rgns or haifa_find_rgns.
3893         (free_trg_info): New.
3894         (compute_trg_info): Allocate candidate tables here instead of ...
3895         (init_ready_list): ... here.
3896         (rgn_print_insn): Use const_rtx.
3897         (contributes_to_priority, extend_regions): Delete static declaration.
3898         (add_remove_insn, fix_recovery_cfg): Add rgn_ to function names.
3899         (add_block1): Rename to rgn_add_block.
3900         (debug_rgn_dependencies): Delete static qualifier.
3901         (new_ready): Use sched_deps_info.  Simplify.
3902         (rgn_common_sched_info, rgn_const_sched_deps_info,
3903         rgn_const_sel_sched_deps_info, rgn_sched_deps_info, rgn_sched_info):
3904         New.
3905         (region_sched_info): Rename to rgn_const_sched_info.
3906         (deps_join): New, extracted from ...
3907         (propagate_deps): ... here.
3908         (compute_block_dependences, debug_dependencies): Update for selective
3909         scheduling.
3910         (free_rgn_deps, compute_priorities): New functions.
3911         (sched_rgn_init, sched_rgn_finish, rgn_setup_region,
3912         sched_rgn_compute_dependencies): New functions.
3913         (schedule_region): Use them.
3914         (sched_rgn_local_init, sched_rgn_local_free, sched_rgn_local_finish,
3915         rgn_setup_common_sched_info, rgn_setup_sched_infos):
3916         New functions.
3917         (schedule_insns): Call new functions that were split out.
3918         (rgn_make_new_region_out_of_new_block): New.
3919         (get_rgn_sched_max_insns_priority): New.
3920         (rest_of_handle_sched, rest_of_handle_sched2): Call selective
3921         scheduling when appropriate.
3922         * sched-vis.c: Include insn-attr.h.
3923         (print_value, print_pattern): Make global.
3924         (print_rtl_slim, debug_bb_slim, debug_bb_n_slim): New functions.
3925         * target-def.h (TARGET_SCHED_ADJUST_COST_2,
3926         TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
3927         TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
3928         TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_CHECKED_DS,
3929         TARGET_SCHED_GET_INSN_SPEC_DS, TARGET_SCHED_SKIP_RTX_P): New target
3930         hooks.  Initialize them to 0.
3931         (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
3932         * target.h (struct gcc_target): Add them.  Rename gen_check field to
3933         gen_spec_check.
3934         * flags.h (sel_sched_switch_set): Declare.
3935         * opts.c (sel_sched_switch_set): New variable.
3936         (decode_options): Unset flag_sel_sched_pipelining_outer_loops if
3937         pipelining is disabled from command line.
3938         (common_handle_option): Record whether selective scheduling is
3939         requested from command line.
3940         * doc/invoke.texi: Document new flags and parameters.
3941         * doc/tm.texi: Document new target hooks.
3942         * config/ia64/ia64.c (TARGET_SCHED_GEN_SPEC_CHECK): Define to
3943         ia64_gen_check.
3944         (dfa_state_size): Do not declare locally.
3945         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 0.
3946         * config/rs6000/rs6000.c (rs6000_init_sched_context,
3947         rs6000_alloc_sched_context, rs6000_set_sched_context,
3948         rs6000_free_sched_context): New functions.
3949         (struct _rs6000_sched_context): New.
3950         (rs6000_sched_reorder2): Do not modify INSN_PRIORITY for selective
3951         scheduling.
3952         (rs6000_sched_finish): Do not run for selective scheduling.
3953
3954 2008-08-31  Jan Hubicka  <jh@suse.cz>
3955
3956         * frv.c (frv_rtx_costs): Update forward declaration.
3957         * spu.c (spu_rtx_costs): Likewise.
3958         * pdp11.c: Include df.h
3959         (pdp11_output_function_epilogue): Use df_set_regs_ever_live.
3960         * m68hc11.c (m68hc11_gen_highpart): Fix call of gen_rtx_SUBREG.
3961         (m68hc11_rtx_costs_1): Fix call of rtx_cost.
3962         * iq2000.c (iq2000_address_cost): Add speed argument.
3963         (iq2000_rtx_costs): Likewise.
3964         * mn10300.c (mn10300_address_cost_1): Remove speed argument;
3965         update call of mn10300_address_cost.
3966         * mcore.c: Include df.h
3967         (mcore_rtx_costs): Update prototype.
3968         * score3.c: Include df.h
3969         (score3_rtx_costs): Remove speed argument.
3970         * score7.c: Include df.h
3971         (score7_address_cost): Remove speed argument.
3972         * score-protos.h (score_address_cost): Update prototype.
3973         * score.c: Include df.h
3974         (score_rtx_costs): Update call of costs functions.
3975         * v850.c (v850_rtx_costs): Add bool argument.
3976
3977 2008-08-31  Hans-Peter Nilsson  <hp@axis.com>
3978
3979         * config/cris/cris.c (cris_rtx_costs): Correct call to rtx_costs.
3980
3981 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
3982
3983         * gthr-win32.h (__gthread_setspecific): Use CONST_CAST2.
3984         * config/i386/gthr-win32.c (__gthread_setspecific): Same.
3985
3986 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
3987
3988         * mkmap-flat.awk: Add option pe_dll.
3989         * config/i386/t-cygming (SHLIB_LINK): Support building libgcc_s.
3990         * config/i386/t-cygwin (SHLIB_LC): Add.
3991         * config/i386/t-mingw32 (SHLIB_LC): Add.
3992         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): New.
3993         (SUBTARGET_EXTRA_SPECS): Use SHARED_LIBGCC_UNDEFS_SPEC.
3994         (LINK_SPEC): Support libgcc_s.
3995         (LIBGCC_SPEC): Support libgcc_s.
3996         (LIBGCC_SONAME): New.
3997
3998 2008-08-31  Jan Hubicka  <jh@suse.cz>
3999
4000         * predict.c (maybe_hot_bb_p, maybe_hot_edge_p): Previous commit
4001         mistakely had old version of patch.
4002
4003         * ipa-cp.c (ipcp_need_original_clone_p): Remove.
4004         (ipcp_estimate_growth): New.
4005         (ipcp_insert_stage): Use ipcp_estimate_growth.
4006         * profile.c (branch_prob): When reading failed, do not consider
4007         profile as read.
4008
4009 2008-08-31  Jan Hubicka  <jh@suse.cz>
4010
4011         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Check that
4012         loop is optimized for speed.
4013
4014 2008-08-31  Richard Guenther  <rguenther@suse.de>
4015
4016         PR middle-end/37289
4017         * fold-const.c (fold_binary): Retain conversions in folding
4018         ~A + 1 to -A.
4019
4020 2008-08-31  Jan Hubicka  <jh@suse.cz>
4021
4022         * postreload-gcse.c (eliminate_partially_redundant_loads):
4023         Use optimize_bb_for_size_p.
4024         * predict.c (maybe_hot_frequency_p): Make inline.
4025         (maybe_hot_count_p): Break out from ...
4026         (maybe_hot_bb_p): ... this one.
4027         (maybe_hot_edge_p): Simplify.
4028         * basic-block.h (probably_cold_bb_p): Remove.
4029
4030 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
4031
4032         PR target/37168
4033         * config/rs6000/rs6000-protos.h (const_vector_elt_as_int): Add
4034         prototype.
4035         * config/rs6000/rs6000.c (const_vector_elt_as_int): No longer static.
4036         * config/rs6000/altivec.md (easy_vector_constant_add_self splitter):
4037         Also split V4SFmode.
4038         * config/rs6000/predicates.md (easy_vector_constant_add_self): Handle
4039         vector float modes.
4040
4041 2008-08-31  Jan Hubicka  <jh@suse.cz>
4042
4043         * predict.c (PROB_VERY_LIKELY): Make small enough so things
4044         become cold.
4045         * predict.def (PRED_NORETURN_CALL, PRED_COLD_CALL): Use it.
4046
4047 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
4048
4049         PR debug/37287
4050         * dwarf2out.c (gen_namespace_die): For DECL_EXTERNAL modules don't
4051         add source coords.
4052
4053         * dwarf2out.c (native_encode_initializer): Subtract min_index for
4054         non-range array index.  Handle VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
4055
4056 2008-08-31  Jan Hubicka  <jh@suse.cz>
4057
4058         * sparc.h (BRANCH_COST): Fix macro definition.
4059         * avr.c (avr_operand_rtx_cost): Add speed argument.
4060         (avr_rtx_costs): Update calls of avr_operand_rtx_cost.
4061
4062 2008-08-31  Richard Guenther  <rguenther@suse.de>
4063
4064         * tree-cfg.c (verify_types_in_gimple_assign): Dump mismatched
4065         types instead of operands.  Re-instantiate verifying of
4066         binary expression operands.
4067
4068 2008-08-30  Jan Hubicka  <jh@suse.cz>
4069
4070         * fwprop.c (should_replace_address): Add speed attribute.
4071         (PR_OPTIMIZE_FOR_SPEED): New flag.
4072         (propagate_rtx_1): Use it.
4073         (propagate_rtx): Set it.
4074         (try_fwprop_subst): Update call of rtx_costs.
4075         (forward_propagate_and_simplify): LIkewise.
4076         * hooks.c (hook_int_rtx_bool_0): New
4077         (hook_bool_rtx_int_int_intp_false): Replace by ...
4078         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
4079         * hooks.h (hook_int_rtx_bool_0): New
4080         (hook_bool_rtx_int_int_intp_false): Replace by ...
4081         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
4082         * optabs.c (avoid_expensive_constant): UPdate call of rtx_cost.
4083         (prepare_cmp_insn): UPdate call of rtx_cost.
4084         * postreload.c (reload_cse_simplify_set): Update call of rtx_cost.
4085         (reload_cse_simplify_operands): Update call of rtx_cost.
4086         (reload_cse_move2add): call of rtx_cost.
4087         * target.h (struct gcc_target): Update rtx_costs and address_costs.
4088         * rtlanal.c (rtx_cost): Add speed argument.
4089         (address_cost): Add speed argument
4090         (default_address_cost): Likewise.
4091         (insn_rtx_cost): Likewise.
4092         * cfgloopanal.c (seq_cost): Add speed argument.
4093         (target_reg_cost, target_spill_cost): Turn to array.
4094         (init_set_costs): Update for speed.
4095         (estimate_reg_pressure_cost): Add speed argument.
4096         * auto-inc-dec.c (attempt_change): Update call of rtx_cost.
4097         * dojump.c (prefer_and_bit_test): UPdate call of rtx_cost.
4098         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field speed.
4099         (seq_cost): Add speed argument.
4100         (computation_cost): Add speed arugment.
4101         (add_cost, multiply_by_const, get_address_cost): add speed argument.
4102         (force_expr_to_var_cost): Update for profile info.
4103         (force_var_cost): Likewise.
4104         (split_address_cost): Likewise.
4105         (ptr_difference_cost): Likewise.
4106         (difference_cost): Likewise.
4107         (get_computation_cost_at): Likewise.
4108         (determine_iv_cost): Likewise.
4109         (ivopts_global_cost_for_size): Likewise.
4110         (rewrite_use_address): Likewise.
4111         (tree_ssa_iv_optimize_loop): Initialize speed field.
4112         * cse.c (optimize_this_for_speed_p): New static var.
4113         (notreg_cost): Update call of rtx_cost.
4114         (cse_extended_basic_block): set optimize_this_for_speed_p.
4115         * ifcvt.c (cheap_bb_rtx_cost_p): Update call of rtx_cost.
4116         (noce_try_cmove_arith): Likewise.
4117         (noce_try_sign_mask): LIkewise.
4118         * expr.c (compress_float_constant): Update rtx_cost calls.
4119         * tree-ssa-address.c (most_expensive_mult_to_index): Add speed
4120         argument.
4121         (addr_to_parts): Likewise.
4122         (create_mem_ref): Likewise.
4123         * dse.c (find_shift_sequence): Add speed argument.
4124         (replace_read): Update call.
4125         * calls.c (precompute_register_parameters): Update call of rtx_cost.
4126         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost,
4127         * neg_cost, shift_cost, shiftadd_cost,
4128         shiftsub_cost, mul_cost, sdiv_cost, udiv_cost ,mul_widen_cost,
4129         mul_highpart_cost): Increase dimension.
4130         (init_expmed): Initialize for both size and speed.
4131         (expand_shift): Use profile.
4132         (synth_mult): Use profile.
4133         (choose_mult_variant): Use profile.
4134         (expand_mult): Use profile.
4135         (expand_mult_highpart_optab): Use profile.
4136         (expand_mult_highpart): Use profile.
4137         (expand_smod_pow2): Use profile.
4138         (expand_divmod): Use profile.
4139         * simplify-rtx.c (simplify_binary_operation_1): Update call of
4140         rtx_cost.
4141         * loop-invariant.c (create_new_invariant): Use profile.
4142         (gain_for_invariant): Add speed parameter.
4143         (best_gain_for_invariant): Likewise.
4144         (find_invariants_to_move): Likewise.
4145         (move_single_loop_invariants): Set it.
4146         * target-def.h (TARGET_RTX_COSTS): Use hook.
4147         * rtl.h (rtx_cost, address_cost, insn_rtx_cost): Update prototpe.
4148         (optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
4149         * output.h (default_address_cost): Update prototype.
4150         * combine.c (optimize_this_for_speed_p): New static var.
4151         (combine_validate_cost): Update call of rtx_cost.
4152         (combine_instructions): Set optimize_this_for_speed_p.
4153         (expand_compound_operation): Update call of rtx_cost.
4154         (make_extraction):Update call of rtx_cost.
4155         (force_to_mode):Update call of rtx_cost.
4156         (distribute_and_simplify_rtx):Update call of rtx_cost.
4157         * cfgloop.h (target_reg_cost, target_spill_cost): Turn to array.
4158         (estimate_reg_pressure_cost): Update prototype.
4159         * tree-flow.h (multiply_by_cost, create_mem_ref): Update prototype.
4160         * basic-block.h (optimize_insn_for_size_p, optimize_insn_for_speed_p):
4161         Remove.
4162         * config/alpha/alpha.c (alpha_rtx_costs): Update.
4163         (alpha_rtx_costs): Update.
4164         * config/frv/frv.c (frv_rtx_costs): Update.
4165         * config/s390/s390.c (s390_rtx_costs): Update.
4166         * config/m32c/m32c.c (m32c_memory_move_cost): Update.
4167         (m32c_rtx_costs): Update.
4168         * config/spu/spu.c (TARGET_ADDRESS_COST): Upate.
4169         (spu_rtx_costs): Update.
4170         * config/sparc/sparc.c (sparc_rtx_costs): Update.
4171         * config/m32r/m32r.c (m32r_rtx_costs): Update.
4172         * config/i386/i386.c (:ix86_address_cost): Update.
4173         (ix86_rtx_costs): Update.
4174         * config/sh/sh.c (sh_rtx_costs, sh_address_cost): Update.
4175         * config/pdp11/pdp11.c (pdp11_rtx_costs): Update.
4176         * config/avr/avr.c (avr_rtx_costs, avr_address_cost): Update.
4177         * config/crx/crx.c (crx_address_cost): Update.
4178         * config/xtensa/xtensa.c (xtensa_rtx_costs): Update.
4179         * config/stormy16/stormy16.c
4180         (xstormy16_address_cost, xstormy16_rtx_costs): Update.
4181         * config/m68hc11/m68hc11.c
4182         (m68hc11_address_cost, m68hc11_rtx_costs): Update.
4183         * config/cris/cris.c (cris_rtx_costs, cris_address_cost): Update.
4184         * config/iq2000/iq2000.c (iq2000_rtx_costs, iq2000_address_cost):
4185         Update.
4186         * config/mn10300/mn10300.c (mn10300_address_cost, mn10300_rtx_costs):
4187         Update
4188         * config/ia64/ia64.c (ia64_rtx_costs): Update.
4189         * config/m68k/m68k.c (m68k_rtx_costs): Update.
4190         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update.
4191         * config/arc/arc.c (arc_rtx_costs, arc_address_cost): Update.
4192         * config/mcore/mcore.c (TARGET_ADDRESS_COST): Update.
4193         (mcore_rtx_costs): update.
4194         * config/score/score3.c (score3_rtx_costs): Update.
4195         * config/score/score7.c (score7_rtx_costs): Update.
4196         * config/score/score3.h (score3_rtx_costs):Update.
4197         * config/score/score7.h (score7_rtx_costs): Update.
4198         * config/score/score.c (score_rtx_costs): Update.
4199         * config/arm/arm.c (arm_address_cost): Update.
4200         (arm_rtx_costs_1): Update.
4201         (arm_rtx_costs_1): Update.
4202         (arm_size_rtx_costs): Update.
4203         (arm_size_rtx_costs): Update.
4204         (arm_size_rtx_costs): Update.
4205         (arm_xscale_rtx_costs): Update.
4206         (arm_thumb_address_cost): Update.
4207         * config/pa/pa.c (hppa_address_cost): Update.
4208         * config/mips/mips.c (mips_rtx_costs): Update.
4209         * config/vax/vax.c (vax_address_cost): Update.
4210         * config/h8300/h8300.c (h8300_shift_costs): Update.
4211         (h8300_rtx_costs): Update.
4212         * config/v850/v850.c (TARGET_ADDRESS_COST): Update.
4213         (v850_rtx_costs): Update.
4214         * config/mmix/mmix.c (mmix_rtx_costs, mmix_rtx_costs): Update.
4215         * config/bfin/bfin.c
4216         (bfin_address_cost): Update.
4217         (bfin_rtx_costs): Update.
4218         * stmt.c (lshift_cheap_p): Update.
4219
4220 2008-08-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4221
4222         PR middle-end/36444
4223         * expmed.c (extract_bit_field_1): Check the mode size to make
4224         sure the vector modes have the same size.
4225
4226 2008-08-29  Michael Meissner  <gnu@the-meissners.org>
4227
4228         * dojump.c (top level): Include basic-block.h to declare
4229         optimize_insn_for_speed_p
4230
4231         * Makefile.in (dodump.h): Add $(BASIC_BLOCK_H) dependency.
4232
4233         * opts.h (CL_SAVE): New option class for marking options that are
4234         target specific options usable in the target attribute.
4235         (CL_MIN_OPTION_CLASS): CL_SAVE is now the minimum option.
4236
4237         * opt-functions.awk (switch_flags): Add CL_SAVE flag so backends
4238         can easily find the target specific options that are safe to use
4239         in the attribute or pragma.
4240
4241         * attribs.c (decl_attributes): Change #pragma GCC option to
4242         #pragma GCC target, and attribute((option(...))) to
4243         attribute((target(...))).
4244
4245         * doc/extend.texi (target attribute): Change from option
4246         attribute.  Delete push/pop/reset.
4247         (#pragma GCC target): Change from #pragma GCC option.  Delete
4248         push/pop/reset.
4249         (#pragma GCC push_options): Document new pragma.
4250         (#pragma GCC pop_options): Document new pragma.
4251         (#pragma GCC reset_options): Document new pragma.
4252
4253         * targhooks.c (default_target_option_valid_attribute_p): Add
4254         warning about port not supporting target attributes.
4255         (default_target_option_pragma_parse): New function, warn about
4256         #pragma GCC target not being supported.
4257
4258         * targhooks.h (default_target_option_pragma_parse): Add
4259         declaration.
4260
4261         * tree.h (TI_CURRENT_TARGET_PRAGMA): Rename from
4262         TI_CURRENT_OPTION_PRAGMA.
4263         (current_target_pragma): Rename from current_option_pragma.
4264
4265         * target.h: (struct target_option): Delete booleans for changing
4266         the optimization level on hot/cold functions.  Change signature of
4267         pragma_parse hook to take a second tree.
4268
4269         * c-tree.h (c_builtin_function_ext_scope): Add declaration.
4270
4271         * c-decl.c (c_builtin_function_ext_scope): New function, guarantee
4272         that the declaration is done at global scope.
4273
4274         * langhooks.c (add_builtin_function_common): Move most of the code
4275         from add_builtin_function here, calling the hook passed in.
4276         (add_builtin_function): Call add_builtin_function_common with
4277         standard builtin hook.
4278         (add_builtin_function_ext_scope): New function to add builtins to
4279         global scope.
4280
4281         * langhooks.h (struct lang_hooks): Add builtin_function_ext_scope
4282         hook.
4283         (add_builtin_function_ext_scope): Add declaration.
4284
4285         * c-pragma.c (handle_pragma_target): Rename from
4286         handle_pragma_option, #pragma GCC option is now #pragma GCC
4287         target.  Move warning about port not supporting target options to
4288         default pragma parse hook.  Remove push/pop/reset from this
4289         pragma.
4290         (handle_pragma_optimize): Remove push/pop/reset from this pragma.
4291         (option_stack): Delete static variable.
4292         (optimize_stack): Ditto.
4293         (optons_stack): New stack of saved target and optimization
4294         options.
4295         (handle_pragma_push_options): New function to handle pushing both
4296         target and optimization options.
4297         (handle_pragma_pop_options): New function to handle popping both
4298         target and optimization options.
4299         (handle_pragma_reset_options): New function to handle resetting
4300         both target and optimization options to their initial state.
4301         (init_pragma): Rename handle_pragma_option to
4302         handle_pragma_target.  Add support for push_options, pop_options,
4303         and reset_options pragmas.
4304
4305         * target-def.h (TARGET_OPTION_PRAGMA_PARSE): Change default to
4306         default_target_option_pragma_parse.
4307         (TARGET_OPTION_VALID_ATTRIBUTE_P): Change default to
4308         default_target_option_valid_attribute_p.
4309         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
4310         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
4311         (TARGET_OPTION_HOOKS): Delete the fields for whether to change
4312         optimization level on hot/cold functions.
4313
4314         * tree-inline.c (tree_can_inline_p): Disable suppressing inlining
4315         if the caller and callee have different optimization levels.
4316
4317         * c-common.c (handle_target_attribute): Rename from
4318         handle_option_attribute, attribute((option(...))) is now
4319         attribute((target(...))).  Move warning if the port does not
4320         support target attributes to the default hook.
4321         (handle_hot_attribute): Delete code to change the optimization
4322         level of hot functions.
4323         (handle_cold_attribute): Ditto.
4324
4325         * config/i386/i386-c.c (ix86_pragma_target_parse): Take a second
4326         argument that is the binary tree options to use if there are no
4327         arguments.  Call ix86_valid_target_attribute_tree instead of
4328         ix86_valid_option_attribute_tree.
4329         (ix86_pragma_target_parse): Rename from ix86_pragma_option_parse.
4330         (ix86_register_pragmas): Use ix86_pragma_target_parse instead of
4331         ix86_pragma_option_parse.
4332
4333         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
4334         Rename from ix86_valid_option_attribute_tree.
4335
4336         * config/i386/i386.c (ix86_add_new_builtins): New function to add
4337         new builtins when the ISA changes.
4338         (ix86_valid_target_attribute_tree): Rename from
4339         ix86_valid_option_attribute_tree.  Change callers.  If the
4340         function specified optimization options, use those as the starting
4341         point before setting up the target attributes.  If the
4342         optimization options were changed in the course of setting the
4343         target attributes, record the new optimization options.
4344         (ix86_valid_target_attribute_tree_inner_p): Rename from
4345         ix86_valid_option_attribute_tree_inner_p.  Change callers.  Call
4346         ix86_add_new_builtins if the ISA changed.
4347         (ix86_valid_target_attribute_p): Rename from
4348         ix86_valid_option_attribute_p.  Change callers.
4349         (enum ix86_builtins): Add IX86_BUILTIN_PCMOV to allow both
4350         __builtin_ia32_pcmov and __builtin_ia32_pcmov_v2di to be declared
4351         as delayed builtin functions.
4352         (struct builtin_isa): New structure to record builtin functions
4353         that should be delayed until the ISA for that function is used.
4354         (ix86_builtins_isa): Change from int to struct to track builtin
4355         functions we want to declare at some point.
4356         (def_builtin): If the front end can delay defining the builtin
4357         functions, don't create builtins for ISAs not part of the default
4358         options.
4359         (def_builtin_const): Ditto.
4360         (bdesc_multi_arg): Declare __builtin_ia32_pcmov and
4361         __builtin_ia32_pcmov_v2di to be different builtin functions.
4362         (ix86_expand_builtin): Changes due to ix86_builtins_isa now being
4363         a structure instead of an int.
4364         (TARGET_OPTION_VALID_ATTRIBUTE_P): Use
4365         ix86_valid_target_attribute_p, not ix86_valid_option_attribute_p.
4366         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
4367         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
4368
4369         * config/ia64/ia64.h
4370         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
4371         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
4372
4373         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE): New
4374         hook, default to being the same as LANG_HOOKS_BUILTIN_FUNCTION.
4375         (LANG_HOOKS_INITIALIZER): Add
4376         LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE hook.
4377
4378 2008-08-30  Kaz Kojima  <kkojima@gcc.gnu.org>
4379
4380         PR target/37270
4381         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Generate
4382         the reload address with the index register for SFmode
4383         access with a displacement.
4384
4385 2008-08-30  Jan Hubicka  <jh@suse.cz>
4386
4387         * optabs.c (expand_abs_nojump): Update BRANCH_COST call.
4388         * fold-cost.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop): Likewise.
4389         * dojump.c (do_jump): Likewise.
4390         * ifcvt.c (MAX_CONDITIONAL_EXECUTE): Likewise.
4391         (note-if_info): Add BRANCH_COST.
4392         (noce_try_store_flag_constants, noce_try_addcc,
4393         noce_try_store_flag_mask, noce_try_cmove_arith, noce_try_cmove_arith,
4394         noce_try_cmove_arith, noce_find_if_block, find_if_case_1,
4395         find_if_case_2): Use computed branch cost.
4396         * expr.h (BRANCH_COST): Update default.
4397         * predict.c (predictable_edge_p): New function.
4398         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, emit_store_flag):
4399         Update BRANCH_COST call.
4400         * basic-block.h (predictable_edge_p): Declare.
4401         * config/alpha/alpha.h (BRANCH_COST): Update.
4402         * config/frv/frv.h (BRANCH_COST): Update.
4403         * config/s390/s390.h (BRANCH_COST): Update.
4404         * config/spu/spu.h (BRANCH_COST): Update.
4405         * config/sparc/sparc.h (BRANCH_COST): Update.
4406         * config/m32r/m32r.h (BRANCH_COST): Update.
4407         * config/i386/i386.h (BRANCH_COST): Update.
4408         * config/i386/i386.c (ix86_expand_int_movcc): Update use of
4409         BRANCH_COST.
4410         * config/sh/sh.h (BRANCH_COST): Update.
4411         * config/pdp11/pdp11.h (BRANCH_COST): Update.
4412         * config/avr/avr.h (BRANCH_COST): Update.
4413         * config/crx/crx.h (BRANCH_COST): Update.
4414         * config/xtensa/xtensa.h (BRANCH_COST): Update.
4415         * config/stormy16/stormy16.h (BRANCH_COST): Update.
4416         * config/m68hc11/m68hc11.h (BRANCH_COST): Update.
4417         * config/iq2000/iq2000.h (BRANCH_COST): Update.
4418         * config/ia64/ia64.h (BRANCH_COST): Update.
4419         * config/rs6000/rs6000.h (BRANCH_COST): Update.
4420         * config/arc/arc.h (BRANCH_COST): Update.
4421         * config/score/score.h (BRANCH_COST): Update.
4422         * config/arm/arm.h (BRANCH_COST): Update.
4423         * config/pa/pa.h (BRANCH_COST): Update.
4424         * config/mips/mips.h (BRANCH_COST): Update.
4425         * config/vax/vax.h (BRANCH_COST): Update.
4426         * config/h8300/h8300.h (BRANCH_COST): Update.
4427         * params.def (PARAM_PREDICTABLE_BRANCH_OUTCOME): New.
4428         * doc/invoke.texi (predictable-branch-cost-outcome): Document.
4429         * doc/tm.texi (BRANCH_COST): Update.
4430
4431 2008-08-30  Samuel Tardieu  <sam@rfc1149.net>
4432
4433         PR target/37283
4434         * config/arm/arm.c (arm_optimization_options): Set
4435         flag_section_anchors to 2 instead of 1 to distinguish it from
4436         -fsection-anchors given explicitely on the command line.
4437
4438 2008-08-30  Richard Sandiford  <rdsandiford@googlemail.com>
4439
4440         * recog.c (split_insn): Consider attaching a REG_EQUAL note to the
4441         final insn of a split.
4442
4443 2008-08-30  Jan Hubicka  <jh@suse.cz>
4444
4445         * postreload-gcse.c (gate_handle_gcse2): Disable for functions
4446         optimized for speed.
4447         * final.c (compute_alignments): Use optimize_bb_for_size_p.
4448         * tree-call-cdce.c (gate_call_cdce): Use optimize_function_for_speed_p.
4449         * opts.c (flag_predictive_commoning_set, flag_unswitch_loops_set,
4450         flag_gcse_after_reload_set): New static vars.
4451         (common_handle_option): Enable those flags for profile-use.
4452         (decode_options): Remove optimize_size flags that are handled
4453         on higher granuality.
4454         * tree-vectorizer.c (vectorize_loops): Use
4455         optimize_loop_nest_for_speed_p.
4456         * tree-ssa-pre.c (do_pre): Use optimize_function_for_speed_p.
4457         * tree-predcom.c (tree_predictive_commoning): Use
4458         optimize_loop_for_speed_p.
4459         * varasm.c (assemble_start_function): Use
4460         optimize_function_for_speed_p.
4461         * bb-reorder.c (rest_of_handle_reorder_blocks): Likewise.
4462         * predict.c (optimize_loop_for_speed_p): Fix walk.
4463
4464 2008-08-30  Jan Hubicka  <jh@suse.cz>
4465
4466         * ipa-inline.c (cgraph_estimate_growth): Discover self recursive
4467         functions.
4468         (cgraph_decide_inlining_of_small_function): Use edge->count to detect
4469         profile presence locally.
4470
4471 2008-08-29  Joseph Myers  <joseph@codesourcery.com>
4472
4473         PR bootstrap/37086
4474         * tree-vrp.c (find_switch_asserts): Make idx volatile for GCC
4475         versions before 4.0.
4476
4477 2008-08-29  Jan Hubicka  <jh@suse.cz>
4478
4479         * tree-inline.c (insert_init_stmt): Insert sequence even when
4480         not in SSA form.
4481
4482 2008-08-29  Jeff Law  <law@redhat.com>
4483
4484         * mn10300.c (mn10300_secondary_reload_class): We need secondary
4485         reloads for AM33-2 if IN is a pseudo with an equivalent memory
4486         location and class is an FP register.
4487
4488 2008-08-29  Jan Hubicka  <jh@suse.cz>
4489
4490         * see.c (see_merge_one_def_extension): Silence used uninitialized
4491         warning.
4492         * matrix-reorg.c (check_allocation_function): Likewise.
4493         * config/i386/driver-i386.c (detect_caches_amd): Likewise.
4494
4495 2008-08-29  Jakub Jelinek  <jakub@redhat.com>
4496
4497         PR c/37261
4498         * fold-const.c (fold_binary): In (X | C1) & C2 canonicalization
4499         compute new & and | in type rather than TREE_TYPE (arg0).
4500
4501         * dwarf2out.c (fortran_common): Update comment.
4502         (gen_variable_die): Swap com_die and var_die variables in Fortran
4503         COMMON block handling code.
4504
4505         * dwarf2out.c (descr_info_loc): Handle VAR_DECL.
4506
4507         * dwarf2out.c (gen_const_die): New function.
4508         (size_of_die, value_format, output_die): Output larger
4509         dw_val_class_vec using DW_FORM_block2 or DW_FORM_block4.
4510         (native_encode_initializer): New function.
4511         (tree_add_const_value_attribute): Call it.
4512         (gen_decl_die, dwarf2out_decl): Handle CONST_DECLs if is_fortran ().
4513
4514         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): For
4515         DECL_BY_REFERENCE decls don't pass TREE_READONLY and
4516         TREE_THIS_VOLATILE to add_type_attribute.
4517
4518         * dwarf2out.c (add_subscript_info): Stop on Fortran TYPE_STRING_FLAG
4519         types.
4520         (gen_array_type_die): Emit DW_TAG_string_type for Fortran character
4521         types.
4522
4523         * dwarf2out.c (loc_by_reference): New function.
4524         (add_location_or_const_value_attribute): Use it.
4525
4526         PR fortran/23057
4527         * dwarf2out.c (gen_variable_die): Represent Fortran COMMON vars
4528         as DW_TAG_variable children of DW_TAG_common_block rather than
4529         DW_TAG_member children.  Put DW_AT_external to individual
4530         DW_TAG_variable DIEs, not to DW_TAG_common_block.
4531
4532         * dwarf2out.c (add_bound_info): If lookup_decl_die failed, try
4533         loc_descriptor_from_tree_1.
4534
4535         PR fortran/29635
4536         PR fortran/23057
4537         * debug.h (struct gcc_debug_hooks): Add NAME and CHILD
4538         arguments to imported_module_or_decl.
4539         (debug_nothing_tree_tree): Removed.
4540         (debug_nothing_tree_tree_tree_bool): New prototype.
4541         * debug.c (do_nothing_debug_hooks): Adjust.
4542         (debug_nothing_tree_tree): Removed.
4543         (debug_nothing_tree_tree_tree_bool): New function.
4544         * dwarf2out.c (is_symbol_die): Handle DW_TAG_module.
4545         (gen_variable_die): Put all common vars for the
4546         same COMMON block under one DW_TAG_common_block.
4547         (declare_in_namespace): Return new context_die, for Fortran
4548         return the module DIE instead of adding extra declarations into
4549         the namespace.
4550         (gen_type_die_with_usage): Adjust declare_in_namespace caller.
4551         (gen_namespace_die): If is_fortran (), generate DW_TAG_module
4552         instead of DW_TAG_namespace.  If DECL_EXTERNAL is set, add
4553         DW_AT_declaration.
4554         (dwarf2out_global_decl): Don't skip Fortran global vars.
4555         (gen_decl_die): Likewise.  Adjust declare_in_namespace callers.
4556         (dwarf2out_imported_module_or_decl): Add NAME and CHILD arguments.
4557         If NAME is non-NULL, add DW_AT_name.  If CHILD is non-NULL, put
4558         DW_TAG_imported_declaration as child of previous
4559         DW_TAG_imported_module.
4560         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Adjust.
4561         * sdbout.c (sdb_debug_hooks): Likewise.
4562         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
4563
4564 2008-08-29  Jan Hubicka  <jh@suse.cz>
4565
4566         * cgraph.c (cgraph_remove_node): Do not remove nested nodes.
4567
4568         * cgraph.h (cgraph_maybe_hot_edge_p): Declare.
4569         * ipa-cp.c (n_cloning_candidates): New static variable.
4570         (ipcp_print_profile_data, ipcp_function_scale_print): Forward declare.
4571         (ipcp_print_all_lattices): Improve debug output.
4572         (ipcp_cloning_candidate_p): New function.
4573         (ipcp_initialize_node_lattices): Use it.
4574         (ipcp_init_stage): Do only analyzis here; prettier debug output.
4575         (ipcp_propagate_stage): Prettier debug output.
4576         (ipcp_iterate_stage): Initialize latices here; prettier debug output.
4577         (ipcp_print_all_structures): Remove.
4578         (ipcp_need_redirect_p): Test !n_cloning_candidates.
4579         (ipcp_insert_stage): Prettier debug output; call
4580         cgraph_remove_unreachable_nodes before propagating.
4581         (pass_ipa_cp): Schedule function removal pass.
4582         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Better
4583         debug output.
4584         (cgraph_maybe_hot_edge_p): Move to ...
4585         * predict.c (cgraph_maybe_hot_edge_p) ... here.
4586         * opts.c (flag_ipa_cp_set, flag_ipa_cp_clone_set): New.
4587         (common_handle_option): Set them; enable ipa-cp when profiling.
4588         * ipa-prop.c (ipa_print_node_jump_functions): Prettier output.
4589         (ipa_print_all_jump_functions): Likewise.
4590         (ipa_print_all_tree_maps, ipa_print_node_param_flags): Remove.
4591         (ipa_print_node_params, ipa_print_all_params): New.
4592         * ipa-prop.h (ipa_print_all_tree_maps, ipa_print_node_param_flags,
4593         ipa_print_all_param_flags): Remove.
4594         (ipa_print_node_params, ipa_print_all_params): New.
4595
4596 2008-08-29  Bob Wilson  <bob.wilson@acm.org>
4597
4598         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Revert
4599         change from 2008-04-03.
4600         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Define.
4601
4602 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
4603
4604         PR rtl-opt/37251
4605         * ira-color.c (push_allocnos_to_stack): Truncate
4606         removed_splay_allocno_vec.
4607
4608 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
4609
4610         PR rtl-opt/37243
4611         * ira-color (ira_fast_allocation): Don't assign hard registers to
4612         global allocnos.
4613
4614 2008-08-29  Jan Hubicka  <jh@suse.cz>
4615
4616         PR middle-end/37278
4617         * predict.c (optimize_loop_nest_for_speed_p): Do not ICE
4618         for cold internal loops.
4619
4620 2008-08-29  Richard Guenther  <rguenther@suse.de>
4621
4622         * tree-ssa-structalias.c (create_variable_info_for): Do not
4623         create fields for heap vars or vars with a noalias state.
4624         For NO_ALIAS_ANYTHING variables add a self-constraint, not one
4625         from ESCAPED.
4626
4627 2008-08-29  Richard Guenther  <rguenther@suse.de>
4628
4629         * common.opt (ftree-store-ccp): Mark as preserved for
4630         backward compatibility.
4631         * doc/invoke.texi (-ftree-store-ccp): Remove documentation.
4632         * tree-pass.h (pass_store_ccp): Remove.
4633         * tree-ssa-propagate.h (struct prop_value_d): Remove mem_ref field.
4634         (first_vdef): Remove declaration.
4635         (get_value_loaded_by): Likewise.
4636         * tree-ssa-ccp.c (do_store_ccp): Remove.
4637         (get_default_value): Simplify as do_store_ccp is always false
4638         now.  Do not initialize mem_ref.
4639         (set_value_varying): Likewise.
4640         (canonicalize_float_value): Likewise.
4641         (set_lattice_value): Likewise.
4642         (likely_value): Likewise.
4643         (surely_varying_stmt_p): Likewise.
4644         (ccp_initialize): Likewise.
4645         (ccp_lattice_meet): Likewise.
4646         (ccp_visit_phi_node): Likewise.
4647         (ccp_fold): Likewise.
4648         (evaluate_stmt): Likewise.
4649         (visit_assignment): Likewise.
4650         (ccp_visit_stmt): Likewise.
4651         (execute_ssa_ccp): Fold into ...
4652         (do_ssa_ccp): ... this.
4653         (do_ssa_store_ccp): Remove.
4654         (gate_store_ccp): Likewise.
4655         (pass_store_ccp): Likewise.
4656         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not
4657         initialize mem_ref.
4658         * tree-ssa-propagate.c (first_vdef): Remove.
4659         (get_value_loaded_by): Likewise.
4660         (replace_vuses_in): Likewise.
4661         (substitute_and_fold): Do not call replace_vuses_in.
4662         * opts.c (decode_options): Do not set flag_tree_store_ccp.
4663
4664 2008-08-29  Richard Guenther  <rguenther@suse.de>
4665
4666         PR middle-end/37236
4667         * tree-ssa-structalias.c (intra_create_variable_infos): Mark
4668         PARAM_NOALIAS tags with is_heapvar.
4669         * tree-ssa-operands.c (access_can_touch_variable): Offset
4670         based tests do not apply for heapvars.  Fix offset test.
4671
4672 2008-08-29  Jan Hubicka  <jh@suse.cz>
4673
4674         * doc/invoke.texi (-fipa-cp): Enabled by default at -O2/-Os/-O3
4675         (-fipa-cp-clone): Enabled by default at -O3.
4676         * opts.c (decode_options): Enable ipa-cp at -O2, ipa-cp-clone at -O3;
4677         make ipa-cp-clone to imply ipa-cp; disable cloning at -Os.
4678
4679 2008-08-29  Jan Hubicka  <jh@suse.cz>
4680
4681         * tree.c (build_function_type_skip_args,
4682         build_function_decl_skip_args): New functions.
4683         * tree.h (build_function_type_skip_args,
4684         build_function_decl_skip_args): Declare.
4685         * gimple.c (giple_copy_call_skip_args): New function.
4686         (giple_copy_call_skip_args): Declare.
4687
4688         * cgraph.h (cgraph_function_versioning): Add skip_args arugmnet
4689         * ipa-cp.c (ipcp_node_not_modifiable_p): Rename to ...
4690         (ipcp_node_modifiable_p): ... this one; use
4691         tree_versionable_function_p.
4692         (ipcp_create_replace_map): Improve debug output.
4693         (ipcp_need_redirect_p): Return false when not clonning.
4694         (ipcp_update_callgraph): Skip args.
4695         (ipcp_insert_stage): UPdate call of !ipcp_node_modifiable_p;
4696         skip args.
4697         * cgraphunit.c (cgraph_function_versioning): Add skip_args argument.
4698         (save_inline_function_body): Update call of tree_function_versioning.
4699         * ipa-prop.c (ipa_edge_removal_hook): Do not ICE on unanalyzed nodes.
4700         * tree-inline.c (copy_arguments_for_versioning): Add skip_args
4701         argument.
4702         (tree_function_versioning): Likewise.
4703         * tree-inline.h (tree_function_versioning): Update prototype.
4704
4705 2008-08-29  Jan Hubicka  <jh@suse.cz>
4706
4707         * loop-unswitch.c (unswitch_single_loop): Use
4708         optimize_loop_for_speed_p.
4709         * tree-ssa-threadupdate.c (mark_threaded_blocks):
4710         Use optimize_function_for_size_p.
4711         * tracer.c (ignore_bb_p): Use optimize_bb_for_size_p.
4712         * postreload-gcse.c (eliminate_partially_redundant_load):
4713         Use optimize_bb_for_size_p.
4714         * value-prof.c (gimple_divmod_fixed_value_transform,
4715         gimple_mod_pow2_value_transform, gimple_mod_subtract_transform,
4716         gimple_stringops_transform): Use optimize_bb_for_size_p.
4717         * ipa-cp.c (ipcp_insert_stage): Use optimize_function_for_size_p.
4718         * final.c (compute_alignments): Use optimize_function_for_size_p.
4719         * builtins.c (fold_builtin_cabs): Use optimize_function_for_speed_p.
4720         (fold_builtin_strcpy, fold_builtin_fputs): Use
4721         optimize_function_for_size_p.
4722         * fold-const.c (tree_swap_operands_p): Use
4723         optimize_function_for_size_p.
4724         * recog.c (relax_delay_slots): Likewise.
4725         * tree-ssa-math-opts.c (replace_reciprocal):
4726         Use optimize_bb_for_speed_p.
4727         (execute_cse_reciprocals): Use optimize_bb_for_size_p.
4728         * ipa-inline.c (cgraph_decide_recursive_inlining): Use
4729         optimize_function_for_size_p.
4730         (cgraph_decide_inlining_of_small_function): Use
4731         optimize_function_for_size_p.
4732         * global.c (find_reg): Use optimize_function_for_size_p.
4733         * opts.c (decode_options): Do not clear flag_tree_ch,
4734         flag_inline_functions, flag_unswitch_loops, flag_unroll_loops,
4735         flag_unroll_all_loops and flag_prefetch_loop_arrays. Those can
4736         work it out from profile.
4737         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Use
4738         optimize_loop_for_speed_p.
4739         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
4740         Constify argument.
4741         (optimize_loop_nest_for_size_p, optimize_loop_nest_for_speed_p): New.
4742         * tree-parloops.c (parallelize_loops): Use optimize_loop_for_size_p.
4743         * tree-eh.c (decide_copy_try_finally): Use
4744         optimize_function_for_size_p.
4745         * local-alloc.c (block_alloc): Pass BB pointer.
4746         (find_free_reg): Add BB pointer, use optimize_bb_for_size_p.
4747         * gcse.c (gcse_main): Use optimize_function_for_size_p.
4748         * loop-unroll.c (decide_unrolling_and_peeling):
4749         Use optimize_loop_for_size_p.
4750         (decide_peel_completely): Likewise.
4751         * tree-vect-analyze.c (vect_mark_for_runtime_alias_test): Use
4752         optimize_loop_for_size_p.
4753         (vect_enhance_data_refs_alignment): Likewise.
4754         * tree-ssa-coalesce.c (coalesce_cost): Add optimize_for_size argument.
4755         (coalesce_cost_bb, coalesce_cost_edge, create_outofssa_var_map):
4756         Update call.
4757         * cfgcleanup.c (outgoing_edges_match): Use optimize_bb_for_speed_p.
4758         (try_crossjump_bb): Use optimize_bb_for_size_p.
4759         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
4760         optimize_loop_for_speed_p.
4761         * bb-reorder.c (find_traces_1_round): Likewise.
4762         (copy_bb): Use optimize_bb_for_speed_p.
4763         (duplicate_computed_gotos): Likewise.
4764         * basic-block.h (optimize_loop_nest_for_size_p,
4765         optimize_loop_nest_for_speed_p): New.
4766         * stmt.c (expand_case): Use optimize_insn_for_size_p.
4767
4768 2008-08-29  Tristan Gingold  <gingold@adacore.com>
4769
4770         * gcov.c (main): Call expandargv.
4771
4772 2008-08-29  Jan Hubicka  <jh@suse.cz>
4773
4774         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Check that loop
4775         is not cold.
4776         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
4777         Constify arguments.
4778         (optimize_loop_for_size_p, optimize_loop_for_speed_p): New functions.
4779         * basic-block.h (optimize_bb_for_size_p, optimize_bb_for_speed_p):
4780         Constify.
4781         (optimize_loop_for_size_p, optimize_loop_for_speed_p): Declare.
4782
4783 2008-08-29  Jan Hubicka  <jh@suse.cz>
4784
4785         * tree-pass.h (pass_strip_predict_hints): Declare.
4786         * predict.c (strip_builtin_expect): Rename to ...
4787         (strip_predict_hints): ... this one; strip also GIMPLE_PREDICT.
4788         (tree_bb_level_predictions): Do not remove GIMPLE_PREDICT.
4789         (tree_estimate_probability): Do not strip builtin_expect.
4790         (pass_strip_predict_hints): New pass.
4791         * tree-inline.c (expand_call_inline): When inlining cold function,
4792         predict it as unlikely.
4793         * passes.c (init_optimization_passes): Add pass_strip_predict_hints.
4794
4795 2008-08-29  Richard Guenther  <rguenther@suse.de>
4796
4797         PR tree-optimization/37207
4798         * tree-vrp.c (extract_range_from_binary_expr): Also try
4799         to constant fold if only one of the operands is a constant.
4800
4801 2008-08-29  Nick Clifton  <nickc@redhat.com>
4802
4803         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Treat LABEL_REFs in
4804         the same way as SYMBOL_REFs.
4805
4806 2008-08-28  Bob Wilson  <bob.wilson@acm.org>
4807
4808         * config/xtensa/xtensa.md (<u>mulsidi3): Use a temporary register.
4809
4810 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
4811
4812         * config/mips/mips.h (ISA_HAS_BBIT): New macro.
4813         * config/mips/mips.md (branch_likely): Remove const.  Fix
4814         comment formatting.
4815         (define_delay for type "branch"): Change to only apply for branch
4816         with likely variant.
4817         (define_delay for type "branch" and "branch_likely" no).  New delay
4818         definition.
4819         (equality_op): New code iterator.
4820         (bbv, bbinv): New code attributes.
4821         (*branch_bit<bbv><mode>, *branch_bit<bbv><mode>_inverted): New
4822         patterns.
4823
4824 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4825             Andrew Pinski  <pinskia@gcc.gnu.org>
4826
4827         PR 18050
4828         * c-common.c (verify_tree): Fix handling of ADDR_EXPR.
4829
4830 2008-08-28  Paolo Carlini  <paolo.carlini@oracle.com>
4831
4832         * gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix
4833         rule that a symbolic constant must be defined and >= 0 for the
4834         corresponding facility to be present at compile-time.
4835         * gthr-posix.c: Likewise.
4836
4837 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
4838
4839         * config/mips/mips.h (ISA_HAS_DMUL3): New macro.
4840         * config/mips/mips.md (D): New mode attribute.
4841         (mulsi3, muldi3): Merge it into ...
4842         (mul<mode>3): ... new template.  Use _mul3 ending for 3-op patterns.
4843         (muldi3_mul3): New pattern.
4844         (mulsi3_mult3): Rename to mulsi3_mul3.
4845
4846 2008-08-28  Jan Hubicka  <jh@suse.cz>
4847
4848         * expmed.c (store_bit_field_1): Be prepared for movstrict expander
4849         to fail.
4850         * predict.c (always_optimize_for_size_p): Rename to ...
4851         (optimize_function_for_size): ... this one; make extern.
4852         (optimize_function_for_speed_p): New.
4853         (optimize_bb_for_size_p, optimize_bb_for_size_p,
4854         optimize_edge_for_size_p,optimize_edge_for_size_p,
4855         optimize_insn_for_size_p, optimize_insn_for_size_p): Update.
4856         * basic-block.h (optimize_function_for_size_p,
4857         optimize_function_for_speed_p): Declare.
4858         * i386.md (optimize_size checks): Replace them by appropriate
4859         predicate.
4860         (standard_80387_constant_p, ix86_compute_frame_layout,
4861         ix86_expand_epilogue, ix86_decompose_address,
4862         print_operand, emit_i387_cw_initialization,
4863         inline_memory_move_cost, ix86_pad_returns,
4864         ix86_reorg): Replace optimize_size checks.
4865
4866 2008-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
4867
4868         * rtl.h (simplify_subreg_regno): Declare.
4869         * rtlanal.c (simplify_subreg_regno): New function, split out from...
4870         * simplify-rtx.c (simplify_subreg): ...here.
4871         * reload.c (find_reloads): Use simplify_subreg_regno instead of
4872         subreg_offset_representable_p.
4873
4874 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4875
4876         PR c/30949
4877         * c-typeck.c (convert_for_assignment): Give a note describing what
4878         was passed and what was expected.
4879
4880 2008-08-28  Joey Ye  <joey.ye@intel.com>
4881
4882         * doc/extend.texi: Document AVX built-in functions.
4883         * doc/invoke.texi: Document -mavx.
4884
4885 2008-08-28  H.J. Lu  <hongjiu.lu@intel.com>
4886             Joey Ye  <joey.ye@intel.com>
4887             Xuepeng Guo  <xuepeng.guo@intel.com>
4888
4889         * config.gcc (extra_headers): Add gmmintrin.h for x86 and x86-64.
4890
4891         * config/i386/cpuid.h (bit_FMA): New.
4892         (bit_XSAVE): Likewise.
4893         (bit_OSXSAVE): Likewise.
4894         (bit_AVX): Likewise.
4895
4896         * config/i386/gas.h (ASM_OUTPUT_OPCODE): Undefine before
4897         define.  Use ASM_OUTPUT_AVX_PREFIX.
4898
4899         * config/i386/gmmintrin.h: New.
4900
4901         * config/i386/i386.c (x86_64_reg_class): Add X86_64_AVX_CLASS.
4902         (OPTION_MASK_ISA_AVX_SET): New.
4903         (OPTION_MASK_ISA_FMA_SET): Likewise.
4904         (OPTION_MASK_ISA_AVX_UNSET): Likewise.
4905         (OPTION_MASK_ISA_FMA_SET): Likewise.
4906         (OPTION_MASK_ISA_SSE4_2_UNSET): Updated.
4907         (ix86_handle_option): Handle OPT_mavx and OPT_mfma.
4908         (pta_flags): Add PTA_AVX and PTA_FMA.
4909         (override_options): Handle PTA_AVX and PTA_FMA.
4910         (init_cumulative_args): Handle warn_avx.
4911         (classify_argument): Return 0 for COImode and OImode.  Return
4912         1 and X86_64_AVX_CLASS for 256bit vector types.
4913         (examine_argument): Handle X86_64_AVX_CLASS.
4914         (construct_container): Likewise.
4915         (function_arg_advance_32): Pass OImode and 256bit vector types
4916         in AVX register.
4917         (function_arg_advance_64): Take a new argument to indicate if a
4918         parameter is named.  Handle 256bit vector types.  Return
4919         immediately for unnamed 256bit vector mode parameters.
4920         (function_arg_advance): Updated.
4921         (function_arg_32): Add comments for TImode.  Handle OImode
4922         and 256bit vector types.
4923         (function_arg_64): Take a new argument to indicate if a
4924         parameter is named.  Handle 256bit vector types.  Return NULL
4925         for unnamed 256bit vector mode parameters.
4926         (function_arg): Updated.
4927         (setup_incoming_varargs_64): Support
4928         AVX encoding for *sse_prologue_save_insn.
4929         (ix86_gimplify_va_arg): Handle 256bit vector mode parameters.
4930         (standard_sse_constant_p): Return -2 for all 1s if SSE2 isn't
4931         enabled.  For all 1s in 256bit vector modes, return 3 if AVX is
4932         enabled, otherwise return -3.
4933         (standard_sse_constant_opcode): Handle AVX and 256bit vector
4934         modes.
4935         (print_reg): Support AVX registers.  Handle 'x' and 't'.
4936         Handle 'd' to duplicate the operand.
4937         (print_operand): Likewise.  Also support AVX vector compare
4938         instructions.
4939         (output_387_binary_op): Support AVX.
4940         (output_fp_compare): Likewise.
4941         (ix86_expand_vector_move_misalign): Likewise.
4942         (ix86_attr_length_vex_default): New.
4943         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
4944         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
4945         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
4946         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
4947         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_BLENDPD256,
4948         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
4949         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DIVPD256,
4950         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_DPPS256,
4951         IX86_BUILTIN_HADDPD256, IX86_BUILTIN_HADDPS256,
4952         IX86_BUILTIN_HSUBPD256, IX86_BUILTIN_HSUBPS256,
4953         IX86_BUILTIN_MAXPD256, IX86_BUILTIN_MAXPS256,
4954         IX86_BUILTIN_MINPD256, IX86_BUILTIN_MINPS256,
4955         IX86_BUILTIN_MULPD256, IX86_BUILTIN_MULPS256,
4956         IX86_BUILTIN_ORPD256, IX86_BUILTIN_ORPS256,
4957         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
4958         IX86_BUILTIN_SUBPD256, IX86_BUILTIN_SUBPS256,
4959         IX86_BUILTIN_XORPD256, IX86_BUILTIN_XORPS256,
4960         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
4961         IX86_BUILTIN_CMPPS, IX86_BUILTIN_CMPPD256,
4962         IX86_BUILTIN_CMPPS256, IX86_BUILTIN_CVTDQ2PD256,
4963         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
4964         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
4965         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
4966         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_EXTRACTF128PD256,
4967         IX86_BUILTIN_EXTRACTF128PS256, IX86_BUILTIN_EXTRACTF128SI256,
4968         IX86_BUILTIN_VZEROALL, IX86_BUILTIN_VZEROUPPER,
4969         IX86_BUILTIN_VZEROUPPER_REX64, IX86_BUILTIN_VPERMILVARPD,
4970         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
4971         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_VPERMILPD,
4972         IX86_BUILTIN_VPERMILPS, IX86_BUILTIN_VPERMILPD256,
4973         IX86_BUILTIN_VPERMILPS256, IX86_BUILTIN_VPERMIL2PD,
4974         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256,
4975         IX86_BUILTIN_VPERMIL2PS256, IX86_BUILTIN_VPERM2F128PD256,
4976         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
4977         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
4978         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
4979         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_VINSERTF128PD256,
4980         IX86_BUILTIN_VINSERTF128PS256, IX86_BUILTIN_VINSERTF128SI256,
4981         IX86_BUILTIN_LOADUPD256, IX86_BUILTIN_LOADUPS256,
4982         IX86_BUILTIN_STOREUPD256, IX86_BUILTIN_STOREUPS256,
4983         IX86_BUILTIN_LDDQU256, IX86_BUILTIN_LOADDQU256,
4984         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_MASKLOADPD,
4985         IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKSTOREPD,
4986         IX86_BUILTIN_MASKSTOREPS, IX86_BUILTIN_MASKLOADPD256,
4987         IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKSTOREPD256,
4988         IX86_BUILTIN_MASKSTOREPS256, IX86_BUILTIN_MOVSHDUP256,
4989         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
4990         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
4991         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
4992         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
4993         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
4994         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
4995         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
4996         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
4997         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
4998         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
4999         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
5000         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
5001         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
5002         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
5003         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
5004         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
5005         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
5006         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256
5007         and IX86_BUILTIN_MOVMSKPS256,
5008         (ix86_special_builtin_type): Add V32QI_FTYPE_PCCHAR,
5009         V8SF_FTYPE_PCV4SF, V8SF_FTYPE_PCFLOAT, V4DF_FTYPE_PCV2DF,
5010         V4DF_FTYPE_PCDOUBLE, V8SF_FTYPE_PCV8SF_V8SF,
5011         V4DF_FTYPE_PCV4DF_V4DF, V4SF_FTYPE_PCV4SF_V4SF,
5012         V2DF_FTYPE_PCV2DF_V2DF, VOID_FTYPE_PCHAR_V32QI,
5013         VOID_FTYPE_PFLOAT_V8SF, VOID_FTYPE_PDOUBLE_V4DF,
5014         VOID_FTYPE_PV8SF_V8SF_V8SF, VOID_FTYPE_PV4DF_V4DF_V4DF,
5015         VOID_FTYPE_PV4SF_V4SF_V4SF and VOID_FTYPE_PV2DF_V2DF_V2DF,
5016         (ix86_builtin_type): Add INT_FTYPE_V8SF_V8SF_PTEST,
5017         INT_FTYPE_V4DI_V4DI_PTEST, INT_FTYPE_V4DF_V4DF_PTEST,
5018         INT_FTYPE_V4SF_V4SF_PTEST, INT_FTYPE_V2DF_V2DF_PTEST,
5019         INT_FTYPE_V8SF, INT_FTYPE_V4DF, V8SI_FTYPE_V8SF, V8SI_FTYPE_V4SI,
5020         V8SF_FTYPE_V8SF, V8SF_FTYPE_V8SI, V8SF_FTYPE_V4SF,
5021         V4SI_FTYPE_V8SI, V4SI_FTYPE_V4DF, V4DF_FTYPE_V4DF,
5022         V4DF_FTYPE_V4SI, V4DF_FTYPE_V4SF, V4DF_FTYPE_V2DF,
5023         V4SF_FTYPE_V4DF, V4SF_FTYPE_V8SF, V2DF_FTYPE_V4DF,
5024         V8SF_FTYPE_V8SF_V8SF, V8SF_FTYPE_V8SF_V8SI,
5025         V4DF_FTYPE_V4DF_V4DF, V4DF_FTYPE_V4DF_V4DI,
5026         V4SF_FTYPE_V4SF_V4SI, V2DF_FTYPE_V2DF_V2DI,
5027         V8SF_FTYPE_V8SF_INT, V4SI_FTYPE_V8SI_INT, V4SF_FTYPE_V8SF_INT,
5028         V2DF_FTYPE_V4DF_INT, V4DF_FTYPE_V4DF_INT,
5029         V8SF_FTYPE_V8SF_V8SF_V8SF, V4DF_FTYPE_V4DF_V4DF_V4DF,
5030         V8SI_FTYPE_V8SI_V8SI_INT, V8SF_FTYPE_V8SF_V8SF_INT,
5031         V4DF_FTYPE_V4DF_V4DF_INT, V4DF_FTYPE_V4DF_V2DF_INT,
5032         V8SF_FTYPE_V8SF_V8SF_V8SI_INT, V4DF_FTYPE_V4DF_V4DF_V4DI_INT,
5033         V4SF_FTYPE_V4SF_V4SF_V4SI_INT and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
5034         (bdesc_special_args): Add IX86_BUILTIN_VZEROALL,
5035         IX86_BUILTIN_VZEROUPPER. IX86_BUILTIN_VZEROUPPER_REX64,
5036         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
5037         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
5038         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_LOADUPD256,
5039         IX86_BUILTIN_LOADUPS256, IX86_BUILTIN_STOREUPD256,
5040         IX86_BUILTIN_STOREUPS256, IX86_BUILTIN_LOADDQU256,
5041         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_LDDQU256,
5042         IX86_BUILTIN_MASKLOADPD, IX86_BUILTIN_MASKLOADPS,
5043         IX86_BUILTIN_MASKLOADPD256, IX86_BUILTIN_MASKLOADPS256,
5044         IX86_BUILTIN_MASKSTOREPD, IX86_BUILTIN_MASKSTOREPS,
5045         IX86_BUILTIN_MASKSTOREPD256 and IX86_BUILTIN_MASKSTOREPS256.
5046         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
5047         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
5048         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
5049         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
5050         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_DIVPD256,
5051         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_HADDPD256,
5052         IX86_BUILTIN_HSUBPS256, IX86_BUILTIN_HSUBPD256,
5053         IX86_BUILTIN_HADDPS256, IX86_BUILTIN_MAXPD256,
5054         IX86_BUILTIN_MAXPS256, IX86_BUILTIN_MINPD256,
5055         IX86_BUILTIN_MINPS256, IX86_BUILTIN_MULPD256,
5056         IX86_BUILTIN_MULPS256, IX86_BUILTIN_ORPD256,
5057         IX86_BUILTIN_ORPS256, IX86_BUILTIN_SUBPD256,
5058         IX86_BUILTIN_SUBPS256, IX86_BUILTIN_XORPD256,
5059         IX86_BUILTIN_XORPS256, IX86_BUILTIN_VPERMILVARPD,
5060         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
5061         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_BLENDPD256,
5062         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
5063         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DPPS256,
5064         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
5065         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
5066         IX86_BUILTIN_CMPPS,
5067         IX86_BUILTIN_CMPPD256,IX86_BUILTIN_CMPPS256,
5068         IX86_BUILTIN_EXTRACTF128PD256, IX86_BUILTIN_EXTRACTF128PS256,
5069         IX86_BUILTIN_EXTRACTF128SI256, IX86_BUILTIN_CVTDQ2PD256,
5070         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
5071         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
5072         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
5073         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_VPERM2F128PD256,
5074         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
5075         IX86_BUILTIN_VPERMILPD, IX86_BUILTIN_VPERMILPS,
5076         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
5077         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMILPS,
5078         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
5079         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
5080         IX86_BUILTIN_VPERMIL2PD256, IX86_BUILTIN_VPERMIL2PS256,
5081         IX86_BUILTIN_VINSERTF128PD256, IX86_BUILTIN_VINSERTF128PS256,
5082         IX86_BUILTIN_VINSERTF128SI256, IX86_BUILTIN_MOVSHDUP256,
5083         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
5084         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
5085         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
5086         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
5087         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
5088         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
5089         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
5090         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
5091         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
5092         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
5093         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
5094         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
5095         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
5096         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
5097         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
5098         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
5099         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
5100         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256 and
5101         IX86_BUILTIN_MOVMSKPS256.
5102         (ix86_init_mmx_sse_builtins): Support AVX builtins.
5103         (ix86_expand_args_builtin): Likewise.
5104         (ix86_expand_special_args_builtin): Likewise.
5105         (ix86_hard_regno_mode_ok): Handle AVX modes.
5106         (ix86_expand_vector_init_duplicate): Likewise.
5107         (ix86_expand_vector_init_one_nonzero): Likewise.
5108         (ix86_expand_vector_init_one_var): Likewise.
5109         (ix86_expand_vector_init_concat): Likewise.
5110         (ix86_expand_vector_init_general): Likewise.
5111         (ix86_expand_vector_set): Likewise.
5112         (ix86_vector_mode_supported_p): Likewise.
5113         (x86_extended_reg_mentioned_p): Check INSN_P before using
5114         PATTERN.
5115
5116         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
5117         OPTION_MASK_ISA_AVX and OPTION_MASK_ISA_FMA.
5118
5119         * config/i386/i386.h (TARGET_AVX): New.
5120         (TARGET_FMA): Likewise.
5121         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AVX and TARGET_FMA.
5122         (BIGGEST_ALIGNMENT): Set to 256 for TARGET_AVX.
5123         (VALID_AVX256_REG_MODE): New.
5124         (AVX256_VEC_FLOAT_MODE_P): Likewise.
5125         (AVX_FLOAT_MODE_P): Likewise.
5126         (AVX128_VEC_FLOAT_MODE_P): Likewise.
5127         (AVX256_VEC_FLOAT_MODE_P): Likewise.
5128         (AVX_VEC_FLOAT_MODE_P): Likewise.
5129         (ASM_OUTPUT_AVX_PREFIX): Likewise.
5130         (ASM_OUTPUT_OPCODE): Likewise.
5131         (UNITS_PER_SIMD_WORD): Add a FIXME for 32byte vectorizer
5132         support.
5133         (SSE_REG_MODE_P): Allow 256bit vector modes.
5134         (ix86_args): Add a warn_avx field.
5135
5136         * config/i386/i386.md (UNSPEC_PCMP): New.
5137         (UNSPEC_VPERMIL): Likewise.
5138         (UNSPEC_VPERMIL2): Likewise.
5139         (UNSPEC_VPERMIL2F128): Likewise.
5140         (UNSPEC_MASKLOAD): Likewise.
5141         (UNSPEC_MASKSTORE): Likewise.
5142         (UNSPEC_CAST): Likewise.
5143         (UNSPEC_VTESTP): Likewise.
5144         (UNSPECV_VZEROALL): Likewise.
5145         (UNSPECV_VZEROUPPER): Likewise.
5146         (XMM0_REG): Likewise.
5147         (XMM1_REG): Likewise.
5148         (XMM2_REG): Likewise.
5149         (XMM3_REG): Likewise.
5150         (XMM4_REG): Likewise.
5151         (XMM5_REG): Likewise.
5152         (XMM6_REG): Likewise.
5153         (XMM8_REG): Likewise.
5154         (XMM9_REG): Likewise.
5155         (XMM10_REG): Likewise.
5156         (XMM11_REG): Likewise.
5157         (XMM12_REG): Likewise.
5158         (XMM13_REG): Likewise.
5159         (XMM14_REG): Likewise.
5160         (XMM15_REG): Likewise.
5161         (prefix): Likewise.
5162         (prefix_vex_imm8): Likewise.
5163         (prefix_vex_w): Likewise.
5164         (length_vex): Likewise.
5165         (maxmin): Likewise.
5166         (movoi): Likewise.
5167         (*avx_ashlti3): Likewise.
5168         (*avx_lshrti3): Likewise.
5169         (*avx_setcc<mode>): Likewise.
5170         (*fop_<mode>_comm_mixed_avx): Likewise.
5171         (*fop_<mode>_comm_avx): Likewise.
5172         (*fop_<mode>_1_mixed_avx): Likewise.
5173         (*fop_<mode>_1_avx): Likewise.
5174         (*avx_<code><mode>3): Likewise.
5175         (*avx_ieee_smin<mode>3): Likewise.
5176         (*avx_ieee_smax<mode>3): Likewise.
5177         (mode): Add OI, V8SF and V4DF.
5178         (length): Support VEX prefix.
5179         (*cmpfp_i_mixed): Set prefix attribute.
5180         (*cmpfp_i_sse): Likewise.
5181         (*cmpfp_iu_mixed): Likewise.
5182         (*cmpfp_iu_sse): Likewise.
5183         (*movsi_1): Support AVX.
5184         (*movdi_2): Likewise.
5185         (*movdi_1_rex64): Likewise.
5186         (*movti_internal): Likewise.
5187         (*movti_rex64): Likewise.
5188         (*movsf_1): Likewise.
5189         (*movdf_nointeger): Likewise.
5190         (*movdf_integer_rex64): Likewise.
5191         (*movtf_internal): Likewise.
5192         (zero_extendsidi2_32): Likewise.
5193         (zero_extendsidi2_rex64): Likewise.
5194         (*extendsfdf2_mixed): Likewise.
5195         (*extendsfdf2_sse): Likewise.
5196         (*truncdfsf_fast_mixed): Likewise.
5197         (*truncdfsf_fast_sse): Likewise.
5198         (*truncdfsf_mixed): Likewise.
5199         (fix_trunc<mode>di_sse): Likewise.
5200         (fix_trunc<mode>si_sse): Likewise.
5201         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
5202         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
5203         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
5204         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
5205         (*rcpsf2_sse): Likewise.
5206         (*rsqrtsf2_sse): Likewise.
5207         (*sqrt<mode>2_sse): Likewise.
5208         (sse4_1_round<mode>2): Likewise.
5209         (*sse_prologue_save_insn): Disallow REX prefix for AVX.
5210         Support AVX.  Set length attribute properly for AVX.
5211
5212         * config/i386/i386-modes.def (VECTOR_MODES (INT, 32)): New.
5213         (VECTOR_MODES (FLOAT, 32)): Likewise.
5214         (VECTOR_MODE (INT, DI, 8)): Likewise.
5215         (VECTOR_MODE (INT, HI, 32)): Likewise.
5216         (VECTOR_MODE (INT, QI, 64)): Likewise.
5217         (VECTOR_MODE (FLOAT, DF, 8)): Likewise.
5218         (VECTOR_MODE (FLOAT, SF, 16)): Likewise.
5219         (VECTOR_MODE (INT, DI, 4)): Removed.
5220         (VECTOR_MODE (INT, SI, 8)): Likewise.
5221         (VECTOR_MODE (INT, HI, 16)): Likewise.
5222         (VECTOR_MODE (INT, QI, 32)): Likewise.
5223         (VECTOR_MODE (FLOAT, SF, 8)): Likewise.
5224         (INT_MODE (OI, 32)): Likewise.
5225
5226         * config/i386/i386.opt (mavx): New.
5227         (mfma): Likewise.
5228
5229         * config/i386/i386-protos.h (ix86_attr_length_vex_default): New.
5230
5231         * config/i386/mmx.md (*mov<mode>_internal_rex64): Support AVX.
5232         (*mov<mode>_internal_avx): New.
5233         (*movv2sf_internal_rex64_avx): Likewise.
5234         (*movv2sf_internal_avx): Likewise.
5235
5236         * config/i386/predicates.md (const_4_to_5_operand): New.
5237         (const_6_to_7_operand): Likewise.
5238         (const_8_to_11_operand): Likewise.
5239         (const_12_to_15_operand): Likewise.
5240         (avx_comparison_float_operator): Likewise.
5241
5242         * config/i386/sse.md (AVX256MODEI): New.
5243         (AVX256MODE): Likewise.
5244         (AVXMODEQI): Likewise.
5245         (AVXMODE): Likewise.
5246         (AVX256MODEF2P): Likewise.
5247         (AVX256MODE2P): Likewise.
5248         (AVX256MODE4P): Likewise.
5249         (AVX256MODE8P): Likewise.
5250         (AVXMODEF2P): Likewise.
5251         (AVXMODEF4P): Likewise.
5252         (AVXMODEDCVTDQ2PS): Likewise.
5253         (AVXMODEDCVTPS2DQ): Likewise.
5254         (avxvecmode): Likewise.
5255         (avxvecpsmode): Likewise.
5256         (avxhalfvecmode): Likewise.
5257         (avxscalarmode): Likewise.
5258         (avxcvtvecmode): Likewise.
5259         (avxpermvecmode): Likewise.
5260         (avxmodesuffixf2c): Likewise.
5261         (avxmodesuffixp): Likewise.
5262         (avxmodesuffixs): Likewise.
5263         (avxmodesuffix): Likewise.
5264         (vpermilbits): Likewise.
5265         (pinsrbits): Likewise.
5266         (mov<mode>): Likewise.
5267         (*mov<mode>_internal): Likewise.
5268         (push<mode>1): Likewise.
5269         (movmisalign<mode>): Likewise.
5270         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Likewise.
5271         (avx_movdqu<avxmodesuffix>): Likewise.
5272         (avx_lddqu<avxmodesuffix>): Likewise.
5273         (<plusminus_insn><mode>3): Likewise.
5274         (*avx_<plusminus_insn><mode>3): Likewise.
5275         (*avx_vm<plusminus_insn><mode>3): Likewise.
5276         (mul<mode>3): Likewise.
5277         (*avx_mul<mode>3): Likewise.
5278         (*avx_vmmul<mode>3): Likewise.
5279         (divv8sf3): Likewise.
5280         (divv4df3): Likewise.
5281         (avx_div<mode>3): Likewise.
5282         (*avx_div<mode>3): Likewise.
5283         (*avx_vmdiv<mode>3): Likewise.
5284         (avx_rcpv8sf2): Likewise.
5285         (*avx_vmrcpv4sf2): Likewise.
5286         (sqrtv8sf2): Likewise.
5287         (avx_sqrtv8sf2): Likewise.
5288         (*avx_vmsqrt<mode>2): Likewise.
5289         (rsqrtv8sf2): Likewise.
5290         (avx_rsqrtv8sf2): Likewise.
5291         (*avx_vmrsqrtv4sf2): Likewise.
5292         (<code><mode>3): Likewise.
5293         (*avx_<code><mode>3_finite): Likewise.
5294         (*avx_<code><mode>3): Likewise.
5295         (*avx_vm<code><mode>3): Likewise.
5296         (*avx_ieee_smin<mode>3): Likewise.
5297         (*avx_ieee_smax<mode>3): Likewise.
5298         (avx_addsubv8sf3): Likewise.
5299         (avx_addsubv4df3): Likewise.
5300         (*avx_addsubv4sf3): Likewise.
5301         (*avx_addsubv2df3): Likewise.
5302         (avx_h<plusminus_insn>v4df3): Likewise.
5303         (avx_h<plusminus_insn>v8sf3): Likewise.
5304         (*avx_h<plusminus_insn>v4sf3): Likewise.
5305         (*avx_h<plusminus_insn>v2df3): Likewise.
5306         (avx_cmpp<avxmodesuffixf2c><mode>3): Likewise.
5307         (avx_cmps<ssemodesuffixf2c><mode>3): Likewise.
5308         (*avx_maskcmp<mode>3): Likewise.
5309         (avx_nand<mode>3): Likewise.
5310         (*avx_<code><mode>3): Likewise.
5311         (*avx_nand<mode>3): Likewise.
5312         (*avx_<code><mode>3): Likewise.
5313         (*avx_cvtsi2ss): Likewise.
5314         (*avx_cvtsi2ssq): Likewise.
5315         (*avx_cvtsi2sd): Likewise.
5316         (*avx_cvtsi2sdq): Likewise.
5317         (*avx_cvtsd2ss): Likewise.
5318         (avx_cvtss2sd): Likewise.
5319         (avx_cvtdq2ps<avxmodesuffix>): Likewise.
5320         (avx_cvtps2dq<avxmodesuffix>): Likewise.
5321         (avx_cvttps2dq<avxmodesuffix>): Likewise.
5322         (*avx_cvtsi2sd): Likewise.
5323         (*avx_cvtsi2sdq): Likewise.
5324         (avx_cvtdq2pd256): Likewise.
5325         (avx_cvtpd2dq256): Likewise.
5326         (avx_cvttpd2dq256): Likewise.
5327         (*avx_cvtsd2ss): Likewise.
5328         (*avx_cvtss2sd): Likewise.
5329         (avx_cvtpd2ps256): Likewise.
5330         (avx_cvtps2pd256): Likewise.
5331         (*avx_movhlps): Likewise.
5332         (*avx_movlhps): Likewise.
5333         (avx_unpckhps256): Likewise.
5334         (*avx_unpckhps): Likewise.
5335         (avx_unpcklps256): Likewise.
5336         (*avx_unpcklps): Likewise.
5337         (avx_movshdup256): Likewise.
5338         (avx_movsldup256): Likewise.
5339         (avx_shufps256): Likewise.
5340         (avx_shufps256_1): Likewise.
5341         (*avx_shufps_<mode>): Likewise.
5342         (*avx_loadhps): Likewise.
5343         (*avx_storelps): Likewise.
5344         (*avx_loadlps): Likewise.
5345         (*avx_movss): Likewise.
5346         (*vec_dupv4sf_avx): Likewise.
5347         (*vec_concatv2sf_avx): Likewise.
5348         (*vec_concatv4sf_avx): Likewise.
5349         (*vec_setv4sf_0_avx): Likewise.
5350         (*vec_setv4sf_avx): Likewise.
5351         (*avx_insertps): Likewise.
5352         (avx_vextractf128<mode>): Likewise.
5353         (vec_extract_lo_<mode>): Likewise.
5354         (vec_extract_hi_<mode>): Likewise.
5355         (vec_extract_lo_<mode>): Likewise.
5356         (vec_extract_hi_<mode>): Likewise.
5357         (vec_extract_lo_v16hi): Likewise.
5358         (vec_extract_hi_v16hi): Likewise.
5359         (vec_extract_lo_v32qi): Likewise.
5360         (vec_extract_hi_v32qi): Likewise.
5361         (avx_unpckhpd256): Likewise.
5362         (*avx_unpckhpd): Likewise.
5363         (avx_movddup256): Likewise.
5364         (*avx_movddup): Likewise.
5365         (avx_unpcklpd256): Likewise.
5366         (*avx_unpcklpd): Likewise.
5367         (avx_shufpd256): Likewise.
5368         (avx_shufpd256_1): Likewise.
5369         (*avx_punpckhqdq): Likewise.
5370         (*avx_punpcklqdq): Likewise.
5371         (*avx_shufpd_<mode>): Likewise.
5372         (*avx_storehpd): Likewise.
5373         (*avx_loadhpd): Likewise.
5374         (*avx_loadlpd): Likewise.
5375         (*avx_movsd): Likewise.
5376         (*vec_concatv2df_avx): Likewise.
5377         (*avx_<plusminus_insn><mode>3): Likewise.
5378         (*avx_<plusminus_insn><mode>3): Likewise.
5379         (*avx_mulv8hi3): Likewise.
5380         (*avxv8hi3_highpart): Likewise.
5381         (*avx_umulv8hi3_highpart): Likewise.
5382         (*avx_umulv2siv2di3): Likewise.
5383         (*avx_mulv2siv2di3): Likewise.
5384         (*avx_pmaddwd): Likewise.
5385         (*avx_mulv4si3): Likewise.
5386         (*avx_ashr<mode>3): Likewise.
5387         (*avx_lshr<mode>3): Likewise.
5388         (*avx_ashl<mode>3): Likewise.
5389         (*avx_<code><mode>3): Likewise.
5390         (*avx_eq<mode>3): Likewise.
5391         (*avx_gt<mode>3): Likewise.
5392         (*avx_nand<mode>3): Likewise.
5393         (*avx_nand<mode>3): Likewise.
5394         (*avx_<code><mode>3): Likewise.
5395         (*avx_<code><mode>3): Likewise.
5396         (*avx_packsswb): Likewise.
5397         (*avx_packssdw): Likewise.
5398         (*avx_packuswb): Likewise.
5399         (*avx_punpckhbw): Likewise.
5400         (*avx_punpcklbw): Likewise.
5401         (*avx_punpckhwd): Likewise.
5402         (*avx_punpcklwd): Likewise.
5403         (*avx_punpckhdq): Likewise.
5404         (*avx_punpckldq): Likewise.
5405         (*avx_pinsr<avxmodesuffixs>): Likewise.
5406         (*avx_pinsrq): Likewise.
5407         (*avx_loadld): Likewise.
5408         (*vec_extractv2di_1_rex64_avx): Likewise.
5409         (*vec_extractv2di_1_avx): Likewise.
5410         (*vec_dupv2di_avx): Likewise.
5411         (*vec_concatv2si_avx): Likewise.
5412         (*vec_concatv4si_1_avx): Likewise.
5413         (*vec_concatv2di_avx): Likewise.
5414         (*vec_concatv2di_rex64_avx): Likewise.
5415         (*avx_uavgv16qi3): Likewise.
5416         (*avx_uavgv8hi3): Likewise.
5417         (*avx_psadbw): Likewise.
5418         (avx_movmskp<avxmodesuffixf2c>256): Likewise.
5419         (*avx_phaddwv8hi3): Likewise.
5420         (*avx_phadddv4si3): Likewise.
5421         (*avx_phaddswv8hi3): Likewise.
5422         (*avx_phsubwv8hi3): Likewise.
5423         (*avx_phsubdv4si3): Likewise.
5424         (*avx_phsubswv8hi3): Likewise.
5425         (*avx_pmaddubsw128): Likewise.
5426         (*avx_pmulhrswv8hi3): Likewise.
5427         (*avx_pshufbv16qi3): Likewise.
5428         (*avx_psign<mode>3): Likewise.
5429         (*avx_palignrti): Likewise.
5430         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
5431         (avx_blendvp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
5432         (avx_dpp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
5433         (*avx_mpsadbw): Likewise.
5434         (*avx_packusdw): Likewise.
5435         (*avx_pblendvb): Likewise.
5436         (*avx_pblendw): Likewise.
5437         (avx_vtestp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
5438         (avx_ptest256): Likewise.
5439         (avx_roundp<avxmodesuffixf2c>256): Likewise.
5440         (*avx_rounds<ssemodesuffixf2c>): Likewise.
5441         (*avx_aesenc): Likewise.
5442         (*avx_aesenclast): Likewise.
5443         (*avx_aesdec): Likewise.
5444         (*avx_aesdeclast): Likewise.
5445         (avx_vzeroupper): Likewise.
5446         (avx_vzeroupper_rex64): Likewise.
5447         (avx_vpermil<mode>): Likewise.
5448         (avx_vpermilvar<mode>3): Likewise.
5449         (avx_vpermil2<mode>3): Likewise.
5450         (avx_vperm2f128<mode>3): Likewise.
5451         (avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>): Likewise.
5452         (avx_vbroadcastss256): Likewise.
5453         (avx_vbroadcastf128_p<avxmodesuffixf2c>256): Likewise.
5454         (avx_vinsertf128<mode>): Likewise.
5455         (vec_set_lo_<mode>): Likewise.
5456         (vec_set_hi_<mode>): Likewise.
5457         (vec_set_lo_<mode>): Likewise.
5458         (vec_set_hi_<mode>): Likewise.
5459         (vec_set_lo_v16hi): Likewise.
5460         (vec_set_hi_v16hi): Likewise.
5461         (vec_set_lo_v32qi): Likewise.
5462         (vec_set_hi_v32qi): Likewise.
5463         (avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
5464         (avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>): Likewise.
5465         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
5466         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Likewise.
5467         (vec_init<mode>): Likewise.
5468         (*vec_concat<mode>_avx): Likewise.
5469         (blendbits): Support V8SF and V4DF.
5470         (sse2_movq128): Support AVX.
5471         (<sse>_movnt<mode>): Likewise.
5472         (sse2_movntv2di): Likewise.
5473         (sse_rcpv4sf2): Likewise.
5474         (sse_sqrtv4sf2): Likewise.
5475         (sse_rsqrtv4sf2): Likewise.
5476         (<sse>_comi): Likewise.
5477         (<sse>_ucomi): Likewise.
5478         (sse_cvtss2si): Likewise.
5479         (sse_cvtss2si_2): Likewise.
5480         (sse_cvtss2siq): Likewise.
5481         (sse_cvtss2siq_2): Likewise.
5482         (sse_cvttss2si): Likewise.
5483         (sse_cvttss2siq): Likewise.
5484         (sse2_cvtsd2si): Likewise.
5485         (sse2_cvtsd2si_2): Likewise.
5486         (sse2_cvtsd2siq): Likewise.
5487         (sse2_cvtsd2siq_2): Likewise.
5488         (sse2_cvttsd2si): Likewise.
5489         (sse2_cvttsd2siq): Likewise.
5490         (sse2_cvtdq2pd): Likewise.
5491         (*sse2_cvtpd2dq): Likewise.
5492         (*sse2_cvttpd2dq): Likewise.
5493         (*sse2_cvtpd2ps): Likewise.
5494         (sse2_cvtps2pd): Likewise.
5495         (sse3_movshdup): Likewise.
5496         (sse3_movsldup): Likewise.
5497         (sse_storehps): Likewise.
5498         (*sse4_1_extractps): Likewise.
5499         (sse2_storelpd): Likewise.
5500         (vec_dupv2df_sse3): Likewise.
5501         (*vec_concatv2df_sse3): Likewise.
5502         (*sse4_1_pextrb): Likewise.
5503         (*sse4_1_pextrb_memory): Likewise.
5504         (*sse2_pextrw): Likewise.
5505         (*sse4_1_pextrw_memory): Likewise.
5506         (*sse4_1_pextrd): Likewise.
5507         (*sse4_1_pextrq): Likewise.
5508         (sse2_pshufd_1): Likewise.
5509         (sse2_pshuflw_1): Likewise.
5510         (sse2_pshufhw_1): Likewise.
5511         (*sse2_storeq_rex64): Likewise.
5512         (*vec_dupv4si): Likewise.
5513         (<sse>_movmskp<ssemodesuffixf2c>): Likewise.
5514         (sse2_pmovmskb): Likewise.
5515         (*sse2_maskmovdqu): Likewise.
5516         (*sse2_maskmovdqu_rex64): Likewise.
5517         (sse_ldmxcsr): Likewise.
5518         (sse_stmxcsr): Likewise.
5519         (abs<mode>2): Likewise.
5520         (sse4_1_movntdqa): Likewise.
5521         (sse4_1_phminposuw): Likewise.
5522         (sse4_1_extendv8qiv8hi2): Likewise.
5523         (*sse4_1_extendv8qiv8hi2): Likewise.
5524         (sse4_1_extendv4qiv4si2): Likewise.
5525         (*sse4_1_extendv4qiv4si2): Likewise.
5526         (sse4_1_extendv2qiv2di2): Likewise.
5527         (*sse4_1_extendv2qiv2di2): Likewise.
5528         (sse4_1_extendv4hiv4si2): Likewise.
5529         (*sse4_1_extendv4hiv4si2): Likewise.
5530         (sse4_1_extendv2hiv2di2): Likewise.
5531         (*sse4_1_extendv2hiv2di2): Likewise.
5532         (sse4_1_extendv2siv2di2): Likewise.
5533         (*sse4_1_extendv2siv2di2): Likewise.
5534         (sse4_1_zero_extendv8qiv8hi2): Likewise.
5535         (*sse4_1_zero_extendv8qiv8hi2): Likewise.
5536         (sse4_1_zero_extendv4qiv4si2): Likewise.
5537         (*sse4_1_zero_extendv4qiv4si2): Likewise.
5538         (sse4_1_zero_extendv2qiv2di2): Likewise.
5539         (*sse4_1_zero_extendv2qiv2di2): Likewise.
5540         (sse4_1_zero_extendv4hiv4si2): Likewise.
5541         (*sse4_1_zero_extendv4hiv4si2): Likewise.
5542         (sse4_1_zero_extendv2hiv2di2): Likewise.
5543         (*sse4_1_zero_extendv2hiv2di2): Likewise.
5544         (sse4_1_zero_extendv2siv2di2): Likewise.
5545         (*sse4_1_zero_extendv2siv2di2): Likewise.
5546         (sse4_1_ptest): Likewise.
5547         (sse4_1_roundp<ssemodesuffixf2c>): Likewise.
5548         (sse4_2_pcmpestri): Likewise.
5549         (sse4_2_pcmpestrm): Likewise.
5550         (sse4_2_pcmpistri): Likewise.
5551         (sse4_2_pcmpistrm): Likewise.
5552         (aesimc): Likewise.
5553         (aeskeygenassist): Likewise.
5554
5555 2008-08-28  Uros Bizjak  <ubizjak@gmail.com>
5556
5557         * config/i386/predicates.md (vzeroall_operation): New.
5558
5559         * config/i386/sse.md (avx_vzeroall): New.
5560         (*avx_vzeroall): Likewise.
5561
5562 2008-08-28  Paul Brook  <paul@codesourcery.com>
5563             Mark Shinwell  <shinwell@codesourcery.com>
5564             Richard Earnshaw  <richard.earnshaw@arm.com>
5565
5566         * config/arm/arm.c (TARGET_MAX_ANCHOR_OFFSET): New.
5567         (TARGET_MIN_ANCHOR_OFFSET): New.
5568         (arm_override_options): Set correct anchor ranges for Thumb-1
5569         and Thumb-2 if required.
5570         (legitimize_pic_address): Handle case involving a TLS symbol
5571         reference with an addend.
5572         (arm_optimization_options): Enable section anchors at -O1 and
5573         above.
5574         * config/arm/arm.h (OPTIMIZATION_OPTIONS): New.
5575         * config/arm/arm-protos.h (arm_optimization_options): New.
5576
5577 2008-08-28  Nick Clifton  <nickc@redhat.com>
5578
5579         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Define.
5580         * config/stormy16/stormy16.md (zero_extendqihi2): Fix length
5581         attribute.
5582
5583         * config/v850/v850.h (IRA_COVER_CLASSES): Define.
5584         * config/v850/v850.md (return): Remove frame size restriction.
5585
5586         * config/mcore/mcore.h (IRA_COVER_CLASSES): Define.
5587
5588         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Define.
5589
5590         * config/fr30/fr30.h (IRA_COVER_CLASSES): Define.
5591
5592         * config/m32r/m32r.h (IRA_COVER_CLASSES): Define.
5593
5594 2008-08-28  Paul Brook  <paul@codesourcery.com>
5595
5596         * config/arm/vfp11.md: Update license notice.
5597         * config/arm/cortex-r4.md: Ditto.
5598
5599 2008-08-28  Richard Guenther  <rguenther@suse.de>
5600
5601         PR tree-optimization/37207
5602         * tree-ssa-ifcombine.c (recognize_single_bit_test): Fix
5603         tuplification bug.
5604
5605 2008-08-28  Dodji Seketeli  <dodji@redhat.com>
5606
5607         PR c++/36741
5608         * tree.c (int_fits_type_p): Don't forget unsigned integers
5609           of type sizetype which higher end word equals -1.
5610
5611 2008-08-28  Ira Rosen  <irar@il.ibm.com>
5612
5613         * target.h (struct vectorize): Add new target builtin.
5614         * tree-vectorizer.c (destroy_loop_vec_info): Call
5615         vect_free_slp_instance instead of vect_free_slp_node.
5616         * tree-vectorizer.h (enum slp_load_perm_type): New.
5617         (struct _slp_instance): Add new fields.
5618         (SLP_INSTANCE_LOAD_PERMUTATION): New.
5619         (SLP_INSTANCE_LOADS): New.
5620         (vect_free_slp_tree): Remove.
5621         (vect_free_slp_instance): Declare.
5622         (SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
5623         (vectorizable_load): Add argument.
5624         (vect_transform_slp_perm_load): New.
5625         * tree-vect-analyze.c (vect_analyze_operations): Add an argument to
5626         vectorizable_load.
5627         (vect_get_place_in_interleaving_chain): New function.
5628         (vect_free_slp_tree): Make static.
5629         (vect_free_slp_instance): New function.
5630         (vect_build_slp_tree): Add new arguments. Allow load permutations and
5631         collect the load location in the interleaving chain.
5632         (vect_supported_slp_permutation_p): New function.
5633         (vect_supported_load_permutation_p): Likewise.
5634         (vect_analyze_slp_instance): In case of loads permutation, call
5635         vect_supported_load_permutation_p to check that the permutation is
5636         supported.
5637         * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
5638         * tree-vect-transform.c (vect_transform_stmt): Add new argument.
5639         (vect_create_mask_and_perm): New function.
5640         (vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
5641         (vectorizable_load): Add an argument. Don't keep the created vectors
5642         statements in the node if permutation is required. Call
5643         vect_transform_slp_perm_load to generate the permutation.
5644         (vect_transform_stmt): Add new argument. Call vectorizable_load with
5645         additional argument.
5646         (vect_schedule_slp_instance): In case of loads permutation, allocate
5647         vectorized statements structure for all the related SLP nodes. Call
5648         vect_transform_stmt with addditional argument.
5649         (vect_transform_loop): Call vect_transform_stmt with correct arguments.
5650         * config/spu/spu.c (spu_builtin_vec_perm): New.
5651         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
5652         * config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
5653         * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
5654         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
5655
5656 2008-08-28  Chris Fairles  <chris.fairles@gmail.com>
5657
5658         * gthr-posix.h (__gthread_create,  __gthread_join, __gthread_detach,
5659         __gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
5660         __gthread_cond_signal, __gthread_cond_timedwait,
5661         __gthread_cond_timedwait_recursive): New functions.
5662         * gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
5663         Likewise.
5664         * gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
5665         thread interfaces.
5666
5667 2008-08-28  Richard Guenther  <rguenther@suse.de>
5668
5669         PR middle-end/37005
5670         * fold-const.c (maybe_canonicalize_comparison_1): Require
5671         undefined overflow only for canonicalizing A +- CST cmp CST.
5672         Make sure to not generate new constants that are not inside
5673         their TYPE_MIN/MAX_VALUE range.
5674         (maybe_canonicalize_comparison): Remove undefined overflow
5675         checking from here.
5676         (fold_binary): Remove now duplicate folding.
5677
5678 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
5679
5680         * c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
5681         use not updated in the last change.
5682
5683 2008-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
5684
5685         * config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
5686         (IRA_COVER_CLASSES): Add FPUL_REGS.
5687
5688 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5689
5690         PR 37217
5691         * c-common.c (conversion_warning): Check for null operands.
5692
5693 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5694
5695         PR c/31673
5696         * c-decl.c (check_for_loop_decls): Improve error message. Give
5697         hint.
5698
5699 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5700
5701         PR c/37186
5702         * c-typeck.c (WARN_FOR_ASSIGNMENT): Add OPT parameter.
5703         (convert_for_assignment): Pass corrent OPT_W* parameter to
5704         WARN_FOR_ASSIGNMENT.
5705
5706 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
5707
5708         PR c++/35321
5709         * c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
5710
5711 2008-08-27  Paul Brook  <paul@codesourcery.com>
5712
5713         * config.gcc: Loosen checks for arm uclinux eabi targets.
5714
5715 2008-08-27  Paul Brook  <paul@codesourcery.com>
5716
5717         * config/arm/t-arm-coff (LIB1ASMFUNCS): Add missing undescrore on
5718         _clzsi2.
5719         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
5720
5721 2008-08-26  Douglas Gregor  <doug.gregor@gmail.com>
5722
5723         * c-common.c (do_switch_warnings): Look through the CONST_DECLs in
5724         the enumerators of an ENUMERAL_TYPE.
5725         * dbxout.c (dbxout_type): Ditto.
5726
5727 2008-08-26  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5728
5729         PR rtl-opt/37219
5730         * fwprop.c (fwprop): Check that the loop_father is the outer loop.
5731         (fwprop_addr): Check that the loop_father is not the outer loop.
5732
5733 2008-08-26  Paul Brook  <paul@codesourcery.com>
5734
5735         * config/arm/vfp.md: Document fmul{s,d} and fmac{s,d} types.
5736         Remove documentation entry for fmul type.
5737         Use fmuls to annotate single-precision multiplication patterns,
5738         fmuld to annotate double-precision multiplication patterns,
5739         fmacs to annotate single-precision multiply-accumulate patterns
5740         and fmacd to annotate double-precision multiply-accumulate patterns.
5741         * config/arm/vfp11.md: Update reservations accordingly.
5742         * config/arm/arm.md: Note that certain values of the "type"
5743         attribute are documented in vfp.md.
5744         * config/arm/arm1020e.md: Remove out of date duplicate comment.
5745         (v10_cvt): Use new fmul types.
5746
5747 2008-08-26  Paul Brook  <paul@codesourcery.com>
5748
5749         * config/arm/vfp.md: Move pipeline description for VFP11 to...
5750         * config/arm/vfp11.md: ...here.  New.
5751         * config/arm/arm.md: Include vfp11.md.
5752
5753 2008-08-26  Hans-Peter Nilsson  <hp@axis.com>
5754
5755         * opts.c (decode_options) [!IRA_COVER_CLASSES]: Add missing
5756         parameter to inform call.
5757
5758 2008-08-26  Jeff Law  <law@redhat.com>
5759
5760         * mn10300.md (movqi, movhi): Split i->d*a case into two cases to
5761         avoid the possibility of getting DATA_OR_ADDRESS_REGS as the
5762         preferred class when copying a constant into a partial word register.
5763
5764 2008-08-26  Ben Elliston  <bje@au.ibm.com>
5765
5766         * rtlanal.c: Fix uses of "it's" with "its" where appropriate.
5767         * cp/typeck.c: Likewise.
5768         * cp/tree.c: Likewise.
5769         * gimple-low.c: Likewise.
5770         * jump.c: Likewise.
5771
5772 2008-08-26  Vladimir Makarov  <vmakarov@redhat.com>
5773
5774         * ira-build.c, ira-color.c, ira-costs.c, ira.h, ira-lives.c,
5775         ira.c, ira-conflicts.c, ira-emit.c, ira-int.h: New files.
5776
5777         * doc/passes.texi: Describe IRA.
5778
5779         * doc/tm.texi (IRA_COVER_CLASSES,
5780         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Describe the new macros.
5781
5782         * doc/invoke.texi (ira-max-loops-num): Describe the new parameter.
5783         (-fira, -fira-algorithm, -fira-coalesce, -fno-ira-move-spills,
5784         -fira-propagate-cost, -fno-ira-share-save-slots,
5785         -fno-ira-share-spill-slots, -fira-verbose): Describe new options.
5786
5787         * flags.h (ira_algorithm): New enumeration.
5788         (flag_ira_algorithm, flag_ira_verbose): New external variable
5789         declarations.
5790
5791         * postreload.c (gate_handle_postreload): Don't do post reload
5792         optimizations unless the reload is completed.
5793
5794         * reload.c (push_reload, find_dummy_reload): Use DF_LR_OUT for
5795         IRA.
5796
5797         * tree-pass.h (pass_ira): New external variable declaration.
5798
5799         * reload.h: Add 2008 to the Copyright.
5800
5801         * cfgloopanal.c: Include params.h.
5802         (estimate_reg_pressure_cost): Decrease cost for IRA optimization
5803         mode.
5804
5805         * params.h (IRA_MAX_LOOPS_NUM): New macro.
5806
5807         * toplev.c (ira.h): New include.
5808         (flag_ira_algorithm, flag_ira_verbose): New external variables.
5809         (backend_init_target): Call ira_init.
5810         (backend_init): Call ira_init_once.
5811         (finalize): Call finish_ira_once.
5812
5813         * toplev.h (flag_ira, flag_ira_coalesce, flag_ira_move_spills,
5814         flag_ira_share_save_slots, flag_ira_share_spill_slots): New
5815         external variables.
5816
5817         * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
5818         may_move_out_cost): New external variable declarations.
5819         (move_table): New typedef.
5820
5821         * caller-save.c: Include headers output.h and ira.h.
5822         (no_caller_save_reg_set): New global variable.
5823         (save_slots_num, save_slots): New variables.
5824         (reg_save_code, reg_restore_code, add_stored_regs): Add
5825         prototypes.
5826         (init_caller_save): Set up no_caller_save_reg_set.
5827         (init_save_areas): Reset save_slots_num.
5828         (saved_hard_reg): New structure.
5829         (hard_reg_map, saved_regs_num, all_saved_regs): New variables.
5830         (initiate_saved_hard_regs, new_saved_hard_reg,
5831         finish_saved_hard_regs, saved_hard_reg_compare_func): New
5832         functions.
5833         (setup_save_areas): Add code for sharing stack slots.
5834         (all_blocks): New variable.
5835         (save_call_clobbered_regs): Process pseudo-register too.
5836         (mark_set_regs): Process pseudo-register too.
5837         (insert_one_insn): Put the insn after bb note in a empty basic
5838         block.  Add insn check.
5839
5840         * global.c (eliminable_regset): Make it external.
5841         (mark_elimination): Use DF_LR_IN for IRA.
5842         (pseudo_for_reload_consideration_p): New.
5843         (build_insn_chain): Make it external.  Don't ignore spilled
5844         pseudos for IRA.  Use pseudo_for_reload_consideration_p.
5845         (gate_handle_global_alloc): New function.
5846         (pass_global_alloc): Add the gate function.
5847
5848         * opts.c (decode_options): Set up flag_ira.  Print the warning for
5849         -fira.
5850         (common_handle_option): Process -fira-algorithm and -fira-verbose.
5851
5852         * timevar.def (TV_IRA, TV_RELOAD): New passes.
5853
5854         * regmove.c (regmove_optimize): Don't do replacement of output for
5855         IRA.
5856
5857         * hard-reg-set.h (no_caller_save_reg_set, reg_class_subclasses):
5858         New external variable declarations.
5859
5860         * local-alloc.c (update_equiv_regs): Make it external.  Return
5861         true if jump label rebuilding should be done.  Rescan new_insn for
5862         notes.
5863         (gate_handle_local_alloc): New function.
5864         (pass_local_alloc): Add the gate function.
5865
5866         * alias.c (value_addr_p, stack_addr_p): New functions.
5867         (nonoverlapping_memrefs_p): Use them for IRA.
5868
5869         * common.opt (fira, fira-algorithm, fira-coalesce,
5870         fira-move-spills, fira-share-save-slots, fira-share-spill-slots,
5871         fira-verbose): New options.
5872
5873         * regclass.c (reg_class_subclasses, contains_reg_of_mode,
5874         move_cost, may_move_in_cost, may_move_out_cost): Make the
5875         variables external.
5876         (move_table): Remove typedef.
5877         (init_move_cost): Make it external.
5878         (allocate_reg_info, resize_reg_info, setup_reg_classes): New
5879         functions.
5880
5881         * rtl.h (init_move_cost, allocate_reg_info, resize_reg_info,
5882         setup_reg_classes): New function prototypes.
5883         (eliminable_regset): New external variable declaration.
5884         (build_insn_chain, update_equiv_regs): New function prototypes.
5885
5886         * Makefile.in (IRA_INT_H): New definition.
5887         (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
5888         ira-conflicts.o, ira-color.o, ira-emit.o, and ira-lives.o.
5889         (reload1.o, toplev.o): Add dependence on ira.h.
5890         (cfgloopanal.o): Add PARAMS_H.
5891         (caller-save.o): Add dependence on output.h and ira.h.
5892         (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
5893         ira-emit.o, ira-lives.o): New entries.
5894
5895         * passes.c (pass_ira): New pass.
5896
5897         * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
5898
5899         * reload1.c (ira.h): Include the header.
5900         (changed_allocation_pseudos): New bitmap.
5901         (init_reload): Initiate the bitmap.
5902         (compute_use_by_pseudos): Permits spilled registers in FROM.
5903         (temp_pseudo_reg_arr): New variable.
5904         (reload): Allocate and free temp_pseudo_reg_arr.  Sort pseudos for
5905         IRA.  Call alter_reg with the additional parameter.  Don't clear
5906         spilled_pseudos for IRA.  Restore original insn chain for IRA.
5907         Clear changed_allocation_pseudos at the end of reload.
5908         (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
5909         (hard_regno_to_pseudo_regno): New variable.
5910         (count_pseudo): Check spilled pseudos.  Set up
5911         hard_regno_to_pseudo_regno.
5912         (count_spilled_pseudo): Check spilled pseudos. Update
5913         hard_regno_to_pseudo_regno.
5914         (find_reg): Use better_spill_reload_regno_p.  Check
5915         hard_regno_to_pseudo_regno.
5916         (alter_reg): Set up spilled_pseudos.  Add a new parameter.  Add
5917         code for IRA.
5918         (eliminate_regs_1): Use additional parameter for alter_reg.
5919         (finish_spills): Set up pseudo_previous_regs only for spilled
5920         pseudos.  Call reassign_pseudos once for all spilled pseudos, pass
5921         more arguments.  Don't clear live_throughout and dead_or_set for
5922         spilled pseudos.  Use additional parameter for alter_reg.  Call
5923         mark_allocation_change.  Set up changed_allocation_pseudos.
5924         Remove sanity check.
5925         (emit_input_reload_insns, delete_output_reload): Use additional
5926         parameter for alter_reg.  Call mark_allocation_change.
5927         (substitute, gen_reload_chain_without_interm_reg_p): New
5928         functions.
5929         (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
5930
5931         * testsuite/gcc.dg/20080410-1.c: New file.
5932
5933         * config/s390/s390.h (IRA_COVER_CLASSES,
5934         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Define.
5935
5936         * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
5937
5938         * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
5939
5940         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
5941
5942         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
5943
5944         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
5945
5946         * config/alpha/alpha.h (IRA_COVER_CLASSES): Ditto.
5947
5948         2008-08-24  Jeff Law  <law@redhat.com>
5949         * ira.c (setup_reg_class_intersect_union): Prefer smallest class
5950         when ignoring unavailable registers.
5951
5952         2008-08-24  Jeff Law  <law@redhat.com>
5953         * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
5954         FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
5955         * ira.c (setup_eliminable_regset): Check stack_realign_needed.
5956         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): New macro.
5957
5958         2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
5959         * ira-build.c (allocno_range_compare_func): Stabilize sort.
5960
5961         2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
5962         * config/avr/avr.h (IRA_COVER_CLASSES): New macro.
5963         * reload1.c (find_reg): Process registers in register allocation order.
5964
5965         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
5966         * toplev.c (backend_init_target): Move ira_init call from
5967         here...
5968         (lang_dependent_init_target): ...to here.
5969
5970         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
5971         * ira.c (setup_class_subset_and_memory_move_costs): Don't
5972         calculate memory move costs for NO_REGS.
5973
5974         2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
5975         * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
5976         STACK_REGS is defined.
5977
5978         2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
5979         * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
5980
5981         2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
5982         * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
5983
5984         2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
5985         * config/sh/sh.h (IRA_COVER_CLASSES): Define.
5986         * config/sh/sh.md (movsicc_true+3): Check if emit returns a
5987         barrier.
5988
5989 2008-08-26  Victor Kaplansky  <victork@il.ibm.com>
5990             Dorit Nuzman  <dorit@il.ibm.com>
5991
5992         * gcc/config/spu/spu.md (vec_extract_evenv4si,
5993         vec_extract_evenv4sf, vec_extract_evenv8hi,
5994         vec_extract_evenv16qi, vec_extract_oddv4si,
5995         vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
5996         vec_interleave_highv4sf, vec_interleave_lowv4sf,
5997         vec_interleave_highv4si, vec_interleave_lowv4si,
5998         vec_interleave_highv8hi, vec_interleave_lowv8hi,
5999         vec_interleave_highv16qi, vec_interleave_lowv16qi,
6000         vec_pack_trunc_v8hi, vec_pack_trunc_v4si): Implement.S
6001
6002 2008-08-25  Janis Johnson  <janis187@us.ibm.com>
6003
6004         PR target/36756
6005         * config/rs6000/rs6000.c (optimization_options): Don't default to
6006         section anchors without toplevel reorder.
6007
6008 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6009
6010         * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
6011         (mfc_end_critical_section): Likewise.
6012
6013 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6014
6015         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
6016         all type qualifiers from element type to vector type.
6017
6018 2008-08-25  David Daney  <ddaney@avtrex.com>
6019
6020         * config/mips/mips.md (immediate_insn): Move up in file, fix
6021         comment typo, reformat.
6022         (fetchop_bit, atomic_hiqi_op memory_barrier,
6023         sync_compare_and_swap<mode>, compare_and_swap_12, sync_add<mode>,
6024         sync_<optab><mode>, sync_<optab>_12, sync_old_<optab><mode>,
6025         sync_old_<optab>_12, sync_new_<optab><mode>, sync_new_<optab>_12,
6026         sync_nand<mode>, sync_nand_12, sync_old_nand<mode>,
6027         sync_old_nand_12, sync_new_nand<mode>, sync_new_nand_12,
6028         sync_sub<mode>, sync_old_add<mode>, sync_old_sub<mode>,
6029         sync_new_add<mode>, sync_new_sub<mode>, sync_<optab><mode>,
6030         sync_old_<optab><mode>, sync_new_<optab><mode>, sync_nand<mode>,
6031         sync_old_nand<mode>, sync_new_nand<mode>,
6032         sync_lock_test_and_set<mode>, sync_lock_test_and_set<mode>,
6033         test_and_set_12): Moved to sync.md.
6034         (sync.md): Include.
6035         * config/mips/sync.md: New file.
6036
6037 2008-08-25  Richard Henderson  <rth@redhat.com>
6038
6039         * dwarf2out.c (def_cfa_1): Don't scale by DWARF_CIE_DATA_ALIGNMENT.
6040         (regsave): Likewise.
6041         (lookup_cfa_1): Don't rescale by DWARF_CIE_DATA_ALIGNMENT.
6042         (output_cfi_directive): Likewise.
6043         (div_data_align): New.
6044         (output_cfi): Use it.
6045
6046 2008-08-24  Adam Nemet  <anemet@caviumnetworks.com>
6047
6048         * config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
6049         * config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
6050         (TARGET_OCTEON): New macro.
6051         (TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
6052         (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
6053         (ISA_HAS_POP): New macro.
6054         * config/mips/driver-native.c (host_detect_local_cpu): Handle
6055         Octeon.
6056         * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
6057         Handle Octeon.
6058         * config/mips/mips.md (cpu): Add octeon.
6059         (type): Add pop attribute value.
6060         (popcount<mode>2): New pattern.
6061         * doc/invoke.texi (-march=@var{arch}): Add octeon.
6062
6063 2008-08-24  Jan Hubicka  <jh@suse.cz>
6064
6065         * doc/invoke.texi (-fipa-cp-clone): New option.
6066         (-fipa-cp): Update docs.
6067         (--param ipcp-unit-growth):New.
6068         * ipa-cp.c: Include fibheap.h, params.h
6069         (ipcp_initialize_node_lattices): When not cloning, all externally
6070         visible functions are bottom.
6071         (ipcp_need_redirect_p): Accept clones.
6072         (ipcp_insert_stage): Use cost driven heuristics.
6073         (max_count, dead_nodes): New static vars.
6074         (ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
6075         ipcp_const_param_count): New functions.
6076         * common.opt (ipa-cp-clone): New command line option.
6077         * params.def (ipcp-unit-growth): New.
6078
6079 2008-08-24  Jan Hubicka  <jh@suse.cz>
6080
6081         * tree-inline.c (tree_function_versioning): Look harder
6082         for referenced vars.
6083
6084 2008-08-24  Razya Ladelsky  <razya@il.ibm.com>
6085
6086         PR tree-optimization/37185
6087         * matrix-reorg.c (transform_access_sites): Update changed stmt.
6088
6089 2008-08-23  Jan Hubicka  <jh@suse.cz>
6090
6091         * ipa-cp.c (ipcp_analyze_node): New function.
6092         (ipcp_update_cloned_node): Use it.
6093         (ipcp_init_stage): Likewise.
6094         * ipa-inline.c (function_insertion_hook_holder): New static var.
6095         (analyze_function): Break out from ....
6096         (inline_generate_summary): Here; register insertion hook.
6097         (cgraph_decide_inlining): Remove hook.
6098         (add_new_function): New function.
6099
6100 2008-08-23  Jan Hubicka  <jh@suse.cz>
6101
6102         * opts.c (decode_options): Revert accidental change enabling ipa-cp.
6103
6104 2008-08-23  Jan Hubicka  <jh@suse.cz>
6105
6106         * ipa-cp.c (constant_val_insert): Remove.
6107         (ipcp_propagate_one_const): Remove.
6108         (ipcp_create_replace_map): Always insert replacements to the map.
6109         (ipcp_insert_stage): Do not try to insert statements by hand.
6110         * tree-inline.c (insert_init_stmt): Break out from ...
6111         (setup_one_parameter): ... here; allow NULL BB pointer.
6112         (tree_function_versioning): Use setup_one_parameter to process
6113         replacement map.
6114
6115 2008-08-23  Jan Hubicka  <jh@suse.cz>
6116
6117         * tree.c (decl_address_ip_invariant_p): New function.
6118         * tree.h (decl_address_ip_invariant_p): Declare.
6119         * gimple.c (strip_invariant_refs): Break out from ...
6120         (is_gimple_invariant_address): ... here
6121         (is_gimple_ip_invariant_address): New function.
6122         (is_gimple_ip_invariant): New function.
6123         * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
6124         Declare.
6125
6126         * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
6127         (ipcp_lat_is_insertable): All constants are insertable.
6128         (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
6129         IPA_CONST_VALUE_REF.
6130         (ipcp_initialize_node_lattices): Propagate all types of operands.
6131         (build_const_val): Do not handle IPA_CONST_VALUE_REF.
6132         (ipcp_create_replace_map): Reformat.
6133         (ipcp_need_redirect_p): Simplify.
6134         (ipcp_insert_stage): Check that argument is used before clonning.
6135         * ipa-prop.c (ipa_print_node_jump_functions): Do not handle
6136         IPA_CONST_REF.
6137         (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
6138         (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
6139         (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
6140         * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
6141         (jump_func_type): Remove IPA_CONST_VALUE_REF.
6142         * tree-inline.c (tree_function_versioning): Add variables referenced
6143         by replacing trees.
6144
6145 2008-08-23  Jan Hubicka  <jh@suse.cz>
6146
6147         PR target/37094
6148         * i386.c (standard_80387_constant_p): Use optimize_size.
6149
6150 2008-08-23  Ira Rosen  <irar@il.ibm.com>
6151
6152         PR tree-optimization/37161
6153         * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
6154         * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
6155         (vect_determine_vectorization_factor): Move the scalar type
6156         retrieval to vect_get_smallest_scalar_type.
6157         (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
6158         scalar type. Remove redundant computation.
6159         * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
6160         (vect_get_slp_defs): Take the type of RHS into account if
6161         necessary by calling vect_get_smallest_scalar_type. Call
6162         vect_get_constant_vectors with additional argument.
6163
6164 2008-08-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6165
6166         PR 35648
6167         * doc/invoke.texi (Wwrite-strings): Clarify description.
6168
6169 2008-08-23  Ira Rosen  <irar@il.ibm.com>
6170
6171         PR tree-optimization/37174
6172         * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
6173         def stmt is a part of the loop before accessing its stmt_vec_info.
6174
6175 2008-08-22  Anatoly Sokolov  <aesok@post.ru>
6176
6177         PR target/11259
6178         * config/avr/avr.md (UNSPEC_SWAP): New constants.
6179         (*swap): New insn pattern.
6180         (*ashlqi3): Rename from ashlqi3 insn pattern.
6181         (ashlqi3): New expanders.
6182         (*lshrqi3): Rename from lshrqi3 insn pattern.
6183         (lshrqi3): New expanders.
6184         (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
6185         lshrqi3_const5, lshrqi3_const6): New splitters.
6186         (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
6187         lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
6188         peephole2 patterns.
6189
6190 2008-08-22  Richard Guenther  <rguenther@suse.de>
6191
6192         PR tree-optimization/37078
6193         * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
6194         [+INF, +INF] ranges.
6195
6196 2008-08-22  Richard Guenther  <rguenther@suse.de>
6197
6198         PR tree-optimization/37143
6199         * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
6200         a conversion statement instead of a copy.
6201
6202 2008-08-22  Uros Bizjak  <ubizjak@gmail.com>
6203
6204         PR target/37184
6205         * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
6206         CCCmode, CCOmode and CCSmode destination modes.
6207
6208         PR target/37191
6209         * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
6210         from different units in a single alternative.
6211         (*vec_extractv2sf_1): Ditto.
6212         (*vec_extractv2si_0): Ditto.
6213         (*vec_extractv2si_1): Ditto.
6214         * config/i386/sse.md (sse2_storehpd): Ditto.
6215         (sse2_storelpd): Ditto.
6216         (sse2_loadhpd): Ditto.
6217         (sse2_loadlpd): Ditto.
6218
6219         PR target/37197
6220         * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
6221         (popcountsi2): Ditto.
6222         (clzdi2_abm): Ditto.
6223         (popcountdi2): Ditto.
6224         (clzhi2_abm): Ditto.
6225         (popcounthi2): Ditto.
6226
6227 2008-08-22  Richard Guenther  <rguenther@suse.de>
6228
6229         PR middle-end/36548
6230         PR middle-end/37125
6231         * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
6232         if the multiplication does not overflow.
6233
6234 2008-08-21  Nathan Sidwell  <nathan@codesourcery.com>
6235
6236         * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
6237
6238 2008-08-21  Richard Henderson  <rth@redhat.com>
6239
6240         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
6241         spurrious comma from test.
6242         * configure: Rebuild.
6243
6244 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6245
6246         PR 30457
6247         * builtins.c (fold_builtin_next_arg): Add warning about undefined
6248         behaviour.
6249
6250 2008-08-21  Aldy Hernandez  <aldyh@redhat.com>
6251
6252         * c-tree.h (grokfield): New argument.
6253         * c-decl.c (grokfield): Handle new location argument.
6254         * c-parser.c (c_parser_struct_declaration): Pass location to grokfield.
6255
6256 2008-08-21  Richard Guenther  <rguenther@suse.de>
6257
6258         * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
6259
6260 2008-08-21  Jan Hubicka  <jh@suse.cz>
6261
6262         * cgraph.c (first_cgraph_function_insertion_hook): New variable.
6263         (cgraph_add_function_insertion_hook,
6264         cgraph_remove_function_insertion_hook,
6265         cgraph_call_function_insertion_hooks): New functions.
6266         * cgraph.h (cgraph_add_function_insertion_hook,
6267         cgraph_remove_function_insertion_hook,
6268         cgraph_call_function_insertion_hooks): Declare.
6269         * ipa-reference.c (function_insertion_hook_holder): New variable.
6270         (check_operand, look_for_address_of): When checking late, do not care
6271         about module bitmaps.
6272         (add_new_function): New function.
6273         (generate_summary): Register hooks; zero module bitmaps.
6274         (propagate): Unregister hooks.
6275         * ipa-pure-const.c (function_insertion_hook_holder): New variable.
6276         (add_new_function): New function.
6277         (generate_summary): Register hook.
6278         (propagate): Remove hook.
6279
6280         * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
6281
6282         * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
6283         * ipa-cp.c (ipcp_update_cloned_node): New function.
6284         (build_const_val): Handle functions correctly; bring type logic
6285         into sync with tree-inline.c
6286         (ipcp_init_stage):  Take care of computing stuff needed by
6287         indirect inlining; update clones.
6288         (ipcp_generate_summary): Break out of ipcp_driver.
6289         (ipcp_driver): Do only execution and transformation.
6290         (pass_ipa_cp): Make IPA_PASS.
6291         * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
6292         offset to address.
6293         * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
6294         ipcp, some info is already available.
6295         * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
6296         * tree-inline.c (remap_ssa_name): Unshare expression.
6297
6298 2008-08-21  Richard Guenther  <rguenther@suse.de>
6299
6300         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
6301         a PHI ask VN if it is already available.
6302         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
6303         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
6304
6305 2008-08-21  Richard Guenther  <rguenther@suse.de>
6306
6307         PR middle-end/36817
6308         * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
6309         makes sure to produce a result of the correct type.
6310
6311 2008-08-21  Jan Hubicka  <jh@suse.cz>
6312         Backport from LTO branch:
6313
6314         2008-05-05  Kenneth Zadeck <zadeck@naturalbridge.com>
6315                     Jan Hubicka  <jh@suse.cz>
6316
6317         * ipa-pure-const.c
6318         (init_state, finish_state, set_function_state, generate_summary):
6319         New functions.
6320         (scan_stmt): Renamed from scan_function.  Changed to keep state in
6321         local static vars rather than cgraph aux field.
6322         (propagate): Renamed from static_execute. Changed to keep state in
6323         local static vars rather than cgraph aux field.
6324         (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
6325         * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
6326
6327         2008-07-15  Kenneth Zadeck <zadeck@naturalbridge.com>
6328
6329         * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
6330         * ipa-reference.c (init_function_info, generate_summary,
6331         propagate): New functions.
6332         (analyze_function):  Call init_function_info.
6333         (static_execute): Stripped into generate_summary and propagate.
6334         (pass_ipa_reference): Made into ipa_opt_pass.
6335
6336 2008-08-21  Richard Guenther  <rguenther@suse.de>
6337
6338         PR tree-optimization/37181
6339         * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
6340         folding result.
6341         (extract_range_from_unary_expr): Likewise.
6342
6343 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6344
6345         * diagnostic.c (pedwarn_at): Rename as pedwarn.
6346         (pedwarn): Delete.
6347         * toplev.h (pedwarn_at): Likewise.
6348         * builtins.c: Update all calls to pedwarn.
6349         * c-lex.c: Likewise.
6350         * toplev.c: Likewise.
6351         * c-tree.h: Likewise.
6352         * c-decl.c: Likewise.
6353         * c-errors.c: Likewise.
6354         * c-typeck.c: Likewise.
6355         * c-common.c: Likewise.
6356         * c-parser.c: Likewise.
6357
6358 2008-08-20  Joseph Myers  <joseph@codesourcery.com>
6359
6360         PR target/31070
6361         * config/sparc/sparc.c (function_arg_slotno): Handle structure
6362         with MODE_VECTOR_INT mode.
6363
6364 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6365
6366         PR middle-end/179
6367         * tree-ssa.c (warn_uninit): Do not warn for variables that can be
6368         initialized outside the current module.
6369         (warn_uninitialized_var): Ignore left-hand side when walking the
6370         trees. Ignore address expressions. Examine VUSE operands in gimple
6371         statements with a variable declaration on the right-hand side.
6372
6373 2008-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
6374
6375         PR bootstrap/37155
6376         * rtlanal.c (subreg_offset_representable_p): Revert last change.
6377
6378 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6379
6380         PR 35701
6381         * c-common.c (conversion_warning): Do not warn if applying bit-and
6382         operator to unsigned constant that fits in the target type.
6383
6384 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6385
6386         PR c++/35602
6387         * c-common.c (conversion_warning): Do not warn for artificial
6388         expressions.
6389
6390 2008-08-20  Richard Guenther  <rguenther@suse.de>
6391
6392         * tree-vrp.c (op_with_constant_singleton_value_range): New function.
6393         (extract_range_from_binary_expr): Fall back to constant propagation.
6394         (extract_range_from_unary_expr): Likewise.
6395
6396 2008-08-20  Richard Guenther  <rguenther@suse.de>
6397
6398         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
6399         with TREE_THIS_VOLATILE on shared nodes.
6400         (fold_stmt_r): Likewise.
6401
6402 2008-08-20  Jakub Jelinek  <jakub@redhat.com>
6403
6404         PR c/37171
6405         * c-parser.c (c_parser_attributes): For keywords use canonical
6406         spelling for attr_name.
6407
6408 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6409
6410         * value-prof.c (check_counter): Revert wrong call to error.
6411
6412 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6413
6414         * profile.c: Update calls to inform.
6415         * value-prof.c: Update calls to inform.
6416
6417 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6418
6419         * diagnostic.c (inform): Add an explicit location_t parameter.
6420         * toplev.h (inform): Update declaration.
6421         * builtins.c: Update all calls to inform.
6422         * c-common.c: Likewise.
6423         * c-decl.c: Likewise.
6424         * c-opts.c: Likewise.
6425         * c-pch.c: Likewise.
6426         * c-pragma.c: Likewise.
6427         * c-typeck.c: Likewise.
6428         * coverage.c: Likewise.
6429         * opts.c: Likewise.
6430         * toplev.c: Likewise.
6431         * tree-cfg.c: Likewise.
6432         * tree-ssa.c: Likewise.
6433
6434 2008-08-20  H.J. Lu  <hongjiu.lu@intel.com>
6435
6436         PR target/37169
6437         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
6438         V2DI mode, for SSE4.1, use movq instead of vector set if the
6439         second element is zero and inter-unit moves are OK.
6440
6441 2008-08-20  Richard Guenther  <rguenther@suse.de>
6442
6443         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
6444         properly handle conversion/copy chains after tuplification.
6445
6446 2008-08-20  Richard Guenther  <rguenther@suse.de>
6447
6448         * passes.c (init_optimization_passes): Move the second
6449         forwprop pass before alias computation.  Remove the second
6450         DCE pass.  Remove the first dominator and phi copy/const
6451         prop passes.
6452
6453 2008-08-20  Nick Clifton  <nickc@redhat.com>
6454
6455         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
6456         support of this feature.  Do not assume that a sufficiently new
6457         assembler will support the feature regardless of the target type.
6458         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
6459         * configure: Regenerate.
6460
6461 2008-08-20  Richard Guenther  <rguenther@suse.de>
6462
6463         * tree-vrp.c (found_in_subgraph): Remove.
6464         (live): New global static.
6465         (live_on_edge): New function.
6466         (blocks_visited): Remove.
6467         (register_edge_assert_for_2): Use live_on_edge.
6468         (find_conditional_asserts): Remove code dealing with
6469         found_in_subgraph.  Do not walk the CFG.
6470         (find_switch_asserts): Likewise.
6471         (find_assert_locations_1): Renamed from find_assert_locations.
6472         Move finding assert locations for conditional and switch
6473         statements first.  Update live bitmap.  Do not walk the CFG.
6474         (find_assert_locations): New function.
6475         (insert_range_assertions): Remove entry of CFG walk.
6476         Adjust call to find_assert_locations.
6477         * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
6478         that only can appear because of fake exit edges but assert we
6479         never try to insert on those.
6480         (fini_pre): Do not remove fake exit edges here...
6481         (execute_pre): ...but here, before committing edge inserts.
6482
6483 2008-08-19  Richard Guenther  <rguenther@suse.de>
6484
6485         * passes.c (init_optimization_passes): Exchange store-ccp
6486         with a ccp pass.
6487
6488 2008-08-19  Rafael Espíndola  <espindola@google.com>
6489
6490         * varasm.c (weak_decls): Move earlier in the file.
6491         (assemble_external): Add weak decls to the weak_decls list.
6492         (declare_weak): Don't add decls to the weak_decls list.
6493
6494 2008-08-19  H.J. Lu  <hongjiu.lu@intel.com>
6495
6496         PR target/37157
6497         * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
6498         before (sse2_shufpd_<mode>).
6499
6500 2008-08-19  Jakub Jelinek  <jakub@redhat.com>
6501
6502         PR debug/37156
6503         * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
6504         * tree.c (block_nonartificial_location): Likewise.
6505
6506 2008-08-19  Richard Guenther  <rguenther@suse.de>
6507
6508         PR tree-optimization/35972
6509         PR tree-optimization/23094
6510         * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
6511         parameter.
6512         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
6513         handle MISALIGNED_INDIRECT_REF.
6514         (get_ref_from_reference_ops): New helper.
6515         (vn_reference_lookup_pieces): Walk the use-def chain using the
6516         alias-oracle if requested.
6517         * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
6518         walking the use-def chain.
6519         (compute_avail): But not here.
6520         (create_component_ref_by_pieces_1): Properly handle
6521         MISALIGNED_INDIRECT_REF.
6522         (do_regular_insertion): Handle fully redundant
6523         expressions after PHI-translation also for SSA_NAME values, not
6524         only constants.  Correctly use edoubleprime for that.
6525
6526 2008-08-19  Ira Rosen  <irar@il.ibm.com>
6527
6528         * tree-vectorizer.c (supportable_widening_operation): Support
6529         multi-step conversion, return the number of steps in such conversion
6530         and the required intermediate types.
6531         (supportable_narrowing_operation): Likewise.
6532         * tree-vectorizer.h (vect_pow2): New function.
6533         (supportable_widening_operation): Change argument types.
6534         (supportable_narrowing_operation): Likewise.
6535         (vectorizable_type_promotion): Add an argument.
6536         (vectorizable_type_demotion): Likewise.
6537         * tree-vect-analyze.c (vect_analyze_operations): Call
6538         vectorizable_type_promotion and vectorizable_type_demotion with
6539         additional argument.
6540         (vect_get_and_check_slp_defs): Detect patterns.
6541         (vect_build_slp_tree): Add an argument, don't fail in case of multiple
6542         types.
6543         (vect_analyze_slp_instance): Don't fail in case of multiple types.
6544         Call vect_build_slp_tree with correct arguments. Calculate unrolling
6545         factor according to the smallest type in the loop.
6546         (vect_detect_hybrid_slp_stmts): Include statements from patterns.
6547         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call
6548         supportable_widening_operation with correct arguments.
6549         * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector
6550         operands lists according to the number of vector statements in left
6551         or right node, if exists.
6552         (vect_gen_widened_results_half): Remove unused argument.
6553         (vectorizable_conversion): Call supportable_widening_operation,
6554         supportable_narrowing_operation, and vect_gen_widened_results_half
6555         with correct arguments.
6556         (vectorizable_assignment): Change documentation, support multiple
6557         types in SLP.
6558         (vectorizable_operation): Likewise.
6559         (vect_get_loop_based_defs): New function.
6560         (vect_create_vectorized_demotion_stmts): Likewise.
6561         (vectorizable_type_demotion): Support loop-aware SLP and general
6562         multi-step conversion. Call vect_get_loop_based_defs and
6563         vect_create_vectorized_demotion_stmts for transformation.
6564         (vect_create_vectorized_promotion_stmts): New function.
6565         (vectorizable_type_promotion): Support loop-aware SLP and general
6566         multi-step conversion. Call vect_create_vectorized_promotion_stmts
6567         for transformation.
6568         (vectorizable_store): Change documentation, support multiple
6569         types in SLP.
6570         (vectorizable_load): Likewise.
6571         (vect_transform_stmt): Pass SLP_NODE to
6572         vectorizable_type_promotion and vectorizable_type_demotion.
6573         (vect_schedule_slp_instance): Move here the calculation of number
6574         of vectorized statements for each node from...
6575         (vect_schedule_slp): ... here.
6576         (vect_transform_loop): Call vect_schedule_slp without the last
6577         argument.
6578
6579 2008-08-19  Dorit Nuzman  <dorit@il.ibm.com>
6580
6581         PR bootstrap/37152
6582         * tree-vect-transform.c (vect_create_epilog_for_reduction): Change =
6583         to == in assert statement.
6584         (vectorizable_reduction): Fix typo.
6585
6586 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
6587
6588         PR bootstrap/37153
6589         * value-prof.c (check_counter): Dereference pointer to overall
6590         count when printing it.
6591
6592 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
6593
6594         * profile.h: Really add it.
6595
6596 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
6597
6598         * mcf.c: Really add it.
6599
6600 2008-08-18  Paul Yuan  <yingbo.com@gmail.com>
6601             Vinodha Ramasamy  <vinodha@google.com>
6602
6603         * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
6604         count_scale.
6605         * value-prof.c (check_counter): Fix the counter if
6606         flag_profile_correction is true.
6607         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
6608         tree_mod_subtract_transform):
6609         Follow check_counter parameter change.
6610         * common.opt (fprofile-correction): New option.
6611         * mcf.c: New file.
6612         * profile.h: Likewise.
6613         * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
6614         (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
6615         is_inconsistent, set_bb_counts, read_profile_edge_counts): New
6616         functions.
6617         (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
6618         flag_profile_correction is set.
6619
6620 2008-08-18  Richard Sandiford  <rdsandiford@googlemail.com>
6621
6622         * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
6623
6624 2008-08-18  Tomas Bily  <tbily@suse.cz>
6625
6626         * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
6627         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
6628         CONVERT_EXPR_P.
6629         * tree-data-ref.c (split_constant_offset_1): Likewise.
6630         * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
6631         * tree-sra.c (sra_walk_expr): Likewise.
6632         * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
6633         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
6634         * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
6635         * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
6636         Likewise.
6637         * gimple.c (gimple_assign_unary_nop_p): Likewise.
6638         * tree-vect-transform.c (vectorizable_type_demotion)
6639         (vectorizable_type_promotion): Likewise.
6640         * tree-inline.c (expand_call_inline):
6641         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
6642         (forward_propagate_addr_expr_1, forward_propagate_comparison)
6643         (tree_ssa_forward_propagate_single_use_vars): Likewise.
6644         * expr.c (expand_expr_real_1): Likewise.
6645         * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
6646         (gimple_assign_unary_useless_conversion_p): Likewise.
6647         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
6648         * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
6649         * fold-const.c (fold_unary): Likewise.
6650         * tree.h (CONVERT_EXPR_P): Likewise.
6651         * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
6652         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
6653         * tree-vrp.c:
6654         (register_edge_assert_for_2, extract_range_from_unary_expr)
6655         (register_edge_assert_for_1): Likewise.
6656
6657 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6658
6659         * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
6660         dconst_third_ptr, dconst_sqrt2_ptr): Declare.
6661         (enum real_value_const): Delete.
6662         (get_real_const): Delete.
6663         * real.c (get_real_const): Delete.
6664         (dconst_e_ptr): Define.
6665         (dconst_third_ptr): Define.
6666         (dconst_sqrt2_ptr): Define.
6667         * builtins.c: Update all callers.
6668
6669 2008-08-18  Richard Guenther  <rguenther@suse.de>
6670
6671         * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
6672         statement iterator after statement removal.
6673
6674 2008-08-18  Andreas Tobler  <a.tobler@schweiz.org>
6675
6676         * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
6677         (detect_processor_freebsd): Likewise.
6678         (host_detect_local_cpu): Call newly added functions for FreeBSD.
6679
6680 2008-08-18  Richard Guenther  <rguenther@suse.de>
6681
6682         * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
6683         and loads have the correct types.
6684
6685 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6686
6687         PR cpp/7263
6688         * c-opts.c (cpp_opts): Remove static.
6689         * c-parser.c (cpp_opts): Declare it extern.
6690         (disable_extension_diagnostics): Handle cpp options.
6691         (enable_extension_diagnostics): Likewise.
6692
6693 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6694
6695         * diagnostics.c (permerror_at): Rename as permerror.
6696         (permerror): Delete.
6697         * toplev.h: Likewise.
6698
6699 2008-08-18  Richard Guenther  <rguenther@suse.de>
6700
6701         * passes.c (init_optimization_passes): Remove cleanup_cfg1,
6702         sdse1 and addressables2 passes.  Replace dce1 with cddce1.
6703         Move call_cdce before build_alias.  Move copyrename2,
6704         cunrolli and ccp2 beafore build_alias.  Re-add addressable2
6705         right after final inlining.
6706         * tree-cfg.c (build_gimple_cfg): Do not dump function here.
6707         (pass_build_cfg): But instead via TODO_dump_func.
6708
6709 2008-08-18  Richard Guenther  <rguenther@suse.de>
6710
6711         * tree-sra.c (generate_element_init_1): Deal with NULL constructor
6712         element index.
6713         (scalarize_init): If we failed to generate some initializers
6714         do not generate zeros for not instantiated members.  Instead
6715         rely on the copy out.
6716         * tree-ssa-operands.c (get_addr_dereference_operands): Warn
6717         about missing flow-sensitive alias info only if we have
6718         aliases computed.
6719
6720 2008-08-17  Nick Clifton  <nickc@redhat.com>
6721
6722         * doc/extend.texi (Function Attributes): Fix typo in description
6723         if hot function attribute.
6724
6725 2008-08-17  Daniel Jacobowitz  <dan@codesourcery.com>
6726             Richard Sandiford  <rdsandiford@googlemail.com>
6727
6728         * doc/install.texi (--with-mips-plt): Document.
6729         * doc/invoke.texi (-mplt, -mno-plt): Document.
6730         * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
6731         and handle ${with_mips_plt}.
6732         * config/mips/mips.opt (mplt): New option.
6733         * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
6734         (TARGET_ABICALLS_PIC2): Likewise.
6735         (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
6736         (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
6737         (ASM_SPEC): Use !mabi=* instead of !mabi*.
6738         (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
6739         to decide whether to output ".option picX" directives.
6740         * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
6741         Pass -call_nonpic rather than -KPIC for -mplt.
6742         (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
6743         on the command line.  Also remove it when -mabi=64 is used without
6744         -msym32.
6745         * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
6746         * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
6747         TARGET_ABICALLS_PIC0.
6748         (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
6749         TARGET_ABICALLS.
6750         (mips16_build_function_stub): Only output ".option pic" directives
6751         and PIC stubs if TARGET_ABICALLS_PIC2.  Call through $25 instead of $1.
6752         (mips16_build_call_stub): Fix comment and remove redundant
6753         ".set at"/"set .noat" directives.
6754         (mips_function_rodata_section): Use the default behaviour for
6755         TARGET_ABSOLUTE_ABICALLS.
6756         (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
6757         (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
6758         (mips_restore_gp): Do nothing if the current function doesn't use
6759         a global pointer.
6760         (mips_expand_prologue): Only save $gp if the current function uses it.
6761         Use a normal move for TARGET_ABICALLS_PIC0.
6762         (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
6763
6764 2008-08-17  Richard Sandiford  <rdsandiford@googlemail.com>
6765
6766         * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
6767         of function when handling GLOBAL_POINTER_REGNUM.
6768
6769 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
6770
6771         PR ada/20548
6772         * common.opt (-fstack-check): Do not declare the variable here.
6773         (-fstack-check=): New option variant.
6774         * doc/invoke.texi (Code Gen Options): Document it.
6775         * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
6776         (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
6777         (STACK_CHECK_STATIC_BUILTIN): New macro.
6778         * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
6779         * opts.c: Include expr.h.
6780         (common_handle_option) <OPT_fold_stack_check_>: New case.
6781         <OPT_fstack_check>: Likewise.
6782         * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
6783         consistently in the test for variable-sized types.  Adjust for
6784         new behaviour of flag_stack_check.
6785         * explow.c: Include except.h.
6786         (allocate_dynamic_stack_space): Do not take into account
6787         STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
6788         * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
6789         for variable-sized parameters.  Treat all parameters whose size is
6790         greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
6791         stack checking is enabled.
6792         * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
6793         size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
6794         if generic stack checking is enabled.
6795         (expand_function_end): Adjust for new behaviour of flag_stack_check.
6796         * reload1.c (reload): Likewise.
6797         * stmt.c (expand_decl): Assert that all automatic variables have
6798         fixed size at this point and remove dead code.
6799         * flags.h (stack_check_type): New enumeration type.
6800         (flag_stack_check): Declare.
6801         * toplev.c (flag_stack_check): New global variable.
6802         * Makefile.in (opts.o): Add dependency on EXPR_H.
6803         (explow.o): Add dependency on except.h.
6804
6805 2008-08-16  Andy Hutchinson  <hutchinsonandy@aim.com>
6806
6807         * config/avr/avr.c (avr_override_options): Reduce value of
6808         PARAM_INLINE_CALL_COST.
6809
6810 2008-08-15  Eric Botcazou  <ebotcazou@adacore.com>
6811
6812         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
6813         to BLKmode, try to fetch an inner memory reference.  Use 'mode' in
6814         lieu of TYPE_MODE (type) throughout.
6815
6816 2008-08-15  Joseph Myers  <joseph@codesourcery.com>
6817
6818         * config/arm/arm.c (add_minipool_backward_ref): Check for
6819         8-byte-aligned entries in second case of forcing insertion after a
6820         particular entry.  Change third case to avoid inserting
6821         non-8-byte-aligned entries before 8-byte-aligned ones.
6822
6823 2008-08-15  Richard Guenther  <rguenther@suse.de>
6824
6825         * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
6826         strip components for unknown size accesses.
6827
6828 2008-08-15  Wolfgang Gellerich  <gellerich@de.ibm.com>
6829
6830         * config/s390/2097.md New file.
6831         * config/s390/s390.md ("z10prop" attribute): Define none,
6832         z10_super, z10_super_E1, z10_super_A1, z10_super_c,
6833         z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
6834         z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
6835         possible values and apply them to insns as appropriate.
6836         ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
6837         ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
6838         fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
6839         fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible values.
6840         ("bfp" mode attribute): Removed.  Every occurence replaced
6841         with <mode>.
6842         * config/s390/s390.c (struct "z10_cost"): Updated entries.
6843         * config/s390/2084.md (insn_reservation "x_itof"): Updated
6844         type attribute.
6845
6846 2008-08-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6847
6848         PR c/28152
6849         * c-parser.c (c_lex_one_token): Do not store the canonical spelling
6850         for keywords.
6851
6852 2008-08-14  Dorit Nuzman  <dorit@il.ibm.com>
6853
6854         * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
6855         additional argument. Support reduction when duplication is needed due
6856         to data-types of different sizes in the loop.
6857         (get_initial_def_for_induction): Fix printout.
6858         (vect_get_vec_def_for_stmt_copy): Support case where the
6859         vec_stmt_for_operand is a phi node.
6860         (vectorizable_reduction): Support reduction when duplication is needed
6861         due to data-types of different sizes in the loop.
6862         (vectorizable_call): Remove restriction to not vectorize in case we
6863         have data-types of different sizes in the loop.
6864         (vectorizable_conversion): Likewise.
6865         (vectorizable_operation): Likewise.
6866         (vectorizable_type_demotion): Likewise.
6867         (vectorizable_type_promotion): Likewise.
6868         (vectorizable_induction): Add restriction to not vectorize in case
6869         we have data-types of different sizes in the loop.
6870
6871 2008-08-14  Christophe Saout  <christophe@saout.de>
6872             Uros Bizjak  <ubizjak@gmail.com>
6873
6874         PR target/37101
6875         * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
6876         (*vec_concatv2di_rex64_sse4_1): Ditto.
6877         (*vec_concatv2di_rex64_sse): Ditto.
6878
6879 2008-08-14  Jakub Jelinek  <jakub@redhat.com>
6880
6881         PR middle-end/37103
6882         * fold-const.c (fold_widened_comparison): Do not allow
6883         sign changes that change the result even if shorter type
6884         is wider than arg1_unw's type.
6885
6886 2008-08-13  Kazu Hirata  <kazu@codesourcery.com>
6887
6888         * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
6889         Skip if the multilib testing specifies -march that does not
6890         agree with the one specified in the testcase.
6891
6892 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
6893
6894         * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
6895         zero extend SImode values being converted to TFmode before passing
6896         to libcalls.
6897
6898 2008-08-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6899
6900         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
6901         __PPU__ when targeting the Cell/B.E. PPU processor.
6902
6903 2008-08-13  Eric Botcazou  <ebotcazou@adacore.com>
6904
6905         * gimple.h (gimple_call_set_chain): Accept SSA variables.
6906         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
6907         Rematerialize the static chain, if any.
6908         * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
6909         static chain.
6910
6911 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
6912
6913         * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
6914         (new_loc_descr): Likewise.
6915         (add_loc_descr): Likewise.
6916         (size_of_loc_descr): Likewise.
6917         (size_of_locs): Likewise.
6918         (output_loc_operands): Likewise.
6919         (output_loc_sequence): Likewise.
6920         (new_reg_loc_descr): New.
6921         (build_cfa_loc): Use it.
6922         (build_cfa_aligned_loc): Likewise.
6923         (one_reg_loc_descriptor): Likewise.
6924         (based_loc_descr): Likewise.
6925
6926 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6927
6928         PR 30551
6929         * doc/invoke.texi (Wmain): Update.
6930         * c-decl.c (start_decl): warn_main is only 0 or 1.
6931         (start_function): Likewise. Fix formatting.
6932         (finish_function): Delete redundant warning.
6933         * c.opt (Wmain): Add Var(warn_main) and Init(-1).
6934         * c-opts (c_common_handle_option): -Wall only has effect if
6935         warn_main is uninitialized. OPT_Wmain is automatically
6936         handled. -pedantic also enables Wmain.
6937         (c_common_post_options): Handle all logic for Wmain here.
6938         * c-common.c (warn_main): Delete.
6939         (check_main_parameter_types): Make pedwarns conditional on OPT_Wmain.
6940         * c-common.h (warn_main): Delete.
6941
6942 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
6943
6944         PR middle-end/36701
6945         * expr.c (emit_group_store): Allocate stack temp with the
6946         largest alignment when copying from register to stack.
6947
6948 2008-08-13  Richard Guenther  <rguenther@suse.de>
6949
6950         * tree.h (maybe_fold_offset_to_address): Declare.
6951         * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
6952         (ccp_fold): Handle pointer conversions the same as fold_stmt.
6953         Likewise for POINTER_PLUS_EXPR.
6954         (maybe_fold_offset_to_reference): Enable disabled code.
6955         (maybe_fold_offset_to_address): New function.
6956         (fold_stmt_r): Use it.
6957         (fold_gimple_assign): Likewise.
6958         * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
6959         (gimplify_expr): Likewise.
6960
6961 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6962
6963         * toplev.h (pedwarn_at): Fix declaration.
6964
6965 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
6966
6967         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
6968         LINK_SPEC): Use %R in -Y P argument.
6969
6970 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6971
6972         PR c/15236
6973         * diagnostic.c (pedwarn_at): New.
6974         * toplev.h (pedwarn_at): Declare.
6975         * c-tree.h (build_enumerator): Update declaration.
6976         * c-decl.c (finish_enum): Update comment.
6977         (build_enumerator): Take a location parameter. Give a pedwarn but do
6978         not perform any conversion.
6979         * c-parser.c (c_parser_enum_specifier): Set correct location for
6980         enumerator.
6981
6982 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6983
6984         PR 35635
6985         * c-common.c (conversion_warning): Use a switch. Ignore boolean
6986         expressions except for conversions to signed:1 bitfields. Handle
6987         COND_EXPR with constant operands.
6988
6989 2008-08-13  Richard Guenther  <rguenther@suse.de>
6990
6991         PR tree-optimization/15255
6992         * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
6993         (struct oecount_s): New struct and VEC types.
6994         (cvec): New global.
6995         (oecount_hash): New function.
6996         (oecount_eq): Likewise.
6997         (oecount_cmp): Likewise.
6998         (zero_one_operation): New function.
6999         (build_and_add_sum): Likewise.
7000         (undistribute_ops_list): Perform un-distribution of multiplication
7001         and division on the chain of summands.
7002         (should_break_up_subtract): Also break up subtracts for factors.
7003         (reassociate_bb): Delete dead visited statements.
7004         Call undistribute_ops_list.  Re-sort and optimize if it did something.
7005         * passes.c (init_optimization_passes): Move DSE before
7006         reassociation.
7007         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
7008         PHI nodes.
7009
7010 2008-08-12  Janis Johnson  <janis187@us.ibm.com>
7011
7012         * doc/invoke.texi (-fipa-pta): Say the option is experimental.
7013
7014         * doc/invoke.texi: Revert unintended checkin.
7015
7016 2008-08-12  Nathan Froyd  <froydnj@codesourcery.com>
7017
7018         PR libgomp/26165
7019         * gcc.c (include_spec_function): Tweak call to find_a_file.
7020
7021 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
7022
7023         PR middle-end/37014
7024         * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
7025         and TRUTH_ORIF_EXPR.
7026         * dojump.c (do_jump): Likewise.
7027
7028         PR tree-optimization/37084
7029         * tree-inline.c (copy_bb): Call gimple_regimplify_operands
7030         if id->regimplify, don't assume stmt is a cast assignment.
7031
7032 2008-08-12  Anatoly Sokolov  <aesok@post.ru>
7033
7034         * final.c (final_scan_insn): Use app_enable/app_disable functions.
7035
7036 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7037
7038         PR bootstrap/37097
7039         * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
7040         by last change.
7041
7042 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7043
7044         * defaults.h (TARGET_FLOAT_FORMAT): Remove.
7045         (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
7046
7047         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
7048         * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
7049         * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
7050         * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
7051         * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
7052
7053         * doc/tm.texi (Storage Layout): Remove documentation for
7054         TARGET_FLOAT_FORMAT.
7055
7056         * simplify-rtx.c (simplify_binary_operation_1): Replace
7057         TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
7058
7059 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7060
7061         * real.h (struct real_format): New member has_sign_dependent_rounding.
7062         * real.c (ieee_single_format, mips_single_format, motorola_single_format,
7063         spu_single_format, ieee_double_format, mips_double_format,
7064         motorola_double_format, ieee_extended_motorola_format,
7065         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
7066         ieee_extended_intel_96_round_53_format, ibm_extended_format,
7067         mips_extended_format, ieee_quad_format, mips_quad_format,
7068         vax_f_format, vax_d_format, vax_g_format): Initialize it.
7069         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
7070
7071         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
7072         MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
7073         * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
7074         MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
7075         (ROUND_TOWARDS_ZERO): Likewise.
7076
7077         * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
7078         (FLOAT_MODE_FORMAT): New macro.
7079         (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
7080         (MODE_COMPOSITE_P): ... this new macro.
7081         (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
7082         MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
7083         * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
7084
7085         * flags.h: Include "real.h".
7086
7087         * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
7088         REAL_MODE_FORMAT_COMPOSITE_P.
7089         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
7090
7091         * doc/tm.texi (Storage Layout): Remove documentation of
7092         MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
7093         MODE_HAS_SIGN_DEPENDENT_ROUNDING.  Update documentation of
7094         ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
7095         they only apply to libgcc2.a.
7096
7097 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7098
7099         * config/spu/float_disf.c: New file.
7100         * config/spu/float_unsdisf.c: New file.
7101         * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
7102         (LIB2FUNCS_EXCLUDE): Define.
7103
7104 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7105             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
7106
7107         * real.h (struct real_format): New member round_towards_zero.
7108         * real.c (round_for_format): Respect fmt->round_towards_zero.
7109         (ieee_single_format, mips_single_format, motorola_single_format,
7110         spu_single_format, ieee_double_format, mips_double_format,
7111         motorola_double_format, ieee_extended_motorola_format,
7112         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
7113         ieee_extended_intel_96_round_53_format, ibm_extended_format,
7114         mips_extended_format, ieee_quad_format, mips_quad_format,
7115         vax_f_format, vax_d_format, vax_g_format): Initialize it.
7116         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
7117
7118         * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
7119         real_format to choose rounding mode when calling MPFR functions.
7120         (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
7121         (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
7122
7123         * real.h (real_to_decimal_for_mode): Add prototype.
7124         * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
7125         Respect target rounding mode when generating decimal representation.
7126         (real_to_decimal): New stub for backwards compatibility.
7127         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
7128         real_to_decimal_for_mode instead of real_to_decimal.
7129
7130         * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
7131
7132 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7133             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
7134
7135         * real.c (spu_single_format): New variable.
7136         * real.h (spu_single_format): Declare.
7137
7138         * config/spu/spu.c (spu_override_options): Install SFmode format.
7139         (spu_split_immediate): Use integer mode to operate on pieces of
7140         floating-point values in all cases.
7141
7142         * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
7143         ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
7144         ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
7145
7146 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7147
7148         * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
7149
7150 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7151
7152         * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
7153
7154 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
7155
7156         PR c++/36688
7157         * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
7158         on the VAR_DECL instead of TYPE_READONLY on its type.
7159
7160 2008-08-12  Ira Rosen  <irar@il.ibm.com>
7161
7162         * tree-vectorizer.c: Depend on langhooks.h.
7163         (supportable_widening_operation): Add two arguments. Support double
7164         type conversions.
7165         (supportable_narrowing_operation): Likewise.
7166         * tree-vectorizer.h (supportable_widening_operation): Add two
7167         arguments.
7168         (supportable_narrowing_operation): Likewise.
7169         * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
7170         supportable_widening_operation with correct arguments.
7171         * tree-vect-transform.c (vectorizable_conversion): Likewise.
7172         (vectorizable_type_demotion): Support double type conversions.
7173         (vectorizable_type_promotion): Likewise.
7174         * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
7175
7176 2008-08-11  Michael Matz  <matz@suse.de>
7177
7178         * i386/i386.c (override_options): Move initialisation from
7179         flag_schedule_insns_after_reload to here from ...
7180         (optimization_options): ... here.
7181
7182 2008-08-11  Jakub Jelinek  <jakub@redhat.com>
7183
7184         PR rtl-optimization/36998
7185         * dwarf2out.c (compute_barrier_args_size_1,
7186         compute_barrier_args_size): Temporarily remove assertions.
7187
7188 2008-08-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7189
7190         PR middle-end/20644
7191         * tree-ssa.c (struct walk_data): Add new flag
7192         warn_possibly_uninitialized.
7193         (warn_uninitialized_var): Use it.
7194         (warn_uninitialized_vars): New.
7195         (execute_early_warn_uninitialized): Call it.
7196         (execute_late_warn_uninitialized): Likewise.
7197
7198 2008-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7199
7200         PR middle-end/36238
7201         * reload1.c (gen_reload): Guard calls to get_secondary_mem
7202         for memory subregs.
7203
7204 2008-08-09  Jan Hubicka  <jh@suse.cz>
7205
7206         PR target/37055
7207         * optabs.c (maybe_emit_unop_insn): Remove produced code if
7208         expansion failed.
7209         (expand_fix): Be prepared for expansion to fail.
7210         (expand_sfix_optab): Remove instructions if expansion failed.
7211
7212 2008-08-09  Anatoly Sokolov  <aesok@post.ru>
7213
7214         * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
7215         avr31 architecture.
7216         * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
7217         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
7218
7219 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
7220
7221         * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
7222         mips/t-libgcc-mips16 to tmake_file.
7223         * config/mips/mips-protos.h (mips_call_type): New enum.
7224         (mips_pic_base_register, mips_got_load): Declare.
7225         (mips_restore_gp): Take an rtx argument.
7226         (mips_use_pic_fn_addr_reg_p): Declare.
7227         (mips_expand_call): Replace the sibcall_p argument with
7228         a mips_call_type argument.  Add a lazy_p parameter.
7229         (mips_split_call): Declare.
7230         * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
7231         (MIPS16_PIC_TEMP): Likewise.
7232         (reg_class): Delete M16_NA_REGS.
7233         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
7234         (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
7235         (mips_split_hi_p): Declare.
7236         * config/mips/mips.c (mips_split_hi_p): New array.
7237         (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
7238         (mips_got_symbol_type_p): New function.
7239         (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
7240         (mips16_stub_function_p): New function.
7241         (mips16_local_function_p): Likewise.
7242         (mips_use_pic_fn_addr_reg_p): Likewise.
7243         (mips_cannot_force_const_mem): Return false for HIGHs.
7244         Extend CONST_INT and symbolic handling to MIPS16, using
7245         mips_symbol_insns to check that the base symbol type is a
7246         legitimate constant.  Reject GOT-based constants if
7247         TARGET_MIPS16_PCREL_LOADS.
7248         (mips_const_insns): Check targetm.cannot_force_const_mem when
7249         decomposing a symbolic base and a large offset.
7250         (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
7251         When calling a function that needs $25 from MIPS16 code,
7252         move the target address into $25 separately and add a USE
7253         to the call insn.
7254         (mips16_gp_pseudo_reg): Insert the initializer immediately
7255         before the first real insn.
7256         (mips_pic_base_register, mips_got_load): New functions.
7257         (mips_split_symbol): Generalize the name of the LO_SUM_OUT
7258         parameter to LOW_OUT.  Say that it can be any valid SET_SRC
7259         when splitting a load-address operation.  Split SYMBOL_GOT_DISP
7260         constants and highs of SYMBOL_GOT_PAGE_OFST constants.
7261         (mips_call_tls_get_addr): Update the call to mips_expand_call,
7262         also passing NULL_RTX rather than const0_rtx as the aux argument.
7263         (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
7264         instead of TARGET_EXPLICIT_RELOCS.
7265         (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
7266         (mips_load_call_address): Replace the sibcall_p argument with
7267         a mips_call_type argument.  Use mips_got_load.
7268         (mips16_local_alias): New structure.
7269         (mips16_local_aliases): New variable.
7270         (mips16_local_aliases_hash): New function.
7271         (mips16_local_aliases_eq): Likewise.
7272         (mips16_local_alias): Likewise.
7273         (mips16_stub_function): Likewise.
7274         (mips16_build_function_stub): Create a local alias for the target
7275         function.  Handle TARGET_ABICALLS.  For PIC abicalls, emit a
7276         .cpload directive and an R_MIPS_NONE relocation for the target
7277         function, then load the alias rather than the function itself.
7278         Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
7279         (mips16_copy_fpr_return_value): Use mips16_stub_function and
7280         mips_expand_call.  Set SYMBOL_REF_BIND_NOW on the symbol.
7281         (mips16_build_call_stub): Replace the FN parameter with an
7282         FN_PTR parameter.  Force the address into a register if it
7283         isn't a call_insn_operand; don't rely on the caller to do this.
7284         If a call to a locally-defined and locally-binding MIPS16
7285         function must be made indirectly, redirect the call to the
7286         function's local alias.  Use mips16_stub_function_p,
7287         mips16_stub_function, mips_expand_call and use_reg.
7288         Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
7289         Use explicit %hi and %lo accesses where possible.
7290         Use MIPS_CALL to generate the correct code form of a
7291         jal instruction.  Add clobbers of $18 instead of uses.
7292         Update the call to mips_emit_call_insn.
7293         (mips_expand_call): Replace the SIBCALL_P argument with a
7294         mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
7295         Take a LAZY_P parameter.  Call mips16_build_call_stub first,
7296         allowing it to modify the call address.  Update the calls to
7297         mips_load_call_address and mips_emit_call_insn.
7298         (mips_split_call): New function.
7299         (mips_init_relocs): Clear mips_split_hi_p.  Only use %gp_rel if
7300         !TARGET_MIPS16.  Split SYMBOL_GOT_DISP, and the high parts of
7301         SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
7302         (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
7303         (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
7304         if TARGET_MIPS16.
7305         (mips_cprestore_slot): New function.
7306         (mips_restore_gp): Take a TEMP parameter.  Handle TARGET_MIPS16
7307         and use mips_cprestore_slot.
7308         (mips_output_function_prologue): Handle TARGET_MIPS16 for
7309         LOADGP_OLDABI.
7310         (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
7311         then use a copygp_mips16 instruction to set up $28.
7312         (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
7313         (mips16_lay_out_constants): Call split_all_insns_noflow.
7314         (mips_reorg_process_insns): Explicitly set all_noreorder_p to
7315         false if TARGET_MIPS16.
7316         (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
7317         (mips_output_mi_thunk): Use mips_got_symbol_type_p.  Use the
7318         mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
7319         (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
7320         MIPS16 code.  Allow MIPS16 o32 PIC.
7321         (mips_override_options): Allow MIPS16 o32 PIC.
7322         * config/mips/mips.md: Lower CONST_GP_P moves into register moves
7323         after reload if TARGET_USE_GOT.
7324         (UNSPEC_COPYGP): New constant.
7325         (length): Use a default length of 8 for MIPS16 GOT loads.
7326         (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
7327         (*got_page<mode>): Check mips_split_hi_p.
7328         (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
7329         (unspec_got<mode>, unspec_call<mode>): New expanders.
7330         (load_got<mode>, load_call<mode>): Remove the length attributes.
7331         Use a got attribute instead of a type attribute.
7332         (copygp_mips16): New insn.
7333         (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
7334         (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
7335         (sibcall, sibcall_value, call, call_value): Update the calls
7336         to mips_expand_call.
7337         (call_internal, call_value_internal): Use mips_split_call.
7338         (call_value_multiple_internal): Likewise.
7339         (call_split): Move after call_internal (the insn it is split from).
7340         (call_internal_direct, call_value_internal_direct): Turn into
7341         define_insn_and_splits.  Split if TARGET_SPLIT_CALLS.
7342         (call_direct_split, call_value_direct_split): New patterns.
7343         * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
7344         and use M16_REGS instead of M16_NA_REGS.
7345         * config/mips/predicates.md (const_call_insn_operand): Replace
7346         the TARGET_ABSOLUTE_ABICALLS-based check with a more general
7347         mips_use_pic_fn_addr_reg_p check.
7348         (move_operand): Reject HIGHs if mips_split_hi_p.
7349         * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
7350         (__mips16_floatunsisf): Inline __mips16_floatsisf.
7351         (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
7352         * config/mips/libgcc-mips16.ver: New file.
7353         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
7354         $(srcdir)/config/mips/libgcc-mips16.ver.
7355
7356 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
7357
7358         * config/mips/mips.c (mips_unspec_address_offset): Move earlier
7359         in file.
7360         (mips_unspec_address, mips_unspec_offset_high): Likewise.
7361         (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
7362         (mips16_cfun_returns_in_fpr_p): Likewise.
7363
7364 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
7365
7366         * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
7367         * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
7368         rather than 4 to PC.
7369
7370 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
7371
7372         * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
7373         (FUNCTION_PROFILER): Save the static chain pointer into $2
7374         beforehand and restore it aftewards.
7375         (TRAMPOLINE_TEMPLATE): Adjust accordingly.  Load the target
7376         address directly into $25 and call the function through $25;
7377         do not clobber $3.  Pad the DImode version to cover the space
7378         left by the deleted $25 <- $3 move.
7379         (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
7380         the removal of the $25 <- $3 move.
7381         (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
7382         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
7383
7384 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
7385             Daniel Jacobowitz  <dan@codesourcery.com>
7386
7387         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
7388         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
7389         (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
7390         * config/mips/mips.c (mips_start_function_definition): New function.
7391         (mips_end_function_definition): Likewise.
7392         (mips_output_function_prologue): Use mips_start_function_definition.
7393         (mips_output_function_epilogue): Use mips_end_function_definition.
7394         (build_mips16_function_stub): Use mips_start_function_definition
7395         and mips_end_function_definition.
7396         (build_mips16_call_stub): Likewise.
7397
7398 2008-08-09  Richard Guenther  <rguenther@suse.de>
7399
7400         * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
7401         * gimple.h (gimple_call_fn): Adjust comment.
7402         (gimple_call_set_fndecl): New function.
7403         (gimple_call_fndecl): Adjust for GIMPLE_CALL no
7404         longer having bare FUNCTION_DECL operand.
7405         (gimple_call_return_type): Likewise.
7406         * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
7407
7408         * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
7409         (gimple_mod_pow2): Likewise.
7410         (gimple_mod_subtract): Likewise.
7411         (gimple_ic): Likewise.
7412         (gimple_stringop_fixed_value): Likewise.
7413         (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
7414         longer having bare FUNCTION_DECL operand.
7415         * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
7416         * omp-low.c (optimize_omp_library_calls): Likewise.
7417         * cgraphunit.c (update_call_expr): Likewise.
7418         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
7419         (execute_convert_to_rsqrt): Likewise.
7420         * cfgexpand.c (gimple_to_tree): Simplify.
7421         (release_stmt_tree): Fix for GIMPLE_CALL no longer having
7422         bare FUNCTION_DECL operand.
7423         * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
7424         (convert_gimple_call): Use gimple_call_fndecl.
7425         * c-common.c (c_warn_unused_result): Likewise.
7426
7427 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7428
7429         PR c/17880
7430         * c-typeck.c (digest_init): Call verify_sequence_points from here.
7431         (c_finish_return): Likewise.
7432         (c_start_case): Likewise.
7433         * c-common.c (warn_for_collisions_1): Use explicit location in warning.
7434         * c-parser.c (c_parser_condition): New. Call
7435         verify_sequence_points.
7436         (c_parser_paren_condition): Call c_parser_condition.
7437         (c_parser_for_statement): Call c_parser_condition.
7438
7439 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7440
7441         PR 36901
7442         * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.
7443         * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
7444         Moved from diagnostic.h
7445         (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
7446         DK_PERMERROR.
7447         (emit_diagnostic): New.
7448         (warning0, pedwarn0): Delete.
7449         (warning, warning_at, pedwarn, permerror): Return bool.
7450         * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
7451         Moved to diagnostic.c.
7452         (struct diagnostic_context): Use correct type for
7453         classify_diagnostic.
7454         (diagnostic_report_diagnostic): Update declaration.
7455         (emit_diagnostic): Declare.
7456         * errors.c (warning): Return bool.
7457         * errors.h (warning): Update declaration.
7458         * toplev.h (warning0, pedwarn0): Delete.
7459         (warning, warning_at, pedwarn, permerror): Return bool.
7460         * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
7461         * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
7462         inform. Update all calls.
7463         (diagnose_mismatched_decls): Check return value of warning/pedwarn
7464         before giving informative note.
7465         (implicit_decl_warning): Likewise.
7466         * c-typeck.c (build_function_call): Likewise.
7467         * tree-sssa.c (warn_uninit): Likewise.
7468         * builtins.c (gimplify_va_arg_expr): Likewise.
7469
7470 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7471
7472         PR 7651
7473         * doc/invoke.texi (-Wextra): Move warning from here...
7474         (-Wuninitialized): ... to here.
7475
7476 2008-08-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7477
7478         PR 28875
7479         * flags.h (set_Wunused): Delete
7480         * toplev.c (process_options): Handle Wunused flags here.
7481         * opts.c (maybe_warn_unused_parameter): Delete.
7482         (common_handle_option): Replace set_Wunused by warn_unused.
7483         (set_Wextra): Do not handle Wunused-parameter here.
7484         (set_Wunused): Delete.
7485         * c-opts.c (c_common_handle_option): Replace set_Wunused by
7486         warn_unused.
7487         * common.opt (Wunused): Add Var and Init.
7488         (Wunused-function): Likewise.
7489         (Wunused-label): Likewise.
7490         (Wunused-parameter): Likewise.
7491         (Wunused-value): Likewise.
7492         (Wunused-variable): Likewise.
7493
7494 2008-08-08  Peter Bergner  <bergner@vnet.ibm.com>
7495
7496         * doc/invoke.texi: Add cpu_type power7.
7497         * config.in (HAVE_AS_VSX): New.
7498         * config.gcc: Add cpu_type power7.
7499         * configure.ac (HAVE_AS_VSX): Check for assembler support of the
7500         VSX instructions.
7501         * configure: Regenerate.
7502         * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
7503         power5.
7504         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
7505         (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
7506         (EXTRA_SPECS): Add asm_cpu_power7 spec string.
7507
7508 2008-08-08  Dorit Nuzman  <dorit@il.ibm.com>
7509
7510         * tree-vect-transform.c (vectorizable_conversion): Pass the integral
7511         type to vectorize.builtin_conversion.
7512         (vectorizable_conversion): Likewise.
7513         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
7514         integral type as input.
7515         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
7516         FIX_TRUNC_EXPR.
7517         (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
7518         and ALTIVEC_BUILTIN_VCTSXS.
7519         (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
7520         formatting.
7521
7522 2008-08-08  Richard Guenther  <rguenther@suse.de>
7523
7524         * tree-ssa-ccp.c (likely_value): Calls are not all varying.
7525         (surely_varying_stmt_p): Calls are varying only if they are
7526         non-builtin and not indirect or have no result.
7527         (ccp_fold): Re-instantiate code before the tuples merge.
7528
7529 2008-08-08  Richard Guenther  <rguenther@suse.de>
7530
7531         PR tree-optimization/37056
7532         * gimple.h (gimple_assign_rhs_class): New helper function.
7533         * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
7534         unary operations properly.
7535
7536 2008-08-07  Jan Hubicka  <jh@suse.cz>
7537
7538         * i386.h (ix86_size_cost): Declare.
7539         (ix86_cur_cost): New function macro.
7540         * i386.md (peepholes expanding size and splitters): Predicate by
7541         optimize_insn_for_speed_p.
7542         (peepholes reduce size and splitters): Predicate by
7543         optimize_insn_for_size_p.
7544         * i386.c (ix86_size_cost): Rename from ...
7545         (size_cost): This one.
7546         (override_options): Update.
7547         (decide_alg): Likewise.
7548         (ix86_expand_clear): Use RTL profile.
7549         (ix86_pad_returns): Use RTL profile.
7550
7551 2008-08-07  Jan Hubicka  <jh@suse.cz>
7552
7553         * recog.c (split_all_insns): Set RTL profile
7554         (peephole2_optimize): Likewise.
7555         * function.c (thread_prologue_and_epilogue_insns): Likewise.
7556         * combine.c (combine_instructions): Likewise.
7557
7558 2008-08-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7559
7560         * c-common.c (c_common_reswords): Also warn about keyword "bool".
7561
7562 2008-08-07  Bob Wilson  <bob.wilson@acm.org>
7563
7564         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
7565         value in a6 after the set_frame_ptr insn.
7566
7567 2008-08-07  Richard Henderson  <rth@redhat.com>
7568
7569         PR debug/37033
7570         * gcc.c (cpp_options): Pass along -g*.
7571
7572 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
7573
7574         * config/arm/arm.c (output_move_neon): Update comment describing
7575         big-endian vector layout.
7576         (arm_assemble_integer): Do not handle big-endian NEON vectors
7577         specially.
7578         * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
7579         neon_vget_lane<mode>_sext_internal,
7580         neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
7581         element indices for big-endian.
7582
7583 2008-08-07  Richard Henderson  <rth@redhat.com>
7584
7585         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
7586         * configure, config.in: Rebuild.
7587         * debug.h (dwarf2out_do_cfi_asm): Declare.
7588         * c-cppbuiltin.c (c_cpp_builtins): Use it.
7589         * dwarf2out.c (dwarf2out_do_cfi_asm): New.
7590         (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
7591         dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
7592
7593 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
7594
7595         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
7596         movv2si_internal): Combine into mov<mode>_internal.
7597         (movv2si_internal_2): Remove.
7598
7599 2008-08-07  Jan Hubicka  <jh@suse.cz>
7600
7601         PR target/37048
7602         * i386.md (single stringop patterns): Enable unconditionally.
7603
7604 2008-08-07  H.J. Lu  <hongjiu.lu@intel.com>
7605
7606         PR target/36992
7607         * config/i386/emmintrin.h (_mm_move_epi64): Use __builtin_ia32_movq128.
7608
7609         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
7610         (bdesc_args): Add IX86_BUILTIN_MOVQ128.
7611
7612         * config/i386/sse.md (sse2_movq128): New.
7613
7614         * doc/extend.texi: Document __builtin_ia32_movq128.
7615
7616 2008-08-07  Richard Guenther  <rguenther@suse.de>
7617
7618         PR middle-end/37042
7619         * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
7620         pointers can access anything.
7621
7622 2008-08-06  Jan Hubicka  <jh@suse.cz>
7623
7624         * optabs.c (emit_unop_insn): Break out to ...
7625         (maybe_emit_unop_insn): ... this one.
7626         (expand_sfix_optab): Use maybe variant.
7627         * optabs.h (maybe_emit_unop_insn): Declare.
7628
7629         * i386.md (mov0 patterns): Enable by default.
7630         (FP conversion expanders): Disable expansion of code expanding
7631         sequences when instruction should be optimized for size.
7632         (single strinop patterns): Enable when optimizing for size.
7633         (string expanders): Disable expanding of code expanding sequences
7634         when optimizning instruction for size.
7635         * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
7636         per BB basis.
7637         (ix86_fp_comparison_sahf_cost): Likewise.
7638         (ix86_expand_branch): Likewise.
7639         (ix86_expand_ashl_const): Likewise.
7640         (ix86_split_ashl): Likewise.
7641         (ix86_expand_strlen): Likewise.
7642         (ix86_emit_fp_unordered_jump): Likewie.
7643
7644 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7645
7646         * c-common.c: Fix typo.
7647         (c_common_reswords): Activate more C++ keyword warnings.
7648
7649         * matrix-reorg.c (compute_offset): Avoid C++ keywords.
7650
7651 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7652
7653         PR 26785
7654         * diagnostic.c (permerror_at): New.
7655         * toplev.h (permerror_at): Declare.
7656
7657 2008-08-06  Victor Kaplansky  <victork@il.ibm.com>
7658             Ira Rosen  <irar@il.ibm.com>
7659
7660         * tree-vect-transform.c (vect_model_simple_cost): Return
7661         immediately if stmt is pure SLP.
7662         (vect_model_store_cost): Ditto.
7663         (vect_model_load_cost): Ditto.
7664         (vectorizable_store): Remove PURE_SLP check before call
7665         to vect_model_store_cost.
7666         (vect_model_store_cost): When checking whether stmt describe
7667         strided access, add a check that it is not slp_node.
7668
7669 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7670
7671         PR 8715
7672         * c-common.c (warn_for_sign_compare): New. Handle separately the
7673         case that 'constant' is zero.
7674         * c-typeck.c (build_binary_op): Move code to c-common.c
7675
7676 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7677
7678         * config/alpha/alpha.c (alpha_preferred_reload_class,
7679         alpha_secondary_reload, alpha_emit_set_const_1, function_value,
7680         alpha_output_mi_thunk_osf): Avoid C++ keywords.
7681         * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
7682         * config/arm/arm.md: Likewise.
7683         * config/avr/avr-protos.h (preferred_reload_class,
7684         test_hard_reg_class, avr_simplify_comparison_p,
7685         out_shift_with_cnt, class_max_nregs): Likewise.
7686         * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
7687         output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
7688         preferred_reload_class, test_hard_reg_class): Likewise.
7689         * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
7690         bfin_memory_move_cost, bfin_secondary_reload,
7691         bfin_output_mi_thunk): Likewise.
7692         * config/crx/crx.c (crx_secondary_reload_class,
7693         crx_memory_move_cost): Likewise.
7694         * config/frv/frv-protos.h (frv_secondary_reload_class,
7695         frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
7696         * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
7697         frv_secondary_reload_class, frv_class_likely_spilled_p,
7698         frv_class_max_nregs): Likewise.
7699         * config/h8300/h8300.c (h8300_classify_operand,
7700         h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
7701         Likewise.
7702         * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
7703         * config/ia64/ia64.c (ia64_preferred_reload_class,
7704         ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
7705         * config/iq2000/iq2000.c (gen_int_relational): Likewise.
7706         * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
7707         Likewise.
7708         * config/m68hc11/m68hc11.c (preferred_reload_class,
7709         m68hc11_memory_move_cost): Likewise.
7710         * config/mcore/mcore.c (mcore_secondary_reload_class,
7711         mcore_reload_class): Likewise.
7712         * config/mips/mips.c (mips_hard_regno_mode_ok_p,
7713         mips_class_max_nregs, mips_cannot_change_mode_class,
7714         mips_preferred_reload_class, mips_secondary_reload_class,
7715         mips_output_mi_thunk): Likewise.
7716         * config/mmix/mmix.c (mmix_preferred_reload_class,
7717         mmix_preferred_output_reload_class, mmix_secondary_reload_class):
7718         Likewise.
7719         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
7720         Likewise.
7721         * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
7722         pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
7723         * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
7724         * config/rs6000/rs6000.c (paired_expand_vector_init,
7725         rs6000_secondary_reload_class, rs6000_output_mi_thunk,
7726         compare_section_name, rs6000_memory_move_cost): Likewise.
7727         * config/s390/s390.c (s390_emit_compare_and_swap,
7728         s390_preferred_reload_class, s390_secondary_reload,
7729         legitimize_pic_address, legitimize_tls_address,
7730         legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
7731         s390_class_max_nregs): Likewise.
7732         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
7733         * config/s390/s390.md: Likewise.
7734         * config/score/score-protos.h (score_secondary_reload_class,
7735         score_preferred_reload_class): Likewise.
7736         * config/score/score.c (score_preferred_reload_class,
7737         score_secondary_reload_class): Likewise.
7738         * config/score/score3.c (score3_output_mi_thunk,
7739         score3_preferred_reload_class, score3_secondary_reload_class,
7740         score3_hard_regno_mode_ok): Likewise.
7741         * config/score/score3.h (score3_preferred_reload_class,
7742         score3_secondary_reload_class): Likewise.
7743         * config/score/score7.c (score7_output_mi_thunk,
7744         score7_preferred_reload_class, score7_secondary_reload_class,
7745         score7_hard_regno_mode_ok): Likewise.
7746         * config/score/score7.h (score7_preferred_reload_class,
7747         score7_secondary_reload_class): Likewise.
7748         * config/sh/sh.c (prepare_move_operands, output_far_jump,
7749         output_branchy_insn, add_constant, gen_block_redirect,
7750         sh_insn_length_adjustment, sh_cannot_change_mode_class,
7751         sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload): Likewise.
7752         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7753         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
7754         xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
7755         xstormy16_preferred_reload_class): Likewise.
7756         * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
7757         xtensa_expand_atomic, override_options,
7758         xtensa_preferred_reload_class, xtensa_secondary_reload_class):
7759         Likewise.
7760         * reorg.c (try_merge_delay_insns): Likewise.
7761         * tree.c (merge_dllimport_decl_attributes): Likewise.
7762
7763         * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
7764
7765 2008-08-06  Michael Matz  <matz@suse.de>
7766
7767         * Makefile.in (write_entries_to_file): Quote words.
7768         * gengtype.c: (read_input_line): Skip over leading white-space.
7769
7770 2008-08-06  Marc Gauthier  <marc@tensilica.com>
7771
7772         * config.gcc: Match more processor names for Xtensa.
7773         * configure.ac: Likewise.
7774         * doc/install.texi (Specific): Likewise.
7775         * configure: Regenerate.
7776
7777 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7778
7779         * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
7780         * calls.c (avoid_likely_spilled_reg): Likewise.
7781         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
7782         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
7783         * config/i386/i386.c (ix86_expand_special_args_builtin,
7784         ix86_secondary_reload): Likewise.
7785         * except.c (struct eh_region, gen_eh_region_catch,
7786         remove_unreachable_regions, duplicate_eh_regions,
7787         assign_filter_values, build_post_landing_pads,
7788         sjlj_find_directly_reachable_regions, remove_eh_handler,
7789         reachable_next_level, foreach_reachable_handler,
7790         can_throw_internal_1, can_throw_external_1,
7791         collect_one_action_chain): Likewise.
7792         * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
7793         * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
7794         * function.c (update_temp_slot_address, instantiate_new_reg,
7795         instantiate_virtual_regs_in_rtx,
7796         instantiate_virtual_regs_in_insn): Likewise.
7797         * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
7798         * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
7799         gimplify_cleanup_point_expr): Likewise.
7800         * ipa-cp.c (ipcp_lattice_changed): Likewise.
7801         * passes.c (next_pass_1): Likewise.
7802         * print-tree.c (print_node_brief, print_node): Likewise.
7803         * profile.c (branch_prob): Likewise.
7804         * tree-dump.c (dump_register): Likewise.
7805         * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
7806         Likewise.
7807         * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
7808         copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
7809         copy_edges_for_bb, copy_cfg_body, copy_tree_r,
7810         copy_arguments_for_versioning, copy_static_chain): Likewise.
7811         * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
7812         add_new_name_mapping, register_new_name_mapping): Likewise.
7813         * tree-mudflap.c (mf_xform_derefs): Likewise.
7814         * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
7815         get_init_expr, combine_chains): Likewise.
7816         * tree-pretty-print.c (dump_generic_node): Likewise.
7817         * tree-ssa-structalias.c (create_variable_info_for): Likewise.
7818         * tree-vrp.c (simplify_cond_using_ranges): Likewise.
7819         * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
7820         * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
7821
7822 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
7823
7824         PR middle-end/37010
7825         * calls.c (expand_call): Use the biggest preferred stack
7826         boundary.
7827
7828 2008-08-06  Michael Matz  <matz@suse.de>
7829
7830         PR target/36613
7831         * reload.c (push_reload): Merge in,out,in_reg,out_reg members
7832         for reused reload, instead of overwriting them.
7833
7834 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
7835
7836         PR middle-end/37009
7837         * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
7838         for incoming stack boundary.
7839
7840         * function.c (assign_parm_find_entry_rtl): Update
7841         parm_stack_boundary.
7842
7843         * function.h (rtl_data): Add parm_stack_boundary.
7844
7845         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
7846         parm_stack_boundary for incoming stack boundary.
7847
7848 2008-08-06  Joseph Myers  <joseph@codesourcery.com>
7849
7850         * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
7851         for unrepresentable subregs or treat them as equal to other regs
7852         or subregs with the same register number.
7853
7854 2008-08-06  Aldy Hernandez  <aldyh@redhat.com>
7855
7856         PR middle-end/35432
7857         * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
7858         if want_value.
7859
7860 2008-08-06  Jan Hubicka  <jh@suse.cz>
7861
7862         * predict.c (maybe_hot_frequency_p): When profile is absent, all
7863         frequencies might be hot.
7864
7865 2008-08-06  Andreas Krebbel  <krebbel1@de.ibm.com>
7866
7867         * reload.c (find_reloads): Force constants into literal pool
7868         also if they are wrapped in a SUBREG.
7869
7870 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
7871
7872         PR target/35659
7873         * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
7874         * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
7875         Don't allow predicated instructions for data speculation.
7876         * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
7877         declaration.
7878
7879 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
7880
7881         * haifa-sched.c (extend_global): Split to extend_global_data and
7882         extend_region_data.  Update all uses.
7883         (extend_all): Rename to extend_block_data.
7884
7885 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
7886
7887         * sched-rgn.c (new_ready): Check if instruction can be
7888         speculatively scheduled before attempting speculation.
7889         (debug_rgn_dependencies): Remove wrongful assert.
7890
7891 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
7892
7893         * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
7894
7895 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
7896
7897         * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
7898         (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
7899         va_size, and type_size.
7900
7901 2008-08-04  Jason Merrill  <jason@redhat.com>
7902
7903         PR c++/37016
7904         * tree-ssa.c (useless_type_conversion_p_1): Call langhook
7905         if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
7906
7907 2008-08-05  Richard Henderson  <rth@redhat.com>
7908
7909         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
7910         * configure: Rebuild.
7911
7912 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7913
7914         PR tree-opt/37024
7915         * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
7916         instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
7917         is a conversion.
7918
7919 2008-08-05  Richard Henderson  <rth@redhat.com>
7920
7921         * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
7922         * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
7923         * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
7924         * common.opt (fdwarf2-cfi-asm): New.
7925         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
7926         * config.in, configure: Rebuild.
7927         * dwarf2asm.c (dw2_asm_output_data_raw): New.
7928         (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw):
7929         New.
7930         (dw2_force_const_mem): Externalize.
7931         * dwarf2asm.h: Update.
7932         * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
7933         generate a real label.
7934         (output_cfi_directive): New.
7935         (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
7936         (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
7937         (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
7938         and .cfi_lsda.
7939         (dwarf2out_end_epilogue): Emit .cfi_endproc.
7940         (output_loc_operands_raw, output_loc_sequence_raw): New.
7941         (output_cfa_loc_raw): New.
7942
7943 2008-08-05  Paul Brook  <paul@codesourcery.com>
7944
7945         * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
7946         * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
7947         (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
7948         (arm_file_start): Add FPUTYPE_VFP3D16.  Rename vfp3 to vfpv3.
7949         * config/arm/arm.h (TARGET_VFPD32): Define.
7950         (TARGET_VFP3): Use TARGET_VFPD32.
7951         (fputype): Add FPUTYPE_VFP3D16.
7952         (LAST_VFP_REGNUM): Use TARGET_VFPD32.
7953         * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
7954         * config/arm/arm-cores.def: Add cortex-r4f.
7955         * config/arm/arm-tune.md: Regenerate.
7956
7957 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7958
7959         * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
7960         Reword some comments throughout the file.
7961
7962         (MFC_MIN_DMA_LIST_ELEMENTS): New define.
7963         (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
7964         (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of
7965         MFC_MIN_DMA_LIST_ELEMENTS.
7966         (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of
7967         MFC_MAX_DMA_LIST_ELEMENTS.
7968
7969         (MFC_START_ENABLE): Remove PPU-only define.
7970         (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
7971         (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
7972
7973         (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
7974         (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
7975         (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
7976         (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
7977         (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
7978         (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
7979         (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
7980
7981         (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
7982         (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
7983         (mfc_sdcrt, mfc_sdcrtst): Likewise.
7984         (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
7985
7986         (spu_read_machine_status): Fix typo.
7987
7988 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7989
7990         * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
7991         SUBREG of multi-word hard register.
7992         * config/spu/spu.c (valid_subreg): Likewise.
7993         (adjust_operand): Handle SUBREGs of multi-word hard registers.
7994
7995 2008-08-04  Richard Guenther  <rguenther@suse.de>
7996
7997         * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
7998         the candidate with the stripped base if that base is different
7999         from the original base even for offset zero.
8000
8001 2008-08-04  Richard Guenther  <rguenther@suse.de>
8002
8003         PR middle-end/36691
8004         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
8005         check for no_overflow.
8006
8007 2008-08-04  Richard Guenther  <rguenther@suse.de>
8008
8009         * tree-vect-transform.c (vectorizable_call): Fix tuplification.
8010
8011 2008-08-04  Paul Brook  <paul@codesourcery.com>
8012
8013         * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
8014         (arm_order_regs_for_local_alloc): New function.
8015         * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
8016         prototype.
8017         * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
8018
8019 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
8020
8021         PR target/37012
8022         * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
8023         instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
8024         (ix86_expand_epilogue): Likewise.
8025
8026 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
8027
8028         * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
8029         in comments.
8030
8031 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
8032
8033         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
8034         to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
8035         (*movv2sf_internal_rex64): Ditto.
8036
8037 2008-08-03  Jan Hubicka  <jh@suse.cz>
8038
8039         * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
8040         expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
8041         * expmed.c (expand_smod_pow2): Likewise.
8042
8043 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
8044
8045         PR target/36992
8046         * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
8047         alternative 0 of operand 1.
8048         (*vec_concatv2di_rex64_sse): Ditto.
8049         (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
8050         of operand 1.
8051         (*sse2_storeq_rex64): Penalize allocation of "r" registers.
8052         * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
8053         of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
8054         (*movv2sf_internal_rex64): Ditto.
8055
8056 2008-08-02  Richard Guenther  <rguenther@suse.de>
8057
8058         PR target/35252
8059         * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
8060         (ssedoublesizemode): New mode attribute.
8061         (sse_shufps): Call gen_sse_shufps_v4sf.
8062         (sse_shufps_1): Macroize.
8063         (sse2_shufpd): Call gen_Sse_shufpd_v2df.
8064         (sse2_shufpd_1): Macroize.
8065         (vec_extract_odd, vec_extract_even): New expanders.
8066         (vec_interleave_highv4sf, vec_interleave_lowv4sf,
8067         vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
8068         * i386.c (ix86_expand_vector_init_one_nonzero): Call
8069         gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
8070         (ix86_expand_vector_set): Likewise.
8071         (ix86_expand_reduc_v4sf): Likewise.
8072
8073 2008-08-01  Doug Kwan  <dougkwan@google.com>
8074
8075         * matrix-reorg.c: Re-enable all code.
8076         (struct malloc_call_data): Change CALL_STMT to gimple type.
8077         (collect_data_for_malloc_call): Tuplify.
8078         (struct access_site_info): Change STMT to gimple type.
8079         (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
8080         and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
8081         (struct free_info): Change STMT to gimple type.
8082         (struct matrix_access_phi_node):  Change PHI to gimple type.
8083         (get_inner_of_cast_expr): Remove.
8084         (may_flatten_matrices_1): Tuplify.
8085         (may_flatten_matrices): Ditto.
8086         (mark_min_matrix_escape_level): Ditto.
8087         (ssa_accessed_in_tree): Refactor statement RHS related code into ...
8088         (ssa_accessed_in_call_rhs): New
8089         (ssa_accessed_in_assign_rhs): New
8090         (record_access_alloc_site_info): Tuplify.
8091         (add_allocation_site): Ditto.
8092         (analyze_matrix_allocation_site): Ditto.
8093         (analyze_transpose): Ditto.
8094         (get_index_from_offset): Ditto.
8095         (update_type_size): Ditto.
8096         (analyze_accesses_for_call_expr): Tuplify and renamed into ...
8097         (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
8098         (analyze_accesses_for_phi_node): Tuplify.
8099         (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
8100         (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
8101         (analyze_matrix_accesses): Tuplify.
8102         (check_var_data): New call-back type for check_var_notmodified_p.
8103         (check_var_notmodified_p): Tuplify and use call-back struct to
8104         return statement found.
8105         (can_calculate_expr_before_stmt): Factor out statement related code
8106         into ...
8107         (can_calculate_stmt_before_stmt): New.
8108         (check_allocation_function): Tuplify.
8109         (find_sites_in_func): Ditto.
8110         (record_all_accesses_in_func): Ditto.
8111         (transform_access_sites): Ditto.
8112         (transform_allocation_sites): Ditto.
8113         (matrix_reorg): Re-enable.
8114         (gate_matrix_reorg): Re-enable.
8115
8116 2008-08-01  Jakub Jelinek  <jakub@redhat.com>
8117
8118         * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
8119         for labels for which it hasn't been set yet.  If it has been set,
8120         stop walking insns and continue with next worklist item.
8121         (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
8122         if the only BARRIER is at the very end of a function.
8123
8124 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
8125
8126         * cfgexpand.c (expand_stack_alignment): Assert that
8127         stack_realign_drap and drap_rtx must match.
8128
8129         * function.c (instantiate_new_reg): If DRAP is used to realign
8130         stack, replace virtual_incoming_args_rtx with internal arg
8131         pointer.
8132
8133 2008-08-01  Richard Guenther  <rguenther@suse.de>
8134
8135         * tree-ssa-pre.c (fini_pre): Take in_fre parameter.  Free
8136         loop information only if we initialized it.
8137         (execute_pre): Call fini_pre with in_fre.
8138         * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
8139         if we do not unroll because we hit max-completely-peeled-insns.
8140         Use our estimation for consistency, do allow shrinking.
8141
8142 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
8143
8144         * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
8145         with MIN_STACK_BOUNDARY.
8146         (ix86_update_stack_boundary): Likewise.
8147         (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
8148         STACK_BOUNDARY.
8149
8150         * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
8151         (MIN_STACK_BOUNDARY): This.
8152
8153 2008-08-01  Richard Guenther  <rguenther@suse.de>
8154
8155         PR middle-end/36997
8156         * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
8157
8158 2008-08-01  Richard Guenther  <rguenther@suse.de>
8159
8160         PR tree-optimization/36988
8161         * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
8162         do not matter if that doesn't change volatile qualification.
8163
8164 2008-08-01  Paolo Bonzini  <bonzini@gnu.org>
8165
8166         * configure.ac: Do not generate libada-mk.  Do not subst
8167         host_cc_for_libada.
8168         * libada-mk.in: Remove.
8169         * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
8170         * configure: Regenerate.
8171
8172 2008-08-01  Basile Starynkevitch  <basile@starynkevitch.net>
8173
8174         * tree-pass.h: Added comment about not dumping passes with name
8175         starting with star in struct opt_pass.
8176         * passes.c (register_dump_files_1): Don't do dump for a pass with
8177         name starting with star.
8178         * doc/passes.texi (Pass manager): Mention pass names and special
8179         meaning of star prefix to avoid dump.
8180
8181 2008-07-31  Adam Nemet  <anemet@caviumnetworks.com>
8182
8183         * config.gcc (mipsisa64r2*-*-linux*): New configuration.  Set ISA
8184         to MIPS64r2.
8185         * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
8186         (ISA_MIPS64R2): New macro.
8187         (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
8188         (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
8189         ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
8190         ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
8191         ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
8192         ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
8193         ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
8194         (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
8195         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
8196         Move up to keep list alphabetically sorted.
8197         (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
8198         * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
8199         processor.
8200         * doc/invoke.texi (MIPS Options): Add -mips64r2.
8201         (-march=@var{arch}): Add mips64r2.
8202
8203 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
8204
8205         * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
8206
8207 2008-07-31  Steve Ellcey  <sje@cup.hp.com>
8208
8209         * expr.c (expand_assignment): Check for complete type.
8210
8211 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
8212
8213         PR debug/36977
8214         * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
8215
8216         * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
8217         for stack alignment.
8218
8219         * function.h (rtl_data): Add stack_realign_tried.  Update comments.
8220
8221 2008-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
8222
8223         * config/sh/sh.c (sh_canonical_va_list_type): Remove.
8224         (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
8225
8226 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
8227
8228         PR rtl-optimization/36419
8229         * dwarf2out.c (barrier_args_size): New variable.
8230         (compute_barrier_args_size, compute_barrier_args_size_1): New
8231         functions.
8232         (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
8233         if not called yet in the current function, use barrier_args_size
8234         array to find the new args_size value.
8235         (dwarf2out_frame_debug): Free and clear barrier_args_size.
8236
8237 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
8238
8239         PR debug/36980
8240         * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
8241         rule 19.
8242
8243 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
8244
8245         PR debug/36976
8246         * dwarf2out.c (dwarf2out_args_size_adjust): New.
8247         (dwarf2out_stack_adjust): Use it.
8248         (dwarf2out_frame_debug_expr): Likewise.
8249
8250 2008-07-31  Richard Guenther  <rguenther@suse.de>
8251
8252         PR tree-optimization/36978
8253         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
8254         the generated condition.
8255
8256 2008-07-31  Richard Guenther  <rguenther@suse.de>
8257
8258         * passes.c (init_optimization_passes): Always call
8259         pass_early_warn_uninitialized.
8260         * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
8261         * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
8262         * doc/passes.texi (Warn for uninitialized variables): Adjust.
8263
8264 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
8265
8266         PR c/36970
8267         * builtins.c (maybe_emit_free_warning): New function.
8268         (expand_builtin): Process BUILT_IN_FREE even at -O0.  Call
8269         maybe_emit_free_warning for BUILT_IN_FREE.
8270
8271         PR debug/36278
8272         * dwarf2out.c (get_context_die): New function.
8273         (force_decl_die, force_type_die): Use it.
8274         (dwarf2out_imported_module_or_decl): Likewise.  If base_type_die
8275         returns NULL, force generation of DW_TAG_typedef and put that into
8276         DW_AT_import.
8277
8278         PR preprocessor/36649
8279         * c-pch.c (c_common_read_pch): Save and restore
8280         line_table->trace_includes across PCH restore.
8281
8282 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
8283
8284         PR ada/36554
8285         * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
8286
8287 2008-07-30  Rafael Ãƒvila de Espíndola  <espindola@google.com>
8288
8289         PR 36974
8290         * final.c (call_from_call_insn): Handle COND_EXEC.
8291
8292 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
8293
8294         * builtins.c (std_gimplify_va_arg_expr): Replace
8295         PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
8296         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
8297
8298 2008-07-30  Joey Ye  <joey.ye@intel.com>
8299             H.J. Lu  <hongjiu.lu@intel.com>
8300
8301         * builtins.c (expand_builtin_setjmp_receiver): Replace
8302         virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
8303         (expand_builtin_apply_args_1): Likewise.
8304         (expand_builtin_longjmp): Need DRAP for stack alignment.
8305         (expand_builtin_apply): Likewise.
8306
8307         * caller-save.c (setup_save_areas): Call assign_stack_local_1
8308         instead of assign_stack_local to allow alignment reduction.
8309
8310         * calls.c (emit_call_1): Need DRAP for stack alignment if
8311         return pops.
8312         (expand_call): Replace virtual_incoming_args_rtx with
8313         crtl->args.internal_arg_pointer.
8314         * stmt.c (expand_nl_goto_receiver): Likewise.
8315
8316         * cfgexpand.c (get_decl_align_unit): Estimate stack variable
8317         alignment and store to stack_alignment_estimated and
8318         max_used_stack_slot_alignment.
8319         (expand_one_var): Likewise.
8320         (expand_stack_alignment): New function.
8321         (tree_expand_cfg): Initialize max_used_stack_slot_alignment
8322         and stack_alignment_estimated fields in rtl_data.  Call
8323         expand_stack_alignment at end.
8324
8325         * defaults.h (INCOMING_STACK_BOUNDARY): New.
8326         (MAX_STACK_ALIGNMENT): Likewise.
8327         (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
8328         (SUPPORTS_STACK_ALIGNMENT): Likewise.
8329
8330         * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
8331         stack alignment when generating virtual registers.
8332
8333         * function.c (assign_stack_local): Renamed to ...
8334         (assign_stack_local_1): This.  Add a parameter to indicate
8335         if it is OK to reduce alignment.
8336         (assign_stack_local): Use it.
8337         (instantiate_new_reg): Instantiate virtual incoming args rtx
8338         to vDRAP if stack realignment and DRAP is needed.
8339         (assign_parms): Collect parameter/return type alignment and
8340         contribute to stack_alignment_estimated.
8341         (locate_and_pad_parm): Likewise.
8342         (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
8343         with crtl->args.internal_arg_pointer.
8344
8345         * function.h (rtl_data): Add new field drap_reg,
8346         max_used_stack_slot_alignment, stack_alignment_estimated,
8347         stack_realign_needed, need_drap, stack_realign_processed and
8348         stack_realign_finalized.
8349         (stack_realign_fp): New macro.
8350         (stack_realign_drap): Likewise.
8351
8352         * global.c (compute_regsets): Frame pointer is needed when
8353         stack is realigned.  Can eliminate frame pointer when stack is
8354         realigned and dynamic realigned argument pointer isn't used.
8355
8356         * reload1.c (update_eliminables):  Frame pointer is needed
8357         when stack is realigned.
8358         (init_elim_table): Can eliminate frame pointer when stack is
8359         realigned and dynamic realigned argument pointer isn't used.
8360
8361         * rtl.h (assign_stack_local_1): Declare new funtion.
8362
8363         * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
8364         (TARGET_GET_DRAP_RTX): Likewise.
8365         (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
8366         TARGET_GET_DRAP_RTX.
8367
8368         * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
8369
8370         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
8371         STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
8372
8373 2008-07-30  Xuepeng Guo  <xuepeng.guo@intel.com>
8374             H.J. Lu  <hongjiu.lu@intel.com>
8375
8376         * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
8377         vdrap_reg, stack_realign and drap_reg_saved.
8378         (add_cfi): Don't allow redefining CFA when DRAP is used.
8379         (reg_save): Handle stack alignment.
8380         (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
8381         alignment.  Don't generate DWARF information for (set fp sp)
8382         when DRAP is used.
8383         (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
8384         to INVALID_REGNUM.
8385         (int_loc_descriptor): Move prototype forward.  Also define if
8386         DWARF2_UNWIND_INFO is true.
8387         (output_cfa_loc): Handle DW_CFA_expression.
8388         (build_cfa_aligned_loc): New.
8389         (based_loc_descr): Update assert for stack realign.  For local
8390         variables, use sp+offset when stack is aligned without drap and
8391         fp+offset when stack is aligned with drap.  For arguments, use
8392         cfa+offset when drap is used to align stack.
8393
8394 2008-07-30  Joey Ye  <joey.ye@intel.com>
8395             H.J. Lu  <hongjiu.lu@intel.com>
8396
8397         * config/i386/i386.c (ix86_force_align_arg_pointer_string):
8398         Break long line.
8399         (ix86_gen_andsp): New.
8400         (ix86_user_incoming_stack_boundary): Likewise.
8401         (ix86_default_incoming_stack_boundary): Likewise.
8402         (ix86_incoming_stack_boundary): Likewise.
8403         (ix86_can_eliminate): Likewise.
8404         (find_drap_reg): Likewise.
8405         (ix86_update_stack_boundary): Likewise.
8406         (ix86_get_drap_rtx): Likewise.
8407         (ix86_finalize_stack_realign_flags): Likewise.
8408         (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
8409         (TARGET_GET_DRAP_RTX): Likewise.
8410         (override_options): Overide option value for new options.
8411         (ix86_function_ok_for_sibcall): Remove check for
8412         force_align_arg_pointer.
8413         (ix86_handle_cconv_attribute): Likewise.
8414         (ix86_function_regparm): Likewise.
8415         (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
8416         (ix86_va_start): Replace virtual_incoming_args_rtx with
8417         crtl->args.internal_arg_pointer.
8418         (ix86_select_alt_pic_regnum): Check DRAP register.
8419         (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
8420         (ix86_compute_frame_layout): Compute frame layout wrt stack
8421         realignment.
8422         (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
8423         (ix86_expand_prologue): Decide if stack realignment is needed
8424         and generate prologue code accordingly.
8425         (ix86_expand_epilogue): Generate epilogue code wrt stack
8426         realignment is really needed or not.
8427
8428         * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
8429         (ABI_STACK_BOUNDARY): Likewise.
8430         (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
8431         (STACK_REALIGN_DEFAULT): Likewise.
8432         (INCOMING_STACK_BOUNDARY): Likewise.
8433         (MAX_STACK_ALIGNMENT): Likewise.
8434         (ix86_incoming_stack_boundary): Likewise.
8435         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
8436         (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
8437         (CAN_ELIMINATE): Defined with ix86_can_eliminate.
8438         (machine_function): Remove force_align_arg_pointer.
8439
8440         * config/i386/i386.md (BX_REG): New.
8441         (R13_REG): Likewise.
8442
8443         * config/i386/i386.opt (mforce_drap): New.
8444         (mincoming-stack-boundary): Likewise.
8445         (mstackrealign): Add Init(-1).
8446
8447         * config/i386/i386-protos.h (ix86_can_eliminate): New
8448
8449 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
8450
8451         * doc/extend.texi: Update force_align_arg_pointer.
8452
8453         * doc/invoke.texi: Document -mincoming-stack-boundary.  Update
8454         -mstackrealign.
8455
8456         * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
8457         (INCOMING_STACK_BOUNDARY): Likewise.
8458         (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
8459         (TARGET_GET_DRAP_RTX): Likewise.
8460
8461 2008-07-30  Andreas Schwab  <schwab@suse.de>
8462
8463         PR rtl-optimization/36929
8464         * dse.c (replace_inc_dec): Use emit_insn_before instead of
8465         add_insn_before and fix argument order.
8466         (replace_inc_dec_mem): Handle NULL rtx.
8467
8468 2008-07-30  Andrew Jenner  <andrew@codesourcery.com>
8469
8470         * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
8471         function.
8472         (arm_compute_initial_elimination_offset): Use it.
8473         (arm_compute_save_reg_mask): Include static chain save slot when
8474         calculating alignment.
8475         (arm_get_frame_offsets): Ditto.
8476         (thumb1_compute_save_reg_mask): Ensure we have a low register saved
8477         that we can use to decrement the stack when the stack decrement
8478         could be too big for an immediate value in a single insn.
8479         (thumb1_expand_prologue): Avoid using r12 for stack decrement.
8480
8481 2008-07-30  Richard Guenther  <rguenther@suse.de>
8482
8483         PR tree-optimization/36967
8484         * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
8485         Release defs of statements we remove.
8486
8487 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
8488
8489         * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
8490         instead of NULL_RTVEC.
8491
8492 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
8493
8494         PR target/35866
8495
8496         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
8497         vector modes.
8498
8499 2008-07-30  Rafael Ãƒvila de Espíndola  <espindola@google.com>
8500
8501         * final.c (call_from_call_insn): New.
8502         (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
8503
8504 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
8505
8506         * configure.ac: Substitute ADA_CFLAGS.
8507         * configure: Regenerate.
8508         * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
8509         * Makefile.in: Remove mention of X_* variables.
8510         * config/pa/x-ada-hpux10: Remove.
8511         * config/pa/x-ada: Remove.
8512
8513         * doc/fragments.texi: Update.
8514
8515 2008-07-30  Olivier Hainque  <hainque@adacore.com>
8516
8517         * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
8518         * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
8519         __dso_handle explicitly here.
8520
8521 2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8522
8523         PR 34389
8524         * c-typeck.c (build_binary_op): Encapsulate code into...
8525         * c-common.c (shorten_binary_op): ...this new function.
8526         (conversion_warning): Use the new function. Handle non-negative
8527         constant in bitwise-and.
8528         * c-common.h (shorten_binary_op): Declare.
8529
8530 2008-07-30  Olivier Hainque  <hainque@adacore.com>
8531
8532         * scan.c (make_sstring_space): Add explicit conversions of
8533         allocator's return value.
8534         * fix-header.c (recognized_function): Likewise.
8535
8536 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8537
8538         * doc/cpp.texi: Update to GFDL 1.2.
8539         * doc/gcc.texi: Do not list GPL as Invariant Section.
8540         * doc/gccint.texi: Likewise.  Update copyright years.
8541         * doc/install.texi: Update copyright years.
8542
8543 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
8544
8545         PR target/36955
8546         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
8547         a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
8548
8549 2008-07-29  Jan Hubicka  <jh@suse.cz>
8550
8551         * c-decl.c (merge_decls): Do not handle DECL_INLINE.
8552         (grokdeclarator): Likewise.
8553         * langhooks.c (lhd_warn_unused_global_decl): Use
8554         DECL_DECLARED_INLINE_P.
8555         * print-tree.c (print_node): Remove DECL_INLINE check.
8556
8557 2008-07-29  Richard Guenther  <rguenther@suse.de>
8558
8559         PR tree-optimization/36945
8560         * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
8561         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
8562         Record invariant addresses un-decomposed.
8563         (copy_reference_ops_from_call): Record reference call
8564         arguments properly.  Simplify.
8565         * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
8566         helper split out from ...
8567         (create_component_ref_by_pieces): ... here.  Simplify.
8568         Prepare for recursive invocation for call arguments.
8569         (create_expression_by_pieces): Adjust call to
8570         create_component_ref_by_pieces.
8571         (compute_avail): Process operand 2 of reference ops.
8572
8573 2008-07-29  Richard Guenther  <rguenther@suse.de>
8574
8575         * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
8576
8577 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
8578
8579         * c-format.c (check_format_types): Revert unwanted checkin.
8580
8581 2008-07-29  Jan Hubicka  <jh@suse.cz>
8582
8583         * flags.h (flag_really_no_inline): Remove.
8584         * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
8585         * toplev.c (flag_really_no_inline): Remove.
8586         * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
8587         * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
8588         (cgraph_decide_inlining_incrementally): Likewise.
8589         (compute_inline_parameters): Likewise.
8590         * opts.c (decode_options): Simplify.
8591         * c-opts.c (c_common_post_options): Do not set flag_no_inline.
8592         * common.opt (finline): Initialize to 1.
8593         * tree-inline.c (inlinable_function_p): Check flag_no_inline.
8594
8595 2008-07-29  Jan Hubicka  <jh@suse.cz>
8596
8597         * predict.c (always_optimize_for_size_p): New function.
8598         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
8599         optimize_edge_for_size_p, optimize_edge_for_speed_p,
8600         optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
8601         functions.
8602         (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
8603         * function.c (prepare_function_start): Set default profile.
8604         * function.h (rtl_data): Add maybe_hot_insn_p.
8605         * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
8606         (construct_exit_block): Likewise.
8607         (tree_expand_cfg): Likewise.
8608         * basic-block.h
8609         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
8610         optimize_edge_for_size_p, optimize_edge_for_speed_p,
8611         optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
8612         (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
8613         Declare.
8614
8615 2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8616
8617         PR 34985
8618         * c-decl.c (merge_decls): Merge USED flags.
8619
8620 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
8621
8622         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
8623         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
8624         next_stack, lab_false and lab_over trees.
8625
8626 2008-07-28  Richard Guenther  <rguenther@suse.de>
8627
8628         PR tree-optimization/36957
8629         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
8630         (useless_type_conversion_p): Remove.
8631         (types_compatible_p): Remove.
8632         * gimple.h (tree_ssa_useless_type_conversion): Declare.
8633         (useless_type_conversion_p): Declare.
8634         (types_compatible_p): Declare.
8635         (gimple_expr_type): Return the base type only if it is
8636         trivially convertible to the subtype.
8637
8638 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
8639
8640         * configure.ac: Use the m4_do macro to concatenate the warnings into
8641         one string in ACX_PROG_CC_WARNING_OPTS,
8642         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and
8643         ACX_PROG_CC_WARNINGS_ARE_ERRORS.
8644         * configure: Regenerate.
8645
8646 2008-07-28  Richard Guenther  <rguenther@suse.de>
8647
8648         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
8649         (insert_fake_stores): Remove.
8650         (realify_fake_stores): Likewise.
8651         (execute_pre): Remove dead code.
8652         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
8653         (find_func_aliases): Deal with it here instead.
8654         Re-enable gcc_unreachable call.
8655
8656 2008-07-28  Richard Guenther  <rguenther@suse.de>
8657
8658         Merge from gimple-tuples-branch.
8659
8660         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
8661         * gimple.def: New file.
8662         * gsstruct.def: Likewise.
8663         * gimple-iterator.c: Likewise.
8664         * gimple-pretty-print.c: Likewise.
8665         * tree-gimple.c: Removed.  Merged into ...
8666         * gimple.c: ... here.  New file.
8667         * tree-gimple.h: Removed.  Merged into ...
8668         * gimple.h: ... here.  New file.
8669
8670         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
8671         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
8672         --enable-checking=gimple flag.
8673         * config.in: Likewise.
8674         * configure: Regenerated.
8675
8676         * tree-ssa-operands.h: Tuplified.
8677         * tree-vrp.c: Likewise.
8678         * tree-loop-linear.c: Likewise.
8679         * tree-into-ssa.c: Likewise.
8680         * tree-ssa-loop-im.c: Likewise.
8681         * tree-dump.c: Likewise.
8682         * tree-complex.c: Likewise.
8683         * cgraphbuild.c: Likewise.
8684         * tree-ssa-threadupdate.c: Likewise.
8685         * tree-ssa-loop-niter.c: Likewise.
8686         * tree-pretty-print.c: Likewise.
8687         * tracer.c: Likewise.
8688         * gengtype.c: Likewise.
8689         * tree-loop-distribution.c: Likewise.
8690         * tree-ssa-loop-unswitch.c: Likewise.
8691         * cgraph.c: Likewise.
8692         * cgraph.h: Likewise.
8693         * tree-ssa-loop-manip.c: Likewise.
8694         * value-prof.c: Likewise.
8695         * tree-ssa-loop-ch.c: Likewise.
8696         * tree-tailcall.c: Likewise.
8697         * value-prof.h: Likewise.
8698         * tree.c: Likewise.
8699         * tree.h: Likewise.
8700         * tree-pass.h: Likewise.
8701         * ipa-cp.c: Likewise.
8702         * tree-scalar-evolution.c: Likewise.
8703         * tree-scalar-evolution.h: Likewise.
8704         * target.h: Likewise.
8705         * lambda-mat.c: Likewise.
8706         * tree-phinodes.c: Likewise.
8707         * diagnostic.h: Likewise.
8708         * builtins.c: Likewise.
8709         * tree-ssa-alias-warnings.c: Likewise.
8710         * cfghooks.c: Likewise.
8711         * fold-const.c: Likewise.
8712         * cfghooks.h: Likewise.
8713         * omp-low.c: Likewise.
8714         * tree-ssa-dse.c: Likewise.
8715         * ipa-reference.c: Likewise.
8716         * tree-ssa-uncprop.c: Likewise.
8717         * toplev.c: Likewise.
8718         * tree-gimple.c: Likewise.
8719         * tree-gimple.h: Likewise.
8720         * tree-chrec.c: Likewise.
8721         * tree-chrec.h: Likewise.
8722         * tree-ssa-sccvn.c: Likewise.
8723         * tree-ssa-sccvn.h: Likewise.
8724         * cgraphunit.c: Likewise.
8725         * tree-ssa-copyrename.c: Likewise.
8726         * tree-ssa-ccp.c: Likewise.
8727         * tree-ssa-loop-ivopts.c: Likewise.
8728         * tree-nomudflap.c: Likewise.
8729         * tree-call-cdce.c: Likewise.
8730         * ipa-pure-const.c: Likewise.
8731         * c-format.c: Likewise.
8732         * tree-stdarg.c: Likewise.
8733         * tree-ssa-math-opts.c: Likewise.
8734         * tree-ssa-dom.c: Likewise.
8735         * tree-nrv.c: Likewise.
8736         * tree-ssa-propagate.c: Likewise.
8737         * ipa-utils.c: Likewise.
8738         * tree-ssa-propagate.h: Likewise.
8739         * tree-ssa-alias.c: Likewise.
8740         * gimple-low.c: Likewise.
8741         * tree-ssa-sink.c: Likewise.
8742         * ipa-inline.c: Likewise.
8743         * c-semantics.c: Likewise.
8744         * dwarf2out.c: Likewise.
8745         * expr.c: Likewise.
8746         * tree-ssa-loop-ivcanon.c: Likewise.
8747         * predict.c: Likewise.
8748         * tree-ssa-loop.c: Likewise.
8749         * tree-parloops.c: Likewise.
8750         * tree-ssa-address.c: Likewise.
8751         * tree-ssa-ifcombine.c: Likewise.
8752         * matrix-reorg.c: Likewise.
8753         * c-decl.c: Likewise.
8754         * tree-eh.c: Likewise.
8755         * c-pretty-print.c: Likewise.
8756         * lambda-trans.c: Likewise.
8757         * function.c: Likewise.
8758         * langhooks.c: Likewise.
8759         * ebitmap.h: Likewise.
8760         * tree-vectorizer.c: Likewise.
8761         * function.h: Likewise.
8762         * langhooks.h: Likewise.
8763         * tree-vectorizer.h: Likewise.
8764         * ipa-type-escape.c: Likewise.
8765         * ipa-type-escape.h: Likewise.
8766         * domwalk.c: Likewise.
8767         * tree-if-conv.c: Likewise.
8768         * profile.c: Likewise.
8769         * domwalk.h: Likewise.
8770         * tree-data-ref.c: Likewise.
8771         * tree-data-ref.h: Likewise.
8772         * tree-flow-inline.h: Likewise.
8773         * tree-affine.c: Likewise.
8774         * tree-vect-analyze.c: Likewise.
8775         * c-typeck.c: Likewise.
8776         * gimplify.c: Likewise.
8777         * coretypes.h: Likewise.
8778         * tree-ssa-phiopt.c: Likewise.
8779         * calls.c: Likewise.
8780         * tree-ssa-coalesce.c: Likewise.
8781         * tree.def: Likewise.
8782         * tree-dfa.c: Likewise.
8783         * except.c: Likewise.
8784         * except.h: Likewise.
8785         * cfgexpand.c: Likewise.
8786         * tree-cfgcleanup.c: Likewise.
8787         * tree-ssa-pre.c: Likewise.
8788         * tree-ssa-live.c: Likewise.
8789         * tree-sra.c: Likewise.
8790         * tree-ssa-live.h: Likewise.
8791         * tree-predcom.c: Likewise.
8792         * lambda.h: Likewise.
8793         * tree-mudflap.c: Likewise.
8794         * ipa-prop.c: Likewise.
8795         * print-tree.c: Likewise.
8796         * tree-ssa-copy.c: Likewise.
8797         * ipa-prop.h: Likewise.
8798         * tree-ssa-forwprop.c: Likewise.
8799         * ggc-page.c: Likewise.
8800         * c-omp.c: Likewise.
8801         * tree-ssa-dce.c: Likewise.
8802         * tree-vect-patterns.c: Likewise.
8803         * tree-ssa-ter.c: Likewise.
8804         * tree-nested.c: Likewise.
8805         * tree-ssa.c: Likewise.
8806         * lambda-code.c: Likewise.
8807         * tree-ssa-loop-prefetch.c: Likewise.
8808         * tree-inline.c: Likewise.
8809         * tree-inline.h: Likewise.
8810         * tree-iterator.c: Likewise.
8811         * tree-optimize.c: Likewise.
8812         * tree-ssa-phiprop.c: Likewise.
8813         * tree-vect-transform.c: Likewise.
8814         * tree-object-size.c: Likewise.
8815         * tree-outof-ssa.c: Likewise.
8816         * cfgloop.c: Likewise.
8817         * system.h: Likewise.
8818         * tree-profile.c: Likewise.
8819         * cfgloop.h: Likewise.
8820         * c-gimplify.c: Likewise.
8821         * c-common.c: Likewise.
8822         * tree-vect-generic.c: Likewise.
8823         * tree-flow.h: Likewise.
8824         * c-common.h: Likewise.
8825         * basic-block.h: Likewise.
8826         * tree-ssa-structalias.c: Likewise.
8827         * tree-switch-conversion.c: Likewise.
8828         * tree-ssa-structalias.h: Likewise.
8829         * tree-cfg.c: Likewise.
8830         * passes.c: Likewise.
8831         * ipa-struct-reorg.c: Likewise.
8832         * ipa-struct-reorg.h: Likewise.
8833         * tree-ssa-reassoc.c: Likewise.
8834         * cfgrtl.c: Likewise.
8835         * varpool.c: Likewise.
8836         * stmt.c: Likewise.
8837         * tree-ssanames.c: Likewise.
8838         * tree-ssa-threadedge.c: Likewise.
8839         * langhooks-def.h: Likewise.
8840         * tree-ssa-operands.c: Likewise.
8841         * config/alpha/alpha.c: Likewise.
8842         * config/frv/frv.c: Likewise.
8843         * config/s390/s390.c: Likewise.
8844         * config/m32c/m32c.c: Likewise.
8845         * config/m32c/m32c-protos.h: Likewise.
8846         * config/spu/spu.c: Likewise.
8847         * config/sparc/sparc.c: Likewise.
8848         * config/i386/i386.c: Likewise.
8849         * config/sh/sh.c: Likewise.
8850         * config/xtensa/xtensa.c: Likewise.
8851         * config/stormy16/stormy16.c: Likewise.
8852         * config/ia64/ia64.c: Likewise.
8853         * config/rs6000/rs6000.c: Likewise.
8854         * config/pa/pa.c: Likewise.
8855         * config/mips/mips.c: Likewise.
8856
8857 2008-07-28  Simon Baldwin  <simonb@google.com>
8858
8859         * c-pragma.c (handle_pragma_message): New function.
8860         (init_pragma): Register handle_pragma_message.
8861         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
8862         documentation.
8863
8864 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
8865
8866         PR tree-optimization/35252
8867         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
8868         REALPART_EXPR to be considered as same load operation.
8869
8870 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
8871
8872         PR tree-optimization/36830
8873         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
8874         (expressions_equal_p): Return false if only one operand is null.
8875
8876 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
8877
8878         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
8879         version requirements.
8880
8881 2008-07-26  Olivier Hainque  <hainque@adacore.com>
8882
8883         * collect2.c (symkind): New enum.  Symbol kinds we care about.
8884         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
8885         code and head comment accordingly.
8886         (scan_prog_file): Use symkind names instead of bare integers.
8887
8888 2008-07-25  Jan Hubicka  <jh@suse.cz>
8889
8890         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
8891         DECL_INLINE.
8892         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
8893         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
8894         * dojump.c (clear_pending_stack_adjust): Likewise.
8895         * print-tree.c (print_node): Ignore DECL_INLINE.
8896         * tree-inline.c (inlinable_function_p): Likewise.
8897
8898 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
8899
8900         * doc/extend.texi (hot attribute): Document that the hot attribute
8901         turns on -O3 for some ports.
8902         (cold attribute): Document that the cold attribute turns on -Os
8903         for some ports
8904
8905         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
8906         reflect function specific option support.
8907
8908         * target.h (struct target_option_hooks): Add fields to say whether
8909         the cold attribute implies -Os and the hot attribute implies -O3.
8910
8911         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
8912         By default, do not turn on -Os for cold functions.
8913         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
8914         not turn on -O3 for hot functions.
8915
8916         * c-common.c (handle_hot_attribute): Use target hook to determine
8917         if hot functions should enable -O3.
8918         (handle_cold_attribute): Use target hook to determine if cold
8919         functions should enable -Os.
8920
8921         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
8922         (override_options): Move disable scheduling to
8923         optimization_options.
8924         (optimization_options): Disable scheduling here, not
8925         override_options.
8926         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
8927         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
8928
8929         * config/ia64/ia64.c (ia64_override_options): Move setting
8930         scheduling flags to ia64_optimization_options.
8931         (ia64_optimization_options): Disable scheduling options here, and
8932         not in ia64_override_options.
8933         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
8934         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
8935
8936 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
8937
8938         PR target/36936
8939         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
8940
8941 2008-07-25  Martin Jambor  <mjambor@suse.cz>
8942
8943         PR tree-optimization/36926
8944         * ipa-prop.c (ipa_analyze_call_uses): Call
8945         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
8946
8947 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
8948
8949         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
8950         movv2si_internal): Add mem = reg alternative.
8951
8952 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
8953
8954         PR bootstrap/36918
8955         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
8956         DEFAULT_PCC_STRUCT_RETURN to 127.
8957
8958 2008-07-24  Jan Hubicka  <jh@suse.cz>
8959
8960         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
8961         (build_cgraph_edges): Likewise.
8962         * cgraph.c (cgraph_node): Do not update assembler hash.
8963         (cgraph_remove_node): Drop non-unit-at-a-time code.
8964         * tree-pass.h (pass_O0_always_inline): Remove.
8965         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
8966         * toplev.c (process_options): Flag unit-at-a-time does not imply
8967         no section anchors.
8968         * cgraphunit.c: Update comments.
8969         (decide_is_function_needed): Drop non-unit-at-a-time mode.
8970         (cgraph_assemble_pending_functions): Remove.
8971         (cgraph_reset_node): Drop non-unit-at-a-time code.
8972         (cgraph_finalize_function): Likewise.
8973         (cgraph_analyze_function): Likewise.
8974         (cgraph_finalize_compilation_unit): Likewise.
8975         (cgraph_expand_function): Likewise.
8976         (cgraph_optimize): Likesise.
8977         (save_inline_function_body): Likewise.
8978         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
8979         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
8980         * ipa-inline.c: Update comments.
8981         (enum inlining_mode): remove INLINE_SPEED.
8982         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
8983         (cgraph_mark_inline_edge): Likewise.
8984         (try_inline): Likewise.
8985         (cgraph_decide_inlining_incrementally): Likewise.
8986         (cgraph_gate_inlining): Remove.
8987         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
8988         (cgraph_gate_early_inlining): Likewise.
8989         (gate_inline_passes): Remove.
8990         (pass_inline_parameters, pass_ipa_inline): Remove gates.
8991         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
8992         pass_O0_always_inline): Remove.
8993         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
8994         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
8995         * opts.c (no_unit_at_a_time_default): Remove.
8996         (decode_options): Remove flag_unit_at_a_time reset and warning.
8997         * opts.h (no_unit_at_a_time_default): Remove.
8998         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
8999         early in GNU dialect.
9000         (merge_decls): Update comment; drop unit-at-a-time check.
9001         (finish_decl): Likewise.
9002         (grok_declaration): Remove flag_inline_trees code.
9003         (finish_functions): Return on function returning non-void on all
9004         statics.
9005         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
9006         * cfgexpand.c (expand_one_static_var): Remove.
9007         (expand_one_var): Remove expand_one_static_var call.
9008         (expand_used_vars_for_block): Remove flag_unit_a_time check.
9009         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
9010         and flag_unit_at_a-time compatibility checks.
9011         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
9012         * tree-inline.c (flag_inline_trees): Remove.
9013         (inlinable_function_p): Don't check it.
9014         (expand_call_inline): Remove non-unit-at-a-time code.
9015         * tree-inline.h (flag_inline_trees): Remove.
9016         * tree-optimize.c (execute_early_local_optimizations): Remove
9017         unit-at-a-time checks.
9018         (tree_rest_of_compilation): Likewise.
9019         * combine.c (setup_incoming_promotions): Likewise.
9020         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
9021         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
9022         * passes.c (pass_inline_parameters): Update comments; remove
9023         O0_alwaysinline pass.
9024         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
9025         (execute_one_pass): Likewise.
9026         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
9027         (ix86_function_sseregparm): Likewise.
9028         * arm.c (arm_function_in_section_p): Likewise.
9029         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
9030         * varpool.c: Update comments.
9031         (decide_is_variable_needed): Remove unit-at-a-time checks.
9032         (varpool_finalize_decl): Likewise.
9033
9034 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
9035
9036         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
9037         to 2 instead of -1.
9038         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
9039
9040 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
9041
9042         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
9043         imp symbol extension.
9044
9045         2008-07-23  Ian Lance Taylor  <iant@google.com>
9046
9047         * tree-vrp.c (infer_value_range): Ignore asm statements when
9048         looking for memory accesses for -fdelete-null-pointer-checks.
9049
9050 2008-07-24  Ben Elliston  <bje@au.ibm.com>
9051
9052         * config/spu/spu-c.c (__vector_keyword): New variable.
9053         (vector_keyword): Likewise.
9054         (spu_categorize_keyword): New function.
9055         (spu_macro_to_expand): Likewise.
9056         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
9057         compiling an ISO C dialect.
9058
9059 2008-07-24  Ben Elliston  <bje@au.ibm.com>
9060
9061         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
9062         conventional usage.
9063
9064 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
9065
9066         * configure: Regenerate.
9067         * configure.ac: Require texinfo 4.7.
9068         * doc/install.texi: Document texinfo 4.7 requirement.
9069
9070 2008-07-23  Martin Jambor  <mjambor@suse.cz>
9071
9072         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
9073         rather than for DECL_SAVED_TREE.
9074         * ipa-prop.c: Include diagnostic.h.
9075         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
9076         thoroughly.
9077         (ipa_detect_param_modifications): Function rewritten from scratch.
9078         (ipa_compute_jump_functions): Changed accesses to modification flags.
9079         (ipa_free_node_params_substructures): Update flags destruction.
9080         (ipa_node_duplication_hook): Update flags duplication.
9081         (ipa_print_all_params_modified): Updated flag access.
9082         * ipa-prop.h (struct ipa_param_flags): New structure.
9083         (struct ipa_node_params): New field modification_analysis_done,
9084         modified_flags changed into param_flags.
9085         (ipa_is_ith_param_modified): Changed to use new flags.
9086         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
9087
9088         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
9089         ipa-cp.c and split into two functions.
9090         (ipa_print_node_jump_functions): New function.
9091         (compute_scalar_jump_functions): New function.
9092         (type_like_member_ptr_p): New function.
9093         (compute_pass_through_member_ptrs): New function.
9094         (fill_member_ptr_cst_jump_function): New function.
9095         (determine_cst_member_ptr): New function.
9096         (compute_cst_member_ptr_arguments): New function.
9097         (ipa_compute_jump_functions): Complete rewrite.
9098         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
9099         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
9100         (struct ipa_member_ptr_cst): New structure.
9101         (union jump_func_value): New field member_cst.
9102         * ipa-cp.c (ipcp_lat_is_insertable): New function.
9103         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
9104         jump function types.
9105         (ipcp_print_all_lattices): Slight fprintf rearrangement.
9106         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
9107         instead of ipcp_print_all_jump_functions.
9108         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
9109         only for replacable scalars.
9110
9111         * doc/invoke.texi (Optimize options): Add description of
9112         -findirect-inlining.
9113         * common.opt (flag_indirect_inlining): New flag.
9114         * opts.c (decode_options): Set flag_indirect_inlining when
9115         optimize >= 3.
9116
9117         * ipa-inline.c: Include ipa-prop.h.
9118         (inline_indirect_intraprocedural_analysis): New function.
9119         (inline_generate_summary): Allocate parameter and argument info
9120         structures, call inline_indirect_intraprocedural_analysis on each
9121         node when doing indirect inlining and deallocate indirect inlining
9122         data structures in the end.
9123         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
9124         (free_all_ipa_structures_after_iinln): New function.
9125         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
9126         done.
9127         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
9128
9129         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
9130         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
9131         of computing the frequency separately.
9132         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
9133         of computing the frequency separately.
9134         * ipa-cp.c (ipcp_print_all_structures): Replace a call to
9135         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
9136         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
9137         (ipa_get_stmt_member_ptr_load_param): New function.
9138         (ipa_is_ssa_with_stmt_def): New function.
9139         (ipa_note_param_call): New function.
9140         (ipa_analyze_call_uses): New function.
9141         (ipa_analyze_stmt_uses): New function.
9142         (ipa_analyze_params_uses): New function.
9143         (ipa_free_node_params_substructures): Also free the param_calls linked
9144         list.
9145         (ipa_node_duplication_hook): Also duplicate the param_calls
9146         linked list.
9147         (ipa_print_node_param_flags): New function.
9148         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
9149         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
9150         * ipa-prop.h (struct ipa_param_flags): New field called.
9151         (struct ipa_param_call_note): New structure.
9152         (struct ipa_node_params): New fields param_calls and
9153         uses_analysis_done.
9154         (ipa_is_ith_param_called): New function.
9155         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
9156         ipa_analyze_params_uses and dump parameter flags.
9157
9158         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
9159         ipa_propagate_indirect_call_infos if performing indirect inlining,
9160         pass a new parameter new_edges to it.
9161         (add_new_edges_to_heap): New fucntion.
9162         (cgraph_decide_inlining_of_small_functions): New vector
9163         new_indirect_edges for newly found indirect edges , call
9164         ipa_propagate_indirect_call_infos after inlining.
9165         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
9166         inlining if performing indirect inlining.  Call
9167         free_all_ipa_structures_after_iinln when doing so too.
9168         (inline_generate_summary): Do not call
9169         free_all_ipa_structures_after_iinln here.
9170         * ipa-prop.c (update_jump_functions_after_inlining): New function.
9171         (print_edge_addition_message): New function.
9172         (update_call_notes_after_inlining): New function.
9173         (propagate_info_to_inlined_callees): New function.
9174         (ipa_propagate_indirect_call_infos): New function.
9175         * ipa-prop.h: Include cgraph.h
9176         (struct ipa_param_call_note): Fields reordered, new field processed.
9177         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
9178         flag indirect_call.
9179         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
9180         rediscovered call statements.
9181         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
9182         (dump_cgraph_node): Dump also the indirect_call flag.
9183         (cgraph_clone_edge): Copy also the indirect_call flag.
9184         * tree-inline.c (copy_bb): Do not check for fndecls from call
9185         expressions, check for edge availability when moving clones.
9186         (get_indirect_callee_fndecl): New function.
9187         (expand_call_inline): If callee declaration is not apprent from
9188         the statement, try calling get_indirect_callee_fndecl.  Do not
9189         issue warnings or call sorry when not inlinings an indirect edge.
9190         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
9191
9192         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
9193         bit more frandly to matching.
9194         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
9195         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
9196         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
9197
9198 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
9199
9200         PR 36907
9201         * opth-gen.awk: Suppress function specific features when building
9202         target libraries.
9203         * optc-gen.awk: Ditto.
9204
9205 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9206
9207         PR 35058
9208         * diagnostic.c (pedwarn): Add opt parameter.
9209         (pedwarn0): New.
9210         * c-tree.h (pedwarn_init): Add opt parameter.
9211         (pedwarn_c90): Likewise.
9212         (pedwarn_c99): Likewise.
9213         * c-errors.c (pedwarn_c99): Likewise.
9214         (pedwarn_c90): Likewise.
9215         * toplev.h (pedwarn): Update declaration.
9216         (pedwarn0): Declare.
9217         * c-lex.c: All calls to pedwarn changed.
9218         * builtins.c: All calls to pedwarn changed.
9219         * toplev.c: All calls to pedwarn changed.
9220         * c-decl.c: All calls to pedwarn changed.
9221         * c-typeck.c: All calls to pedwarn changed.
9222         * c-common.c: All calls to pedwarn changed.
9223         * c-parser.c: All calls to pedwarn changed.
9224
9225 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
9226             Karthik Kumar  <karthikkumar@gmail.com>
9227
9228         * attribs.c (file scope): Include c-common.h.
9229         (decl_attributes): Add support for #pragma GCC optimize and
9230         #pragma GCC option.
9231
9232         * targhooks.c (default_can_inline_p): New function that is the
9233         default for the TARGET_CAN_INLINE_P target hook.
9234
9235         * targhooks.h (default_can_inline_p): Add declaration.
9236
9237         * tree.c (cl_optimization_node): New static tree for building
9238         OPTIMIZATION_NODE tree.
9239         (cl_target_option_node): New static tree for building
9240         TARGET_OPTION_NODE tree.
9241         (cl_option_hash_table): New hash table for hashing
9242         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
9243         (cl_option_hash_hash): New function to provide the hash value for
9244         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
9245         (cl_option_hash_eq): New function to provide an equality test for
9246         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
9247         (tree_code_size): Add support for OPTIMIZATION_NODE and
9248         TARGET_OPTION_NODE trees.
9249         (tree_code_structure): Add support for OPTIMIZATION_NODE and
9250         TARGET_OPTION_NODE trees.
9251         (build_optimization_node): Build a tree that has all of the
9252         current optimization options.
9253         (build_target_option_node): Build a tree that has the target
9254         options that might be changed on a per function basis.
9255
9256         * tree.h (file scope): Include options.h.
9257         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
9258         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
9259         (TREE_OPTIMIZATION): Ditto.
9260         (TREE_TARGET_SPECIFIC): Ditto.
9261         (struct tree_function_decl): Add fields for remembering the
9262         current optimization options and target specific options.
9263         (struct tree_optimization_option): New tree variant that remembers
9264         the optimization options.
9265         (struct tree_target_option): New tree variant that remembers the
9266         target specific flags that might change for compiling a particular
9267         function.
9268         (union tree_node): Include tree_optimization_option and
9269         tree_target_option fields.
9270         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
9271         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
9272         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
9273         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
9274         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
9275         optimization and target options.
9276         (optimization_default_node): New macro to refer to global_trees
9277         field.
9278         (optimization_current_node): Ditto.
9279         (optimization_cold_node): Ditto.
9280         (optimization_hot_node): Ditto.
9281         (target_option_default_node): Ditto.
9282         (target_option_current_node): Ditto.
9283         (current_option_pragma): Ditto.
9284         (current_optimize_pragma): Ditto.
9285
9286         * target.h (struct gcc_target): Add valid_option_attribute_p,
9287         target_option_save, target_option_restore, target_option_print,
9288         target_option_pragma_parse, and can_inline_p hooks.
9289
9290         * toplev.h (parse_optimize_options): Add declaration.
9291         (fast_math_flags_struct_set_p): Ditto.
9292
9293         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
9294         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
9295         optimize is used.
9296
9297         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
9298         tree_can_inline_p hook to see if one function can inline another.
9299         (cgraph_decide_inlining): Ditto.
9300         (cgraph_decide_inlining_incrementally): Ditto.
9301
9302         * opts.c (decode_options): Add support for running multiple times
9303         to allow functions with different target or optimization options
9304         than was specified on the command line.
9305         (fast_math_flags_struct_set_p): New function that is similar to
9306         fast_math_flags_set_p, except it uses the values in the
9307         cl_optimization structure instead of global variables.
9308
9309         * optc-gen.awk: Add support for TargetSave to allow a back end to
9310         declare new fields that need to be saved when using function
9311         specific options.  Include flags.h and target.h in the options.c
9312         source.  Add support for Save to indicate which options can be set
9313         for individual functions.  Generate cl_optimize_save,
9314         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
9315         cl_target_option_restore, cl_target_option_print functions to
9316         allow functions to use different optimization or target options.
9317
9318         * opt-functions.awk (var_type_struct): Return the type used for
9319         storing the field in a structure.
9320
9321         * opth-gen.awk: Add support for TargetSave to allow a back end to
9322         declare new fields that need to be saved when using function
9323         specific options.  Add support for Save to indicate which options
9324         can be set for individual functions.  Only generate one extern for
9325         Mask fields.  Generate cl_optimization and cl_target_option
9326         structures to remember optimization and target options.
9327
9328         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
9329         collecting new tree nodes.
9330         (TS_TARGET_OPTION): Ditto.
9331
9332         * c-decl.c (merge_decls): Merge function specific target and
9333         optimization options.
9334
9335         * function.c (invoke_set_current_function_hook): If the function
9336         uses different optimization options, change the global variables
9337         to reflect this.
9338
9339         * coretypes.h (struct cl_optimization): Add forward reference.
9340         (struct cl_target_option): Ditto.
9341
9342         * c-pragma.c (option_stack): New static vector to remember the
9343         current #pragma GCC option stack.
9344         (handle_pragma_option): New function to support #pragma GCC option
9345         to change target options.
9346         (optimize_stack): New static vector to remember the current
9347         #pragma GCC optimize stack.
9348         (handle_pragma_optimize): New function to support #pragma GCC
9349         optimize to change optimization options.
9350         (init_pragma): Add support for #pragma GCC optimize and #pragma
9351         GCC option.
9352
9353         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
9354         optimization options.
9355         (TARGET_OPTION_NODE): New tree code for remembering certain target
9356         options.
9357
9358         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
9359         TARGET_OPTION_NODE trees.
9360
9361         * common.opt (-O): Add Optimization flag.
9362         (-Os): Ditto.
9363         (-fmath-errno): Ditto.
9364         (-falign-functions): Add UInteger flag to make sure flag gets full
9365         int in cl_optimization structure.
9366         (-falign-jumps): Ditto.
9367         (-falign-labels): Ditto.
9368         (-falign-loops): Ditto.
9369         (-fsched-stalled-insns): Ditto.
9370         (-fsched-stalled-insns-dep): Ditto.
9371
9372         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
9373         definition.
9374         (TARGET_OPTION_SAVE): Ditto.
9375         (TARGET_OPTION_RESTORE): Ditto.
9376         (TARGET_OPTION_PRINT): Ditto.
9377         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
9378         (TARGET_CAN_INLINE_P): Ditto.
9379         (TARGET_INITIALIZER): Add new hooks.
9380
9381         * tree-inline.c (tree_can_inline_p): New function to determine
9382         whether one function can inline another.  Check if the functions
9383         use compatible optimization options, and also call the backend
9384         can_inline_p hook.
9385
9386         * tree-inline.h (tree_can_inline_p): Add declaration.
9387
9388         * c-common.c (c_common_attribute): Add support for option and
9389         optimize attributes.
9390         (handle_option_attribute): Add support for the option attribute to
9391         allow the user to specify different target options for compiling a
9392         specific function.
9393         (handle_optimize_attribute): Add support for the optimize
9394         attribute to allow the user to specify different optimization
9395         options for compiling a specific function.
9396         (handle_hot_attribute): Turn on -O3 optimization for this one
9397         function if it isn't the default optimization level.
9398         (handle_cold_attribute): Turn on -Os optimization for this one
9399         function if it insn't the default optimization.
9400         (const_char_p): New const char * typedef.
9401         (optimize_args): New static vector to remember the optimization
9402         arguments.
9403         (parse_optimize_options): New function to set up the optimization
9404         arguments from either the optimize attribute or #pragma GCC optimize.
9405
9406         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
9407         (builtin_define_std): Ditto.
9408
9409         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
9410         Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
9411         (x86_64-*-*): Ditto.
9412
9413         * Makefile.in (TREE_H): Add options.h.
9414         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
9415
9416         * doc/extend.texi (option attribute): Document new attribute.
9417         (optimize attribute): Ditto.
9418         (hot attribute): Document hot attribute sets -O3.
9419         (cold attribute): Document cold attribute sets -Os.
9420         (#pragma GCC option): Document new pragma.
9421         (#pragma GCC optimize): Ditto.
9422
9423         * doc/options.texi (TargetSave): Document TargetSave syntax.
9424         (UInteger): Document UInteger must be used for certain flags.
9425         (Save): Document Save option to create target specific options
9426         that can be saved/restored on a function specific context.
9427
9428         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
9429         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
9430
9431         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
9432         (TARGET_OPTION_SAVE): Ditto.
9433         (TARGET_OPTION_RESTORE): Ditto.
9434         (TARGET_OPTION_PRINT): Ditto.
9435         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
9436         (TARGET_CAN_INLINE_P): Ditto.
9437
9438         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
9439         -mfpmath=sse,387.
9440         (-mfpmath=both): Ditto.
9441
9442 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
9443             Karthik Kumar  <karthikkumar@gmail.com>
9444
9445         * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
9446         (TARGET_POPCNT): Ditto.
9447         (TARGET_SAHF): Ditto.
9448         (TARGET_AES): Ditto.
9449         (TARGET_PCLMUL): Ditto.
9450         (TARGET_CMPXCHG16B): Ditto.
9451         (TARGET_RECIP): Move switch into target_flags.
9452         (TARGET_FUSED_MADD): Ditto.
9453         (ix86_arch_features): Make an unsigned char type.
9454         (ix86_tune_features): Ditto.
9455         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
9456         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
9457         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
9458
9459         * config/i386/i386.opt (arch): New TargetSave field to define
9460         fields that need to be saved for function specific option support.
9461         (tune): Ditto.
9462         (fpmath): Ditto.
9463         (branch_cost): Ditto.
9464         (ix86_isa_flags_explicit): Ditto.
9465         (tune_defaulted): Ditto.
9466         (arch_specified): Ditto.
9467         (-m128-long-double): Add Save flag to save option for target
9468         specific option support.
9469         (-m80387): Ditto.
9470         (-maccumulate-outgoing-args): Ditto.
9471         (-malign-double): Ditto.
9472         (-malign-stringops): Ditto.
9473         (-mfancy-math-387): Ditto.
9474         (-mhard-float): Ditto.
9475         (-mieee-fp): Ditto.
9476         (-minline-all-stringops): Ditto.
9477         (-minline-stringops-dynamically): Ditto.
9478         (-mms-bitfields): Ditto.
9479         (-mno-align-stringops): Ditto.
9480         (-mno-fancy-math-387): Ditto.
9481         (-mno-push-args): Ditto.
9482         (-mno-red-zone): Ditto.
9483         (-mpush-args): Ditto.
9484         (-mred-zone): Ditto.
9485         (-mrtd): Ditto.
9486         (-msseregparm): Ditto.
9487         (-mstack-arg-probe): Ditto.
9488         (-m32): Ditto.
9489         (-m64): Ditto.
9490         (-mmmx): Ditto.
9491         (-m3dnow): Ditto.
9492         (-m3dnowa): Ditto.
9493         (-msse): Ditto.
9494         (-msse2): Ditto.
9495         (-msse3): Ditto.
9496         (-msse4.1): Ditto.
9497         (-msse4.2): Ditto.
9498         (-msse4): Ditto.
9499         (-mno-sse4): Ditto.
9500         (-msse4a): Ditto.
9501         (-msse5): Ditto.
9502         (-mrecip): Move flag into target_flags.
9503         (-mcld): Ditto.
9504         (-mno-fused-madd): Ditto.
9505         (-mfused-madd): Ditto.
9506         (-mabm): Move flag into ix86_isa_flags.
9507         (-mcx16): Ditto.
9508         (-mpopcnt): Ditto.
9509         (-msahf): Ditto.
9510         (-maes): Ditto.
9511         (-mpclmul): Ditto.
9512
9513         * config/i386/i386-c.c: New file for #pragma support.
9514         (ix86_target_macros_internal): New function to #define or #undef
9515         target macros based when the user uses the #pragma GCC option to
9516         change target options.
9517         (ix86_pragma_option_parse): New function to add #pragma GCC option
9518         support.
9519         (ix86_target_macros): Move defining the target macros here from
9520         TARGET_CPU_CPP_BUILTINS in i386.h.
9521         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
9522         defined, initialize any subtarget #pragmas.
9523
9524         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
9525         REGISTER_TARGET_PRAGMAS.
9526
9527         * config/i386/t-i386: New file for x86 dependencies.
9528         (i386.o): Make dependencies mirror the include files used.
9529         (i386-c.o): New file, add dependencies.
9530
9531         * config/i386/i386-protos.h (override_options): Add bool argument.
9532         (ix86_valid_option_attribute_tree): Add declaration.
9533         (ix86_target_macros): Ditto.
9534         (ix86_register_macros): Ditto.
9535
9536         * config/i386/i386.c (ix86_tune_features): Move initialization of
9537         the target masks to initial_ix86_tune_features to allow functions
9538         to have different target options.  Make type unsigned char,
9539         instead of unsigned int.
9540         (initial_ix86_tune_features): New static vector to hold processor
9541         masks for the tune variables.
9542         (ix86_arch_features): Move initialization of the target masks to
9543         initial_ix86_arch_features to allow functions to have different
9544         target options.  Make type unsigned char, instead of unsigned int.
9545         (initial_ix86_arch_features): New static vector to hold processor
9546         masks for the arch variables.
9547         (enum ix86_function_specific_strings): New enum to describe the
9548         string options used for attribute((option(...))).
9549         (ix86_target_string): New function to return a string that
9550         describes the target options.
9551         (ix86_debug_options): New function to print the current options in
9552         the debugger.
9553         (ix86_function_specific_save): New function hook to save the
9554         function specific global variables in the cl_target_option structure.
9555         (ix86_function_specific_restore): New function hook to restore the
9556         function specific variables from the cl_target_option structure to
9557         the global variables.
9558         (ix86_function_specific_print): New function hook to print the
9559         target specific options in the cl_target_option structure.
9560         (ix86_valid_option_attribute_p): New function hook to validate
9561         attribute((option(...))) arguments.
9562         (ix86_valid_option_attribute_tree): New function that is common
9563         code between attribute((option(...))) and #pragma GCC option
9564         support that parses the options and returns a tree holding the options.
9565         (ix86_valid_option_attribute_inner_p): New helper function for
9566         ix86_valid_option_attribute_tree.
9567         (ix86_can_inline_p): New function hook to decide if one function
9568         can inline another on a target specific basis.
9569         (ix86_set_current_function); New function hook to switch target
9570         options if the user used attribute((option(...))) or #pragma GCC
9571         option.
9572         (ix86_tune_defaulted): Move to static file scope from
9573         override_options.
9574         (ix86_arch_specified): Ditto.
9575         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
9576         ix86_isa_flags.
9577         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
9578         (OPTION_MASK_ISA_ABM_SET): Ditto.
9579         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
9580         (OPTION_MASK_ISA_CX16_SET): Ditto.
9581         (OPTION_MASK_ISA_SAHF_SET): Ditto.
9582         (OPTION_MASK_ISA_AES_UNSET): Ditto.
9583         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
9584         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
9585         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
9586         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
9587         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
9588         (struct ptt): Move to static file scope from override_options.
9589         (processor_target_table): Ditto.
9590         (cpu_names): Ditto.
9591         (ix86_handle_option): Add support for options that are now isa options.
9592         (override_options): Add support for declaring functions that
9593         support different target options than were specified on the
9594         command line.  Move struct ptt, processor_target_table, cpu_names,
9595         ix86_tune_defaulted, ix86_arch_specified to static file scope.
9596         Add bool argument.  Fix up error messages so the appropriate error
9597         is given for either command line or attribute.
9598         (ix86_previous_fndecl): New static to remember previous function
9599         declaration to see if we need to change target options.
9600         (ix86_builtins_isa): New array to record the ISA of each builtin
9601         function.
9602         (def_builtin): Always create the builtin function, even if the
9603         current ISA doesn't support it.
9604         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
9605         tests for those builtins.
9606         (ix86_init_builtins): Remove TARGET_MMX test for calling
9607         ix86_init_mmx_sse_builtins.
9608         (ix86_expand_builtin): If the current ISA doesn't support a given
9609         builtin, signal an error.
9610         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
9611         (TARGET_SET_CURRENT_FUNCTION): Ditto.
9612         (TARGET_OPTION_SAVE): Ditto.
9613         (TARGET_OPTION_RESTORE): Ditto.
9614         (TARGET_OPTION_PRINT): Ditto.
9615         (TARGET_CAN_INLINE_P): Ditto.
9616
9617 2008-07-22  Rafael Ãƒvila de Espíndola  <espindola@google.com>
9618
9619         * c-typeck.c (build_external_ref): Don't call assemble_external.
9620         * final.c (output_operand): Call assemble_external.
9621
9622 2008-07-21  DJ Delorie  <dj@redhat.com>
9623
9624         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
9625         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
9626
9627 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9628
9629         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
9630         original insn and splitter contents into ...
9631         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
9632         flag_unsafe_math_optimizations.  Add dummy scratch register.
9633         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
9634         !flag_unsafe_math_optimizations.  Returns number with next
9635         highest magnitude if this is still less or equal to the true
9636         quotient in magnitude.
9637
9638 2008-07-21  Rafael Ãƒvila de Espíndola  <espindola@google.com>
9639
9640         * Makefile.in: Replace toplev.h with TOPLEV_H.
9641         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
9642         * c-lex.c (fe_file_change): Don't set in_system_header.
9643         * c-parser.c (c_token): Remove in_system_header.
9644         (c_lex_one_token): Don't set in_system_header.
9645         (c_parser_set_source_position_from_token): Don't set in_system_header.
9646         * diagnostic.c (diagnostic_report_diagnostic): Use location from
9647         diagnostic_info.
9648         (warning_at): New.
9649         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
9650         * flags.h (in_system_header): Remove.
9651         * function.c (saved_in_system_header): Remove.
9652         (push_cfun): Don't set in_system_header.
9653         (pop_cfun): Don't set in_system_header.
9654         (push_struct_function): Don't set in_system_header.
9655         * input.h (expanded_location): Add sysp.
9656         (in_system_header_at): New.
9657         (in_system_header): New.
9658         * toplev.c (in_system_header): Remove.
9659         * toplev.h: Include input.h
9660         (warning_at): New.
9661         * tree-cfg.c (execute_warn_function_return): Call warning_at.
9662         * tree-ssa.c (warn_uninit): Call warning_at.
9663         (warn_uninitialized_var): Update calls to warn_uninit.
9664         (warn_uninitialized_phi): Update calls to warn_uninit.
9665         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
9666         (expand_location): Initialize xloc.sysp.
9667         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
9668         (tree_decl_with_vis): Remove in_system_header_flag.
9669
9670 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
9671
9672         PR target/36822
9673         * recog.c (asm_operand_ok): Change the order of the extra
9674         memory constraint checks.
9675
9676 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9677
9678         PR tree-opt/36879
9679         * tree-switch-conversion.c (build_one_array): Call
9680         varpool_mark_needed_node and varpool_finalize_decl
9681         instead of assemble_variable.
9682
9683 2008-07-19  Jan Hubicka  <jh@suse.cz>
9684
9685         * cgraph.c (cgraph_add_new_function): Do early local passes.
9686         * tree-nrv.c (gate_pass_return_slot): New gate.
9687         (pass_nrv): Add the gate.
9688         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
9689         functions.
9690         (coalesce_ssa_name): Coalesce SSA names.
9691         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
9692         not optimizing so unused user vars remains visible.
9693         * common.opt (flag_tree_ter): Always enable by default.
9694         * tree-ssa-ter.c: Include flags.h
9695         (is_replaceable_p): Check that locations match; when aliasing
9696         is missing be conservative about loads.
9697         * tree-optimize.c (gate_init_datastructures): Remove.
9698         (pass_init_datastructures): New.
9699         * passes.c: Reorder passes so we always go into SSA.
9700
9701 2008-07-19  Jan Hubicka  <jh@suse.cz>
9702
9703         * doc/extend.texi (flatten attribute): Remove note about
9704         unit-at-a-time.
9705         * doc/invoke.texi (--combine): Likewise.
9706         (-finline-functions-called-once): Update levels when enabled.
9707         (-funit-at-a-time): Document new behaviour.
9708         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
9709         -fno-section-anchors when disabled explicitly.
9710         (inline params): They are not ignored now.
9711         (precompiled headers): Remove unit-at-a-time as being incompatible.
9712         * opts.c (decode_options): Handle unit-at-a-time as alias;
9713         imply -fno-section-anchors when toplevel reorder is disabled
9714         explicitly.
9715         * common.opt (ftoplevel-reorder): Set default value to 2.
9716         (funit-at-a-time): Set default value to 1.
9717         * config/rs6000/rs6000.c (optimization_options): Set section anchors
9718         to 2.
9719
9720 2008-07-19  Jan Hubicka  <jh@suse.cz>
9721
9722         * builtins.c (expand_builtin_int_roundingfn,
9723         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
9724         it is not useful.
9725
9726 2008-07-19  Richard Guenther  <rguenther@suse.de>
9727
9728         PR bootstrap/36864
9729         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
9730         * tree-ssa-sccvn.c (get_constant_value_id): New function.
9731         * tree-ssa-pre.c (get_expr_value_id): For newly created
9732         constant value-ids make sure to add the expression to its
9733         expression-set.
9734
9735 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
9736
9737         PR middle-end/36877
9738         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
9739         return value of the builtin is ignored.
9740
9741 2008-07-19  Olivier Hainque  <hainque@adacore.com>
9742
9743         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
9744         bits, a C conformant malloc implementation has to provide.
9745         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
9746
9747 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
9748
9749         PR target/36780
9750         PR target/36827
9751         * reload.c (find_reloads_subreg_address): Only reload address if
9752         reloaded == 0, not for reloaded != 1.
9753
9754         Revert:
9755         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
9756         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
9757         (m32c_legitimate_address_p): Handle "++rii" addresses created by
9758         m32c_legitimize_reload_address.
9759
9760         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
9761         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
9762         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
9763
9764 2008-07-19  Olivier Hainque  <hainque@adacore.com>
9765
9766         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
9767         argument, saying whether nested array are to be collapsed
9768         into a single array type DIE with multiple subscripts.
9769         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
9770         issues, centralize the nested array types collapsing control and
9771         disable the transformation for Ada.
9772
9773 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
9774
9775         PR target/36786
9776         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
9777         x86_64_shift_adj.
9778         (x86_64_shift_adj_2): New expander.
9779         (x86_64_shift_adj_3): Ditto.
9780         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
9781         to split TImode operands.
9782         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
9783         (ix86_split_lshr): Ditto.
9784
9785 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
9786
9787         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
9788         and __CHAR32_TYPE__.
9789         * c-typeck.c (digest_init): Support char16_t and char32_t.
9790         (set_nonincremental_init_from_string): Idem.
9791
9792 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9793
9794         PR middle-end/36859
9795         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
9796         PREFERRED_STACK_BOUNDARY.
9797         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
9798
9799 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9800
9801         PR middle-end/36858
9802         * function.c (locate_and_pad_parm): Cap boundary earlier.
9803
9804 2008-07-17  Julian Brown  <julian@codesourcery.com>
9805
9806         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
9807         no-op for targets which don't use DLLs.
9808
9809 2008-07-17  Martin Jambor  <mjambor@suse.cz>
9810
9811         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
9812         that nodes are relevant by examining the node->analyzed flag.
9813         (ipcp_init_stage): Check which nodes are relevant, assert that the
9814         relevant ones are also required.
9815         (ipcp_propagate_stage): Check on the side arrays are properly
9816         allocated.
9817         (ipcp_print_all_jump_functions): Make sure not to touch any node
9818         that is not analyzed or an edge that does not have a corresponding
9819         entry in the on-the-side vectors.
9820         (ipcp_function_scale_print): Likewise.
9821         (ipcp_update_callgraph): Check that the node is relevant.
9822         (ipcp_insert_stage): Check that the node is relevant.  Check there is
9823         an info for every node and edge.
9824         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
9825         (ipa_print_all_tree_maps): Likewise and a new variable info.
9826         (ipa_print_all_params_modified): Likewise.
9827         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
9828
9829 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
9830
9831         PR target/25343
9832         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
9833
9834 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
9835
9836         PR rtl-optimization/36753
9837         * fwprop.c (use_killed_between): Don't shortcut
9838         single-definition global registers.
9839
9840 2008-07-16  Jan Hubicka  <jh@suse.cz>
9841
9842         * cgraph.h (varpool_empty_needed_queue): Declare.
9843         * cgraphunit.c (output_in_order): Mark all variables as needed;
9844         empty the queue.
9845         * varpool.c (varpool_assemble_node): Update debug queue.
9846         (varpool_assemble_pending_decls): Don't do it here.
9847         (varpool_empty_needed_queue):  New function.
9848
9849 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9850
9851         * recog.c (peephole2_optimize): Fix formatting.
9852
9853 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9854
9855         * c-pch.c (get_ident): Avoid C++ keywords.
9856         * combine-stack-adj.c (single_set_for_csa): Likewise.
9857         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
9858         output_asm_insn): Likewise.
9859         * reload.c (push_secondary_reload, find_reusable_reload,
9860         push_reload, combine_reloads, find_reloads,
9861         debug_reload_to_stream): Likewise.
9862         * reload.h (struct reload): Likewise.
9863         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
9864         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
9865         emit_output_reload_insns): Likewise.
9866         * targhooks.c (default_secondary_reload): Likewise.
9867         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
9868
9869 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9870
9871         * recog.c (validate_change_1, validate_change,
9872         validate_unshare_change, validate_replace_rtx_1, struct
9873         funny_match, constrain_operands, peephole2_optimize): Avoid C++
9874         keywords.
9875         * reload.c (push_secondary_reload, secondary_reload_class,
9876         scratch_reload_class, find_valid_class, find_reusable_reload,
9877         push_reload, find_dummy_reload, find_reloads_address_1,
9878         find_reloads_address_part, find_equiv_reg): Likewise.
9879         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
9880         choose_reload_regs): Likewise.
9881         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
9882         Likewise.
9883         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
9884         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
9885         * sched-rgn.c (concat_INSN_LIST): Likewise.
9886         * stor-layout.c (mode_for_size, mode_for_size_tree,
9887         smallest_mode_for_size): Likewise.
9888
9889 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9890
9891         * cfg.c (dump_reg_info): Avoid C++ keywords.
9892         * dwarf2asm.c (dw2_force_const_mem,
9893         dw2_asm_output_encoded_addr_rtx): Likewise.
9894         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
9895         * expmed.c (expand_shift): Likewise.
9896         * global.c (find_reg): Likewise.
9897         * graph.c (draw_edge): Likewise.
9898         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
9899         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
9900         widen_clz, widen_bswap, expand_parity, expand_unop,
9901         emit_cmp_and_jump_insn_1): Likewise.
9902         * postreload.c (reload_cse_simplify_operands): Likewise.
9903         * ra.h (add_neighbor): Likewise.
9904         * reg-stack.c (remove_regno_note, change_stack): Likewise.
9905         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
9906         record_reg_classes, copy_cost, record_address_regs,
9907         invalid_mode_change_p): Likewise.
9908         * regrename.c (regrename_optimize, scan_rtx_reg,
9909         dump_def_use_chain, find_oldest_value_reg,
9910         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
9911
9912 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
9913
9914         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
9915         MASK_POWERPC64 for power4 in previous commit.
9916
9917 2008-07-16  Olivier Hainque  <hainque@adacore.com>
9918
9919         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
9920         instead of bare conversion to cast const-ness away.
9921
9922 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
9923
9924         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
9925         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
9926         * config/xtensa/xtensa.c (xtensa_function_value): New function.
9927         (TARGET_FUNCTION_VALUE): Define.
9928
9929 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
9930
9931         * config/rs6000/rs6000.c (processor_target_table): Add
9932         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
9933
9934 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
9935
9936         PR target/36827
9937         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
9938         (m32c_legitimate_address_p): Handle "++rii" addresses created by
9939         m32c_legitimize_reload_address.
9940
9941 2007-07-16  Rafael Ãƒvila de Espíndola  <espindola@google.com>
9942
9943         * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
9944         DECL_IN_SYSTEM_HEADER in sync.
9945
9946 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
9947
9948         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
9949         * tree-ssa-pre.c (pre_expr_eq): Ditto
9950         (get_constant_for_value_id): Take a type as an argument.
9951         (fully_constant_expression): Pass in type.
9952         (find_or_generate_expression): Short circuit constant case.
9953         (create_expression_by_pieces): Remove special casing of
9954         pointer_plus.
9955         (do_regular_insertion): Short circuit constant case.
9956         (do_partial_partial_insertion): Ditto.
9957
9958 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
9959
9960         PR target/36782
9961         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
9962
9963 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
9964
9965         * config/xtensa/libgcc-xtensa.ver: New file.
9966         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
9967
9968 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9969
9970         * df-problems.c (df_set_note): Avoid C++ keywords.
9971         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
9972         * dse.c (record_store, remove_useless_values): Likewise.
9973         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
9974         gen_reg_rtx_offset, operand_subword, change_address_1,
9975         change_address, adjust_address_1, offset_address,
9976         widen_memory_access, emit_copy_of_insn_after): Likewise.
9977         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
9978         * fwprop.c (should_replace_address, propagate_rtx_1,
9979         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
9980         Likewise.
9981         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
9982         gcse_emit_move_after, update_ld_motion_stores): Likewise.
9983         * lcm.c (compute_insert_delete, pre_edge_lcm,
9984         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
9985         * lower-subreg.c (resolve_reg_notes): Likewise.
9986         * mode-switching.c (optimize_mode_switching): Likewise.
9987
9988 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9989
9990         * bt-load.c (add_btr_def, migrate_btr_def,
9991         branch_target_load_optimize): Avoid C++ keywords.
9992         * caller-save.c (insert_restore, insert_save, insert_one_insn):
9993         Likewise.
9994         * combine.c (subst, simplify_set, make_extraction,
9995         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
9996         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
9997         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
9998
9999 2008-07-15  Richard Guenther  <rguenther@suse.de>
10000
10001         PR middle-end/36369
10002         * c-common.c (strict_aliasing_warning): Do not warn for
10003         TYPE_REF_CAN_ALIAS_ALL pointers.
10004         (c_common_get_alias_set): may_alias types are not special.
10005         * tree.c (build_pointer_type_for_mode): Look up the may_alias
10006         attribute and set can_ref_all accordingly.
10007         (build_reference_type_for_mode): Likewise.
10008         * doc/extend.texi (may_alias): Clarify.
10009
10010 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
10011
10012         PR target/36780
10013         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
10014         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
10015
10016 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10017
10018         PR target/31568
10019         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
10020         gcc_assert, instead call output_operand_lossage.
10021
10022 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
10023
10024         * builtins.c (std_canonical_va_list): Treat structure based
10025         va_list types.
10026
10027 2008-07-15  Ben Elliston  <bje@au.ibm.com>
10028
10029         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
10030
10031 2007-07-14  Rafael Ãƒvila de Espíndola  <espindola@google.com>
10032
10033         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
10034         is set.
10035
10036 2008-07-14  Jan Hubicka  <jh@suse.cz>
10037
10038         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
10039         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
10040         fix predicates and constraints.
10041         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
10042         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
10043
10044 2008-07-14  Doug Kwan  <dougkwan@google.com>
10045
10046         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
10047         additional option file arm/eabi.opt.
10048         * config/arm/eabi.h (File): New configuration file for EABI targets.
10049         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
10050         SUBSUBTARGET_EXTRA_SPECS.
10051         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
10052         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
10053         from STARTFILE_SPEC so that it can be referenced in an override.
10054         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
10055         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
10056         can be referenced in an override.
10057         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
10058         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
10059         so that it can be referenced in an override.
10060         (LINK_SPEC): Use BPABI_LINK_SPEC.
10061         * config/arm/eabi.opt (File): New.
10062
10063 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10064
10065         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
10066         (FIXED_VALUE_H): New variable.
10067         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
10068         input.h, fixed-value.h.
10069         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
10070         (BASIC_BLOCK_H): Use $(BITMAP_H).
10071         (FUNCTION_H): Add varray.h.
10072         (IPA_REFERENCE_H): Use $(BITMAP_H).
10073         (CGRAPH_H): Add $(BASIC_BLOCK_H).
10074         (DF_H): Use $(BITMAP_H).
10075         (GGC_H): Add statistics.h.
10076         (INSN_ADDR_H): New.
10077         (INSN_ATTR_H): Use it.
10078         (SYSTEM_H): Add safe-ctype.h, filenames.h.
10079         (INPUT_H): New.
10080         (SYMTAB_H): Add $(OBSTACK_H).
10081         (CPP_INTERNAL_H): New.
10082         (TREE_DUMP_H): Add tree-pass.h.
10083         (TREE_FLOW_H): Use $(BITMAP_H)
10084         (PRETTY_PRINT_H): Use $(INPUT_H).
10085         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
10086         (GSTAB_H): New.
10087         (BITMAP_H): New.
10088         (many object files): Fix lots of header dependencies throughout.
10089
10090 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10091
10092         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
10093         New macros.
10094         (s-gtyp-input): Use them to write tmp-gi.list.
10095         (echo_to_gi.list): Remove.
10096
10097 2008-07-14  Richard Guenther  <rguenther@suse.de>
10098
10099         * tree-ssa-sccvn.c (pre_info): Remove.
10100         (switch_to_PRE_table): Likewise.
10101         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
10102         (set_hashtable_value_ids): Do not create value-ids for the
10103         optimistic tables.
10104         (run_scc_vn): Remove double test.  Remove bogus special-case
10105         in value-number printing.
10106         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
10107         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
10108         SSA_NAME_VALUE.
10109         * tree-flow-inline.h (get_value_handle): Remove.
10110         * tree-flow.h (get_value_handle): Remove.
10111
10112 2008-07-14  Martin Jambor  <mjambor@suse.cz>
10113
10114         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
10115         in which we generate arithmetics is not a subrange.
10116
10117 2008-07-14  Martin Jambor  <mjambor@suse.cz>
10118
10119         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
10120
10121 2008-07-14  Richard Guenther  <rguenther@suse.de>
10122
10123         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
10124
10125 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
10126
10127         PR target/36745
10128         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
10129         reload for symbol refs moved to r0 with -fPIC.
10130         (legitimize_pic_address): Use the target register as temporary
10131         reg if possible.
10132         (emit_symbolic_move): Adjust comment.
10133         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
10134         New expanders.
10135
10136 2008-07-14  Ben Elliston  <bje@au.ibm.com>
10137
10138         * c-common.h (C_CPP_HASHNODE): New macro.
10139         * coretypes.h (struct cpp_token): Forward declare.
10140         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
10141         the context-sensitive keyword method.
10142         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
10143         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
10144         expand_bool_pixel): New.
10145         (altivec_categorize_keyword): New function.
10146         (init_vector_keywords): New function.
10147         (rs6000_macro_to_expand): Likewise.
10148         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
10149         compiling an ISO C dialect.
10150
10151 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
10152
10153         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
10154         (create_expression_by_pieces): Fix typo.
10155         (do_regular_insertion): Use debug counter here too.
10156
10157 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
10158
10159         PR target/35492.
10160         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
10161         CONST_OK_FOR_LETTER_P.  All port-local users changed.
10162         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
10163         implement Kp matching power-of-two.
10164         (CONSTRAINT_LEN): Define to match.
10165         * config/cris/cris.md: Replace all use of constraint K with Kc.
10166         ("*btst*): Use Kp for operand 0 of last alternative.
10167
10168 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10169
10170         PR testsuite/36440
10171         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
10172         and quad formats.
10173
10174 2008-07-13  Jan Hubicka  <jh@suse.cz>
10175
10176         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
10177         to be mangled too.
10178
10179 2008-07-13  Richard Guenther  <rguenther@suse.de>
10180
10181         PR middle-end/36811
10182         * langhooks.c (lhd_print_error_function): Deal with recursive
10183         BLOCK trees.
10184
10185 2008-07-12  Jan Hubicka  <jh@suse.cz>
10186
10187         * cgraph.c (assembler_name_hash): New static var.
10188         (hash_node_by_assembler_name, eq_assembler_name): New.
10189         (cgraph_node_for_asm): Use hashtable.
10190         (cgraph_remove_node): Maintain hashtable.
10191         (change_decl_assembler_name): Sanity check that names are not changing
10192         after aliasing was processed.
10193         * cgraph.h (varpoon_node): Add next GGC marker.
10194         * tree.c (decl_assembler_name_equal): Constify.
10195         (decl_assembler_name_hash): New.
10196         * tree.h (decl_assembler_name_equal): Constify.
10197         (decl_assembler_name_hash): Update.
10198
10199 2008-07-12  David Daney  <ddaney@avtrex.com>
10200
10201         * config/mips/driver-native.c (host_detect_local_cpu): Handle
10202         sb1 and r5000 cpus.
10203
10204 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10205
10206         * doc/md.texi: Document the MIPS "v" constraint.
10207         * config/mips/mips.h (reg_class): Revert last change.
10208         (REG_CLASS_NAMES): Likewise.
10209         (REG_CLASS_CONTENTS): Likewise.
10210         * config/mips/mips.c (mips_regno_to_class): Likewise.
10211         * config/mips/constraints.md (v): Likewise, but add documentation.
10212         Add a comment to say that this constraint should not be used in
10213         gcc code.
10214
10215 2008-07-11  DJ Delorie  <dj@redhat.com>
10216
10217         * config/h8300/h8300.md (length): Fix branch offset limit.
10218
10219 2008-07-11  Anatoly Sokolov  <aesok@post.ru>
10220
10221         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
10222         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
10223         (avr_hard_regno_scratch_ok): New function.
10224         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
10225         * config/avr/avr.md (all peepholes that request a scratch register):
10226         Remove avr_peep2_scratch_safe use.
10227
10228 2008-07-11  Tom Tromey  <tromey@redhat.com>
10229             Ian Lance Taylor  <iant@google.com>
10230
10231         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
10232         (struct c_common_resword): Define.
10233         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
10234         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
10235         (c_common_reswords, num_c_common_reswords): Declare.
10236         * c-common.c (c_common_reswords): New global const array.
10237         (num_c_common_reswords): New const int.
10238         * c-parser.c (struct resword, reswords): Don't define.
10239         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
10240         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
10241         than reswords.  If warning about C++ keywords, give them a special
10242         RID code.
10243         (c_lex_one_token): Warn about C++ keywords.  Call
10244         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
10245         (c_parser_external_declaration): Look for RID_xxx rather than
10246         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
10247         (c_parser_statement_after_labels): Likewise.
10248         (c_parser_objc_class_instance_variables): Likewise.
10249         (c_parser_objc_class_declaration): Likewise.
10250         (c_parser_objc_try_catch_statement): Likewise.
10251         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
10252         (declspecs_add_type): Likewise.
10253
10254 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
10255
10256         * ggc-page.c (alloc_page):
10257         Substituting xmalloc, xcalloc with
10258         XNEWVEC and XCNEWVAR macros which add the
10259         needed casts.
10260
10261 2008-07-11  Richard Guenther  <rguenther@suse.de>
10262
10263         PR tree-optimization/36765
10264         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
10265         aliases from HEAP vars to SMTs.
10266
10267 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10268
10269         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
10270         * configure.ac (loose_warn): Move -Wc++-compat from here...
10271         (strict_warn): ...to here.
10272         * configure: Regenerate.
10273
10274 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
10275
10276         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
10277         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
10278         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
10279         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
10280         excluding more specific h8300-*-* and sh-*-* targets.
10281
10282 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
10283
10284         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
10285         (eliminate): Ditto.
10286         (execute_pre): Call loop_optimizer_finalize in early exit.
10287
10288 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
10289
10290         PR middle-end/36790
10291         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
10292         uids in the bitmap, not just VAR_DECL uids.
10293
10294         PR rtl-optimization/36419
10295         * combine-stack-adj.c (adjust_frame_related_expr): New function.
10296         (combine_stack_adjustments_for_block): Call it if needed.  Delete
10297         correct insn.
10298         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
10299         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
10300         prologue sp adjustment.
10301
10302 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
10303
10304         PR other/28322
10305         * opts.c (print_ignored_options): Report postponed diagnostics for
10306         unknown -Wno-* options as warnings, not errors.
10307         (postpone_unknown_option_error): Renamed to...
10308         (postpone_unknown_option_warning): ... this.
10309
10310 2008-07-09  Doug Kwan  <dougkwan@google.com>
10311
10312         Revert:
10313         2008-07-08  Doug Kwan  <dougkwan@google.com>
10314
10315         * config/arm/arm.opt (mandroid): New option.
10316         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
10317         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
10318         (CC1_SPEC): Same.
10319         (CC1PLUS_SPEC): Same.
10320         (LIB_SPEC): Same.
10321         (STARTFILE_SPEC): Same.
10322         (ENDFILE_SPEC): Same.
10323         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
10324         used.
10325
10326 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
10327
10328         PR target/35802
10329         * config/mips/mips.h (reg_class): Remove V1_REG.
10330         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
10331         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
10332         instead of V1_REGS.
10333         (mips_get_tp): New function.
10334         (mips_legitimize_tls_address): Use it.
10335         * config/mips/constraints.md (v): Delete.
10336         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
10337         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
10338         After reload, split into a move and ...
10339         (*tls_get_tp_<mode>_split): ...this new instruction.
10340
10341 2008-07-09  David Daney  <ddaney@avtrex.com>
10342
10343         * config/mips/driver-native.c: Include coretypes.h and tm.h.
10344
10345 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
10346
10347         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
10348         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
10349         Add c argument.
10350         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
10351         htab_delete should be called.  Don't free c.
10352         (lookup_tmp_var): Create temp_htab lazily.
10353         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
10354         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
10355         callers.
10356         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
10357         lower_omp_ordered, lower_omp_critical, lower_omp_for,
10358         create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
10359         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
10360         * tree-sra.c (generate_element_init): Likewise.
10361         * tree-mudflap.c (execute_mudflap_function_ops,
10362         execute_mudflap_function_decls): Likewise.
10363         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
10364         * tree-gimple.h (struct gimplify_ctx): New type.
10365         (push_gimplify_context): Adjust prototype.
10366
10367 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
10368
10369         * tree-ssa-pre.c (phi_translate_1): Update placement of
10370         add_to_value calls.
10371
10372 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
10373
10374         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
10375         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
10376         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
10377         * targhooks.c (default_hard_regno_scratch_ok): New function.
10378         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
10379         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
10380         * recog.c:  Include "target.h".
10381         (peep2_find_free_register): Add check for global regs. Add target
10382         specific check.
10383         * Makefile.in (recog.o): Depend on target.h.
10384
10385 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
10386
10387         * config/sh/sh.c (sh_canonical_va_list_type): New.
10388         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
10389
10390 2008-07-09  Raksit Ashok <raksit@google.com>
10391
10392         * doc/invoke.texi (Option Summary): Mention new option
10393         -Wdisallowed-function-list=...
10394         (Warning Options): Document -Wdisallowed-function-list=...
10395         * common.opt (Wdisallowed-function-list=): New flag.
10396         * flags.h (warn_disallowed_functions): External definition of new
10397         boolean warning flag.
10398         (warn_if_disallowed_function_p): Declare new function.
10399         * opts.c (warning_disallowed_functions): New static variable.
10400         (warn_disallowed_functions): New boolean warning flag.
10401         (warn_if_disallowed_function_p): New function.
10402         (add_comma_separated_to_vector): Rename
10403         add_instrument_functions_exclude_list to this.
10404         (common_handle_option): Handle new option. Rename calls to
10405         add_instrument_functions_exclude_list into calls to
10406         add_comma_separated_to_vector.
10407         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
10408         based on flag warn_disallowed_functions.
10409
10410 2008-07-09  Christian Bruel  <christian.bruel@st.com>
10411
10412         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
10413          instead of get_attr_length.
10414
10415 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10416
10417         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
10418         keywords.
10419         * genemit.c (gen_insn): Likewise.
10420         * gengtype.c (note_def_vec): Likewise.
10421         * gengtype.h (note_def_vec): Likewise.
10422         * genoutput.c (struct data, output_insn_data, process_template,
10423         gen_expand, gen_split, note_constraint): Likewise.
10424         * genrecog.c (new_decision, add_to_sequence, factor_tests,
10425         make_insn_sequence): Likewise.
10426         * gensupport.c (record_insn_name): Likewise.
10427
10428 2008-07-08  Doug Kwan  <dougkwan@google.com>
10429
10430         * config/arm/arm.opt (mandroid): New option.
10431         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
10432         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
10433         (CC1_SPEC): Same.
10434         (CC1PLUS_SPEC): Same.
10435         (LIB_SPEC): Same.
10436         (STARTFILE_SPEC): Same.
10437         (ENDFILE_SPEC): Same.
10438         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
10439         used.
10440
10441 2008-07-08  Raksit Ashok  <raksit@google.com>
10442
10443         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
10444         (set_storage_via_setmem): Fix expected_align parameter.
10445         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
10446         missing from the list.
10447         * doc/md.texi (movmem): Explicitly state that expected alignment is
10448         to be expressed in bytes.
10449         (setmem): Explicitly state that expected alignment is to be expressed
10450         in bytes.
10451
10452 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
10453
10454         * reload.c (find_reloads_subreg_address): Do not require validity
10455         of address in original mode before reloading address.
10456
10457 2008-07-07  Tianwei Sheng  <tianweis@google.com>
10458
10459         * df-core.c (df_remove_problem): Adjust the access to avoid out of
10460         bounds array access.
10461
10462 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
10463
10464         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
10465
10466 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
10467
10468         Fix PR tree-optimization/23455
10469         Fix PR tree-optimization/35286
10470         Fix PR tree-optimization/35287
10471         * Makefile.in (OBJS-common): Remove tree-vn.o.
10472         (tree-vn.o): Remove.
10473         * dbgcnt.def: Add treepre_insert debug counter.
10474         * gcc/tree-flow.h (add_to_value): Updated for other changes.
10475         (debug_value_expressions): Ditto.
10476         (print_value_expressions): Ditto.
10477         * tree-pretty-print.c (dump_generic_node): Updated for
10478         VALUE_HANDLE removal.
10479         * tree-ssa-dom.c (record_equality): Ditto.
10480         (cprop_operand): Ditto.
10481         (lookup_avail_expr): Ditto.
10482         * tree-ssa-threadedge.c
10483         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
10484         (simplify_control_stmt_condition): Ditto.
10485         * tree.c (tree_code_size): Ditto.
10486         (tree_node_structure): Ditto.
10487         (iterative_hash_expr): Ditto.
10488         * tree.def: Ditto.
10489         * tree.h (VALUE_HANDLE_ID): Ditto.
10490         (VALUE_HANDLE_EXPR_SET): Ditto.
10491         (struct tree_value_handle): Ditto.
10492         (union tree_node): Ditto.
10493         * treestruct.def: Ditto.
10494         * tree-vn.c: Removed.
10495         * tree-ssa-pre.c: Rewritten entirely.
10496         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
10497         (constant_value_ids): Ditto.
10498         (vn_nary_op_t): Moved to header.
10499         (vn_phi_t): Ditto.
10500         (vn_reference_op_t): Ditto
10501         (vn_reference_t): Ditto.
10502         (next_value_id): New variable.
10503         (VN_INFO): Add an assert.
10504         (vn_constant_eq): New function.
10505         (vn_constant_hash): Ditto.
10506         (get_or_alloc_constant_value_id): Ditto.
10507         (value_id_constant_p): Ditto.
10508         (vn_reference_compute_hash): De-staticify.
10509         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
10510         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
10511         (valueize_refs): Update opcode if it changes from ssa name to constant.
10512         (vn_reference_lookup_1): Add new argument.
10513         (vn_reference_lookup):  Ditto.
10514         (vn_reference_lookup_pieces): New function.
10515         (vn_reference_insert): Add return type. Modify to deal with value ids.
10516         (vn_reference_insert_pieces):  New function.
10517         (vn_nary_op_compute_hash): De-staticify.
10518         (vn_nary_op_eq): Ditto.
10519         (vn_nary_op_lookup_pieces): New function.
10520         (vn_nary_op_lookup): Add new argument.
10521         (vn_nary_op_insert_pieces): New function.
10522         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
10523         (vn_phi_insert): Ditto.
10524         (visit_unary_op): Update for callee changes.
10525         (visit_binary_op): Ditto.
10526         (visit_reference_op_load): Ditto.
10527         (visit_reference_op_store): Ditto.
10528         (init_scc_vn): Init next_value_id, constant_to_value_id and
10529         constant_value_ids.
10530         (free_scc_vn): Free them.
10531         (set_hashtable_value_ids): New function.
10532         (run_scc_vn): Use it.
10533         (get_max_value_id): New function.
10534         (get_next_value_id): Ditto.
10535         (expressions_equal_p): Moved from tree-vn.c
10536         (sort_vuses): Ditto.
10537         (sort_vuses_heap): Ditto.
10538         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
10539         above).
10540         * tree.c (iterative_hash_hashval_t): Made non-static
10541         * tree.h (iterative_hash_hashval_t): Declare it.
10542
10543 2008-07-08  Martin Jambor  <mjambor@suse.cz>
10544
10545         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
10546         instead of ipa_create_node_params.
10547         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
10548         ipa_check_create_edge_args, free them with
10549         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
10550
10551         * ipa-prop.c: Include flags.h and tree-inline.h.
10552         (ipa_node_params_vector): New variable.
10553         (ipa_edge_args_vector): New variable.
10554         (edge_removal_hook_holder): New variable.
10555         (node_removal_hook_holder): New variable.
10556         (edge_duplication_hook_holder): New variable.
10557         (node_duplication_hook_holder): New variable.
10558         (ipa_detect_param_modifications): Check for presence of modified flags.
10559         (ipa_compute_jump_functions): Check for presence of jump functions.
10560         (ipa_free_edge_args_substructures): New function.
10561         (ipa_create_node_params): Removed.
10562         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
10563         (ipa_free_node_params_substructures): New function.
10564         (ipa_free_all_node_params): Changed to deallocate the on-the-side
10565         vector.
10566         (ipa_edge_removal_hook): New function.
10567         (ipa_node_removal_hook): New function.
10568         (duplicate_array): New function.
10569         (ipa_edge_duplication_hook): New function.
10570         (ipa_node_duplication_hook): New function.
10571         (ipa_register_cgraph_hooks): New function.
10572         (ipa_unregister_cgraph_hooks): New function.
10573         (free_all_ipa_structures_after_ipa_cp): New function.
10574
10575         * ipa-prop.h: Include vec.h.
10576         (ipa_node_params_t): New typedef with vector types for it.
10577         (ipa_edge_args_t):  New typedef with vector types for it.
10578         (IPA_NODE_REF): Changed to access an on-the-side vector.
10579         (IPA_EDGE_REF): Changed to access an on-the-side vector.
10580         (ipa_check_create_node_params): New function.
10581         (ipa_check_create_edge_args): New function.
10582
10583         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
10584         all users.
10585
10586 2008-07-07  Tom Tromey  <tromey@redhat.com>
10587
10588         * configure, config.in: Rebuilt.
10589         * configure.ac: Don't check for scandir or alphasort.
10590
10591 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
10592
10593         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
10594         types immediately after creating them.
10595
10596 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
10597
10598         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
10599
10600 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
10601
10602         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
10603         dump_constraint_graph.
10604         (dump_constraint_edge): New function.
10605         (dump_constraint_graph): New function.
10606         (debug_constraint_graph): New function.
10607         (dump_constraint): Removed useless comparison.
10608         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
10609         (dump_constraint_graph): Declare.
10610         (debug_constraint_graph): Declare.
10611         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
10612
10613 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
10614
10615         * config/i386/i386.c (is_va_list_char_pointer): New.
10616         (ix86_va_start): Replace compare with ms_va_list_type_node
10617         by is_va_list_char_pointer.
10618         (ix86_gimplify_va_arg): Likewise.
10619
10620 2008-07-07  Martin Jambor  <mjambor@suse.cz>
10621
10622         * cgraph.c (cgraph_edge_max_uid): New variable.
10623         (struct cgraph_edge_hook_list): New type.
10624         (struct cgraph_node_hook_list): New type.
10625         (struct cgraph_2edge_hook_list): New type.
10626         (struct cgraph_2node_hook_list): New type.
10627         (first_cgraph_edge_removal_hook): New variable.
10628         (first_cgraph_node_removal_hook): New variable.
10629         (first_cgraph_edge_duplicated_hook): New variable.
10630         (first_cgraph_node_duplicated_hook): New variable.
10631         (cgraph_add_edge_removal_hook): New function.
10632         (cgraph_remove_edge_removal_hook): New function.
10633         (cgraph_call_edge_removal_hooks):  New function.
10634         (cgraph_add_node_removal_hook):  New function.
10635         (cgraph_remove_node_removal_hook):  New function.
10636         (cgraph_call_node_removal_hooks):  New function.
10637         (cgraph_add_edge_duplication_hook):  New function.
10638         (cgraph_remove_edge_duplication_hook):  New function.
10639         (cgraph_call_edge_duplication_hooks):  New function.
10640         (cgraph_add_node_duplication_hook):  New function.
10641         (cgraph_remove_node_duplication_hook):  New function.
10642         (cgraph_call_node_duplication_hooks):  New function.
10643         (cgraph_create_edge): Assign to edge uid.
10644         (cgraph_remove_edge): Call edge removal hooks.
10645         (cgraph_node_remove_callees): Call edge removal hooks.
10646         (cgraph_node_remove_callers): Call edge removal hooks.
10647         (cgraph_remove_node): Call node removal hooks.
10648         (cgraph_clone_edge): Call edge duplication hooks.
10649         (cgraph_clone_node): Call node duplication hooks.
10650
10651         * cgraph.h (cgraph_edge): New field uid.
10652         (cgraph_edge_hook): New type.
10653         (cgraph_node_hook): New type.
10654         (cgraph_2edge_hook): New type.
10655         (cgraph_2node_hook): New type.
10656
10657 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
10658
10659         * config.in: Regenerate.
10660
10661 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
10662
10663         * gcc.c (print_sysroot): New.
10664         (option_map, display_help, process_command): Handle the
10665         -print-sysroot option.
10666         (main): Print the sysroot if requested.
10667         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
10668
10669 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10670
10671         PR target/34780
10672         * unwind-pe.h (size_of_encoded_value): add attribute unused.
10673
10674 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
10675
10676         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
10677         (assign_parm_setup_block_p): Also check mode of entry_parm.
10678
10679 2008-07-07  Richard Guenther  <rguenther@suse.de>
10680
10681         * tree-ssa-structalias.h (set_used_smts): Remove.
10682         * tree-ssa-structalias.c (used_smts): Likewise.
10683         (set_used_smts): Likewise.
10684         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
10685         call to set_used_smts.
10686
10687 2008-07-07  Richard Guenther  <rguenther@suse.de>
10688
10689         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
10690         (new_var_info): Set it to false.
10691         (solution_set_add): Correctly handle pointers outside a var and
10692         inside a field.
10693         (type_safe): Treat variables with is_full_var properly.
10694         (do_sd_constraint): Likewise.
10695         (do_ds_constraint): Likewise.
10696         (process_constraint): Remove zeroing offset for !use_field_sensitive.
10697         (get_constraint_for_ptr_offset): New function.
10698         (get_constraint_for_component_ref): For addresses at least include
10699         the last field of the variable.  Handle is_full_vars properly.
10700         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
10701         (handle_ptr_arith): Remove.
10702         (find_func_aliases): Simplify assignment handling.
10703         (create_function_info_for): For parameter and result varinfos set
10704         is_full_var flag.
10705         (create_variable_info_for): Set is_full_var flag whenever we
10706         just created a single varinfo for a decl.
10707         (init_alias_vars): Initialize use_field_sensitive from
10708         max-fields-for-field-sensitive parameter.
10709
10710 2008-07-07  Richard Guenther  <rguenther@suse.de>
10711
10712         PR tree-optimization/36713
10713         * tree-flow-inline.h (is_call_used): New function.
10714         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
10715         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
10716         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
10717
10718 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
10719
10720         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
10721
10722 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
10723
10724         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
10725
10726 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
10727             Nathan Sidwell  <nathan@codesourcery.com>
10728
10729         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
10730         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
10731         tmake_file.
10732         * config/m68k/t-linux: New.
10733         * doc/install.texi: Document m68k-*-linux is now multilibbed by
10734         default.
10735
10736 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
10737
10738         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
10739         * config/m68k/m68k-devices.def: Remove multilibs that only differ
10740         by MAC/EMAC.
10741
10742 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10743
10744         * gcc.c (execute): Fix -Wc++-compat warning.
10745
10746 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
10747
10748         PR target/36720
10749         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
10750         constant for little endian.
10751
10752 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
10753
10754         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
10755         mips_base_mips16 instead of TARGET_MIPS16.
10756         (mips_base_mips16): Declare.
10757         * config/mips/mips.c (mips_base_mips16): Make global.
10758         (was_mips16_p): Remove GTY marker.
10759         (was_mips16_pch_p): New variable.
10760         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
10761         (mips_override_options): Force to non-MIPS16 mode initially.
10762         Do not complain about MIPS16 PIC incompatibilities here.
10763         Only allow -mgpopt if -mexplicit-relocs is in force for
10764         non-MIPS16 code.
10765
10766 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
10767
10768         * configure.ac: Check for caddr_t, define to char * if not defined.
10769         * configure: Regenerate.
10770         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
10771         (mmap_gt_pch_use_address): Likewise.
10772         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
10773
10774 2008-07-06  Richard Guenther  <rguenther@suse.de>
10775
10776         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
10777         (new_var_info): Deal with it.
10778         (solution_set_add): Likewise.
10779         (bitpos_of_field): Make signed, fix.
10780         (struct fieldoff): Remove type and decl fields.  Make size field
10781         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
10782         flags.
10783         (fieldoff_compare): Deal with it.
10784         (push_fields_onto_fieldstack): Remove has_union argument, glob
10785         adjacent non-pointer fields together.
10786         (create_function_info_for): Do not set has_union.
10787         (create_variable_info_for): Simplify.
10788
10789 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
10790
10791         * config.gcc (extra_headers): Add cross-stdarg.h for target
10792         x86_64-*-* and i?86-*-*.
10793         * config/i386/cross-stdarg.h: New.
10794         * builtins.c (std_fn_abi_va_list): New.
10795         (std_canonical_va_list_type): New.
10796         (stabilize_va_list): Replace va_list_type_node use by
10797         mtarget.canonical_va_list_type.
10798         (gimplify_va_arg_expr): Likewise.
10799         (expand_builtin_va_copy): Replace va_list_type_node use by
10800         mtarget.fn_abi_va_list.
10801         * tree-sra.c (is_va_list_type): New helper.
10802         (decl_can_be_decomposed_p): Replace
10803         va_list_type_node use by is_va_list_type.
10804         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
10805         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
10806         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
10807         * config/i386/i386-protos.h (ix86_get_valist_type): New.
10808         (ix86_enum_va_list): New.
10809         * config/i386/i386.c (sysv_va_list_type_node): New.
10810         (ms_va_list_type_node): New.
10811         (ix86_function_type_abi): Remove sorry.
10812         (ix86_build_builtin_va_list_abi): New.
10813         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
10814         for 64-bit targets.
10815         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
10816         (ix86_init_builtins_va_builtins_abi): New.
10817         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
10818         for 64-bit targets.
10819         (ix86_handle_abi_attribute): New.
10820         (attribute_spec): Add sysv_abi and ms_abi.
10821         (ix86_fn_abi_va_list): New.
10822         (ix86_canonical_va_list_type): New.
10823         (ix86_enum_va_list): New.
10824         (TARGET_FN_ABI_VA_LIST): New.
10825         (TARGET_CANONICAL_VA_LIST_TYPE): New.
10826         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
10827         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
10828         (TARGET_CANONICAL_VA_LIST_TYPE): New.
10829         (TARGET_ENUM_VA_LIST): New.
10830         * expr.h (std_fn_abi_va_list): New.
10831         (std_canonical_va_list_type): New.
10832         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
10833         (TARGET_CANONICAL_VA_LIST_TYPE): New.
10834         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
10835         TARGET_CANONICAL_VA_LIST_TYPE.
10836         * target.h (struct gcc_target): Add fn_abi_va_list hook
10837         and canonical_va_list_type hook.
10838
10839 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10840
10841         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
10842         integral and pointer types.
10843
10844 2008-07-04  Roger Sayle  <roger@eyesopen.com>
10845
10846         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
10847         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
10848
10849 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
10850
10851         PR target/36684
10852         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
10853
10854 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
10855
10856         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
10857         build_gimple_modify_stmt.
10858         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
10859         gimple operand.  Use fold_build* instead of build*.
10860
10861 2008-07-04  Richard Guenther  <rguenther@suse.de>
10862
10863         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
10864         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
10865         properly to compute the reachability set if we do field-sensitive PTA.
10866         * invoke.texi (max-fields-for-field-sensitive): Document default.
10867         * opts.c (decode_options): Set max-fields-for-field-sensitive to
10868         100 for optimize >= 2.
10869
10870 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10871
10872         * ggc-zone.c (lookup_page_table_if_allocated,
10873         set_page_table_entry, zone_find_object_size, alloc_small_page,
10874         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
10875         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
10876         -Wc++-compat and/or -Wcast-qual warnings.
10877
10878 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
10879
10880         PR target/36634
10881         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
10882         pic_offset_table_rtx to be marked as used here.
10883         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
10884         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
10885         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
10886         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
10887         !TARGET_SECURE_PLT.
10888
10889 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10890
10891         * alloc-pool.c (hash_descriptor, eq_descriptor,
10892         alloc_pool_descriptor): Fix -Wc++-compat warnings.
10893         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
10894         Likewise.
10895         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
10896         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
10897         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
10898         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
10899         Likewise.
10900
10901 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
10902
10903         * tree-flow.h (loop_only_exit_p): Declare.
10904         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
10905         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
10906         the number of iterations if it is constant.  Otherwise, if this is the
10907         only possible exit of the loop, use the conservative estimate on the
10908         number of iterations of the entire loop if available.
10909
10910 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
10911
10912         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
10913         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
10914         Add synchronization functions.
10915         * config/sync.c: New file.
10916         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
10917         (LIBGCC_SYNC_CFLAGS): Likewise.
10918
10919 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
10920
10921         PR target/36710
10922         * config/i386/i386.md (mode): Add TF to "mode" attribute.
10923         (*pushtf_sse): New insn pattern.
10924         (pushtf splitters): New splitters.
10925
10926 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
10927
10928         PR middle-end/35736
10929         * predict.c (build_predict_expr): Use void_type_node for the tree
10930         type, instead of NULL_TREE.
10931
10932 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
10933
10934         * config/i386/i386.c (contains_aligned_value_p): Return true
10935         for TCmode.
10936         (ix86_data_alignment): Align TCmode to 128bits.
10937         (ix86_local_alignment): Likewise.
10938
10939 2008-07-03  Andrew Haley  <aph@redhat.com>
10940
10941         PR bootstrap/33304
10942         * vec.h (VEC_TA): New.
10943         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
10944         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
10945         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
10946         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
10947         (C_COMMON_FIXED_TYPES): Remove first arg.
10948         (C_COMMON_FIXED_MODE_TYPES): Likewise.
10949         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
10950         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
10951         not to use empty macro arguments.
10952
10953 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
10954
10955         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
10956         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
10957         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
10958         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
10959         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
10960         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
10961         config/ia64/crtn.asm, config/m68hc11/larith.asm,
10962         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
10963         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
10964         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
10965         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
10966         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
10967         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
10968         config/rs6000/e500crtres64gpr.asm,
10969         config/rs6000/e500crtres64gprctr.asm,
10970         config/rs6000/e500crtrest32gpr.asm,
10971         config/rs6000/e500crtrest64gpr.asm,
10972         config/rs6000/e500crtresx32gpr.asm,
10973         config/rs6000/e500crtresx64gpr.asm,
10974         config/rs6000/e500crtsav32gpr.asm,
10975         config/rs6000/e500crtsav64gpr.asm,
10976         config/rs6000/e500crtsav64gprctr.asm,
10977         config/rs6000/e500crtsavg32gpr.asm,
10978         config/rs6000/e500crtsavg64gpr.asm,
10979         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
10980         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
10981         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
10982         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
10983         config/sparc/sol2-cn.asm: Remove .file directives.
10984
10985 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
10986
10987         * resource.c (mark_referenced_resources): Look inside
10988         UNSPEC_VOLATILEs and ASM_INPUTs.
10989
10990 2008-07-02  Ian Lance Taylor  <iant@google.com>
10991
10992         * rtlanal.c (add_reg_note): New function.
10993         * rtl.h (add_reg_note): Declare.
10994         * auto-inc-dec.c (attempt_change): Use add_reg_note.
10995         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
10996         * builtins.c (expand_builtin_longjmp): Likewise.
10997         (expand_builtin_nonlocal_goto): Likewise.
10998         * calls.c (emit_call_1, expand_call): Likewise.
10999         * cfgexpand.c (add_reg_br_prob_note): Likewise.
11000         * cfglayout.c (fixup_reorder_chain): Likewise.
11001         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
11002         (commit_one_edge_insertion): Likewise.
11003         * combine.c (move_deaths, distribute_notes): Likewise.
11004         * df-problems.c (df_set_note): Likewise.
11005         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
11006         (set_unique_reg_note): Likewise.
11007         (emit_copy_of_insn_after): Likewise.
11008         * expr.c (expand_expr_real): Likewise.
11009         * gcse.c (add_label_notes): Likewise.
11010         * haifa-sched.c (create_check_block_twin): Likewise.
11011         * jump.c (mark_jump_label_1): Likewise.
11012         * loop-doloop.c (add_test, doloop_modify): Likewise.
11013         * loop-unswitch.c (compare_and_jump_seq): Likewise.
11014         * lower-subreg.c (move_eh_region_note): Likewise.
11015         * optabs.c (emit_libcall_block): Likewise.
11016         * predict.c (predict_insn): Likewise.
11017         (combine_predictions_for_insn): Likewise.
11018         * recog.c (peephole2_optimize): Likewise.
11019         * regmove.c (try_auto_increment): Likewise.
11020         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
11021         * reload.c (find_reloads): Likewise.
11022         * reload1.c (fixup_eh_region_note): Likewise.
11023         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
11024         * reorg.c (delete_prior_computation): Likewise.
11025         (delete_computation, dbr_schedule): Likewise.
11026         * config/pa/pa.c (legitimize_pic_address): Likewise.
11027         * config/sh/sh.c (sh_reorg): Likewise.
11028
11029 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
11030
11031         PR target/36669
11032         * config/libgcc-glibc.ver: Add %exclude.
11033         * config/m32r/libgcc-glibc.ver: Likwise.
11034         * config/s390/libgcc-glibc.ver: Likwise.
11035         * config/sh/libgcc-glibc.ver: Likwise.
11036         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
11037
11038         * config/i386/libgcc-glibc.ver: New.
11039
11040         * config/i386/libgcc-x86_64-glibc.ver: Removed.
11041
11042 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
11043
11044         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
11045         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
11046         i[34567]86-*-linux*, x86_64-*-linux*.  Add
11047         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
11048         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
11049         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
11050         i[34567]86-*-linux*, x86_64-*-linux*.
11051
11052         * libgcc-std.ver: Add empty GCC_4.4.0.
11053
11054         * mkmap-symver.awk: Support multiple versions per symbol.
11055
11056         * config/i386/i386.c (ix86_init_builtins): Always define
11057         __builtin_fabsq and __builtin_copysignq with fallbacks.
11058         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
11059         and __builtin_copysignq if SSE2 isn't available.
11060
11061         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
11062         (LIBGCC2_TF_CEXT): Likwise.
11063         (TF_SIZE): Likwise.
11064
11065         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
11066
11067         * config/i386/sfp-machine.h: Moved to libgcc.
11068
11069         * config/i386/sfp-machine.h: New.
11070         * config/i386/t-linux: Likwise.
11071
11072         * config/i386/t-darwin: Remove softfp_wrap_start and
11073         softfp_wrap_end.
11074         * config/i386/t-darwin64: Likewise.
11075
11076         * config/i386/t-fprules-softfp64: Renamed to ...
11077         * config/i386/t-fprules-softfp: This.
11078
11079         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
11080         and softfp_wrap_end.
11081
11082 2008-07-02  Jason Merrill  <jason@redhat.com>
11083
11084         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
11085
11086         * tree.c (ctor_to_list): New fn.
11087         * tree.h: Declare it.
11088         (CONSTRUCTOR_ELT): New macro.
11089         (CONSTRUCTOR_NELTS): New macro.
11090
11091 2008-07-02  Richard Guenther  <rguenther@suse.de>
11092
11093         * tree-ssa-structalias.c (struct variable_info): Reorder
11094         to fill padding on 64bit hosts.  Make collapsed_to an int.
11095         (get_varinfo_fc): Deal with that.
11096         (new_var_info): Likewise.
11097         (collapse_rest_of_var): Likewise.
11098
11099 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
11100
11101         * doc/install.texi (--enable-java-home): Document.
11102         (--enable-aot-compile-rpm): Likewise.
11103         (--with-arch-directory): Likewise.
11104         (--with-os-directory): Likewise.
11105         (--with-origin-name): Likewise.
11106         (--with-arch-suffix): Likewise.
11107         (--with-jvm-root-dir): Likewise.
11108         (--with-jvm-jar-dir): Likewise.
11109         (--with-python-dir): Likewise.
11110
11111 2008-07-02  Richard Guenther  <rguenther@suse.de>
11112
11113         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
11114         from decls explicitly.  Merge operand checking from tuples.
11115
11116 2008-07-02  Martin Jambor  <mjambor@suse.cz>
11117
11118         * tree-switch-conversion.c: Included timevar.h which I forgot before.
11119
11120 2008-07-02  Martin Jambor  <mjambor@suse.cz>
11121
11122         * tree-switch-conversion.c: Included timevar.h
11123         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
11124
11125         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
11126
11127 2008-07-02  Martin Jambor  <mjambor@suse.cz>
11128
11129         * tree-switch-conversion.c: Corrected various comments and
11130         whitespace issues
11131         (build_constructors): Fixed minor formatting mistakes.
11132
11133         * invoke.texi (Optimize Options): Corrected the
11134         switch-conversion-max-branch-ratio parameter.
11135
11136 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
11137
11138         * final.c (asm_insn_count): Return zero for an empty asm body.
11139
11140 2008-07-02  Richard Guenther  <rguenther@suse.de>
11141
11142         * bitmap.h (bitmap_set_bit): Return bool.
11143         (bitmap_clear_bit): Likewise.
11144         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
11145         write to the bitmap if it would.
11146         (bitmap_clear_bit): Likewise.
11147         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
11148         bitmap_set_bit return value.
11149         (add_pred_graph_edge): Likewise.
11150         (add_graph_edge): Likewise.
11151         (do_sd_constraint): Likewise.
11152         (do_ds_constraint): Likewise.
11153
11154 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11155
11156         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
11157         Fix -Wc++-compat and/or -Wcast-qual warnings.
11158         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
11159         gen_regparm_prefix): Likewise.
11160         * vmsdbgout.c (write_modbeg, lookup_filename,
11161         vmsdbgout_source_line, vmsdbgout_init): Likewise.
11162
11163 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
11164
11165         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
11166         defaults.h definition apply.
11167
11168 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
11169
11170         * function.c (assign_parm_remove_parallels): New.
11171         (assign_parm_setup_block_p): Do not return true for non-BLKmode
11172         PARALLELs.
11173         (assign_parm_setup_block): Do not handle them.
11174         (assign_parm_setup_reg, assign_parm_setup_stack): Call
11175         assign_parm_remove_parallels.
11176
11177 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
11178
11179         * c-typeck.c (convert_for_assignment): Use
11180         vector_targets_convertible_p.
11181         * c-common.c (vector_targets_convertible_p): New.
11182         * c-common.h (vector_targets_convertible_p): New prototype.
11183         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
11184         opaque_p_V2SI_type_node.
11185
11186 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
11187
11188         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
11189         RFmode constants.
11190
11191 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
11192
11193         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
11194         TFmode constants via two element DImode vector for hosts with
11195         HOST_BITS_PER_WIDE_INT < 64.
11196         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
11197         also for HOST_BITS_PER_WIDE_INT < 64.
11198
11199 2008-07-01  Richard Guenther  <rguenther@suse.de>
11200
11201         PR tree-optimization/36666
11202         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
11203         (get_constraint_exp_from_ssa_var): Split into ...
11204         (get_constraint_exp_for_temp): ... this ...
11205         (get_constraint_for_ssa_var): ... and that.
11206         Return constraint expressions for all touched sub-fields
11207         if the results address is not taken.
11208         (process_constraint): Remove assertion that aggregate
11209         assignments do not happen at this place.
11210         (get_constraint_for_component_ref): Add address_p argument.
11211         Return constraint expressions for all touched sub-fields
11212         if the results address is not taken.
11213         (do_deref): Use get_constraint_exp_for_temp.
11214         (get_constraint_for_1): Rename from ...
11215         (get_constraint_for): ... this.  Add the old function as wrapper.
11216         (do_structure_copy): Use get_constraint_for_1.
11217
11218 2008-07-01  Martin Jambor  <mjambor@suse.cz>
11219
11220         * Makefile.in (tree-switch-conversion.o): Add.
11221         (OBJS-common): Add tree-swtch-conversion.o.
11222         * passes.c (init_optimization_passes): Add pass_convert_switch.
11223         * tree-pass.h: (pass_convert_switch): Add.
11224         * tree-switch-conversion.c: New file.
11225         * gcc.dg/tree-ssa/cswtch.c: New testcase.
11226         * common.opt (ftree-cswtch): New option.
11227         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
11228         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
11229         * opts.c (decode_options): Set flag_tree_switch_conversion when
11230         optimization level is >= 2.
11231         * doc/invoke.texi (Optimize Options): Added description of
11232         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
11233
11234 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11235
11236         * config/darwin-driver.c (darwin_default_min_version): Fix
11237         -Wc++-compat warnings.
11238
11239 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
11240
11241         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
11242         of operand 0.
11243
11244 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
11245
11246         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
11247
11248 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
11249
11250         PR rtl-optimization/34744
11251         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
11252         (df_scan_free_internal): Free data structures not
11253         allocated in storage pools.
11254         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
11255         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
11256         df_scan_free_mws_vec.
11257         * dse.c (dse_step6): Free offset_map_p and offset_map_n
11258         unconditionally.
11259
11260 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
11261
11262         * config/i386/i386.c (contains_aligned_value_p): Return true
11263         for __float128.
11264         (ix86_function_arg_boundary): Return its natural boundary
11265         for __float128.
11266         (return_in_memory_32): Don't check TDmode.
11267         (ix86_split_to_parts): Support splitting into 4 parts and
11268         support TFmode for 32bit target.
11269         (ix86_split_long_move): Support splitting into 4 parts.
11270         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
11271         for SSE2.
11272         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
11273         (ix86_init_builtins): Here.
11274         (ix86_scalar_mode_supported_p): Always return true for TFmode.
11275         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
11276         'q' and 'w', respectively.
11277
11278         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
11279         TARGET_64BIT.
11280         (movtf_internal): Likewise.
11281         (<code>tf2): Likewise.
11282         (*absnegtf2_sse): Likewise.
11283         (copysign<mode>3): Likewise.
11284         (copysign<mode>3_const): Likewise.
11285         (copysign<mode>3_var): Likewise.
11286         (define_split UNSPEC_COPYSIGN): Likewise.
11287         * config/i386/sse.md (*nandtf3): Likewise.
11288         (<code>tf3): Likewise.
11289         (*<code>tf3): Likewise.
11290
11291 2008-06-30  Joey Ye  <joey.ye@intel.com>
11292             H.J. Lu  <hongjiu.lu@intel.com>
11293
11294         * global.c (compute_regsets): Set frame_pointer_needed here.
11295         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
11296
11297 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
11298
11299         * doc/install.texi (specific): Expand Windows build notes.
11300
11301 2008-06-30  Ira Rosen  <irar@il.ibm.com>
11302
11303         PR tree-optimization/36648
11304         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
11305         number of prolog iterations by step. Fix the comment.
11306
11307 2008-06-30  Richard Guenther  <rguenther@suse.de>
11308
11309         PR middle-end/36671
11310         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
11311         handle calls from ECF_MALLOC functions.
11312         (handle_pure_call): ECF_MALLOC functions do not return
11313         call-used memory.
11314         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
11315
11316 2008-06-29  Andreas Schwab  <schwab@suse.de>
11317
11318         * config/m68k/m68k.c (print_operand): Always print a float
11319         constant in hex.
11320         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
11321         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
11322         Remove macros.
11323
11324         * config/rs6000/x-linux64: Remove never used file.
11325
11326 2008-06-29  Richard Guenther  <rguenther@suse.de>
11327
11328         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
11329         prototype.
11330         (struct alias_info): Move ...
11331         * tree-ssa-alias.c: ... here.
11332         (update_alias_info): Declare.
11333         (compute_may_aliases): Call it.
11334         (update_alias_info): New function.
11335         * tree-ssa-structalias.c (update_alias_info): Move ...
11336         * tree-ssa-alias.c (update_alias_info_1): ... here.
11337         * tree-ssa-structalias.c (process_constraint_1): Remove
11338         unused from_call argument.  Rename to ...
11339         (process_constraint): ... this.  Delete old wrapper.
11340         (make_constraint_to): Adjust callers.
11341         (handle_const_call): Likewise.
11342         (handle_pure_call): Likewise.
11343         (init_base_vars): Likewise.
11344         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
11345         (find_func_aliases): We don't need structure copies for
11346         complex types.
11347         (make_constraint_from_anything): Remove.
11348         (create_variable_info_for): For globals make constraints
11349         from escaped, not from anything.
11350         (compute_points_to_sets): Do not call update_alias_info.
11351         (ipa_pta_execute): Use make_constraint_from.
11352
11353 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11354
11355         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
11356         (bitmap.o-warn, dominance.o-warn): New.
11357         * configure.ac (cxx_compat_warn): Delete.
11358         (loose_warn): Add -Wcast-qual and -Wc++-compat.
11359         * system.h: Remove #pragma diagnostic for -Wcast-qual and
11360         -Wc++-compat.
11361         * configure: Regenerate.
11362
11363         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
11364         warnings.
11365
11366 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11367
11368         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
11369         * df-scan.c (df_notes_rescan): Likewise.
11370         * ggc-page.c (set_page_table_entry): Likewise.
11371         * intl.c (gcc_gettext_width): Likewise.
11372         * varasm.c (get_unnamed_section, get_noswitch_section,
11373         get_section): Likewise.
11374
11375 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
11376
11377         * regrename.c (build_def_use): Don't copy RTX.
11378
11379 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
11380
11381         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
11382         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
11383         punctuation.  Use @ref instead of @xref.
11384         (Function Names): Remove stray @display/@end display.
11385         (C++ Attributes): Use @ref instead of @xref.
11386         (Deprecated Features): Fix punctuation around @xref.
11387         (Backwards Compatibility): Likewise.
11388         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
11389
11390 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
11391
11392         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
11393         constants for E500 double.
11394
11395 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11396
11397         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
11398         element type of const_vector.
11399
11400 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
11401
11402         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
11403         Remove FLAGS_REG clobber from expander pattern.
11404         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
11405         (anddi3, andsi3, andhi3, andqi3): Ditto.
11406         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
11407         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
11408         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
11409         (ashlsi3, ashlhi3, ashlqi3): Ditto.
11410         (ashrsi3, ashrhi3, ashrqi3): Ditto.
11411         (lshrsi3, lshrhi3, lshrqi3): Ditto.
11412         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
11413         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
11414
11415 2008-06-28  Richard Guenther  <rguenther@suse.de>
11416
11417         * tree-ssa-structalias.c (callused_id, var_callused,
11418         callused_tree): Add.
11419         (handle_pure_call): New function.
11420         (find_func_aliases): Call it.
11421         (find_what_p_points_to): Handle the call-used set.
11422         (clobber_what_escaped): Likewise.
11423         (compute_call_used_vars): New function.
11424         (init_base_vars): Init the call-used variable.
11425         (do_sd_constraint): Do not propagate the solution from CALLUSED
11426         but use CALLUSED as a placeholder.
11427         (solve_graph): Likewise.
11428         * tree-flow-inline.h (gimple_call_used_vars): New function.
11429         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
11430         (compute_call_used_vars): Declare.
11431         * tree-ssa-alias.c (set_initial_properties): Call
11432         compute_call_used_vars.
11433         (reset_alias_info): Clear call-used variables.
11434         (add_call_clobber_ops): Assert we are not called for const/pure
11435         functions.  Remove handling of them.
11436         (add_call_read_ops): Handle pure functions by adding the
11437         call-used set of variables as VUSEs.
11438         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
11439         (delete_tree_ssa): Free it.
11440         * tree-dfa.c (remove_referenced_var): Clear the var from the
11441         call-used bitmap.
11442
11443 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
11444
11445         * tree.c (build_varargs_function_type_list): New.
11446         (build_function_type_list_1): New.
11447         (build_function_type_list): Use build_function_type_list_1.
11448         * tree.h (build_varargs_function_type_list): New.
11449
11450 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11451
11452         PR target/34856
11453         * config/spu/spu.c (spu_builtin_splats): Do not generate
11454         invalid CONST_VECTOR expressions.
11455         (spu_expand_vector_init): Likewise.
11456
11457 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
11458
11459         * optabs.c (libfunc_decls): New variable.
11460         (libfunc_decl_hash, libfunc_decl_eq): New functions.
11461         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
11462         for the same function twice.
11463
11464 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
11465
11466         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
11467         ix86_expand_binary_operator directly.
11468         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
11469         for operand 2.
11470         (*ashrti3_1): Ditto.
11471         (*lshrti3_1): Ditto.
11472         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
11473         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
11474         using only one splitter.  Conditionaly execute splitter before or
11475         after peephole2 pass.
11476         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
11477         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
11478         Use only one alternative in asm template.
11479         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
11480         in asm template.
11481         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
11482         "J" operand constraint for operand 2.
11483         (*ashldi3_cconly_rex64): Ditto.
11484         (*ashrdi3_cmp_rex64): Ditto.
11485         (*ashrdi3_cconly_rex64): Ditto.
11486         (*lshrdi3_cmp_rex64): Ditto.
11487         (*lshrdi3_cconly_rex64): Ditto.
11488         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
11489         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
11490         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
11491         gen_x86_shrd_1.
11492
11493 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
11494
11495         * gimplify.c (omp_is_private): Don't return true if decl is not
11496         already private on #pragma omp for or #pragma omp parallel for.
11497
11498         PR debug/36617
11499         * tree-cfg.c (struct move_stmt_d): Replace block field with
11500         orig_block and new_block fields.
11501         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
11502         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
11503         (move_block_to_fn): Replace vars_map and new_label_map arguments
11504         with struct move_stmt_d pointer.
11505         (replace_block_vars_by_duplicates): New function.
11506         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
11507         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
11508         all subblocks of ORIG_BLOCK to the new function.  Call
11509         replace_block_vars_by_duplicates.
11510         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
11511         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
11512         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
11513         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
11514         (expand_omp): Temporarily set input_location to the location of
11515         region's controlling stmt.
11516         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
11517         BIND_EXPR, push ctx->block_vars and gimplification vars into
11518         the BIND_EXPR and its block's BLOCK_VARS instead of directly
11519         into dest function.
11520         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
11521         there are any BLOCK_VARS.
11522         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
11523         OMP_PARALLEL or OMP_TASK stmt.
11524         (lower_omp): Save and restore input_location around the lower_omp_1
11525         call.
11526
11527 2008-06-27  Richard Guenther  <rguenther@suse.de>
11528
11529         PR tree-optimization/36400
11530         PR tree-optimization/36373
11531         PR tree-optimization/36344
11532         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
11533         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
11534         (update_alias_info): Remove call clobbering code.
11535         (make_constraint_to): New helper function.
11536         (make_escape_constraint): Likewise.
11537         (handle_rhs_call): Use it on all pointer containing arguments.
11538         Also mark the static chain escaped.
11539         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
11540         instead of ANYTHING.
11541         (make_constraint_from): New helper split out from ...
11542         (make_constraint_from_anything): ... here.
11543         (find_func_aliases): Add constraints for escape sites.
11544         (intra_create_variable_infos): Make constraints from NONLOCAL
11545         for parameters.
11546         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
11547         as ANYTHING.
11548         (clobber_what_p_points_to): Remove.
11549         (clobber_what_escaped): New function.
11550         (init_base_vars): Init NONLOCAL and ESCAPED.
11551         (do_sd_constraint): Do not propagate the solution from ESCAPED
11552         but use ESCAPED as a placeholder.
11553         (solve_graph): Likewise.
11554         * tree-flow.h (clobber_what_p_points_to): Remove.
11555         (clobber_what_escaped): Declare.
11556         * tree-ssa-alias.c (set_initial_properties): Call it.
11557         Remove code clobbering escaped pointers.
11558
11559 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
11560
11561         * function.c (allocate_struct_function): Only allocate a unique
11562         funcdef_no if the decl is nonzero.
11563
11564 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
11565
11566         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
11567         * config/mips/mips.c (mips_split_const_insns): New function.
11568         * config/mips/mips.md (move_type): New attribute.
11569         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
11570         (dword_mode): New attribute.
11571         (type): Avoid long line.  Map "move_type"s to "type"s,
11572         choosing "multi" for doubleword moves if appropriate.
11573         Swap MTC/MFC comments to match their declaration order.
11574         (extended_mips16): Default to "yes" if "move_type" is "sll0",
11575         "type" is "branch" or "jal" is "direct".
11576         (length): Handle "extended_mips16" first.  Make the default
11577         "0" for "ghost" instructions.  Set the length from "move_type".
11578         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
11579         of "type", with "sll0" for the register alternative.  Remove the
11580         "extended_mips16" attribute.
11581         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
11582         of "type", with "shift_shift" for the register alternative.
11583         Remove the "length" attribute.
11584         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
11585         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
11586         of "type", with "andi" for the register alternative.
11587         (*zero_extendqihi2): Likewise.
11588         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
11589         of "andi" instead of a "type" of "arith".
11590         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
11591         instead of "type".
11592         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
11593         (mov_<store>r, *mov<mode>_ra): Likewise.
11594         (extendsidi2): Use "move_type" instead of "type", with "move"
11595         for the register alternative.
11596         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
11597         of "type", with "signext" for the register alternative.
11598         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
11599         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
11600         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
11601         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
11602         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
11603         (unnamed branch insn): Likewise.
11604         (*movdi_gp32_fp64): Fold into...
11605         (*movdi_32bit): ...here.
11606         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
11607         (*movdf_hardfloat): ...this new pattern.
11608         (*movdf_softfloat): Remove redundant FPR alternatives.
11609         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
11610         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
11611         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
11612         the "move" attribute.
11613         (*movdi_32bit): Use "move_type" instead of "type" and remove the
11614         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
11615         and "store" for COP loads and stores.
11616         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
11617         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
11618         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
11619         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
11620         (*movtf_mips16, *movv2sf): Likewise.
11621         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
11622         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
11623         (mfhc1<mode>): Use "move_type" instead of "move".
11624         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
11625         (loadgp_blockage): Remove the "length" attribute.
11626         (blockage, set_got_version, update_got_version): Likewise.
11627         (call_internal): Remove the "extended_mips16" attribute.
11628         (call_value_internal, call_value_multiple_internal): Likewise.
11629         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
11630         instead of "move".
11631         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
11632         the "length" attribute.
11633
11634 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11635
11636         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
11637         -Wcast-qual warnings.
11638         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
11639         handle_pragma_pop_macro): Likewise.
11640         * collect2.c (resolve_lib_name): Likewise.
11641         * config/arc/arc.c (arc_init): Likewise.
11642         * config/arm/arm.c (neon_builtin_compare,
11643         locate_neon_builtin_icode): Likewise.
11644         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
11645         * config/bfin/bfin.c (bfin_init_machine_status,
11646         bfin_optimize_loop): Likewise.
11647         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
11648         * config/cris/cris.c (cris_init_expanders): Likewise.
11649         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
11650         * config/darwin.c (machopic_indirection_eq,
11651         machopic_indirection_name, machopic_output_indirection): Likewise.
11652         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
11653         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
11654         frv_optimize_membar): Likewise.
11655         * config/i386/cygwin.h (mingw_scan,
11656         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
11657         * config/i386/cygwin1.c (mingw_scan): Likewise.
11658         * config/i386/i386.c (machopic_output_stub): Likewise.
11659         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
11660         i386_pe_unique_section): Likewise.
11661         * config/ia64/ia64.c (ia64_init_machine_status,
11662         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
11663         Likewise.
11664         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
11665         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
11666         * config/m68k/m68k.c (m68k_handle_option,
11667         m68k_sched_md_init_global): Likewise.
11668         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
11669         mcore_unique_section): Likewise.
11670         * config/mips/mips.c (mips_block_move_straight,
11671         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
11672         Likewise.
11673         * config/mmix/mmix.c (mmix_init_machine_status,
11674         mmix_encode_section_info): Likewise.
11675         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
11676         * config/rs6000/rs6000.c (rs6000_init_machine_status,
11677         print_operand_address, output_toc, redefine_groups,
11678         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
11679         * config/s390/s390.c (s390_init_machine_status): Likewise.
11680         * config/score/score.c (score_block_move_straight,
11681         score_block_move_loop_body): Likewise.
11682         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
11683         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
11684         * emit-rtl.c (find_auto_inc): Likewise.
11685         * gcc.c (translate_options, process_command): Likewise.
11686         * reorg.c (dbr_schedule): Likewise.
11687         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
11688         * xcoffout.c (xcoffout_declare_function): Likewise.
11689
11690 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
11691
11692         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
11693         ipa-pta working again.
11694
11695 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
11696
11697         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
11698         genautomata.
11699
11700 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
11701
11702         * config.gcc (powerpc*-*-*): Add new core e500mc.
11703         * config/rs6000/e500mc.md: New file.
11704         * config/rs6000/rs6000.c (processor_costs): Add new costs for
11705         e500mc.
11706         (rs6000_override_options): Add e500mc case to
11707         processor_target_table. Altivec and Spe options not allowed
11708         with e500mc. Add isel instruction to e500mc by
11709         default. Initialize rs6000_cost for e500mc.
11710         (rs6000_issue_rate): Set issue rate for e500mc.
11711         * config/rs6000/rs6000.h (processor_type): Add
11712         PROCESSOR_PPCE500MC.
11713         (ASM_CPU_SPEC): Add e500mc.
11714         Set TARGET_ISEL to rs6000_isel.
11715         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
11716         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
11717         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
11718         Include e500mc.md.
11719         * doc/invoke.texi: Add e500mc to list of cpus.
11720
11721 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11722
11723         PR c/34867
11724         * c-lex.c (lex_charconst): Initialize unsignedp.
11725
11726 2008-06-27  Olivier Hainque  <hainque@adacore.com>
11727
11728         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
11729         documented assumptions.
11730
11731 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
11732
11733         * dwarf2out.c: Remove trailing white spaces.  Break long line
11734         in comments.
11735
11736 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
11737
11738         * libfuncs.h (LTI_synchronize): New libfunc_index.
11739         (synchronize_libfunc): Declare.
11740         * builtins.c (expand_builtin_synchronize): Consider using
11741         synchronize_libfunc before falling back on an asm blockage.
11742         * config/mips/mips.c: Include libfuncs.h
11743         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
11744
11745 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
11746
11747         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
11748         parameter.  Copy stack_reg to r11 where appropriate.
11749         (no_global_regs_above): Add gpr parameter.
11750         (rs6000_stack_info): Only add padding for SPE save area if we
11751         are saving SPE GPRs and CR.
11752         (saveres_routine_syms): New variable.
11753         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
11754         Define.
11755         (rs6000_savres_routine_sym): New function.
11756         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
11757         split out of...
11758         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
11759         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
11760         Tweak FPR out-of-line saving.
11761         (rs6000_make_savres_rtx): New function.
11762         (rs6000_use_multiple_p): New function.
11763         (rs6000_savres_strategy): New function.
11764         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
11765         out-of-line if appropriate.
11766         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
11767         if we are optimizing for size.
11768         (GP_SAVE_INLINE): Define.
11769         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
11770         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
11771         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
11772         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
11773         (*save_fpregs_<mode>): Add use of r11.
11774         (*restore_gpregs_<mode>): New insn.
11775         (*return_and_restore_gpregs_<mode>): New insn.
11776         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
11777         use r11.
11778         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
11779         (*restore_gpregs_spe): New insn.
11780         (*return_and_restore_gpregs_spe): New insn.
11781         * config/rs6000/predicates.md (save_world_operation): Fix check.
11782
11783 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
11784
11785         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
11786         this point, so assert that.
11787
11788 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
11789
11790         * cfganal.c: Include vec.h and vecprim.h.
11791         (compute_idf): Import from...
11792         * tree-into-ssa (compute_idf): ...here.
11793         * basic-block.h (compute_idf): Export.
11794
11795 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
11796
11797         * c-decl.c (merge_decls): Use !current_function_decl to check for
11798         extern declaration of C99 inline function being at file scope.
11799
11800 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
11801
11802         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
11803
11804 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11805
11806         * alias.c (record_alias_subset, init_alias_analysis): Fix
11807         -Wc++-compat and/or -Wcast-qual warnings.
11808         * attribs.c (lookup_attribute_spec): Likewise.
11809         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
11810         copy_bb, connect_traces,
11811         find_rarely_executed_basic_blocks_and_cr): Likewise.
11812         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
11813         note_btr_set, migrate_btr_defs): Likewise.
11814         * builtins.c (result_vector, expand_builtin_memcpy,
11815         expand_builtin_mempcpy_args, expand_builtin_strncpy,
11816         builtin_memset_read_str, expand_builtin_printf,
11817         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
11818         Likewise.
11819         * caller-save.c (mark_set_regs): Likewise.
11820         * calls.c (expand_call, emit_library_call_value_1): Likewise.
11821         * cgraph.c (cgraph_edge): Likewise.
11822         * combine.c (likely_spilled_retval_1): Likewise.
11823         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
11824         htab_counts_entry_del, get_coverage_counts): Likewise.
11825         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
11826         new_cselib_val): Likewise.
11827         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
11828         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
11829         Likewise.
11830         * df-core.c (df_compact_blocks): Likewise.
11831         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
11832         * df-scan.c (df_grow_reg_info, df_ref_create,
11833         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
11834         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
11835         df_record_entry_block_defs, df_record_exit_block_uses,
11836         df_bb_verify): Likewise.
11837         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
11838         DF_REF_EXTRACT_MODE_CONST): New.
11839         * dominance.c (get_immediate_dominator, get_dominated_by,
11840         nearest_common_dominator, root_of_dom_tree,
11841         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
11842         -Wc++-compat and/or -Wcast-qual warnings.
11843         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
11844         record_store, replace_read, check_mem_read_rtx, scan_insn,
11845         dse_step1, dse_record_singleton_alias_set): Likewise.
11846         * dwarf2asm.c (dw2_force_const_mem): Likewise.
11847
11848 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11849
11850         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
11851         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
11852         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
11853         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
11854         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
11855         add_ranges_num, add_ranges_by_labels, file_info_cmp,
11856         file_name_acquire, output_file_names, add_const_value_attribute,
11857         premark_used_types_helper, file_table_eq, file_table_hash,
11858         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
11859         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
11860         -Wcast-qual warnings.
11861         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
11862         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
11863         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
11864         gen_reg_rtx, start_sequence, init_emit): Likewise.
11865         * et-forest.c (et_new_occ, et_new_tree): Likewise.
11866         * except.c (init_eh_for_function, gen_eh_region,
11867         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
11868         arh_to_landing_pad, arh_to_label, add_action_record,
11869         add_call_site, switch_to_exception_section): Likewise.
11870         * expmed.c (synth_mult): Likewise.
11871         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
11872         store_expr): Likewise.
11873         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
11874         Likewise.
11875         * function.c (assign_stack_temp_for_type,
11876         allocate_struct_function, match_asm_constraints_1): Likewise.
11877         * gcov-io.c (gcov_allocate): Likewise.
11878         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
11879         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
11880         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
11881         record_one_set, insert_expr_in_table, insert_set_in_table,
11882         dump_hash_table, compute_hash_table_work, alloc_hash_table,
11883         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
11884         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
11885         -Wcast-qual warnings.
11886
11887 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11888
11889         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
11890         -Wcast-qual warnings.
11891         * gcc.c (process_command): Likewise.
11892         * genattrtab.c (oballoc): Use XOBNEW.
11893         (oballocvec): Define.
11894         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
11895         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
11896         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
11897         -Wc++-compat and/or -Wcast-qual warnings.
11898         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
11899         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
11900         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
11901         gen_presence_absence_set, gen_automaton, gen_regexp_el,
11902         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
11903         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
11904         add_excls, process_presence_absence_names,
11905         process_presence_absence_patterns, add_presence_absence,
11906         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
11907         get_free_state, add_arc, get_free_automata_list_el,
11908         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
11909         transform_3, cache_presence, create_ainsns, create_automata,
11910         create_state_ainsn_table, dfa_insn_code_enlarge,
11911         output_trans_func, output_min_issue_delay_func,
11912         output_dead_lock_func, output_reset_func,
11913         output_get_cpu_unit_code_func, output_dfa_start_func,
11914         expand_automata): Likewise.
11915         * genextract.c (gen_insn): Likewise.
11916         * gengtype-lex.l: Likewise.
11917         * gengtype.c (read_input_list, adjust_field_type,
11918         process_gc_options): Likewise.
11919         * genoutput.c (note_constraint): Likewise.
11920         * genpreds.c (mangle, add_constraint): Likewise.
11921         * genrecog.c (process_define_predicate, new_decision,
11922         add_to_sequence): Likewise.
11923         * gensupport.c (record_insn_name): Likewise.
11924
11925 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11926
11927         * config/i386/driver-i386.c (detect_caches_amd,
11928         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
11929         and/or -Wcast-qual warnings.
11930         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
11931         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
11932         gt_pch_save): Likewise.
11933         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
11934         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
11935         * global.c (compute_regsets): Likewise.
11936         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
11937         finish_graph_dump_file): Likewise.
11938         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
11939         unlink_bb_notes): Likewise.
11940         * integrate.c (get_hard_reg_initial_val): Likewise.
11941         * ipa-prop.c (ipa_push_func_to_list): Likewise.
11942         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
11943         * local-alloc.c (update_equiv_regs): Likewise.
11944         * loop-invariant.c (check_invariant_table_size,
11945         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
11946         Likewise.
11947         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
11948         altered_reg_used, mark_altered): Likewise.
11949         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
11950         insert_var_expansion_initialization,
11951         combine_var_copies_in_loop_exit, apply_opt_in_copies,
11952         release_var_copies): Likewise.
11953         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
11954         analyze_matrix_decl, add_allocation_site, analyze_transpose,
11955         analyze_accesses_for_phi_node, check_var_notmodified_p,
11956         check_allocation_function, find_sites_in_func,
11957         record_all_accesses_in_func, transform_access_sites,
11958         transform_allocation_sites): Likewise.
11959         * omp-low.c (new_omp_region, create_omp_child_function_name,
11960         check_omp_nesting_restrictions, check_combined_parallel,
11961         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
11962         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
11963         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
11964         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
11965         Likewise.
11966         * opts-common.c (prune_options): Likewise.
11967         * opts.c (add_input_filename, print_filtered_help,
11968         get_option_state): Likewise.
11969         * params.c (add_params): Likewise.
11970         * passes.c (set_pass_for_id, next_pass_1,
11971         do_per_function_toporder, pass_fini_dump_file): Likewise.
11972         * postreload.c (reload_cse_simplify_operands): Likewise.
11973         * predict.c (tree_predicted_by_p, tree_predict_edge,
11974         clear_bb_predictions, combine_predictions_for_bb): Likewise.
11975
11976 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11977
11978         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
11979         warnings.
11980         * recog.c (check_asm_operands, validate_change_1): Likewise.
11981         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
11982         subst_asm_stack_regs): Likewise.
11983         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
11984         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
11985         * regmove.c (reg_is_remote_constant_p): Likewise.
11986         * regrename.c (regrename_optimize, scan_rtx_reg,
11987         kill_clobbered_value, kill_set_value, kill_autoinc_value):
11988         Likewise.
11989         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
11990         regstat_compute_calls_crossed): Likewise.
11991         * reload1.c (init_reload, new_insn_chain,
11992         has_nonexceptional_receiver, reload, copy_reloads,
11993         calculate_needs_all_insns, init_elim_table): Likewise.
11994         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
11995         * rtl.c (shallow_copy_rtx_stat): Likewise.
11996         * rtlanal.c (parms_set): Likewise.
11997         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
11998         sbitmap_resize, sbitmap_vector_alloc): Likewise.
11999         * sched-ebb.c (earliest_block_with_similiar_load,
12000         add_deps_for_risky_insns): Likewise.
12001         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
12002         schedule_region): Likewise.
12003         * see.c (eq_descriptor_pre_extension,
12004         hash_descriptor_pre_extension, hash_del_pre_extension,
12005         eq_descriptor_properties, hash_descriptor_properties,
12006         hash_del_properties, see_seek_pre_extension_expr,
12007         see_initialize_data_structures, see_print_register_properties,
12008         see_print_pre_extension_expr, see_delete_merged_def_extension,
12009         see_delete_unmerged_def_extension, see_emit_use_extension,
12010         see_pre_delete_extension, see_map_extension, see_commit_changes,
12011         see_analyze_merged_def_local_prop,
12012         see_analyze_merged_def_local_prop,
12013         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
12014         see_set_prop_merged_def, see_set_prop_unmerged_def,
12015         see_set_prop_unmerged_use, see_print_one_extension,
12016         see_merge_one_use_extension, see_merge_one_def_extension,
12017         see_store_reference_and_extension, see_update_uses_relevancy,
12018         see_update_defs_relevancy): Likewise.
12019         * statistics.c (hash_statistics_hash, hash_statistics_eq,
12020         hash_statistics_free, curr_statistics_hash): Likewise.
12021         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
12022         expand_asm_operands, expand_return, case_bit_test_cmp,
12023         expand_case): Likewise.
12024         * stor-layout.c (start_record_layout): Likewise.
12025         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
12026         gt_pch_save_stringpool): Likewise.
12027         * tree-data-ref.c (hash_stmt_vertex_info,
12028         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
12029         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
12030
12031 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
12032
12033         PR target/36627
12034         * config/i386/i386.md : Change constraints of HImode and QImode
12035         immediate operands from "i" to "n".  Change SImode "ni" constraint to
12036         "i" and SImode "rmi" constraint to "g".  Remove all constraints
12037         from const0_operand and const1_operand predicated operands.
12038         (i): Change QImode and HImode attribute from "i" to "n".
12039         (*subqi_2): Change HImode operands to QImode.
12040         (*subqi_3): Ditto.
12041
12042 2008-06-25  Olivier Hainque  <hainque@adacore.com>
12043
12044         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
12045         sed substitutions.
12046
12047 2008-06-25  Richard Guenther  <rguenther@suse.de>
12048
12049         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
12050         not overflow the result type.
12051
12052 2008-06-25  Richard Guenther  <rguenther@suse.de>
12053
12054         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
12055         (vn_lookup): Likewise.
12056
12057 2008-06-25  Richard Guenther  <rguenther@suse.de>
12058
12059         PR tree-optimization/35518
12060         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
12061         * tree-sra.c (instantiate_element): Use fold_build3 to build
12062         BIT_FIELD_REFs.
12063         (try_instantiate_multiple_fields): Likewise.
12064
12065 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12066
12067         * config/rs6000/rs6000.md: Change all string instruction's clobber to
12068         be early clobbers.
12069
12070 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12071
12072         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
12073         use_backchain_to_restore_sp to true
12074         if the offset of the link register save area would go over the 32k - 1
12075         offset limit of the load
12076         instructions.
12077
12078 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
12079
12080         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
12081         anchor for the type-punning blurb.  Cross-reference "Structures
12082         unions enumerations and bit-fields implementation".  Provide a
12083         cast-through-pointer example.  Make final sentence self-contained.
12084         * doc/implement-c.texi (Structures unions enumerations and
12085         bit-fields implementation): Cross-reference the type-punning blurb
12086         in the -fstrict-aliasing documentation.
12087
12088 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12089
12090         PR middle-end/36594
12091         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
12092         the memory instead of the memory itself for the save area.
12093
12094 2008-06-24  Olivier Hainque  <hainque@adacore.com>
12095             Nicolas Roche  <roche@adacore.com>
12096
12097         * gengtype.c (srcdir_len): size_t instead of int.
12098         (get_file_realbasename): New function.  For F a filename, the real
12099         basename of F, with all the path components stripped.
12100         (get_file_srcdir_relative_path): New function.  For F a filename, the
12101         relative path to F from $(srcdir).
12102         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
12103         get_file_realbasename.  Adjust the head comment.
12104         (get_prefix_langdir_index): New function. For F a filename, return the
12105         lang_dir_names[] relative index of the language directory that is
12106         a prefix in F.
12107         (get_file_langdir): For F a filename, return the name of the language
12108         directory where F is located.
12109         (get_file_gtfilename): New function. The gt- output file name for an
12110         input filename F.
12111         (get_output_file_with_visibility): Replace in-line computations with
12112         uses of get_file_gtfilename and get_prefix_langdir_index.
12113         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
12114
12115 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
12116
12117         PR tree-optimization/36504
12118         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
12119         references without base address.
12120
12121 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
12122
12123         PR middle-end/36584
12124         * calls.c (expand_call): Increase alignment for recursive functions.
12125
12126 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
12127
12128         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
12129         (TARGET_FUNCTION_VALUE): New define.
12130         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
12131         * config/avr/avr.h (FUNCTION_VALUE): Remove.
12132
12133 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
12134
12135         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
12136         (fmod<mode>3): Ditto.
12137         (remainderxf3): Ditto.
12138         (remainder<mode>3): Ditto.
12139
12140 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
12141
12142         PR target/36533
12143         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
12144         REG is a hard register.
12145
12146         PR tree-optimization/36508
12147         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
12148         499, don't check it at all in release compilers.
12149
12150 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
12151
12152         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
12153         together with SSE_TARGET_MATH to disable insn pattern.
12154         (*fop_<MODEF:mode>_2_i387): Ditto.
12155         (*fop_<MODEF:mode>_3_i387): Ditto.
12156
12157 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
12158
12159         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
12160
12161 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12162
12163         PR middle-end/34906
12164         * gimplify.c (gimplify_asm_expr): Check the return code of
12165         parse_output_constraint call, set function return and is_inout
12166         value if it failed.
12167
12168 2008-06-22  Ian Lance Taylor  <iant@google.com>
12169
12170         * c-lex.c (narrowest_unsigned_type): Change itk to int.
12171         (narrowest_signed_type): Likewise.
12172         * c-typeck.c (c_common_type): Change local variable mclass to enum
12173         mode_class, twice.
12174         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
12175         tcc_comparison, not the tree code itself.
12176         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
12177         (c_expand_expr): Cast modifier to enum expand_modifier.
12178         * c-common.h (C_RID_CODE): Add casts.
12179         (C_SET_RID_CODE): Define.
12180         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
12181         (c_lex_one_token): Add cast to avoid warning.
12182         (c_parser_objc_type_name): Rename local typename to type_name.
12183         (check_no_duplicate_clause): Change code parameter to enum
12184         omp_clause_code.
12185         (c_parser_omp_var_list_parens): Change kind parameter to enum
12186         omp_clause_code.
12187         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
12188         c_parser_omp_list_var_parens.
12189         (c_parser_omp_threadprivate): Likewise.
12190         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
12191         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
12192         * c-format.c (NO_FMT): Define.
12193         (printf_length_specs): Use NO_FMT.
12194         (asm_fprintf_length_specs): Likewise.
12195         (gcc_diag_length_specs): Likewise.
12196         (scanf_length_specs): Likewise.
12197         (strfmon_length_specs): Likewise.
12198         (gcc_gfc_length_specs): Likewise.
12199         (printf_flag_specs): Change 0 to STD_C89.
12200         (asm_fprintf_flag_specs): Likewise.
12201         (gcc_diag_flag_specs): Likewise.
12202         (gcc_cxxdiag_flag_specs): Likewise.
12203         (scanf_flag_specs): Likewise.
12204         (strftime_flag_specs): Likewise.
12205         (strfmon_flag_specs): Likewise.
12206         (print_char_table): Likewise.
12207         (asm_fprintf_char_table): Likewise.
12208         (gcc_diag_char_table): Likewise.
12209         (gcc_tdiag_char_table): Likewise.
12210         (gcc_cdiag_char_table): Likewise.
12211         (gcc_cxxdiag_char_table): Likewise.
12212         (gcc_gfc_char_table): Likewise.
12213         (scan_char_table): Likewise.
12214         (time_char_table): Likewis.
12215         (monetary_char_table): Likewise.
12216         * c-format.h (BADLEN): Likewise.
12217
12218 2008-06-21  Ian Lance Taylor  <iant@google.com>
12219
12220         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
12221         Define END_OF_BASE_TREE_CODES around inclusion.
12222         * tree.c (tree_code_type): New global array.
12223         (tree_code_length, tree_code_name): Likewise.
12224         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
12225         $(lang_tree_files).
12226         (all-tree.def, s-alltree): New targets.
12227         (gencheck.h, s-gencheck): Remove.
12228         (tree.o): Depend upon all-tree.def.
12229         (build/gencheck.o): Remove gencheck.h dependency.
12230         (mostlyclean): Don't remove gencheck.h.
12231         * c-common.h (enum c_tree_code): Remove.
12232         * c-lang.c (tree_code_type): Remove.
12233         (tree_code_length, tree_code_name): Remove.
12234         * gencheck.c (tree_codes): Include all-tree.def, rather than
12235         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
12236         after it is used.
12237         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
12238         than tree.def.
12239         * cp/cp-tree.h (enum cplus_tree_code): Remove.
12240         (operator_name_info): Size to MAX_TREE_CODES.
12241         (assignment_operator_name_info): Likewise.
12242         * cp/cp-lang.c (tree_code_type): Remove.
12243         (tree_code_length, tree_code_name): Remove.
12244         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
12245         (assignment_operator_name_info): Likewise.
12246         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
12247         MAX_TREE_CODES.
12248         * cp/mangle.c (write_expression): Likewise.
12249         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
12250         * fortran/f95-lang.c (tree_code_type): Remove.
12251         (tree_code_length, tree_code_name): Remove.
12252         * java/java-tree.h (enum java_tree_code): Remove.
12253         * java/lang.c (tree_code_type): Remove.
12254         (tree_code_length, tree_code_name): Remove.
12255         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
12256         * objc/objc-act.h (enum objc_tree_code): Remove.
12257         * objc/objc-lang.c (tree_code_type): Remove.
12258         (tree_code_length, tree_code_name): Remove.
12259         * objcp/objcp-lang.c (tree_code_type): Remove.
12260         (tree_code_length, tree_code_name): Remove.
12261         * ada/ada-tree.h (enum gnat_tree_code): Remove.
12262         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
12263         * ada/misc.c (tree_code_type): Remove.
12264         (tree_code_length, tree_code_name): Remove.
12265
12266 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
12267
12268         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
12269         the grand_bitmap_obstack.
12270
12271 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12272
12273         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
12274         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
12275         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
12276         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
12277         move_stmt_r, new_label_mapper): Likewise.
12278         * tree-complex.c (cvc_lookup): Likewise.
12279         * tree-dfa.c (create_function_ann): Likewise.
12280         * tree-dump.c (dump_register): Likewise.
12281         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
12282         find_phi_replacement_condition): Likewise.
12283         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
12284         tree_function_versioning): Likewise.
12285         * tree-into-ssa.c (cmp_dfsnum): Likewise.
12286         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
12287         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
12288         get_nonlocal_debug_decl, convert_nonlocal_reference,
12289         convert_nonlocal_omp_clauses, get_local_debug_decl,
12290         convert_local_reference, convert_local_omp_clauses,
12291         convert_nl_goto_reference, convert_nl_goto_receiver,
12292         convert_tramp_reference, convert_call_expr): Likewise.
12293         * tree-outof-ssa.c (contains_tree_r): Likewise.
12294         * tree-parloops.c (reduction_phi, initialize_reductions,
12295         eliminate_local_variables_1, add_field_for_reduction,
12296         add_field_for_name, create_phi_for_local_result,
12297         create_call_for_reduction_1, create_loads_for_reductions,
12298         create_stores_for_reduction, create_loads_and_stores_for_name):
12299         Likewise.
12300         * tree-phinodes.c (allocate_phi_node): Likewise.
12301         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
12302         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
12303         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
12304         * tree-ssa-coalesce.c (compare_pairs): Likewise.
12305         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
12306         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
12307         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
12308         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
12309         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
12310         vn_nary_op_insert): Likewise.
12311         * tree-ssa.c (redirect_edge_var_map_add,
12312         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
12313         * tree-vectorizer.c (vectorize_loops): Likewise.
12314         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
12315         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
12316         tree_cons_stat, build1_stat, build_variant_type_copy,
12317         decl_init_priority_lookup, decl_fini_priority_lookup,
12318         decl_priority_info, decl_restrict_base_lookup,
12319         decl_restrict_base_insert, decl_debug_expr_lookup,
12320         decl_debug_expr_insert, decl_value_expr_lookup,
12321         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
12322         type_hash_add, get_file_function_name, tree_check_failed,
12323         tree_not_check_failed, tree_range_check_failed,
12324         omp_clause_range_check_failed, build_omp_clause,
12325         build_vl_exp_stat): Likewise.
12326         * value-prof.c (gimple_histogram_value,
12327         gimple_duplicate_stmt_histograms): Likewise.
12328         * var-tracking.c (attrs_list_insert, attrs_list_copy,
12329         unshare_variable, variable_union_info_cmp_pos, variable_union,
12330         dataflow_set_different_1, dataflow_set_different_2,
12331         vt_find_locations, variable_was_changed, set_variable_part,
12332         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
12333         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
12334         section_entry_hash, object_block_entry_eq,
12335         object_block_entry_hash, create_block_symbol,
12336         initialize_cold_section_name, default_function_rodata_section,
12337         strip_reg_name, set_user_assembler_name, const_desc_eq,
12338         build_constant_desc, output_constant_def, lookup_constant_def,
12339         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
12340         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
12341         default_internal_label): Likewise.
12342         * varray.c (varray_init, varray_grow): Likewise.
12343         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
12344
12345 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
12346
12347         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
12348         operators for "test" insn.  Macroize insn using SWI mode macro.
12349         (*jcc_fused_2): Ditto.
12350         (*jcc_fused_3): Macroize insn using SWI mode macro.
12351         (*jcc_fused_4): Ditto.
12352
12353 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
12354
12355         * tree-ssa-pre.c: Fix typo in comment.
12356         (init_antic, fini_antic): Add explicit funtions for
12357         initializing and deinitializing ANTIC and AVAIL sets.
12358         (create_expression_by_pieces): Fix typo in comment.
12359         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
12360         (execute_pre): Eventually dump details about ANTIC_IN.
12361
12362 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12363
12364         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
12365         * gcc.c (translate_options, init_spec, store_arg, read_specs,
12366         add_to_obstack, file_at_path, find_a_file, execute,
12367         add_preprocessor_option, add_assembler_option, add_linker_option,
12368         process_command, insert_wrapper, do_option_spec, do_self_spec,
12369         spec_path, do_spec_1, is_directory, main, used_arg,
12370         getenv_spec_function): Likewise.
12371         * tlink.c (symbol_hash_lookup, file_hash_lookup,
12372         demangled_hash_lookup, symbol_push, file_push, frob_extension):
12373         Likewise.
12374
12375 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
12376
12377         * doc/rtl.texi: Updated subreg section.
12378
12379 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
12380
12381         PR c++/36523
12382         * cgraphunit.c (cgraph_process_new_functions): Don't clear
12383         node->needed and node->reachable.
12384         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
12385         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
12386         (expand_task_call): Don't call expand_task_copyfn.
12387         (expand_task_copyfn): Renamed to...
12388         (finalize_task_copyfn): ... this.
12389
12390 2008-06-19  Jan Hubicka  <jh@suse.cz>
12391
12392         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
12393         clobbering framepointer.
12394
12395 2008-06-19  Jan Hubicka  <jh@suse.cz>
12396
12397         * tree-optimize.c (execute_early_local_optimizations): Set
12398         cgraph_state only at first invocation.
12399
12400 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12401
12402         * system.h (-Wc++-compat): Activate as a warning, no an error.
12403
12404 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
12405
12406         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
12407         instead of "#" in insn asm template.
12408         (*jcc_fused_2): Ditto.
12409
12410 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
12411
12412         * config/i386/i386.h (ix86_tune_indices)
12413         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
12414         (TARGET_FUSE_CMP_AND_BRANCH): New define.
12415         * config/i386/i386.md (*jcc_fused_1): New insn pattern
12416         (*jcc_fused_2): Ditto.
12417         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
12418         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
12419         (print operand): Handle 'E' and 'e' code.
12420
12421 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
12422
12423         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
12424         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
12425         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
12426
12427 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
12428
12429         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
12430         node->decl.
12431         (cgraph_expand_function): Use local copy of decl.
12432         (cgraph_expand_all_functions): Remove redundant initialization of
12433         order_pos.
12434         (cgraph_optimize): Reword internal_error message.
12435
12436 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
12437
12438         * arm-protos.h (arm_return_in_memory): Remove public
12439         arm_return_in_memory() prototype.
12440         * arm.c (arm_return_in_memory): Add static prototype, add target
12441         hook macro, change definition and comments.
12442         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
12443
12444 2008-06-19  Ben Elliston  <bje@au.ibm.com>
12445
12446         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
12447         real.c: Remove references to IEEE 754R.
12448         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
12449         * doc/libgcc.texi (Decimal float library routines): Likewise.
12450
12451 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12452
12453         * targhooks.h (struct gcc_target): New member unwind_word_mode.
12454         (default_unwind_word_mode): Add prototype.
12455         * targhooks.c (default_unwind_word_mode): New function.
12456         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
12457         instead of word_mode.
12458         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
12459         (TARGET_INITIALIZER): Use it.
12460
12461         * c-common.c (handle_mode_attribute): Support "unwind_word"
12462         mode attribute.
12463         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
12464
12465         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
12466         word_mode to access SjLj_Function_Context member "data".
12467         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
12468         conversion from targetm.eh_return_filter_mode () to
12469         targetm.unwind_word_mode () if they differ.
12470
12471         * builtin-types.def (BT_UNWINDWORD): New primitive type.
12472         (BT_FN_UNWINDWORD_PTR): New function type.
12473         (BT_FN_WORD_PTR): Remove.
12474         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
12475         * except.c (expand_builtin_extend_pointer): Convert pointer to
12476         targetm.unwind_word_mode () instead of word_mode.
12477
12478         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
12479         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
12480         (spu_unwind_word_mode): New function.
12481         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
12482         (TARGET_UNWIND_WORD_MODE): Define.
12483         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
12484
12485 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12486
12487         * config/spu/spu.c (reg_align): Remove.
12488         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
12489         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
12490         (spu_split_store): Likewise.
12491
12492 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
12493
12494         * gcc/tree-vn.c: Fix typo in comment.
12495
12496 2008-06-18  Jan Hubicka  <jh@suse.cz>
12497
12498         * cgraphunit.c (cgraph_optimize): Output debug info when doing
12499         toplevel reorder too.
12500
12501 2008-06-18  Jan Hubicka  <jh@suse.cz>
12502
12503         * c-opts.c (c_common_post_options): PCH is not compatible with
12504         no-unit-at-a-time.
12505         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
12506         -fno-toplevel-reorder by default now.
12507
12508 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12509
12510         PR documentation/30739
12511         * doc/install.texi (Prerequisites): Document dependency on awk.
12512
12513 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
12514             Ian Lance Taylor  <iant@google.com>
12515
12516         PR rtl-optimization/35604
12517         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
12518         only want to change jump destinations, not eventual label comparisons.
12519
12520 2008-06-16  Jan Hubicka  <jh@suse.cz>
12521
12522         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
12523         syntax errors.
12524         (cgraph_analyze_function): Likewise.
12525
12526 2008-06-16  Jan Hubicka  <jh@suse.cz>
12527
12528         * cgraph.h (cgraph_mark_if_needed): New function.
12529         * cgraphunit.c (cgraph_mark_if_needed): New function.
12530         * c-decl.c (duplicate_decl): Use it.
12531
12532 2008-06-16  Jan Hubicka  <jh@suse.cz>
12533
12534         * cgraph.c (cgraph_add_new_function): When in expansion state, do
12535         lowering.
12536
12537 2008-06-16  Jan Hubicka  <jh@suse.cz>
12538
12539         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
12540
12541 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
12542             Kazu Hirata  <kazu@codesourcery.com>
12543             Maxim Kuvyrkov  <maxim@codesourcery.com
12544
12545         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
12546         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
12547         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
12548         EXTRA_SPEC_FUNCTIONS.
12549         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
12550         (DRIVER_SELF_SPECS): Adjust.
12551         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
12552         * config/mips/st.h, config/mips/t-st: New.
12553         * config/mips/driver-native.c, config/mips/x-native: New.
12554         * doc/invoke.texi (MIPS): Document 'native' value for -march and
12555         -mtune options.
12556
12557 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
12558
12559         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
12560         from it.
12561         (ISA_HAS_FP_CONDMOVE): New macro.
12562         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
12563         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
12564         (ISA_HAS_NMADD3_NMSUB3): New macro.
12565         * config/mips/mips.c (mips_rtx_costs): Update.
12566         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
12567         compiling for ST Loongson 2E/2F.
12568         (madd<mode>): Rename to madd4<mode>.  Update.
12569         (madd3<mode>): New pattern.
12570         (msub<mode>): Rename to msub4<mode>.  Update.
12571         (msub3<mode>): New pattern.
12572         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
12573         (nmadd3<mode>): New pattern.
12574         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
12575         (nmadd3<mode>_fastmath): New pattern.
12576         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
12577         (nmsub3<mode>): New pattern.
12578         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
12579         (nmsub3<mode>_fastmath): New pattern.
12580         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
12581
12582 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
12583
12584         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
12585         (DF_REF_INSN_INFO): New.
12586         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
12587         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
12588         with a NULL DF_REF_INSN_INFO.
12589         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
12590         DF_INSN_SET.
12591         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
12592         DF_INSN_INFO_EQ_USES): New.
12593         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
12594         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
12595         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
12596         * df-core.c: Update comment for above changes.
12597         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
12598         DF_INSN_UID_* macros.
12599         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
12600         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
12601         insn rtx.  Update all callers.
12602         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
12603         df_ref_create_structure, df_insn_refs_collect): Likewise.
12604         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
12605         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
12606         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
12607         macros to access the insn refs.
12608         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
12609         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
12610         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
12611         for accessing the refs.
12612         (try_fwprop_subst): Likewise.
12613         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
12614         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
12615         for accessing the refs.
12616         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
12617         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
12618         to look at the insn refs.
12619         (record_uses): Likewise.
12620         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
12621         function anymore.
12622         (mark_artificial_uses): Don't mark_insn for artificial refs.
12623         (mark_reg_rependencies): Likewise.
12624
12625         * doc/rtl.texi: Remove documentation of ADDRESSOF.
12626
12627 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12628
12629         * configure: Regenerate.
12630
12631 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
12632
12633         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
12634         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
12635         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12636
12637 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
12638
12639         * config/avr/avr.c (avr_mcu_t): Add attiny167.
12640         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
12641         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12642
12643 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
12644
12645         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
12646         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
12647         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12648
12649 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
12650
12651         * tree-ssa-sccvn.c: Fix format of comments.
12652
12653 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
12654
12655         * cgraph.c: Remove unneeded forward declarations of eq_node()
12656         and hash_node().
12657
12658 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
12659
12660         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
12661         REG_RETVAL notes.
12662         (see_update_relevancy): Likewise.
12663         * fwprop.c (try_fwprop_subst): Likewise.
12664         * rtlanal.c (noop_move_p): Likewise.
12665         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
12666         notes to non-existing libcall blocks.
12667         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
12668         Remove orig_set.
12669         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
12670         (dead_libcall_p): Remove.
12671         (delete_trivially_dead_insns): Don't use it.
12672         * web.c (union_defs): Remove comment about keeping nops.
12673         * gcse.c (hash_scan_insn): Don't take libcall pointers.
12674         (compute_hash_table_work): Don't track libcall notes.
12675         (do_local_cprop): Don't take libcall pointers.  Don't update
12676         libcall notes.
12677         (adjust_libcall_notes): Deleted.
12678         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
12679         ever have existed in the first place).
12680         (replace_store_insn): Don't try to remove libcall notes.
12681         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
12682         (resolve_reg_notes): Don't call them.
12683         (resolve_simple_move): Likewise.
12684         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
12685         Don't remove REG_RETVAL notes.
12686         * emit-rtl.c (try_split): Don't update libcall notes.
12687         (emit_copy_of_insn_after): Dito.
12688         * cselib.c (cselib_current_insn_in_libcall): Remove.
12689         (cselib_process_insn): Don't set/clear it.
12690         (new_elt_loc_list): Don't record it.
12691         (cselib_init): Don't initialize it.
12692         * cselib.c (struct elt_loc_list): Remove in_libcall field.
12693         * loop-invariant.c (find_invariant_insn): Don't look for libcall
12694         notes.
12695         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
12696         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
12697         (init_deps): Don't initialize it.
12698         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
12699         * combine.c (delete_noop_moves): Don't update libcall notes.
12700         (can_combine_p): Remove now pointless #if 0 block.
12701         (try_combine): Remove another obsolete #if 0 block.
12702         (distribute_notes): Don't distribute libcall notes.
12703         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
12704         * dce.c (libcall_dead_p): Remove.
12705         (delete_unmarked_insns): Don't handle libcall blocks.
12706         (preserve_libcall_for_dce): Remove.
12707         (prescan_insns_for_dce): Don't special-case libcall block insns.
12708         * reload1 (reload): Don't handle libcall notes.
12709         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
12710         documentation.
12711
12712 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
12713
12714         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
12715         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
12716         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12717
12718 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
12719
12720         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
12721         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
12722         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12723
12724 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12725
12726         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
12727
12728 2008-06-16  Ira Rosen  <irar@il.ibm.com>
12729
12730         PR tree-optimization/36493
12731         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
12732         the arguments list. Use VECTYPE to create vector pointer.
12733         (vectorizable_store): Fail if accesses through a pointer to vectype
12734         do not alias the original memory reference operands.
12735         Call vect_create_data_ref_ptr without the removed argument.
12736         (vectorizable_load): Likewise.
12737         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
12738         removed argument.
12739
12740 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
12741
12742         PR target/36336
12743         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
12744         reg_equiv_constant.
12745
12746 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
12747
12748         * config/mips/loongson2ef.md: New file.
12749         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
12750         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
12751         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
12752         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
12753         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
12754         and loongson_2f.
12755         (loongson2ef.md): New include.
12756         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
12757         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
12758         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
12759         (loongson_gt_<mode>, loongson_extract_halfword)
12760         (loongson_insert_halfword_0, loongson_insert_halfword_2)
12761         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
12762         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
12763         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
12764         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
12765         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
12766         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
12767         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
12768         (vec_interleave_low<mode>): Define type attribute.
12769         * config/mips/mips.c (mips_ls2): New static variable.
12770         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
12771         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
12772         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
12773         Implement target scheduling hooks.
12774         (mips_multipass_dfa_lookahead): Update to handle tuning for
12775         Loongson 2E/2F.
12776         (mips_sched_init): Initialize data for Loongson scheduling.
12777         (mips_ls2_variable_issue): New static function.
12778         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
12779         Add sanity check.
12780         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
12781         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
12782         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
12783         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
12784         Handle ST Loongson 2E/2F cores.
12785         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
12786
12787 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12788
12789         * omp-low.c (extract_omp_for_data): Fix comment typo.
12790         * c.opt: Fix typo.
12791
12792 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12793
12794         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
12795         FIXME note about gcc/config.guess.
12796         * doc/options.texi (Option file format): Remove non-ASCII bytes.
12797         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
12798         * doc/cppopts.texi: Likewise.
12799         * doc/extend.texi: Likewise.
12800         * doc/gcc.texi: Likewise.
12801         * doc/gccint.texi: Likewise.
12802         * doc/gcov.texi: Likewise.
12803         * doc/gty.texi: Likewise.
12804         * doc/hostconfig.texi: Likewise.
12805         * doc/install.texi: Likewise.
12806         * doc/invoke.texi: Likewise.
12807         * doc/loop.texi: Likewise.
12808         * doc/makefile.texi: Likewise.
12809         * doc/md.texi: Likewise.
12810         * doc/passes.texi: Likewise.
12811         * doc/tm.texi: Likewise.
12812         * doc/tree-ssa.texi: Likewise.
12813         * doc/trouble.texi: Likewise.
12814
12815 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
12816             Nathan Sidwell  <nathan@codesourcery.com>
12817             Maxim Kuvyrkov  <maxim@codesourcery.com>
12818             Richard Sandiford  <rdsandiford@googlemail.com>
12819
12820         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
12821         * config/mips/mips-protos.h (mips_expand_vector_init): New.
12822         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
12823         builtins.
12824         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
12825         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
12826         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
12827         V8QImode cases.
12828         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
12829         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
12830         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
12831         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
12832         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
12833         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
12834         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
12835         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
12836         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
12837         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
12838         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
12839         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
12840         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
12841         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
12842         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
12843         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
12844         (mips_builtins): Add Loongson builtins.
12845         (mips_loongson_2ef_bdesc): New.
12846         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
12847         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
12848         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
12849         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
12850         New.
12851         (mips_expand_vector_init): New.
12852         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
12853         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
12854         if appropriate.
12855         * config/mips/mips.md: Add unspec numbers for Loongson
12856         builtins.  Include loongson.md.
12857         (MOVE64): Include Loongson vector modes.
12858         (SPLITF): Include Loongson vector modes.
12859         (HALFMODE): Handle Loongson vector modes.
12860         * config/mips/loongson.md: New.
12861         * config/mips/loongson.h: New.
12862         * config.gcc: Add loongson.h header for mips*-*-* targets.
12863         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
12864
12865 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
12866
12867         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
12868         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
12869         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
12870         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
12871         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
12872         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
12873         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
12874         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
12875         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
12876         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
12877         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
12878         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
12879         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
12880         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
12881         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
12882         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
12883         Remove use_fixproto=yes.
12884         (ia64*-*-hpux*): Remove comment about using fixproto.
12885         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
12886
12887 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12888
12889         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
12890         library rebuilds.
12891         * configure: Regenerate.
12892
12893 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
12894
12895         PR middle-end/36520
12896         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
12897         before evaluating it.
12898
12899 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
12900
12901         PR c/36507
12902         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
12903         nested inline functions.
12904         (start_decl, start_function): Don't invert DECL_EXTERNAL
12905         for nested inline functions.
12906
12907 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
12908
12909         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
12910         splits that must be made for correctness.
12911
12912 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
12913
12914         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
12915         (AVAIL_NON_MIPS16): Likewise.
12916         (mips_builtin_description): Replace target_flags with a predicate.
12917         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
12918         (dspr2_32): New availability predicates.
12919         (MIPS_BUILTIN): New macro.
12920         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
12921         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
12922         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
12923         Replace the TARGET_FLAGS parameters with AVAIL parameters.
12924         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
12925         (mips_dsp_32only_bdesc): Merge into...
12926         (mips_builtins): ...this new array.
12927         (mips_bdesc_map, mips_bdesc_arrays): Delete.
12928         (mips_init_builtins): Update after above changes.
12929         (mips_expand_builtin_1): Merge into...
12930         (mips_expand_builtin): ...here and update after above changes.
12931
12932 2008-06-12  Paul Brook  <paul@codesourcery.com>
12933
12934         * longlong.h (__arm__): Define count_leading_zeros.
12935         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
12936         (clzsi2, clzdi2): New functions.
12937         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
12938         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
12939         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
12940         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
12941         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
12942         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
12943         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
12944         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
12945         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
12946         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
12947
12948 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
12949
12950         * config/m68k/m68k.c (m68k_tune_flags): New.
12951         (override_options): Compute m68k_tune_flags.
12952         (MULL_COST, MULW_COST): Update for various variants of CFV2.
12953         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
12954
12955 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
12956
12957         PR middle-end/36506
12958         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
12959
12960 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
12961
12962         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
12963         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
12964
12965 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
12966
12967         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
12968         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
12969
12970 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
12971
12972         PR middle-end/36506
12973         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
12974         reductions.
12975
12976 2008-06-12  Richard Guenther  <rguenther@suse.de>
12977
12978         PR tree-optimization/36345
12979         * tree-flow.h (struct ptr_info_def): Align escape_mask,
12980         add memory_tag_needed flag.
12981         (may_alias_p): Declare.
12982         * tree-ssa-alias.c (may_alias_p): Export.
12983         (set_initial_properties): Use memory_tag_needed flag.
12984         (update_reference_counts): Likewise.
12985         (reset_alias_info): Reset memory_tag_needed flag.
12986         (create_name_tags): Check memory_tag_needed flag.
12987         (dump_points_to_info_for): Dump it.
12988         * tree-ssa-structalias.c (struct variable_info): Remove
12989         directly_dereferenced flag.
12990         (new_var_info): Do not initialize it.
12991         (process_constraint_1): Do not set it.
12992         (update_alias_info): Set is_dereferenced flag.
12993         (set_uids_in_ptset): Use may_alias_p.
12994         (set_used_smts): Check memory_tag_needed flag.
12995         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
12996         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
12997         memory_tag_needed flag.
12998         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
12999         from broken design.
13000
13001 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
13002
13003         * config/i386/i386.c (ix86_compute_frame_layout): Disable
13004         red zone for w64 abi.
13005         (ix86_expand_prologue): Likewise.
13006         (ix86_force_to_memory): Likewise.
13007         (ix86_free_from_memory): Likewise.
13008
13009 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
13010
13011         PR target/36425
13012         * config/rs6000/rs6000.c (rs6000_override_options): Set
13013         rs6000_isel conditionally to the absence of comand line override.
13014         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
13015         Remove duplicate rs6000_isel setting.
13016         * config/rs6000/eabispe.h: Ditto.
13017
13018 2008-06-11  Richard Guenther  <rguenther@suse.de>
13019
13020         * alias.c (get_alias_set): Use the element alias-set for arrays.
13021         (record_component_aliases): For arrays and vectors do nothing.
13022         * c-common.c (strict_aliasing_warning): Handle the cases
13023         of alias set zero explicitly.
13024         * Makefile.in (dfp.o-warn): Add -Wno-error.
13025
13026 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
13027
13028         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
13029         tune_32 tune_64.
13030         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
13031         tune_32 tune_64 to supported_defaults.  Allow values not
13032         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
13033         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
13034         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
13035         with_cpu_64 to generic for 64-bit-supporting configurations, not
13036         with_cpu.  Remove FIXMEs.
13037         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
13038         --with-arch-64, --with-tune-32, --with-tune-64): Document.
13039         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
13040         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
13041         arch_32 and arch_64.
13042
13043 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
13044             Olivier Hainque  <hainque@adacore.com>
13045
13046         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
13047         Use DECL_SIZE_UNIT to retrieve the size of the field.
13048
13049 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
13050
13051         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
13052         with function calls after declarations.  Lay out
13053         neon_float_type_node before further use.
13054
13055 2008-06-11  Richard Guenther  <rguenther@suse.de>
13056
13057         * tree-flow.h (may_point_to_global_var): Declare.
13058         * tree-ssa-alias.c (may_point_to_global_var): New function.
13059         * tree-ssa-sink.c (is_hidden_global_store): Use it.
13060
13061 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
13062
13063         * configure.ac: Teach that fido supports .debug_line.
13064         * configure: Regenerate.
13065
13066 2008-06-10  Tom Tromey  <tromey@redhat.com>
13067
13068         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
13069         debug hook.
13070
13071 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
13072
13073         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
13074         (encode_decimal64, decode_decimal64, encode_decimal128,
13075         decode_decimal128): Reverse order of 32-bit parts of value if host
13076         and target endianness differ.
13077
13078 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
13079
13080         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
13081         Avoid division by 0.
13082         (tree_mod_pow2_value_transform): Likewise.
13083         (tree_ic_transform): Likewise.
13084         (tree_stringops_transform): Likewise.
13085         (tree_mod_subtract_transform): Likewise.
13086         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
13087         (copy_edges_for_bb): Likewise.
13088         (initialize_cfun): Likewise.
13089
13090 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
13091
13092         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
13093         nonmemory_operand. Add "N" operand constraint.
13094         (*btsi): Ditto.
13095         (*jcc_btdi_mask_rex64): New instruction and split pattern.
13096         (*jcc_btsi_mask): Ditto.
13097         (*jcc_btsi_mask_1): Ditto.
13098
13099 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
13100
13101         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
13102         TYPE_CANONICAL for copied element type.
13103
13104 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
13105
13106         PR target/36473
13107         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
13108         Add m_CORE2 and m_GENERIC.
13109         * config/i386/predicates.md (bt_comparison_operator): New predicate.
13110         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
13111         (*btsi): Ditto.
13112         (*jcc_btdi_rex64): New instruction and split pattern.
13113         (*jcc_btsi): Ditto.
13114         (*jcc_btsi_1): Ditto.
13115         (*btsq): Fix Intel asm dialect operand order.
13116         (*btrq): Ditto.
13117         (*btcq): Ditto.
13118
13119 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
13120
13121         PR middle-end/36447
13122         * simplify-rtx.c (simplify_subreg): Add check for shift count
13123         greater than size.
13124
13125 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
13126
13127         * doc/md.texi: Synchronize with later constraints.md change.
13128         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
13129         with a C implementation.
13130         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
13131         MFLO handling.
13132         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
13133         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
13134         when moving to and from MD_REGNUM.
13135         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
13136         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
13137         Handle byte and halfword moves.
13138         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
13139         separately.
13140         * config/mips/constraints.md (h): Turn into NO_REGS.
13141         (l, x): Update documentation.
13142         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
13143         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
13144         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
13145         (HILO): New mode iterator.
13146         (MOVE128): Add TI.
13147         (any_div): New code iterator.
13148         (u): Extend code attribute to div and udiv.
13149         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
13150         d_operand in the splitters.  Remove redundant CONST_INT checks.
13151         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
13152         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
13153         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
13154         accordingly, using normal moves instead of unspecs to move LO into
13155         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
13156         (<u>mulsidi3): Handle expansion in C code.
13157         (<u>mulsidi3_32bit_internal): Rename to...
13158         (<u>mulsidi3_32bit): ...this.
13159         (<u>mulsidi3_32bit_r4000): Fix insn separator.
13160         (*<u>mulsidi3_64bit): Rename to...
13161         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
13162         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
13163         to set LO and HI to the multiplication result.  Use a normal move
13164         for MFLO and an unspec for MFHI.
13165         (*<u>mulsidi3_64bit_parts): Replace with...
13166         (<u>mulsidi3_64bit_hilo): ...this new instruction.
13167         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
13168         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
13169         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
13170         instead of HI.  Split the instruction into a separate multiplication
13171         and MFHI if !TARGET_FIX_R4000.
13172         (<su>muldi3_highpart): Likewise.
13173         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
13174         and the "=h" clobber.
13175         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
13176         (<u>mulditi3): New expander.
13177         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
13178         (madsi): Remove "=h" clobber.
13179         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
13180         Force the modulus result to be a GPR and split the instruction into
13181         a division followed by an MFHI after reload.
13182         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
13183         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
13184         the MIPS16 HIGH define_split.
13185         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
13186         of acc<->gpr moves to "multi".
13187         (*movdi_64bit): Replace the single "x" alternative with
13188         alternatives for moving into and out of "a".
13189         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
13190         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
13191         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
13192         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
13193         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
13194         (movti): New expander.
13195         (*movti, *movti_mips16): New insns.
13196         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
13197         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
13198         (mthi<GPR:mode>_<HILO:mode>): Likewise.
13199         * config/mips/predicates.md (fpr_operand): Delete.
13200         (d_operand): New predicate.
13201
13202 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
13203
13204         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
13205         failure on some Bourne shells.
13206         (x86_64-*-*): Ditto.
13207
13208 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
13209
13210         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
13211
13212 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
13213
13214         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
13215         (sparc-sun-solaris2*): Likewise.
13216
13217 2008-06-09  Arnaud Charlet  <charlet@adacore.com
13218
13219         * doc/install.texi: Update requirements to build the Ada compiler.
13220
13221 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
13222
13223         * df-scan.c (struct df_scan_problem_data): Remove the
13224         mw_link_pool alloc pool.
13225         (df_scan_free_internal): Don't free it.
13226         (df_scan_alloc): Don't allocate it.
13227         * df.h (struct df_link): Update comment.
13228
13229 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
13230
13231         * except.h: Correct checks for when SJLJ exceptions must be used.
13232
13233 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13234
13235         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
13236         default.
13237
13238 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
13239
13240         PR tree-optimization/36218
13241         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
13242         configure for the build system.
13243         (BUILD_LDFLAGS): Define.
13244         * configure: Regenerate.
13245         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
13246
13247 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
13248
13249         PR target/36424
13250         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
13251         * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
13252         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
13253
13254 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
13255
13256         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
13257
13258 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
13259
13260         * config.gcc (Obsolete configurations): Remove list of
13261         configurations.
13262         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
13263         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
13264         targets matched by those patterns.
13265         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
13266         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
13267         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
13268         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
13269         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
13270         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
13271         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
13272         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
13273         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
13274         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
13275         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
13276         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
13277         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
13278         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
13279         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
13280         Make code for Solaris 7 and greater unconditional for Solaris.
13281         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
13282         Remove --with-* handling.
13283         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
13284         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
13285         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
13286         LINK_OS_WINDISS_SPEC): Remove.
13287         * config/rs6000/sysv4.opt (mwindiss): Remove.
13288         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
13289         * configure: Regenerate.
13290         * doc/cpp.texi: Don't mention BeOS.
13291         * doc/extend.texi (interrupt): Don't mention MS1.
13292         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
13293         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
13294         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
13295         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
13296         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
13297         Remove.
13298         * doc/invoke.texi (MT Options): Remove.
13299         (-mwindiss): Remove.
13300         (CRIS Options): Remove cris-axis-aout references.
13301         (HPPA Options): Don't mention hppa1.1-*-pro.
13302         * doc/md.texi: (MorphoTech family): Remove.
13303         * libgcc2.c: Don't handle UWIN.
13304         * config/alpha/t-unicosmk: Remove.
13305         * config/alpha/unicosmk.h: Remove.
13306         * config/arm/kaos-arm.h: Remove.
13307         * config/arm/kaos-strongarm.h: Remove.
13308         * config/arm/strongarm-coff.h: Remove.
13309         * config/arm/strongarm-elf.h: Remove.
13310         * config/arm/strongarm-pe.h: Remove.
13311         * config/arm/t-strongarm-pe: Remove.
13312         * config/arm/t-xscale-coff: Remove.
13313         * config/arm/t-xscale-elf: Remove.
13314         * config/arm/xscale-coff.h: Remove.
13315         * config/arm/xscale-elf.h: Remove.
13316         * config/chorus.h: Remove.
13317         * config/cris/aout.h: Remove.
13318         * config/cris/aout.opt: Remove.
13319         * config/cris/t-aout: Remove.
13320         * config/i386/beos-elf.h: Remove.
13321         * config/i386/kaos-i386.h: Remove.
13322         * config/i386/ptx4-i.h: Remove.
13323         * config/i386/sco5.h: Remove.
13324         * config/i386/sco5.opt: Remove.
13325         * config/i386/sysv4-cpp.h: Remove.
13326         * config/i386/sysv5.h: Remove.
13327         * config/i386/t-beos: Remove.
13328         * config/i386/t-sco5: Remove.
13329         * config/i386/t-uwin: Remove.
13330         * config/i386/uwin.asm: Remove.
13331         * config/i386/uwin.h: Remove.
13332         * config/kaos.h: Remove.
13333         * config/mips/windiss.h: Remove.
13334         * config/mt: Remove directory.
13335         * config/pa/pa-osf.h: Remove.
13336         * config/pa/pa-pro-end.h: Remove.
13337         * config/pa/t-pro: Remove.
13338         * config/ptx4.h: Remove.
13339         * config/rs6000/beos.h: Remove.
13340         * config/rs6000/kaos-ppc.h: Remove.
13341         * config/rs6000/t-beos: Remove.
13342         * config/rs6000/windiss.h: Remove.
13343         * config/sh/kaos-sh.h: Remove.
13344         * config/sol2-6.h: Remove.
13345         * config/sparc/sol26-sld.h: Remove.
13346         * config/sparc/sysv4-only.h: Remove.
13347         * config/vax/bsd.h: Remove.
13348         * config/vax/t-memfuncs: Remove.
13349         * config/vax/ultrix.h: Remove.
13350         * config/vax/vaxv.h: Remove.
13351         * config/windiss.h: Remove.
13352
13353 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
13354
13355         PR rtl-optimization/36438
13356         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
13357         for vector shifts with constant scalar shift operands.
13358
13359 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
13360
13361         * doc/invoke.texi: Document -march=xlr.
13362         * config/mips/xlr.md: New file.
13363         * config/mips/mips.md: Include it.
13364         (cpu): Add "xlr".
13365         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
13366         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
13367         (mips_rtx_cost_data): Likewise.
13368
13369 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
13370
13371         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
13372         PRE_INC and PRE_DEC cases.
13373
13374 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
13375
13376         PR rtl-optimization/36419
13377         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
13378         the emitting jump insn.
13379
13380         PR target/36362
13381         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
13382         is not bool, boolify the whole *expr_p and convert to the desired type.
13383
13384 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
13385
13386         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
13387         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
13388         Add omp_private_outer_ref hook, add another argument to
13389         omp_clause_default_ctor hook.
13390         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
13391         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
13392         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
13393         hook_tree_tree_tree_tree_null.
13394         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
13395         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
13396         * hooks.c (hook_tree_tree_tree_tree_null): New function.
13397         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
13398         * tree.def (OMP_TASK): New tree code.
13399         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
13400         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
13401         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
13402         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
13403         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
13404         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
13405         OMP_CLAUSE_COLLAPSE_EXPR): Define.
13406         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
13407         (OMP_DIRECTIVE_P): Add OMP_TASK.
13408         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
13409         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
13410         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
13411         and OMP_CLAUSE_UNTIED entries.
13412         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
13413         num_ops to 2.
13414         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
13415         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
13416         * tree-pretty-print.c (dump_omp_clause): Handle
13417         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
13418         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
13419         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
13420         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
13421         warning about unsigned iterators.  Change decl/init/cond/incr
13422         arguments to TREE_VECs, check arguments for all collapsed loops.
13423         (c_finish_omp_taskwait): New function.
13424         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
13425         ws_clauses.
13426         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
13427         default_function_array_conversion on init.  Add par_clauses argument.
13428         If decl is present in parallel's lastprivate clause, change it to
13429         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
13430         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
13431         collapse count in clauses.
13432         (c_parser_omp_for, c_parser_omp_parallel): Adjust
13433         c_parser_omp_for_loop callers.
13434         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
13435         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
13436         (c_parser_omp_clause_name): Handle collapse and untied clauses.
13437         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
13438         functions.
13439         (c_parser_omp_clause_schedule): Handle schedule(auto).
13440         Include correct location in the error message.
13441         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
13442         and PRAGMA_OMP_CLAUSE_UNTIED.
13443         (OMP_TASK_CLAUSE_MASK): Define.
13444         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
13445         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
13446         * tree-nested.c (convert_nonlocal_omp_clauses,
13447         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
13448         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
13449         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
13450         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
13451         OMP_CLAUSE_DECL.
13452         (conver_nonlocal_reference, convert_local_reference,
13453         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
13454         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
13455         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
13456         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
13457         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
13458         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
13459         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
13460         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
13461         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
13462         OMP_CLAUSE_UNTIED.
13463         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
13464         * c-common.h (c_finish_omp_taskwait): New prototype.
13465         * gimple-low.c (lower_stmt): Handle OMP_TASK.
13466         * tree-parloops.c (create_parallel_loop): Create 1 entry
13467         vectors for OMP_FOR_{INIT,COND,INCR}.
13468         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
13469         (make_edges): Handle OMP_TASK.
13470         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
13471         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
13472         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
13473         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
13474         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
13475         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
13476         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
13477         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
13478         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
13479         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
13480         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
13481         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
13482         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
13483         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
13484         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
13485         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
13486         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
13487         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
13488         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
13489         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
13490         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
13491         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
13492         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
13493         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
13494         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
13495         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
13496         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
13497         original iterator is present in lastprivate clause or if
13498         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
13499         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
13500         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
13501         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
13502         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
13503         if it is set, lookup var in outer contexts too.  Handle
13504         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
13505         to be implicitly determined firstprivate for task regions.
13506         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
13507         if it is set, lookup var in outer contexts too.  Set
13508         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
13509         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
13510         OMP_CLAUSE_UNTIED.  Take region_type as last argument
13511         instead of in_parallel and in_combined_parallel.
13512         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
13513         Adjust callers.
13514         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
13515         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
13516         (new_omp_context): Set default_kind to
13517         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
13518         (omp_region_type): New enum.
13519         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
13520         fields, add region_type.
13521         (new_omp_context): Take region_type as argument instead of is_parallel
13522         and is_combined_parallel.
13523         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
13524         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
13525         ctx->is_combined_parallel checks.
13526         (gimplify_omp_task): New function.
13527         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
13528         OMP_CLAUSE_UNTIED.
13529         * omp-low.c (extract_omp_for_data): Use schedule(static)
13530         for schedule(auto).  Handle pointer and unsigned iterators.
13531         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
13532         Add loops argument.  Extract data for collapsed OMP_FOR loops.
13533         (expand_parallel_call): Assert sched_kind isn't auto,
13534         map runtime schedule to index 3.
13535         (struct omp_for_data_loop): New type.
13536         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
13537         Add loop, loops, collapse and iter_type fields.
13538         (workshare_safe_to_combine_p): Disallow combined for if
13539         iter_type is unsigned long long.  Don't combine collapse > 1 loops
13540         unless all bounds and steps are constant.  Adjust extract_omp_for_data
13541         caller.
13542         (expand_omp_for_generic): Handle pointer, unsigned and long long
13543         iterators.  Handle collapsed OMP_FOR loops.  Adjust
13544         for struct omp_for_data changes.  If libgomp function doesn't return
13545         boolean_type_node, add comparison of the return value with 0.
13546         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
13547         pointer, unsigned and long long iterators.  Adjust for struct
13548         omp_for_data changes.
13549         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
13550         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
13551         unsigned long long.  Allocate loops array, pass it to
13552         extract_omp_for_data.  For collapse > 1 loops use always
13553         expand_omp_for_generic.
13554         (omp_context): Add sfield_map and srecord_type fields.
13555         (is_task_ctx, lookup_sfield): New functions.
13556         (use_pointer_for_field): Use is_task_ctx helper.  Change first
13557         argument's type from const_tree to tree.  Clarify comment.
13558         In OMP_TASK disallow copy-in/out sharing.
13559         (build_sender_ref): Call lookup_sfield instead of lookup_field.
13560         (install_var_field): Add mask argument.  Populate both record_type
13561         and srecord_type if needed.
13562         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
13563         in srecord_type.
13564         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
13565         and DECL_FIELD_OFFSET.
13566         (scan_sharing_clauses): Adjust install_var_field callers.  For
13567         firstprivate clauses on explicit tasks allocate the var by value in
13568         record_type unconditionally, rather than by reference.
13569         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
13570         Use is_taskreg_ctx instead of is_parallel_ctx.
13571         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
13572         (create_omp_child_function_name): Add task_copy argument, use
13573         *_omp_cpyfn* names if it is true.
13574         (create_omp_child_function): Add task_copy argument, if true create
13575         *_omp_cpyfn* helper function.
13576         (scan_omp_parallel): Adjust create_omp_child_function callers.
13577         Rename parallel_nesting_level to taskreg_nesting_level.
13578         (scan_omp_task): New function.
13579         (lower_rec_input_clauses): Don't run constructors for firstprivate
13580         explicit task vars which are initialized by *_omp_cpyfn*.
13581         Pass outer var ref to omp_clause_default_ctor hook if
13582         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
13583         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
13584         OMP_CLAUSE_REDUCTION_INIT.
13585         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
13586         avoid duplicate setting of fields.  Handle
13587         OMP_CLAUSE_PRIVATE_OUTER_REF.
13588         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
13589         copy-out if TREE_READONLY, only copy-in.
13590         (expand_task_copyfn): New function.
13591         (expand_task_call): New function.
13592         (struct omp_taskcopy_context): New type.
13593         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
13594         New functions.
13595         (lower_omp_parallel): Rename to...
13596         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
13597         Call create_task_copyfn if srecord_type is needed.  Adjust
13598         sender_decl type.
13599         (task_shared_vars): New variable.
13600         (check_omp_nesting_restrictions): Warn if work-sharing,
13601         barrier, master or ordered region is closely nested inside OMP_TASK.
13602         Add warnings for barrier if closely nested inside of work-sharing,
13603         ordered, or master region.
13604         (scan_omp_1): Call check_omp_nesting_restrictions even for
13605         GOMP_barrier calls.  Rename parallel_nesting_level to
13606         taskreg_nesting_level.  Handle OMP_TASK.
13607         (lower_lastprivate_clauses): Even if some lastprivate is found on a
13608         work-sharing construct, continue looking for them on parent parallel
13609         construct.
13610         (lower_omp_for_lastprivate): Add lastprivate clauses
13611         to the beginning of dlist rather than end.  Adjust for struct
13612         omp_for_data changes.
13613         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
13614         not after it.  Handle collapsed OMP_FOR loops, adjust for
13615         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
13616         (get_ws_args_for): Adjust extract_omp_for_data caller.
13617         (scan_omp_for): Handle collapsed OMP_FOR
13618         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
13619         (lower_omp_single_simple): If libgomp function doesn't return
13620         boolean_type_node, add comparison of the return value with 0.
13621         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
13622         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
13623         (parallel_nesting_level): Rename to...
13624         (taskreg_nesting_level): ... this.
13625         (is_taskreg_ctx): New function.
13626         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
13627         of is_parallel_ctx.
13628         (execute_lower_omp): Rename parallel_nesting_level to
13629         taskreg_nesting_level.
13630         (expand_omp_parallel): Rename to...
13631         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
13632         Call omp_task_call for OMP_TASK regions.
13633         (expand_omp): Adjust caller, handle OMP_TASK.
13634         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
13635
13636         * bitmap.c (bitmap_default_obstack_depth): New variable.
13637         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
13638         if argument is NULL and bitmap_default_obstack is already initialized.
13639         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
13640         at the end.
13641         * matrix-reorg.c (matrix_reorg): Likewise.
13642
13643 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
13644
13645         * config/i386/i386.md (*indirect_jump): Macroize using P
13646         mode iterator.  Remove !TARGET_64BIT from insn constraints.
13647         (*tablejump_1): Ditto.
13648         (*indirect_jump_rex64): Remove insn pattern.
13649         (*tablejump_1_rex64): Ditto.
13650         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
13651         and eh_return_si insn patterns.
13652
13653 2008-06-06  Richard Guenther  <rguenther@suse.de>
13654
13655         * tree-ssa-structalias.c (merge_smts_into): Remove.
13656         (find_what_p_points_to): Do not bother to compute the
13657         points-to set for pt_anything pointers.
13658         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
13659         for pt_anything pointers is ok.
13660
13661 2008-06-06  Jan Hubicka  <jh@suse.cz>
13662
13663         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
13664
13665 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13666
13667         * cgraph.c: Fix typos in comments.
13668         (cgraph_availability_names): Fix string typo.
13669         * fold-const.c: Fix typos in comments.
13670         (fold_binary): Fix typo in warning.
13671         * genautomata.c: Fix typos in comments.
13672         (check_presence_pattern_sets): Fix typo in local variable.
13673         (output_description): Fix typo in output.
13674         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
13675         * hwint.h: Likewise.
13676         * matrix-reorg.c (check_allocation_function): Likewise.
13677         * omega.c (smooth_weird_equations): Likewise.
13678         * auto-inc-dec.c: Fix typos in comments.
13679         * bb-reorder.c: Likewise.
13680         * builtins.c: Likewise.
13681         * c-common.c: Likewise.
13682         * c-cppbuiltin.c: Likewise.
13683         * c-parser.c: Likewise.
13684         * c-pretty-print.c: Likewise.
13685         * cfgcleanup.c: Likewise.
13686         * cfgexpand.c: Likewise.
13687         * cfghooks.c: Likewise.
13688         * cfglayout.c: Likewise.
13689         * cfgloopmanip.c: Likewise.
13690         * cgraphunit.c: Likewise.
13691         * coverage.c: Likewise.
13692         * dbxout.c: Likewise.
13693         * df-byte-scan.c: Likewise.
13694         * df-core.c: Likewise.
13695         * df-problems.c: Likewise.
13696         * df-scan.c: Likewise.
13697         * dfp.c: Likewise.
13698         * dominance.c: Likewise.
13699         * domwalk.c: Likewise.
13700         * dse.c: Likewise.
13701         * dwarf2out.c: Likewise.
13702         * emit-rtl.c: Likewise.
13703         * et-forest.c: Likewise.
13704         * function.c: Likewise.
13705         * function.h: Likewise.
13706         * gcc.c: Likewise.
13707         * gcov-io.c: Likewise.
13708         * gcov.c: Likewise.
13709         * gcse.c: Likewise.
13710         * genattrtab.c: Likewise.
13711         * ggc-page.c: Likewise.
13712         * gimplify.c: Likewise.
13713         * gthr-lynx.h: Likewise.
13714         * haifa-sched.c: Likewise.
13715         * ipa-cp.c: Likewise.
13716         * ipa-inline.c: Likewise.
13717         * ipa-prop.h: Likewise.
13718         * ipa-pure-const.c: Likewise.
13719         * ipa-struct-reorg.c: Likewise.
13720         * ipa-struct-reorg.h: Likewise.
13721         * ipa-type-escape.c: Likewise.
13722         * ipa.c: Likewise.
13723         * loop-doloop.c: Likewise.
13724         * mips-tfile.c: Likewise.
13725         * mkmap-flat.awk: Likewise.
13726         * mkmap-symver.awk: Likewise.
13727         * modulo-sched.c: Likewise.
13728         * omp-low.c: Likewise.
13729         * optabs.c: Likewise.
13730         * optabs.h: Likewise.
13731         * opts.c: Likewise.
13732         * passes.c: Likewise.
13733         * postreload-gcse.c: Likewise.
13734         * postreload.c: Likewise.
13735         * predict.c: Likewise.
13736         * pretty-print.h: Likewise.
13737         * profile.c: Likewise.
13738         * protoize.c: Likewise.
13739         * ra-conflict.c: Likewise.
13740         * real.c: Likewise.
13741         * recog.c: Likewise.
13742         * regclass.c: Likewise.
13743         * regs.h: Likewise.
13744         * reload.c: Likewise.
13745         * rtl-error.c: Likewise.
13746         * rtlanal.c: Likewise.
13747         * scan.h: Likewise.
13748         * sched-rgn.c: Likewise.
13749         * see.c: Likewise.
13750         * stmt.c: Likewise.
13751         * target.h: Likewise.
13752         * tree-dfa.c: Likewise.
13753         * tree-eh.c: Likewise.
13754         * tree-flow-inline.h: Likewise.
13755         * tree-inline.c: Likewise.
13756         * tree-into-ssa.c: Likewise.
13757         * tree-loop-distribution.c: Likewise.
13758         * tree-nested.c: Likewise.
13759         * tree-parloops.c: Likewise.
13760         * tree-pass.h: Likewise.
13761         * tree-pretty-print.c: Likewise.
13762         * tree-profile.c: Likewise.
13763         * tree-scalar-evolution.c: Likewise.
13764         * tree-sra.c: Likewise.
13765         * tree-ssa-alias-warnings.c: Likewise.
13766         * tree-ssa-ccp.c: Likewise.
13767         * tree-ssa-coalesce.c: Likewise.
13768         * tree-ssa-dom.c: Likewise.
13769         * tree-ssa-dse.c: Likewise.
13770         * tree-ssa-forwprop.c: Likewise.
13771         * tree-ssa-live.c: Likewise.
13772         * tree-ssa-live.h: Likewise.
13773         * tree-ssa-loop-im.c: Likewise.
13774         * tree-ssa-loop-ivopts.c: Likewise.
13775         * tree-ssa-loop-niter.c: Likewise.
13776         * tree-ssa-loop-prefetch.c: Likewise.
13777         * tree-ssa-phiopt.c: Likewise.
13778         * tree-ssa-phiprop.c: Likewise.
13779         * tree-ssa-sccvn.c: Likewise.
13780         * tree-ssa-ter.c: Likewise.
13781         * tree-ssa-threadupdate.c: Likewise.
13782         * tree-ssa.c: Likewise.
13783         * tree-vect-analyze.c: Likewise.
13784         * tree-vect-transform.c: Likewise.
13785         * tree-vectorizer.c: Likewise.
13786         * tree-vn.c: Likewise.
13787         * tree-vrp.c: Likewise.
13788         * tree.c: Likewise.
13789         * tree.def: Likewise.
13790         * tree.h: Likewise.
13791         * unwind-dw2-fde.c: Likewise.
13792         * unwind.inc: Likewise.
13793         * value-prof.c: Likewise.
13794         * vmsdbgout.c: Likewise.
13795
13796 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
13797
13798         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
13799         always place FP constants in the TOC for TARGET_POWERPC64.
13800         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
13801
13802 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
13803
13804         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
13805         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
13806         enable for TARGET_E500_DOUBLE.
13807         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
13808         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
13809         floating-point modes like integer modes for E500 double.
13810         (rs6000_legitimate_offset_address_p): Likewise.
13811         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
13812         addressing for DDmode for E500 double.
13813         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
13814         modes as using 64-bits of registers for E500 double.
13815         (spe_build_register_parallel): Do not handle DDmode or TDmode.
13816         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
13817         specially for E500 double.
13818         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
13819         TDmode for E500 double.
13820         (rs6000_gimplify_va_arg): Only handle SDmode in registers
13821         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
13822         (rs6000_split_multireg_move): Do not handle TDmode specially for
13823         E500 double.
13824         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
13825         using 64-bit registers for E500 double.
13826         (emit_frame_save): Do not handle DDmode specially for E500 double.
13827         (gen_frame_mem_offset): Likewise.
13828         (rs6000_function_value): Do not call spe_build_register_parallel
13829         for DDmode or TDmode.
13830         (rs6000_libcall_value): Likewise.
13831         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
13832         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
13833         for E500 double.
13834
13835 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
13836
13837         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
13838         in comments.
13839
13840 2008-06-04  Junjie Gu <jgu@tensilica.com>
13841
13842         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
13843         comparison for frame pointers.
13844
13845 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
13846
13847         PR target/27386
13848         * config/avr/avr.h (PUSH_ROUNDING): Remove.
13849
13850 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
13851
13852         PR target/30243
13853         * builtins.c (expand_builtin_signbit): Don't take lowpart when
13854         register is already smaller or equal to required mode.
13855
13856 2008-06-04  Xinliang David Li  <davidxl@google.com>
13857
13858         * tree-call-cdce.c: New file.
13859         (cond_dead_built_in_calls): New static variable.
13860         (input_domain): New struct.
13861         (check_pow): New function.
13862         (check_builtin_call): Ditto.
13863         (check_target_format): Ditto.
13864         (is_call_dce_candidate): Ditto.
13865         (gen_one_condition): Ditto.
13866         (gen_conditions_for_domain): Ditto.
13867         (get_domain): Ditto.
13868         (gen_conditions_for_pow_cst_base): Ditto.
13869         (gen_conditions_for_pow_int_base): Ditto.
13870         (gen_conditions_for_pow): Ditto.
13871         (get_no_error_domain): Ditto.
13872         (gen_shrink_wrap_conditions): Ditto.
13873         (shrink_wrap_one_built_in_call): Ditto.
13874         (shink_wrap_conditional_dead_built_in_calls): Ditto.
13875         (tree_call_cdce): Ditto.
13876         (gate_call_cdce): Ditto.
13877         (pass_call_cdce): New gimple pass.
13878         * passes.c: (init_optimization_passes): New pass.
13879         * tree-pass.h: New pass declaration.
13880         * opts.c (decode_options): New flag setting.
13881         * common.opt: Add -ftree-builtin-call-dce flag.
13882         * Makefile.in: Add new source file.
13883         * tempvar.def: New tv_id.
13884         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
13885
13886 2008-06-04  Richard Guenther  <rguenther@suse.de>
13887
13888         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
13889         (is_call_clobbered): Always check var_ann->call_clobbered.
13890         (mark_call_clobbered): Always set var_ann->call_clobbered.
13891         (clear_call_clobbered): Always clear var_ann->call_clobbered.
13892         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
13893         (reset_alias_info): Clear call clobbering info on MTAGs and
13894         globals as well.
13895         (set_pt_anything): Set pt_global_mem.
13896         (create_tag_raw): Adjust comment.
13897         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
13898
13899 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
13900             Maxim Kuvyrkov  <maxim@codesourcery.com>
13901
13902         * config/m68k/m68k.opt (mxgot): New option.
13903         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
13904         (m68k_output_addr_const_extra): New.
13905         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
13906         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
13907         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
13908         * doc/invoke.texi (M680x0 Options): Document -mxgot.
13909
13910 2008-06-04  Richard Guenther  <rguenther@suse.de>
13911
13912         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
13913         negative or non-representable offsets.
13914
13915 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
13916
13917         * config/i386/i386.c (ix86_gen_leave): New.
13918         (ix86_gen_pop1): Likewise.
13919         (ix86_gen_add3): Likewise.
13920         (ix86_gen_sub3): Likewise.
13921         (ix86_gen_sub3_carry): Likewise.
13922         (ix86_gen_one_cmpl2): Likewise.
13923         (ix86_gen_monitor): Likewise.
13924         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
13925         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
13926         ix86_gen_one_cmpl2 and ix86_gen_monitor.
13927         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
13928         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
13929         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
13930         (ix86_expand_epilogue): Updated.
13931         (print_operand): Handle integer register operand for 'z'.
13932         (ix86_expand_strlensi_unroll_1): Likewise.
13933         (ix86_expand_strlen): Likewise.
13934         (ix86_expand_builtin): Likewise.
13935         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
13936         mov{q}/mov{l} and add{q}/add{l}.
13937
13938 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
13939
13940         * config/i386/i386.md (P): New mode iterator.
13941         (SFmode push_operand splitter): Macroize DImode and SImode pushes
13942         using P mode iterator.
13943         (DFmode push_operand splitter): Ditto.
13944         (XFmode push_operand splitter): Ditto.
13945         (DFmode float_extend SFmode push_operand splitter): Ditto.
13946         (XFmode float_extend SFmode push_operand splitter): Do not generate
13947         SImode pushes for 64bit target.  Macroize Dimode and SImode
13948         pushes using P mode iterator.
13949         (XFmode float_extend DFmode push_operand splitter): Ditto.
13950
13951 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
13952
13953         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
13954         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
13955         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
13956         return type to int.
13957         (ix86_call_abi_override): Remove check for call_used_regs.
13958
13959 2008-06-03  Richard Guenther  <rguenther@suse.de>
13960
13961         * tree-ssa-structalias.c (find_func_aliases): Add constraints
13962         for the lhs of calls if the return type contains pointers.
13963
13964 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
13965
13966         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
13967         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
13968         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
13969         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
13970         of cfun and DEFAULT_ABI to deceide abi mode.
13971         (DEFAULT_ABI): New.
13972         (REG_PARM_STACK_SPACE): Removed.
13973         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
13974         (STACK_BOUNDARY): Use default target to deceide stack boundary.
13975         * config/i386/i386-protos.h (ix86_cfun_abi): New.
13976         (ix86_function_abi): Likewise.
13977         (ix86_function_type_abi): Likewise.
13978         (ix86_call_abi_override): Likewise.
13979         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
13980         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
13981         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
13982         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
13983         specific defines.
13984         (X86_64_REGPARM_MAX): New.
13985         (X86_64_SSE_REGPARM_MAX): New.
13986         (X64_REGPARM_MAX): New.
13987         (X64_SSE_REGPARM_MAX): New.
13988         (X86_32_REGPARM_MAX): New.
13989         (X86_32_SSE_REGPARM_MAX): New.
13990         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
13991         (ix86_function_regparm): Handle user calling abi.
13992         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
13993         by DEFAULT_ABI versus SYSV_ABI check.
13994         (ix86_reg_parm_stack_space): New.
13995         (ix86_function_type_abi): New.
13996         (ix86_call_abi_override): New.
13997         (ix86_function_abi): New.
13998         (ix86_cfun_abi): New.
13999         (init_cumulative_args): Call abi specific initialization.
14000         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
14001         (function_arg_64): Extend SSE_REGPARM_MAX check.
14002         (function_arg (): Remove TARGET_64BIT_MS_ABI.
14003         (ix86_pass_by_reference): Likewise.
14004         (ix86_function_value_regno_p): Likewise.
14005         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
14006         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
14007         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
14008         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
14009         (setup_incoming_varargs_64): Adjust regparm for call abi.
14010         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
14011         (ix86_va_start): Likewise.
14012         (ix86_gimplify_va_arg): Likewise.
14013         (ix86_expand_prologue): Likewise.
14014         (output_pic_addr_const): Likewise.
14015         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
14016         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
14017         (x86_output_mi_thunk): Likewise.
14018         (x86_function_profiler): Likewise.
14019         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
14020         (SYSV_ABI, MS_ABI): New constants.
14021         (DEFAULT_ABI): New.
14022         (init_regs): Add prototype of function in regclass.c file.
14023         (OVERRIDE_ABI_FORMAT): New.
14024         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
14025         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
14026         (OUTGOING_REG_PARM_STACK_SPACE): New.
14027         (ix86_reg_parm_stack_space): New prototype.
14028         (CUMULATIVE_ARGS): Add call_abi member.
14029         (machine_function): Add call_abi member.
14030         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
14031         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
14032
14033 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com>
14034
14035         PR target/34879
14036         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
14037         (avr_builtin_setjmp_frame_value): New function.
14038         * config/avr/avr.md (nonlocal_goto_receiver): Define.
14039         (nonlocal_goto): Define.
14040
14041 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
14042
14043         * config/mips/mips.c (mips_emit_loadgp): Return early if
14044         there is nothing do to, otherwise emit a blockage if
14045         !TARGET_EXPLICIT_RELOCS || crtl->profile.
14046         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
14047
14048 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14049
14050         * configure.ac: Drop unneeded backslash ending up in config.in.
14051         * acinclude.m4: Likewise.
14052         * config.in: Regenerate.
14053
14054 2008-05-26  Jan Hubicka  <jh@suse.cz>
14055
14056         * predict.c (maybe_hot_frequency_p): Break out of...
14057         (maybe_hot_bb_p): ... here.
14058         (maybe_hot_edge_p): New.
14059         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
14060         * basic-block.h (maybe_hot_edge_p): Declare.
14061
14062 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
14063
14064         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
14065         (*cmpfp_<mode>_cc): Ditto.
14066         (*fp_jcc_8<mode>_387): Ditto.
14067         (*fop_<MODEF:mode>_2_i387): Ditto.
14068         (*fop_<MODEF:mode>_3_i387): Ditto.
14069         (*fop_xf_2_i387): Ditto.
14070         (*fop_xf_3_i387): Ditto.
14071
14072 2008-06-02  Tomas Bily  <tbily@suse.cz>
14073
14074         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
14075
14076 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
14077
14078         * config/mips/mips.c (mips_valid_offset_p): New function.
14079         (mips_valid_lo_sum_p): Likewise.
14080         (mips_classify_address): Use them.
14081         (mips_force_address): New function.
14082         (mips_legitimize_address): Use it.
14083         * config/mips/mips.md (MOVE128): New mode iterator.
14084         (movtf): Require TARGET_64BIT.  Remove empty strings.
14085         (*movtf_internal): Rename to...
14086         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
14087         of "R" and use {,fp}{load,store} attributes instead of "multi".
14088         Use a separate define_split.
14089         (*movtf_mips16): New pattern.
14090
14091 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
14092
14093         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
14094         * config/mips/mips.c (mips_expand_before_return): New function.
14095         (mips_expand_epilogue): Call it.
14096         * config/mips/mips.md (return): Turn into a define_expand.
14097         (*return): New insn.
14098
14099 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
14100
14101         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
14102         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
14103         functions.  Do not emit uses and clobbers of CONCATs; individually
14104         use and clobber their operands.
14105         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
14106         gen_clobber, emit_use and gen_use.
14107         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
14108         (expand_builtin_return): Likewise.
14109         * cfgbuild.c (count_basic_blocks): Likewise.
14110         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
14111         * explow.c (emit_stack_restore): Likewise.
14112         * expmed.c (extract_bit_field_1): Likewise.
14113         * expr.c (convert_move, emit_move_complex_parts): Likewise.
14114         (emit_move_multi_word, store_constructor): Likewise.
14115         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
14116         (thread_prologue_and_epilogue_insns): Likewise.
14117         * lower-subreg.c (resolve_simple_move): Likewise.
14118         * optabs.c (widen_operand, expand_binop): Likewise.
14119         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
14120         * reload.c (find_reloads): Likewise.
14121         * reload1.c (eliminate_regs_in_insn): Likewise.
14122         * stmt.c (expand_nl_goto_receiver): Likewise.
14123         * config/alpha/alpha.md (builtin_longjmp): Likewise.
14124         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
14125         * config/arm/arm.c (arm_load_pic_register): Likewise.
14126         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
14127         * config/arm/arm.md (untyped_return): Likewise.
14128         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
14129         * config/avr/avr.c (expand_prologue): Likewise.
14130         * config/bfin/bfin.c (do_unlink): Likewise.
14131         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
14132         * config/cris/cris.c (cris_expand_prologue): Likewise.
14133         * config/darwin.c (machopic_indirect_data_reference): Likewise.
14134         (machopic_legitimize_pic_address): Likewise.
14135         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
14136         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
14137         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
14138         (ix86_expand_convert_uns_didf_sse): Likewise.
14139         (ix86_expand_vector_init_general): Likewise.
14140         * config/ia64/ia64.md (eh_epilogue): Likewise.
14141         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
14142         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
14143         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
14144         (config/iq2000/iq2000.c): Likewise.
14145         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
14146         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
14147         (builtin_longjmp): Likewise.
14148         * config/mn10300/mn10300.md (call, call_value): Likewise.
14149         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
14150         * config/pdp11/pdp11.md (abshi2): Likewise.
14151         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
14152         * config/s390/s390.c (s390_emit_prologue): Likewise.
14153         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
14154         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
14155         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
14156         * config/sh/sh.c (prepare_move_operands): Likewise.
14157         (output_stack_adjust, sh_expand_epilogue): Likewise.
14158         (sh_set_return_address, sh_expand_t_scc): Likewise.
14159         * config/sparc/sparc.c (load_pic_register): Likewise.
14160         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
14161         * config/spu/spu.c (spu_expand_epilogue): Likewise.
14162         * config/v850/v850.c (expand_epilogue): Likewise.
14163
14164 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
14165
14166         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
14167         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
14168         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
14169         * config/avr/avr.c (expand_prologue, expand_epilogue): Use
14170         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
14171         stack pointer register.
14172         (output_movhi): Remove code for interrupt specific writing to the
14173         stack pointer register.
14174
14175 2008-05-31  Richard Guenther  <rguenther@suse.de>
14176
14177         PR tree-optimization/34244
14178         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
14179         (tree_expr_nonzero_warnv_p): Likewise.
14180         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
14181         ssa_name_nonnegative_p.
14182         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
14183         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
14184         not tree_expr_nonzero_warnv_p.
14185
14186         PR tree-optimization/36262
14187         Revert
14188         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
14189
14190         PR tree-optimization/34244
14191         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
14192         (record_numbers_of_iterations): New function.
14193         (execute_vrp): Cache the numbers of iterations of loops.
14194         * tree-scalar-evolution.c (scev_reset_except_niters):
14195         New function.
14196         (scev_reset): Use scev_reset_except_niters.
14197         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
14198
14199 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
14200
14201         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
14202         __WORKAROUND_RETS when appropriate.
14203
14204 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
14205
14206         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
14207         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
14208         mode iterator.
14209         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
14210         *fop_df_comm_sse insn patterns using MODEF mode iterator.
14211         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
14212         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
14213         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
14214         *fop_df_1_mixed insn patterns using MODEF mode iterator.
14215         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
14216         *fop_df_1_sse insn patterns using MODEF mode iterator.
14217         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
14218         *fop_df_1_i387 insn patterns using MODEF mode iterator.
14219         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
14220         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
14221         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
14222         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
14223         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
14224         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
14225         (*fop_xf_4_i387): Use <MODE> for mode attribute.
14226         (*fop_xf_5_i387): Ditto.
14227         (*fop_xf_6_i387): Ditto.
14228
14229 2008-05-30  Richard Guenther  <rguenther@suse.de>
14230
14231         * builtins.c (build_string_literal): Avoid generating
14232         a non-gimple_val result.
14233
14234 2008-05-30  DJ Delorie  <dj@redhat.com>
14235
14236         * exec-tool.in: Use an environment variable (private) instead of a
14237         file (shared) as a semaphore, so as to not break parallel builds.
14238
14239 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
14240
14241         * optabs.c (maybe_encapsulate_block): Remove.
14242         (emit_libcall_block): Adjust accordingly.
14243         * optabs.h (maybe_encapsulate_block): Remove prototype.
14244
14245         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
14246         Don't use maybe_encapsulate_block.
14247
14248 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
14249
14250         * config/rs6000/rs6000.c (rs6000_legitimize_address,
14251         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
14252         rtx is a SYMBOL_REF before calling get_pool_constant.
14253
14254 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
14255
14256         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
14257
14258 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
14259
14260         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
14261         rather than OS names to choose INO_T_EQ definition.
14262         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
14263         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
14264
14265 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
14266
14267         PR target/36348
14268         * config/darwin-f.c: New.
14269         * config/t-darwin: Added rule to build darwin-f.o.
14270         * config.gcc: Defined new variable, fortran_target_objs.
14271         (*-*-darwin*): Set fortran_target_objs.
14272         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
14273         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
14274         * configure: Regenerated.
14275
14276 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
14277
14278         PR target/35771
14279         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
14280         canonical type if needed.
14281
14282 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
14283
14284         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
14285
14286 2008-05-29  Richard Guenther  <rguenther@suse.de>
14287
14288         PR tree-optimization/36343
14289         PR tree-optimization/36346
14290         PR tree-optimization/36347
14291         * tree-flow.h (clobber_what_p_points_to): Declare.
14292         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
14293         pointed-to variable is dereferenced is irrelevant to whether
14294         the pointer can access the pointed-to variable.
14295         (clobber_what_p_points_to): New function.
14296         * tree-ssa-alias.c (set_initial_properties): Use it.
14297         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
14298         call clobber check for NMTs.
14299
14300 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
14301
14302         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
14303         for printing gcov_type.
14304
14305 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
14306
14307         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
14308         and the eh region information.
14309         * value-prof.c (gimple_move_stmt_histograms): New function.
14310         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
14311
14312 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
14313
14314         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
14315
14316 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
14317
14318         * value-prof.c (tree_ic_transform): Print counts.
14319         * tree-profile.c (tree_gen_ic_func_profiler):
14320         Clear __gcov_indreict_call_callee variable to avoid misattribution
14321         of the profile.
14322
14323 2008-05-28  Rafael Espíndola  <espindola@google.com>
14324
14325         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
14326         invalid sharing.
14327
14328 2008-05-28  Richard Guenther  <rguenther@suse.de>
14329
14330         PR tree-optimization/36339
14331         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
14332         and clobbering code out of the loop.
14333
14334 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
14335
14336         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
14337         letters defined.
14338
14339         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
14340         s390_contiguous_bitmask_p, s390_symref_operand_p,
14341         s390_check_symref_alignment, s390_reload_larl_operand,
14342         s390_reload_symref_address): New functions.
14343         (s390_branch_condition_mnemonic): Support compare and branch
14344         instructions.
14345         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
14346         and 'W' constraints.
14347         (s390_secondary_reload): Add secondary reloads for unaligned
14348         symbol refs or symbol refs to floating point or QI/TI mode
14349         integer values.
14350         (legitimate_address_p): Accept symbol references as addresses.
14351         (s390_expand_insv): Use rotate and insert selected bits
14352         instruction for insv when building for z10.
14353         (print_operand_address): Handle symbol ref addresses.
14354         (print_operand): Output modifier 'c' added for signed byte values.
14355         (s390_encode_section_info): Mark symbol refs with
14356         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
14357
14358         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
14359         (length attribute): RRF, RRR have 4 byte length.
14360         (FPALL, INTALL): New mode iterators added.
14361         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
14362         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
14363         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
14364         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
14365         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
14366         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
14367         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
14368         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
14369         instructions.
14370         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
14371         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
14372         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
14373         reload<INTALL:mode><P:mode>_toreg_z10,
14374         reload<FPALL:mode><P:mode>_tomem_z10,
14375         reload<FPALL:mode><P:mode>_toreg_z10,
14376         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
14377         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
14378         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
14379         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
14380         definition.
14381         (movmem, clrmem, cmpmem): New splitters added.
14382
14383         * config/s390/predicates.md (larl_operand): Use
14384         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
14385         SYMBOL_REF_ALIGN1_P.
14386         (s390_signed_integer_comparison,
14387         s390_unsigned_integer_comparison): New predicates.
14388
14389         * config/s390/s390-protos.h (s390_check_symref_alignment,
14390         s390_contiguous_bitmask_p, s390_reload_larl_operand,
14391         s390_reload_symref_address,
14392         s390_compare_and_branch_condition_mask): Prototypes added.
14393
14394         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
14395         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
14396         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
14397
14398 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
14399
14400         * config/s390/s390.c (z10_cost): New cost function for z10.
14401         (s390_handle_arch_option, override_options): Support -march=z10 switch.
14402         (s390_issue_rate): Adjust issue rate for z10.
14403         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
14404         (processor_flags): Add PF_Z10.
14405         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
14406         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
14407         * gcc/config.gcc: Add z10.
14408
14409 2008-05-28  Richard Guenther  <rguenther@suse.de>
14410
14411         PR tree-optimization/36291
14412         * tree-flow. h (struct gimple_df): Remove var_anns member.
14413         * tree-flow-inline.h (gimple_var_anns): Remove.
14414         (var_ann): Simplify.
14415         * tree-dfa.c (create_var_ann): Simplify.
14416         (remove_referenced_var): Clear alias info from var_anns of globals.
14417         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
14418         (delete_tree_ssa): Clear alias info from var_anns of globals.
14419         Do not free var_anns.
14420         (var_ann_eq): Remove.
14421         (var_ann_hash): Likewise.
14422
14423 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
14424
14425         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
14426         and loongson2f entries.
14427         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
14428         * config/mips/mips.h (processor_type): Add Loongson-2E
14429         and Loongson-2F entries.
14430         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
14431         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
14432         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
14433         * doc/invoke.texi (MIPS Options): Document loongson2e
14434         and loongson2f processor names.
14435
14436 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
14437
14438         PR target/35767
14439         PR target/35771
14440         * config/i386/i386.c (ix86_function_arg_boundary): Use
14441         alignment of canonical type.
14442         (ix86_expand_vector_move): Check unaligned memory access for
14443         all SSE modes.
14444
14445 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
14446
14447         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
14448         Moved to the front of file.
14449
14450 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
14451             H.J. Lu  <hongjiu.lu@intel.com>
14452
14453         * dwarf2out.c (current_fde): New.
14454         (add_cfi): Use it.
14455         (lookup_cfa:): Likewise.
14456         (dwarf2out_end_epilogue): Likewise.
14457         (dwarf2out_note_section_used): Likewise.
14458
14459 2008-05-27  Michael Matz  <matz@suse.de>
14460
14461         PR c++/27975
14462         * c.opt (Wenum-compare): New warning option.
14463         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
14464
14465 2008-05-27  Michael Matz  <matz@suse.de>
14466
14467         PR middle-end/36326
14468         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
14469         non-BLKmode types.
14470         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
14471         into memory as tail calls.
14472
14473 2008-05-27  Richard Guenther  <rguenther@suse.de>
14474
14475         PR tree-optimization/36339
14476         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
14477         pointers cause all addressable variables to be call clobbered.
14478
14479 2008-05-27  Richard Guenther  <rguenther@suse.de>
14480
14481         PR tree-optimization/36245
14482         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
14483
14484 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
14485
14486         * config/s390/s390.md: Replace all occurences of the 'm'
14487         constraint with 'RT'.
14488
14489 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
14490
14491         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
14492         definitions added.
14493         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
14494         "*movdi_64".
14495         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
14496         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
14497         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
14498
14499 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
14500
14501         * reload.c: (find_reloads): Skip alternatives according to the
14502         "enabled" attribute. Constify the constraint variable.
14503         * recog.c (get_attr_enabled): Add default implementation.
14504         (extract_insn): Set the alternative_enabled_p array
14505         in the recog_data struct.
14506         (preprocess_constraints, constrain_operands): Skip
14507         alternatives according to the "enabled" attribute
14508         * recog.h (struct recog_data): New field alternative_enabled_p.
14509         (skip_alternative): New inline function.
14510         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
14511         (record_reg_classes): Skip alternative according to the
14512         "enabled" attribute.
14513
14514         * doc/md.texi: Add documention for the "enabled" attribute.
14515
14516 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
14517
14518         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
14519         * postreload.c (reload_cse_simplify_operands): Replace 'm'
14520         constraint with TARGET_MEM_CONSTRAINT.
14521         * recog.c (asm_operand_ok, preprocess_constraints,
14522         constrain_operands): Likewise.
14523         * regclass.c (record_reg_classes): Likewise.
14524         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
14525         * reload1.c (maybe_fix_stack_asms): Likewise.
14526         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
14527         * recog.h: Adjust comment.
14528         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
14529         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
14530         * doc/md.texi: Add a note to description of 'm' constraint.
14531         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
14532
14533 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
14534
14535         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
14536         that the bitfield is of integral type before testing its precision.
14537
14538 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
14539             Sa Liu  <saliu@de.ibm.com>
14540
14541         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
14542         __modti3, __udivti3, __umodti3 and __udivmodti4.
14543         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
14544         that implement TImode mul and div functions.
14545         * config/spu/multi3.c: New. Implement __multi3.
14546         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
14547         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
14548         functions on SPU.
14549
14550 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
14551
14552         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
14553         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
14554         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
14555         tls_sysv_suffix): New mode and mode attribute iterators.
14556         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
14557         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
14558         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
14559         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
14560         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
14561         iterators.
14562
14563 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
14564
14565         PR tree-optimization/36329
14566         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
14567         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
14568         * cgraphbuild.c (initialize_inline_failed): Use the latter
14569         macro in lieu of the former.
14570         * ipa-inline.c (cgraph_mark_inline): Likewise.
14571         (cgraph_decide_inlining_of_small_function): Likewise.
14572         (cgraph_decide_inlining): Likewise.
14573         (cgraph_decide_inlining_incrementally): Likewise.
14574
14575 2008-05-26  Tristan Gingold  <gingold@adacore.com>
14576             Anatoly Sokolov  <aesok@post.ru>
14577
14578         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
14579         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
14580         * config/avr/avr.c (expand_prologue): Tune "call_prologue"
14581         optimization for 'avr6' architecture.
14582
14583 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
14584
14585         PR target/34932
14586         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
14587
14588 2008-05-26  Richard Guenther  <rguenther@suse.de>
14589
14590         * tree-ssa-sccvn.c (expr_has_constants): Declare.
14591         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
14592
14593 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
14594
14595         PR middle-end/36253
14596         * caller-save.c (insert_restore): Verify alignment of spill space.
14597         (insert_save): Likewise.
14598         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
14599         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
14600         (STACK_SLOT_ALIGNMENT): Likewise.
14601         * function.c (LOCAL_ALIGNMENT): Removed.
14602         (get_stack_local_alignment): New.
14603         (assign_stack_local): Use it.  Set alignment on stack slot.
14604         (assign_stack_temp_for_type): Use get_stack_local_alignment.
14605         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
14606         (STACK_SLOT_ALIGNMENT): New.
14607         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
14608         stack slot in XFmode.
14609
14610         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
14611
14612 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
14613
14614         PR/36321
14615         * config/i386/i386.md (allocate_stack_worker_64): Make sure
14616         argument operand in rax isn't removed.
14617
14618 2008-05-26  Richard Guenther  <rguenther@suse.de>
14619
14620         PR middle-end/36300
14621         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
14622         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
14623
14624 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
14625
14626         PR bootstrap/36331
14627         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
14628
14629 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
14630
14631         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
14632         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
14633
14634 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
14635
14636         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
14637         build a trampoline if we don't want one.
14638         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
14639         return zero for nested functions if we don't want a trampoline.
14640
14641 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
14642
14643         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
14644
14645 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
14646
14647         PR fortran/18428
14648         * c.opt: Removed undocumented option '-lang-fortran'.
14649         * c-common.h: Removed global variable 'lang_fortran'.
14650         * c-opts.c (c_common_handle_option): Removed code to handle
14651         option '-lang-fortran'. Updated includes.
14652         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
14653         definition of '__GFORTRAN__'.
14654         (define__GNUC__): Reimplemented to use BASEVER and
14655         cpp_define_formatted.
14656         (builtin_define_with_value_n): Removed.
14657         * c-incpath.h: Renamed to ...
14658         * incpath.h: ... this.
14659         * c-incpath.c: Renamed to ...
14660         * incpath.c: ... this. Updated includes.
14661         * fix-header.c: Updated includes.
14662         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
14663         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
14664         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
14665
14666 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
14667
14668         * tree.h: Update the table of flags used on tree nodes.
14669         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
14670         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
14671         (FORCED_LABEL): Add access check.
14672         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
14673         (ASM_INPUT_P): Likewise.
14674         (ASM_VOLATILE_P): Likewise.
14675         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
14676         (OMP_SECTION_LAST): Access private_flag directly.
14677         (OMP_RETURN_NOWAIT): Likewise.
14678         (OMP_PARALLEL_COMBINED): Likewise.
14679         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
14680         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
14681         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
14682         deprecated_flag directly.
14683
14684 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
14685
14686         * final.c (frame_pointer_needed): Removed.
14687         * flags.h (frame_pointer_needed): Likewise.
14688
14689         * function.h (rtl_data): Add frame_pointer_needed.
14690         (frame_pointer_needed): New.
14691
14692 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
14693
14694         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
14695
14696 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
14697
14698         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
14699         SRC is a REG.
14700
14701 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
14702
14703         * c-common.c (strip_array_types): Move function to..
14704         * tree.c: ..here.
14705         (get_inner_array_type): Delete.
14706         * c-common.h (strip_array_types): Move declaration to..
14707         * tree.h: ..here.
14708         (get_inner_array_type): Delete.
14709         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
14710         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
14711         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
14712         * config/pa/pa.c (emit_move_sequence): Likewise.
14713
14714 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
14715
14716         * config/i386/i386.md (*sse_prologue_save_insn): Set length
14717         attribute to 34.
14718
14719 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
14720
14721         * function.c: Include target hook for nonlocal_goto frame value.
14722
14723 2008-05-24  Richard Guenther  <rguenther@suse.de>
14724
14725         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
14726         variable can be only accessed through a pointer or a union.
14727
14728 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14729
14730         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
14731         * doc/extend.texi: Likewise.
14732
14733 2008-05-23  DJ Delorie  <dj@redhat.com>
14734
14735         * config/m32c/jump.md (untyped_call): Add.
14736
14737         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
14738         for A24 to PSImode.
14739         (m32c_address_cost): Detail costs for indirect offsets.
14740
14741 2008-05-23  Rafael Espíndola  <espindola@google.com>
14742
14743         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
14744         if a node is a SUBREG.
14745         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
14746         is a SUBREG.
14747
14748 2008-05-23  Paul Brook  <paul@codesourcery.com>
14749             Carlos O'Donell  <carlos@codesourcery.com>
14750
14751         * doc/extend.texi: Clarify use of __attribute__((naked)).
14752         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
14753         * target.h (gcc_target): Add allocate_stack_slots_for_args.
14754         * function.c (use_register_for_decl): Use
14755         targetm.calls.allocate_stack_slots_for_args.
14756         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
14757         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
14758         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
14759
14760 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
14761
14762         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
14763
14764 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
14765
14766         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
14767         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
14768         is only rounded once.
14769
14770 2008-05-23  Richard Guenther  <rguenther@suse.de>
14771
14772         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
14773
14774 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
14775             Jakub Jelinek  <jakub@redhat.com>
14776
14777         PR target/36079
14778         * configure.ac: Handle --enable-cld.
14779         * configure: Regenerated.
14780         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
14781         * config/i386/i386.h (struct machine_function): Add needs_cld field.
14782         (ix86_current_function_needs_cld): New define.
14783         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
14784         (cld): New isns pattern.
14785         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
14786         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
14787         * config/i386/i386.opt (mcld): New option.
14788         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
14789         TARGET_CLD and ix86_current_function_needs_cld.
14790         (override_options): Use -mcld by default for 32-bit code if
14791         USE_IX86_CLD.
14792
14793         * doc/install.texi (Options specification): Document --enable-cld.
14794         * doc/invoke.texi (Machine Dependent Options)
14795         [i386 and x86-64 Options]: Add -mcld option.
14796         (Intel 386 and AMD x86-64 Options): Document -mcld option.
14797
14798 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
14799         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
14800         (return_in_memory_64): Likewise.
14801         (return_in_memory_ms_64): Likewise.
14802
14803 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14804
14805         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
14806         * builtins.c (fold_builtin_fpclassify): New.
14807         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
14808         * builtins.def (BUILT_IN_FPCLASSIFY): New.
14809         * c-common.c (handle_type_generic_attribute): Adjust to accept
14810         fixed arguments before an elipsis.
14811         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
14812         * doc/extend.texi: Document __builtin_fpclassify.
14813
14814 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
14815
14816         * omp-low.c (gate_expand_omp_ssa): Remove.
14817         (pass_expand_omp_ssa): Remove.
14818         (gate_expand_omp): Do not check for flag_openmp_ssa.
14819         * common.opt (-fopenmp-ssa): Remove.
14820         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
14821
14822 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
14823
14824         * config/sh/sh.opt (mfixed-range): New option.
14825         * config/sh/sh-protos.h (sh_fix_range): Declare.
14826         * config/sh/sh.c (sh_fix_range): New function.
14827         * config/sh/sh.h (sh_fixed_range_str): Declare.
14828         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
14829         is not empty.
14830         * doc/invoke.texi (SH Options): Document -mfixed-range.
14831
14832 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
14833
14834         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
14835         it before the redeclaration.
14836
14837 2008-05-22  Anatoly Sokolov <aesok@post.ru>
14838
14839         * config/avr/avr.c (get_sequence_length): Add new function.
14840         (expand_prologue, expand_epilogue): Remove duplicate code.
14841
14842 2008-05-22  Rafael Espíndola  <espindola@google.com>
14843
14844         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
14845         sharing.
14846
14847 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14848
14849         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
14850         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
14851
14852         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
14853         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
14854         (vect_update_misalignment_for_peel): Likewise.
14855         (vector_alignment_reachable_p): Likewise.
14856         * tree-vect-transform.c (vectorizable_load): Likewise.
14857         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
14858         (get_vectype_for_scalar_type): Pass mode of scalar_type
14859         to UNITS_PER_SIMD_WORD.
14860
14861         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
14862         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
14863         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
14864         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
14865         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
14866
14867 2008-05-22  Ira Rosen  <irar@il.ibm.com>
14868
14869         PR tree-optimization/36293
14870         * tree-vect-transform.c (vect_transform_strided_load): Don't check
14871         if the first load must be skipped because of a gap.
14872
14873 2008-05-22  Richard Guenther  <rguenther@suse.de>
14874
14875         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
14876         more cases of offset disambiguation that is possible if
14877         strict-aliasing rules apply.
14878         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
14879         for basic offset and type-based disambiguation.
14880
14881 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14882
14883         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
14884         ix86_expand_vector_set on V16QImode for SSE4.1.
14885
14886 2008-05-21  Tom Tromey  <tromey@redhat.com>
14887
14888         * c.opt (Wimport): Mark as undocumented.
14889         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
14890         -Wno-import.
14891         (Warning Options): Likewise.
14892         * doc/cppopts.texi: Don't mention -Wimport.
14893
14894 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
14895
14896         PR tree-optimization/36287
14897         PR tree-optimization/36286
14898         * lambda-code.c (build_access_matrix): Do not use the loop->num
14899         for computing the number of induction variables: use the loop depth
14900         instead.
14901
14902 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
14903
14904         PR/36280
14905         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
14906         option -f(no-)leading-underscore.
14907
14908 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14909
14910         * config/i386/i386.c (ix86_expand_vector_init_general): Use
14911         GET_MODE_NUNITS (mode).
14912
14913 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
14914
14915         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
14916         (-mmulhw): Add 464 to description.
14917         (-mdlmzb): Likewise.
14918         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
14919         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
14920         464fp entries.
14921         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
14922         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
14923         * config/rs6000/rs6000.md: Update comments for 464.
14924
14925 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
14926
14927         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
14928
14929 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14930
14931         * config/i386/sse.md (vec_extractv4sf): Removed.
14932         (vec_extractv2df): Likewise.
14933         (vec_extractv2di): Likewise.
14934         (vec_extractv4si): Likewise.
14935         (vec_extractv8hi): Likewise.
14936         (vec_extractv16qi): Likewise.
14937         (vec_extract<mode>): New.
14938
14939 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14940
14941         * config/i386/sse.md (vec_setv4sf): Removed.
14942         (vec_setv2df): Likewise.
14943         (vec_setv2di): Likewise.
14944         (vec_setv4si): Likewise.
14945         (vec_setv8hi): Likewise.
14946         (vec_setv16qi): Likewise.
14947         (vec_set<mode>): New.
14948
14949 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14950
14951         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
14952         goto for vec_concat and vec_interleave.
14953
14954 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14955
14956         * config/i386/sse.md (vec_initv4sf): Removed.
14957         (vec_initv2df): Likewise.
14958         (vec_initv2di): Likewise.
14959         (vec_initv4si): Likewise.
14960         (vec_initv8hi): Likewise.
14961         (vec_initv16qi): Likewise.
14962         (vec_init<mode>): New.
14963
14964 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
14965
14966         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
14967
14968 2008-05-21  Tom Tromey  <tromey@redhat.com>
14969
14970         * ggc-zone.c (lookup_page_table_if_allocated): New function.
14971         (zone_find_object_offset): Likewise.
14972         (gt_ggc_m_S): Likewise.
14973         (highest_bit): Likewise.
14974         * ggc-page.c (gt_ggc_m_S): New function.
14975         * stringpool.c (string_stack): Remove.
14976         (init_stringpool): Update.
14977         (ggc_alloc_string): Use ggc_alloc.
14978         (maybe_delete_ident): New function.
14979         (ggc_purge_stringpool): Likewise.
14980         (gt_ggc_m_S): Remove.
14981         * ggc-common.c (ggc_protect_identifiers): New global.
14982         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
14983         ggc_protect_identifiers.
14984         * ggc.h (ggc_protect_identifiers): Declare.
14985         (gt_ggc_m_S): Update.
14986         (ggc_purge_stringpool): Declare.
14987         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
14988         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
14989         special case.
14990         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
14991
14992 2008-05-21  David S. Miller  <davem@davemloft.net>
14993
14994         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
14995         tmake_file.
14996
14997 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
14998
14999         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
15000         once finished.
15001
15002 2008-05-20  David Daney  <ddaney@avtrex.com>
15003
15004         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
15005         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
15006         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
15007         UNSPEC_UPDATE_GOT_VERSION): Renumber.
15008         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
15009         (atomic_hiqi_op): New define_code_iterator.
15010         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
15011         mips_expand_compare_and_swap_12.
15012         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
15013         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
15014         (sync_<optab><mode>, sync_old_<optab><mode>,
15015         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
15016         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
15017         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
15018         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
15019         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
15020         (test_and_set_12): New insn.
15021         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
15022         sync_new_<optab><mode>, sync_old_nand<mode>,
15023         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
15024         clobber to operand 0 for SI and DI mode insns.
15025         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
15026         mips_gen_fn_4): New typedefs.
15027         (mips_gen_fn_ptrs): Define new union type.
15028         (mips_expand_compare_and_swap_12): Remove declaration.
15029         (mips_expand_atomic_qihi): Declare function.
15030         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
15031         (mips_expand_atomic_qihi): ... this.  Use new generator function
15032         parameter.
15033         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
15034         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
15035         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
15036         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
15037         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
15038         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
15039         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
15040         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
15041         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
15042         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
15043         New macros.
15044
15045 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
15046
15047         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
15048         the missing break.
15049
15050 2008-05-20  Anatoly Sokolov <aesok@post.ru>
15051
15052         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
15053         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
15054         (avr_attribute_table): Add 'OS_main' function attribute.
15055         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
15056         functions with 'OS_main' attribute.
15057
15058 2008-05-20  Richard Guenther  <rguenther@suse.de>
15059
15060         PR tree-optimization/35204
15061         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
15062         helper, split out from ...
15063         (DFS): ... here.  Make the DFS walk non-recursive.
15064
15065 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
15066             Jan Sjodin  <jan.sjodin@amd.com>
15067
15068         PR tree-optimization/36181
15069         * tree-parloops.c (loop_has_vector_phi_nodes): New.
15070         (parallelize_loops): Don't parallelize when the loop has vector
15071         phi nodes.
15072
15073 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
15074             Sebastian Pop  <sebastian.pop@amd.com>
15075
15076         * tree-loop-linear.c (gather_interchange_stats): Look in the access
15077         matrix, and never look at the tree representation of the memory
15078         accesses.
15079         (linear_transform_loops): Computes parameters and access matrices.
15080         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
15081         when fails.
15082         (access_matrix_get_index_for_parameter): New.
15083         * tree-data-ref.h (struct access_matrix): New.
15084         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
15085         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
15086         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
15087         am_vector_index_for_loop): New.
15088         (struct data_reference): Add field access_matrix.
15089         (DR_ACCESS_MATRIX): New.
15090         (compute_data_dependences_for_loop): Update declaration.
15091         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
15092         * lambda.h (lambda_vector_vec_p): Declared.
15093         * lambda-code.c: Depend on pointer-set.h.
15094         (lambda_collect_parameters_from_af, lambda_collect_parameters,
15095         av_for_af_base, av_for_af, build_access_matrix,
15096         lambda_compute_access_matrices): New.
15097         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
15098
15099 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
15100
15101         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
15102         $SOURCEDIR/include.
15103
15104 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
15105             Sebastian Pop  <sebastian.pop@amd.com>
15106
15107         PR tree-optimization/36206
15108         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
15109         FOLD_CONVERSIONS.
15110         (instantiate_scev_1): Rename flags to fold_conversions.
15111         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
15112         outeside instantiation_loop.
15113         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
15114         (evolution_function_is_affine_or_constant_p): Removed.
15115         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
15116         instantiate_scev.
15117         (analyze_siv_subscript): Pass in the loop nest number.
15118         Call evolution_function_is_affine_in_loop instead of
15119         evolution_function_is_affine_p.
15120         (analyze_overlapping_iterations): Pass in the loop nest number.
15121
15122 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
15123             Sebastian Pop  <sebastian.pop@amd.com>
15124
15125         PR tree-optimization/36206
15126         * tree-chrec.h (chrec_fold_op): New.
15127         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
15128         and other trees.
15129
15130 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
15131
15132         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
15133         (DIRS_EQ): New.
15134         (remove_duplicates): Do not set inode on non-inode systems.
15135         Use DIRS_EQ.
15136
15137 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
15138
15139         * config.gcc (tm_file): Update comments about relative pathnames.
15140
15141 2008-05-20  Richard Guenther  <rguenther@suse.de>
15142
15143         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
15144         * tree-ssa-sccvn.c (process_scc): Likewise.
15145         * tree-ssa-sink.c (execute_sink_code): Likewise.
15146         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
15147         * tree-vrp.c (process_assert_insertions): Likewise.
15148         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
15149         (perform_tree_ssa_dce): Likewise.
15150         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
15151         (dump_dominator_optimization_stats): Likewise.
15152         * tree-vectorizer.c (vectorize_loops): Likewise.
15153
15154 2008-05-20  Richard Guenther  <rguenther@suse.de>
15155
15156         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
15157
15158 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
15159
15160         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
15161         (ix86_i386elf_return_in_memory): Likewise.
15162         (ix86_i386interix_return_in_memory): Likewise.
15163         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
15164         (SUBTARGET_RETURN_IN_MEMORY): New.
15165         * config/i386/i386elf.h: Likewise.
15166         * config/i386/ptx4-i.h: Likewise.
15167         * config/i386/sol2-10.h: Likewise.
15168         * config/i386/sysv4.h: Likewise.
15169         * config/i386/vx-common.h: Likewise.
15170         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
15171         * config/i386/i386.c (ix86_return_in_memory): Made static and
15172         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
15173         (ix86_i386elf_return_in_memory): Removed.
15174         (ix86_i386interix_return_in_memory): Removed.
15175         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
15176         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
15177
15178 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
15179
15180         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
15181
15182 2008-05-19  Xinliang David Li  <davidxl@google.com>
15183
15184         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
15185         * opts.c: Ditto.
15186         * common.opt: Ditto.
15187         * doc/invoke.texi: Ditto.
15188
15189 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
15190
15191         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
15192         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
15193
15194 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
15195
15196         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
15197         sizes of operand array from 8/4 to 4/2.
15198         (ix86_expand_vector_init_general): Change size of operand array
15199         from 32 to 16.  Remove op0, op1 and half_mode.
15200
15201 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
15202
15203         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
15204         (ix86_expand_vector_init_interleave): Likewise.
15205         (ix86_expand_vector_init_general): Use them.  Assert
15206         word_mode == SImode when n_words == 4.
15207
15208 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
15209
15210         * config/i386/i386.c (ix86_secondary_reload): New static function.
15211         (TARGET_SECONDARY_RELOAD): New define.
15212         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
15213         * config/i386/i386.md (reload_outqi): Remove.
15214
15215 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15216
15217         PR middle-end/35509
15218         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
15219         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
15220         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
15221         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
15222         (fold_builtin_1): Likewise.
15223         * builtins.def (BUILT_IN_ISINF_SIGN): New.
15224         c-common.c (check_builtin_function_arguments): Handle
15225         BUILT_IN_ISINF_SIGN.
15226         * doc/extend.texi: Document __builtin_isinf_sign.
15227         * fold-const.c (operand_equal_p): Handle COND_EXPR.
15228
15229 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
15230
15231         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
15232         EH cleanup at the end of the pass, search for those that have been
15233         turned into forwarder blocks and do the cleanup on their successor.
15234
15235 2008-05-18  Richard Guenther  <rguenther@suse.de>
15236
15237         * tree-cfg.c (verify_gimple_expr): Allow conversions from
15238         pointers to sizetype and vice versa.
15239
15240 2008-05-18 Xinliang David Li   <davidxl@google.com>
15241
15242         * gcc/tree-ssa-dce.c: Coding style fix.
15243         (check_pow): Documentation comment.
15244         (check_log): Documenation comment. Coding style fix.
15245         (is_unnecessary_except_errno_call): Ditto.
15246         (gen_conditions_for_pow): Ditto.
15247         (gen_conditions_for_log): Ditto.
15248         (gen_shrink_wrap_conditions): Ditto.
15249         (shrink_wrap_one_built_in_calls): Ditto.
15250         * gcc/doc/invoke.texi: Better documentation string.
15251         * ChangeLog: Fix wrong change log entries from
15252         May 17 checkin on function call DCE.
15253
15254 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
15255
15256         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
15257
15258 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
15259
15260         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
15261         * df-problems.c (simulation routines): Fixed block comment to
15262         properly say how to add forwards scanning functions.
15263
15264 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
15265
15266         * tree-inline.c (setup_one_parameter): Remove dead code.
15267
15268 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
15269
15270         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
15271         a BIT_AND_EXPR only for an INTEGER_TYPE.
15272
15273 2008-05-17 Xinliang David Li   <davidxl@google.com>
15274
15275         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
15276         (check_pow, check_log, is_unnecessary_except_errno_call): New
15277         functions to check for eliminating math functions that are pure
15278         except for setting errno.
15279         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
15280         general condition expressions for shrink-wrapping pow/log calls.
15281         (gen_shrink_wrap_conditions): Ditto.
15282         (shrink_wrap_one_built_in_call): Ditto.
15283         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
15284         (mark_operand_necessary): If debugging, output if OP is necessary.
15285         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
15286         unnecessary.
15287         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
15288         opt level >= 2.
15289         * gcc/common.opt: New user flag -ftree-builtin-dce.
15290         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
15291
15292 2008-05-16  David S. Miller  <davem@davemloft.net>
15293
15294         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
15295         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
15296
15297 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
15298
15299         PR target/36246
15300         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
15301
15302 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
15303
15304         * ifcvt.c (dead_or_predicable): Rename
15305         df_simulate_one_insn_backwards to df_simulate_one_insn.
15306         * recog.c (peephole2_optimize): Ditto.
15307         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
15308         Ditto.
15309         * df.h: Rename df_simulate_one_insn_backwards to
15310         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
15311         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
15312         scanning of defs and uses.
15313         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
15314         (df_simulate_one_insn_forwards): Removed.
15315
15316 2008-05-16  Doug Kwan  <dougkwan@google.com>
15317
15318         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
15319         QNaN & SNaN.
15320         (real_from_string): Handle NaNs and Inf as approriate.
15321
15322 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
15323
15324         * doc/gty.texi (Source Files Containing Type Information): Note
15325         that headers should appear first in the gtfiles list.
15326
15327 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
15328
15329         * tree.def (COND_EXEC): Properly documented this code.
15330
15331 2008-05-16  Diego Novillo  <dnovillo@google.com>
15332
15333         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
15334         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
15335         the new field.
15336
15337 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
15338
15339         * tree-ssa-dse (max_stmt_uid): Removed.
15340         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
15341         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
15342         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
15343         * function.h (cfun.last_stmt_uid): New field.
15344         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
15345         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
15346         New functions.
15347         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
15348         (create_stmt_ann): Initialize the ann->uid field.
15349         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
15350         with new calls.
15351         * tree-flow.h (renumber_gimple_stmt_uids): New function.
15352
15353 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
15354
15355         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
15356         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
15357         (init_empty_tree_cfg): Call it.
15358
15359 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
15360
15361         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
15362         Update all users.
15363
15364 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
15365
15366         * doc/invoke.text (-fdump-tree-*-verbose): New option.
15367         * tree-dump.c (dump_options): New verbose option.
15368         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
15369         Add verbose dump.
15370         * tree-pass.h (TDF_VERBOSE): New dump flag.
15371         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
15372         (tree-flow.h): Added include.
15373         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
15374
15375 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
15376
15377         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
15378
15379         From Jie Zhang  <jie.zhang@analog.com>
15380         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15381         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
15382         mcpu=bf561-none and mcpu=bf561-0.2.
15383         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15384         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
15385         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15386         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
15387         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
15388         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
15389         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
15390         option.
15391         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
15392         (cputype_selected): Remove.
15393         (bfin_handle_option): Don't use cputype_selected.
15394         (override_options): When no mcpu option, enable all workarounds.
15395         Don't use bfin_workarounds.
15396         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
15397         processor type.
15398         (DEFAULT_CPU_TYPE): Don't define.
15399
15400 2008-05-16  Richard Guenther  <rguenther@suse.de>
15401
15402         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
15403         on deletion of the last stmt.
15404
15405 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15406
15407         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
15408         V8HImode for SSE2 and V16QImode for SSE4.1.
15409
15410 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
15411
15412         * cgraph.h (compute_inline_parameters): Made public.
15413         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
15414         variable_generate_summary, function_write_summary,
15415         variable_write_summary, variable_read_summary.  Added generate_summary,
15416         write_summary, read_summary.
15417         * cgraphunit.c (cgraph_process_new_functions): Changed call from
15418         pass_ipa_inline.function_generate_summary, to
15419         compute_inline_parameters.
15420         * ipa-inline.c (compute_inline_parameters): Made public and added
15421         node parameter.
15422         (compute_inline_parameters_for_current): New function.
15423         (pass_inline_param): Now calls compute_inline_parameters_for_current.
15424         (inline_generate_summary): Removed parameter and made to loop over
15425         all cgraph nodes.
15426         (pass_ipa_inline): Updated for new IPA_PASS structure.
15427         * passes.c (execute_ipa_summary_passes): Now is called once per
15428         pass rather than once per node*pass.
15429
15430 2008-05-15  Anatoly Sokolov <aesok@post.ru>
15431
15432         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
15433         avr_have_mul_p, avr_asm_only_p): Remove variables.
15434         (avr_override_options): Remove initialization of removed variables.
15435         (avr_file_start):  Convert removed variables to fields of
15436         'struct base_arch_s *avr_current_arch'.
15437         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
15438         (AVR_HAVE_MUL): (Ditto.).
15439         (AVR_HAVE_MOVW): (Ditto.).
15440         (AVR_HAVE_LPMX): (Ditto.).
15441         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
15442         avr_asm_only_p): Remove declaration.
15443
15444 2008-05-15  Diego Novillo  <dnovillo@google.com>
15445
15446         * config/arm/arm.c (arm_return_in_memory): Fix return type.
15447         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
15448
15449 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
15450
15451         PR middle-end/36194
15452         * combine.c (check_conversion): Rename back to check_promoted_subreg.
15453         Don't call record_truncated_value from here.
15454         (record_truncated_value): Turn it into a for_each_rtx callback.
15455         (record_truncated_values): New function.
15456         (combine_instructions): Call note_uses with record_truncated_values.
15457         Change name of check_conversion to check_promoted_subreg.
15458
15459 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
15460
15461         * doc/sourcebuild.texi: Document support for torture tests.
15462
15463 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
15464
15465         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
15466         to alternative 4 of operand 2.
15467
15468 2008-05-15  Richard Guenther  <rguenther@suse.de>
15469
15470         * tree-pass.h (current_pass): Declare.
15471         (get_pass_for_id): Likewise.
15472         * passes.c (passes_by_id, passes_by_id_size): New globals.
15473         (set_pass_for_id): New function.
15474         (get_pass_for_id): Likewise.
15475         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
15476         (execute_function_todo): Flush per function statistics.
15477         * toplev.c (compile_file): Init statistics.
15478         (general_init): Do early statistics initialization.
15479         (finalize): Finish statistics.
15480         * statistics.h (statistics_early_init): Declare.
15481         (statistics_init): Likewise.
15482         (statistics_fini): Likewise.
15483         (statistics_fini_pass): Likewise.
15484         (statistics_counter_event): Likewise.
15485         (statistics_histogram_event): Likewise.
15486         * statistics.c: New file.
15487         * Makefile.in (OBJS-common): Add statistics.o.
15488         (statistics.o): Add dependencies.
15489         * doc/invoke.texi (-fdump-statistics): Document.
15490
15491         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
15492         (insert): Likewise.
15493         (execute_pre): Use statistics_counter_event.
15494         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
15495         (substitute_and_fold): Increment it.  Use statistics_counter_event.
15496
15497 2008-05-15  Diego Novillo  <dnovillo@google.com>
15498
15499         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
15500
15501         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
15502         * tree-ssa-alias.c (new_type_alias): Remove references to
15503         sub-variables from comment.
15504         * tree-ssa-operands.c (swap_tree_operands): Likewise.
15505
15506 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15507
15508         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
15509         attribute to 1 only for insertps alternative.
15510
15511 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
15512
15513         * config/bfin/bfin.md (loadbytes): New pattern.
15514         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
15515         (bfin_init_builtins): Initialize it.
15516         (bdesc_1arg): Add it.
15517
15518 2008-05-15  Sa Liu  <saliu@de.ibm.com>
15519
15520         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
15521         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
15522         * testsuite/lib/target-supports.exp: Add
15523         check_effective_target_fortran_integer_16.
15524
15525 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
15526
15527         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
15528         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
15529         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
15530         (TARGET_RETURN_IN_MEMORY): Define.
15531
15532 2008-05-15  Richard Guenther  <rguenther@suse.de>
15533
15534         PR middle-end/36244
15535         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
15536         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
15537         represent unmodifiable vars.
15538
15539 2008-05-15  Richard Guenther  <rguenther@suse.de>
15540
15541         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
15542         INDIRECT_REF and TARGET_MEM_REF.
15543         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
15544         TARGET_MEM_REF.
15545
15546 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
15547             H.J. Lu  <hongjiu.lu@intel.com>
15548
15549         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
15550         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
15551         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
15552         insn alternatives.  Add missing alternatives.
15553         (*vec_concatv2di_rex64_sse4_1): Likewise.
15554         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
15555         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
15556         Require TARGET_SSE.
15557
15558 2008-05-15  Richard Guenther  <rguenther@suse.de>
15559
15560         PR tree-optimization/36009
15561         PR tree-optimization/36204
15562         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
15563         (determine_invariantness_stmt): Record the loop a store is
15564         always executed in.
15565         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
15566         dependency.
15567
15568 2008-05-15  Richard Guenther  <rguenther@suse.de>
15569
15570         PR tree-optimization/34330
15571         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
15572         through the pointer will alias the SMT.
15573
15574 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
15575
15576         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
15577
15578 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15579
15580         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
15581
15582 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
15583             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
15584
15585         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
15586         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
15587         (vashl_optab): New optab for vector/vector shifts.
15588         (vashr_optab): Ditto.
15589         (vlshr_optab): Ditto.
15590         (vrotl_optab): Ditto.
15591         (vrotr_optab): Ditto.
15592         (optab_subtype): New enum for optab_for_tree_code call.
15593         (optab_for_tree_code): Add enum optab_subtype argument.
15594
15595         * optabs.c (optab_for_tree_code): Take an additional argument to
15596         distinguish between a vector shift by a scalar and vector shift by
15597         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
15598         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
15599         vector shift by a vector.
15600         (expand_widen_pattern_expr): Pass additional argument to
15601         optab_for_tree_code.
15602
15603         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
15604         vrotl_optab, vrotr_optab.
15605
15606         * expr.c (expand_expr_real_1): Update calls to
15607         optab_for_tree_code to distinguish between vector shifted by a
15608         scalar and vector shifted by a vector.
15609         * tree-vectorizer.c (supportable_widening_operation): Ditto.
15610         (supportable_narrowing_operation): Ditto.
15611         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
15612         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
15613         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
15614         (vect_create_epilog_for_reduction): Ditto.
15615         (vectorizable_reduction): Ditto.
15616         (vectorizable_operation): Ditto.
15617         (vect_strided_store_supported): Ditto.
15618         (vect_strided_load_supported): Ditto.
15619         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
15620         * expmed.c (expand_shift): Ditto.
15621
15622         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
15623         scalar type.
15624         (ashr@var{m}3): Ditto.
15625         (vashl@var{m}3): Document new vector/vector shift standard name.
15626         (vashr@var{m}3): Ditto.
15627         (vlshr@var{m}3): Ditto.
15628         (vrotl@var{m}3): Ditto.
15629         (vrotr@var{m}3): Ditto.
15630
15631         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
15632         (PPERM_INVERT): Ditto.
15633         (PPERM_REVERSE): Ditto.
15634         (PPERM_REV_INV): Ditto.
15635         (PPERM_ZERO): Ditto.
15636         (PPERM_ONES): Ditto.
15637         (PPERM_SIGN): Ditto.
15638         (PPERM_INV_SIGN): Ditto.
15639         (PPERM_SRC1): Ditto.
15640         (PPERM_SRC2): Ditto.
15641
15642         * config/i386/sse.md (mulv2di3): Add SSE5 support.
15643         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
15644         allows a memory operand to be the value being added, and split it
15645         to improve vectorization.
15646         (sse5_pmacsdqh_mem): Ditto.
15647         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
15648         (sse5_mulv2div2di3_high): Ditto.
15649         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
15650         (vec_pack_trunc_v4si): Ditto.
15651         (vec_pack_trunc_v2di): Ditto.
15652         (sse5_pcmov_<mode>): Remove code that tried to use use
15653         andps/andnps instead of pcmov.
15654         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
15655         pmacsdqh instructions.
15656         (vec_widen_smult_lo_v4si): Ditto.
15657
15658         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
15659         (PPERM_INVERT): Ditto.
15660         (PPERM_REVERSE): Ditto.
15661         (PPERM_REV_INV): Ditto.
15662         (PPERM_ZERO): Ditto.
15663         (PPERM_ONES): Ditto.
15664         (PPERM_SIGN): Ditto.
15665         (PPERM_INV_SIGN): Ditto.
15666         (PPERM_SRC1): Ditto.
15667         (PPERM_SRC2): Ditto.
15668         (ix86_expand_sse_movcc): Move the SSE5 test after the if
15669         true/false tests.
15670         (ix86_expand_int_vcond): If SSE5 generate all possible integer
15671         comparisons.
15672         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
15673         says ignore whether the last reference is a memory operand.
15674
15675 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
15676             Paolo Bonzini <bonzini at gnu dot org>
15677
15678         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
15679         shift patterns.
15680
15681         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
15682         (vlshr<mode>3): Rename from vlshr<mode>3.
15683         (vashr<mode>3): Rename from vashr<mode>3.
15684         (mulv4sf3): Change the names of vector shift patterns.
15685         (mulv4si3): Ditto.
15686         (negv4sf2): Ditt.
15687
15688         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
15689         shift insns.
15690
15691         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
15692         (SI_SHLHI): Ditto.
15693         (SI_SHL): Ditto.
15694         (SI_SHLI): Ditto.
15695         (SI_ROTH): Ditto.
15696         (SI_ROTHI): Ditto.
15697         (SI_ROT): Ditto.
15698         (SI_ROTI): Ditto.
15699         (SPU_RL_0): Ditto.
15700         (SPU_RL_1): Ditto.
15701         (SPU_RL_2): Ditto.
15702         (SPU_RL_3): Ditto.
15703         (SPU_RL_4): Ditto.
15704         (SPU_RL_5): Ditto.
15705         (SPU_RL_6): Ditto.
15706         (SPU_RL_7): Ditto.
15707         (SPU_SL_0): Ditto.
15708         (SPU_SL_1): Ditto.
15709         (SPU_SL_2): Ditto.
15710         (SPU_SL_3): Ditto.
15711         (SPU_SL_4): Ditto.
15712         (SPU_SL_5): Ditto.
15713         (SPU_SL_6): Ditto.
15714         (SPU_SL_7): Ditto.
15715
15716         * config/spu/spu.md (v): New iterator macro to add v for vector types.
15717         (floatunssidf2_internal): Change vector/vector shift names.
15718         (floatunsdidf2_internal): Ditto.
15719         (mulv8hi3): Ditto.
15720         (ashrdi3): Ditto.
15721         (ashrti3): Ditto.
15722         (cgt_df): Ditto.
15723         (cgt_v2df): Ditto.
15724         (dftsv): Ditto.
15725         (vashl<mode>3): Rename from ashl<mode>3.
15726         (vashr<mode>3): Rename from ashr<mode>3.
15727         (vlshr<mode>3): Rename from lshr<mode>3.
15728         (vrotl<mode>3): Rename from rotl<mode>3.
15729
15730 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
15731
15732         PR target/36224
15733         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
15734         multiply gives the wrong value when doing widening multiplies.
15735         (vec_widen_smult_lo_v4si): Ditto.
15736
15737 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
15738
15739         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
15740         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
15741         emit_library_call_value.
15742         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
15743         * tree.h (ECF_LIBCALL_BLOCK): Removed.
15744         * calls.c (initialize_argument_information, precompute_arguments,
15745         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
15746         (precompute_arguments): Removed flags parameter.
15747         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
15748
15749 2008-05-14  Richard Guenther  <rguenther@suse.de>
15750
15751         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
15752         Make sure to register the store if the use is a PHI_NODE.
15753
15754 2008-05-14  Olivier Hainque  <hainque@adacore.com>
15755
15756         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
15757         memory if the component is to be referenced in BLKmode according
15758         to get_inner_reference.
15759
15760 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
15761
15762         * calls.c (emit_library_call_value_1): Restore code clearing
15763         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
15764
15765 2008-05-14  Olivier Hainque  <hainque@adacore.com>
15766             Nicolas Roche  <roche@adacore.com>
15767
15768         * configure.ac: Add support for a "gcc_subdir" variable in
15769         config-lang.in, to denote a subdirectory where the language/GCC
15770         integration files are to be found.
15771         * configure: Regenerate.
15772
15773 2008-05-14  Ira Rosen  <irar@il.ibm.com>
15774
15775         PR tree-optimization/36098
15776         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
15777         value for the first load in the group in case of a gap.
15778         (vect_build_slp_tree): Check that there are no gaps in loads.
15779
15780 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
15781
15782         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
15783         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
15784         expand_copysign_bit, ): Change call to emit_no_conflict_block to
15785         emit_insn and remove unneeded code to construct extra args.
15786         (emit_no_conflict_block): Removed.
15787         * optabls.h: (emit_no_conflict_block): Removed.
15788         * cse.c (cse_extended_basic_block): Remove search for
15789         REG_NO_CONFLICT note.
15790         * global.c: Removed incorrect comment added in revision 117.
15791         * expr.c (convert_move): Change call to emit_no_conflict_block to
15792         emit_insn.
15793         * recog.c: Change comments so that they do not mention
15794         REG_NO_CONFLICT.
15795         * local_alloc.c (combine_regs): Removed last parameter.
15796         (no_conflict_p): Removed.
15797         (block_alloc): Removed note, no_conflict_combined_regno and set
15798         local vars. Removed all code to process REG_NO_CONFLICT blocks.
15799         (combine_regs): Removed already_dead and code to look for
15800         REG_NO_CONFLICT notes.
15801         * lower_subreg (remove_retval_note): Removed code to look for
15802         REG_NO_CONFLICT block.
15803         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
15804         (resolve_clobber): Remove code to process libcalls that have
15805         REG_NO_CONFLICT notes.
15806         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
15807         case.
15808         * combine.c (can_combine_p, distribute_notes):  Removed
15809         REG_NO_CONFLICT case.
15810         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
15811         to emit_insns.
15812         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
15813         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
15814         Ditto.
15815         * reg-notes.def (NO_CONFLICT): Removed.
15816
15817 2008-05-14  David S. Miller  <davem@davemloft.net>
15818
15819         * config/sparc/sparc.c (sparc_profile_hook): If
15820         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
15821         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
15822         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
15823
15824 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
15825
15826         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
15827
15828 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
15829
15830         PR target/36222
15831         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
15832         and op1 expansion before vector concat to have less live pseudos.
15833
15834 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
15835
15836         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
15837         ix86_expand_vector_set if supported.
15838
15839 2008-05-13  Diego Novillo  <dnovillo@google.com>
15840             Kenneth Zadeck  <zadeck@naturalbridge.com>
15841
15842         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
15843
15844         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
15845         phinodes_print_statistics, init_ssanames, fini_ssanames,
15846         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
15847         release_ssa_name, release_defs, replace_ssa_name_symbol,
15848         ssanames_print_statistics): Move ...
15849         * tree-flow.h: ... here.
15850         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
15851         Use FN instead of cfun.
15852         (make_ssa_name_fn): Rename from make_ssa_name.
15853         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
15854         * tree-flow-inline.h (make_ssa_name): Move from
15855         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
15856         * omp-low.c (expand_omp_parallel):
15857         * tree-flow-inline.h (redirect_edge_var_map_result):
15858         * tree-ssa.c (init_tree_ssa): Add argument FN.
15859         Use it instead of cfun.  Update all users.
15860
15861 2008-05-13  Tom Tromey  <tromey@redhat.com>
15862
15863         PR preprocessor/22168:
15864         * doc/cpp.texi (Top): Update menu.
15865         (Alternatives to Wrapper #ifndef): New node.
15866         (Other Directives): Document deprecation.
15867         (Obsolete Features): Remove menu.
15868         (Assertions): Merge node into Obsolete Features.
15869         (Obsolete once-only headers): Move earlier; rename to Alternatives
15870         to Wrapper #ifndef.
15871         * doc/cppopts.texi: Update.
15872         * c.opt (Wdeprecated): Enable for C and ObjC.
15873         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
15874         (C++ Dialect Options): Move -Wno-deprecated from here to...
15875         (Warning Options): ... here.
15876
15877 2008-05-13  Richard Guenther  <rguenther@suse.de>
15878
15879         PR middle-end/36227
15880         * fold-const.c (fold_sign_changed_comparison): Do not allow
15881         changes in pointer-ness.
15882
15883 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
15884
15885         PR target/24713
15886         * config/sh/sh.c (sh_expand_prologue): Don't clear
15887         RTX_FRAME_RELATED_P for push insns.
15888
15889 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
15890
15891         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
15892
15893 2008-05-12  Anatoly Sokolov <aesok@post.ru>
15894
15895         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
15896         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
15897         Use 'machine->is_leaf' instead of 'leaf_func_p'.
15898
15899 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
15900
15901         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
15902         (*vec_concatv4sf_sse): This.
15903         (*sse2_concatv2si): Renamed to ...
15904         (*vec_concatv2si_sse2): This.
15905         (*sse1_concatv2si): Renamed to ...
15906         (*vec_concatv2si_sse): This.
15907         (*vec_concatv2di_rex): Renamed to ...
15908         (*vec_concatv2di_rex64): This.
15909         (*vec_concatv2si_sse4_1): New.
15910         (*vec_concatv2di_rex64_sse4_1): Likewise.
15911
15912 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
15913
15914         PR rtl-optimization/36111
15915         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
15916         that was created for swappable operands.
15917
15918 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
15919
15920         PR ada/36001
15921         * Makefile.in: Substitute GNATMAKE and GNATBIND.
15922         * configure.ac: Add call to ACX_PROG_GNAT.
15923
15924 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
15925
15926         * optc-gen.awk: Fix comment typo.
15927
15928 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
15929
15930         * pretty-print.c (pp_integer_with_precision): Use
15931         HOST_LONG_LONG_FORMAT.
15932
15933 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
15934
15935         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
15936
15937 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15938
15939         * config/i386/i386.c (bdesc_ptest): Removed.
15940         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
15941         (bdesc_args): Add __builtin_ia32_ptestz128,
15942         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
15943         (ix86_init_mmx_sse_builtins): Updated.
15944         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
15945         (ix86_expand_builtin): Updated.
15946
15947 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
15948
15949         * tree-cfg.c (valid_fixed_convert_types_p): New function.
15950         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
15951
15952 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
15953
15954         * value-prof.c (interesting_stringop_to_profile): Do not
15955         return early for BUILT_IN_MEMPCPY.
15956
15957 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
15958
15959         * calls.c (expand_call): Don't use callgraph to increase
15960         preferred_stack_boundary.
15961
15962         * cgraph.h (cgraph_rtl_info): Use unsigned on
15963         preferred_incoming_stack_boundary.
15964
15965         * final.c (rest_of_clean_state): Use unsigned on
15966         preferred_stack_boundary.
15967
15968 2008-05-09  Tom Tromey  <tromey@redhat.com>
15969
15970         PR preprocessor/22231:
15971         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
15972         proceeding.
15973
15974 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
15975
15976         PR tree-optimization/36129
15977         * tree-ssa-ccp.c: Include value-prof.h.
15978         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
15979         built-in function was folded to a constant.
15980         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
15981
15982 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
15983             Sebastian Pop  <sebastian.pop@amd.com>
15984
15985         * tree-scalar-evolution.c: Document instantiate_scev.
15986         (instantiate_parameters_1): Renamed instantiate_scev_1.
15987         Don't use the same loop for instantiation_loop and evolution_loop.
15988         (instantiate_scev): New.
15989         (instantiate_parameters): Moved...
15990         (resolve_mixers): Update call to instantiate_scev_1 to pass the
15991         same loop twice.  Maintains the semantics for this function.
15992         * tree-scalar-evolution.h (instantiate_scev): Declare.
15993         (instantiate_parameters): ...here.  Now static inline.
15994         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
15995         instead of resolve_mixers.
15996
15997 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
15998
15999         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
16000
16001 2008-05-09  Tomas Bily  <tbily@suse.cz>
16002
16003         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
16004         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
16005         * tree-ssa-structalias.c (get_constraint_for): Likewise.
16006         * c-common.c (c_common_truthvalue_conversion): Likewise.
16007         * tree-object-size.c (compute_object_offset): Likewise.
16008         * tree-inline.c (estimate_num_insns_1): Likewise.
16009         * varasm.c (const_hash_1, compare_constant, copy_constant)
16010         (compute_reloc_for_constant, output_addressed_constants)
16011         (initializer_constant_valid_p): Likewise.
16012         * c-omp.c (check_omp_for_incr_expr): Likewise.
16013         * gimplify.c (gimplify_expr): Likewise.
16014         * c-typeck.c (c_finish_return): Likewise.
16015         * tree-vectorizer.c (supportable_widening_operation)
16016         (supportable_narrowing_operation): Likewise.
16017         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
16018         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
16019         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
16020         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
16021         (descr_info_loc): Likewise.
16022         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
16023         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
16024         (fold_unary): Likewise.
16025         * builtins.c (get_pointer_alignment): Likewise.
16026         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
16027         (instantiate_parameters_1): Likewise.
16028         * tree.c (expr_align, stabilize_reference): Likewise.
16029         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
16030         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
16031         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
16032         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
16033         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
16034         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
16035         Likewise.
16036         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
16037         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
16038         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
16039         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
16040         (forward_propagate_comparison)
16041         (tree_ssa_forward_propagate_single_use_vars): Likewise.
16042         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
16043         * emit-rtl.c (component_ref_for_mem_expr)
16044         (set_mem_attributes_minus_bitpos): Likewise.
16045         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
16046         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
16047         Likewise.
16048         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
16049         (build_function_call, pointer_diff, build_compound_expr)
16050         (c_finish_return): Likewise.
16051         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
16052         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
16053         Likewise.
16054         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
16055         * expr.c (is_aligning_offset): Likewise.
16056         * tree-ssa-alias.c (is_escape_site): Likewise.
16057         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
16058         (check_all_va_list_escapes): Likewise.
16059         * tree-ssa-loop-ivopts.c (determine_base_object)
16060         (determine_common_wider_type): Likewise.
16061         * dojump.c (do_jump): Likewise.
16062         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
16063         * tree-gimple.c (is_gimple_cast): Likewise.
16064         * fold-const.c (decode_field_reference, )
16065         (fold_sign_changed_comparison, fold_unary, fold_comparison)
16066         (fold_binary): Likewise.
16067         * tree-ssa-alias-warnings.c (find_alias_site_helper)
16068         (already_warned_in_frontend_p): Likewise.
16069         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
16070         * tree.c (really_constant_p, get_unwidened): Likewise.
16071         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
16072         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
16073         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
16074         Likewise.
16075         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
16076         CONVERT_EXPR_P.
16077         (CONVERT_EXPR_P): Define.
16078         (CASE_CONVERT): Define.
16079
16080 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
16081
16082         PR middle-end/36117
16083         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
16084         (delete_unmarked_insns): When deleting a call, call
16085         delete_unreachable_blocks.
16086         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
16087         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
16088
16089 2008-05-08  Richard Guenther  <rguenther@suse.de>
16090
16091         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
16092         (-ftree-salias): Likewise.
16093         (salias-max-implicit-fields): Remove param documentation.
16094         (salias-max-array-elements): Likewise.
16095         * tree-pass.h (pass_create_structure_vars): Remove.
16096         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
16097         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
16098         * tree-ssa-alias.c (create_structure_vars): Remove.
16099         (gate_structure_vars): Likewise.
16100         (pass_create_structure_vars): Likewise.
16101         (gate_build_alias): Likewise.
16102         (pass_build_alias): Adjust to run always and dump the function.
16103         * common.opt (ftree-salias): Hide.
16104         * passes.c (init_optimization_passes): Remove
16105         pass_create_structure_vars, adjust comment.
16106         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
16107         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
16108         * opts.c (decode_options): Do not set flag_tree_salias.
16109         (common_handle_option): Add OPT_ftree_salias to the backward
16110         compatibility section.
16111
16112 2008-05-08  Richard Guenther  <rguenther@suse.de>
16113
16114         * tree-flow-inline.h (var_can_have_subvars): Move ...
16115         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
16116         * tree-flow.h (var_can_have_subvars): Remove.
16117         (push_fields_onto_fieldstack): Remove.
16118         (sort_fieldstack): Likewise.
16119         (struct fieldoff): Move ...
16120         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
16121         alias_set and base_for_components fields.
16122         (sort_fieldstack): Make static.
16123         (push_fields_onto_fieldstack): Likewise.  Remove code that
16124         handles anything but RECORD_TYPEs.  Remove alias_set and
16125         base_for_components handling.
16126         (create_variable_info_for): Adjust.
16127
16128 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
16129
16130         * common.opt (Wframe-larger-than=): Shorten the help message
16131         to one line.
16132         * doc/invoke.texi (Wframe-larger-than=): Add more description.
16133
16134 2008-05-08  Rafael Espíndola  <espindola@google.com>
16135
16136         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
16137         trap.
16138         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
16139         trap and that both operands are gimple values.
16140         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
16141         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
16142         is a fp operation.
16143
16144 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
16145
16146         * read-rtl.c (join_c_conditions): Return the first string if the
16147         two strings are equal.
16148
16149 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
16150
16151         * gensupport.h (pred_data): Add a "num_codes" field.
16152         (add_predicate_code): Declare.
16153         * gensupport.c (add_predicate_code): New function.
16154         (std_pred_table): Add an "allows_const_p" field.
16155         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
16156         Remove the (incomplete) list of such codes from the codes field.
16157         (init_predicate_table): Use add_predicate_code.  Add all
16158         RTX_CONST_OBJs if allows_const_p is true.
16159         * genrecog.c (process_define_predicate): Use add_predicate_code.
16160
16161 2008-05-08  David Daney  <ddaney@avtrex.com>
16162             Richard Sandiford  <rsandifo@nildram.co.uk>
16163
16164         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
16165         special case of constant zero operands.
16166         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
16167         old and new values.  Special case constant zero values.
16168         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
16169         fails.
16170         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
16171         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
16172
16173 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
16174
16175         PR target/36090
16176         * simplify-rtx.c (simplify_plus_minus): Create CONST of
16177         similar RTX_CONST_OBJ before CONST_INT.
16178
16179 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
16180
16181         * stmt.c (expand_stack_restore): Change sa mode if needed.
16182
16183 2008-05-08  Richard Guenther  <rguenther@suse.de>
16184
16185         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
16186         return type to bool.
16187         (ix86_sol10_return_in_memory): Likewise.
16188         (ix86_i386elf_return_in_memory): Likewise.
16189         (ix86_i386interix_return_in_memory): Likewise.
16190         * config/i386/i386.c (ix86_return_in_memory): Likewise.
16191         (ix86_sol10_return_in_memory): Likewise.
16192         (ix86_i386elf_return_in_memory): Likewise.
16193         (ix86_i386interix_return_in_memory): Likewise.
16194
16195 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
16196
16197         PR bootstrap/36180
16198         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
16199         fndecl argument.
16200         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
16201         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
16202         declared in front.
16203
16204 2008-05-08  Richard Guenther  <rguenther@suse.de>
16205
16206         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
16207         * tree-data-ref.h (struct dr_alias): Remove subvars field.
16208         (DR_SUBVARS): Remove.
16209         * tree-dfa.c (dump_subvars_for): Remove.
16210         (debug_subvars_for): Likewise.
16211         (dump_variable): Do not dump subvars.
16212         (remove_referenced_var): Do not remove subvars.
16213         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
16214         (lookup_subvars_for_var): Remove.
16215         (get_subvars_for_var): Likewise.
16216         (get_subvars_at): Likewise.
16217         (get_first_overlapping_subvar): Likewise.
16218         (overlap_subvar): Likewise.
16219         * tree-flow.h (subvar_t): Remove.
16220         (struct var_ann_d): Remove subvars field.
16221         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
16222         argument.  Remove special handling of SFTs.
16223         (compute_tag_properties): Likewise.
16224         (set_initial_properties): Likewise.
16225         (compute_call_clobbered): Likewise.
16226         (count_mem_refs): Likewise.
16227         (compute_memory_partitions): Likewise.
16228         (compute_flow_insensitive_aliasing): Likewise.
16229         (setup_pointers_and_addressables): Likewise.
16230         (new_type_alias): Likewise.
16231         (struct used_part): Remove.
16232         (used_portions): Likewise.
16233         (struct used_part_map): Likewise.
16234         (used_part_map_eq): Likewise.
16235         (used_part_map_hash): Likewise.
16236         (free_used_part_map): Likewise.
16237         (up_lookup): Likewise.
16238         (up_insert): Likewise.
16239         (get_or_create_used_part_for): Likewise.
16240         (create_sft): Likewise.
16241         (create_overlap_variables_for): Likewise.
16242         (find_used_portions): Likewise.
16243         (create_structure_vars): Likewise.
16244         * tree.def (STRUCT_FIELD_TAG): Remove.
16245         * tree.h (MTAG_P): Adjust.
16246         (struct tree_memory_tag): Remove base_for_components and
16247         unpartitionable flags.
16248         (struct tree_struct_field_tag): Remove.
16249         (SFT_PARENT_VAR): Likewise.
16250         (SFT_OFFSET): Likewise.
16251         (SFT_SIZE): Likewise.
16252         (SFT_NONADDRESSABLE_P): Likewise.
16253         (SFT_ALIAS_SET): Likewise.
16254         (SFT_UNPARTITIONABLE_P): Likewise.
16255         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
16256         (union tree_node): Remove sft field.
16257         * alias.c (get_alias_set): Remove special handling of SFTs.
16258         * print-tree.c (print_node): Remove handling of SFTs.
16259         * tree-dump.c (dequeue_and_dump): Likewise.
16260         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
16261         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
16262         * tree-predcom.c (set_alias_info): Do not set subvars.
16263         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
16264         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
16265         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
16266         (add_vars_for_offset): Remove.
16267         (add_virtual_operand): Remove special handling of SFTs.
16268         (add_call_clobber_ops): Likewise.
16269         (add_call_read_ops): Likewise.
16270         (get_asm_expr_operands): Likewise.
16271         (get_modify_stmt_operands): Likewise.
16272         (get_expr_operands): Likewise.
16273         (add_to_addressable_set): Likewise.
16274         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
16275         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
16276         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
16277         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
16278         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
16279         (tree_node_structure): Likewise.
16280         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
16281         handling of SFTs.
16282         (find_what_p_points_to): Likewise.
16283
16284 2008-05-08  Sa Liu  <saliu@de.ibm.com>
16285
16286         * config/spu/spu.md: Fixed subti3 pattern.
16287
16288 2008-05-08  Richard Guenther  <rguenther@suse.de>
16289
16290         PR middle-end/36154
16291         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
16292         sure to create a representative for trailing arrays for PTA.
16293
16294 2008-05-08  Richard Guenther  <rguenther@suse.de>
16295
16296         PR middle-end/36172
16297         * fold-const.c (operand_equal_p): Two objects which types
16298         differ in pointerness are not equal.
16299
16300 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
16301
16302         * calls.c (compute_argument_block_size): Add argument tree fndecl.
16303         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
16304         (emit_library_call_value_1): Add new variable fndecl initialized by
16305         NULL_TREE. It should be the decl type of orgfun, but this information
16306         seems not to be available here, so it uses the default calling abi.
16307         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
16308         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
16309         by TARGET_RETURN_IN_MEMORY.
16310         * config/i386/i386-interix.h: Likewise.
16311         * config/i386/i386.h: Likewise.
16312         * config/i386/i386elf.h: Likewise.
16313         * config/i386/ptx4-i.h: Likewise.
16314         * config/i386/sol2-10.h: Likewise.
16315         * config/i386/sysv4.h: Likewise.
16316         * config/i386/vx-common.h: Likewise.
16317         * config/cris/cris.h: Removed #if 0 clause.
16318         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
16319         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
16320         argument.
16321         (ix86_sol10_return_in_memory): Likewise.
16322         (ix86_i386elf_return_in_memory): New.
16323         (ix86_i386interix_return_in_memory): New.
16324         * config/mt/mt-protos.h (mt_return_in_memory): New.
16325         * config/mt/mt.c: Likewise.
16326         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
16327         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
16328         * config/bfin/bfin.h: Likewise.
16329         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
16330         argument.
16331         * config/bfin/bfin.c: Likewise.
16332         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
16333         * config/alpha/unicosmk.h: Likewise.
16334         * config/i386/cygming.h: Likewise.
16335         * config/iq2000/iq2000.h: Likewise.
16336         * config/mips/mips.h: Likewise.
16337         * config/mn10300/mn10300.h: Likewise.
16338         * config/rs6000/rs6000.h: Likewise.
16339         * config/score/score.h: Likewise.
16340         * config/spu/spu.h: Likewise.
16341         * config/v850/v850.h: Likewise.
16342         * defaults.h: Likewise.
16343         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
16344         * expr.c (emit_block_move): Adjust use of
16345         OUTGOING_REG_PARM_STACK_SPACE.
16346         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
16347         OUTGOING_REG_PARM_STACK_SPACE.
16348         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
16349
16350 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
16351
16352         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
16353         on OMP_RETURN for OMP_FOR.
16354
16355         PR debug/35896
16356         * dwarf2out.c (dw_expand_expr, common_check): Removed.
16357         (fortran_common): New function.
16358         (gen_variable_die): Call fortran_common instead of common_check,
16359         adjust for it returning tree instead of rtx.  Formatting.
16360
16361 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
16362
16363         PR rtl/7335
16364         PR rtl/33826
16365         * see.c (see_copy_insn): Copy new pure const attributes for new call.
16366         * c-decl.c (merge_decls): Ditto.
16367         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
16368         to RTL_CONST_OR_PURE_CALL_P.
16369         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
16370         Initialized DECL_LOOPING_CONST_PURE.
16371         (process_call_operands): Set tree_side_effects properly.
16372         * tree.h (TREE_READONLY_DECL_P): Removed.
16373         (DECL_IS_PURE): Renamed to DECL_PURE_P.
16374         (DECL_LOOPING_OR_CONST_P): New macro.
16375         (struct tree_function_decl): Added looping_const_or_pure_p.
16376         (ECF_*) Renumbered.
16377         (ECF_LOOPING_OR_CONST_P): New macro.
16378         * rtlanal.c (pure_const_p): Removed.
16379         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
16380         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
16381         to RTL_CONST_CALL_P.
16382         * ipa-pure-const.c (pure_const_state_e): Added looping field.
16383         (check_decl, check_tree, check_call, scan_function): Initialize
16384         looping.
16385         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
16386         (static_execute): Set looping true for recursive functions.
16387         Undo setting state to IPA_NEITHER for recursive functions.
16388         * cse.c (cse_insn):
16389         * ifcvt.c (noce_can_store_speculate_p): Changed
16390         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
16391         RTL_CONST_OR_PURE_CALL_P.
16392         * dse.c (scan_insn): Ditto.
16393         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
16394         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
16395         RTL_CONST_OR_PURE_CALL_P.
16396         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
16397         pure_call_p to RTL_CONST_CALL_P.
16398         * gimplify.c (gimplify_call_expr): Clear side effects for
16399         non-looping pure and constant calls.
16400         * calls.c (emit_call_1): Set rtl flags from ecf flags.
16401         (flags_from_decl_or_type): Set ecf flags from decl flags.
16402         (initialize_argument_information): Turn off
16403         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
16404         Change const to pure if callee_copies is true rather than just
16405         turning off const.
16406         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
16407         way of marking pure calls.
16408         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
16409         Remove hack that was supposed to fix pr7335 and remove old
16410         way of marking pure calls.
16411         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
16412         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
16413         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
16414         RTL_CONST_OR_PURE_CALL_P.
16415         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
16416         * loop-invariant.c (find_exits, find_invariant_bb): Changed
16417         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
16418         * sched-deps.c (schedule_analyze): Ditto.
16419         * rtl.h (struct rtx_def): Use call field, unchanging field, and
16420         return_val field of calls to represent pure and const function info.
16421         (CONST_OR_PURE_CALL_P): Deleted macro.
16422         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
16423         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
16424         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
16425         TREE_READONLY.
16426         * tree-optimize.c (execute_fixup_cfg): Added test for
16427         ECF_LOOPING_CONST_OR_PURE.
16428         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
16429         DECL_PURE_P.
16430         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
16431         effects for looping pure or const calls.
16432         (verify_gimple_expr): Added verification code.
16433         * config/alpha/alpha.c (alpha_legitimize_address,
16434         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
16435         RTL_CONST_CALL_P.
16436         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
16437         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
16438         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
16439         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
16440         RTL_CONST_OR_PURE_CALL_P.
16441         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
16442         and const calls to be deleted.
16443
16444 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
16445
16446         PR target/35714
16447         * config/i386/mmx.md (mmx_subv2sf3): New expander.
16448         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
16449         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
16450         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
16451         to handle nonimmediate operands.
16452         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
16453         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
16454         to handle nonimmediate operands.
16455         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
16456         (mmx_pmulhrwv4hi3): New expander.  Use
16457         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16458         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
16459         (sse2_umulv1siv1di3): New expander.  Use
16460         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16461         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
16462         (mmx_eq<mode>3): New expander.  Use
16463         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16464         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
16465         (mmx_uavgv8qi3): New expander.  Use
16466         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16467         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
16468         (mmx_uavgv4hi3): New expander.  Use
16469         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16470
16471         * config/i386/sse.md
16472         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
16473         to handle nonimmediate operands.
16474         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
16475         to handle nonimmediate operands.
16476         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
16477         to handle nonimmediate operands.
16478         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
16479         to handle nonimmediate operands.
16480         (sse2_unpckhpd_exp): New expander.  Use
16481         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16482         (sse2_unpcklpd_exp): New expander.  Use
16483         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16484         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
16485         to handle nonimmediate operands.
16486         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
16487         to handle nonimmediate operands.
16488         (*sse2_<plusminus_insn><mode>3): Rename from
16489         sse2_<plusminus_insn><mode>3 insn pattern.
16490         (sse2_<plusminus_insn><mode>3): New expander.  Use
16491         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16492         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
16493         (sse2_umulv2siv2di3): New expander.  Use
16494         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16495         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
16496         (sse4_1_mulv2siv2di3): New expander.  Use
16497         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16498         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
16499         (sse2_pmaddwd): New expander.  Use
16500         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16501         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
16502         (sse2_eq<mode>3): New expander.  Use
16503         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16504         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
16505         (sse4_1_eqv2di3): New expander.  Use
16506         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16507         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
16508         (sse2_uavgv16qi3): New expander.  Use
16509         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16510         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
16511         (sse2_uavgv16qi3): New expander.  Use
16512         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16513         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
16514         (sse2_uavgv8hi3): New expander.  Use
16515         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16516         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
16517         (ssse3_pmulhrswv8hi3): New expander.  Use
16518         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16519         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
16520         (ssse3_pmulhrswv4hi3): New expander.  Use
16521         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16522
16523         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
16524         (<sse>_vmmul<mode>3): Ditto.
16525         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
16526         (divv2df3): Ditto.
16527         (ssse3_pmaddubsw128): Use register_operand for operand 1.
16528         (ssse3_pmaddubsw): Ditto.
16529
16530         * config/i386/i386.c (struct_builtin_description)
16531         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
16532         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
16533         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
16534         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
16535         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
16536         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
16537         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
16538         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
16539         (ix86_fixup_binary_operands): Assert that src1
16540         and src2 must have the same mode when swapped.
16541         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
16542         and ix86_binary_operator_ok.  Do not force operands in registers
16543         when optimizing.
16544
16545 2008-05-07  Jan Hubicka  <jh@suse.cz>
16546
16547         * cgraph.c (dump_cgraph_node): Update.
16548         * cgraph.h (cgraph_local_info): Break out inline summary.
16549         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
16550         hook.
16551         * ipa-inline (inline_summary): New accestor function.
16552         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
16553         cgraph_decide_inlining, compute_inline_parameters): Update.
16554         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
16555
16556 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
16557
16558         Cleanup ColdFire scheduling support and add V4 pipeline model.
16559
16560         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
16561         (define_attr cpu): Add cfv4 value.
16562         (define_attr type, define_attr type1): Merge into a single 'type'
16563         attribute.  Update all uses.
16564         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
16565         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
16566         Update all uses.
16567         (define_attr opx_mem, define_attr opy_mem): Remove.
16568         (define_attr op_mem): Clean up, update comment.
16569         (define_attr size): Use specific values instead of general int.
16570         (define_attr guess, define_attr split): Remove.  Update all uses.
16571         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
16572         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
16573         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
16574         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
16575         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
16576         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
16577         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
16578         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
16579         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
16580         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
16581         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
16582         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
16583         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
16584         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
16585         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
16586         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
16587         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
16588         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
16589         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
16590         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
16591         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
16592         Update or set attributes.
16593         (stack_tie): New fake instruction.
16594
16595         * config/m68k/m68k.h (TUNE_CFV4): New macro.
16596         (m68k_sched_attr_size): Update declaration.
16597         (m68k_sched_attr_type2): Remove.
16598         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
16599         Declare new bypass predicates.
16600
16601         * config/m68k/m68k.c (m68k_sched_issue_rate,
16602         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
16603         implementations.
16604         (TARGET_SCHED_ISSUE_RATE,
16605         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
16606         (override_options): Handle scheduling for ColdFire V4 core.
16607         (m68k_expand_prologue): Emit stack_tie.
16608         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
16609         'OP_TYPE_FPN'.  Update all uses.
16610         (sched_guess_p): Remove.
16611         (sched_address_type): Handle symbolic addresses.
16612         (sched_get_operand): New static function.
16613         (sched_operand_type): Merge into sched_attr_op_type.
16614         (sched_attr_op_type): Handle FP registers, handle quick constants,
16615         update.
16616         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
16617         (m68k_sched_attr_size): Update.  Move logic to ...
16618         (sched_get_attr_size_int): New static function.
16619         (sched_get_opxy_mem_type): New static function.
16620         (m68k_sched_attr_op_mem): Update.
16621         (m68k_sched_attr_type2): Remove.
16622         (sched_cfv4_bypass_data): New static variable.
16623         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
16624         (m68k_sched_issue_rate): Implement scheduler hook.
16625         (struct _sched_ib: enabled_p): New field.
16626         (m68k_sched_variable_issue): Update.  Handle V4.
16627         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
16628         sched_dump_class_func_t, sched_dump_split_class,
16629         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
16630         sched_dump_dfa_class, m68k_sched_dump): Remove.
16631         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
16632         hook.
16633         (m68k_sched_init_global): Remove statisctics dumping, introduce
16634         sanity check that all instructions have pipeline reservations.  Handle
16635         ColdFire V4 core.
16636         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
16637         Handle ColdFire V4 core.
16638         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
16639         New static functions.
16640         (m68k_sched_address_bypass_p): New bypass predicate.
16641         (sched_get_indexed_address_scale): New static function.
16642         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
16643
16644         * cf.md: Update comments.
16645         (define_attr type2): Remove.  Use 'type' attribute instead.
16646         Update all uses.
16647         (cf_ib): Rename to cfv123_ib.  Update all uses.
16648         (cf_oep): Rename to cfv123_oep.  Update all uses.
16649         (cf_chr): Rename to cfv123_chr.  Update all uses.
16650         (cf_mem): Rename to cfv123_mem.  Update all uses.
16651         (cf_mac): Move to more appropriate place.
16652         (cfv123_guess): New automaton and cpu_unit.
16653         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
16654         Update uses of 'size' attribute.  Handle before reload scheduling.
16655         (cfv123_guess): New dummy reservation for unhandled instructions.
16656         (cfv4_*): Pipeline description of ColdFire V4 core.
16657         (ignore): New reservation to handle 'ignore' type.
16658
16659 2008-05-07  Ian Lance Taylor  <iant@google.com>
16660
16661         PR middle-end/36013
16662         * gimplify.c (find_single_pointer_decl_1): Don't look through
16663         indirections.
16664         (find_single_pointer_decl): Adjust comments.
16665
16666 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
16667
16668         PR middle-end/36137
16669         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
16670         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
16671
16672         PR middle-end/36106
16673         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
16674         integral type rather than floating point, then VIEW_CONVERT_EXPR
16675         to the floating point type.
16676
16677 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
16678
16679         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
16680         TFmode op0 to register.
16681
16682 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
16683
16684         * c-decl.c (grokdeclarator): Comment typo.
16685
16686 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
16687
16688         * tree-flow.h: Remove prototype for computed_goto_p.
16689         * tree-cfg.c (computed_goto_p): Make static.
16690
16691 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
16692
16693         PR target/35657
16694         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
16695         (contains_aligned_value_p): This.  Handle _Decimal128.
16696         (ix86_function_arg_boundary): Only align _Decimal128 to its
16697         natural boundary and handle it properly.
16698
16699 2008-05-06  Martin Jambor  <mjambor@suse.cz>
16700
16701         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
16702         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
16703         (ipcp_method_set_orig_node): Removed.
16704         (ipcp_cval_get_cvalue_type): Removed.
16705         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
16706         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
16707         (ipcp_cval_set_cvalue_type): Removed.
16708         (ipcp_cval_get_cvalue): Removed.
16709         (ipcp_cval_set_cvalue): Removed.
16710         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
16711         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
16712         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
16713         (ipcp_cval_meet): Renamed to ipa_lattice_meet
16714         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
16715         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
16716         (ipcp_get_ith_lattice): Changed parameters.
16717         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
16718         (ipcp_lattice_from_jfunc): Changed parameters.
16719         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
16720         (ipcp_method_cval_print): Added temporary variable info.
16721         (ipcp_redirect): Removed already unused local variable caller.
16722         (ipcp_redirect): New temporary variable orig_callee_info
16723         (ipcp_redirect): Removed newly unused local variable callee.
16724         (ipcp_redirect): Removed (a bit confusing) local variable type.
16725         (ipcp_insert_stage): Added local variable info.
16726         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
16727         renamed too
16728         (ipcp_formal_create): Removed.
16729         (ipcp_method_cval_set): Removed.
16730         (ipcp_propagate_stage): Renamed lattice variables.
16731         (ipcp_method_cval_set_cvalue_type): Removed.
16732         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
16733         (ipcp_print_all_lattices): Changed printed strings to refer to
16734         lattices rather than cvals.
16735         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
16736         (ipcp_propagate_const): Changed formal parameters.
16737         (build_const_val): Changed formal parameters.
16738         (ipcp_insert_stage): Removed useless variable cvalue
16739         (build_const_val): Changed formal parameters.
16740         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
16741         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
16742         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
16743         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
16744         (ipcp_print_func_profile_counts): Changed string from "method" to
16745         "function"
16746         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
16747         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
16748         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
16749         (ipcp_structures_print): Renamed to ipcp_print_all_structures
16750         (ipcp_profile_print): Renamed to ipcp_print_profile_data
16751         (ipcp_lat_is_const): Changed parameters and made inline.
16752         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
16753         (ipcp_redirect): Renamed to ipcp_need_redirect_p
16754         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
16755         the predicate condition directly
16756         (ipcp_propagate_stage): Added local variable args. Removed local
16757         variable callee.  (Both are mere code simplifications.)
16758         (ipcp_method_dont_insert_const): Renamed to
16759         ipcp_node_not_modifiable_p.
16760         (ipcp_node_not_modifiable_p): Made inline.
16761         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
16762         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
16763         (ipcp_print_all_lattices): Removed variable cvalue
16764         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
16765         Updated comments.
16766
16767 2008-05-06  Olivier Hainque  <hainque@adacore.com>
16768
16769         * tree-sra.c (try_instantiate_multiple_fields): Early return
16770         if field has POINTER_TYPE.
16771
16772 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
16773
16774         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
16775         by using 'q' specifier for instruction.
16776         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
16777
16778 2008-05-06  Anatoly Sokolov <aesok@post.ru>
16779
16780         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
16781         Change mode of zero_extract from QImode to HImode.
16782         (sign bit tests peepholes): (Ditto.).
16783
16784 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
16785
16786         * config/i386/mmx.md: Remove double backslashes from asm templates.
16787         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
16788         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
16789         to handle nonimmediate operands.
16790         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
16791         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
16792         to handle nonimmediate operands.
16793         (*mmx_<code>v2sf3_finite): New insn pattern.
16794         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
16795         (mmx_<code>v2sf3): New expander.  Use
16796         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16797         (mmx_<plusminus_insn><mode>3): New expander.  Use
16798         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16799         (*mmx_<plusminus_insn><mode>3): New insn pattern.
16800         (mmx_add<mode>3): Removed.
16801         (mmx_ssadd<mode>3): Ditto.
16802         (mmx_usadd<mode>3): Ditto.
16803         (mmx_sub<mode>3): Ditto.
16804         (mmx_sssub<mode>3): Ditto.
16805         (mmx_ussub<mode>3): Ditto.
16806         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
16807         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
16808         to handle nonimmediate operands.
16809         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
16810         insn pattern.
16811         (mmx_smulv4hi3_highpart): New expander.  Use
16812         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16813         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
16814         insn pattern.
16815         (mmx_umulv4hi3_highpart): New expander.  Use
16816         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16817         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
16818         (mmx_<code>v4hi3): New expander.  Use
16819         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16820         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
16821         (mmx_<code>v8qi3): New expander.  Use
16822         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16823         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
16824         (mmx_<code><mode>3): New expander.  Use
16825         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16826
16827 2008-05-05  Jan Hubicka  <jh@suse.cz>
16828
16829         PR tree-optimization/36118
16830         * passes.c (pass_init_dump_file): Fix dump header.
16831
16832 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16833
16834         PR middle-end/36141
16835         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
16836         VCE for function decls.
16837
16838 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
16839
16840         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
16841
16842 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
16843
16844         * config/i386/i386.md (sat_plusminus): New.
16845         (plusminus_insn): Likewise.
16846         (plusminus_mnemonic): Likewise.
16847         (addsub): Removed.
16848         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
16849         (*<addsub><mode>3_cc_overflow): Renamed to ...
16850         (*<plusminus_insn><mode>3_cc_overflow): This.
16851         (*<addsub>si3_zext_cc_overflow): Renamed to ...
16852         (*<plusminus_insn>si3_zext_cc_overflow): This.
16853
16854         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
16855         (<plusminus_insn><mode>3): This.
16856         (*<addsub><mode>3): Renamed to ...
16857         (*<plusminus_insn><mode>3): This.
16858         (<sse>_vm<addsub><mode>3): Renamed to ...
16859         (<sse>_vm<plusminus_insn><mode>3): This.
16860         (sse3_h<addsub>v4sf3): Renamed to ...
16861         (sse3_h<plusminus_insn>v4sf3): This.
16862         (sse3_h<addsub>v2df3): Renamed to ...
16863         (sse3_h<plusminus_insn>v2df3): This.
16864         (<plusminus_insn><mode>3): New.
16865         (*<plusminus_insn><mode>3): Likewise.
16866         (sse2_<plusminus_insn><mode>3): Likewise.
16867         (add<mode>): Removed.
16868         (*add<mode>3): Likewise.
16869         (sse2_ssadd<mode>3): Likewise.
16870         (sse2_usadd<mode>3): Likewise.
16871         (sub<mode>3): Likewise.
16872         (*sub<mode>3): Likewise.
16873         (sse2_sssub<mode>3): Likewise.
16874         (sse2_ussub<mode>3): Likewise.
16875
16876 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
16877
16878         * gthr-single.h: Add in required interface elements as per gthr.h.
16879         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
16880         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
16881         Generalize UNUSED macro.
16882         (__gthread_once): Add.
16883         (__gthread_key_create): Add.
16884         (__gthread_key_delete): Add.
16885         (__gthread_getspecific): Add.
16886         (__gthread_setspecific): Add.
16887
16888 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
16889
16890         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
16891         the same size types for the indirect reference on the rhs, then
16892         create a VCE.
16893
16894 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
16895
16896         * config/i386/i386.md
16897         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
16898         one insn template instead of template series.
16899         (*xordi_1_rex64): Ditto.
16900         (*xordi_2_rex64): Ditto.
16901
16902 2008-05-05  Ira Rosen  <irar@il.ibm.com>
16903
16904         PR tree-optimization/36119
16905         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
16906         in case of SLP.
16907
16908 2008-06-04  Jan Hubicka  <jh@suse.cz>
16909
16910         tree-optimization/36100
16911         * tree-pass.h (pass_O0_always_inline): Declare.
16912         * ipa-inline.c (inline_transform): Remove dead code.
16913         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
16914         pass_O0_always_inline): New.
16915         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
16916
16917 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
16918
16919         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
16920         mnemonic in this_param move for TARGET_64BIT.
16921
16922 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
16923
16924         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
16925         (*strmovsi_rex_1): Ditto.
16926         (*strsetsi_1): Ditto.
16927         (*strsetsi_rex_1): Ditto.
16928
16929         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
16930         adddicc expanders using SWI mode iterator.
16931
16932 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
16933
16934         PR target/36121
16935         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
16936         argument handling.
16937
16938 2008-05-04  David S. Miller  <davem@davemloft.net>
16939
16940         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
16941         (sparc*-*-linux*): Use linux.h in tm_file.
16942         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
16943         compiler defaulting to 32-bit.
16944         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
16945         no longer needed.
16946         * config/sparc/linux.h: Remove definitions now obtained
16947         properly from linux.h
16948         * config/sparc/linux64.h: Likewise.
16949         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
16950         don't want this setting for 32-bit builds in a biarch compiler.
16951         * doc/install.texi: Add sparc-linux to list of targets
16952         supporting --enable-targets=all.
16953
16954 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
16955
16956         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
16957
16958 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
16959
16960         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
16961         after V4SI_FTYPE_V8HI.
16962         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
16963         case V4SI_FTYPE_V2DF.
16964
16965 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
16966
16967         * doc/invoke.texi (max-flow-memory-locations): Removed.
16968         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
16969
16970 2008-05-03  Richard Guenther  <rguenther@suse.de>
16971
16972         PR middle-end/34973
16973         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
16974
16975 2008-05-02  David S. Miller  <davem@davemloft.net>
16976
16977         * config.gcc (need_64bit_hwint): Document libcpp dependency.
16978
16979 2008-05-02  Simon Baldwin <simonb@google.com>
16980
16981         PR bootstrap/36108
16982         * c-common.h (warn_array_subscript_range): Removed.
16983         * c-common.c (warn_array_subscript_range): Ditto.
16984         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
16985         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
16986
16987 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
16988
16989         * config/i386/i386.c (ix86_special_builtin_type): New.
16990         (bdesc_special_args): Likewise.
16991         (ix86_expand_special_args_builtin): Likewise.
16992         (ix86_init_mmx_sse_builtins): Updated.
16993         (ix86_expand_builtin): Updated.
16994         (ix86_expand_store_builtin): Removed.
16995         (ix86_expand_unop_builtin): Likewise.
16996
16997         * config/i386/mm3dnow.h (__v2sf): Moved to ...
16998         * config/i386/mmintrin.h (__v2sf): Here.
16999
17000         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
17001         const __v2sf.
17002         (_mm_loadl_pi): Likewise.
17003         (_mm_storeh_pi): Replace __v2si with __v2sf.
17004         (_mm_storel_pi): Likewise.
17005
17006         * doc/extend.texi: Correct __builtin_ia32_loadhps,
17007         __builtin_ia32_loadlps, __builtin_ia32_storehps,
17008         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
17009         __builtin_ia32_loadlpd.
17010
17011 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
17012
17013         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
17014         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
17015         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
17016         (ix86_init_mmx_sse_builtins): Updated.
17017         (ix86_expand_args_builtin): Likewise.
17018         (ix86_expand_builtin): Likewise.
17019         (ix86_expand_unop1_builtin): Renamed to ...
17020         (ix86_expand_unop_vec_merge_builtin): This.
17021
17022 2008-05-01  Jan Hubicka  <jh@suse.cz>
17023
17024         PR bootstrap/36100
17025         * ipa-inline.c (inline_generate_summary): Make static.
17026         (inline_transform): Do not call inlining at -O0; make static.
17027         * passes.c (execute_todo): Add sanity check.
17028         (execute_one_ipa_transform_pass): Execute proper flags.
17029
17030 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
17031
17032         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
17033         (DECL_NONADDRESSABLE_P): Likewise.
17034         * alias.c (record_component_aliases): Fix comment.
17035
17036 2008-05-01  Simon Baldwin <simonb@google.com>
17037
17038         * c-common.h (warn_array_subscript_range): New function.
17039         * c-common.c (warn_array_subscript_range): Ditto.
17040         * tree-vrp.c (check_array_ref): Corrected code to agree with
17041         comment, ignoring only arrays of size 0 or size 1.
17042         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
17043
17044 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
17045
17046         * config/i386/i386.c (ix86_builtin_type): Replace
17047         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
17048         (bdesc_args): Updated.
17049         (ix86_init_mmx_sse_builtins): Likewise.
17050         (ix86_expand_args_builtin): Likewise.
17051
17052         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
17053         with __v1di.
17054
17055         * doc/extend.texi: Correct __builtin_ia32_palignr.
17056
17057 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
17058
17059         PR target/36095
17060         * config/i386/i386.c (bdesc_crc32): Removed.
17061         (ix86_expand_crc32): Likewise.
17062         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
17063         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
17064         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
17065         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
17066         UINT_FTYPE_UINT_UCHAR.
17067         (bdesc_args): Updated. Add crc32 builtins.
17068         (ix86_init_mmx_sse_builtins): Updated.
17069         (ix86_expand_args_builtin): Updated to support subreg.
17070
17071         * doc/extend.texi: Correct __builtin_ia32_crc32di.
17072
17073 2008-05-01  Jan Hubicka  <jh@suse.cz>
17074
17075         * tree-pass.h (opt_pass): Add IPA_PASS.
17076         (varpool_node, cgraph_node): Forward declare.
17077         (ipa_opt_pass): Define.
17078         (pass_ipa_inline): Turn into ipa_opt_pass.
17079         (pass_apply_inline): Remove.
17080         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
17081         (apply_inline): Turn into ....
17082         (inline_transform): ... this one.
17083         (inline_generate_summary): New function.
17084         (pass_apply_inline): Remove.
17085         * function.h (ipa_opt_pass): Forward declare structure; typedef;
17086         vector.
17087         (struct function): Add ipa_transforms_to_apply.
17088         * passes.c (register_one_dump_file): Work on IPA_PASS.
17089         (init_optimization_passes): Remove pass_inline_parameters and
17090         pass_apply_inline.
17091         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
17092         (execute_one_pass) ... here; apply transforms when possible.
17093         (add_ipa_transform_pass, execute_ipa_summary_asses,
17094         execute_one_ipa_transform_pass): New.
17095         (execute_ipa_pass_list): Update for IPA_PASS type.
17096
17097 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
17098
17099         * config/i386/i386.c (ix86_builtin_type): Add
17100         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
17101         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
17102         (bdesc_args): Add SSE4a builtins.
17103         (ix86_init_mmx_sse_builtins): Updated.
17104         (ix86_expand_args_builtin): Likewise.
17105         (ix86_expand_builtin): Likewise.
17106
17107 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
17108
17109         * config/i386/i386.c (ix86_builtin_type): Add
17110         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
17111         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
17112         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
17113         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
17114         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
17115         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
17116         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
17117         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
17118         and DI_FTYPE_DI_DI_INT.
17119         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
17120         (ix86_init_mmx_sse_builtins): Updated.
17121         (ix86_expand_args_builtin): Likewise.
17122         (ix86_expand_builtin): Likewise.
17123         (ix86_expand_binop_imm_builtin): Removed.
17124
17125         * doc/extend.texi: Correct __builtin_ia32_palignr128.
17126
17127 2008-04-30  Richard Guenther  <rguenther@suse.de>
17128
17129         PR tree-optimization/32921
17130         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
17131
17132 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
17133
17134         * config/arm/arm.c (arm_unwind_emit): Use
17135         crtl->all_throwers_are_sibcalls instead of
17136         cfun->all_throwers_are_sibcalls.
17137         (arm_output_fn_unwind): Likewise.
17138         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
17139         instead of cfun->uses_pic_offset_table.
17140         (frv_expand_prologue): Likewise.
17141         (frv_frame_pointer_required): Likewise.
17142         (frv_expand_fdpic_call): Likewise.
17143         (frv_emit_movsi): Likewise.
17144         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
17145         cfun->returns_pcc_struct instead of
17146         current_function_returns_pcc_struct.
17147         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
17148         instead of cfun->calls_eh_return.
17149         (m32c_pushm_popm): Likewise.
17150         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
17151         "extern" declaration.
17152
17153 2008-04-30  Richard Guenther  <rguenther@suse.de>
17154
17155         PR tree-optimization/21636
17156         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
17157         constant address.
17158         (evaluate_stmt): Print the likely value.
17159         (ccp_visit_stmt): Avoid excessive vertical spacing.
17160
17161 2008-04-30  Rafael Espíndola  <espindola@google.com>
17162
17163         * builtins.c (fold_call_expr): Return realret.
17164         * tree-ssa-threadedge.c
17165         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
17166         __builtin_object_size.
17167
17168 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
17169
17170         * gcc.c (wrapper_string): New variable.
17171         (insert_wrapper): New function.
17172         (execute): New option -wrapper.
17173         * doc/invoke.texi (Overall Options): New driver option -wrapper.
17174
17175 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
17176
17177         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
17178         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
17179         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
17180         from...
17181         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
17182         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
17183         config/rs6000/e500crtres64gprctr.asm,
17184         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
17185         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
17186         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
17187         config/rs6000/e500crtsav64gprctr.asm,
17188         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
17189         config/rs6000/e500crtsavg64gprctr.asm: New files.
17190         * config/rs6000/t-ppccomm: Add build rules for new files.
17191         (LIB2FUNCS_STATIC_EXTRA): Add new files.
17192         * config/rs6000/t-netbsd: Add build rules for new files.
17193         (LIB2FUNCS_STATIC_EXTRA): New variable.
17194         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
17195         (CRTSAVRES_DEFAULT_SPEC): Likewise.
17196         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
17197
17198 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
17199
17200         * config/i386/i386.c (ix86_builtin_type): Add
17201         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
17202         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
17203         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
17204         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
17205         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
17206         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
17207         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
17208         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
17209         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
17210         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
17211         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
17212         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
17213         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
17214         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
17215         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
17216         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
17217         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
17218         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
17219         V1DI_FTYPE_V2SI_V2SI.
17220         (bdesc_2arg): Moved to ...
17221         (bdesc_args): Here.
17222         (ix86_init_mmx_sse_builtins): Updated.
17223         (ix86_expand_args_builtin): Updated.  Take a pointer
17224         to const struct builtin_description.  Handle comparison
17225         builtin functions.
17226         (ix86_expand_sse_compare): Take a new argument for swapping operands.
17227         (ix86_expand_builtin): Updated.
17228
17229         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
17230         (ssse3_pmaddubsw128): This.
17231         (ssse3_pmaddubswv4hi3): Renamed to ...
17232         (ssse3_pmaddubsw): This.
17233
17234         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
17235         (__builtin_ia32_packssdw128): Likewise.
17236         (__builtin_ia32_packuswb128): Likewise.
17237         (__builtin_ia32_pmaddubsw): Likewise.
17238         (__builtin_ia32_pmaddubsw128): Likewise.
17239
17240 2008-04-30  Richard Guenther  <rguenther@suse.de>
17241
17242         PR tree-optimization/14847
17243         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
17244         (recognize_bits_test): Use it.
17245         (recognize_single_bit_test): Likewise.
17246
17247 2008-04-30  Martin Jambor  <mjambor@suse.cz>
17248
17249         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
17250         instead of setting number of formal parameters to zero.
17251         (ipcp_init_stage): Do not set the number of actual parameters to zero
17252         either.
17253         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
17254         which are called with variable number of arguments.
17255         (ipcp_insert_stage): Explicitely skipping all nodes which are
17256         called with variable number of arguments.
17257         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
17258         number of parameters.
17259
17260         * ipa-prop.h (struct ipa_node_params): Added flag
17261         called_with_var_arguments
17262         (ipa_set_param_count): Added.  Changed sole setter to use it.
17263         (ipa_get_param_count): Added.  All readers of param_count
17264         converted to use it instead.
17265         (ipa_set_called_with_variable_arg): Added.
17266         (ipa_is_called_with_var_arguments): Added.
17267         (ipa_get_ith_param): Added.  All readers of param_decls converted
17268         to use it instead.
17269         (ipa_set_cs_argument_count): Added, sole writer to argument_count
17270         changed to use it.
17271         (ipa_get_cs_argument_count): Added, all readers of argument_count
17272         changed to cal it.
17273         (ipa_get_ith_jump_func): Added. Accessors of jump values changed
17274         to use it.
17275
17276         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
17277         (struct ipcp_lattice): Renamed cval_type to type
17278         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
17279
17280         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
17281         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
17282         (ipcp_insert_stage): Changed the type of variable cvalue to tree
17283         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
17284         (build_const_val): Changed the type of parameter cvalue to tree
17285         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
17286         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
17287
17288         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
17289         constant
17290
17291         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
17292         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
17293         (ipa_add_method): Renamed to ipa_push_func_to_list
17294         (ipa_remove_method): Renamed to ipa_pop_func_from_list
17295         (ipa_callsite_param_count): Removed.
17296         (ipa_callsite_param_count_set): Removed.
17297         (ipa_callsite_param): Removed.
17298         (ipa_callsite_callee): Removed.
17299         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
17300         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
17301         (ipa_method_formal_count): Removed.
17302         (ipa_method_formal_count_set): Removed.
17303         (ipa_method_get_tree): Removed.
17304         (ipa_method_tree_map_create): Removed.
17305         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
17306         (ipa_create_param_decls_array): Creates the array itself
17307         (ipa_create_param_decls_array): Temporary variable info instead of
17308         a few dereferences.
17309         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
17310         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
17311         (get_type): Removed.
17312         (ipa_jf_get_info_type): Removed.
17313         (ipa_node_create): Renamed to ipa_create_node_params
17314         (ipa_free): Renamed to ipa_free_all_node_params
17315         (ipa_nodes_create): Renamed to ipa_create_all_node_params
17316         (ipa_edges_create): Renamed to ipa_create_all_edge_args
17317         (ipa_edges_free): Renamed to ipa_free_all_edge_args
17318         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
17319         (ipa_free_all_node_params): Deallocation to jump_functions moved to
17320         ipa_free_all_edge_args
17321         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
17322         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
17323         (ipa_create_methodlist_node): Removed.
17324         (ipa_methodlist_method): Removed.
17325         (ipa_methodlist_method_set): Removed.
17326         (ipa_methodlist_next_method): Removed.
17327         (ipa_methodlist_next_method_set): Removed.
17328         (ipa_method_is_modified): Removed.
17329         (ipa_method_modify_create): Removed.
17330         (ipa_method_modify_init): Temporary variable info instead of a few
17331         dereferences.
17332         (ipa_detect_param_modifications): Temporary variable info instead of
17333         a few dereferences.
17334         (ipa_compute_jump_functions): Temporary variable info instead of
17335         a few dereferences.
17336         (ipa_method_modify_set): Removed.
17337         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
17338         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
17339         than craph_node as the first parameter.
17340         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
17341         (ipa_method_modify_init): Removed.
17342         (ipa_compute_jump_functions): Added a temp variable instead of
17343         repeatadly dereferencing the cgraph_edge.aux pointer
17344         (ipa_callsite_param_set_type): Removed.
17345         (ipa_compute_jump_functions): i renamed to index and moved to
17346         an inner block
17347         (ipa_callsite_param_set_info_type_formal): Removed.
17348         (ipa_callsite_param_set_info_type): Removed.
17349         (ipa_callsite_param_map_create): Removed.
17350         (ipa_callsite_tree): Removed.
17351         (ipa_callsite_caller): Removed.
17352         (ipa_pop_func_from_list): return_method removed to return_func
17353
17354         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
17355         prefixed all values with IPA_. Changed all users.
17356         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
17357         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
17358         and FORMAL_IPATYPE IPA_PASS_THROUGH.
17359         (union parameter_info): Renamed to jump_func_value.
17360         (union jump_func_value): Renamed value to constant
17361         (struct ipa_jump_func): Renamed info_type to value
17362         (struct ipa_node): Renamed to ipa_node_params
17363         (struct ipa_node_params): Renamed ipa_arg_num to param_count
17364         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
17365         (struct ipa_node_params): Renamed ipa_mod to modified_flags
17366         (struct ipa_edge): Renamed to ipa_edge_args
17367         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
17368         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
17369         (struct ipa_methodlist): Renamed to ipa_func_list
17370         (struct ipa_func_list): method_p renamed to node, next_method
17371         renamed to next
17372         (ipa_methodlist_p): Removed, switched all users to struct pointer
17373         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
17374
17375 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
17376
17377         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
17378         (rs6000_emit_epilogue): Use backchain to restore only when we
17379         have a large frame.  Make use of frame pointer to restore if we
17380         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
17381
17382 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
17383
17384         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
17385         Add mode to zero_extract.
17386         (sign bit tests peepholes): (Ditto.).
17387
17388 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
17389
17390         * config/i386/i386.c (ix86_builtins): Replace Prescott New
17391         Instructions in comments with SSE3.
17392         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
17393         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
17394         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
17395         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
17396         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
17397         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
17398         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
17399         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
17400         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
17401         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
17402         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
17403         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
17404         (bdesc_sse_args): Renamed to ...
17405         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
17406         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
17407         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
17408         IX86_BUILTIN_FABSQ.
17409         (bdesc_1arg): Moved to ...
17410         (bdesc_args): Here.
17411         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
17412         Instructions in comments with SSE3.
17413         (ix86_expand_sse_operands_builtin): Renamed to ...
17414         (ix86_expand_args_builtin): This.  Updated.
17415         (ix86_expand_unop1_builtin): Update comments.
17416         (ix86_expand_builtin): Updated.
17417
17418 2008-04-29  Richard Guenther  <rguenther@suse.de>
17419
17420         PR tree-optimization/36078
17421         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
17422         Update virtual SSA form after cleaning up the CFG.
17423
17424 2008-04-29  Richard Guenther  <rguenther@suse.de>
17425
17426         PR middle-end/15255
17427         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
17428
17429 2008-04-29  Richard Guenther  <rguenther@suse.de>
17430
17431         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
17432         (compute_may_aliases): Do not call finalize_ref_all_pointers.
17433         (compute_flow_insensitive_aliasing): Do not treat
17434         PTR_IS_REF_ALL pointers special.
17435         (get_smt_for): Likewise.
17436         (may_alias_p): Re-structure.
17437         (is_escape_site): A ref-all pointer conversion is not an escape site.
17438         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
17439         PTR_IS_REF_ALL pointers special.
17440         * tree-ssa-structalias.h (struct alias_info): Remove
17441         ref_all_symbol_mem_tag field.
17442         (PTR_IS_REF_ALL): Remove.
17443
17444 2008-04-29  Richard Guenther  <rguenther@suse.de>
17445
17446         PR middle-end/36077
17447         * fold-const.c (extract_muldiv_1): In combining division constants
17448         make sure to never overflow.
17449
17450 2008-04-29  Nick Clifton  <nickc@redhat.com>
17451
17452         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
17453
17454 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17455
17456         PR bootstrap/35169
17457         * optc-gen.awk: Work around HP-UX/IA awk bug.
17458
17459 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
17460
17461         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
17462         2008-04-25 commit.
17463
17464 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
17465
17466         PR target/36073
17467         * config/i386/i386.md
17468         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
17469         Change operand 1 predicate to nonimmediate_operand.
17470
17471 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
17472
17473         PR debug/36060
17474         * dwarf2out.c (struct die_struct): Mark as chain_circular through
17475         die_sub field.
17476         * gengtype.c (walk_type, write_func_for_structure): Handle
17477         chain_circular.
17478         * doc/gty.texi: Document chain_circular.
17479
17480 2008-04-28  Richard Guenther  <rguenther@suse.de>
17481
17482         PR tree-optimization/36066
17483         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
17484         SCEV and loop.
17485
17486 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
17487
17488         PR target/36064
17489         * config/i386/i386.md
17490         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
17491         Use match_scratch instead of match_operand for operands 3 and 4.
17492
17493 2008-04-27  Richard Guenther  <rguenther@suse.de>
17494
17495         PR tree-optimization/18754
17496         PR tree-optimization/34223
17497         * tree-pass.h (pass_complete_unrolli): Declare.
17498         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
17499         loop size before and after unconditionally of UL_NO_GROWTH in effect.
17500         Rewrite loop into loop closed SSA form if it is not already.
17501         (tree_unroll_loops_completely): Re-structure to iterate over
17502         innermost loops with intermediate CFG cleanups.
17503         Unroll outermost loops only if requested or the code does not grow
17504         doing so.
17505         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
17506         loops are available.
17507         (tree_vectorize): Instead do so here.
17508         (tree_complete_unroll): Also unroll outermost loops.
17509         (tree_complete_unroll_inner): New function.
17510         (gate_tree_complete_unroll_inner): Likewise.
17511         (pass_complete_unrolli): New pass.
17512         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
17513         uses outside of the loop.
17514         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
17515         form if it is available.
17516         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
17517         * passes.c (init_optimization_passes): Schedule complete inner
17518         loop unrolling pass before the first CCP pass after final inlining.
17519
17520 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
17521
17522         * targhooks.h (default_emutls_var_fields,
17523         default_emutls_var_init): Declare.
17524         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
17525         * target.h (struct gcc_target): Add struct emutls member.
17526         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
17527         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
17528         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
17529         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
17530         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
17531         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
17532         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
17533         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
17534         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
17535         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
17536         emit debug information.
17537         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
17538         * varasm.c: Include targhooks.h.
17539         (emutls_object_section, emutls_tmpl_section): New.
17540         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
17541         (EMUTLS_SEPARATOR): New.
17542         (prefix_name): New.
17543         (get_emutls_object_name): New.
17544         (default_emutls_var_fields): New, broken out of ...
17545         (get_emutls_object_type): ... here.  Adjust to use target hooks.
17546         (get_emutls_init_templ_addr): Adjust to use target hooks.
17547         (emutls_decl): Adjust to use target hooks.
17548         (emutls_finish): Likewise.
17549         (default_emutls_var_init): New, broken out of ...
17550         (assemble_variable): ... here.  Adjust to use target hooks.
17551         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
17552         SECCAT_EMUTLS_TMPL.
17553         * c-common.c (handle_section_attribute): Prevent overriding
17554         sections for emulated tls with special sections.
17555         * config/i386/i386.c (x86_64_elf_select_section): Add
17556         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
17557         (x86_64_elf_unique_section): Likewise.
17558         * config/vxworks.c: Include tree.h.
17559         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
17560         (vxworks_override_options): Set TLS scheme.
17561         * doc/tm.texi (Emulated TLS): New node.
17562
17563 2008-04-26  Simon Baldwin <simonb@google.com>
17564
17565         PR c/35652
17566         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
17567         with propagated string constants.
17568
17569 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
17570
17571         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
17572         constraint for operand 2 when operand 0 is memory operand.
17573         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
17574         operand 0 is memory operand.
17575         (fix_trunc<mode>_i387_with_temp): Ditto.
17576         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
17577         operand 2 when operand 1 is memory operand.
17578         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
17579         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
17580         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
17581         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
17582         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
17583         operands 2,3 and 4 when operand 1 is memory operand.
17584         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
17585         is memory operand.
17586         (fistdi2_floor_with_temp): Ditto.
17587         (fist<mode>2_floor_with_temp): Ditto.
17588         (fistdi2_ceil_with_temp): Ditto.
17589         (fist<mode>2_ceil_with_temp): Ditto.
17590         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
17591
17592 2008-04-26  David Daney  <ddaney@avtrex.com>
17593
17594         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
17595         unspec_volitile.
17596         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
17597         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
17598         UNSPEC_UPDATE_GOT_VERSION): Renumber.
17599         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
17600         (compare_and_swap_12): New insn.
17601         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
17602         * config/mips/mips.c (mips_force_binary): New function.
17603         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
17604         (mips_expand_compare_and_swap_12): New function.
17605         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
17606
17607 2008-04-25  Jan Hubicka  <jh@suse.cz>
17608
17609         PR testsuite/35843
17610         * cfgexpand.c (pass_expand): Turn into RTL pass.
17611         * passes.c (execute_one_pass): Do pass typechecking after execution.
17612         * tree-pass.h (pass_expand): Turn into RTL pass.
17613
17614         * function.h (struct rtl_data): Move here fields
17615         accesses_prior_frames, calls_eh_return, saves_all_registers,
17616         has_nonlocal_goto, has_asm_statement, is_thunk,
17617         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
17618         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
17619         arg_pointer_save_area_init from struct function; turn into bool.
17620         (struct function): Move
17621         calls_eh_return, saves_all_registers, has_nonlocal_goto,
17622         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
17623         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
17624         tail_call_emit, arg_pointer_save_area_init
17625         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
17626         (current_function_returns_struct, current_function_returns_pcc_struct,
17627         current_function_calls_setjmp, current_function_calls_alloca,
17628         current_function_accesses_prior_frames,
17629         current_function_calls_eh_return, current_function_is_thunk,
17630         current_function_stdarg, current_function_profile,
17631         current_function_limit_stack, current_function_uses_pic_offset_table,
17632         current_function_uses_const_pool, current_function_has_nonlocal_label,
17633         current_function_saves_all_registers,
17634         current_function_has_nonlocal_goto,
17635         current_function_has_asm_statement): Remove accesor macros.
17636         * ra-conflict.c (global_conflicts): Update.
17637         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
17638         (suitable_for_tail_call_opt_p): Update.
17639         * builtins.c (expand_builtin_return_addr): Update.
17640         (expand_builtin_setjmp_setup): Update.
17641         (expand_builtin_nonlocal_goto): Update.
17642         * final.c (final_start_function): Update.
17643         (profile_function): Update.
17644         (leaf_function_p): Update.
17645         (only_leaf_regs_used): Update.
17646         * df-scan.c (df_get_exit_block_use_set): Update.
17647         * dojump.c (clear_pending_stack_adjust): Update.
17648         * tree-stdarg.c (gate_optimize_stdarg): Update.
17649         * gimple-low.c (lower_function_body): Update.
17650         * global.c (compute_regsets): Update.
17651         (global_alloc): Update.
17652         * dwarf2out.c (dwarf2out_begin_prologue): Update.
17653         * expr.c (expand_assignment): Update.
17654         * dse.c (dse_step0): Update.
17655         (dse_step1): Update.
17656         * c-decl.c (store_parm_decls): Update.
17657         * local-alloc.c (combine_regs): Update.
17658         (find_free_reg): Update.
17659         * function.c (assign_parms_augmented_arg_list): Update.
17660         (assign_parm_find_data_types): Update.
17661         (assign_parms): Update.
17662         (allocate_struct_function): Update.
17663         (expand_function_start): Update.
17664         (expand_function_end): Update.
17665         (get_arg_pointer_save_area): Update.
17666         (thread_prologue_and_epilogue_insns): Update.
17667         (rest_of_match_asm_constraints): Update.
17668         * stor-layout.c (variable_size): Update.
17669         * gcse.c (gcse_main): Update.
17670         (bypass_jumps): Update.
17671         * gimplify.c (gimplify_function_tree): Update.
17672         * calls.c (emit_call_1): Update.
17673         (expand_call): Update.
17674         * bt-load.c (compute_defs_uses_and_gen): Update.
17675         * except.c (sjlj_assign_call_site_values): Update.
17676         (sjlj_emit_function_enter): Update.
17677         (can_throw_external): Update.
17678         (set_nothrow_function_flags): Update.
17679         (expand_builtin_unwind_init): Update.
17680         (expand_eh_return): Update.
17681         (convert_to_eh_region_ranges): Update.
17682         (output_function_exception_table): Update.
17683         * emit-rtl.c (gen_tmp_stack_mem): Update.
17684         * cfgexpand.c (expand_used_vars): Update.
17685         (tree_expand_cfg): Update.
17686         * cfgcleanup.c (rest_of_handle_jump): Update.
17687         * explow.c (allocate_dynamic_stack_space): Update.
17688         * varasm.c (assemble_start_function): Update.
17689         (force_const_mem): Update.
17690         (mark_constant_pool): Update.
17691         * tree-optimize.c (tree_rest_of_compilation): Update.
17692         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
17693         * tree-cfg.c (notice_special_calls): Update.
17694         (is_ctrl_altering_stmt): Update.
17695         (tree_can_make_abnormal_goto): Update.
17696         (tree_purge_dead_abnormal_call_edges): Update.
17697         * config/alpha/predicates.md: Update.
17698         * config/alpha/alpha.c (alpha_sa_mask): Update.
17699         (alpha_sa_size): Update.
17700         (alpha_does_function_need_gp): Update.
17701         (alpha_expand_prologue): Update.
17702         (alpha_start_function): Update.
17703         (alpha_output_function_end_prologue): Update.
17704         (alpha_expand_epilogue): Update.
17705         * config/frv/frv.c (frv_stack_info): Update.
17706         (frv_expand_epilogue): Update.
17707         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
17708         (s390_register_info): Update.
17709         (s390_frame_info): Update.
17710         (s390_init_frame_layout): Update.
17711         (s390_can_eliminate): Update.
17712         (save_gprs): Update.
17713         * config/spu/spu.c (spu_split_immediate): Update.
17714         (need_to_save_reg): Update.
17715         (spu_expand_prologue): Update.
17716         (spu_expand_epilogue): Update.
17717         * config/sparc/sparc.md: Update.
17718         * config/sparc/sparc.c (eligible_for_return_delay): Update.
17719         (sparc_tls_got): Update.
17720         (legitimize_pic_address): Update.
17721         (sparc_emit_call_insn): Update.
17722         (sparc_expand_prologue): Update.
17723         (output_return): Update.
17724         (print_operand): Update.
17725         (sparc_function_ok_for_sibcall): Update.
17726         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
17727         * config/m32r/m32r.md: Update.
17728         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
17729         (m32r_compute_frame_size): Update.
17730         (m32r_expand_prologue): Update.
17731         (m32r_expand_epilogue): Update.
17732         (m32r_legitimize_pic_address): Update.
17733         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
17734         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
17735         * config/i386/i386.c (ix86_frame_pointer_required): Update.
17736         (gen_push): Update.
17737         (ix86_save_reg): Update.
17738         (ix86_compute_frame_layout): Update.
17739         (ix86_expand_prologue): Update.
17740         (ix86_expand_epilogue): Update.
17741         * config/sh/sh.c (output_stack_adjust): Update.
17742         (calc_live_regs): Update.
17743         (sh5_schedule_saves): Update.
17744         (sh_expand_prologue): Update.
17745         (sh_expand_epilogue): Update.
17746         (sh_setup_incoming_varargs): Update.
17747         (sh_allocate_initial_value): Update.
17748         (sh_get_pr_initial_val): Update.
17749         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
17750         * config/sh/sh.md (label:): Update.
17751         * config/avr/avr.c (out_movhi_mr_r): Update.
17752         * config/crx/crx.h (enum): Update.
17753         * config/xtensa/xtensa.h (along): Update.
17754         * config/stormy16/stormy16.c Update.
17755         (xstormy16_compute_stack_layout): Update.
17756         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
17757         (fr30_expand_prologue): Update.
17758         * config/cris/cris.c (cris_conditional_register_usage): Update.
17759         (cris_reg_saved_in_regsave_area): Update.
17760         (cris_initial_frame_pointer_offset): Update.
17761         (cris_simple_epilogue): Update.
17762         (cris_expand_prologue): Update.
17763         (cris_expand_epilogue): Update.
17764         (cris_expand_pic_call_address): Update.
17765         (cris_asm_output_symbol_ref): Update.
17766         (cris_asm_output_label_ref): Update.
17767         * config/cris/cris.md Update.
17768         * config/iq2000/iq2000.c (compute_frame_size): Update.
17769         (iq2000_expand_epilogue): Update.
17770         * config/mt/mt.h (save_direction): Update.
17771         * config/mn10300/mn10300.c (mn10300_function_value): Update.
17772         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
17773         (ia64_secondary_reload_class): Update.
17774         * config/m68k/m68k.c (m68k_save_reg): Update.
17775         (m68k_expand_prologue): Update.
17776         (m68k_expand_epilogue): Update.
17777         (legitimize_pic_address): Update.
17778         * config/rs6000/rs6000.c (rs6000_got_register): Update.
17779         (first_reg_to_save): Update.
17780         (first_altivec_reg_to_save): Update.
17781         (compute_vrsave_mask): Update.
17782         (compute_save_world_info): Update.
17783         (rs6000_stack_info): Update.
17784         (spe_func_has_64bit_regs_p): Update.
17785         (rs6000_ra_ever_killed): Update.
17786         (rs6000_emit_eh_reg_restore): Update.
17787         (rs6000_emit_allocate_stack): Update.
17788         (rs6000_emit_prologue): Update.
17789         (rs6000_emit_epilogue): Update.
17790         (rs6000_output_function_epilogue): Update.
17791         (output_profile_hook): Update.
17792         (rs6000_elf_declare_function_name): Update.
17793         * config/rs6000/rs6000.h (rs6000_args): Update.
17794         * config/rs6000/rs6000.md: Update.
17795         * config/mcore/mcore.c (mcore_expand_prolog): Update.
17796         * config/arc/arc.c (arc_output_function_epilogue): Update.
17797         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
17798         * config/darwin.c (machopic_function_base_name): Update.
17799         * config/score/score3.c (score3_compute_frame_size): Update.
17800         (rpush): Update.
17801         (rpop): Update.
17802         (score3_epilogue): Update.
17803         * config/score/score7.c (score7_compute_frame_size): Update.
17804         (score7_prologue): Update.
17805         (score7_epilogue): Update.
17806         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
17807         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
17808         * config/arm/arm.c (use_return_insn): Update.
17809         (require_pic_register): Update.
17810         (arm_load_pic_register): Update.
17811         (arm_compute_save_reg0_reg12_mask): Update.
17812         (arm_compute_save_reg_mask): Update.
17813         (thumb1_compute_save_reg_mask): Update.
17814         (output_return_instruction): Update.
17815         (arm_output_function_prologue): Update.
17816         (arm_output_epilogue): Update.
17817         (arm_get_frame_offsets): Update.
17818         (arm_expand_prologue): Update.
17819         (thumb_pushpop): Update.
17820         (thumb_exit): Update.
17821         (thumb1_expand_prologue): Update.
17822         (thumb1_expand_epilogue): Update.
17823         (arm_unwind_emit): Update.
17824         (arm_output_fn_unwind): Update.
17825         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
17826         * config/arm/arm.md: Update.
17827         * config/pa/pa.md: Update.
17828         * config/pa/pa.c (legitimize_pic_address): Update.
17829         (compute_frame_size): Update.
17830         (hppa_expand_prologue): Update.
17831         (hppa_expand_epilogue): Update.
17832         (borx_reg_operand): Update.
17833         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
17834         (HARD_REGNO_RENAME_OK): Update.
17835         * config/mips/mips.c (mips_global_pointer): Update.
17836         (mips_save_reg_p): Update.
17837         (mips_compute_frame_info): Update.
17838         (mips_frame_pointer_required): Update.
17839         (mips_expand_prologue): Update.
17840         (mips_expand_epilogue): Update.
17841         (mips_can_use_return_insn): Update.
17842         (mips_reorg_process_insns): Update.
17843         * config/v850/v850.c (compute_register_save_size): Update.
17844         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
17845         * config/mmix/mmix.c (along): Update.
17846         (mmix_expand_epilogue): Update.
17847         * config/bfin/bfin.c (legitimize_pic_address): Update.
17848         (must_save_p): Update.
17849         (stack_frame_needed_p): Update.
17850         (add_to_reg): Update.
17851         (bfin_expand_prologue): Update.
17852         * stmt.c (expand_asm_operands): Update.
17853         * reload1.c (reload): Update.
17854         (init_elim_table): Update.
17855
17856 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
17857
17858         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
17859
17860 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
17861
17862         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
17863         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
17864         (mov<mode>): Removed.
17865         (*movv4sf_internal): Likewise.
17866         (*movv2df_internal): Likewise.
17867
17868 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
17869
17870         * config.gcc (crx-*-elf): Remove deprecation.
17871
17872 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
17873
17874         * config/i386/cygming-crtend.c (register_frame_ctor): Register
17875         __gcc_deregister_frame with atexit.
17876         (deregister_frame_dtor): Remove.
17877
17878 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
17879             Nathan Sidwell  <nathan@codesourcery.com>
17880
17881         * config/rs6000/rs6000.opt (mspe): Remove Var property.
17882         (misel): Likewise.
17883         * config/rs6000/rs6000.h (rs6000_spe): Declare.
17884         (rs6000_isel): Likewise.
17885         * config/rs6000/rs6000.c (rs6000_spe): New variable.
17886         (rs6000_isel): New variable.
17887         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
17888
17889 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
17890
17891         PR c++/35758
17892         * c-common.c (handle_vector_size_attribute): Call
17893         lang_hooks.types.reconstruct_complex_type instead of
17894         reconstruct_complex_type.
17895         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
17896         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
17897         * langhooks.h (struct lang_hooks_for_types): Add
17898         reconstruct_complex_type hook.
17899         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
17900         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
17901
17902 2008-04-24  Richard Guenther  <rguenther@suse.de>
17903
17904         * c-common.h (check_builtin_function_arguments): Declare.
17905         * c-common.c (validate_nargs): New function.
17906         (check_builtin_function_arguments): Likewise.
17907         * c-typeck.c (build_function_call): Call
17908         check_builtin_function_arguments.
17909         * builtins.c (fold_builtin_classify): Remove error reporting code.
17910         (fold_builtin_unordered_cmp): Likewise.
17911         (fold_builtin_1): Likewise.
17912         (fold_builtin_n): Likewise.
17913
17914 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
17915
17916         PR tree-optimization/36008
17917         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
17918         the original op1, rather than delta by step.
17919
17920 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
17921             Sebastian Pop  <sebastian.pop@amd.com>
17922
17923         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
17924         eliminate_local_variables_stmt, eliminate_local_variables,
17925         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
17926         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
17927         of code delimited by two edges in the CFG.
17928         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
17929         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
17930         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate
17931         the case of parallelisation of reductions.
17932         (expr_invariant_in_region_p): New.
17933
17934         * tree-flow.h (gather_blocks_in_sese_region): Declared.
17935         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
17936
17937 2008-04-24  Ira Rosen  <irar@il.ibm.com>
17938             Richard Guenther  <rguenther@suse.de>
17939
17940         PR tree-optimization/36034
17941         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
17942         incapable of dealing with loads with gaps.
17943
17944 2008-04-24  Rafael Espíndola  <espindola@google.com>
17945
17946         * tree-flow.h (vrp_evaluate_conditional): Change signature.
17947         * tree-ssa-propagate.c (fold_predicate_in): Update call to
17948         vrp_evaluate_conditional.
17949         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
17950         (vrp_evaluate_conditional): Split the cond argument.
17951         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
17952         (simplify_stmt_for_jump_threading): Update call to
17953         vrp_evaluate_conditional.
17954
17955 2008-04-24  Ira Rosen  <irar@il.ibm.com>
17956
17957         PR tree-optimization/35982
17958         * tree-vect-analyze.c (vect_check_interleaving): Check that the
17959         interleaved data-refs are of the same type.
17960
17961 2008-04-24  Danny Smith  <dannysmith@users.net>
17962
17963         * c-format.c (check_format_info_main): Use strncmp rather than a
17964         magic prefix to handle multichar length specs.
17965         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
17966         Don't prefix "I64" and "I32" with '\0'.
17967
17968 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
17969
17970         PR target/36015
17971         * config/i386/i386.c (init_cumulative_args): Don't pass anything
17972         in registers for -m32 only if stdarg_p (fntype).
17973
17974 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
17975
17976         PR rtl-optimization/36006
17977         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
17978         temp to op0 in order to avoid invalid rtx sharing.
17979
17980 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
17981
17982         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
17983         check TREE_INVARIANT.
17984         * tree-gimple.c (is_gimple_address): New.
17985         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
17986         * tree-gimple.h (is_gimple_address): New.
17987         * tree.h (decl_address_invariant_p): New.
17988         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
17989         (build_string): Likewise.
17990         (decl_address_invariant_p): New, from is_gimple_invariant_address.
17991         (tree_invariant_p_1): Likewise.
17992         (save_expr): Use it.
17993         (tree_invariant_p): New.
17994         (skip_simple_arithmetic): Use it.
17995         (stabilize_reference_1): Use it.
17996         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
17997         simplify.
17998         (build1_stat): Drop code to compute TREE_INVARIANT.
17999         (build2_stat): Drop code to compute TREE_INVARIANT.
18000         (build3_stat): Drop code to compute TREE_INVARIANT.
18001         (build4_stat): Drop code to compute TREE_INVARIANT.
18002         (build5_stat): Drop code to compute TREE_INVARIANT.
18003         (build7_stat): Drop code to compute TREE_INVARIANT.
18004         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
18005         * tree.h (struct tree_base): Remove invariant_flag.
18006         (TREE_INVARIANT): Remove.
18007         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
18008         (fold_builtin_expect): Check TREE_CONSTANT.
18009         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
18010         * c-tree.h (c_expr_to_decl): Drop third parameter.
18011         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
18012         (build_c_cast): Don't set TREE_INVARIANT.
18013         (pop_init_level): Don't set TREE_INVARIANT.
18014         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
18015         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
18016         TREE_CONSTANT.
18017         (gimplify_init_constructor): Don't set TREE_INVARIANT.
18018         (gimplify_addr_expr): Adjust comment.
18019         * tree-mudflap.c (mf_build_string):
18020         * print-tree.c (print_node): Don't print TREE_INVARIANT.
18021         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
18022         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
18023         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
18024         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
18025         * langhooks.h (struct lang_hooks): Drop third parameter from
18026         expr_to_decl.
18027
18028 2008-04-23  Richard Guenther  <rguenther@suse.de>
18029
18030         PR tree-optimization/27799
18031         PR tree-optimization/32921
18032         PR tree-optimization/32624
18033         * tree-ssa-structalias.c (merge_smts_into): Only merge the
18034         SMTs aliases and the tag itself into the solution.
18035         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
18036         merge the points-to solution back into the SMT aliases.
18037         (may_alias_p): Use alias_set_subset_of instead of
18038         aliases_conflict_p.  A pointer which points to
18039         memory with alias set zero may access any variable.
18040
18041 2008-04-23  Richard Guenther  <rguenther@suse.de>
18042
18043         * alias.c (alias_set_subset_of): Correctly handle asking
18044         if zero is a subset of an alias set with zero child.
18045         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
18046         (compute_flow_insensitive_aliasing): Correctly walk all
18047         pointers.  Do not unnecessarily union sets.
18048
18049 2008-04-23  Richard Guenther  <rguenther@suse.de>
18050
18051         PR middle-end/36021
18052         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
18053
18054 2008-04-22  Tomas Bily  <tbily@suse.cz>
18055
18056         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
18057         unreachable case.
18058         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
18059         NON_LVALUE_EXPR.
18060         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
18061         * tree-ssa-structalias.c (get_constraint_for): Likewise.
18062         * tree-inline.c (estimate_num_insns_1): Likewise.
18063         * varasm.c (const_hash_1, compare_constant, copy_constant)
18064         (compute_reloc_for_constant, output_addressed_constants): Likewise.
18065         * emit-rtl.c (component_ref_for_mem_expr)
18066         (set_mem_attributes_minus_bitpos): Likewise.
18067         * expr.c (highest_pow2_factor, expand_expr_real_1, )
18068         (is_aligning_offset): Likewise.
18069         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
18070         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
18071         * dojump.c (do_jump): Likewise.
18072         * builtins.c (get_pointer_alignment, get_memory_rtx)
18073         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
18074         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
18075
18076 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
18077
18078         PR rtl-optimization/36017
18079         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
18080         expanding the library call.
18081
18082 2008-04-22  Ian Lance Taylor  <iant@google.com>
18083
18084         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
18085         than size_in_bytes.
18086
18087 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
18088
18089         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
18090         of LR/CTR moves for Power6.
18091
18092 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
18093
18094         PR middle-end/36003
18095         * passes.c (init_optimization_passes): Remove
18096         pass_fast_rtl_byte_dce.
18097
18098 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
18099
18100         PR target/29096
18101         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
18102         builtin functions to generate faster code.
18103         (_mm_cvtpu16_ps): Ditto.
18104         (_mm_cvtpi32x2_ps): Ditto.
18105
18106 2008-04-22  Nick Clifton  <nickc@redhat.com>
18107
18108         * common.opt (ftree-loop-distribution): Add Optimization
18109         attribute.
18110
18111         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
18112         (frv_expand_builtin_va_start): Likewise.
18113
18114         * config/arm/arm.c (thumb_find_work_register): Fix location of
18115         argument register count.
18116
18117 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
18118
18119         Support scheduling for ColdFire V1 and V3 microarchitecture.
18120         Improve scheduling of multiplication instructions.
18121
18122         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
18123         (mac): New instruction attribute.
18124         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
18125         (m68k_sched_mac): New variable.
18126         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
18127         Handle cfv1 and cfv3.
18128         (max_insn_size): New static variable.
18129         (struct _sched_ib): New type.
18130         (sched_ib): New static variable.
18131         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
18132         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
18133         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
18134         Update.
18135         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
18136         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
18137         new variables.  Update.
18138         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
18139         Add modeling of cfv3 instruction buffer.  Update.
18140         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
18141         * config/m68k/m68k.h (TUNE_CFV3): New macro.
18142         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
18143         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
18144         a particular reservation applies to.
18145         (type2): Reorganize attribute values.  Rename alu to alu_reg,
18146         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
18147         to mul_l and mul_w.
18148         (cf_ib_*): Simplify description of instruction buffer.
18149         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
18150         (cf_mem): Split into cf_mem1 and cf_mem2.
18151         (cf_v2_move_??): Rename to cfv12_alu_??.
18152         (cf_v2_move_l_??): Rename to cfv12_omove_??.
18153         (cf_v2_mul_??): Remove reservations.
18154         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
18155         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
18156         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
18157         appropriate place.
18158         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
18159         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
18160         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
18161         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
18162         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
18163         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
18164         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
18165         expansions of the above reservations for instructions of sizes
18166         1, 2 and 3 words.
18167
18168 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
18169
18170         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
18171
18172 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
18173
18174         * coverage.c: Include tree-pass.h.
18175         (coverage_counter_alloc): Print da_file_name to the dump file.
18176
18177 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
18178
18179         * sbitmap.c (sbitmap_range_empty_p): New function.
18180         * sbitmap.h (sbitmap_range_empty_p): New function.
18181         * bitmap.h: Now includes obstack.h.
18182
18183 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
18184             Kenneth Zadeck  <zadeck@naturalbridge.com>
18185
18186         * dbgcnt.def (ra_byte_scan): Added.
18187         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
18188         when the last hit happens for a counter.
18189         * timevar.def (TV_DF_BYTE_LR): New variable.
18190         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
18191         * passes.c (pass_fast_rtl_byte_dce): New pass.
18192         * fwprop.c (update_df): Added mode to call df_ref_create.
18193         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
18194         DF_REF_EXTRACT_OFFSET.
18195         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
18196         DF_BYTE_LR_OUT, df_byte_lr): New macro.
18197         (df_mm): New enum.
18198         (df_ref_extract): Added mode field.
18199         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
18200         DF_REF_EXTRACT_OFFSET.
18201         (DF_REF_EXTRACT_MODE): New macro.
18202         (df_byte_lr_bb_info): New structure.
18203         (df_print_byte_regset, df_compute_accessed_bytes,
18204         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
18205         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
18206         df_byte_lr_simulate_uses,
18207         df_byte_lr_simulate_artificial_refs_at_top,
18208         df_byte_lr_simulate_artificial_refs_at_end,
18209         df_compute_accessed_bytes): New function.
18210         (df_ref_create): Add parameter.
18211         (df_byte_lr_get_bb_info): New inline function.
18212         * df-scan.c (df_ref_record, df_uses_record,
18213         df_ref_create_structure): Added mode parameter.
18214         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
18215         df_defs_record, df_uses_record, df_get_conditional_uses,
18216         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
18217         df_entry_block_defs_collect, df_exit_block_uses_collect):
18218         Added mode parameter to calls to df_ref_record, df_uses_record,
18219         df_ref_create_structure.
18220         (df_ref_equal_p, df_ref_compare): Added test for modes.
18221         (df_ref_create_structure): Added code to set mode.  Renamed
18222         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
18223         DF_REF_EXTRACT_OFFSET.
18224         * df-core.c (df_print_byte_regset): New function.
18225         * df-byte-scan.c: New file.
18226         * df-problems.c (df_rd_transfer_function): Removed unnecessary
18227         calls to BITMAP_FREE.
18228         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
18229         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
18230         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
18231         df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
18232         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
18233         df_byte_lr_local_compute, df_byte_lr_init,
18234         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
18235         df_byte_lr_transfer_function, df_byte_lr_free,
18236         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
18237         df_byte_lr_add_problem, df_byte_lr_simulate_defs,
18238         df_byte_lr_simulate_uses,
18239         df_byte_lr_simulate_artificial_refs_at_top,
18240         df_byte_lr_simulate_artificial_refs_at_end): New function.
18241         * dce.c (byte_dce_process_block): New function.
18242         (dce_process_block): au is now passed in rather than computed
18243         locally.  Changed loops that look at artificial defs to not look
18244         for conditional or partial ones, because there never are any.
18245         (fast_dce): Now is able to drive byte_dce_process_block or
18246         dce_process_block depending on the kind of dce being done.
18247         (rest_of_handle_fast_dce): Add parameter to fast_dce.
18248         (rest_of_handle_fast_byte_dce): New function.
18249         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
18250         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
18251
18252 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
18253
18254         PR fortran/35019
18255         * gcc.h: Added fortran options that take arguments to
18256         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
18257         macros.
18258
18259 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
18260
18261         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
18262         scalarization if on the LHS and not a full access.
18263
18264 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18265
18266         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
18267
18268 2008-04-18  Rafael Espíndola  <espindola@google.com>
18269
18270         * tree-vrp.c (find_case_label_index): Fix the binary search.
18271         (find_case_label_range): New.
18272         (vrp_visit_switch_stmt): Use find_case_label_range.
18273         (simplify_switch_using_ranges): Use find_case_label_range.
18274
18275 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
18276
18277         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
18278         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
18279
18280 2008-04-18  Tom Tromey  <tromey@redhat.com>
18281
18282         PR libcpp/15500:
18283         * doc/cpp.texi (Implementation-defined behavior): Mention
18284         -finput-charset.
18285
18286 2008-04-18  Ian Lance Taylor  <iant@google.com>
18287
18288         * fold-const.c (pointer_may_wrap_p): New static function.
18289         (fold_comparison): Add another test for pointer overflow.  Use
18290         pointer_may_wrap_p to disable some false positives.
18291
18292 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
18293
18294         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
18295         (fname_as_string): Match updated cpp_interpret_string prototype.
18296         (fix_string_type): Support char16_t* and char32_t*.
18297         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
18298         derivative) nodes.  Register as builtin if C++0x.
18299         (c_parse_error): Support CPP_CHAR{16,32}.
18300         * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
18301         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
18302         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
18303         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
18304         CTI_CHAR32_ARRAY_TYPE>: New elements.
18305         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
18306         char32_type_node, signed_char32_type_node, char16_array_type_node,
18307         char32_array_type_node): New defines.
18308         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
18309         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
18310         (lex_string): Support CPP_STRING{16,32}, match updated
18311         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
18312         (lex_charconst): Support CPP_CHAR{16,32}.
18313         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
18314         and CPP_STRING{16,32}.
18315
18316 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
18317
18318         PR bootstrap/35457
18319         * aclocal.m4: Regenerate.
18320         * configure: Regenerate.
18321
18322 2008-04-18  Jan Hubicka  <jh@suse.cz>
18323
18324         * except.c (dw2_size_of_call_site_table,
18325         sjlj_size_of_call_site_table): Use vector API for call_site_record.
18326
18327         * cgraphbuild.c (build_cgraph_edges): Update.
18328         * tree-pass.h: Update comment.
18329         * final.c (leaf_function_p): Update.
18330         (leaf_renumber_regs): Update.
18331         (rest_of_clean_state): Update.
18332         * omp-low.c (expand_omp_parallel): Update.
18333         * ipa-reference.c (analyze_function): Update.
18334         * reorg.c (find_end_label): Update.
18335         (optimize_skip): Update.
18336         (fill_simple_delay_slots): Update.
18337         (fill_simple_delay_slots): Update.
18338         (make_return_insns): Update.
18339         (dbr_schedule): Update.
18340         * gimple-low.c (record_vars_into): Update.
18341         * cfgbuild.c (make_edges): Update.
18342         * function.c (assign_stack_local): Update.
18343         (assign_parm_adjust_stack_rtl): Update.
18344         (locate_and_pad_parm): Update.
18345         (allocate_struct_function): Do not initialize stack_alignment_needed
18346         and preferred_stack_boundary here.
18347         (stack_protect_prologue): Update.
18348         (stack_protect_epilogue): Update.
18349         (expand_function_start): Initialize stack_alignment_needed,
18350         preferred_stack_boundary and max_jumptable_ents.
18351         (expand_function_end): Update.
18352         (free_after_compilation): Do not NULLify epilogue_delay_list.
18353         * function.h (struct rtl_data): Add stack_protect_guard,
18354         stack_alignment_needed,
18355         preferred_stack_boundary, epilogue_delay_list.
18356         (struct function): Remove value_histograms, stack_alignment_needed,
18357         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
18358         last_label_uid,
18359         unexpanded_var_list, stack_protect_guard.
18360         (current_function_epilogue_delay_list): Remove.
18361         * ipa-type-escape.c (analyze_function): Update.
18362         * gimplify.c (pop_gimplify_context): Update comment.
18363         * calls.c (expand_call): Update.
18364         (emit_library_call_value_1): Update.
18365         * except.c (set_nothrow_function_flags): Update.
18366         * cfgexpand.c (get_decl_align_unit): Update.
18367         (create_stack_guard): Update.
18368         (estimated_stack_frame_size): Update.
18369         (expand_used_vars): Update.
18370         (tree_expand_cfg): Free histogram earliers, init expansion variables.
18371         * explow.c (allocate_dynamic_stack_space): Update.
18372         * tree-ssa-live.c (remove_unused_locals): Update.
18373         * varasm.c (mark_constant_pool): Update.
18374         * tree-inline.c (remap_decls): Update.
18375         (initialize_cfun): Update.
18376         (declare_return_variable): Update.
18377         (inline_forbidden_p): Update.
18378         (expand_call_inline): Update.
18379         (declare_inline_vars): Update.
18380         (tree_function_versioning): Update.
18381         * tree-flow.h (value_histograms): New.
18382         (VALUE_HISTOGRAMS): New macro.
18383         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
18384         last_label_uid.
18385         * tree-cfg.c (set_bb_for_stmt): Update.
18386         (replace_by_duplicate_decl): Update.
18387         (move_block_to_fn): Update.
18388         (new_label_mapper): Update.
18389         (dump_function_to_file): Update.
18390         * ipa-struct-reorg.c (build_data_structure): Update.
18391         * cfgrtl.c (print_rtl_with_bb): Update.
18392         * reload1.c (reload): Update.
18393         (reload): Update.
18394         * config/i386/i386.c (setup_incoming_varargs_64,
18395         ix86_compute_frame_layout): Update.
18396         * config/arc/arc.c (arc_output_function_epilogue): Update.
18397
18398 2008-04-18  Marius Strobl <marius@FreeBSD.org>
18399
18400         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
18401         for FreeBSD as well.
18402         * gthr-posix95.h: Likewise.
18403
18404 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
18405
18406         PR rtl-optimization/35838
18407         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
18408         out the byte offset of the first subreg.
18409
18410 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
18411
18412         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
18413         to split_ti instead of three separate calls with single member arrays.
18414         (subti3 splitter): Ditto.
18415         (adddi3 splitter): Ditto with split_di.
18416         (subdi3 splitter): Ditto.
18417         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
18418         two separate calls with single member arrays.  Swap match_dup
18419         operands 1 and 2 to better fit into the array.
18420         (negdi2 splitter): Ditto with split_di.
18421         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
18422         two separate calls with single member arrays.  Swap match_dup operands
18423         6 and 7 to better fit into the array.
18424
18425 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
18426
18427         * config/i386/i386.c (sse_builtin_type): New.
18428         (bdesc_sse_args): Likewise.
18429         (bdesc_sse_3arg): Removed.
18430         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
18431         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
18432         IX86_BUILTIN_ROUNDPS.
18433         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
18434         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
18435         IX86_BUILTIN_ROUNDPS.
18436         (ix86_expand_sse_4_operands_builtin): Removed.
18437         (ix86_expand_sse_operands_builtin): New.
18438         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
18439         and CODE_FOR_sse4_1_roundps.
18440         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
18441         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
18442
18443 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
18444
18445         PR target/35907
18446         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
18447         regs before frame pop when needed.  If use_backchain_to_restore_sp
18448         then load backchain into a temp reg to restore vr and vrsave.  Add
18449         code to restore vr after frame pop if possible.
18450
18451 2008-04-17  Richard Guenther  <rguenther@suse.de>
18452
18453         * tree-vn.c (expressions_equal_p): Do not check type
18454         equality or compatibility before calling operand_equal_p.
18455         * fold-const.c (operand_equal_p): Check equivalence of
18456         integer constants before bailing out due to signedness or
18457         precision differences.
18458         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
18459         spurious differences in type qualification.  Ignore types
18460         for COMPONENT_REFs at all.
18461
18462 2008-04-17  Christian Bruel  <christian.bruel@st.com>
18463
18464         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
18465         msw_skip comparison.
18466
18467 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
18468
18469         PR c/35739
18470         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
18471         reg type.
18472
18473         PR tree-optimization/35899
18474         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
18475         rather than TREE_OPERAND.
18476
18477 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
18478
18479         PR target/35944
18480         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
18481         temporary registers.  Change operand predicate to general_operand.
18482         (remainderxf3): Ditto.
18483
18484 2008-04-16  Richard Guenther  <rguenther@suse.de>
18485
18486         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
18487         * tree-affine.c (aff_combination_expand): Look through some
18488         conversions.
18489
18490 2008-04-15  Doug Kwan  <dougkwan@google.com>
18491
18492         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
18493         for hex printing.
18494         * tree-pretty-print.c (dump_generic_node): Ditto.
18495         * final.c (output_addr_const): Ditto.
18496         * dwarf2out.c (output_cfi): Ditto.
18497         * c-pretty-print.c (pp_c_integer_constant): Ditto.
18498         * print-rtl.c (print_rtx): Ditto.
18499         * print-tree.c (print_node_brief, print_node): Ditto.
18500         * c-common.c (match_case_to_enum_1): Ditto.
18501         * sched-vis.c (print_value): Ditto.
18502         * config/i386/i386.c (print_operand): Cast to long unsigned int
18503         for hex printing.
18504
18505 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
18506         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
18507         MS Windows VirtualProtect function.
18508
18509 2008-04-15  Jan Hubicka  <jh@suse.cz>
18510
18511         * gengtype.c (write_root): Param_is argument is OK.
18512         * expr.c (expand_expr_real_1): Update call of get_exception_*.
18513         * function.h: Include varray.h
18514         (rtl_eh): New stucture based on except.c one.
18515         (call_site_record): New forward declaration and vector type.
18516         * calls.c (emit_call_1): Do not call
18517         note_current_region_may_contain_throw.
18518         * except.c (eh_status): Remove cur_region, try_region since they are
18519         unused.
18520         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
18521         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
18522         sjlj_fc, sjlj_exit_after to rth_eh in function.h.
18523         Remove call_site_data_used, call_site_data_size.
18524         Turn call_site_record into vector in function.h.
18525         (note_current_region_may_contain_throw): Remove.
18526         (get_exception_pointer, get_exception_filter): Do not take struct
18527         function argument; update.
18528         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
18529         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
18530         build_post_landing_pads, dw2_build_landing_pads,
18531         sjlj_assign_call_site_values, sjlj_mark_call_sites,
18532         sjlj_emit_function_enter, sjlj_emit_function_enter,
18533         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
18534         sjlj_build_landing_pads, finish_eh_generation,
18535         remove_exception_handler_label, remove_eh_handler,
18536         maybe_remove_eh_handler, add_reachable_handler,
18537         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
18538         add_action_record, collect_one_action_chain, add_call_site,
18539         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
18540         sjlj_output_call_site_table, output_function_exception_table,
18541         * except.h (note_current_region_may_contain_throw): Remove
18542         (get_exception_pointer, get_exception_filter): Do not take struct
18543         function argument.
18544         * Makefile.in (GTFILES): Put varargs before struct function.
18545
18546 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
18547
18548         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
18549         punt for STRING_CST.
18550         (get_constraint_for): Deal with STRING_CST here instead.
18551
18552 2008-04-15  Richard Guenther  <rguenther@suse.de>
18553
18554         * tree-ssa-propagate.c (substitute_and_fold): Substitute
18555         statements in a basic-block with a backward walk.  Do not
18556         substitute into dead statements but instead remove those.
18557
18558 2008-04-15  Richard Guenther  <rguenther@suse.de>
18559
18560         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
18561         to zero, thus disable creation of SFTs.
18562
18563 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
18564
18565         * tree-predcom.c (suitable_reference_p): Return false if the
18566         reference can throw.
18567
18568 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
18569
18570         PR c/35751
18571         * c-decl.c (finish_decl): If extern or static var has variable
18572         size, set TREE_TYPE (decl) to error_mark_node.
18573
18574 2008-04-15  Rafael Espíndola  <espindola@google.com>
18575
18576         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
18577         variable arg1.
18578
18579 2008-04-15  Richard Guenther  <rguenther@suse.de>
18580
18581         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
18582         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
18583         (visit_reference_op_load): Do walk vuse-vdef chains on
18584         vn_reference_lookup.
18585         (visit_reference_op_store): But do not here.
18586         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
18587         vn_reference_lookup.
18588         (vn_lookup_with_vuses): But do so here.
18589
18590 2008-04-14  Ian Lance Taylor  <iant@google.com>
18591
18592         * fold-const.c (fold_overflow_warning): Remove assertion.
18593
18594 2008-04-15  Ben Elliston  <bje@au.ibm.com>
18595
18596         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
18597         temp1 local variables.
18598
18599 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
18600
18601         PR target/35661
18602         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
18603         ".text.unlikely" section as executable.
18604
18605 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
18606
18607         * config/ia64/ia64.c (rtx_needs_barrier): Handle
18608         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
18609         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
18610         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
18611         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
18612         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
18613         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
18614
18615 2008-04-14  Ian Lance Taylor  <iant@google.com>
18616
18617         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
18618         * fold-const.c (fold_comparison): If appropriate, test
18619         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
18620         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
18621         reassociating a pointer type.
18622         * doc/invoke.texi (Optimize Options): Document that
18623         -fstrict-overflow applies to pointer wraparound.
18624
18625 2008-04-13  Jan Hubicka  <jh@suse.cz>
18626
18627         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
18628
18629 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
18630
18631         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
18632         we are going to "save the world".
18633
18634 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
18635
18636         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
18637         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
18638         operand 0 constraint, not "=".
18639
18640 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
18641
18642         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
18643
18644 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
18645
18646         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
18647         of size of positions_needed * CHAR_BIT.
18648
18649 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
18650
18651         PR middle-end/35897
18652         * dse.c (store_info): Change positions_needed to unsigned
18653         HOST_WIDE_INT.
18654         (lowpart_bitmask): New.
18655         (record_store): Cast to unsigned HOST_WIDE_INT for
18656         positions_needed.  Assert width <= size of positions_needed *
18657         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
18658         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
18659         lowpart_bitmask to set mask.
18660
18661 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
18662
18663         * config/bfin/constraints.md: New file.
18664         * config/bfin/bfin.md: Include it.
18665         (adddi3): Use satisfies_constraint functions instead of the old macros.
18666         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
18667         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
18668         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
18669         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
18670         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
18671         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
18672         EXTRA_CONSTRAINT): Delete.
18673         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
18674         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
18675         of the old macros.
18676         * config/bfin/bfin.c: Include "tm-constrs.h".
18677         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
18678         Use satisfies_constraint functions instead of the old macros.
18679         * doc/md.texi (Blackfin Constraints): Update file name reference.
18680
18681 2008-04-11  Richard Guenther  <rguenther@suse.de>
18682
18683         PR tree-optimization/35869
18684         * tree-vrp.c (execute_vrp): Move switch statement update after
18685         jump threading.  Schedule another cfg cleanup run.
18686
18687 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
18688
18689         PR c/35744
18690         * attribs.c (decl_attributes): Return early on errorneous node.
18691
18692 2008-04-10  Oleg Ryjkov  <olegr@google.com>
18693
18694         * tree.h (struct tree_base): Added a new flag default_def_flag.
18695         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
18696
18697 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
18698
18699         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
18700
18701 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18702
18703         PR target/35768
18704         * pa.md: Define mode iterator P.  Define mode attribute dwc.
18705         (dcacheflush): Update pattern to use iterator P and attribute dwc.
18706         (icacheflush): Likewise.
18707         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
18708         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
18709
18710 2008-04-11  Ben Elliston  <bje@au.ibm.com>
18711
18712         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
18713
18714 2008-04-10  Rafael Espíndola  <espindola@google.com>
18715
18716         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
18717         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
18718         (extract_range_from_expr): The same.
18719
18720 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
18721
18722         * config/mips/mips.md (GPR2): New mode iterator.
18723         (seq): Add comment.
18724         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
18725         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
18726         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
18727         Rewrite these to take two modes, the mode of comparison and the
18728         mode of the destination.
18729         * config/mips/mips.c (mips_expand_scc): Instead of having
18730         paradoxical subreg as destination, expand "narrowing" scc if mode
18731         of comparison is SI and target is requested in DI mode.
18732         (mips_emit_int_order_test): Update comment.  Make mode of
18733         comparison match CMP0 rather than TARGET.  When creating inverse
18734         target use mode of TARGET.
18735
18736 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
18737
18738         * gcov-dump.c (tag_summary): Only print summaries for the first
18739         GCOV_COUNTERS_SUMMABLE counters.
18740
18741 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
18742
18743         * config/i386/i386.md (absneg): New code iterator.
18744         (absnegprefix): New code attribute.
18745         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
18746         patterns using absneg code iterator.
18747         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
18748         using absneg code iterator.
18749         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
18750         *neg<mode>2 patterns using absneg code iterator.
18751         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
18752         *negextendsfdf2 patterns using absneg code iterator.
18753         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
18754         *negextendsfxf2 patterns using absneg code iterator.
18755         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
18756         *negextendsfdf2 patterns using absneg code iterator.
18757         * config/i386/sse.md (<code><mode>2): Macroize expander from
18758         abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
18759
18760 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
18761
18762         * config/s390/s390.h: Remove the remains of the recent search
18763         & replace action of current_function_outgoing_args_size.
18764
18765 2008-04-10  Ira Rosen  <irar@il.ibm.com>
18766
18767         PR tree-optimization/35821
18768         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
18769         NEW_STMT_LIST is not NULL.
18770
18771 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
18772
18773         PR libstdc++/35597
18774         * toplev.c (process_options): Remove -ffunction-sections debugging
18775         warning.
18776
18777 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
18778
18779         PR middle-end/PR28690
18780         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
18781         than gen_rtx_fmt_ee to perform more canonicalizations.
18782
18783 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18784
18785         PR driver/35665
18786         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
18787
18788 2008-04-09  Richard Guenther  <rguenther@suse.de>
18789
18790         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
18791         (dump_function_to_file): Dump function arguments with types.
18792
18793 2008-04-08  Richard Guenther  <rguenther@suse.de>
18794
18795         * fold-const.c (fold_widened_comparison): Do not allow
18796         sign-changes that change the result.
18797
18798 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
18799
18800         PR target/35839
18801         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
18802         kinds of indirect references.
18803
18804 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
18805
18806         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
18807         GNU Fortran language string.
18808
18809 2008-04-08  Rafael Espíndola  <espindola@google.com>
18810
18811         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
18812         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
18813         * tree.h (tree_call_nonnegative_warnv_p): New.
18814
18815 2008-04-08  Jan Hubicka  <jh@suse.cz>
18816
18817         * function.c (free_after_compilation): Clear out regno_reg_rtx
18818         pointer.
18819
18820 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
18821
18822         Revert
18823         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
18824
18825         PR middle-end/PR28690
18826         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
18827         same precedence as REG_POINTER and MEM_POINTER operands.
18828
18829 2008-04-08  Richard Guenther  <rguenther@suse.de>
18830
18831         PR middle-end/35834
18832         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
18833         for adding index to base.
18834
18835 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
18836
18837         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
18838         (MINGW_ENABLE_EXECUTE_STACK): New.
18839         (IN_LIBGCC2): For libgcc include windows.h file for
18840         function declarations.
18841
18842 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
18843
18844         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
18845         and tem2 if tem1 is not a REG or MULT.
18846
18847 2008-04-08  Jan Hubicka  <jh@suse.cz>
18848
18849         * function.h (incomming_args): Break out of struct function.
18850         (function_subsections): Break out of struct function.
18851         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
18852         return_rtx and hard_reg_initial_vals from struct function.
18853         Kill inl_max_label_num.
18854         (current_function_pops_args, current_function_args_info,
18855         current_function_args_size, current_function_args_size,
18856         current_function_pretend_args_size,
18857         current_function_outgoing_args_size,
18858         current_function_internal_arg_pointer, current_function_return_rtx):
18859         Kill compatibility accestor macros.
18860         * builtins.c (expand_builtin_apply_args_1): Update.
18861         (expand_builtin_next_arg): Update.
18862         * df-scan.c (df_get_call_refs): Update.
18863         * dbxout.c (dbxout_function_end): Update.
18864         * dwarf2out.c (dwarf2out_switch_text_section): Update.
18865         (output_line_info): Update.
18866         (secname_for_decl): Update.
18867         (dwarf2out_var_location): Update.
18868         * function.c (free_after_compilation): Update.
18869         (assign_parm_find_stack_rtl): Update.
18870         (assign_parms): Update.
18871         (expand_dummy_function_end): Update.
18872         (expand_function_end): Update.
18873         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
18874         (expand_call): Update.
18875         (emit_library_call_value_1): Update.
18876         (store_one_arg): Update.
18877         * varasm.c (initialize_cold_section_name): Update.
18878         (unlikely_text_section): Update.
18879         (unlikely_text_section_p): Update.
18880         (assemble_start_function): Update.
18881         (assemble_end_function): Update.
18882         (default_section_type_flags): Update.
18883         (switch_to_section): Update.
18884         * integrate.c (set_decl_abstract_flags): Update.
18885         (get_hard_reg_initial_val): Update.
18886         (has_hard_reg_initial_val): Update.
18887         (allocate_initial_values): Update.
18888         * resource.c (init_resource_info): Update.
18889         * config/alpha/alpha.c (NUM_ARGS): Update.
18890         (direct_return): Update.
18891         (alpha_va_start): Update.
18892         (alpha_sa_size): Update.
18893         (alpha_initial_elimination_offset): Update.
18894         (alpha_expand_prologue): Update.
18895         (alpha_start_function): Update.
18896         (alpha_expand_epilogue): Update.
18897         (unicosmk_initial_elimination_offset):
18898         * config/alpha/alpha.md (call expander): Update.
18899         * config/s390/s390.c (s390_register_info): Update.
18900         (s390_register_info): Update.
18901         (s390_frame_info): Update.
18902         (s390_initial_elimination_offset): Update.
18903         (s390_build_builtin_va_list): Update.
18904         (s390_va_start): Update.
18905         * config/spu/spu.c (direct_return): Update.
18906         (spu_expand_prologue): Update.
18907         (spu_initial_elimination_offset): Update.
18908         (spu_build_builtin_va_list): Update.
18909         (spu_va_start): Update.
18910         * config/sparc/sparc.c (sparc_init_modes): Update.
18911         (sparc_compute_frame_size): Update.
18912         (function_value): Update.
18913         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
18914         * config/i386/i386.md (return expander): Update.
18915         * config/i386/i386.c (ix86_va_start): Update.
18916         (ix86_can_use_return_insn_p): Update.
18917         (ix86_compute_frame_layout): Update.
18918         (ix86_expand_epilogue): Update.
18919         * config/sh/sh.c (output_stack_adjust): Update.
18920         (calc_live_regs): Update.
18921         (sh_expand_prologue): Update.
18922         (sh_builtin_saveregs): Update.
18923         (sh_va_start): Update.
18924         (initial_elimination_offset): Update.
18925         (sh_allocate_initial_value): Update.
18926         (sh_function_ok_for_sibcall): Update.
18927         (sh_get_pr_initial_val): Update.
18928         * config/sh/sh.md (return expander): Update.
18929         * config/avr/avr.c (frame_pointer_required_p): UPdate.
18930         * config/crx/crx.c (crx_compute_frame): UPdate.
18931         (crx_initial_elimination_offset): UPdate.
18932         * config/xtensa/xtensa.c (compute_frame_size): Update
18933         (xtensa_builtin_saveregs): Update.
18934         (xtensa_va_start): Update.
18935         (order_regs_for_local_alloc): Update.
18936         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
18937         (xstormy16_expand_builtin_va_start): Update.
18938         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
18939         * config/m68hc11/m68hc11.md (return expanders): Update.
18940         * config/m68hc11/m68hc11.c (expand_prologue): Update.
18941         (expand_epilogue): Update.
18942         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
18943         (cris_simple_epilogue): Update.
18944         (cris_expand_prologue): Update.
18945         (cris_expand_epilogue): Update.
18946         * config/iq2000/iq2000.c (iq2000_va_start): Update.
18947         (compute_frame_size): Update.
18948         * config/mt/mt.c (mt_compute_frame_size): Update.
18949         * config/mn10300/mn10300.c (expand_prologue): Update.
18950         (expand_epilogue): Update.
18951         (initial_offset): Update.
18952         (mn10300_builtin_saveregs):
18953         * config/mn10300/mn10300.md (return expander): Update.
18954         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
18955         (ia64_initial_elimination_offset): Update.
18956         (ia64_initial_elimination_offset): Update.
18957         (ia64_expand_prologue): Update.
18958         * config/m68k/m68k.md (return expander): Update.
18959         * config/rs6000/rs6000.c (rs6000_va_start): Update.
18960         (rs6000_stack_info): Update.
18961         * config/mcore/mcore.c (layout_mcore_frame): Update.
18962         (mcore_expand_prolog): Update.
18963         * config/arc/arc.c (arc_compute_frame_size): Update.
18964         * config/score/score3.c (score3_compute_frame_size): Update.
18965         * config/score/score7.c (score7_compute_frame_size): Update.
18966         * config/arm/arm.c (use_return_insn): Update.
18967         (thumb_find_work_register): Update.
18968         (arm_compute_save_reg_mask): Update.
18969         (arm_output_function_prologue): Update.
18970         (arm_output_epilogue): Update.
18971         (arm_size_return_regs): Update.
18972         (arm_get_frame_offsets): Update.
18973         (arm_expand_prologue): Update.
18974         (thumb_exit): Update.
18975         (thumb_unexpanded_epilogue): Update.
18976         (thumb1_output_function_prologue): Update.
18977         * config/pa/pa.md (return expander): Update.
18978         * config/pa/pa.c (compute_frame_size): Update.
18979         (hppa_builtin_saveregs): Update.
18980         * config/mips/mips.c (mips_va_start): Update.
18981         (mips16_build_function_stub): Update.
18982         (mips_compute_frame_info): Update.
18983         (mips_restore_gp): Update.
18984         (mips_output_function_prologue): Update.
18985         (mips_expand_prologue): Update.
18986         * config/v850/v850.c (compute_frame_size): Update.
18987         (expand_prologue): * config/mmix/mmix.c (along): update.
18988         (mmix_initial_elimination_offset): update.
18989         (mmix_reorg): update.
18990         (mmix_use_simple_return): update.
18991         (mmix_expand_prologue): update.
18992         (mmix_expand_epilogue): Update.
18993         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
18994         (emit_link_insn): Update.
18995
18996 2008-04-08  Anatoly Sokolov <aesok@post.ru>
18997
18998         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
18999         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
19000         instructions.
19001         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
19002         atmega103 device.
19003
19004 2008-04-07  Jan Hubicka  <jh@suse.cz>
19005
19006         * function.h (rtl): Rename to x_rtl.
19007         (crtl): New define.
19008         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
19009         frame_offset, stack_check_probe_note, arg_pointer_save_area,
19010         used_temp_slots avail_temp_slots, temp_slot_level,
19011         nonlocal_goto_handler_labels): Update accesstors.
19012         (rtl): New global variable.
19013         (struct function): Move some fileds to rtl_data.
19014         (get_arg_pointer_save_area): Update prototype.
19015         * builtins.c (expand_builtin_setjmp_receiver): Update call of
19016         get_arg_pointer_save_area.
19017         * expr.c (init_expr): Update
19018         * function.c (get_frame_size): Update
19019         (assign_stack_local): Update
19020         (expand_function_end): Update.
19021         (get_art_pointer_save_area): Update
19022         * function.h
19023         * emit-rtl.c (rtl): Declare.
19024         (regno_reg_rtx): Declare.
19025         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
19026         Update.
19027         (gen_reg_rtx): Update.
19028         * varasm.c (n_deferred_constatns): Update accestor.
19029         (init_varasm_status): Do not allocate varasm_status.
19030         (force_const_mem, get_pool_size, output_constant_pool): Update.
19031         * stmt.c (force_label_rtx): Do not use x_ prefixes.
19032         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
19033         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
19034         * sparc/sparc.h (INIT_EXPANDERS): Update.
19035         * ia64/ia64.h (INIT_EXPANDERS): Update.
19036
19037 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
19038
19039         * reload.c (push_secondary_reload): Add missing break to for loop.
19040
19041 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
19042
19043         PR middle-end/PR28690
19044         * rtlanal.c: Update copyright years.
19045         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
19046         as REG_POINTER and MEM_POINTER operands.
19047         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
19048         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
19049         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
19050         * gcse.c: Update copyright years.
19051         (pre_delete): Call gen_reg_rtx_and_attrs.
19052         (hoist_code): Likewise.
19053         (build_store_vectors): Likewise.
19054         (delete_store): Likewise.
19055         * loop-invariant.c (move_invariant_reg): Likewise.
19056         Update copyright years.
19057
19058 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
19059
19060         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
19061         control string instead of quoted.
19062
19063 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
19064
19065         * doc/rtl.texi: Rewrite of subreg section.
19066
19067 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
19068
19069         PR/35842
19070         * config/i386/i386.c (legitimize_pic_address): Add treating
19071         of dllimport SYM_REF's.
19072         (legitimize_dllimport_symbol): Add prototype.
19073
19074 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
19075
19076         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
19077         reference in constructor with non self-referential type.
19078
19079 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
19080
19081         Removal of Return with Depressed Stack Pointer support
19082         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
19083         (ECF_SP_DEPRESSED): Likewise.
19084         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
19085         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
19086         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
19087         (expand_call): Do not test ECF_SP_DEPRESSED.
19088         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
19089         * function.c (keep_stack_depressed): Delete.
19090         (handle_epilogue_set): Likewise.
19091         (update_epilogue_consts): Likewise.
19092         (emit_equiv_load): Likewise.
19093         (thread_prologue_and_epilogue_insns): Remove support for Return with
19094         Depressed Stack Pointer.
19095         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
19096
19097 2008-04-06  Richard Guenther  <rguenther@suse.de>
19098
19099         PR tree-optimization/35400
19100         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
19101         information from SSA_NAMEs.
19102
19103 2008-04-06  Anatoly Sokolov <aesok@post.ru>
19104
19105         * config/avr/avr.h (avr_mega_p): Remove declaration.
19106         (AVR_MEGA): Remove macro.
19107         * config/avr/avr.c (avr_mega_p): Remove variable.
19108         (avr_override_options): Remove inicializion of avr_mega_p.
19109         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
19110         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
19111         (avr_jump_mode): (Ditto.).
19112         (avr_output_progmem_section_asm_op): (Ditto.).
19113         (avr_asm_init_sections): (Ditto.).
19114         (avr_asm_init_sections): (Ditto.).
19115         (avr_rtx_costs): (Ditto.).
19116         * config/avr/avr.md: (Ditto.).
19117         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
19118         '__AVR_MEGA__'.
19119
19120 2008-04-06  Richard Guenther  <rguenther@suse.de>
19121
19122         PR tree-optimization/35842
19123         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
19124         is_gimple_invariant_address.
19125
19126 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
19127
19128         * gcc.c (default_compilers): Sync Fortran extensions list with
19129         that in fortran/lang-specs.h.
19130         * doc/invoke.texi: Likewise.
19131         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
19132         * dwarf2out.c (gen_compile_unit_die): Likewise.
19133
19134 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
19135
19136         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
19137
19138 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
19139
19140         PR target/12329
19141         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
19142         attribute is used for nested functions.
19143
19144 2008-04-05  Jan Hubicka  <jh@suse.cz>
19145
19146         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
19147
19148         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
19149         letter argument.
19150         (dump_files): Update.
19151         (enable_rtl_dump_file): Do not accept letter argument.
19152         * tree-pass.h (dump_file_info): Remove letter argument.
19153         * toplev.c (decode_d_option): Update -da handling.
19154         * toplev.h (enable_rtl_dump_file): Update prototype.
19155         * passes.c (register_one_dump_file): Do not accept IPA argument; work
19156         it out based on pass type.
19157         (register_dump_files_1): Likewise.
19158         (init_optimization_passes): Update register_one_dump_file calls.
19159         (execute_one_pass): Sanity check that IPA passes are called at IPA
19160         level and RTL passes at RTL level.
19161         (execute_pass_list): IPA pass can not be after or subpass of
19162         GIMPLE/RTL pass.
19163         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
19164         disallov RTL subpasses of IPA subpasses.
19165
19166 2008-04-05  Ben Elliston  <bje@au.ibm.com>
19167
19168         * tree-cfg.c (need_fake_edge_p): Return false for calls to
19169         builtins that return exactly once and do not throw. Cache call to
19170         call_expr_flags.
19171
19172 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
19173
19174         PR rtl-optimization/34916
19175         PR middle-end/35519
19176         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
19177         between instruction pairs.
19178
19179 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
19180
19181         * doc/invoke.texi: Document -mbitops for SH.
19182         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
19183         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
19184         * config/sh/sh.c (print_operand): Add %t operand code.
19185         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
19186         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
19187         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
19188         (extendqihi2): Likewise.
19189         (movqi_i): Likewise.
19190         (insv): Use bset, bclr and bst instructions for SH2A if possible.
19191         (extv): Use bld instruction for SH2A if possible.
19192         (extzv): Likewise.
19193         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
19194         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
19195         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
19196         (bset.b, bclr.b): Define peepholes.
19197         * config/sh/sh.opt (mbitops): New option.
19198
19199 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
19200
19201         PR target/35620
19202         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
19203         and view convert expression.
19204
19205 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
19206
19207         PR target/35364
19208         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
19209
19210 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
19211
19212         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
19213
19214         * config/i386/cpuid.h (bit_AES): New.
19215         (bit_PCLMUL): Likewise.
19216
19217         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
19218         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
19219         SSE2 if AES or PCLMUL is enabled.
19220         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
19221         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
19222         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
19223         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
19224         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
19225         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
19226         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
19227         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
19228         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
19229         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
19230         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
19231         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
19232         __builtin_ia32_aeskeygenassist128 and
19233         __builtin_ia32_pclmulqdq128.
19234         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
19235         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
19236         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
19237
19238         * config/i386/i386.h (TARGET_AES): New.
19239         (TARGET_PCLMUL): Likewise.
19240         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
19241
19242         * config/i386/i386.md (UNSPEC_AESENC): New.
19243         (UNSPEC_AESENCLAST): Likewise.
19244         (UNSPEC_AESDEC): Likewise.
19245         (UNSPEC_AESDECLAST): Likewise.
19246         (UNSPEC_AESIMC): Likewise.
19247         (UNSPEC_AESKEYGENASSIST): Likewise.
19248         (UNSPEC_PCLMUL): Likewise.
19249
19250         * config/i386/i386.opt (maes): New.
19251         (mpclmul): Likewise.
19252
19253         * config/i386/sse.md (aesenc): New pattern.
19254         (aesenclast): Likewise.
19255         (aesdec): Likewise.
19256         (aesdeclast): Likewise.
19257         (aesimc): Likewise.
19258         (aeskeygenassist): Likewise.
19259         (pclmulqdq): Likewise.
19260
19261         * config/i386/wmmintrin.h: New.
19262
19263         * doc/extend.texi: Document AES and PCLMUL built-in function.
19264
19265         * doc/invoke.texi: Document -maes and -mpclmul.
19266
19267 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
19268
19269         * function.c (free_after_parsing): Replace with
19270         cxx_push_function_context from C++ front-end.
19271         (allocate_struct_function): Don't call langhook.
19272         * langhooks.h (struct lang_hooks_for_functions): Delete.
19273         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
19274         member "function".
19275         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
19276         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
19277         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
19278         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
19279         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
19280         remove LANG_HOOKS_FUNCTION_INITIALIZER.
19281         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
19282
19283         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
19284         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
19285
19286 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
19287
19288         PR c/35440
19289         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
19290         for all types.
19291
19292 2008-04-04  Richard Guenther  <rguenther@suse.de>
19293
19294         PR middle-end/35823
19295         * fold-const.c (optimize_minmax_comparison): Use the correct
19296         type for the constant in the simplified comparison.
19297
19298 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
19299
19300         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
19301         Pass L2 size as "--param l2-cache-size" to the compiler.
19302         (decode_l2_cache): New function to decode L2 cache parameters using
19303         0x8000006 extended cpuid function.
19304         (detect_caches_amd): Determine parameters of L2 cache using
19305         decode_l2_caches function.
19306         (decode_caches_intel): Decode L2 cache parameters.
19307         (detect_caches_intel): Determine L2 cache parameters using
19308         decode_caches_intel and decode_l2_caches functions.
19309
19310 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
19311
19312         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
19313         secondary input reload for subword loads from the constant pool.
19314
19315 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
19316
19317         PR target/35713
19318         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
19319           constants of the appropriate size for runtime calculations.
19320
19321         PR c/35712
19322         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
19323           decimal-float literal constant zero.
19324
19325 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
19326
19327         PR c/35738
19328         * c-parser.c (c_parser_omp_atomic): Call
19329         default_function_array_conversion on the RHS.
19330
19331         PR middle-end/35818
19332         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
19333         call is_variable_sized if decl has incomplete type.
19334
19335 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
19336
19337         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
19338
19339 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
19340
19341         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
19342         iterators.
19343         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
19344         (sgt<u>): Merge sgt and sgtu into new expander.
19345         (sgt, sgtu): Remove expanders.
19346         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
19347         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
19348         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
19349         *sgtu_<mode>_mips16 into new pattern.
19350         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
19351         (sge<u>): Merge sge and sgeu into new expander.
19352         (sge, sgeu): Remove expanders.
19353         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
19354         new pattern.
19355         (*sge_<mode>, second *sge_<mode>): Remove patterns.
19356         (slt<u>): Merge slt and sltu into new expander.
19357         (slt, sltu): Remove expanders.
19358         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
19359         (*slt_<mode>, *sltu_<mode>): Remove patterns.
19360         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
19361         *sltu_<mode>_mips16 into new pattern.
19362         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
19363         (sle<u>): Merge sle and sleu into new expander.
19364         (sle, sleu): Remove expanders.
19365         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
19366         (*sle_<mode>, *sleu_<mode>): Remove patterns.
19367         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
19368         *sleu_<mode>_mips16 into new pattern.
19369         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
19370
19371 2008-04-03  Jan Hubicka  <jh@suse.cz>
19372
19373         PR tree-optimization/35795
19374         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
19375         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
19376         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
19377         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
19378         * score/score3.c (score3_output_mi_thunk): Likewise.
19379         * score/score7.c (score7_output_mi_thunk): Likewise.
19380         * mips/mips.c (mips_output_mi_thunk): Likewise.
19381
19382 2008-04-03  Richard Guenther  <rguenther@suse.de>
19383
19384         * tree-vrp.c (extract_range_from_unary_expr): Handle all
19385         conversions.  Simplify code.
19386
19387 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
19388
19389         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
19390
19391 2008-04-03  Tom Tromey  <tromey@redhat.com>
19392             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19393
19394         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
19395         * config/bfin/t-bfin-linux (generated_files): Add
19396         linux-sysroot-suffix.h.
19397         * doc/install.texi (Prerequisites): Require make 3.80.
19398         * doc/sourcebuild.texi (Front End Directory): Document new
19399         variable.
19400         * Makefile.in (generated_files): New variable.
19401         (ALL_HOST_OBJS): New variable.
19402         ($(ALL_HOST_OBJS)): New target.
19403
19404 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
19405
19406         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
19407         (remap_block): Call id->transform_lang_insert_block instead
19408         of langhook.
19409         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
19410         Set id.transform_lang_insert_block to NULL.
19411         (clone_body): Move to cp/optimize.c
19412         * tree-inline.h (struct copy_body_data): Change
19413         transform_lang_insert_block to function pointer.
19414         (copy_generic_body, copy_decl_no_change): Export.
19415         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
19416         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
19417         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
19418
19419         * c-tree.h (insert_block): Kill.
19420         * c-decl.c (insert_block): Kill.
19421
19422 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
19423
19424         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
19425         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
19426         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
19427         argument.
19428         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
19429         argument, call {push,pop}_function_context from here.
19430         * c-parser.c: Use c_{push,pop}_function_context.
19431
19432         * function.c (push_function_context_to): Move meat ...
19433         (push_function_context): ... here.  Simplify.
19434         * function.c (pop_function_context_from): Move meat ...
19435         (pop_function_context): ... here.  Simplify.
19436         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
19437         leave_nested).
19438         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
19439         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
19440         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
19441         * tree.h (push_function_context_to, pop_function_context_from): Remove.
19442
19443 2008-04-03  Ben Elliston  <bje@au.ibm.com>
19444
19445         * expmed.c (extract_force_align_mem_bit_field): Remove.
19446
19447 2008-04-03  Richard Guenther  <rguenther@suse.de>
19448
19449         PR middle-end/35800
19450         * expr.h (try_casesi): Adjust prototype.
19451         * expr.c (try_casesi): Take fallback label as extra parameter.
19452         Use that for gen_casesi if default_label is NULL.
19453         * stmt.c (expand_case): Pass fallback label to try_casesi,
19454         make sure to fill gaps with a fallback label if default_label
19455         is not present.
19456
19457 2008-04-03  Dominique d'Humières <dominiq@lps.ens.fr>
19458
19459         PR target/35801
19460         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
19461
19462 2008-04-03  Ben Elliston  <bje@au.ibm.com>
19463
19464         * expmed.c (extract_split_bit_field): Remove if (0) code.
19465         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
19466         (do_ds_constraint): Likewise.
19467
19468 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
19469
19470         * doc/cppopts.texi (-dU): Document.
19471         * c-common.h (flag_dump_macros): Update comment.
19472         * c-opts.c (handle_OPT_d): Handle -dU.
19473         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
19474         dump_queued_macros, cb_used_define, cb_used_undef): New.
19475         (init_pp_output): Handle -dU.
19476         (cb_line_change): Call dump_queued_macros.
19477         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
19478
19479 2008-04-02  Anatoly Sokolov <aesok@post.ru>
19480
19481         * config/avr/predicates.md (io_address_operand): New predicate.
19482         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
19483         * config/avr/avr.c (avr_io_address_p): Remove function.
19484         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
19485         'avr_io_address_p' function.
19486         (out_movhi_r_mr): (Ditto.).
19487         (out_movqi_mr_r): (Ditto.).
19488         (out_movhi_mr_r): (Ditto.).
19489         (avr_address_cost): (Ditto.).
19490
19491 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
19492
19493         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
19494         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
19495         in 32bit mode when XMM registers are available to avoid store
19496         forwarding stalls.
19497         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
19498         corresponding post-reload splitters.
19499
19500 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
19501
19502         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
19503         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
19504         __builtin_ia32_roundss.
19505         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
19506         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
19507         __builtin_ia32_roundss.
19508         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
19509         IX86_BUILTIN_SHUFPD here.
19510
19511 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
19512
19513         * config/i386/i386.md (plogic): New.
19514         (plogicprefix): Likewise.
19515
19516         * config/i386/mmx.md (mmx_<code><mode>3): New.
19517         (mmx_and<mode>3): Removed.
19518         (mmx_ior<mode>3): Likewise.
19519         (mmx_xor<mode>3): Likewise.
19520
19521         * config/i386/sse.md (<code><mode>3): New.
19522         (*<code><mode>3): Likewise.
19523         (*<code><mode>3): Likewise.
19524         (<code><mode>3): Likewise.
19525         (*sse_<code><mode>3): Likewise.
19526         (*sse2_<code><mode>3): Likewise.
19527         (<code>tf3): Likewise.
19528         (*<code>tf3): Likewise.
19529         (and<mode>3): Likewise.
19530         (*and<mode>3): Likewise.
19531         (ior<mode>3): Removed.
19532         (*ior<mode>3): Likewise.
19533         (xor<mode>3): Likewise.
19534         (*xor<mode>3): Likewise.
19535         (*and<mode>3): Likewise.
19536         (*ior<mode>3): Likewise.
19537         (*xor<mode>3): Likewise.
19538         (and<mode>3): Likewise.
19539         (*sse_and<mode>3): Likewise.
19540         (*sse2_and<mode>3): Likewise.
19541         (andtf3): Likewise.
19542         (*andtf3): Likewise.
19543         (ior<mode>3): Likewise.
19544         (*sse_ior<mode>3): Likewise.
19545         (*sse2_ior<mode>3): Likewise.
19546         (iortf3): Likewise.
19547         (*iortf3): Likewise.
19548         (xor<mode>3): Likewise.
19549         (*sse_xor<mode>3): Likewise.
19550         (*sse2_xor<mode>3): Likewise.
19551         (xortf3): Likewise.
19552         (*xortf3): Likewise.
19553
19554 2008-04-02  Richard Guenther  <rguenther@suse.de>
19555
19556         PR tree-optimization/14495
19557         PR tree-optimization/34793
19558         * tree-vrp.c (struct switch_update): New structure.
19559         (to_remove_edges, to_update_switch_stmts): New VECs.
19560         (simplify_switch_using_ranges): New function.  Remove not taken
19561         case labels and edges.
19562         (simplify_stmt_using_ranges): Call it.
19563         (identify_jump_threads): Mark edges we have queued for removal
19564         so we don't thread them.
19565         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
19566         case label vector.
19567         * tree-cfg.c (group_case_labels): Deal with missing default label.
19568         (tree_verify_flow_info): Allow missing default label.
19569         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
19570         (emit_case_nodes): Likewise.
19571         (expand_case): Do not rely on the default label to be present.
19572         * expr.c (try_casesi): Deal with NULL default_label.
19573         (do_tablejump): Likewise.
19574
19575 2008-04-02  Richard Guenther  <rguenther@suse.de>
19576
19577         PR tree-optimization/14495
19578         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
19579         SWITCH_EXPR here ...
19580         (vrp_visit_switch_stmt): ... but here (new function).
19581         (find_case_label_index): New helper function.
19582         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
19583
19584 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
19585
19586         * fwprop.c: Fix ISO-C99ism.
19587
19588 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
19589
19590         PR bootstrap/35752
19591         * Makefile.in (objdir): Set it here.
19592         * configure.ac: Not here.  Find dynamic linker characteristics.
19593         * exec-tool.in: Use them.
19594         * aclocal.m4: Regenerate.
19595         * configure: Regenerate.
19596
19597 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
19598
19599         * expr.c (expand_var): Delete it.
19600         * expr.h (expand_var): Delete prototype.
19601         * function.c (expand_function_start): Use expand_decl instead.
19602         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
19603         langhook.
19604
19605 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
19606
19607         PR rtl-optimization/35542
19608         * fwprop.c (forward_propagate_and_simplify): Replace
19609         loc_reg_mentioned_in_p with reg_mentioned_p.
19610
19611 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
19612
19613         PR rtl-optimization/35281
19614         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
19615         (propagate_rtx_1): Handle PR_HANDLE_MEM.
19616         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
19617         (varying_mem_p): Move above propagate_rtx.
19618         (all_uses_available_at): Do not check MEMs.
19619
19620 2008-04-02  Rafael Espíndola  <espindola@google.com>
19621
19622         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
19623         (register_edge_assert_for_2): Split the cond argument.
19624         (register_edge_assert_for_1): Adjust for the change in
19625         register_edge_assert_for_2.
19626         (register_edge_assert_for): Split the cond argument.
19627         (find_switch_asserts): Adjust for the change in
19628         register_edge_assert_for.
19629
19630 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
19631
19632         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
19633         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
19634         offsets for 64-bit mingw.
19635         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
19636         abi for x86_64-pc-mingw.
19637
19638 2008-04-02  Richard Guenther  <rguenther@suse.de>
19639
19640         * tree-vrp.c (extract_range_from_assert): Make sure to not
19641         produce range min/max with TREE_OVERFOW set.
19642         If merging a anti-range and a range keep the anti-range if
19643         the range covers all values of the type.
19644         (register_edge_assert_for_2): Only allow sign-changing
19645         conversions in detecting canonical range checks.  Also
19646         register an assert for the unsigned name if useful.
19647
19648         PR tree-optimization/35787
19649         * tree-vrp.c (vrp_val_max): New function.
19650         (vrp_val_min): Likewise.
19651         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
19652         (vrp_val_is_min): Likewise.
19653         (supports_overflow_infinity): Use vrp_val_{min,max}.
19654         (negative_overflow_infinity): Likewise.
19655         (positive_overflow_infinity): Likewise.
19656         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
19657         (is_positive_overflow_infinity): Likewise.
19658         (is_overflow_infinity): Likewise.
19659         (avoid_overflow_infinity): Use vrp_val_{min,max} and
19660         vrp_val_is_{min,max}.
19661         (set_and_canonicalize_value_range): Canonicalize anti-ranges
19662         to ranges if possible.  Avoid empty ranges.
19663
19664 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19665
19666         PR middle-end/35705
19667         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
19668         the expression is a function address.
19669
19670 2008-04-01  George Helffrich  <george@gcc.gnu.org>
19671
19672         PR fortran/35154, fortran/23057
19673         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
19674         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
19675         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
19676         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
19677         in common.
19678         (dbxout_syms): Check for COMMON-based symbol and wrap in
19679         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
19680         in bracket for efficiency.
19681
19682         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
19683         using DW_TAG_common_block + member offset.
19684         (add_pubname_string): New function.
19685         (dw_expand_expr): New function to find block name and offset for
19686         COMMON var.
19687         (common_check): New function to check whether symbol in Fortran COMMON.
19688         (gen_variable_die): If COMMON, use DW_TAG_common_block.
19689
19690 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
19691
19692         PR c/35436
19693         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
19694
19695 2008-04-02  Ben Elliston  <bje@au.ibm.com>
19696
19697         * config/v850/v850.md (casesi): Remove if (0) code.
19698         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
19699         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
19700
19701 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
19702
19703         * config/i386/i386.md (rex64suffix): New mode attribute.
19704         (floathi<mode>2): Disable expander for SSE math.
19705         (*floathi<mode>2_1): New insn insn_and_split pattern.
19706         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
19707         corresponding post-reload splitters.
19708         (*floathi<mode>2_i387): New macroized insn pattern.
19709         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
19710         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
19711         insn_and_split pattern.
19712         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
19713         New macroized instruction patterns and corresponding post-reload
19714         splitters.
19715         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
19716         and corresponding post-reload splitters.
19717         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
19718         New macroized instruction patterns.
19719         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
19720         macroized instruction patterns and corresponding post-reload splitters.
19721         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
19722         corresponding post-reload splitters.
19723         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
19724         New macroized instruction patterns.
19725         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
19726         corresponding post-reload splitters.
19727         (*floatsi<mode>2_i387): New macroized instruction patterns.
19728
19729 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
19730
19731         * config/i386/i386.md (smaxmin): New.
19732         (umaxmin): Likewise.
19733         (maxminiprefix): Likewise.
19734         (maxminfprefix): Likewise.
19735         (<code><mode>3): Likewise.
19736         (smin<mode>3): Removed.
19737         (smax<mode>3): Likewise.
19738
19739         * config/i386/mmx.md (mmx_<code>v2sf3): New.
19740         (mmx_<code>v4hi3): Likewise.
19741         (mmx_<code>v8qi3): Likewise.
19742         (mmx_smaxv2sf3): Removed.
19743         (mmx_sminv2sf3): Likewise.
19744         (mmx_umaxv8qi3): Likewise.
19745         (mmx_smaxv4hi3): Likewise.
19746         (mmx_uminv8qi3): Likewise.
19747         (mmx_sminv4hi3): Likewise.
19748
19749         * config/i386/sse.md (<addsub><mode>3): New.
19750         (*<addsub><mode>3): Likewise.
19751         (<sse>_vm<addsub><mode>3): Likewise.
19752         (<maxmin><mode>3): Likewise.
19753         (*<maxmin><mode>3_finite): Likewise.
19754         (*<maxmin><mode>3): Likewise.
19755         (<sse>_vm<maxmin><mode>3): Likewise.
19756         (sse3_h<addsub>v4sf3): Likewise.
19757         (sse3_h<addsub>v2df3): Likewise.
19758         (<maxmin>v16qi3): Likewise.
19759         (*<maxmin>v16qi3): Likewise.
19760         (<maxmin>v8hi3): Likewise.
19761         (*<maxmin>v8hi3): Likewise.
19762         (*sse4_1_<maxmin><mode>3): Likewise.
19763         (*sse4_1_<maxmin><mode>3): Likewise.
19764         (add<mode>3): Removed.
19765         (*add<mode>3): Likewise.
19766         (<sse>_vmadd<mode>3): Likewise.
19767         (sub<mode>3): Likewise.
19768         (*sub<mode>3): Likewise.
19769         (<sse>_vmsub<mode>3): Likewise.
19770         (smin<mode>3): Likewise.
19771         (*smin<mode>3_finite): Likewise.
19772         (*smin<mode>3): Likewise.
19773         (<sse>_vmsmin<mode>3): Likewise.
19774         (smax<mode>3): Likewise.
19775         (*smax<mode>3_finite): Likewise.
19776         (*smax<mode>3): Likewise.
19777         (<sse>_vmsmax<mode>3): Likewise.
19778         (sse3_haddv4sf3): Likewise.
19779         (sse3_haddv2df3): Likewise.
19780         (sse3_hsubv4sf3): Likewise.
19781         (sse3_hsubv2df3): Likewise.
19782         (umaxv16qi3): Likewise.
19783         (*umaxv16qi3): Likewise.
19784         (smaxv8hi3): Likewise.
19785         (*smaxv8hi3): Likewise.
19786         (*sse4_1_smax<mode>3): Likewise.
19787         (*sse4_1_umax<mode>3): Likewise.
19788         (uminv16qi3): Likewise.
19789         (*uminv16qi3): Likewise.
19790         (sminv8hi3): Likewise.
19791         (*sminv8hi3): Likewise.
19792         (*sse4_1_smin<mode>3): Likewise.
19793         (*sse4_1_umin<mode>3): Likewise.
19794
19795 2008-04-01  Rafael Espíndola  <espindola@google.com>
19796
19797         * tree-cfg.c (verify_expr): remove in_phi.
19798         (verify_stmt): Don't call walk_tree with verify_expr. Use
19799         is_gimple_min_invariant instead of is_gimple_val.
19800
19801 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
19802
19803         * doc/include/gpl_v3.texi: Update for manpage generation.
19804         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
19805         gpl.texi.
19806         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
19807         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
19808         gpl_v3.texi instead of gpl.texi.
19809         (gpl.pod): New.
19810
19811 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
19812
19813         PR pch/13675
19814         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
19815
19816 2008-04-01  Rafael Espíndola  <espindola@google.com>
19817
19818         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
19819         (extract_code_and_val_from_cond): Use
19820         extract_code_and_val_from_cond_with_ops.
19821
19822 2008-04-01  Jan Hubicka  <jh@suse.cz>
19823
19824         * function.c (free_after_compilation): Free epilogue_delay_list.
19825         (prepare_function_start): Assert that previous compilation was freed.
19826
19827 2008-04-01  Jan Hubicka  <jh@suse.cz>
19828             Jim Wilson  <wilson@tuliptree.org>
19829             Andreas Tobler <andreast@gcc.gnu.org>
19830
19831         PR middle-end/35781
19832         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
19833         rtl.emit instead cfun->emit.
19834         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
19835         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
19836
19837 2008-04-01  Ben Elliston  <bje@au.ibm.com>
19838
19839         * doc/c-tree.texi (Function Basics): Fix grammatical error.
19840
19841 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
19842
19843         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
19844         New options
19845         (fprofile-use): Add var flag_profile_use
19846         * coverage.c (coverage_begin_output): Do not open a gcno file for
19847         output only if -ftest-coverage is set.
19848         Do not add getpwd() to gcda file path.
19849         (build_gcov_info): Check the new flag
19850         flag_profile_datafile_relative_path.
19851         (coverage_init): Use profile_data_prefix.
19852         Read profile counter only if flag_profile_use is set.
19853         * opts.c (common_handle_option): New option fprofile-use=,
19854         fprofile-dir=, fprofile-generate=.
19855         * toplev.c (profile_data_prefix): New variable definition.
19856         * toplev.h (profile_data_prefix): New declaration.
19857         * doc/invoke.tex (Option Summary, Optimization Options):
19858         Add new options.
19859
19860 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
19861
19862         * varasm.c (output_constant_pool_1): In LABEL_REF check,
19863         use tmp consistently.
19864
19865         PR target/35695
19866         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
19867         * config/ia64/ia64.c (rtx_needs_barrier): Handle
19868         UNSPEC_FR_RECIP_APPROX_RES.
19869         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
19870
19871 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
19872
19873         PR c/35750
19874         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
19875
19876 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19877
19878         PR middle-end/30186
19879         * fold-const.c (fold_indirect_ref_1): Support accessing non first
19880         element of the vector via a pointer.
19881
19882 2008-03-31  Ian Lance Taylor  <iant@google.com>
19883
19884         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
19885
19886 2008-03-31  Jan Hubicka  <jh@suse.cz>
19887
19888         * builtins.c (expand_builtin_setjmp_receiver): Update call of
19889         get_arg_pointer_save_area.
19890         * expr.c (init_expr): Just clear out rtl.expr.
19891         * function.c (free_after_compilation): Clear out whole RTL structure.
19892         (get_func_frame_size): Merge into ...
19893         (get_frame_size): ... this one.
19894         (assign_stack_local_1): Merge into ...
19895         (assign_stack_local): ... this one.
19896         (expand_function_end): Update call of get_arg_pointer_save_area.
19897         (get_art_pointer_save_area): Remove cfun argument.
19898         * function.h (emit_status): regno_pointer_align does not need length
19899         attribute. Move x_regno_reg_rtx to ...
19900         (regno_reg_rtx): ... new global array.
19901         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
19902         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
19903         apply_args_value, forced_labels, stack_pointer_delta):
19904         Update accestors.
19905         (struct varasm_status): Move here from varasm.c
19906         (struct rtl_data): New. Move here some fields from struct function.
19907         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
19908         frame_offset, stack_check_probe_note, arg_pointer_save_area,
19909         used_temp_slots avail_temp_slots, temp_slot_level,
19910         nonlocal_goto_handler_labels): Update accesstors.
19911         (rtl): New global variable.
19912         (struct function): Move some fileds to rtl_data.
19913         (get_arg_pointer_save_area): Update prototype.
19914         * emit-rtl.c (rtl): Declare.
19915         (regno_reg_rtx): Declare.
19916         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
19917         Update.
19918         (gen_reg_rtx): Update.
19919         (init_virtual_regs): Do not tate emit_status argument.
19920         (init_emit): Do not allocate emit.
19921         * varasm.c (varasm_statuc): Move to function.h.
19922         (n_deferred_constatns): Update accestor.
19923         (init_varasm_status): Do not allocate varasm_status.
19924         (force_const_mem, get_pool_size, output_constant_pool): Update.
19925         * stmt.c (force_label_rtx): Do not use x_ prefixes.
19926         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
19927
19928 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
19929
19930         PR rtl-optimization/35729
19931         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
19932         references.
19933
19934 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19935
19936         PR target/32000
19937         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
19938         load/store if memory is unaligned.
19939         (*movti_rex64): Likewise.
19940
19941         * config/i386/predicates.md (misaligned_operand): New.
19942
19943 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
19944
19945         PR tree-opt/35431
19946         * tree-ssa-phiopt.c (conditional_replacement): Return early for
19947         complex types.
19948
19949 2008-03-31  Jan Beulich  <jbeulich@novell.com>
19950
19951         * config/ia64/constraints.md: Add 'j' constraint.
19952         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
19953         (movdi_internal): Likewise.
19954
19955 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
19956
19957         PR c/35748
19958         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
19959
19960 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
19961
19962         PR target/35757
19963         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
19964         proper error message for the third argument on blendpd and
19965         blendps.
19966
19967         * config/i386/sse.md (blendbits): New.
19968         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
19969
19970 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
19971
19972         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
19973
19974 2008-03-30  Richard Guenther  <rguenther@suse.de>
19975
19976         PR middle-end/31023
19977         * fold-const.c (fold_sign_changed_comparison): Do leave
19978         conversions to base-types alone.
19979
19980 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19981
19982         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
19983         the link register if one altivec register is be saved.
19984
19985 2008-03-30  Ben Elliston  <bje@au.ibm.com>
19986
19987         * final.c (final_scan_insn): Remove if (0) code.
19988
19989 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
19990
19991         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
19992
19993 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
19994
19995         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
19996         of V4SFmode to ix86_binary_operator_ok.
19997
19998 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
19999
20000         * config/i386/i386.c (override_options): Initialize
20001         ix86_veclib_handler to ix86_veclibabi_svml when
20002         -mveclibabi=svml is used.
20003         (ix86_veclibabi_svml): New function for SVML ABI style
20004         vectorization support.
20005         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
20006
20007 2008-03-28  Rafael Espíndola  <espindola@google.com>
20008
20009         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
20010         (tree_binary_nonnegative_warnv_p): Make it public.
20011         (tree_single_nonnegative_warnv_p): Make it public.
20012         (tree_invalid_nonnegative_warnv_p): Make it public.
20013         (tree_unary_nonzero_warnv_p): Make it public.
20014         (tree_binary_nonzero_warnv_p): Make it public
20015         (tree_single_nonzero_warnv_p): Make it public.
20016         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
20017         (extract_range_from_binary_expr): Split the expr argument.
20018         (extract_range_from_unary_expr): Split the expr argument.
20019         (extract_range_from_comparison): Split the expr argument.
20020         (extract_range_from_expr): Use the new aux functions.
20021         (vrp_evaluate_conditional_warnv): Use
20022         vrp_evaluate_conditional_warnv_with_ops.
20023         * tree.h (tree_unary_nonzero_warnv_p): Declare.
20024         (tree_binary_nonzero_warnv_p): Declare.
20025         (tree_single_nonzero_warnv_p): Declare.
20026         (tree_expr_nonzero_warnv_p): Declare.
20027         (tree_unary_nonnegative_warnv_p): Declare.
20028         (tree_binary_nonnegative_warnv_p): Declare.
20029         (tree_single_nonnegative_warnv_p): Declare.
20030         (tree_invalid_nonnegative_warnv_p): Declare.
20031
20032 2008-03-28  Richard Guenther  <rguenther@suse.de>
20033
20034         PR tree-optimization/30317
20035         PR tree-optimization/30911
20036         PR tree-optimization/34793
20037         * tree-vrp.c (set_and_canonicalize_value_range): New function.
20038         (struct assert_locus_d): New member EXPR.
20039         (register_new_assert_for): Add EXPR parameter to support
20040         ASSERT_EXPR <name, expr OP limit>.
20041         (register_edge_assert_for_1): Adjust callers.
20042         (find_assert_locations): Likewise.
20043         (process_assert_insertions_for): Build condition from expression.
20044         (extract_range_from_assert): Handle ASSERT_EXPRs
20045         of the form ASSERT_EXPR <name, expr OP limit>.
20046         (register_edge_assert_for_2): New helper registering
20047         asserts for comparisons.  Recognize range tests of the form
20048         (unsigned)i - CST1 OP CST2.
20049         (register_edge_assert_for_1): Use it.
20050         (register_edge_assert_for): Likewise.
20051         (needs_overflow_infinity): Integer sub-types
20052         do not need overflow infinities.
20053         (vrp_val_is_max): The extreme values of integer sub-types
20054         are those of the base type.
20055         (vrp_val_is_min): Likewise.
20056         * tree.def (ASSERT_EXPR): Document extra allowed conditional
20057         expressions.
20058
20059 2008-03-28  Nick Clifton  <nickc@redhat.com>
20060
20061         PR target/31110
20062         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
20063         Return GENERAL_REGS for stack adjustment reloads.
20064
20065 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20066
20067         PR target/31334
20068         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
20069         const_vector when all the vectors are constant.
20070
20071 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
20072
20073         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
20074         comparisons.
20075         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
20076         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
20077         (scc_sf): New.
20078         (s<code>_sf): Use new scc_sf attribute for opcode names.
20079
20080 2008-03-27  Tom Tromey  <tromey@redhat.com>
20081
20082         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
20083         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
20084         config/spu/t-spu-elf, config/i386/t-interix,
20085         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
20086         config/i386/x-darwin, config/i386/x-mingw32,
20087         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
20088         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
20089         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
20090         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
20091         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
20092         config/rs6000/x-darwin, config/rs6000/t-rs6000,
20093         config/score/t-score-elf, config/arm/t-strongarm-pe,
20094         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
20095         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
20096         Revert automatic dependency patch.
20097
20098 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
20099
20100         PR target/35657
20101         * config/i386/i386.c (ix86_function_arg_boundary): Align
20102         decimal floating point to its natural boundary.
20103
20104 2008-03-27  Richard Guenther  <rguenther@suse.de>
20105
20106         PR middle-end/35716
20107         * fold-const.c (fold_comparison): Restrict distinct decl
20108         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
20109         solely rely on operand_equal_p.
20110
20111 2008-03-27  Richard Guenther  <rguenther@suse.de>
20112
20113         PR c/32511
20114         * c-common.c (handle_weak_attribute): Reject combination of
20115         weak and inline.
20116
20117 2008-03-27  Richard Guenther  <rguenther@suse.de>
20118
20119         PR tree-optimization/32810
20120         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
20121         conversions from DECL_INITIAL.
20122         (fold_const_aggregate_ref): Likewise from constructor elements.
20123
20124 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
20125
20126         * tree-affine.h (aff_combination_expand): Declare.
20127         (get_inner_reference_aff): Likewise.
20128         * tree-affine.c (aff_combination_expand): Split out from
20129         tree_to_aff_combination_expand.
20130         (get_inner_reference_aff): New function.
20131         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
20132         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
20133         (struct lim_aux_data): sm_done field removed.
20134         (mem_ref_loc_p, mem_ref_locs_p): New types.
20135         (struct mem_ref): Added id, stored, accesses_in_loop,
20136         indep_loop, dep_loop, indep_ref, dep_ref fields.
20137         Removed is_stored, locs and next fields.
20138         (memory_accesses): New variable.
20139         (movement_possibility): Do not allow moving statements
20140         that store to memory.
20141         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
20142         New functions.
20143         (determine_max_movement): For statements with memory references,
20144         find the outermost loop in that the reference is independent.
20145         (move_computations_stmt): Mark the virtual operands for renaming.
20146         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
20147         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
20148         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
20149         add_vop_ref_mapping, create_vop_ref_mapping_loop,
20150         create_vop_ref_mapping, analyze_memory_references,
20151         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
20152         get_all_locs_in_loop, ref_always_accessed_p,
20153         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
20154         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
20155         store_motion_loop, store_motion): New functions.
20156         (struct vop_to_refs_elt): New type.
20157         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
20158         memref_hash, memref_eq, hoist_memory_references): Rewritten.
20159         (schedule_sm): Replaced by...
20160         (execute_sm): ... this.
20161         (determine_lsm_ref, hoist_memory_references,
20162         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
20163         find_more_ref_vops, free_mem_ref, free_mem_refs,
20164         determine_lsm_loop, determine_lsm): Removed.
20165         (tree_ssa_lim_finalize): Free data structures used by store motion.
20166         (tree_ssa_lim): Call analyze_memory_references.  Use
20167         store_motion instead of determine_lsm.
20168
20169 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
20170
20171         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
20172         rename tmake_file to m68hc11/t-m68hc11.
20173         (mcore): Set inhibit_libc to true.
20174         * config.host (alpha*-dec-*vms*): Set extra_programs.
20175         (interix3*): Don't use host_xmake_file.
20176         * configure.ac: Let config.gcc override inhibit_libc.
20177         * configure: Regenerate.
20178
20179         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
20180         * config/t-openbsd-thread: Remove commented out lines.
20181
20182         * config/x-interix: Remove.
20183
20184         * config/m68hc11/t-m68hc11-gas: Rename to...
20185         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
20186
20187         * config/mcore/t-mcore: Remove T_CFLAGS.
20188         * config/mcore/t-mcore-pe: Likewise.
20189
20190 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
20191
20192         * configure.ac: Replace custom __GNU_SOURCE test with
20193         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
20194         * aclocal.m4: Regenerate.
20195         * configure: Regenerate.
20196         * config.in: Regenerate.
20197
20198 2008-03-27  Richard Guenther  <rguenther@suse.de>
20199
20200         * fold-const.c (target.h): Include.
20201         (fold_comparison): Fold comparison of addresses of decls
20202         that bind locally or of constants.  Consolidate address folding code.
20203         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
20204         results from fold_binary_to_constant.
20205         (compare_values_warnv): Likewise.
20206
20207 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
20208
20209         PR middle-end/35429
20210         * fold-const.c (fold_truthop): Check for integeral types when folding
20211         a == 0 && b == 0 and a != 0 || b != 0 .
20212
20213 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
20214
20215         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
20216
20217 2008-03-26  Andreas Schwab  <schwab@suse.de>
20218
20219         * doc/invoke.texi: Fix use of @item vs. @itemx.
20220
20221 2008-03-26  Tom Tromey  <tromey@redhat.com>
20222
20223         * Makefile.in (build/gensupport.o, build/print-rtl.o,
20224         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
20225         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
20226         build/gencodes.o, build/genconditions.o, build/genconfig.o,
20227         build/genconstants.o, build/genemit.o, build/genextract.o,
20228         build/genflags.o, build/genmddeps.o, build/genopinit.o,
20229         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
20230         options.h.
20231
20232 2008-03-26  Richard Guenther  <rguenther@suse.de>
20233
20234         Revert
20235         2008-03-26  Richard Guenther  <rguenther@suse.de>
20236
20237         * fold-const.c (target.h): Include.
20238         (fold_comparison): Fold comparison of addresses of two decls
20239         that bind locally.  Consolidate address folding code.
20240
20241 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20242
20243         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
20244         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
20245         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
20246         dconstsqrt2, dconstthird, dconste and/or dconst10.
20247         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
20248         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
20249         dconstsqrt2, dconste): Delete.
20250         (init_emit_once): Likewise.  Simplify initializing dconstm1.
20251         Constify variable.
20252         * real.c (get_real_const): New.
20253         * real.h (dconst3, dconst10, dconstm2, dconstthird,
20254         dconstsqrt2, dconste): Delete.
20255         (real_value_const, get_real_const): New.
20256
20257 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
20258
20259         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
20260
20261         * config/i386/i386.c (ix86_function_arg_boundary): Check
20262         BIGGEST_ALIGNMENT instead of 128.
20263         (setup_incoming_varargs_64): Likewise.
20264
20265 2008-03-26  Tom Tromey  <tromey@redhat.com>
20266
20267         * Makefile.in (DEPFILES): Add missing '/'.
20268
20269 2008-03-26  Richard Guenther  <rguenther@suse.de>
20270
20271         * fold-const.c (target.h): Include.
20272         (fold_comparison): Fold comparison of addresses of two decls
20273         that bind locally.  Consolidate address folding code.
20274
20275 2008-03-26  Nick Clifton  <nickc@redhat.com>
20276
20277         PR target/31232
20278         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
20279         not allow INT+INT as a legitimate addressing mode.
20280
20281 2008-03-26  Richard Guenther  <rguenther@suse.de>
20282
20283         * tree-flow.h (widen_bitfield): Remove declaration.
20284         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
20285         (widen_bitfield): Remove function.
20286         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
20287         code.
20288
20289 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20290
20291         PR target/31558
20292         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
20293         error_mark_node's.
20294
20295 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
20296
20297         PR rtl-optimization/35232
20298         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
20299         (forget_old_reloads_1, forget_marked_reloads): Don't clear
20300         reg_reloaded_call_part_clobbered here.
20301         (reload_regs_reach_end_p): New function.
20302         (reload_reg_rtx_for_input): New variable.
20303         (reload_reg_rtx_for_output): Likewise.
20304         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
20305         when reassigning a pseudo register.  Load reloadreg from
20306         reload_reg_rtx_for_input, moving the mode and register
20307         calculation to...
20308         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
20309         instead of the original when deciding whether an input reload
20310         would be a no-op or whether an output reload can be deleted.
20311         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
20312         when setting up new_spill_reg_store.  Load it from
20313         reload_reg_rtx_for_output, moving the mode and register
20314         calculation to...
20315         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
20316         instead of the original when deciding whether an output reload
20317         would be a no-op.  Do the same when modifying insn notes.
20318         Use rtx_equal_p instead of == to compare the registers.
20319         (inherit_piecemeal_p): Take a mode and two register numbers
20320         as argument.
20321         (emit_reload_insns): Clear new_spill_reg_store for every hard
20322         register in the reload register.  Remove spill registers
20323         from reg_reloaded_valid before considering whether to record
20324         inheritance information for them.  Use reload_reg_rtx_for_output
20325         instead of reg_rtx when recording output reloads.  Use
20326         reload_reg_rtx_for_input instead of reg_rtx when recording
20327         input reloads.  Set or clear reg_reloaded_call_part_clobbered
20328         at the same time as setting reg_reloaded_valid.
20329         (delete_output_reload): Add a new_reload_reg parameter and use it
20330         instead of rld[j].reg_rtx.
20331         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
20332         calls accordingly.
20333
20334 2008-03-25  Tom Tromey  <tromey@redhat.com>
20335
20336         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
20337         (build/genattr.o): Likewise.
20338         (build/genattrtab.o): Likewise.
20339         (build/gencodes.o): Likewise.
20340         (build/genconfig.o): Likewise.
20341         (build/genconstants.o): Likewise.
20342         (build/genemit.o): Likewise.
20343         (build/genextract.o): Likewise.
20344         (build/genflags.o): Likewise.
20345
20346 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
20347
20348         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
20349         instead of size_int for integer types.
20350         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
20351         to match type of MINUS_EXPR.
20352
20353 2008-03-25  Tom Tromey  <tromey@redhat.com>
20354
20355         * configure: Rebuilt.
20356         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
20357         Makefile.
20358
20359 2008-03-25  Tom Tromey  <tromey@redhat.com>
20360
20361         * config/x-solaris (host-solaris.o): Update.
20362         * config/x-linux (host-linux.o): Update.
20363         * config/x-hpux (host-hpux.o): Update.
20364         * config/x-darwin (host-darwin.o): Update.
20365         * config/v850/t-v850e (v850-c.o): Update.
20366         * config/v850/t-v850 (v850-c.o): Update.
20367         * config/t-vxworks (vxworks.o): Update.
20368         * config/t-sol2 (sol2-c.o, sol2.o): Update.
20369         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
20370         * config/spu/t-spu-elf (spu-c.o): Update.
20371         (spu.o): Remove.
20372         * config/sh/t-symbian (sh-c.o): Update.
20373         (symbian.o): Update.
20374         * config/sh/t-sh (sh-c.o): Update.
20375         * config/score/t-score-elf (score7.o, score3.o): Update.
20376         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
20377         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
20378         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
20379         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
20380         (rs6000.o): Remove.
20381         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
20382         * config/m32c/t-m32c (m32c-pragma.o): Update.
20383         * config/ia64/t-ia64 (ia64-c.o): Update.
20384         * config/i386/x-mingw32 (host-mingw32.o): Update.
20385         * config/i386/x-i386 (driver-i386.o): Update.
20386         * config/i386/x-darwin (host-i386-darwin.o): Update.
20387         * config/i386/x-cygwin (host-cygwin.o): Update.
20388         * config/i386/t-nwld (nwld.o): Update.
20389         * config/i386/t-netware (netware.o): Update.
20390         * config/i386/t-interix (winnt.o): Update.
20391         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
20392         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
20393         msformat-c.o): Update.
20394         * config/bfin/t-bfin-linux (generated_files): Add
20395         linux-sysroot-suffix.h.
20396         * config/arm/t-wince-pe (pe.o): Update.
20397         * config/arm/t-strongarm-pe (pe.o): Update.
20398         * config/arm/t-pe (pe.o): Update.
20399         * config/arm/t-arm (arm-c.o): Update.
20400         * doc/install.texi (Prerequisites): Require make 3.80.
20401         * Makefile.in: Remove .o targets.
20402         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
20403         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
20404         (simple_generated_h, simple_generated_c): Move earlier.
20405         (generated_files): New variable.
20406         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
20407         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
20408         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
20409         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
20410         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
20411         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
20412         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
20413         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
20414         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
20415         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
20416         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
20417         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
20418         (.c.o): Remove.
20419         (COMPILE.base, COMPILE): New variables.
20420         (%.o): New pattern rule.
20421         (ALL_HOST_OBJS): New variable.
20422         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
20423         (dummy-checksum.o, cc1-checksum.o): Remove.
20424         (DRIVER_SHLIB): New variable.
20425         (DRIVER_DEFINES): Use it.
20426         (gencondmd.c): Move out of build/.
20427         (s-conditions): Update.
20428         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
20429         (ALL_BUILD_OBJS): Likewise.
20430         (build/%.o): Use BUILDCOMPILE.
20431         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
20432         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
20433         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
20434         build/gencheck.o, build/gencodes.o, build/genconditions.o,
20435         build/genconfig.o, build/genconstants.o, build/genemit.o,
20436         build/genextract.o, build/genflags.o, build/genmddeps.o,
20437         build/genopinit.o, build/genoutput.o, build/genpeep.o,
20438         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
20439         build/gen-protos.o, build/scan.o, build/fix-header.o,
20440         build/scan-decls.o): Simplify.
20441         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
20442         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
20443         prefix.o, toplev.o): Reduce to variable setting.
20444         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
20445         ($(out_object_file), gcc-options.o): New targets.
20446         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
20447         * configure: Rebuilt.
20448         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
20449         * doc/sourcebuild.texi (Front End Directory): Document new variable.
20450
20451 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
20452
20453         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
20454         complain when we hit an error, return ERROR_MARK_NODE.
20455
20456 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
20457
20458         * config/sh/constraints.md (Pso, Psz): New constraints.
20459         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
20460         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
20461
20462 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
20463
20464         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
20465         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
20466
20467 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
20468
20469         * config/sh/sh.md (prefetch): Add condition for SH2A target.
20470         (prefetch_sh2a): New.
20471
20472 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
20473             Naveen.H.S  <naveen.hs@kpitcummins.com>
20474
20475         * config/sh/constraints.md (I28): New constraint.
20476         * config/sh/sh.c (broken_move): Add support for movi20s.
20477         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
20478
20479 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
20480             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
20481             Naveen.H.S  <naveen.hs@kpitcummins.com>
20482
20483         * config/sh/sh.c (SH_ATTRIBUTES): Define.
20484         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
20485         (print_operand): Handle resbank in %@ operand code.
20486         (sh_encode_section_info): New.
20487         (push_regs): Add conditions for resbank.
20488         (sh_expand_epilogue): Likewise.
20489         (sh_insert_attributes): Likewise.
20490         (sh_attribute_table): Likewise.
20491         (sh_handle_resbank_handler_attribute): New.
20492         (sh2a_handle_function_vector_handler_attribute): New.
20493         (sh2a_is_function_vector_call): New.
20494         (sh2a_get_function_vector_number): New.
20495         (sh2a_function_vector_p): New.
20496         (sh_cfun_resbank_handler_p): New.
20497         * config/sh/sh.md (calli): Emit jsr/n if possible.
20498         (calli_tbr_rel): New.
20499         (calli_pcrel): Emit jsr/n if possible.
20500         (return_i): Emit rts/n if possible.
20501         (call_valuei_tbr_rel): New.
20502         (call_valuei_pcrel): Add condition for SH2A target.
20503         (call_value): Likewise.
20504         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
20505         (sh2a_get_function_vector_number): Likewise.
20506         (sh2a_is_function_vector_call): Likewise.
20507         * doc/extend.texi: Document TBR relative addressing of SH2A.
20508         (resbank): Add description for SH2A.
20509
20510 2008-03-24  Richard Guenther  <rguenther@suse.de>
20511
20512         PR c/22371
20513         * gimplify.c (gimplify_modify_expr): For frontend type-correct
20514         pointer assignments change conversions according to middle-end rules.
20515         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
20516         * configure.ac: Include type checking in yes.
20517         * configure: Regenerate.
20518
20519 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20520
20521         * diagnostic.c (diagnostic_count_diagnostic): Delete.
20522         (diagnostic_report_diagnostic): Update. Handle ICEs here.
20523
20524 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
20525
20526         * gthr-vxworks.h (UNUSED): Define.
20527
20528 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
20529
20530         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
20531
20532 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
20533
20534         * doc/extend.texi (Function Attributes): Add missing comma in the
20535         example of the "alloc_size" attribute.
20536
20537 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
20538
20539         Revert:
20540         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
20541
20542         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
20543         32bit host.
20544
20545         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
20546
20547         PR target/35496
20548         * stor-layout.c (update_alignment_for_field): Set minimum alignment
20549         of the underlying type of a MS bitfield layout to the natural
20550         alignment of the type.
20551
20552         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
20553
20554         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
20555         to their natural alignment to avoid store forwarding stalls.
20556
20557 2008-03-22  Richard Guenther  <rguenther@suse.de>
20558
20559         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
20560         For PHI nodes verify the address is invariant.
20561         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
20562         (get_symbol_constant_value): Use is_gimple_min_invariant.
20563         (maybe_fold_stmt_indirect): Likewise.
20564
20565 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
20566
20567         PR rtl-optimization/33927
20568         * Makefile.in (dse.o): Depend on $(TM_P_H).
20569         * expr.h (extract_low_bits): Declare.
20570         * expmed.c (extract_low_bits): New function.
20571         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
20572         * dse.c: Include tm_p.h.
20573         (find_shift_sequence): Remove the read_reg argument and return the
20574         read value.  Emit the instructions instead of returning them.
20575         Iterate on new_mode rather than calculating it each time.
20576         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
20577         source to NEW_MODE and extract_low_bits to convert the shifted
20578         value to READ_MODE.
20579         (replace_read): Allow the load and store to have different mode
20580         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
20581         or extraction instructions before trying the replacement.  Update
20582         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
20583
20584 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
20585
20586         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
20587         to their natural alignment to avoid store forwarding stalls.
20588
20589 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20590
20591         PR target/27946
20592         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
20593         encouraging but not allowing gprs for input;
20594         change the input constraint to !f#r.
20595         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
20596         gprs for output;
20597         change the output constraint to !f#r.
20598
20599 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
20600
20601         PR target/13958
20602         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
20603         corresponding post-reload splitters.
20604         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
20605         when x87 FP math is selected.
20606         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
20607         New function prototype.
20608         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
20609         unreachable function to ease macroization of insn patterns.
20610
20611 2008-03-21  Martin Jambor  <mjambor@suse.cz>
20612
20613         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
20614         reference dumps if ddr is NULL or dependence is unknown.
20615
20616 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
20617
20618         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
20619         unsigned extension into account.
20620         (ATOMIC_COMPARE_AND_SWAP): Likewise.
20621         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
20622         Do computations on a scratch register.
20623
20624 2008-03-21  Richard Guenther  <rguenther@suse.de>
20625
20626         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
20627         Use is_gimple_min_invariant instead of TREE_INVARIANT.
20628         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
20629         * tree-ssa-dom.c (record_equality): Likewise.
20630         * tree-inline.c (copy_body_r): Likewise.
20631         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
20632         TREE_INVARIANT.
20633
20634 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
20635
20636         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
20637         as 'delete_unused' argument.
20638
20639 2008-03-20  Richard Guenther  <rguenther@suse.de>
20640
20641         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
20642         special casing of constant qualifiers.
20643         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
20644         care about them in general.
20645         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
20646         regardless of their type.
20647         (fold_stmt_r): Forcefully fold *& if we end up with that.
20648
20649 2008-03-20  Paul Brook  <paul@codesourcery.com>
20650
20651         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
20652         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
20653         linker flags.
20654         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
20655         definition.
20656         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
20657         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
20658
20659 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
20660
20661         * common.opt (Wmudflap): New option.
20662         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
20663         (mx_register_decls): Likewise.
20664         (mudflap_finish_file): Likewise.
20665         * doc/invoke.texi: Document -Wno-mudflap.
20666
20667 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
20668
20669         * c-format.c (replace_format_name_to_system_name): New.
20670         (cmp_attribs): New.
20671         (convert_format_name_to_system_name): New.
20672         (decode_format_attr): Add use of convert_format_name_to_system_name.
20673         (format_types_orig): Add gnu_ prefix to names.
20674         (check_format_info_main): Special treating of \0 escaped names for
20675         supporting multi-character format specifiers as I32, I64.
20676         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
20677         (gnu_target_overrides_format_attributes): New.
20678         * c-format.h: Add structure target_ovr_attr to hold
20679         system specific formatter names.
20680         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
20681         msformat-c.o file to c_target_objs and cxx_target_objs.
20682         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
20683         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
20684         (TARGET_N_FORMAT_TYPES): New.
20685         * config/i386/msformat-c.c: New.
20686         * config/i386/t-cygming: Add build rule for msformat-c.o.
20687         * doc/extend.texi: Add new format names gnu_* and ms_* and
20688         further details.
20689         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
20690
20691 2008-03-20  Ira Rosen  <irar@il.ibm.com>
20692
20693         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
20694         optimizations turned on under -O3.
20695         (ftree-vectorize): Add that the flag is turned on with -O3.
20696
20697 2008-03-20  Ben Elliston  <bje@au.ibm.com>
20698
20699         * regmove.c (try_auto_increment): Fix spelling error in comment.
20700         * final.c (final_scan_insn): Likewise.
20701
20702 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
20703
20704         PR target/14552
20705         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
20706         allocator preferences for "y" and "r" class registers.
20707         ("*mov<mode>_internal"): Ditto.
20708         ("*movv2sf_internal_rex64"): Ditto.
20709         ("*movv2sf_internal"): Ditto.
20710
20711 2008-03-19  Michael Matz  <matz@suse.de>
20712
20713         PR middle-end/35616
20714         * calls.c (expand_call): Check overlap of arguments with call
20715         address for sibcalls.
20716
20717 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
20718
20719         PR target/35496
20720         * stor-layout.c (update_alignment_for_field): Set minimum alignment
20721         of the underlying type of a MS bitfield layout to the natural
20722         alignment of the type.
20723
20724 2008-03-19  Jan Hubicka  <jh@suse.cz>
20725
20726         PR other/35094
20727         * toplev.c (decode_d_option): Handle all CPP flags.
20728         * tree-vrp.c: Update tree_pass descriptors.
20729         * regrename.c: Update tree_pass descriptors.
20730         * fwprop.c: Update tree_pass descriptors.
20731         * doc/invoke.texi: Remove documentation of dropped -d? flags.
20732         * tree-into-ssa.c: Update tree_pass descriptors.
20733         * tree-dump.c: Update tree_pass descriptors.
20734         * tree-complex.c: Update tree_pass descriptors.
20735         * tree-dump.h: Update tree_pass descriptors.
20736         * see.c: Update tree_pass descriptors.
20737         * cgraphbuild.c: Update tree_pass descriptors.
20738         * tracer.c: Update tree_pass descriptors.
20739         * tree-loop-distribution.c: Update tree_pass descriptors.
20740         * cgraph.c: Update tree_pass descriptors.
20741         * postreload-gcse.c: Update tree_pass descriptors.
20742         * postreload.c: Update tree_pass descriptors.
20743         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
20744         * tree-tailcall.c: Update tree_pass descriptors.
20745         * tree-pass.h (tree_opt_pass): Rename to ...
20746         (opt_pass) ... this one; add "type" field and remove letter field.
20747         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
20748         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
20749         all_lowering_passes): Update declaration.
20750         * ipa-cp.c: Update tree_pass descriptors.
20751         * final.c: Update tree_pass descriptors.
20752         * omp-low.c: Update tree_pass descriptors.
20753         * tree-ssa-dse.c: Update tree_pass descriptors.
20754         * ipa-reference.c: Update tree_pass descriptors.
20755         * tree-ssa-uncprop.c: Update tree_pass descriptors.
20756         * auto-inc-dec.c: Update tree_pass descriptors.
20757         * reorg.c: Update tree_pass descriptors.
20758         * cgraphunit.c: Update tree_pass descriptors.
20759         * tree-ssa-copyrename.c: Update tree_pass descriptors.
20760         * tree-ssa-ccp.c: Update tree_pass descriptors.
20761         * df-core.c: Update tree_pass descriptors.
20762         * mode-switching.c: Update tree_pass descriptors.
20763         * tree-nomudflap.c: Update tree_pass descriptors.
20764         * modulo-sched.c: Update tree_pass descriptors.
20765         * ipa-pure-const.c: Update tree_pass descriptors.
20766         * cse.c: Update tree_pass descriptors.
20767         * web.c: Update tree_pass descriptors.
20768         * tree-stdarg.c: Update tree_pass descriptors.
20769         * tree-ssa-math-opts.c: Update tree_pass descriptors.
20770         * tree-ssa-dom.c: Update tree_pass descriptors.
20771         * tree-nrv.c: Update tree_pass descriptors.
20772         * tree-ssa-alias.c: Update tree_pass descriptors.
20773         * loop-init.c: Update tree_pass descriptors.
20774         * gimple-low.c: Update tree_pass descriptors.
20775         * ipa-inline.c: Update tree_pass descriptors.
20776         * tree-ssa-sink.c: Update tree_pass descriptors.
20777         * global.c: Update tree_pass descriptors.
20778         * ifcvt.c: Update tree_pass descriptors.
20779         * jump.c: Update tree_pass descriptors.
20780         * predict.c: Update tree_pass descriptors.
20781         * tree-ssa-loop.c: Update tree_pass descriptors.
20782         * recog.c: Update tree_pass descriptors.
20783         * dse.c: Update tree_pass descriptors.
20784         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
20785         * tree-eh.c: Update tree_pass descriptors.
20786         * regmove.c: Update tree_pass descriptors.
20787         * local-alloc.c
20788         * function.c: Update tree_pass descriptors.
20789         * tree-vectorizer.c: Update tree_pass descriptors.
20790         * gcse.c: Update tree_pass descriptors.
20791         * ipa-type-escape.c: Update tree_pass descriptors.
20792         * tree-if-conv.c: Update tree_pass descriptors.
20793         * init-regs.c: Update tree_pass descriptors.
20794         * ipa.c: Update tree_pass descriptors.
20795         * tree-ssa-phiopt.c: Update tree_pass descriptors.
20796         * rtl-factoring.c: Update tree_pass descriptors.
20797         * lower-subreg.c: Update tree_pass descriptors.
20798         * bt-load.c: Update tree_pass descriptors.
20799         * tree-dfa.c: Update tree_pass descriptors.
20800         * except.c: Update tree_pass descriptors.
20801         * emit-rtl.c: Update tree_pass descriptors.
20802         * cfgexpand.c: Update tree_pass descriptors.
20803         * tree-cfgcleanup.c: Update tree_pass descriptors.
20804         * cfgcleanup.c: Update tree_pass descriptors.
20805         * tree-ssa-pre.c: Update tree_pass descriptors.
20806         * tree-sra.c: Update tree_pass descriptors.
20807         * tree-mudflap.c: Update tree_pass descriptors.
20808         * tree-ssa-copy.c: Update tree_pass descriptors.
20809         * cfglayout.c: Update tree_pass descriptors.
20810         * tree-ssa-forwprop.c: Update tree_pass descriptors.
20811         * tree-ssa-dce.c: Update tree_pass descriptors.
20812         * tree-ssa.c: Update tree_pass descriptors.
20813         * regclass.c: Update tree_pass descriptors.
20814         * integrate.c: Update tree_pass descriptors.
20815         * tree-optimize.c: Update tree_pass descriptors.
20816         * tree-ssa-phiprop.c: Update tree_pass descriptors.
20817         * tree-object-size.c: Update tree_pass descriptors.
20818         * combine.c: Update tree_pass descriptors.
20819         * tree-outof-ssa.c: Update tree_pass descriptors.
20820         * bb-reorder.c: Update tree_pass descriptors.
20821         * stack-ptr-mod.c: Update tree_pass descriptors.
20822         * var-tracking.c: Update tree_pass descriptors.
20823         * tree-profile.c: Update tree_pass descriptors.
20824         * tree-vect-generic.c: Update tree_pass descriptors.
20825         * reg-stack.c: Update tree_pass descriptors.
20826         * sched-rgn.c: Update tree_pass descriptors.
20827         * tree-ssa-structalias.c: Update tree_pass descriptors.
20828         * tree-cfg.c: Update tree_pass descriptors.
20829         * passes.c (current_pass): Update declaration.
20830         (finish_optimization_passes): Update.
20831         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
20832         (register_one_dump_file, register_dump_files_1, next_pass_1):
20833         Update arguments.
20834         (init_optimization_passes): Update handling of new types.
20835         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
20836         * ipa-struct-reorg.c: Update tree_pass descriptors.
20837         * tree-ssa-reassoc.c: Update tree_pass descriptors.
20838         * combine-stack-adj.c: Update tree_pass descriptors.
20839         * cfgrtl.c: Update tree_pass descriptors.
20840         * dce.c: Update tree_pass descriptors.
20841         * tree-ssanames.c: Update tree_pass descriptors.
20842
20843 2008-03-19  Richard Guenther  <rguenther@suse.de>
20844
20845         PR middle-end/35609
20846         * tree-ssa.c (walk_data): New structure.
20847         (warn_uninitialized_var): If not always_executed warn with "maybe"
20848         instead of "is".
20849         (execute_early_warn_uninitialized): Compute post-dominators.
20850         Initialize always_executed before processing each basic block.
20851
20852 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
20853
20854         PR target/35504
20855         * config/i386/i386.c (x86_this_parameter): Calculate correct location
20856         of "this" pointer when "regparm = N" or "fastcall" is in effect.
20857
20858 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20859
20860         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
20861
20862 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
20863
20864         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
20865         is true.
20866         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
20867         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
20868         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
20869         target after ignore has been set, and move there also the commputation
20870         of subtarget and original_target.
20871         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
20872         (LANG_HOOKS_INITIALIZER): Remove it.
20873         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
20874
20875 2008-03-18  Richard Guenther  <rguenther@suse.de>
20876
20877         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
20878         found an expression with constants, note that in the VN for the lhs.
20879         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
20880         fold them to constants if possible.  Run cleanup_cfg if done so.
20881         (execute_pre): Return todo.
20882         (do_pre): Likewise.
20883         (execute_fre): Likewise.
20884         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
20885         of constants.
20886         (get_prop_source_stmt): Look through pointer conversions.
20887
20888 2008-03-18  Jan Hubicka  <jh@suse.cz>
20889
20890         * tree-pretty-print.c: Include predict.h.
20891         (dump_generic_node): Dump predictor.
20892         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
20893         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
20894         * gimple-low.c (lower_stmt): Likewise.
20895         * expr.c (expand_expr_real): Likewise.
20896         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
20897         them.
20898         (build_predict_expr, build_predict_expr): New.
20899         * predict.h (predictor_name, build_predict_expr): Update.
20900         * c-typeck.c (c_finish_bc_stmt): Add prediction.
20901         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
20902         * predict.def (PRED_CONTINUE): Update hitrate.
20903         * tree.def (PREDICT_EXPR): Define.
20904         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
20905         do not handle BIND_EXPR.
20906         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
20907         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
20908         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
20909         operands.
20910
20911 2008-03-18  Michael Matz  <matz@suse.de>
20912
20913         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
20914
20915 2008-03-18  Richard Guenther  <rguenther@suse.de>
20916
20917         * tree-gimple.h (is_gimple_invariant_address): Declare.
20918         (is_gimple_constant): Likewise.
20919         * tree-gimple.c (is_gimple_constant): New function.
20920         (is_gimple_invariant_address): Likewise.
20921         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
20922         and is_gimple_invariant_address.
20923         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
20924         previous change.
20925         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
20926         an addressable base.
20927
20928 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
20929
20930         PR middle-end/35611
20931         * gimplify.c (gimplify_expr): Gimplify second operand of
20932         OMP_ATOMIC_LOAD.
20933
20934 2008-03-17  Richard Guenther  <rguenther@suse.de>
20935
20936         PR tree-optimization/19637
20937         * fold-const.c (fold_unary): Remove restrictions of removing
20938         intermediate pointer-conversions (P2)(P1)P0.
20939         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
20940         conversion to void pointer.
20941         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
20942
20943 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
20944
20945         PR debug/31510
20946         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
20947         emulated thread local variables.
20948
20949 2008-03-16  Richard Guenther  <rguenther@suse.de>
20950
20951         PR middle-end/35607
20952         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
20953         expand TREE_INVARIANT operations that are not gimple invariant.
20954
20955 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
20956
20957         * doc/extend.texi (Alignment): Say that the ABI controls
20958         the __alignof__ for non-strict-alignment targets rather
20959         than being a recommendation.
20960
20961 2008-03-15  Paul Brook  <paul@codesourcery.com>
20962
20963         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
20964         annotations.
20965         (arm_output_fn_unwind): Mark functions that can not be unwound.
20966
20967 2008-03-15  Paul Brook  <paul@codesourcery.com>
20968
20969         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
20970         extension instructions.
20971
20972 2008-03-15  Richard Guenther  <rguenther@suse.de>
20973
20974         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
20975         and fold constant aggregate refs.
20976         (fold_const_aggregate_ref): Handle string constants
20977         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
20978         (evaluate_stmt): Simplify now that ccp_fold folds constant
20979         aggregate refs.
20980
20981 2008-03-15  Paul Brook  <paul@codesourcery.com>
20982
20983         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
20984         (extzv): Use gen_extzv_t2.
20985         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
20986
20987 2008-03-15  Richard Guenther  <rguenther@suse.de>
20988
20989         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
20990         (fold_const_aggregate_ref): Likewise.
20991         (get_value): Return NULL if we don't have any values.
20992         (ccp_finalize): Set const_val to NULL after freeing it.
20993         * tree-flow.h (get_symbol_constant_value): Declare.
20994         (fold_const_aggregate_ref): Likewise.
20995         * tree-ssa-sccvn.c (try_to_simplify): Use them.
20996
20997 2008-03-15  Richard Guenther  <rguenther@suse.de>
20998
20999         PR middle-end/35593
21000         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
21001         to not produce negative array indices if not allowed.  Add
21002         parameter to indicate that.
21003         (maybe_fold_offset_to_component_ref): Allow negative array
21004         indices only for the first member of a structure.
21005         (maybe_fold_offset_to_reference): Allow negative array indices.
21006         (maybe_fold_stmt_addition): Likewise.
21007
21008 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
21009             Anatoly Sokolov <aesok@post.ru>
21010
21011         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
21012         (avr_arch): Add ARCH_AVR6.
21013         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
21014         (initial_elimination_offset): Initialize and use 'avr_pc_size'
21015         instead of fixed value 2.
21016         (print_operand_address): Use gs() asm specifier instead of pm().
21017         (avr_assemble_integer): (Ditto.).
21018         (avr_output_addr_vec_elt): (Ditto.).
21019         (print_operand): Handle "!" code.
21020         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
21021         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
21022         (AVR_HAVE_EIJMP_EICALL): Define.
21023         (AVR_3_BYTE_PC): Redefine.
21024         (AVR_2_BYTE_PC): (Ditto.).
21025         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
21026         (LINK_SPEC): Add atmega2560 and atmega2561.
21027         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
21028         (crtm2561.o).
21029         * config/avr/avr.md (call_insn): Use eicall instead of icall
21030         for 3 byte PC devices.
21031         (call_value_insn): (Ditto.).
21032         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
21033         (indirect_jump): Use only for for 2 byte PC devices.
21034         (*tablejump): (Ditto.).
21035         (*indirect_jump_avr6): Add insn.
21036         (*tablejump_rjmp): Don't use for 3 byte PC devices.
21037         * config/avr/libgcc.S (__prologue_saves__): Use eijmp
21038         instead of ijmp for 3 byte PC devices.
21039         (__tablejump2__): (Ditto.).
21040         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
21041         (MULITLIB_DIRNAMES): (Ditto.).
21042         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
21043
21044 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
21045
21046         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
21047         "sse2_umulsidi3".  Use V1DI mode for operand 0.
21048         ("mmx_psadbw"): Use V1DI mode for operand 0.
21049         * config/i386/i386-modes.def (V1SI): New vector mode.
21050         * config/i386/i386.c (struct builtin_description)
21051         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
21052         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
21053         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
21054         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
21055         v1di_ftype_v8qi_v8qi type.
21056         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
21057
21058         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
21059         __builtin_ia32_pmuludq]: Fix the mode of return value.
21060
21061 2008-03-15  Richard Guenther  <rguenther@suse.de>
21062
21063         PR middle-end/35595
21064         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
21065         being a PHI_NODE.
21066
21067 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
21068
21069         * doc/invoke.texi (Option Summary, Xtensa Options): Document
21070         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
21071         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
21072         unless TARGET_SERIALIZE_VOLATILE is enabled.
21073         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
21074         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
21075         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
21076
21077 2008-03-14  Richard Guenther  <rguenther@suse.de>
21078
21079         PR tree-optimization/34172
21080         * tree-flow.h (refs_may_alias_p): Declare.
21081         (get_single_def_stmt): Likewise.
21082         (get_single_def_stmt_from_phi): Likewise.
21083         (get_single_def_stmt_with_phi): Likewise.
21084         * tree-dfa.c (refs_may_alias_p): New function.
21085         (get_single_def_stmt): Likewise.
21086         (get_single_def_stmt_from_phi): Likewise.
21087         (get_single_def_stmt_with_phi): Likewise.
21088         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
21089         (vn_reference_lookup_1): New helper function.
21090         (vn_reference_lookup): Walk the virtual use-def chain to
21091         continue searching for a match if the def does not alias the
21092         reference we are looking for.
21093
21094 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
21095
21096         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
21097         archive and Perzl.  Update The Written Word listing.
21098
21099 2008-03-14  Richard Guenther  <rguenther@suse.de>
21100
21101         PR tree-optimization/34043
21102         PR tree-optimization/33989
21103         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
21104         when doing FRE.
21105         (bitmap_find_leader): Use extra argument to verify dominance
21106         relationship inside a basic-block.
21107         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
21108         (find_leader_in_sets): Adjust.
21109         (create_component_ref_by_pieces): Take extra argument for
21110         dominance check, handle lookup failures.
21111         (find_or_generate_expression): Likewise.
21112         (create_expression_by_pieces): Likewise.
21113         (insert_into_preds_of_block): Adjust.
21114         (create_value_expr_from): If asked for, verify all operands
21115         are in the blocks AVAIL_OUT set.
21116         (make_values_for_stmt): Check for SSA_NAMEs that are life
21117         over an abnormal edge.
21118         (compute_avail): Remove such check.
21119         (do_SCCVN_insertion): New function.
21120         (eliminate): If we do not find a leader suitable for replacement
21121         insert a replacement expression from SCCVN if available.
21122         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
21123         (struct vn_ssa_aux): Add needs_insertion flag.
21124         * tree-ssa-sccvn.c (may_insert): New global flag.
21125         (copy_reference_ops_from_ref): Value-number union member access
21126         based on its size, not type and member if insertion is allowed.
21127         (visit_reference_op_load): For a weak match from union type
21128         punning lookup a view-converted value and insert a SSA_NAME
21129         for that value if that is not found.
21130         (visit_use): Make dumps shorter.  Do not disallow value numbering
21131         SSA_NAMEs that are life over an abnormal edge to constants.
21132         (free_scc_vn): Release inserted SSA_NAMEs.
21133         (run_scc_vn): New flag to specify whether insertion is allowed.
21134         Process SSA_NAMEs in forward order.
21135         * tree-ssa-loop-im.c (for_each_index): Handle invariant
21136         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
21137         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
21138         pointer type to/from integral types that do not change the
21139         precision to regular conversions.
21140
21141 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
21142
21143         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
21144         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
21145         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
21146         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
21147         input arguments and the mode of return value.  Built-in functions
21148         that operate on whole 64-bit MMX register now use V1DI mode.
21149
21150 2008-03-13  Alon Dayan  <alond@il.ibm.com>
21151             Olga Golovanevsky  <olga@il.ibm.com>
21152
21153         PR tree-optimization/35041
21154         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
21155         to locate the right position in a statement.
21156
21157 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
21158
21159         PR target/34000
21160         PR target/35553
21161         * config/i386/xmmintrin.h:  Change all static inline functions to
21162         extern inline and add __gnu_inline__ attribute.
21163         * config/i386/bmintrin.h: Ditto.
21164         * config/i386/smmintrin.h: Ditto.
21165         * config/i386/tmmintrin.h: Ditto.
21166         * config/i386/mmintrin-common.h: Ditto.
21167         * config/i386/ammintrin.h: Ditto.
21168         * config/i386/emmintrin.h: Ditto.
21169         * config/i386/pmmintrin.h: Ditto.
21170         * config/i386/mmintrin.h: Ditto.
21171         * config/i386/mm3dnow.h: Ditto.
21172
21173 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
21174
21175         PR middle-end/35185
21176         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
21177         (lower_omp_2): New function.
21178         (lower_omp_1, lower_omp): Rewritten.
21179
21180 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
21181
21182         PR 35054
21183         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
21184         with the phrase "Microsoft Windows compilers".
21185         (Push/Pop Macro Pragmas): New subsection. Document
21186         #pragma push_macro and pragma pop_macro.
21187
21188 2008-03-12  Paul Brook  <paul@codesourcery.com>
21189
21190         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
21191
21192 2008-03-12  Paul Brook  <paul@codesourcery.com>
21193
21194         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
21195         (thumb2_alusi3_short): Exclude PLUS and MINUS.
21196         (thumb2_addsi_shortim): Rename ...
21197         (thumb2_addsi_short): ... to this.  Allow register operands.
21198         (thumb2_subsi_short): New pattern.
21199         (thumb2_one_cmplsi2_short,
21200         thumb2_negsi2_short): New patterns and peepholes.
21201
21202 2008-03-12  Paul Brook  <paul@codesourcery.com>
21203
21204         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
21205
21206 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
21207
21208         * config/i386/i386.md (int_cond): New code iterator.
21209         (fp_cond): Ditto.
21210         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
21211         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
21212         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
21213         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
21214         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
21215         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
21216         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
21217         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
21218
21219 2008-03-12  Paul Brook  <paul@codesourcery.com>
21220
21221         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
21222         instead of {arm,thumb}_compute_save_reg_mask.
21223         (output_return_instruction): Ditto.
21224         (thumb_unexpanded_epilogue): Ditto.
21225         (thumb1_expand_prologue): Ditto.
21226         (thumb1_output_function_prologue): Ditto.
21227         (arm_set_return_address): Ditto.
21228         (thumb_set_return_address): Ditto.
21229         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
21230         regs to achieve stack alignment.
21231         (thumb1_compute_save_reg_mask): Fix compiler warning.
21232         (arm_output_epilogue): Use offsets->saved_regs_mask.
21233         Adjust stack pointer by poping call clobered registers.
21234         (arm_expand_prologue): Use offsets->saved_regs_mask.
21235         Adjust stack pointer by pushing extra registers.
21236         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
21237
21238 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
21239
21240         PR tree-opt/35422
21241         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
21242         conversion to the operands of a multiplication.
21243
21244 2008-03-12  Richard Guenther  <rguenther@suse.de>
21245
21246         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
21247         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
21248         * timevar.def (TV_TREE_PHIPROP): Add.
21249         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
21250         pass description.  Use TV_TREE_PHIPROP.
21251         * tree-ssa-forwprop.c: Remove phiprop code.
21252
21253 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
21254
21255         PR middle-end/35549
21256         * omp-low.c (maybe_lookup_decl): Constify first argument.
21257         (use_pointer_for_field): Change last argument from bool to
21258         omp_context *.  Disallow shared copy-in/out in nested
21259         parallel if decl is shared in outer parallel too.
21260         (build_outer_var_ref, scan_sharing_clauses,
21261         lower_rec_input_clauses, lower_copyprivate_clauses,
21262         lower_send_clauses, lower_send_shared_vars): Adjust callers.
21263
21264 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
21265             Ira Rosen  <irar@il.ibm.com>
21266
21267         * tree-vectorizer.c (free_stmt_vec_info): New function.
21268         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
21269         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
21270         * tree-vectorizer.h (free_stmt_vec_info): Declare.
21271         * tree-vect-transform.c (vectorizable_conversion): Free
21272         vec_oprnds0 if it was allocated.
21273         (vect_permute_store_chain): Remove unused VECs.
21274         (vectorizable_store): Free VECs that are allocated in the..
21275         function.
21276         (vect_transform_strided_load, vectorizable_load): Likewise.
21277         (vect_remove_stores): Simplify the code.
21278         (vect_transform_loop): Move code to vect_remove_stores().
21279         Call vect_remove_stores() and free_stmt_vec_info().
21280
21281 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21282
21283         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
21284         TARGET_HPUX.  Revise comment.
21285         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
21286         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
21287         Use sr4 variant of `be' instruction when not generating PIC code.
21288         (attr_length_call): Adjust for above change.
21289
21290 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21291
21292         * ipa-reference.c (static_execute): Remove module_statics_const and
21293         associated setting code.
21294
21295 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
21296
21297         PR target/35540
21298         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
21299         predicate for operand 1.
21300         (paritysi2_cmp): Use register_operand predicate for operand 2.
21301         Use earlyclobber modifier for operand 1.  Remove support for
21302         memory operands.
21303         (paritydi2_cmp): Use register_operand predicate for operand 3.
21304         Use earlyclobber modifier for operand 1.  Remove support for
21305         memory operands.
21306
21307 2008-03-11  Paul Brook  <paul@codesourcery.com>
21308             Vladimir Prus  <vladimir@codesourcery.com>
21309
21310         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
21311         (arm_compute_save_reg0_reg12_mask): Always
21312         check if register 11 must be saved.  Always safe hard frame pointer
21313         when frame_pointer_needeed.
21314         (arm_compute_save_reg_mask): Save IP and PC
21315         only with apcs frames.
21316         (arm_output_epilogue): Adjust Thumb2 codepath to
21317         be also invoked and work for ARM non-apcs frames.
21318         (arm_expand_prologue): Don't bother saving IP
21319         for non-apcs frame, since it's not clobbered by
21320         prologue code.  Implement non-apcs frame
21321         layout.
21322
21323 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
21324
21325         PR rtl-optimization/35281
21326         * expr.c (convert_move): Use a new pseudo for the intermediate
21327         from_mode->word_mode result.
21328
21329 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
21330
21331         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
21332         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
21333         * toplev.c (compile_file): Don't call it.
21334
21335 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
21336
21337         PR middle-end/35526
21338         * expr.c (store_expr): Call emit_block_move if the mode
21339         of "temp" RTX is BLKmode.
21340
21341 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21342             Richard Guenther  <rguenther@suse.de>
21343
21344         PR tree-optimization/31358
21345         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
21346         the step with a NULL_TREE.
21347         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
21348         to sizetype if type is a pointer type.
21349         (add_candidate_1): Don't convert the base and step to
21350         the generic type if the orginal type is a pointer type.
21351         (add_iv_value_candidates): Use sizetype for the step
21352         if type is a pointer type.
21353         (cand_value_at): Likewise.
21354         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
21355         for pointer types.
21356         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
21357         Don't convert the tem affine to the type.
21358         (add_elt_to_tree): Use sizetype for the step if a pointer.
21359         Use POINTER_PLUS_EXPR for pointers.
21360         (aff_combination_to_tree): Use sizetype for the step if a
21361         pointer.
21362
21363 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
21364
21365         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
21366         Remove commutativity hint.
21367
21368 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
21369
21370         PR c/35438
21371         PR c/35439
21372         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
21373         errorneous type.  Check that v is a VAR_DECL.
21374
21375         PR middle-end/35099
21376         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
21377
21378 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
21379
21380         PR tree-optimization/35494
21381         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
21382         may be overriden at link and run time.
21383
21384 2008-03-10  Richard Guenther  <rguenther@suse.de>
21385
21386         PR tree-optimization/34677
21387         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
21388         (poolify_tree): Likewise.
21389         (modify_expr_template): Likewise.
21390         (poolify_modify_stmt): Likewise.
21391         (insert_fake_stores): Handle all component-ref style stores
21392         in addition to INDIRECT_REF.  Also handle complex types.
21393         Do not poolify the inserted load.
21394         (realify_fake_stores): Do not rebuild the tree but only
21395         make it a SSA_NAME copy.
21396         (init_pre): Remove initialzation of modify_expr_template.
21397         Do not allocate modify_expr_node_pool.
21398         (fini_pre): Do not free modify_expr_node_pool.
21399
21400 2008-03-10  Paul Brook  <paul@codesourcery.com>
21401
21402         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
21403         to avoid conflicts.
21404
21405 2008-03-10  Paul Brook  <paul@codesourcery.com>
21406             Mark Shinwell  <shinwell@codesourcery.com>
21407
21408         * config/arm/cortex-r4.md: New.
21409         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
21410         insn attributes.
21411         * config/arm/arm.md: Include cortex-r4.md.
21412         (insn): Add smmls, sdiv and udiv values.
21413         (generic_sched): Don't use generic scheduling for Cortex-R4.
21414         (arm_issue_rate): New function.
21415         (TARGET_SCHED_ISSUE_RATE): Define.
21416
21417 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
21418
21419         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
21420
21421 2008-03-10  Richard Guenther  <rguenther@suse.de>
21422
21423         * tree-ssa-pre.c (get_sccvn_value): Simplify.
21424         (compute_avail): Do not add stmt uses to AVAIL_OUT.
21425
21426 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
21427
21428         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
21429         Set default to true.
21430
21431 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21432
21433         * c.opt (Wsynth): Deprecate.
21434         * doc/invoke.texi (Option Summary, Warning Options): Document
21435         -Wno-format-contains-nul.
21436
21437 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
21438
21439         PR target/35496
21440         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
21441         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
21442
21443 2008-03-09  Ira Rosen  <irar@il.ibm.com>
21444
21445         * config/rs6000/rs6000.c (builtin_description): Rename vector
21446         left shift operations.
21447         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
21448         (altivec_vsl<VI_char>): Rename to ...
21449         (ashl<mode>3): ... new name.
21450         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
21451         gen_ashlv4si3.
21452         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
21453
21454 2008-03-08  Richard Guenther  <rguenther@suse.de>
21455
21456         * coverage.h (tree_coverage_counter_addr): Declare.
21457         * coverage.c (tree_coverage_counter_addr): New function.
21458         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
21459         before using again.
21460         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
21461         (tree_gen_one_value_profiler): Likewise.
21462         (tree_gen_ic_profiler): Likewise.
21463         (tree_gen_average_profiler): Likewise.
21464         (tree_gen_ior_profiler): Likewise.
21465
21466 2008-03-08  Richard Guenther  <rguenther@suse.de>
21467
21468         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
21469         (vn_binary_op_insert): Likewise.
21470         (vn_unary_op_lookup): Likewise.
21471         (vn_unary_op_insert): Likewise.
21472         (vn_nary_op_lookup): Declare.
21473         (vn_nary_op_insert): Likewise.
21474         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
21475         and binary hashes, use a single obstack for unary_op_pool
21476         and binary_op_pool.
21477         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
21478         a single struct vn_nary_op_s.  Store tree code length and
21479         a variable number of operands.
21480         (struct vn_reference_op_struct): Remove unused op2.
21481         (vn_reference_op_eq): Do not compare op2.
21482         (vn_reference_op_compute_hash): Do not compute hash of op2.
21483         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
21484         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
21485         with vn_nary_op_compute_hash.
21486         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
21487         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
21488         vn_nary_op_lookup.
21489         (vn_unary_op_insert, vn_binary_op_insert): Replace with
21490         vn_nary_op_insert.
21491         (visit_unary_op): Call nary functions.
21492         (visit_binary_op): Likewise.
21493         (process_scc): Adjust for struct vn_tables_s changes.
21494         (allocate_vn_table): Likewise.
21495         (free_vn_table): Likewise.
21496         * tree-vn.c (vn_add): Call nary functions.
21497         (vn_lookup): Likewise.
21498
21499 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
21500
21501         PR target/35498
21502         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
21503         wdst back after sync_compare_and_swapqhi_internal.
21504
21505 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
21506
21507         PR target/22152
21508         * config/i386/i386-modes.def (V1DI): New vector mode.
21509         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
21510         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
21511         (MMXMODE248): Ditto.
21512         (MMXMODE): Add V1DI mode.
21513         (mmxvecsize): Change DI mode to V1DI mode.
21514         ("mov<mode>): Use MMXMODEI8 mode iterator.
21515         ("*mov<mode>_internal_rex64"): Ditto.
21516         ("*mov<mode>_internal"): Ditto.
21517         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
21518         ("mmx_sub<mode>3"): Ditto.
21519         ("mmx_adddi3"): Remove insn pattern.
21520         ("mmx_subdi3"): Ditto.
21521         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
21522         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
21523         ("mmx_ashl<mode>3"): Ditto.
21524         ("mmx_lshrdi3"): Remove insn pattern.
21525         ("mmx_ashldi3"): Ditto.
21526         * config/i386/i386.c (classify_argument): Handle V1DImode.
21527         (function_arg_advance_32): Ditto.
21528         (function_arg_32): Ditto.
21529         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
21530         mmx_addv1di3 insn pattern.
21531         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
21532         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
21533         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
21534         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
21535         Remove definitions of built-in functions.
21536         (V1DI_type_node): New node.
21537         (v1di_ftype_v1di_int): Ditto.
21538         (v1di_ftype_v1di_v1di): Ditto.
21539         (v2si_ftype_v2si_si): Ditto.
21540         (v4hi_ftype_v4hi_di): Remove node.
21541         (v2si_ftype_v2si_di): Ditto.
21542         (ix86_init_mmx_sse_builtins): Handle V1DImode.
21543         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
21544         Redefine builtins using def_builtin_const with *_ftype_*_int node.
21545         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
21546         Add new builtins using def_builtin_const.
21547         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
21548         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
21549         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
21550         * config/i386/mmintrin.h (__v1di): New typedef.
21551         (_mm_add_si64): Cast arguments to __v1di type.
21552         (_mm_sub_si64): Ditto.
21553         (_mm_sll_pi16): Cast __count to __v4hi type.
21554         (_mm_sll_pi32): Cast __count to __v2si type.
21555         (_mm_sll_si64): Cast arguments to __v1di type.
21556         (_mm_srl_pi16): Cast __count to __v4hi type.
21557         (_mm_srl_pi32): Cast __count to __v2si type.
21558         (_mm_srl_si64): Cast arguments to __v1di type.
21559         (_mm_sra_pi16): Cast __count to __v4hi type.
21560         (_mm_sra_pi32): Cast __count to __v2si type.
21561         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
21562         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
21563         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
21564         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
21565         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
21566         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
21567         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
21568         (_mm_srai_pi32): Use __builtin_ia32_psradi.
21569         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
21570         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
21571         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
21572         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
21573
21574 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
21575
21576         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
21577
21578 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
21579
21580         PR target/35373
21581         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
21582         reg+const addressing for Altivec modes.  Don't generate reg+reg
21583         addressing for TFmode or TDmode quantities.
21584
21585 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
21586
21587         * c-common.c (vector_types_convertible_p): Call langhook
21588         instead of comptypes.
21589
21590 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21591
21592         PR tree-opt/35402
21593         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
21594         integral and scalar float variables which have a
21595         NULL DECL_INITIAL.
21596
21597 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
21598
21599         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
21600         dwarf_register_span hook when emitting unwind information for
21601         register-to-memory saves.
21602         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
21603         (rs6000_frame_related): Remove call to spe_synthesize_frame.
21604
21605 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
21606
21607         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
21608         for the same VAR_DECL.
21609
21610 2008-03-06  Tom Tromey  <tromey@redhat.com>
21611
21612         * treelang: Delete.
21613         * doc/standards.texi (Standards): Don't mention treelang.
21614         * doc/invoke.texi (Overall Options): Don't mention treelang.
21615         * doc/install.texi (Prerequisites): Don't mention bison or
21616         treelang.
21617         (Configuration): Don't mention treelang.
21618         (Building): Likewise.
21619         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
21620
21621 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
21622
21623         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
21624         word-extractions out of a multi-word object.
21625
21626 2008-03-06  Richard Guenther  <rguenther@suse.de>
21627
21628         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
21629         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
21630         result type and precision.
21631         * expr.c (get_inner_reference): Set unsignedp based on the result
21632         type of BIT_FIELD_REF.
21633         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
21634         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
21635         (try_instantiate_multiple_fields): Likewise.  Use the correct type
21636         for BIT_FIELD_REF.
21637         (sra_build_assignment): Likewise.
21638         (sra_build_elt_assignment): Likewise.
21639         (sra_explode_bitfield_assignment): Likewise.
21640         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
21641         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
21642         set BIT_FIELD_REF_UNSIGNED.
21643         (vectorizable_load): Likewise.
21644
21645 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
21646
21647         * cse.c (cse_extended_basic_block): Invalidate artificial defs
21648         at bb start.
21649
21650 2008-03-06  Richard Guenther  <rguenther@suse.de>
21651
21652         * alias.c (struct alias_set_entry): Move has_zero_child field
21653         to pack with alias_set.
21654
21655 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
21656
21657         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
21658         32bit host.
21659
21660 2008-03-05  Ian Lance Taylor  <iant@google.com>
21661
21662         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
21663
21664 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
21665
21666         * fwprop.c (update_df): Support width and offset parameters of
21667         df_ref_create.
21668         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
21669         global_conflicts): Change DF_REF_EXTRACT to either
21670         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
21671         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
21672         * df-scan.c (df_ref_record, df_defs_record,
21673         df_ref_create_structure, df_def_record_1, df_uses_record,
21674         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
21675         df_bb_refs_collect, df_entry_block_defs_collect,
21676         df_exit_block_uses_collect): Support new width and offset fields.
21677         (ref_extract_pool): New storage pool.
21678         (df_free_ref): New function.
21679         (df_reg_chain_unlink, df_free_collection_rec,
21680         df_sort_and_compress_refs): Call df_free_ref.
21681         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
21682         of df_ref_extract.
21683         (df_ref_create_structure): Allocate df_ref_extract if offset and
21684         width fields are used.
21685         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
21686         (df_uses_record): Get offset and width from ZERO_EXTRACT
21687         and SIGN_EXTRACT.
21688         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
21689         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
21690         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
21691         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
21692         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
21693         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
21694         (df_ref_extract): New structure.
21695         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
21696         (df_ref_create): Add width and offset parameters.
21697
21698 2008-03-05  Richard Guenther  <rguenther@suse.de>
21699
21700         * tree-ssa-structalias.c (get_constraint_for_component_ref):
21701         Use ranges_overlap_p.
21702         (offset_overlaps_with_access): Rename
21703         to ranges_overlap_p and move ...
21704         * tree-flow-inline.h (ranges_overlap_p): ... here.
21705
21706         * tree.h (get_inner_reference, handled_component_p): Update
21707         comments.
21708
21709         * tree.h (record_component_aliases, get_alias_set,
21710         alias_sets_conflict_p, alias_sets_must_conflict_p,
21711         objects_must_conflict_p): Move declarations ...
21712         * alias.h (record_component_aliases, get_alias_set,
21713         alias_sets_conflict_p, alias_sets_must_conflict_p,
21714         objects_must_conflict_p): ... here.
21715         Include coretypes.h.
21716         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
21717
21718 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
21719
21720         * cfg.c: Include tree-flow.h.
21721         (remove_edge_raw): Call redirect_edge_var_map_clear.
21722         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
21723         * tree-flow-inline.h (redirect_edge_var_map_def): New.
21724         (redirect_edge_var_map_result): New.
21725         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
21726         PENDING_STMT use with redirect_edge_var_map_*.
21727         * tree-ssa.c (edge_var_maps): New definition.
21728         (redirect_edge_var_map_add): New.
21729         (redirect_edge_var_map_clear): New.
21730         (redirect_edge_var_map_dup): New.
21731         (redirect_edge_var_map_vector): New.
21732         (redirect_edge_var_map_destroy): New.
21733         (ssa_redirect_edge): Replace PENDING_STMT use with
21734         redirect_edge_var_map_*.
21735         (flush_pending_stmts): Same.
21736         (delete_tree_ssa): Destroy edge var map.
21737         * tree-flow.h (struct _edge_var_map): New.
21738         Define edge_var_map vector type.
21739         Declare redirect_edge_var_map_* prototypes.
21740         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
21741         * tree-cfg.c (reinstall_phi_args): Replace
21742         PENDING_STMT use with redirect_edge_var_map_*.
21743
21744 2008-03-05  Richard Guenther  <rguenther@suse.de>
21745
21746         PR tree-optimization/35472
21747         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
21748         whose single use_stmt has a overlapping set of loaded and
21749         stored symbols as that use_stmt might be a noop assignment then.
21750
21751 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
21752
21753         * gthr-rtems.h: Implement __gthread_mutex_destroy.
21754
21755 2008-03-05  Richard Guenther  <rguenther@suse.de>
21756
21757         PR c++/35336
21758         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
21759         should be constants.
21760         * tree-cfg.c (verify_expr): Verify it.
21761         * fold-const.c (fold_truthop): Remove code generating
21762         BIT_FIELD_REFs of structure bases.
21763         (fold_binary): Likewise.
21764         (fold_ternary): Position and size of BIT_FIELD_REFs are
21765         always host integers.
21766         (make_bit_field_ref): Remove.
21767         (optimize_bit_field_compare): Remove.
21768         (all_ones_mask_p): Remove.
21769
21770 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
21771
21772         PR gcc/33009
21773         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
21774         (split_block_and_df_analyze): New. Split basic block and rebuild
21775         dataflow.
21776         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
21777         SPLIT_BLOCK.
21778         (split_pattern_seq): Likewise.
21779         (erase_matching_seqs): Likewise.
21780         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
21781
21782 2008-03-04  Geoff Keating  <geoffk@apple.com>
21783
21784         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
21785         declaration and code.
21786         (tree_invalid_nonnegative_warnv_p): Likewise.
21787
21788 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
21789
21790         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
21791         examples.  Truncate option-names then causing overfull hbox.
21792
21793 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21794
21795         PR target/35222
21796         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
21797         on hpux10.
21798         * configure: Rebuilt.
21799
21800 2008-03-04  Rafael Espíndola  <espindola@google.com>
21801
21802         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
21803         (tree_unary_nonnegative_warnv_p): New.
21804         (tree_binary_nonnegative_warnv_p): New.
21805         (tree_single_nonnegative_warnv_p): New.
21806         (tree_invalid_nonnegative_warnv_p): New.
21807         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
21808
21809 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21810
21811         PR 28322
21812         * opts.c (handle_option): Postpone 'unknown option' errors only for
21813         warning options.
21814
21815 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
21816
21817         PR target/35453
21818         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
21819         (_SIDD_XXX): This.
21820
21821 2008-03-04  Rafael Espíndola  <espindola@google.com>
21822
21823         * fold-const.c (tree_unary_nonzero_warnv_p): New.
21824         (tree_binary_nonzero_warnv_p): New.
21825         (tree_single_nonzero_warnv_p): New.
21826         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
21827
21828 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
21829
21830         PR middle-end/35456
21831         * fold-const.c (fold_cond_expr_with_comparison): Prevent
21832         transformations for modes that have signed zeros.
21833         * ifcvt.c (noce_try_abs): Ditto.
21834
21835 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
21836
21837         * config/i386/i386.c (override_options): Force
21838         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
21839
21840 2008-03-04  Jan Hubicka  <jh@suse.cz>
21841
21842         PR c++/35262
21843         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
21844         in last commit.
21845
21846 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
21847
21848         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
21849         label to probe the stack.
21850
21851 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
21852
21853         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
21854         (__gthr_win32_mutex_destroy): Declare.
21855         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
21856         __gthr_win32_mutex_destroy.
21857         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
21858
21859 2008-03-03  Jan Hubicka  <jh@suse.cz>
21860
21861         PR c++/35262
21862         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
21863         aggressive on inlining cold calls.
21864
21865 2008-03-03  Richard Guenther  <rguenther@suse.de>
21866
21867         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
21868         struct copies into the expression table.
21869         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
21870         (try_to_simplify): Likewise.
21871         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
21872         integral and pointer arguments which do not change the
21873         precision to NOP_EXPRs.
21874         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
21875         VIEW_CONVERT_EXPR case.
21876
21877 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
21878
21879         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
21880         defined in a loop at depth 0 is invariant.
21881         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
21882         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
21883         be called at loop depth 0.
21884
21885 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
21886
21887         PR driver/35420
21888         * gcc.c (process_command): Update copyright notice dates.
21889         * gcov.c (print_version): Likewise.
21890         * gcov-dump.c (print_version): Likewise.
21891         * mips-tfile.c (main): Likewise.
21892         * mips-tdump.c (main): Likewise.
21893
21894 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21895
21896         PR 24924
21897         * c-common.c (flag_permissive): Delete.
21898         (constant_expression_warnings): Check flags first.
21899         (constant_expression_error): New.
21900         * c-common.h (flag_permissive): Delete.
21901         (constant_expression_error): Declare.
21902         * flags.h (flag_permissive): Declare. Update description.
21903         * diagnostic.c (pedwarn): Update.
21904         (permerror): New.
21905         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
21906         (permissive_error_kind): New.
21907         * toplev.c (flag_permissive): Define. Update description.
21908         * toplev.h (permissive_error_kind): Declare.
21909         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
21910         (pedwarn_c90): Use pedantic_warning_kind.
21911         * c-opts.c (c_common_post_options): flag_permissive does not affect
21912         flag_pedantic_errors.
21913
21914 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
21915
21916         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
21917         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
21918         __absvsi2, __absvDI2): Use unsigned arithmetic.
21919
21920 2008-03-02  Andi Kleen  <ak@suse.de>
21921             Richard Guenther  <rguenther@suse.de>
21922
21923         * struct-equiv.c: Remove file.
21924         * cfg_cleanup.c (condjump_equiv_p): Remove.
21925         * Makefile.in (OBJS-common): Remove struct-equiv.o.
21926         (struct-equiv.o): Remove rule.
21927         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
21928         insns_match_p, struct_equiv_block_eq, struct_equiv_init,
21929         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
21930
21931 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
21932
21933         * ifcvt.c (noce_process_if_block): Try to handle only the then
21934         block if the else block exists but isn't suitable.
21935
21936 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
21937
21938         PR gcc/35063
21939         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
21940         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
21941         regression from previous patch.
21942
21943 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
21944
21945         PR gcc/35063
21946         * gthr.h: Add __gthread_mutex_destroy as a function that must be
21947         implemented.
21948         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
21949         * gthr-single.h (__gthread_mutex_destroy): Likewise.
21950         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
21951         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
21952         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
21953         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
21954         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
21955         (__gthread_mutex_destroy_function): Rename to
21956         __gthread_mutex_destroy.
21957         * gthr-dce.h (__gthread_mutex_destroy): Call
21958         pthread_mutex_destroy.
21959         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
21960         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
21961         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
21962
21963 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
21964
21965         * df-scan.c (df_ref_chain_change_bb): Simplify.
21966         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
21967         set_block_for_insn if there's any change.
21968         * df.h ((df_insn_change_bb): Fix prototype.
21969         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
21970         df_insn_change_bb, don't call set_block_for_insn.
21971         * emit-rtl.c (reorder_insns): Likewise.
21972         * haifa-sched.c (move_insn): Likewise.
21973
21974 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
21975
21976         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
21977
21978 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
21979
21980         * tree-flow-inline.h (next_readonly_imm_use): Return
21981         NULL_USE_OPERAND_P after the end.
21982
21983 2008-03-01  Richard Guenther  <rguenther@suse.de>
21984
21985         PR tree-optimization/35411
21986         * tree-sra.c (sra_build_assignment): Split conversion to
21987         final type to a separate statement if we are not assigning
21988         to a register.
21989
21990 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
21991
21992         * fold-const.c (fold_convertible_p): Correct the logic to follow
21993         that in fold_convert().
21994
21995 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
21996
21997         PR c++/35315
21998         * tree-inline.c (build_duplicate_type): When we make a
21999         duplicate type, make it unique in the canonical types system.
22000
22001 2008-02-29  Tom Tromey  <tromey@redhat.com>
22002
22003         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
22004         input_file_stack_history, input_file_stack_restored): Remove.
22005         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
22006         * input.h (struct file_stack): Remove.
22007         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
22008         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
22009         Likewise.
22010         * diagnostic.h (struct diagnostic_context) <last_module>: Change
22011         type.
22012         (diagnostic_last_module_changed): Add 'map' argument.
22013         (diagnostic_set_last_function): Likewise.
22014         * diagnostic.c (undiagnostic_report_current_module): Iterate using
22015         line map, not input_file_stack.
22016         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
22017
22018 2008-02-29  Paul Brook  <paul@codesourcery.com>
22019
22020         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
22021
22022 2008-02-29  Paul Brook  <paul@codesourcery.com>
22023
22024         * config/arm/ieee754-df.S (muldf3): Use RET macros.
22025
22026 2008-02-29  Richard Guenther  <rguenther@suse.de>
22027
22028         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
22029         vn_lookup_or_add.
22030         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
22031         value for comparing for a store match.
22032         (simplify_unary_expression): Do nothing for SSA_NAMEs.
22033         (try_to_simplify): Do not do a full-blown reference lookup.
22034
22035 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
22036
22037         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
22038         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
22039
22040         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
22041
22042 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
22043
22044         * tree-loop-linear.c (try_interchange_loops): Compare memory access
22045         strides against cache sizes.
22046
22047 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
22048
22049         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
22050         constant to fpul.
22051
22052 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
22053
22054         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
22055         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
22056         is smaller than the original promoted value.
22057         (simplify_subreg): If OP is a SUBREG, try to preserve its
22058         SUBREG_PROMOTED_VAR_P information.
22059
22060 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
22061
22062         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
22063         (VN_INFO_GET): Allocate new objects on the obstack.
22064         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
22065         for rpo_numbers_temp, for consistency.
22066         (free_scc_vn): Free the obstack.
22067
22068 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
22069
22070         * doc/invoke.texi: Document -ftree-loop-distribution.
22071         * tree-loop-distribution.c: New.
22072         * tree-pass.h (pass_loop_distribution): New.
22073         * graphds.h (struct graph): Add htab_t indices.
22074         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
22075         * tree-vectorizer.c (rename_variables_in_loop): Extern.
22076         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
22077         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
22078         * tree-data-ref.c (debug_data_dependence_relations): New.
22079         (dump_data_dependence_relation): Also print data references.
22080         (free_data_ref): Extern.
22081         (same_access_functions): Moved...
22082         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
22083         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
22084         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
22085         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
22086         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
22087         (stmts_from_loop): Skip LABEL_EXPR.
22088         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
22089         New.
22090         (build_rdg): Initialize rdg->indices htab.
22091         (free_rdg, stores_from_loop, ref_base_address,
22092         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
22093         have_similar_memory_accesses_1, ref_base_address_1,
22094         remove_similar_memory_refs): New.
22095         * tree-data-ref.h: Depend on tree-chrec.h.
22096         (debug_data_dependence_relations, free_data_ref): Declared.
22097         (same_access_functions): ... here.
22098         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
22099         New.
22100         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
22101         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
22102         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
22103         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
22104         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
22105         rdg_vertex_for_stmt): Declared.
22106         (struct rdg_edge): Add level.
22107         (RDGE_LEVEL): New.
22108         (free_rdg, stores_from_loop, remove_similar_memory_refs,
22109         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
22110         Declared.
22111         (rdg_has_similar_memory_accesses): New.
22112         * tree-vect-analyze.c: Remove unused static decls.
22113         * lambda.h (dependence_level): New.
22114         * common.opt (ftree-loop-distribution): New.
22115         * tree-flow.h (mark_virtual_ops_in_bb,
22116         slpeel_tree_duplicate_loop_to_edge_cfg,
22117         rename_variables_in_loop): Declared.
22118         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
22119         (OBJS-common): Add tree-loop-distribution.o.
22120         (tree-loop-distribution.o): New rule.
22121         * tree-cfg.c (mark_virtual_ops_in_bb): New.
22122         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
22123         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
22124
22125 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
22126
22127         PR target/33963
22128         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
22129         other than structures and unions.
22130
22131 2008-02-28  Richard Guenther  <rguenther@suse.de>
22132
22133         Revert:
22134         2008-02-26  Richard Guenther  <rguenther@suse.de>
22135
22136         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
22137         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
22138         (lookup_decl_from_uid): Declare.
22139         (remove_decl_from_map): Likewise.
22140         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
22141         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
22142         (decl_for_uid_map): New global hashtable mapping DECL_UID
22143         to the decl tree.
22144         (init_ttree): Allocate it.
22145         (insert_decl_to_uid_decl_map): New helper function.
22146         (make_node_stat): Insert new decls into the map.
22147         (copy_node_stat): Likewise.
22148         (lookup_decl_from_uid): New function.
22149         (remove_decl_from_map): Likewise.
22150         (print_decl_for_uid_map_statistics): New helper.
22151         (dump_tree_statistics): Call it.
22152
22153         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
22154         (referenced_var_iterator): Adjust.
22155         (FOR_EACH_REFERENCED_VAR): Adjust.
22156         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
22157         (num_referenced_vars): Adjust.
22158         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
22159         (first_referenced_var): Remove.
22160         (end_referenced_vars_p): Likewise.
22161         (next_referenced_var): Likewise.
22162         (referenced_var_iterator_set): New helper function.
22163         * tree-dfa.c (referenced_var_lookup): Adjust.
22164         (referenced_var_check_and_insert): Likewise.
22165         (remove_referenced_var): Likewise.
22166         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
22167         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22168         (verify_call_clobbering): Likewise.
22169         (verify_memory_partitions): Likewise.
22170         (init_tree_ssa): Allocate bitmap instead of hashtable for
22171         referenced_vars.
22172         (delete_tree_ssa): Adjust.
22173         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
22174         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22175         (compute_tag_properties): Likewise.
22176         (set_initial_properties): Likewise.
22177         (find_partition_for): Likewise.
22178         (update_reference_counts): Likewise.
22179         (dump_may_aliases_for): Likewise.
22180         * tree-ssa-operands.c (add_virtual_operand): Likewise.
22181         (add_call_clobber_ops): Likewise.
22182         (add_call_read_ops): Likewise.
22183         (get_asm_expr_operands): Likewise.
22184         * tree-into-ssa.c (dump_decl_set): Likewise.
22185         (update_ssa): Likewise.
22186         * tree-sra.c (scan_function): Likewise.
22187         (decide_instantiations): Likewise.
22188         (scalarize_parms): Likewise.
22189         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
22190         (dsa_named_for): Likewise.
22191         * tree-ssa-structalias.c (update_alias_info): Likewise.
22192         (merge_smts_into): Likewise.
22193
22194 2008-02-27  David Daney  <ddaney@avtrex.com>
22195
22196         PR target/34409
22197         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
22198         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
22199         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
22200         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
22201         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
22202
22203 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
22204
22205         PR target/25477
22206         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
22207         (BUILT_IN_NEXTTOWARD): Remove.
22208         (BUILT_IN_NEXTTOWARDF): Ditto.
22209         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
22210         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
22211
22212 2008-02-27  Tom Tromey  <tromey@redhat.com>
22213
22214         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
22215         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
22216
22217 2008-02-27  Jan Beulich  <jbeulich@novell.com>
22218
22219         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
22220         update the respective field on newdecl.
22221
22222 2008-02-27  Revital Eres  <eres@il.ibm.com>
22223
22224         PR rtl-optimization/34999
22225         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
22226         crossing edges that ends with a call insn.
22227         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
22228         call insn and clear the EDGE_CROSSING flag of the crossing edge
22229         when fixing fallthru edges.
22230
22231 2008-02-27  Richard Guenther  <rguenther@suse.de>
22232
22233         PR middle-end/35390
22234         * fold-const.c (fold_unary): Return the correct argument,
22235         converted to the result type.
22236
22237 2008-02-27  Richard Guenther  <rguenther@suse.de>
22238
22239         PR middle-end/34971
22240         * expr.c (expand_expr_real_1): Assert on rotates that operate
22241         on partial modes.
22242         * fold-const.c (fold_binary): Use the types precision, not the
22243         bitsize of the mode if folding rotate expressions.  Build rotates
22244         only for full modes.
22245
22246 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
22247
22248         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
22249         and CPP_PRAGMA_EOL.
22250         * c-pragma.c (pragma_ns_name): New typedef.
22251         (registered_pp_pragmas): New variable.
22252         (c_pp_lookup_pragma): New function.
22253         (c_register_pragma_1): If flag_preprocess_only, do nothing
22254         for non-expanded pragmas, for expanded ones push pragma's
22255         namespace and name into registered_pp_pragmas vector.
22256         (c_invoke_pragma_handler): Register OpenMP pragmas even when
22257         flag_preprocess_only, don't register GCC pch_preprocess
22258         pragma if flag_preprocess_only.
22259         * c-opts.c (c_common_init): Call init_pragma even if
22260         flag_preprocess_only.
22261         * c-pragma.c (c_pp_lookup_pragma): New prototype.
22262         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
22263         cpp_register_pragma if flag_preprocess_only.
22264
22265 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22266
22267         PR c/28800
22268         * c-parser.c (c_parser_translation_unit): Warn for empty
22269         translation unit, not empty source file.
22270
22271 2008-02-26  Paul Brook  <paul@codesourcery.com>
22272
22273         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
22274         operand for Thumb-2.
22275         * config/arm/arm.h (reg_class): Add CORE_REGS.
22276         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
22277         (BASE_REG_CLASS): Use CORE_REGS.
22278         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
22279         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
22280         (REGNO_OK_FOR_INDEX_P): Exclude SP.
22281         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
22282         ARM_REGNO_OK_FOR_INDEX_P.
22283         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
22284         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
22285         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
22286         (ldm/stm peepholes): Ditto.
22287         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
22288         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
22289         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
22290         * config/arm/constraints.md: Enable "k" constraint on ARM.
22291
22292 2008-02-27  Ben Elliston  <bje@au.ibm.com>
22293
22294         * config/rs6000/rs6000.c: Annotate cache line size field in all
22295         instances of struct processor_costs.
22296
22297 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
22298
22299         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
22300         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
22301         jump_bypass): New counters.
22302         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
22303         * dce.c (gate_ud_dce): Same.
22304         (gate_fast_dce): Same.
22305         * dse.c (gate_dse1): New function.
22306         (gate_dse2): New function.
22307         (gate_dse): Merge results of new gate functions.
22308         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
22309         (gate_handle_jump_bypass): Add dbg_cnt.
22310         (gate_handle_gcse): Add dbg_cnt.
22311         * ifcvt.c (gate_handle_if_conversion): Same.
22312         (gate_handle_if_after_combine): Same.
22313         (gate_handle_if_after_reload): Same.
22314         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
22315
22316 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
22317
22318         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
22319         line sizes.
22320         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
22321
22322 2008-02-26  Jason Merrill  <jason@redhat.com>
22323
22324         PR c++/35315
22325         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
22326         alone if it's the naming decl for the type's main variant.
22327
22328 2008-02-26  Tom Tromey  <tromey@redhat.com>
22329
22330         * system.h (USE_MAPPED_LOCATION): Poison.
22331         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
22332         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
22333         (make_goto_expr_edges): Likewise.
22334         (remove_bb): Likewise.
22335         (execute_warn_function_return): Likewise.
22336         * basic-block.h (struct edge_def) <goto_locus>: Change type to
22337         location_t.
22338         * c-common.c (fname_decl): Remove old location code.
22339         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
22340         location code.
22341         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
22342         variant.
22343         (ASM_INPUT_SOURCE_LOCATION): Likewise.
22344         (gen_rtx_ASM_INPUT): Likewise.
22345         (gen_rtx_ASM_INPUT_loc): Likewise.
22346         (get_rtx_asm_OPERANDS): Remove.
22347         * cfglayout.c (insn_locators_alloc): Remove old location code.
22348         (set_curr_insn_source_location): Likewise.
22349         (curr_insn_locator): Likewise.
22350         * print-tree.c (print_node): Remove old location code.
22351         * tree-mudflap.c (mf_varname_tree): Remove old location code.
22352         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
22353         * cfgexpand.c (expand_gimple_cond_expr): Don't use
22354         location_from_locus.
22355         (construct_exit_block): Remove old location code.
22356         * emit-rtl.c (force_next_line_note): Remove old location code.
22357         * profile.c (branch_prob): Remove old location code.
22358         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
22359         LOC_LINE): Remove old-location variants.
22360         * langhooks.c (lhd_print_error_function): Remove old location
22361         code.
22362         * configure, config.in: Rebuilt.
22363         * configure.ac (--enable-mapped-location): Remove.
22364         * c-decl.c (c_init_decl_processing): Remove old location code.
22365         (finish_function): Likewise.
22366         * recog.c (decode_asm_operands): Remove old location code.
22367         * c-pch.c (c_common_read_pch): Remove old location code.
22368         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
22369         variants.
22370         * gimple-low.c (lower_function_body): Remove old location code.
22371         * toplev.c (unknown_location): Remove.
22372         (push_srcloc): Remove old-location variant.
22373         (process_options): Remove old location code.
22374         (lang_dependent_init): Likewise.
22375         * input.h (UNKNOWN_LOCATION): Move definition.
22376         (location_t): Undeprecate.
22377         (source_locus): Remove.
22378         (location_from_locus): Remove.
22379         (struct location_s): Remove.
22380         Remove all old-location code.
22381         (input_line, input_filename): Remove.
22382         * final.c (final_scan_insn): Remove old location code.
22383         * diagnostic.c (diagnostic_build_prefix): Remove
22384         USE_MAPPED_LOCATION test.
22385         * tree.h (gimple_stmt) <locus>: Now a location_t.
22386         (tree_exp) <locus>: Likewise.
22387         (DECL_IS_BUILTIN): Remove old-location variant.
22388         (annotate_with_file_line, annotate_with_locus): Likewise.
22389         (expr_locus, set_expr_locus): Update.
22390         * tree.c (build1_stat): Remove old location code.
22391         (last_annotated_node): Remove.
22392         (annotate_with_file_line): Remove old-location variant.
22393         (annotate_with_locus): Likewise.
22394         (expr_location): Remove old location code.
22395         (set_expr_location): Likewise.
22396         (expr_has_location): Likewise.
22397         (expr_locus): Likewise.
22398         (set_expr_locus): Likewise.
22399         (expr_filename): Don't use location_from_locus.
22400         (expr_lineno): Likewise.
22401         * rtl-error.c (location_for_asm): Remove old location code.
22402         * c-lex.c (cb_line_change): Remove old location code.
22403         (fe_file_change): Likewise.
22404         (cb_def_pragma): Likewise.
22405         (c_lex_with_flags): Likewise.
22406         * gengtype.c (do_typedef): Don't special-case location types.
22407         (define_location_structures): Remove.
22408         (main): Don't call define_location_structures.
22409         * tree-pretty-print.c (dump_implicit_edges): Remove old location
22410         code.
22411
22412 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22413
22414         PR 26264
22415         * builtins.def (BUILT_IN_STDARG_START): Remove.
22416         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
22417         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
22418         * tree-inline.c (inline_forbidden_p_1): Likewise.
22419
22420 2008-02-26  Richard Guenther  <rguenther@suse.de>
22421
22422         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
22423         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
22424         (lookup_decl_from_uid): Declare.
22425         (remove_decl_from_map): Likewise.
22426         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
22427         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
22428         (decl_for_uid_map): New global hashtable mapping DECL_UID
22429         to the decl tree.
22430         (init_ttree): Allocate it.
22431         (insert_decl_to_uid_decl_map): New helper function.
22432         (make_node_stat): Insert new decls into the map.
22433         (copy_node_stat): Likewise.
22434         (lookup_decl_from_uid): New function.
22435         (remove_decl_from_map): Likewise.
22436         (print_decl_for_uid_map_statistics): New helper.
22437         (dump_tree_statistics): Call it.
22438
22439         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
22440         (referenced_var_iterator): Adjust.
22441         (FOR_EACH_REFERENCED_VAR): Adjust.
22442         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
22443         (num_referenced_vars): Adjust.
22444         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
22445         (first_referenced_var): Remove.
22446         (end_referenced_vars_p): Likewise.
22447         (next_referenced_var): Likewise.
22448         (referenced_var_iterator_set): New helper function.
22449         * tree-dfa.c (referenced_var_lookup): Adjust.
22450         (referenced_var_check_and_insert): Likewise.
22451         (remove_referenced_var): Likewise.
22452         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
22453         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22454         (verify_call_clobbering): Likewise.
22455         (verify_memory_partitions): Likewise.
22456         (init_tree_ssa): Allocate bitmap instead of hashtable for
22457         referenced_vars.
22458         (delete_tree_ssa): Adjust.
22459         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
22460         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22461         (compute_tag_properties): Likewise.
22462         (set_initial_properties): Likewise.
22463         (find_partition_for): Likewise.
22464         (update_reference_counts): Likewise.
22465         (dump_may_aliases_for): Likewise.
22466         * tree-ssa-operands.c (add_virtual_operand): Likewise.
22467         (add_call_clobber_ops): Likewise.
22468         (add_call_read_ops): Likewise.
22469         (get_asm_expr_operands): Likewise.
22470         * tree-into-ssa.c (dump_decl_set): Likewise.
22471         (update_ssa): Likewise.
22472         * tree-sra.c (scan_function): Likewise.
22473         (decide_instantiations): Likewise.
22474         (scalarize_parms): Likewise.
22475         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
22476         (dsa_named_for): Likewise.
22477         * tree-ssa-structalias.c (update_alias_info): Likewise.
22478         (merge_smts_into): Likewise.
22479
22480 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22481
22482         PR 34351
22483         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
22484         * c-opts.c (c_common_handle_option): Wall enables
22485         Wvolatile-register-var.
22486         * common.opt: Move Wvolatile-register-var to...
22487         * c.opt: ...here.
22488
22489 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22490
22491         * common.opt (Wlarger-than=): New.
22492         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
22493         -Wlarger-than=.
22494         * opts.c (common_handle_option): Handle -Wlarger-than=.
22495         * optc-gen.awk: Likewise.
22496         * opth-gen.awk: Likewise.
22497         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
22498         * tree-optimize.c (tree_rest_of_compilation): Likewise.
22499
22500 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22501
22502         * c-common.c (match_case_to_enum_1): Add appropriate
22503         OPT_W* parameter to warning.
22504         (c_do_switch_warnings): Likewise.
22505         * c-typeck.c (warning_init): Add one more parameter following
22506         'warning' function.
22507         (push_init_level): Update call to warning_init.
22508         (pop_init_level): Likewise.
22509         (add_pending_init): Likewise.
22510         (output_init_element: Likewise.
22511
22512 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22513
22514         PR 28322
22515         * toplev.c (toplev_main): If there are warnings or error, print
22516         errors for ignored options.
22517         * opts.c (ignored_options): New static variable.
22518         (postpone_unknown_option_error): New.
22519         (print_ignored_options): New.
22520         (handle_option): Postpone errors for unknown -Wno-* options.
22521         * opts.h (print_ignored_options): Declare.
22522
22523 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
22524
22525         * config/mips/mips.md (loadgp_blockage, blockage): Change type
22526         to "ghost".
22527
22528 2008-02-25  Richard Guenther  <rguenther@suse.de>
22529
22530         Revert:
22531         2008-02-25  Richard Guenther  <rguenther@suse.de>
22532
22533         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
22534         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
22535         (lookup_decl_from_uid): Declare.
22536         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
22537         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
22538         (decl_for_uid_map): New global hashtable mapping DECL_UID
22539         to the decl tree.
22540         (init_ttree): Allocate it.
22541         (insert_decl_to_uid_decl_map): New helper function.
22542         (make_node_stat): Insert new decls into the map.
22543         (copy_node_stat): Likewise.
22544         (lookup_decl_from_uid): New function.
22545         (print_decl_for_uid_map_statistics): New helper.
22546         (dump_tree_statistics): Call it.
22547
22548         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
22549         (referenced_var_iterator): Adjust.
22550         (FOR_EACH_REFERENCED_VAR): Adjust.
22551         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
22552         (num_referenced_vars): Adjust.
22553         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
22554         (first_referenced_var): Remove.
22555         (end_referenced_vars_p): Likewise.
22556         (next_referenced_var): Likewise.
22557         (referenced_var_iterator_set): New helper function.
22558         * tree-dfa.c (referenced_var_lookup): Adjust.
22559         (referenced_var_check_and_insert): Likewise.
22560         (remove_referenced_var): Likewise.
22561         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
22562         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22563         (verify_call_clobbering): Likewise.
22564         (verify_memory_partitions): Likewise.
22565         (init_tree_ssa): Allocate bitmap instead of hashtable for
22566         referenced_vars.
22567         (delete_tree_ssa): Adjust.
22568         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
22569         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22570         (compute_tag_properties): Likewise.
22571         (set_initial_properties): Likewise.
22572         (find_partition_for): Likewise.
22573         (update_reference_counts): Likewise.
22574         (dump_may_aliases_for): Likewise.
22575         * tree-ssa-operands.c (add_virtual_operand): Likewise.
22576         (add_call_clobber_ops): Likewise.
22577         (add_call_read_ops): Likewise.
22578         (get_asm_expr_operands): Likewise.
22579         * tree-into-ssa.c (dump_decl_set): Likewise.
22580         (update_ssa): Likewise.
22581         * tree-sra.c (scan_function): Likewise.
22582         (decide_instantiations): Likewise.
22583         (scalarize_parms): Likewise.
22584         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
22585         (dsa_named_for): Likewise.
22586         * tree-ssa-structalias.c (update_alias_info): Likewise.
22587         (merge_smts_into): Likewise.
22588
22589 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
22590
22591         PR fortran/29549
22592         * doc/invoke.texi (-fcx-limited-range): Document new option.
22593         * toplev.c (process_options): Handle -fcx-fortran-rules.
22594         * common.opt: Add documentation for -fcx-fortran-rules.
22595
22596 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
22597
22598         PR c/35162
22599         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
22600         actual behaviour and C99.
22601
22602 2008-02-26  Ben Elliston  <bje@au.ibm.com>
22603
22604         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
22605         (ASM_CPU_POWER6_SPEC): Likewise.
22606         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
22607         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
22608         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
22609
22610 2008-02-25  Richard Guenther  <rguenther@suse.de>
22611
22612         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
22613         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
22614         (lookup_decl_from_uid): Declare.
22615         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
22616         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
22617         (decl_for_uid_map): New global hashtable mapping DECL_UID
22618         to the decl tree.
22619         (init_ttree): Allocate it.
22620         (insert_decl_to_uid_decl_map): New helper function.
22621         (make_node_stat): Insert new decls into the map.
22622         (copy_node_stat): Likewise.
22623         (lookup_decl_from_uid): New function.
22624         (print_decl_for_uid_map_statistics): New helper.
22625         (dump_tree_statistics): Call it.
22626
22627         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
22628         (referenced_var_iterator): Adjust.
22629         (FOR_EACH_REFERENCED_VAR): Adjust.
22630         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
22631         (num_referenced_vars): Adjust.
22632         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
22633         (first_referenced_var): Remove.
22634         (end_referenced_vars_p): Likewise.
22635         (next_referenced_var): Likewise.
22636         (referenced_var_iterator_set): New helper function.
22637         * tree-dfa.c (referenced_var_lookup): Adjust.
22638         (referenced_var_check_and_insert): Likewise.
22639         (remove_referenced_var): Likewise.
22640         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
22641         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22642         (verify_call_clobbering): Likewise.
22643         (verify_memory_partitions): Likewise.
22644         (init_tree_ssa): Allocate bitmap instead of hashtable for
22645         referenced_vars.
22646         (delete_tree_ssa): Adjust.
22647         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
22648         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22649         (compute_tag_properties): Likewise.
22650         (set_initial_properties): Likewise.
22651         (find_partition_for): Likewise.
22652         (update_reference_counts): Likewise.
22653         (dump_may_aliases_for): Likewise.
22654         * tree-ssa-operands.c (add_virtual_operand): Likewise.
22655         (add_call_clobber_ops): Likewise.
22656         (add_call_read_ops): Likewise.
22657         (get_asm_expr_operands): Likewise.
22658         * tree-into-ssa.c (dump_decl_set): Likewise.
22659         (update_ssa): Likewise.
22660         * tree-sra.c (scan_function): Likewise.
22661         (decide_instantiations): Likewise.
22662         (scalarize_parms): Likewise.
22663         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
22664         (dsa_named_for): Likewise.
22665         * tree-ssa-structalias.c (update_alias_info): Likewise.
22666         (merge_smts_into): Likewise.
22667
22668 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
22669
22670         PR target/35258
22671         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
22672         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
22673         * alias.h (nonoverlapping_memrefs_p): Likewise.
22674
22675 2008-02-25  Jan Beulich  <jbeulich@novell.com>
22676
22677         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
22678         * config/i386/netware-libgcc.exp: Add __bswap?i2,
22679         __emultls_get_address, __emultls_register_common,
22680         __floatundi?f, and _Unwind_GetIPInfo.
22681         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
22682         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
22683         (gen_regparm_prefix): Likewise.
22684         (i386_nlm_encode_section_info): Sync with
22685         config/i386/winnt.c:i386_pe_encode_section_info().
22686         (i386_nlm_maybe_mangle_decl_assembler_name): New.
22687         i386_nlm_mangle_decl_assembler_name): New.
22688         (netware_override_options): New.
22689         * config/i386/netware.h (netware_override_options): Declare.
22690         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
22691         (i386_nlm_mangle_decl_assembler_name): Declare.
22692         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
22693
22694 2008-02-25  Ben Elliston  <bje@au.ibm.com>
22695
22696         PR other/32948
22697         * c-decl.c (grokdeclarator): Remove unused local variables
22698         `typedef_type' and `type_as_written'.
22699         * bb-reorder.c
22700         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
22701         unused local variable `has_hot_blocks'.
22702         (fix_crossing_conditional_branches): Remove unused local variable
22703         `prev_bb'.
22704
22705 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
22706
22707         PR middle-end/19984
22708         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
22709         using DEF_C99_BUILTIN.
22710         (BUILT_IN_NANF): Ditto.
22711         (BUILT_IN_NANL): Ditto.
22712
22713 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
22714             Revital Eres  <eres@il.ibm.com>
22715
22716         * modulo-sched.c (calculate_must_precede_follow): Address TODO
22717         regarding the order of two dependent insns in the same row.
22718
22719 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
22720
22721         * stor-layout.c (layout_decl): Do not bump the alignment of a
22722         bit-field to more than byte alignment if it is packed.
22723
22724 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
22725
22726         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
22727         e300c2 and e300c3.
22728
22729 2008-02-24  Diego Novillo  <dnovillo@google.com>
22730
22731         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
22732
22733         PR 33738
22734         * tree-vrp.c (vrp_evaluate_conditional): With
22735         -Wtype-limits, emit a warning when comparing against a
22736         constant outside the natural range of OP0's type.
22737         * c.opt (Wtype-limits): Move ...
22738         * common.opt (Wtype-limits): ... here.
22739
22740 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
22741
22742         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
22743         * config/rs6000/e300c2c3.md: New file.
22744         * config/rs6000/rs6000.c (processor_costs): Add new costs for
22745         e300c2 and e300c3.
22746         (rs6000_override_options): Add e300c2 and e300c3 cases to
22747         processor_target_table. Do not allow usage of Altivec or Spe
22748         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
22749         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
22750         * config/rs6000/rs6000.h (processor_type): Add
22751         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
22752         (ASM_CPU_SPEC): Add e300c2 and e300c3.
22753         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
22754         and ppce300c3. Include e300c2c3.md.
22755
22756 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
22757
22758         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
22759         instead of TARGET_STRICT_ALIGN.
22760
22761 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
22762
22763         * explow.c (memory_address): Assert that the generated address is
22764         valid.
22765
22766 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
22767
22768         PR target/25477
22769         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
22770         * config/darwin-ppc-ldouble-patch.def: New file.
22771         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
22772         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
22773         SUBTARGET_INIT_BUILTINS if defined.
22774         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
22775         New functions.
22776
22777 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22778
22779         PR rtl-opt/33512
22780         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
22781         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
22782
22783 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22784
22785         PR pch/35027
22786         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
22787         file" warning condtional on -Winvalid-PCH.
22788
22789 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
22790
22791         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
22792
22793 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
22794
22795         PR target/22076
22796         PR target/34256
22797         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
22798         prevent reload from using MMX registers.
22799         (*mov<mode>_internal): Ditto.
22800         (*movv2sf_internal_rex64): Ditto.
22801         (*movv2sf_internal): Ditto.
22802
22803 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22804
22805         PR documentation/31569
22806         * doc/install.texi2html: Use makeinfo --no-number-sections.
22807
22808 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
22809
22810         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
22811         ensure that we can address an entire entity > 8 bytes.  Don't
22812         generate reg+reg addressing for such data.
22813
22814 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
22815
22816         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
22817         strings when optimizing for size, unless the target cares about
22818         alignment.
22819
22820 2008-02-22  Tom Tromey  <tromey@redhat.com>
22821
22822         * regclass.c (current_pass): Remove declaration.
22823
22824 2008-02-22  Anatoly Sokolov <aesok@post.ru>
22825
22826         * config/avr/libgcc.S (__RAMPZ__): Define.
22827         (__do_copy_data): Add for devices with 128KB code memory.
22828
22829 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
22830
22831         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
22832         Use spe_abi.
22833         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
22834
22835 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
22836
22837         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
22838         GENNONACR_REGS.
22839
22840 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22841
22842         PR c/19999
22843         * c-typeck.c (build_binary_op): Warn about floating point
22844         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
22845
22846 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
22847
22848         PR target/34526
22849         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
22850         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
22851         add vrsave.
22852         (rs6000_override_options): Set altivec_abi as default, not override,
22853         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
22854         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
22855         is used; use new member spe_abi.
22856         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
22857         spe_abi and altivec_abi.
22858
22859 2008-02-22  Tomas Bily  <tbily@suse.cz>
22860
22861         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
22862
22863 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22864
22865         PR bootstrap/35273
22866         * config.build (build_file_translate): Set to `CMD //c' only if
22867         it works.
22868         * Makefile.in (build_file_translate): Improve comment.
22869
22870 2008-02-21  Jan Hubicka  <jh@suse.cz>
22871
22872         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
22873         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
22874         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
22875
22876 2008-02-21  Michael Matz  <matz@suse.de>
22877
22878         PR target/35264
22879         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
22880
22881 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
22882
22883         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
22884         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
22885         as insn constraint.
22886         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
22887         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
22888         SSE_VEC_FLOAT_MODE_P as insn constraint.
22889         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
22890         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
22891         sse4a_movntdf using MODEF mode iterator.
22892         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
22893         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
22894         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
22895         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
22896         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
22897         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
22898         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
22899
22900 2008-02-21  Richard Guenther  <rguenther@suse.de>
22901
22902         * tree.def (PAREN_EXPR): New tree code.
22903         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
22904         and PAREN_EXPR.
22905         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
22906         * expr.c (expand_expr_real_1): Likewise.
22907         * tree-inline.c (estimate_num_insns_1): Likewise.
22908         * tree-complex.c (expand_complex_move): Likewise.
22909         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
22910         as plain x.
22911
22912 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
22913
22914         PR target/35225
22915         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
22916
22917 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
22918
22919         PR target/35190
22920         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
22921
22922         * config/sh/sh.c (find_barrier): Don't go past
22923         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
22924
22925 2008-02-20  DJ Delorie  <dj@redhat.com>
22926
22927         * config/h8300/h8300.md (insv): Force source operand to be a register.
22928
22929         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
22930         as a jump, not as a plain insn.
22931
22932 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
22933
22934         * doc/invoke.texi (Warning Options): Add new option
22935         -Wframe-larger-than=.
22936         (-Wframe-larger-than): Document.
22937
22938         * flags.h (warn_frame_larger_than, frame_larger_than_size):
22939         Add declarations for new option variables.
22940
22941         * final.c (final_start_function): Check the frame size
22942         before emission and issue a Wframe-larger-than warning.
22943
22944         * opts.c (warn_frame_larger_than, frame_larger_than_size):
22945         Add definitions for new option variables.
22946         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
22947
22948         * common.opt (Wframe-larger-than=): New option.
22949
22950 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
22951
22952         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
22953         (<sse>_div<mode>3): Ditto.
22954         (<sse>_vmdiv<mode>3): Ditto.
22955         (<sse>_vmsqrt<mode>2): Ditto.
22956         (*smax<mode>3): Ditto.
22957         (sse5_frcz<mode>2): Ditto.
22958         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
22959         as insn constraint.
22960
22961 2008-02-20  Richard Guenther  <rguenther@suse.de>
22962
22963         PR middle-end/35265
22964         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
22965         be happy with INTEGRAL_TYPE_P.
22966
22967 2008-02-20  Richard Guenther  <rguenther@suse.de>
22968
22969         * fold-const.c (split_tree): Associate floatig-point expressions
22970         if flag_associative_math is set.
22971
22972 2008-02-20  Richard Guenther  <rguenther@suse.de>
22973
22974         * tree.h (fold_real_zero_addition_p): Declare.
22975         * fold-const.c (fold_real_zero_addition_p): Export.
22976         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
22977         floating-point operations with zero and one.
22978
22979 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
22980
22981         * doc/install.texi: Correct references to CFLAGS, replacing them
22982         with BOOT_CFLAGS.  Document flags used during bootstrap for
22983         target libraries.
22984
22985 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
22986
22987         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
22988         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
22989         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
22990         insn constraint.
22991         (smin<mode>3): Ditto from similar patterns.
22992         (smax<mode>3): Ditto.
22993         (*ieee_smin<mode>3): Ditto.
22994         (*ieee_smax<mode>3): Ditto.
22995         * config/i386/sse.md (sse): New mode attribute.
22996         (mov<mode>): Macroize expander from movv4sf and movv2df using
22997         SSEMODEF2P mode iterator.
22998         (<sse>_movnt<mode>): Ditto from similar patterns. Use
22999         SSE_VEC_FLOAT_MODE_P as insn constraint.
23000         (storent<mode>): Ditto.
23001         (storent<mode>): Macroize expander from storentsf and storentdf using
23002         MODEF mode iterator.
23003         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
23004         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
23005         (abs<mode>2): Ditto from similar patterns.
23006         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
23007         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
23008         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
23009         (<sse>_vmsqrt<mode>2): Ditto.
23010         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
23011         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
23012         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
23013         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
23014         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
23015         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
23016         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
23017         insn constraint.
23018         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
23019         iterator and SSE_FLOAT_MODE_P as insn constraint.
23020         (<sse>_ucomi): Ditto from similar patterns.
23021         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
23022         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
23023         SSE_VEC_FLOAT_MODE_P as insn constraint.
23024         (vcond<mode>): Ditto from similar patterns.
23025         (and<mode>3, *and<mode>3): Ditto.
23026         (<sse>_nand<mode>3): Ditto.
23027         (ior<mode>3, *ior<mode>3): Ditto.
23028         (xor<mode>3, *xor<mode>3): Ditto.
23029         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
23030         iterator and SSE_FLOAT_MODE_P as insn constraint.
23031         (*nand<mode>3): Ditto from similar patterns.
23032         (*ior<mode>3): Ditto.
23033         (*xor<mode>3): Ditto.
23034
23035 2008-02-20  Ira Rosen  <irar@il.ibm.com>
23036
23037         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
23038         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
23039         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
23040
23041 2008-02-19  Jan Hubicka  <jh@suse.cz>
23042
23043         * predict.c (tree_bb_level_predictions): Remove variable next
23044         mistakely introduced by previous commit.
23045
23046 2008-02-19  Jan Hubicka  <jh@suse.cz>
23047
23048         * predict.c (predict_paths_leading_to): Rewrite.
23049         (predict_paths_for_bb): New.
23050         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
23051
23052 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23053
23054         PR bootstrap/35218
23055         * Makefile.in (build_file_translate): New.
23056         (gcc-vers.texi): Use it for translating $(abs_srcdir).
23057         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
23058         * configure.ac (build_file_translate): Substitute it.
23059         * configure: Regenerate.
23060
23061 2008-02-19  Jan Hubicka  <jh@suse.cz>
23062
23063         PR rtl-optimization/34408
23064         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
23065         invalid sharing.
23066
23067 2008-02-19  Jan Hubicka  <jh@suse.cz>
23068
23069         PR middle-end/28779
23070         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
23071         call_expr.
23072
23073 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
23074
23075         PR Ada/35186
23076         * config/i386/i386-modes.def: Revert the last DI alignment
23077         change until Ada people can look into it.
23078
23079 2008-02-19  Nick Clifton  <nickc@redhat.com>
23080
23081         * opts.c (print_specific_help): Fix typo in --help text.
23082
23083 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
23084
23085         PR target/35239
23086         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
23087         32-bit inline asm without asm alternatives for host GCC < 3.0.
23088
23089 2008-02-19  Richard Guenther  <rguenther@suse.de>
23090
23091         PR tree-optimization/34989
23092         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
23093         Allow propagation to INDIRECT_REF if we can simplify only.
23094
23095 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23096
23097         * c-common.c (warn_for_collisions_1): Use appropriate option when
23098         warning.
23099
23100 2008-02-19  Nick Clifton  <nickc@redhat.com>
23101
23102         PR other/31349
23103         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
23104         (handle_options): Fix indentation.
23105         (print_filtered_help): If no language-specific options were
23106         displayed tell the user how to list all the options supported by
23107         the language's front-end.
23108         (print_specific_help): Fix indentation and remove duplicate line.
23109         (common_handle_option): Handle the -v option.
23110         For --help enable the display of undocumented options if the -v
23111         switch has been included on the command line.
23112         For --help= check for overlaps in the arguments between the option
23113         classes and the language names and issue a warning when they
23114         cannot be disambiguated.
23115         * c.opt (v): Pass on to the common option handler.
23116
23117 2008-02-19  Revital Eres  <eres@il.ibm.com>
23118
23119         * modulo-sched.c (sms_schedule): Change dump message when
23120         create_ddg function fails.
23121         (try_scheduling_node_in_cycle): Rename row to cycle.
23122         (print_partial_schedule): Rename CYCLE to ROW.
23123
23124 2008-02-19  Christian Bruel  <christian.bruel@st.com>
23125             Zdenek Dvorak  <ook@ucw.cz>
23126
23127         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
23128
23129 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
23130
23131         PR target/33555
23132         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
23133         (*x86_movdicc_0_m1_se): Ditto.
23134
23135 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
23136
23137         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
23138         (CMPtype): Define as __gcc_CMPtype.
23139         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
23140         (CMPtype): Define as __gcc_CMPtype.
23141
23142 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
23143
23144         Support valgrind 3.3 for --enable-checking=valgrind.
23145         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
23146         here.
23147         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
23148         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
23149         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
23150         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
23151         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
23152         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
23153         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
23154         respectively.
23155         * ggc-zone.c: Similar.
23156         * ggc-page.c: Similar.
23157
23158 2008-02-19  Paul Brook  <paul@codesourcery.com>
23159
23160         PR target/35071
23161         * config/arm/ieee754-df.S: Fix do_it typo.
23162         * config/arm/ieee754-sf.S: Fix do_it typo.
23163
23164 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
23165
23166         PR target/35189
23167         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
23168         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
23169         (OPTION_MASK_ISA_SSE_SET): Likewise.
23170         (OPTION_MASK_ISA_SSE2_SET): Likewise.
23171         (OPTION_MASK_ISA_SSE3_SET): Likewise.
23172         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
23173         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
23174         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
23175         (OPTION_MASK_ISA_SSE4_SET): Likewise.
23176         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
23177         (OPTION_MASK_ISA_SSE5_SET): Likewise.
23178         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
23179         (OPTION_MASK_ISA_MMX_UNSET): Updated.
23180         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
23181         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
23182         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
23183         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
23184         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
23185         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
23186         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
23187         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
23188         (OPTION_MASK_ISA_SSE4): Removed.
23189         (ix86_handle_option): Turn on bits in ix86_isa_flags and
23190         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
23191         (override_options): Don't turn on implied SSE/MMX bits in
23192         ix86_isa_flags.
23193
23194 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
23195
23196         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
23197         32bit host.
23198
23199 2008-02-18  Joey Ye  <joey.ye@intel.com>
23200
23201         PR middle-end/34921
23202         * tree-nested.c (insert_field_into_struct): Set type alignment
23203         to field alignment if the former is less than the latter.
23204
23205 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
23206
23207         * BASE-VER: Set to 4.4.0.
23208
23209 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23210
23211         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
23212         * doc/cfg.texi: Likewise.
23213         * doc/extend.texi: Likewise.
23214         * doc/gty.texi: Likewise.
23215         * doc/invoke.texi: Likewise.
23216         * doc/loop.texi: Likewise.
23217         * doc/md.texi: Likewise.
23218         * doc/passes.texi: Likewise.
23219         * doc/rtl.texi: Likewise.
23220         * doc/sourcebuild.texi: Likewise.
23221         * doc/tm.texi: Likewise.
23222         * doc/tree-ssa.texi: Likewise.
23223
23224 2008-02-17  Richard Guenther  <rguenther@suse.de>
23225
23226         PR middle-end/35227
23227         * tree-complex.c (init_parameter_lattice_values): Handle parameters
23228         without default definition.
23229
23230 2008-02-17  Richard Guenther  <rguenther@suse.de>
23231
23232         PR tree-optimization/35231
23233         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
23234         if A | B != 1.
23235
23236 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
23237
23238         Revert:
23239         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
23240         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
23241         libgcc_cmp_return mode.
23242
23243 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23244
23245         PR c/28368
23246         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
23247
23248 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
23249
23250         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
23251         multilibs.
23252
23253 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23254
23255         * doc/c-tree.texi: Use `@.' where appropriate.
23256         * doc/extend.texi: Likewise.
23257         * doc/install.texi: Likewise.
23258         * doc/invoke.texi: Likewise.
23259         * doc/loop.texi: Likewise.
23260         * doc/makefile.texi: Likewise.
23261         * doc/md.texi: Likewise.
23262         * doc/passes.texi: Likewise.
23263         * doc/standards.texi: Likewise.
23264         * doc/tm.texi: Likewise.
23265
23266 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
23267
23268         PR middle-end/35196
23269         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
23270         in entry_bb.
23271         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
23272         rather than in entry_bb.
23273
23274 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
23275
23276         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
23277         libgcc_cmp_return mode.
23278
23279 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
23280
23281         PR middle-end/35130
23282         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
23283         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
23284
23285 2008-02-15  Richard Guenther  <rguenther@suse.de>
23286             Zdenek Dvorak  <ook@ucw.cz>
23287
23288         PR tree-optimization/35164
23289         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
23290         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
23291         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
23292         Only propagate addresses which do not have abnormal SSA_NAMEs
23293         in their operands.
23294
23295 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
23296
23297         PR target/35088
23298         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
23299
23300 2008-02-15  Jan Hubicka  <jh@suse.cz>
23301
23302         PR middle-end/35149
23303         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
23304
23305 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
23306
23307         PR middle-end/34621
23308         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
23309         when calculating alignment_pad.
23310
23311 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
23312
23313         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
23314         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
23315         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
23316         and STACK_BOUNDARY define.
23317
23318 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
23319
23320         PR preprocessor/35061
23321         * c-pragma.c (handle_pragma_pop_macro): Check that
23322         pushed_macro_table has been allocated.
23323
23324 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
23325
23326         PR middle-end/35136
23327         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
23328         (force_gimple_operand): Likewise.
23329         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
23330         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
23331         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
23332         (find_interesting_uses_address): Check addressability and alignment
23333         of the base expression only after substituting bases of IVs into it.
23334
23335 2008-02-14  Michael Matz  <matz@suse.de>
23336
23337         PR target/34930
23338         * function.c (instantiate_virtual_regs_in_insn): Reload address
23339         before falling back to reloading the whole operand.
23340
23341 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
23342
23343         * config/s390/s390.c (s390_mainpool_start): Emit the pool
23344         before the first section switch note.
23345
23346 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23347
23348         * doc/bugreport.texi: Update copyright years.
23349         * doc/c-tree.texi: Likewise.
23350         * doc/cfg.texi: Likewise.
23351         * doc/cpp.texi: Likewise.
23352         * doc/cppinternals.texi: Likewise.
23353         * doc/fragments.texi: Likewise.
23354         * doc/frontends.texi: Likewise.
23355         * doc/gcc.texi: Likewise.
23356         * doc/gty.texi: Likewise.
23357         * doc/hostconfig.texi: Likewise.
23358         * doc/implement-c.texi: Likewise.
23359         * doc/libgcc.texi: Likewise.
23360         * doc/loop.texi: Likewise.
23361         * doc/makefile.texi: Likewise.
23362         * doc/options.texi: Likewise.
23363         * doc/passes.texi: Likewise.
23364         * doc/rtl.texi: Likewise.
23365         * doc/sourcebuild.texi: Likewise.
23366         * doc/standards.texi: Likewise.
23367         * doc/tree-ssa.texi: Likewise.
23368         * doc/trouble.texi: Likewise.
23369
23370         * doc/extend.texi: Use @: or add comma where appropriate.
23371         * doc/invoke.texi: Likewise.
23372         * doc/tm.texi: Likewise.
23373
23374 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
23375
23376         PR target/34393
23377         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
23378         to a reg.
23379
23380 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
23381
23382         * doc/md.texi (clz, ctz): Add reference.
23383         * doc/rtl.texi (clz, ctz): Likewise.
23384
23385 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23386
23387         PR other/35148
23388         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
23389         srcdir.
23390
23391 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
23392
23393         * config/s390/s390.c (struct constant_pool): New field
23394         emit_pool_after added.
23395         (s390_mainpool_start): Set the emit_pool_after flag according
23396         to the section switch notes.
23397         (s390_mainpool_finish): Consider emit_pool_after when emitting
23398         the literal pool at the end of the function.
23399         (s390_chunkify_start): Force literal pool splits at section
23400         switch notes.
23401
23402 2008-02-13  Michael Matz  <matz@suse.de>
23403
23404         PR debug/35065
23405         * var-tracking.c (clobber_variable_part): Correctly traverse the
23406         list.
23407
23408 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23409
23410         PR 29673
23411         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
23412         Add -fdump-ipa-inline.
23413         * tree-dump.c (dump_files): Remove tree-inlined dump.
23414         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
23415
23416 2008-02-12  Richard Guenther  <rguenther@suse.de>
23417
23418         PR tree-optimization/35171
23419         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
23420         default defs.
23421
23422 2008-02-12  Richard Guenther  <rguenther@suse.de>
23423
23424         PR middle-end/35163
23425         * fold-const.c (fold_widened_comparison): Use get_unwidened in
23426         value-preserving mode.  Disallow final truncation.
23427
23428 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
23429
23430         PR middle-end/35136
23431         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
23432         code from here to...
23433         (force_gimple_operand): ...here.
23434
23435 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
23436
23437         PR c++/35144
23438         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
23439         non-compatible pointers.
23440         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
23441         different FIELD_DECLs, try harder by comparing field offsets, sizes
23442         and types.
23443
23444         PR inline-asm/35160
23445         * function.c (match_asm_constraints_1): Don't replace the same input
23446         multiple times.
23447
23448 2008-02-12  Anatoly Sokolov <aesok@post.ru>
23449
23450         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
23451         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
23452         (expand_epilogue): Restore RAMPZ register.
23453         * config/avr/avr.md (RAMPZ_ADDR): New constant.
23454
23455 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
23456
23457         * config/i386/cygwin.asm: (__alloca): Correct calling
23458         convention and alignment.
23459         (__chkstk): Force 8 byte stack alignment.
23460
23461 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
23462             Richard Guenther  <rguenther@suse.de>
23463
23464         PR tree-optimization/33992
23465         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
23466         the zero we compare against.
23467
23468 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
23469
23470         PR libfortran/35063
23471         * gthr-win32.h (__gthread_mutex_destroy_function): New function
23472         to CloseHandle after unlocking to prevent accumulation of handle
23473         count.
23474
23475 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23476
23477         PR middle_end/34150
23478         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
23479         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
23480         and update LABEL_NUSES during and after reload.
23481
23482 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
23483
23484         PR middle-end/34627
23485         * combine.c (simplify_if_then_else): Make sure the comparison is
23486         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
23487
23488 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
23489
23490         PR bootstrap/35051
23491         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
23492         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
23493         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
23494         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
23495         * tree.h (get_type_static_bounds): Likewise.
23496
23497 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23498
23499         * doc/invoke.texi (Option Summary, C++ Dialect Options)
23500         (Objective-C and Objective-C++ Dialect Options, Warning Options):
23501         Make -Wfoo language annotations match what the compiler outputs.
23502
23503 2008-02-08  Sa Liu  <saliu@de.ibm.com>
23504
23505         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
23506         intrinsics spu_convts, spu_convtu, spu_convtf.
23507
23508 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
23509
23510         * doc/extend.texi (Function Attributes) <noinline>: Mention
23511         asm ("") as method to keep calls.
23512
23513 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23514
23515         PR other/32754
23516         * doc/options.texi (Options): Replace references to opts.sh with
23517         optc-gen.awk.
23518         * opts-common.c: Likewise.
23519         * optc-gen.awk: Likewise.
23520
23521 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
23522
23523         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
23524
23525 2008-02-07  Richard Henderson  <rth@redhat.com>
23526
23527         PR rtl-opt/33410
23528         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
23529         EXPR_LIST for the REG_EQUAL instead of a comparison with a
23530         funny mode.
23531
23532 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
23533
23534         PR tree-optimization/35085
23535         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
23536         for operand entry oe2 in addition to operand entry oe3 in order to
23537         expose more opportunities for vectorizer sum reduction.
23538
23539 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23540
23541         PR other/35107
23542         * Makefile.in (LIBS): Remove $(GMPLIBS).
23543         (cc1-dummy, cc1): Add $(GMPLIBS).
23544
23545 2008-02-06  Jan Hubicka  <jh@suse.cz>
23546
23547         PR target/23322
23548         * i386.md (moddf_integer): Do not produce partial memory stalls for
23549         targets where it hurts.
23550
23551 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
23552
23553         PR target/35083
23554         * optabs.c (expand_float): Do not check for decimal modes when
23555         expanding unsigned integer through signed conversion.
23556
23557 2008-02-06  Nick Clifton  <nickc@redhat.com>
23558
23559         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
23560         inside the clobber with a match_operand and duplicated operand
23561         number in the constraint.
23562         (ineqbranchsi): Delete redundant comment.
23563
23564 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
23565
23566         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
23567         builtin_define ("__USE_INIT_FINI__").
23568         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
23569         -msx multilibs.
23570         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
23571
23572 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23573
23574         PR documentation/30330
23575         * doc/invoke.texi (C++ Dialect Options)
23576         (Objective-C and Objective-C++ Dialect Options, Warning Options):
23577         For each warning option -Wfoo that allows -Wno-foo, ensure both
23578         -Wfoo and -Wno-foo are listed in the option index.  Fix index
23579         entry of -Wswitch-default, index -Wnormalized= including the
23580         `=', and -Wlarger-than-@var{len} including @var{len}.
23581
23582 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
23583
23584         * config/i386/i386.md (floatunssisf2): Use
23585         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
23586         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
23587         Macroize expander using MODEF mode iterator.
23588
23589 2008-02-05  Diego Novillo  <dnovillo@google.com>
23590
23591         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
23592
23593         PR 33738
23594         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
23595
23596 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23597
23598         PR other/35070
23599         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
23600
23601 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
23602
23603         PR target/35084
23604         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
23605         to indicate if a message should be generated.
23606         (init_cumulative_args): Updated.
23607         (function_value_32): Likewise.
23608
23609 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
23610
23611         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
23612
23613 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
23614
23615         PR target/35083
23616         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
23617         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
23618
23619 2008-02-04  Diego Novillo  <dnovillo@google.com>
23620
23621         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
23622
23623         PR 33738
23624         * tree-vrp.c (vrp_evaluate_conditional): With
23625         -Wtype-limits, emit a warning when comparing against a
23626         constant outside the natural range of OP0's type.
23627
23628 2008-02-04  Richard Guenther  <rguenther@suse.de>
23629
23630         PR middle-end/33631
23631         * expr.c (count_type_elements): Give for unions instead of
23632         guessing.
23633
23634 2008-02-04  Richard Guenther  <rguenther@suse.de>
23635
23636         PR middle-end/35043
23637         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
23638         to TYPE_DOMAINs base type instead of using bitsizetype here.
23639
23640 2008-02-03  Jason Merrill  <jason@redhat.com>
23641
23642         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
23643
23644 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23645
23646         PR other/29972
23647         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
23648         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
23649         (RS/6000 and PowerPC Options): Fix typos and markup.
23650         * doc/passes.texi (Tree-SSA passes): Likewise.
23651
23652 2008-02-02  Michael Matz  <matz@suse.de>
23653
23654         PR target/35045
23655         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
23656         from record_last_reg_set_info.
23657         (record_last_reg_set_info): Take an RTX argument, iterate over all
23658         constituent hardregs.
23659         (record_last_set_info, record_opr_changes): Change calls to
23660         new signature or to record_last_reg_set_info_regno.
23661
23662 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
23663
23664         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
23665
23666 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
23667
23668         PR rtl-optimization/34773
23669         * reg-notes.def (EQUAL): Mention significance of combination of
23670         REG_EQUAL and REG_RETVAL.
23671         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
23672         insn that has a REG_RETVAL.
23673
23674 2008-02-01  Roger Sayle  <roger@eyesopen.com>
23675
23676         PR bootstrap/33781
23677         * configure.ac (--enable-fixed-point): Disable unless explicitly
23678         requested on IRIX.
23679         * configure: Regenerate.
23680
23681 2008-02-01  Richard Guenther  <rguenther@suse.de>
23682
23683         PR other/35042
23684         * invoke.texi (-finline-limit): Remove no longer true parts
23685         of the documentation.  Note that there is no default value.
23686
23687 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
23688             Mark Mitchell  <mark@codesourcery.com>
23689             Ben Elliston  <bje@au.ibm.com>
23690
23691         PR c/29326
23692         * doc/extend.texi (Other Builtins): Document.
23693
23694 2008-01-31  Tom Browder <tom.browder@gmail.com>
23695
23696         * doc/c-tree.texi (Types): Fix grammar.
23697         (Expression trees): Ditto.
23698         * doc/passes.texi (Tree-SSA passes): Ditto.
23699
23700         * doc/configterms.texi (Configure Terms): Fix typo.
23701         * doc/cpp.texi (Common Predefined Macros): Ditto.
23702         * doc/md.texi (Machine Constraints): Ditto.
23703
23704         * doc/makefile.texi (Makefile): Add comma.
23705
23706 2008-01-31  Tom Browder  <tom.browder@gmail.com>
23707             Gerald Pfeifer  <gerald@pfeifer.com>
23708
23709         * doc/sourcebuild.texi (Front End): Remove references to CVS
23710         and CVSROOT/modules.
23711         (Texinfo Manuals): Replace reference to CVS by one to SVN.
23712         (Back End): Remove reference to CVS.
23713
23714 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
23715
23716         PR target/34900
23717         * config/mips/mips.c (gen_load_const_gp): New function, taking a
23718         comment from...
23719         (mips16_gp_pseudo_reg): ...here.
23720         * config/mips/mips.md (load_const_gp): Replace with...
23721         (load_const_gp_<mode>): ...this :P-based insn.
23722
23723 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23724
23725         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
23726         options. Minor fixes.
23727         (-std): Move reference to standards closer to where language
23728         standards are first mentioned.
23729
23730 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
23731
23732         PR rtl-optimization/34995
23733         * reload.c (alternative_allows_const_pool_ref): Take an rtx
23734         parameter and return a bool.  If the rtx parameter is nonnull,
23735         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
23736         (find_reloads): Update call accordingly.  Pass the new operand
23737         if it needed no address reloads, otherwise pass null.
23738
23739 2008-01-30  Richard Henderson  <rth@redhat.com>
23740
23741         PR c/34993
23742         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
23743         for unbounded arrays.
23744
23745 2008-01-30  Silvius Rus  <rus@google.com>
23746
23747         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
23748
23749 2008-01-30  Jan Hubicka  <jh@suse.cz>
23750
23751         PR target/34982
23752         * i386.c (init_cumulative_args): Use real function declaration when
23753         calling locally.
23754
23755 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
23756
23757         PR rtl-optimization/34998
23758         * global.c (build_insn_chain): Treat non-subreg_lowpart
23759         SUBREGs of pseudos as clobbering all the words covered by the
23760         SUBREG, not just all the bytes.
23761         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
23762         original df_ref rather than an extract parameter.
23763         (global_conflicts): Update call accordingly.
23764
23765 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
23766
23767         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
23768         the overflow check to make it easier to read.
23769         (__fixtfdi): Change the type of the ll member in union
23770         long_double to UDItype_x.
23771
23772 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
23773
23774         PR middle-end/34969
23775         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
23776         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
23777         * tree-inline.c (fold_marked_statements): Call
23778         cgraph_update_edges_for_call_stmt if folding a call statement.
23779         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
23780         debug_generic_stmt calls, reset it back afterwards.
23781
23782         PR c/35017
23783         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
23784         static decls.
23785         * c-typeck.c (build_external_ref): Don't pedwarn about
23786         static vars in current function's scope.
23787
23788 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
23789
23790         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
23791
23792 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
23793
23794         PR c/35002
23795         * ipa-struct-reorg.c: Fix spelling.
23796         * params.def: Ditto.
23797
23798 2008-01-29  Richard Guenther  <rguenther@suse.de>
23799
23800         PR middle-end/35006
23801         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
23802         field.
23803         * tree-inline.c (remap_type): Increment remapping_type_depth
23804         around remapping types.
23805         (copy_body_r): Only add referenced variables if they are referenced
23806         from code, not types.
23807
23808 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
23809
23810         PR c++/34055
23811         PR c++/34103
23812         PR c++/34219
23813         PR c++/34606
23814         PR c++/34753
23815         PR c++/34754
23816         PR c++/34755
23817         PR c++/34919
23818         PR c++/34961
23819         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
23820         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
23821
23822 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
23823
23824         PR target/34412
23825         * config/avr/avr.c (expand_prologue): Use correct QI mode frame
23826         pointer for tiny stack.
23827
23828 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
23829
23830         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
23831
23832 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
23833
23834         * config/vx-common.h: Fix typo in comment.
23835
23836 2008-01-28  Ian Lance Taylor  <iant@google.com>
23837
23838         PR c++/34862
23839         PR c++/33407
23840         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
23841         coalesce pointers if they have different DECL_NO_TBAA_P values.
23842         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
23843         between variables with different DECL_NO_TBAA_P values.
23844
23845 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
23846
23847         PR 31535
23848         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
23849         are not legitimate small data references on SPE targets.
23850
23851 2008-01-28  David Daney  <ddaney@avtrex.com>
23852
23853         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
23854
23855 2008-01-28  David Daney  <ddaney@avtrex.com>
23856
23857         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
23858
23859 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
23860
23861         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
23862         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
23863         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
23864         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
23865         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
23866         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
23867         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
23868         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
23869
23870 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
23871
23872         * basic-block.h (condjump_equiv_p): Fix comment.
23873
23874 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
23875
23876         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
23877         print_generic_stmt_indented): Fix comment.
23878
23879 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
23880
23881         * configure.ac (__stack_chk_fail): Add detecion for availability
23882         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
23883         * configure: Regenerate.
23884
23885 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
23886
23887         PR middle-end/34688
23888         * final.c (output_addr_const): Handle TRUNCATE.
23889
23890 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
23891
23892         PR target/34711
23893         * tree-ssa-loop-ivopts.c (comp_cost): New type.
23894         (zero_cost, infinite_cost): New constants.
23895         (struct cost_pair): Change type of cost to comp_cost.
23896         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
23897         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
23898         New functions.
23899         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
23900         split_address_cost, ptr_difference_cost, difference_cost,
23901         get_computation_cost_at, get_computation_cost,
23902         determine_use_iv_cost_generic, determine_use_iv_cost_address,
23903         determine_use_iv_cost_condition, determine_use_iv_costs,
23904         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
23905         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
23906         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
23907         Change type of cost to comp_cost.
23908         (determine_iv_cost): Increase cost of non-original ivs, instead
23909         of decreasing the cost of original ones.
23910         (get_address_cost): Indicate the complexity of the addressing mode
23911         in comp_cost.
23912         (try_add_cand_for): Prefer using ivs not specific to some object.
23913         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
23914
23915 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
23916             Janis Johnson  <janis187@us.ibm.com>
23917
23918         PR target/34814
23919         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
23920         (TARGET_INSTANTIATE_DECLS): Likewise.
23921         * target.h (expand_to_rtl_hook): New target hook.
23922         (instantiate_decls): Likewise.
23923         * function.c (instantiate_decl): Make non-static.  Rename to...
23924         (instantiate_decl_rtl): ... this.
23925         (instantiate_expr): Use instantiate_decl_rtl.
23926         (instantiate_decls_1): Likewise.
23927         (instantiate_decls): Likewise.
23928         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
23929         * function.h (instantiate_decl_rtl): Add prototype.
23930         * cfgexpand.c (target.h): New include.
23931         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
23932         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
23933         (TARGET_INSTANTIATE_DECLS): Likewise.
23934         (TARGET_INITIALIZER): New target hooks added.
23935         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
23936         New prototype.
23937         * config/rs6000/rs6000.c (tree-flow.h): New include.
23938         (machine_function): Add sdmode_stack_slot field.
23939         (rs6000_alloc_sdmode_stack_slot): New function.
23940         (rs6000_instantiate_decls): Likewise.
23941         (rs6000_secondary_memory_needed_rtx): Likewise.
23942         (rs6000_check_sdmode): Likewise.
23943         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
23944         (TARGET_INSTANTIATE_DECLS): Likewise.
23945         (rs6000_hard_regno_mode_ok): Allow SDmode.
23946         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
23947         (rs6000_emit_move): Handle SDmode.
23948         (function_arg_advance): Likewise.
23949         (function_arg): Likewise.
23950         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
23951         SDmode var args for 32-bit compiles.
23952         (rs6000_secondary_reload_class): Handle SDmode.
23953         (rs6000_output_function_epilogue): Likewise.
23954         (rs6000_function_value): Simplify if statement.
23955         (rs6000_libcall_value): Likewise.
23956         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
23957         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
23958         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
23959         (movsd_hardfloat): New define_insn.
23960         (movsd_softfloat): Likewise.
23961         (movsd_store): Likewise.
23962         (movsd_load): Likewise.
23963         (extendsddd2): Likewise.
23964         (extendsdtd2): Likewise.
23965         (truncddsd2): Likewise.
23966         (movdd_hardfloat64): Fixup comment.
23967         (UNSPEC_MOVSD_LOAD): New constant.
23968         (UNSPEC_MOVSD_STORE): Likewise.
23969
23970 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
23971
23972         PR c++/34965
23973         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
23974         TRUTH_XOR_EXPR.
23975         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
23976         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
23977         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
23978         and TRUTH_XOR_EXPR.
23979
23980 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
23981
23982         PR target/34794
23983         * config.gcc: Separate AIX 5.3 from AIX 6.1.
23984         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
23985         __LONGDOUBLE128 too.
23986         * config/rs6000/aix61.h: New file.
23987
23988 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
23989
23990         PR rtl-optimization/34959
23991         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
23992         popcount and parity rtxes the same mode as their operand.
23993         Truncate or extend the result to the return value's mode
23994         if necessary.
23995
23996 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
23997
23998         PR target/34981
23999         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
24000         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
24001         to GOT_VERSION_REGNUM.
24002         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
24003         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
24004         * config/mips/mips.c (mips_emit_call_insn): New function.
24005         (mips_call_tls_get_addr): Call mips_expand_call directly.
24006         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
24007         emit_call_insn.
24008         (mips16_build_call_stub): Likewise.  Return the call insn or null.
24009         (mips_expand_call): Update the call to mips16_build_call_stub
24010         accordingly and a remove redundant condition.  Assert that MIPS16
24011         stubs do not use lazy binding.  Use mips_emit_call_insn and return
24012         the call insn.
24013         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
24014         TARGET_USE_GOT.
24015         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
24016         (mips_avoid_hazard): Remove hazard_set handling.
24017         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
24018         (UNSPEC_RESTORE_GP): ...this.
24019         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
24020         (FAKE_CALL_REGNO): Rename to...
24021         (GOT_VERSION_REGNUM): ...this.
24022         (type): Add "ghost" value.  Add an associated insn reservation.
24023         (hazard_set): Remove.
24024         (exception_receiver): Rename to...
24025         (restore_gp): ...this and update the unspec identifier accordingly.
24026         (exception_receiver, nonlocal_got_receiver): New expanders.
24027         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
24028         FAKE_CALL_REGNO.  Remove hazard_set attribute.
24029         (set_got_version, update_got_version): New patterns.
24030
24031 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
24032
24033         PR target/34970
24034         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
24035
24036 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
24037
24038         PR other/31955
24039         * doc/install.texi2html: Generate gcc-vers.texi.
24040
24041 2008-01-25  DJ Delorie  <dj@redhat.com>
24042
24043         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
24044
24045 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
24046
24047         * config/c4x: Remove directory.
24048         * config.gcc (crx-*, mt-*): Mark obsolete.
24049         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
24050         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
24051         sh-*-rtemscoff*): Remove cases.
24052         * defaults.h (C4X_FLOAT_FORMAT): Remove.
24053         * real.c (encode_c4x_single, decode_c4x_single,
24054         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
24055         c4x_extended_format): Remove.
24056         * real.h (c4x_single_format, c4x_extended_format): Remove.
24057         * doc/extend.texi (interrupt, naked): Remove mention of attributes
24058         on C4x.
24059         (Pragmas): Remove comment about c4x pragmas.
24060         * doc/install.texi (c4x): Remove target-specific instructions.
24061         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
24062         * doc/md.texi (Machine Constraints): Remove C4x documentation.
24063         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
24064         refer to C4x source files as examples.
24065         (C4X_FLOAT_FORMAT): Remove documentation.
24066
24067 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
24068
24069         * config/bfin/bfin.c (override_options): Reorder tests so that
24070         flag_pic gets enabled for -msep-data.
24071
24072 2008-01-25  Richard Guenther  <rguenther@suse.de>
24073
24074         PR middle-end/32244
24075         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
24076         to its bitfield precision if required.
24077
24078 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
24079
24080         PR middle-end/33880
24081         * tree-nested.c (walk_omp_for): New function.
24082         (convert_nonlocal_reference, convert_local_reference): Call
24083         walk_omp_for on OMP_FOR.
24084         (convert_call_expr): Call walk_body on OMP_FOR's
24085         OMP_FOR_PRE_INIT_BODY.
24086
24087 2008-01-25  Richard Guenther  <rguenther@suse.de>
24088
24089         PR tree-optimization/34966
24090         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
24091         default defs and PHI_NODEs we have to insert after the
24092         defining statement.
24093
24094 2008-01-24  Nick Clifton  <nickc@redhat.com>
24095
24096         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
24097         Provide a default definition.
24098         (LIBGCC2_UNITS_PER_WORD): Likewise.
24099
24100         * config/stormy16/stormy16.c: Include df.h for the prototype
24101         for df_regs_ever_live_p.
24102         (xstormy16_expand_builtin_va_start): Convert the stack offset
24103         into a component_ref and then use POINTER_PLUS_EXPR to add it
24104         to the incoming_virtual_args_rtx.
24105         (xstormy16_gimplify_va_arg_expr): Rename to
24106         xstormy16_gimplify_va_arg_expr.
24107         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
24108         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
24109         xstormy16_gimplify_va_arg_expr.
24110         Fix up some formatting issues.
24111
24112         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
24113         Move to predicates.md.
24114         (xs_hi_general_operand): Likewise.
24115         (xs_hi_nonmemory_operand): Likewise.
24116         * config/stormy16/predicates.md:
24117         (xstormy16_carry_plus_operand): New predicate.
24118         (xs_hi_general_operand): New predicate.
24119         (xs_hi_nonmemory_operand): New predicate.
24120         * config/stormy16/stormy16-protos.h:
24121         (xstormy16_carry_plus_operand): Delete prototype.
24122         (xs_hi_general_operand): Likewise.
24123         (xs_hi_nonmemory_operand): Likewise.
24124
24125         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
24126         modifiers as they are no longer needed and they can trigger
24127         reload spill failures.
24128
24129         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
24130         with a match_operand in order to help reload.
24131
24132         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
24133         constraint with 'e' for the 8th alternative as this version of
24134         the mov.w instruction only accepts the lower 8 registers.
24135
24136 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
24137
24138         PR target/34856
24139         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
24140         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
24141         vector elements.
24142
24143 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
24144
24145         PR middle-end/33333
24146         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
24147
24148 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
24149
24150         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
24151         New functions.
24152         (remove_structure): Update allocations list before removing structure.
24153
24154 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
24155
24156         * ipa-struct-reorg.c (is_safe_cond_expr,
24157         create_new_stmts_for_cond_expr): Use integer_zerop function,
24158         that recognize not only zero-pointer, but zero-integer too.
24159
24160 2008-01-25  Ben Elliston  <bje@au.ibm.com>
24161
24162         PR other/22232
24163         * fixproto: Escape "." in sed expression that strips leading "./".
24164
24165 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
24166
24167         PR driver/34904
24168         * gcc.c (SWITCH_OK): Removed.
24169         (SWITCH_LIVE): Changed to bit.
24170         (SWITCH_FALSE): Likewise.
24171         (SWITCH_IGNORE): Likewise.
24172         (switchstr): Change live_cond to unsigned int.
24173         (process_command): Replace SWITCH_OK with 0.
24174         (do_self_spec): Likewise.
24175         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
24176         (give_switch): Likewise.
24177         (used_arg): Likewise.
24178         (do_spec_1): Set the SWITCH_IGNORE bit.
24179         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
24180         bits.  Set the SWITCH_LIVE bit.
24181
24182 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
24183
24184         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
24185
24186 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
24187
24188         PR tree-optimization/34472
24189         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
24190         parameter to a "bool *" and set *DATA to false if there is
24191         an unsafe access.  Do not delete the structure here.
24192         (check_cond_exprs): Delete it here instead.
24193         (check_cond_exprs, exclude_cold_structs): Do not increase
24194         I when removing a structure.
24195
24196 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
24197
24198         PR target/34856
24199         * config/i386/i386.c (ix86_expand_vector_init): Consider only
24200         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
24201
24202 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
24203
24204         PR middle-end/34934
24205         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
24206         a fixed vector for stack.
24207
24208 2008-01-24  Ben Elliston  <bje@au.ibm.com>
24209
24210         PR c++/25701
24211         * doc/gcc.texi (Software development): Add a direntry for g++.
24212
24213 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
24214
24215         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
24216         stale and straggling -fforce-addr comments above.
24217
24218         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
24219         define.
24220         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
24221         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
24222
24223 2008-01-23  Michael Matz  <matz@suse.de>
24224
24225         PR debug/34895
24226         * dwarf2out.c (force_type_die): Use modified_type_die instead of
24227         gen_type_die.
24228
24229 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
24230
24231         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
24232         malloc result type.
24233
24234 2008-01-23 Anatoly Sokolov <aesok@post.ru>
24235
24236         * config/avr/avr.c (avr_current_arch): New variable.
24237         (avr_arch_types): Add 'avr31' and 'avr51' entries.
24238         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
24239         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
24240         (avr_override_options): Init 'avr_current_arch'.
24241         (base_arch_s): Move from here...
24242         * config/avr/avr.h (base_arch_s): ... here. Add new members
24243         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
24244         'mega' to 'have_jmp_call'.
24245         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
24246         "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
24247         macros.
24248         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
24249         architectures.
24250         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
24251         MULTILIB_MATCHES): Ditto.
24252
24253 2008-01-23  Richard Guenther  <rguenther@suse.de>
24254
24255         PR middle-end/31529
24256         * cgraphunit.c (cgraph_reset_node): Always mark the node
24257         not reachable if it is not queued already.
24258
24259 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
24260
24261         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
24262         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
24263         (cputype_selected): New static variable.
24264         (bfin_handle_option): Set it if -mcpu is used.
24265         (override_option): Select default set of workarounds if no cpu type
24266         selected on the command line.
24267         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
24268
24269         From  Michael Frysinger  <michael.frysinger@analog.com>
24270         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
24271         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
24272
24273         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
24274         for bf547, bf523, bf524, and bf526.
24275         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
24276         bf526.
24277         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
24278         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
24279         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
24280         __ADSPBF547__ and __ADSPBF54x__ for bf547.
24281         * doc/invoke.texi (Blackfin Options): Document that
24282         -mcpu now accept bf547, bf523, bf524, and bf526.
24283
24284 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
24285
24286         PR rtl-optimization/34628
24287         * combine.c (try_combine): Stop and undo after the first combination
24288         if an autoincrement side-effect on the first insn has effectively
24289         been lost.
24290
24291 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
24292
24293         PR target/34529
24294         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
24295         Offset addresses are not valid for Altivec or paired float modes.
24296
24297 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
24298
24299         PR c++/34607
24300         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
24301         if DECL_INITIAL (decl) is error_mark_node.
24302
24303         PR c++/34914
24304         * c-common.c (handle_vector_size_attribute): Only allow
24305         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
24306         the same way as pointer, array etc. types.
24307         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
24308
24309         PR c++/34917
24310         * tree.c (build_type_attribute_qual_variant): Call
24311         build_qualified_type if attributes are equal, but quals are not.
24312
24313 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24314
24315         PR 32102
24316         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
24317         * flags.h (warn_strict_aliasing): Remove.
24318         (warn_strict_overflow): Remove.
24319         * opts.c (warn_strict_aliasing): Remove.
24320         (warn_strict_overflow): Remove.
24321         * c-opts.c (c_common_handle_option): -Wall only sets
24322         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
24323         (c_common_post_options): Give default values to -Wstrict-aliasing
24324         and -Wstrict-overflow if they are uninitialized.
24325         * common.opt (Wstrict-aliasing): Specify Var and Init.
24326         (Wstrict-overflow): Likewise.
24327
24328 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
24329
24330         PR rtl-optimization/26854
24331         PR rtl-optimization/34400
24332         PR rtl-optimization/34884
24333         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
24334         DF_RD->gen.
24335         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
24336         (df_rd_bb_info.expanded_lr_out): Deleted
24337         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
24338         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
24339         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
24340         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
24341         Removed code to allocate, initialize or free expanded_lr_out.
24342         (df_rd_bb_local_compute_process_def): Restructured to make more
24343         understandable.
24344         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
24345         sets if the sets are being trimmed.
24346
24347 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
24348
24349         PR bootstrap/32287
24350         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
24351         (as_vers): Likewise.
24352         * configure: Regenerated.
24353
24354 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24355
24356         PR middle-end/33092
24357         * tree-pass.h (pass_build_alias): New pass.
24358         * tree-ssa-alias.c (gate_build_alias): New.
24359         (pass_build_alias): New.
24360         * passes.c (init_optimization_passes): Add pass_build_alias after
24361         pass_create_structure_vars.
24362
24363 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
24364
24365         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
24366         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
24367         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
24368         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
24369         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
24370         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
24371         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
24372         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
24373         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
24374         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
24375         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
24376         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
24377         * config/s390/s390.md (FP_ALL): New mode iterator.
24378         (_d): New mode attribute.
24379         ("*signbit<mode>2>"): Changed mode of first operand.
24380         ("isinf<mode>2"): Changed mode of first operand.
24381         ("*TDC_insn"): Adaptation for DFP modes.
24382
24383 2008-01-22  Ben Elliston  <bje@au.ibm.com>
24384
24385         * tree.c (check_qualified_type): Improve function description.
24386
24387 2008-01-21  Jason Merrill  <jason@redhat.com>
24388
24389         PR c++/34196
24390         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
24391         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
24392         if it is set.
24393
24394 2008-01-21  DJ Delorie  <dj@redhat.com>
24395
24396         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
24397         return zero.
24398
24399 2008-01-21  Richard Guenther  <rguenther@suse.de>
24400
24401         PR middle-end/34856
24402         * tree-cfg.c (verify_expr): Allow all invariant expressions
24403         instead of just constant class ones as reference argument.
24404         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
24405         like any other constant.
24406         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
24407
24408 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
24409
24410         * regmove.c (fixup_match_1): Update call crossed frequencies.
24411
24412 2008-01-21  Richard Guenther  <rguenther@suse.de>
24413
24414         PR c/34885
24415         * tree-inline.c (setup_one_parameter): Deal with mismatched
24416         types using a VIEW_CONVERT_EXPR.
24417
24418 2008-01-21  Alon Dayan  <alond@il.ibm.com>
24419             Olga Golovanevsky  <olga@il.ibm.com>
24420
24421         PR tree-optimization/34701
24422         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
24423         when the structure size is not a power of 2.
24424
24425 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
24426
24427         * doc/install.texi: Add doc for --enable-checking=df.
24428
24429 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
24430
24431         PR rtl-optimization/34808
24432         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
24433
24434 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
24435
24436         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
24437         input.
24438
24439 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
24440
24441         PR rtl-optimization/26854
24442         PR rtl-optimization/34400
24443         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
24444         DF_RD->gen.
24445         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
24446         (df_rd_bb_info.expanded_lr_out): New.
24447         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
24448         * loop_iv.c (iv_analysis_loop_init): Ditto.
24449         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
24450         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
24451         Added code to allocate, initialize or free expanded_lr_out.
24452         (df_rd_bb_local_compute_process_def): Restructured to make
24453         more understandable.
24454         (df_rd_confluence_n): Add code to do nothing with fake edges and
24455         code to no apply invalidate_by_call sets if the sets are being trimmed.
24456         (df_lr_local_finalize): Renamed to df_lr_finalize.
24457         (df_live_local_finalize): Renamed to df_live_finalize.
24458
24459 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
24460
24461         PR target/34831
24462         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
24463         deciding whether to use reciprocal instructions.
24464
24465 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
24466
24467         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
24468         dwarf2out_note_section_used if cold_text_section is NULL.
24469
24470 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
24471
24472         PR gcov-profile/34610
24473         * tree-cfg.c (make_edges): Mark both outgoing edges from
24474         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
24475         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
24476         from OMP_FOR and OMP_CONTINUE outgoing edges.
24477
24478         * tree-profile.c (tree_profiling): Return early if
24479         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
24480         at the end.
24481         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
24482         from cfun to child_cfun.
24483         * function.h (struct function): Add after_tree_profile bit.
24484
24485 2008-01-19 Anatoly Sokolov <aesok@post.ru>
24486
24487         * config/avr/avr.S (_exit): Disable interrupt.
24488
24489 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
24490             Steven Bosscher  <stevenb.gcc@gmail.com>
24491
24492         PR rtl-optimization/26854
24493         PR rtl-optimization/34400
24494         * df-problems.c (df_live_scratch): New scratch bitmap.
24495         (df_live_alloc): Allocate df_live_scratch when doing df_live.
24496         (df_live_reset): Clear the proper bitmaps.
24497         (df_live_bb_local_compute): Only process the artificial defs once
24498         since the order is not important.
24499         (df_live_init): Init the df_live sets only with the variables
24500         found live by df_lr.
24501         (df_live_transfer_function): Use the df_lr sets to prune the
24502         df_live sets as they are being computed.
24503         (df_live_free): Free df_live_scratch.
24504
24505 2008-01-18  Ian Lance Taylor  <iant@google.com>
24506
24507         * common.opt: Add fmerge-debug-strings.
24508         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
24509         flag_merge_debug_strings rather than flag_merge_constants.
24510         * doc/invoke.texi (Option Summary): Mention
24511         -fmerge-debug-strings.
24512         (Debugging Options): Document -fmerge-debug-strings.
24513
24514 2008-01-18  Ian Lance Taylor  <iant@google.com>
24515
24516         PR c++/33407
24517         * tree.h (DECL_IS_OPERATOR_NEW): Define.
24518         (struct tree_function_decl): Add new field operator_new_flag.
24519         * tree-inline.c (expand_call_inline): When inlining a call to
24520         operator new, force the return value to go into a variable, and
24521         set DECL_NO_TBAA_P on that variable.
24522         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
24523
24524 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
24525
24526         PR debug/34484
24527         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
24528         DWARF2_DEBUGGING_INFO.
24529         (dwarf2out_note_section_used): Ditto.  Add prototype.
24530         (have_multiple_function_sections, text_section_used,
24531         cold_text_section_used, *cold_text_sections): Move declarations
24532         before their uses.
24533
24534 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
24535
24536         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
24537         field and add signal_ra.
24538         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
24539         assignments to frame state pc.  Move end of stack check after
24540         MD_FALLBACK_FRAME_STATE_FOR.
24541         (uw_update_context_1): Use frame state signal_regs if set, instead
24542         of checking signal_frame flag.
24543         (uw_update_context): Use frame state signal_ra if set.
24544         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
24545         * config/xtensa/linux-unwind.h: New file.
24546
24547 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
24548
24549         * modulo-sched.c (get_sched_window): Fix comment typo.
24550
24551 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
24552
24553         PR tree-optimization/34648
24554         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
24555
24556 2008-01-17  Anatoly Sokolov <aesok@post.ru>
24557
24558         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
24559         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
24560
24561 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
24562
24563         PR rtl-optimization/34400
24564         * df-core.c (df_worklist_dataflow_overeager,
24565         df_worklist_dataflow_doublequeue): New functions.
24566         (df_worklist_dataflow): Two different worklist solvers.
24567         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
24568         New param.
24569
24570 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
24571
24572         PR testsuite/34821
24573         * doc/invoke.texi: Document the dependence on pthread for fopenmp
24574         and ftree-parallelize-loops.
24575
24576 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
24577
24578         PR rtl-optimization/34826
24579         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
24580
24581 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
24582
24583         * global.c (find_reg): Mark the eh regs as used if necessary.
24584         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
24585         * ra.h (struct allocno): no_eh_reg field added.  Changed
24586         no_stack_reg type to bitfield.
24587
24588 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
24589
24590         * tree.c (substitute_in_expr): Add missing 'break'.
24591
24592 2008-01-17  Richard Guenther  <rguenther@suse.de>
24593
24594         PR tree-optimization/34825
24595         * tree-ssa-math-opts.c (is_division_by): Do not recognize
24596         x / x as division to handle.
24597
24598 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24599
24600         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
24601         "-pthread" is specified.
24602         * pa-hpux11.h (LIB_SPEC): Likewise.
24603
24604 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
24605             Peter Bergner  <bergner@vnet.ibm.com>
24606
24607         PR rtl-optimization/33796
24608         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
24609
24610 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24611
24612         PR libgfortran/34699
24613         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
24614         static links.
24615         * pa-hpux10.h (LINK_SPEC): Likewise.
24616         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
24617
24618 2008-01-16  Richard Guenther  <rguenther@suse.de>
24619
24620         PR middle-end/32628
24621         * fold-const.c (fold_convert_const_int_from_int): Do not
24622         set overflow if that occured only because of a sign extension
24623         change when converting from/to a sizetype with the same
24624         precision and signedness.
24625
24626 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
24627
24628         PR debug/34249
24629         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
24630         location address to the correct place.  Update copyright year.
24631
24632 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
24633
24634         * lambda-code.c (lambda_transform_legal_p): Handle the case of
24635         no dependences in the dependence_relations vector.
24636
24637 2008-01-16  Jan Hubicka  <jh@suse.cz>
24638
24639         PR rtl-optimization/31396
24640         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
24641         * cfg.c (dump_reg_info): Print it.
24642         * regs.h (struct reg_info_t): add freq_calls_crossed.
24643         (REG_FREQ_CALLS_CROSSED): New macro.
24644         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
24645         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
24646         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
24647         regmove_optimize): Update call crossed frequencies.
24648         * local-alloc.c (struct qty): Add freq_calls_crossed.
24649         (alloc_qty): Copute freq_calls_crossed.
24650         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
24651         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
24652         * ra.h (struct allocno): Add freq_calls_crossed.
24653
24654 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
24655
24656         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
24657         libgomp when compiling with ftree-parallelize-loops.
24658         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
24659
24660 2008-01-16  Richard Guenther  <rguenther@suse.de>
24661
24662         PR tree-optimization/34769
24663         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
24664         * tree.c (int_cst_value): Instead make this function more
24665         permissive in what it accepts as valid input.  Document this
24666         function always sign-extends the value.
24667
24668 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
24669             Richard Guenther  <rguenther@suse.de>
24670
24671         PR c/34668
24672         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
24673         (gimple_fold_indirect_ref_rhs): ... this.
24674         (gimple_fold_indirect_ref): New function with foldings
24675         that preserve lvalueness.
24676         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
24677         * tree-flow.h (gimple_fold_indirect_ref): Declare.
24678         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
24679         to fold an INDIRECT_REF, fall back to the old use of
24680         fold_indirect_ref_1.
24681
24682 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
24683
24684         * tree-data-ref.c (subscript_dependence_tester_1): Call
24685         free_conflict_function.
24686         (compute_self_dependence): Same.
24687
24688 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
24689
24690         PR debug/34249
24691         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
24692         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
24693         function global.
24694         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
24695         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
24696         for DWARF2_UNWIND_INFO targets.
24697
24698 2008-01-16  Richard Guenther  <rguenther@suse.de>
24699
24700         PR c/34768
24701         * c-typeck.c (common_pointer_type): Do not merge inconsistent
24702         type qualifiers for function types.
24703
24704 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
24705
24706         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
24707         loop_iterator li from previous commit.
24708
24709 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
24710
24711         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
24712
24713 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
24714
24715         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
24716         (parallelize_loops): Don't parallelize irreducible components.
24717
24718 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24719
24720         PR c++/24924
24721         * c-opts (c_common_post_options): Do not enable CPP
24722         flag_pedantic_errors by default.
24723
24724 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
24725
24726         PR rtl-optimization/31944
24727         * cse.c (remove_pseudo_from_table): New function.
24728         (merge_equiv_classes): Use above function to remove pseudo-registers.
24729         (invalidate): Likewise.
24730
24731 2008-01-13  Richard Guenther  <rguenther@suse.de>
24732
24733         PR middle-end/34601
24734         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
24735         instead of TYPE_MODE to deal with calls from expand_one_error_var.
24736
24737 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
24738
24739         * gcse.c (cprop_jump): Call validate_unshare_change instead of
24740         validate_change to unshare the source of the PC set.
24741
24742 2008-01-12  Jan Hubicka  <jh@suse.cz>
24743
24744         PR middle-end/32135
24745         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
24746         references above array bounds.  This might trigger bounds checks for
24747         pointers to arrays.
24748
24749 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
24750
24751         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
24752         new_replaceable_dependencies.
24753
24754 2008-01-12  Doug Kwan  <dougkwan@google.com>
24755
24756         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
24757         instead of OPT_Wreturn_type in warning due to ignored return type
24758         qualifiers.
24759         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
24760         options included in -Wextra.
24761         * c.opt: New option -Wignored_qualifiers.
24762         * doc/invoke.texi (Warning Options, -Wextra): Add new option
24763         -Wignore_qualifiers.
24764         (-Wignored-qualifiers): Document.
24765         (-Wreturn-type): Remove description of functionality now handled
24766         by -Wignored-qualifiers.
24767
24768 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
24769
24770         PR ada/33788
24771         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
24772         NOP_EXPR if it is between integral types with the same precision.
24773
24774 2008-01-12  Jan Hubicka  <jh@suse.cz>
24775
24776         PR other/28023
24777         * invoke.texi (max-inline-recursive-depth): Fix default value.
24778
24779 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
24780
24781         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
24782         correct type.
24783
24784 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
24785
24786         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
24787
24788 2008-01-11  James E. Wilson  <wilson@specifix.com>
24789
24790         PR target/26015
24791         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
24792
24793 2008-01-11  Anatoly Sokolov <aesok@post.ru>
24794
24795         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
24796         save/restore frame pointer register and don't use 'call-prologues'
24797         optimization in function with "OS_task" attribute.
24798
24799 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
24800
24801         PR middle-end/31309
24802         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
24803         when copying to memory.
24804
24805 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
24806
24807         PR rtl-optimization/30905
24808         * cfgcleanup.c: Include dce.h
24809         (crossjumps_occured): New global variable.
24810         (try_crossjump_bb): Exit loop after finding a fallthru edge.
24811         If something changed, set crossjumps_occured to true.
24812         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
24813         Don't add/remove fake edges to exit here...
24814         (cleanup_cfg): ...but do it here, when crossjumping.
24815         Run a fast DCE when successful crossjumps occured in the latest
24816         iteration of try_optimize_cfg.
24817
24818 2008-01-11  Richard Guenther  <rguenther@suse.de>
24819
24820         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
24821         (struct vn_unary_op_s): Likewise.
24822         (vn_reference_insert): Free old reference on hash collision.
24823
24824 2008-01-10  Raksit Ashok  <raksit@google.com>
24825
24826         PR rtl-optimization/27971
24827         * combine.c (find_split_point): Split PLUS expressions which are
24828         inside a MEM rtx, and whose first operand is complex.
24829
24830 2008-01-10  DJ Delorie  <dj@redhat.com>
24831
24832         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
24833         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
24834         (m32c_hard_regno_ok): Call the underlying function.
24835
24836 2008-01-10  Richard Guenther  <rguenther@suse.de>
24837
24838         PR middle-end/34683
24839         * tree-cfg.c (tree_merge_blocks): Do not go through the
24840         full-blown folding and stmt updating path if we just deal
24841         with virtual operands.
24842         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
24843         test for abnormal SSA_NAMEs.
24844
24845 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
24846
24847         PR middle-end/34641
24848         * reload.c (push_reload): Add assertions.  All constants from
24849         reg_equiv_constant should have been used for replacing the respective
24850         pseudo earlier.
24851         (find_reloads_address): Invoke find_reloads_address_part for
24852         constant taken from the reg_equiv_constant array.
24853
24854 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
24855
24856         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
24857         field (valnum) the first in the struct.  Replace bools with
24858         unit bit fields.
24859
24860 2008-01-10  Richard Guenther  <rguenther@suse.de>
24861
24862         PR tree-optimization/34651
24863         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
24864         types and ordering for masking and converting.
24865
24866 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
24867
24868         PR tree-optimization/34017
24869         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
24870         also for PHI_NODE expressions.
24871
24872 2008-01-09  Jan Hubicka  <jh@suse.cz>
24873
24874         PR tree-optimization/34708
24875         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
24876         based on number of case labels.
24877         (init_inline_once): Remove switch_cost.
24878         * tree-inline.h (eni_weights_d): Remove switch_cost.
24879
24880 2008-01-09  Richard Guenther  <rguenther@suse.de>
24881         Andrew Pinski  <andrew_pinski@playstation.sony.com>
24882
24883         PR middle-end/30132
24884         * gimplify.c (gimplify_cond_expr): Do not create an addressable
24885         temporary if an rvalue is ok or an lvalue is not required.
24886
24887 2008-01-09  Richard Guenther  <rguenther@suse.de>
24888
24889         PR middle-end/34458
24890         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
24891         adjust return type.
24892
24893 2008-01-09  Richard Guenther  <rguenther@suse.de>
24894
24895         PR middle-end/34679
24896         * tree.c (host_integerp): Check for sizetype only if the
24897         type is an integer type.
24898
24899 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
24900
24901         PR debug/26364
24902         * opts.c (decode_options): Disable inlining of functions called
24903         once if not in unit-at-a-time mode.
24904
24905 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
24906
24907         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
24908
24909 2008-01-08  Richard Guenther  <rguenther@suse.de>
24910
24911         PR middle-end/31863
24912         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
24913         out early if the result will be unused.
24914
24915 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
24916
24917         PR target/34709
24918         Revert:
24919
24920         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
24921         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
24922         for TARGET_RECIP.
24923
24924 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
24925
24926         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
24927         for vectorization tuned.
24928
24929 2008-01-08  Richard Guenther  <rguenther@suse.de>
24930
24931         PR tree-optimization/34683
24932         * tree-ssa-operands.c (operand_build_cmp): Export.
24933         * tree-ssa-operands.h (operand_build_cmp): Declare.
24934         * tree-vn.c (vuses_compare): Remove.
24935         (sort_vuses): Use operand_build_cmp.
24936         (sort_vuses_heap): Likewise.
24937         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
24938         to re-use old VEC if available.  Do not sort already sorted VUSEs.
24939         (vdefs_to_vec): Do not sort already sorted VDEFs.
24940
24941 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
24942
24943         PR middle-end/34694
24944         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
24945
24946 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
24947
24948         PR target/34702
24949         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
24950         limitations of reciprocal sequences on x86 targets.
24951
24952 2008-01-08  Richard Guenther  <rguenther@suse.de>
24953
24954         PR tree-optimization/34683
24955         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
24956
24957 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
24958
24959         PR target/34622
24960         * config/darwin.c (darwin_mergeable_string_section): Don't use
24961         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
24962
24963 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
24964
24965         PR target/34682
24966         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
24967         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
24968         predicates of op0 and op1 to register_operand.
24969         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
24970         expander using X87MODEF mode iterator.  Change predicates of
24971         op0 and op1 to register_operand.
24972         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
24973         corresponding patterns and macroize using MODEF macro.  Change
24974         predicates of op0 and op1 to register_operand and remove
24975         "m" constraint. Disparage "r" alternative with "!".
24976         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
24977         macroize using X87MODEF macro.  Change predicates of op0 and op1
24978         to register_operand and remove "m" constraint.  Disparage "r"
24979         alternative with "!".
24980         (absneg splitter with memory operands): Remove.
24981         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
24982         patterns and macroize using X87MODEF mode iterator.
24983         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
24984         Change predicate of op1 to register_operand.
24985         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
24986         for memory operands.
24987
24988 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
24989
24990         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
24991
24992 2008-01-07  Richard Guenther  <rguenther@suse.de>
24993
24994         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
24995         fields.
24996
24997 2008-01-07  Richard Guenther  <rguenther@suse.de>
24998
24999         PR tree-optimization/34683
25000         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
25001         VOPs of the needed size to save memory.  Use VEC_quick_push
25002         to save compile-time.
25003         (vdefs_to_vec): Likewise.
25004
25005 2008-01-07  Sa Liu  <saliu@de.ibm.com>
25006
25007         * config/spu/spu.md (divdf3): Genetate inline code for double
25008         division.  The implementation doesn't handle INF or NAN, therefore it
25009         only applies when -ffinite-math-only is given.
25010
25011 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
25012
25013         PR libstdc++/34680
25014         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
25015         * doc/cpp.texi ([Common Predefined Macros]): Document.
25016
25017 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
25018
25019         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
25020         order to use commutative addition instead of subtraction.
25021
25022 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
25023             Mircea Namolaru  <namolaru@il.ibm.com>
25024             Vladimir Yanovsky  <yanov@il.ibm.com>
25025             Revital Eres  <eres@il.ibm.com>
25026
25027         PR tree-optimization/34263
25028         * tree-outof-ssa.c (process_single_block_loop_latch,
25029         contains_tree_r): New functions.
25030         (analyze_edges_for_bb): Call process_single_block_loop_latch
25031         function to empty single-basic-block latch block if possible.
25032
25033 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
25034
25035         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
25036         for TARGET_RECIP.
25037         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
25038
25039 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
25040
25041         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
25042
25043 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
25044
25045         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
25046
25047 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
25048
25049         PR tree-optimization/34618
25050         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
25051         flag from T.
25052
25053 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
25054
25055         PR target/34673
25056         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
25057         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
25058         Update copyright year.
25059
25060         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
25061         Update copyright year.
25062         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
25063         using NR fixup.
25064
25065 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
25066
25067         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
25068         edge does not point to current bb before changing need_assert.
25069
25070 2008-01-04  Richard Guenther  <rguenther@suse.de>
25071
25072         PR middle-end/34029
25073         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
25074         for verifying purposes if they are is_gimple_min_invariant.
25075
25076 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
25077
25078         PR tree-optimization/34448
25079         PR tree-optimization/34465
25080         * gimplify.c (gimplify_init_constructor): Add new parameter
25081         notify_temp_creation.  Use it.
25082         (gimplify_modify_expr_rhs): Take volatiles into account when
25083         optimizing constructors.
25084         Do not optimize constructors if gimplify_init_constructor will dump to
25085         memory.
25086         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
25087         * gcc.c-torture/compile/pr34448.c: New.
25088
25089 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
25090
25091         PR gcov-profile/34609
25092         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
25093         return_slot if result is TREE_ADDRESSABLE.
25094
25095 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
25096
25097         * config/mips/mips.md (sqrt_condition): Tweak comment.
25098         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
25099
25100 2008-01-03  Tom Tromey  <tromey@redhat.com>
25101
25102         PR c/34457
25103         * c-common.c (c_type_hash): Handle VLAs.
25104
25105 2008-01-03  Jan Hubicka  <jh@suse.cz>
25106
25107         PR tree-optimization/31081
25108         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
25109         0 when inlining and not inlining to first basic block.
25110         (remap_decl): When var is initialized to 0, don't set default_def.
25111         (expand_call_inline): Set entry_bb.
25112         * tree-inline.h (copy_body_data): Add entry_bb.
25113
25114 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
25115
25116         PR c++/34619
25117         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
25118         before returning.
25119
25120         PR tree-optimization/29484
25121         * tree-inline.c (inline_forbidden_p_2): New function.
25122         (inline_forbidden_p): Disallow inlining if some static var
25123         has an address of a local LABEL_DECL in its initializer.
25124         * doc/extend.texi (Labels as Values): Document &&foo behaviour
25125         vs. inlining.
25126
25127 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
25128
25129         PR tree-optimization/34635
25130         * tree-data-ref.c (add_other_self_distances): Make sure that the
25131         evolution step is constant.
25132
25133 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
25134
25135         PR middle-end/34608
25136         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
25137
25138 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
25139
25140         * tree-sra.c (scalarize_init): Insert the generate_element_init
25141         statements after the generate_element_zero statements.
25142
25143 2008-01-02  Richard Guenther  <rguenther@suse.de>
25144
25145         PR middle-end/34093
25146         PR middle-end/31976
25147         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
25148         for very large number of operands instead of ICEing.
25149
25150 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
25151
25152         PR target/34013
25153         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
25154         while stack probing.
25155
25156 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
25157
25158         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
25159         in C++0x mode.
25160
25161 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
25162
25163         PR libmudflap/26442
25164         * tree-mudflap.c (mx_register_decls): Guard warning by
25165         !DECL_ARTIFICIAL check.
25166
25167 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
25168
25169         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
25170         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
25171         sse5_perm<mode>): Fix constraints.