OSDN Git Service

* config/i386/cygming-crtend.c (register_frame_ctor): Revert my
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
2
3         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
4         2008-04-25 commit.
5
6 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
7
8         PR target/36073
9         * config/i386/i386.md
10         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
11         Change operand 1 predicate to nonimmediate_operand.
12
13 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
14
15         PR debug/36060
16         * dwarf2out.c (struct die_struct): Mark as chain_circular through
17         die_sub field.
18         * gengtype.c (walk_type, write_func_for_structure): Handle
19         chain_circular.
20         * doc/gty.texi: Document chain_circular.
21
22 2008-04-28  Richard Guenther  <rguenther@suse.de>
23
24         PR tree-optimization/36066
25         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
26         SCEV and loop.
27
28 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
29
30         PR target/36064
31         * config/i386/i386.md
32         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
33         Use match_scratch instead of match_operand for operands 3 and 4.
34
35 2008-04-27  Richard Guenther  <rguenther@suse.de>
36
37         PR tree-optimization/18754
38         PR tree-optimization/34223
39         * tree-pass.h (pass_complete_unrolli): Declare.
40         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
41         loop size before and after unconditionally of UL_NO_GROWTH in effect.
42         Rewrite loop into loop closed SSA form if it is not already.
43         (tree_unroll_loops_completely): Re-structure to iterate over
44         innermost loops with intermediate CFG cleanups.
45         Unroll outermost loops only if requested or the code does not grow
46         doing so.
47         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
48         loops are available.
49         (tree_vectorize): Instead do so here.
50         (tree_complete_unroll): Also unroll outermost loops.
51         (tree_complete_unroll_inner): New function.
52         (gate_tree_complete_unroll_inner): Likewise.
53         (pass_complete_unrolli): New pass.
54         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
55         uses outside of the loop.
56         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
57         form if it is available.  
58         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
59         * passes.c (init_optimization_passes): Schedule complete inner
60         loop unrolling pass before the first CCP pass after final inlining.
61
62 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
63
64         * targhooks.h (default_emutls_var_fields,
65         default_emutls_var_init): Declare.
66         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
67         * target.h (struct gcc_target): Add struct emutls member.
68         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
69         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
70         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
71         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
72         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
73         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
74         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
75         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
76         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
77         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
78         emit debug information.
79         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
80         * varasm.c: Include targhooks.h.
81         (emutls_object_section, emutls_tmpl_section): New.
82         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
83         (EMUTLS_SEPARATOR): New.
84         (prefix_name): New.
85         (get_emutls_object_name): New.
86         (default_emutls_var_fields): New, broken out of ...
87         (get_emutls_object_type): ... here.  Adjust to use target hooks.
88         (get_emutls_init_templ_addr): Adjust to use target hooks.
89         (emutls_decl): Adjust to use target hooks.
90         (emutls_finish): Likewise.
91         (default_emutls_var_init): New, broken out of ...
92         (assemble_variable): ... here.  Adjust to use target hooks.
93         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
94         SECCAT_EMUTLS_TMPL.
95         * c-common.c (handle_section_attribute): Prevent overriding
96         sections for emulated tls with special sections.
97         * config/i386/i386.c (x86_64_elf_select_section): Add
98         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
99         (x86_64_elf_unique_section): Likewise.
100         * config/vxworks.c: Include tree.h.
101         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
102         (vxworks_override_options): Set TLS scheme.
103         * doc/tm.texi (Emulated TLS): New node.
104
105 2008-04-26  Simon Baldwin <simonb@google.com>
106
107         PR c/35652
108         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
109         with propagated string constants.
110
111 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
112
113         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
114         constraint for operand 2 when operand 0 is memory operand.
115         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
116         operand 0 is memory operand.
117         (fix_trunc<mode>_i387_with_temp): Ditto.
118         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
119         operand 2 when operand 1 is memory operand.
120         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
121         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
122         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
123         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
124         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
125         operands 2,3 and 4 when operand 1 is memory operand.
126         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
127         is memory operand.
128         (fistdi2_floor_with_temp): Ditto.
129         (fist<mode>2_floor_with_temp): Ditto.
130         (fistdi2_ceil_with_temp): Ditto.
131         (fist<mode>2_ceil_with_temp): Ditto.
132         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
133
134 2008-04-26  David Daney  <ddaney@avtrex.com>
135
136         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
137         unspec_volitile.
138         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
139         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
140         UNSPEC_UPDATE_GOT_VERSION): Renumber.
141         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
142         (compare_and_swap_12): New insn.
143         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
144         * config/mips/mips.c (mips_force_binary): New function.
145         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
146         (mips_expand_compare_and_swap_12): New function.
147         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
148
149 2008-04-25  Jan Hubicka  <jh@suse.cz>
150
151         PR testsuite/35843
152         * cfgexpand.c (pass_expand): Turn into RTL pass.
153         * passes.c (execute_one_pass): Do pass typechecking after execution.
154         * tree-pass.h (pass_expand): Turn into RTL pass.
155
156         * function.h (struct rtl_data): Move here fields
157         accesses_prior_frames, calls_eh_return, saves_all_registers,
158         has_nonlocal_goto, has_asm_statement, is_thunk,
159         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
160         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
161         arg_pointer_save_area_init from struct function; turn into bool.
162         (struct function): Move
163         calls_eh_return, saves_all_registers, has_nonlocal_goto,
164         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
165         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
166         tail_call_emit, arg_pointer_save_area_init
167         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
168         (current_function_returns_struct, current_function_returns_pcc_struct,
169         current_function_calls_setjmp, current_function_calls_alloca,
170         current_function_accesses_prior_frames,
171         current_function_calls_eh_return, current_function_is_thunk,
172         current_function_stdarg, current_function_profile,
173         current_function_limit_stack, current_function_uses_pic_offset_table,
174         current_function_uses_const_pool, current_function_has_nonlocal_label,
175         current_function_saves_all_registers,
176         current_function_has_nonlocal_goto,
177         current_function_has_asm_statement): Remove accesor macros.
178         * ra-conflict.c (global_conflicts): Update.
179         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
180         (suitable_for_tail_call_opt_p): Update.
181         * builtins.c (expand_builtin_return_addr): Update.
182         (expand_builtin_setjmp_setup): Update.
183         (expand_builtin_nonlocal_goto): Update.
184         * final.c (final_start_function): Update.
185         (profile_function): Update.
186         (leaf_function_p): Update.
187         (only_leaf_regs_used): Update.
188         * df-scan.c (df_get_exit_block_use_set): Update.
189         * dojump.c (clear_pending_stack_adjust): Update.
190         * tree-stdarg.c (gate_optimize_stdarg): Update.
191         * gimple-low.c (lower_function_body): Update.
192         * global.c (compute_regsets): Update.
193         (global_alloc): Update.
194         * dwarf2out.c (dwarf2out_begin_prologue): Update.
195         * expr.c (expand_assignment): Update.
196         * dse.c (dse_step0): Update.
197         (dse_step1): Update.
198         * c-decl.c (store_parm_decls): Update.
199         * local-alloc.c (combine_regs): Update.
200         (find_free_reg): Update.
201         * function.c (assign_parms_augmented_arg_list): Update.
202         (assign_parm_find_data_types): Update.
203         (assign_parms): Update.
204         (allocate_struct_function): Update.
205         (expand_function_start): Update.
206         (expand_function_end): Update.
207         (get_arg_pointer_save_area): Update.
208         (thread_prologue_and_epilogue_insns): Update.
209         (rest_of_match_asm_constraints): Update.
210         * stor-layout.c (variable_size): Update.
211         * gcse.c (gcse_main): Update.
212         (bypass_jumps): Update.
213         * gimplify.c (gimplify_function_tree): Update.
214         * calls.c (emit_call_1): Update.
215         (expand_call): Update.
216         * bt-load.c (compute_defs_uses_and_gen): Update.
217         * except.c (sjlj_assign_call_site_values): Update.
218         (sjlj_emit_function_enter): Update.
219         (can_throw_external): Update.
220         (set_nothrow_function_flags): Update.
221         (expand_builtin_unwind_init): Update.
222         (expand_eh_return): Update.
223         (convert_to_eh_region_ranges): Update.
224         (output_function_exception_table): Update.
225         * emit-rtl.c (gen_tmp_stack_mem): Update.
226         * cfgexpand.c (expand_used_vars): Update.
227         (tree_expand_cfg): Update.
228         * cfgcleanup.c (rest_of_handle_jump): Update.
229         * explow.c (allocate_dynamic_stack_space): Update.
230         * varasm.c (assemble_start_function): Update.
231         (force_const_mem): Update.
232         (mark_constant_pool): Update.
233         * tree-optimize.c (tree_rest_of_compilation): Update.
234         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
235         * tree-cfg.c (notice_special_calls): Update.
236         (is_ctrl_altering_stmt): Update.
237         (tree_can_make_abnormal_goto): Update.
238         (tree_purge_dead_abnormal_call_edges): Update.
239         * config/alpha/predicates.md: Update.
240         * config/alpha/alpha.c (alpha_sa_mask): Update.
241         (alpha_sa_size): Update.
242         (alpha_does_function_need_gp): Update.
243         (alpha_expand_prologue): Update.
244         (alpha_start_function): Update.
245         (alpha_output_function_end_prologue): Update.
246         (alpha_expand_epilogue): Update.
247         * config/frv/frv.c (frv_stack_info): Update.
248         (frv_expand_epilogue): Update.
249         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
250         (s390_register_info): Update.
251         (s390_frame_info): Update.
252         (s390_init_frame_layout): Update.
253         (s390_can_eliminate): Update.
254         (save_gprs): Update.
255         * config/spu/spu.c (spu_split_immediate): Update.
256         (need_to_save_reg): Update.
257         (spu_expand_prologue): Update.
258         (spu_expand_epilogue): Update.
259         * config/sparc/sparc.md: Update.
260         * config/sparc/sparc.c (eligible_for_return_delay): Update.
261         (sparc_tls_got): Update.
262         (legitimize_pic_address): Update.
263         (sparc_emit_call_insn): Update.
264         (sparc_expand_prologue): Update.
265         (output_return): Update.
266         (print_operand): Update.
267         (sparc_function_ok_for_sibcall): Update.
268         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
269         * config/m32r/m32r.md: Update.
270         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
271         (m32r_compute_frame_size): Update.
272         (m32r_expand_prologue): Update.
273         (m32r_expand_epilogue): Update.
274         (m32r_legitimize_pic_address): Update.
275         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
276         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
277         * config/i386/i386.c (ix86_frame_pointer_required): Update.
278         (gen_push): Update.
279         (ix86_save_reg): Update.
280         (ix86_compute_frame_layout): Update.
281         (ix86_expand_prologue): Update.
282         (ix86_expand_epilogue): Update.
283         * config/sh/sh.c (output_stack_adjust): Update.
284         (calc_live_regs): Update.
285         (sh5_schedule_saves): Update.
286         (sh_expand_prologue): Update.
287         (sh_expand_epilogue): Update.
288         (sh_setup_incoming_varargs): Update.
289         (sh_allocate_initial_value): Update.
290         (sh_get_pr_initial_val): Update.
291         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
292         * config/sh/sh.md (label:): Update.
293         * config/avr/avr.c (out_movhi_mr_r): Update.
294         * config/crx/crx.h (enum): Update.
295         * config/xtensa/xtensa.h (along): Update.
296         * config/stormy16/stormy16.c Update.
297         (xstormy16_compute_stack_layout): Update.
298         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
299         (fr30_expand_prologue): Update.
300         * config/cris/cris.c (cris_conditional_register_usage): Update.
301         (cris_reg_saved_in_regsave_area): Update.
302         (cris_initial_frame_pointer_offset): Update.
303         (cris_simple_epilogue): Update.
304         (cris_expand_prologue): Update.
305         (cris_expand_epilogue): Update.
306         (cris_expand_pic_call_address): Update.
307         (cris_asm_output_symbol_ref): Update.
308         (cris_asm_output_label_ref): Update.
309         * config/cris/cris.md Update.
310         * config/iq2000/iq2000.c (compute_frame_size): Update.
311         (iq2000_expand_epilogue): Update.
312         * config/mt/mt.h (save_direction): Update.
313         * config/mn10300/mn10300.c (mn10300_function_value): Update.
314         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
315         (ia64_secondary_reload_class): Update.
316         * config/m68k/m68k.c (m68k_save_reg): Update.
317         (m68k_expand_prologue): Update.
318         (m68k_expand_epilogue): Update.
319         (legitimize_pic_address): Update.
320         * config/rs6000/rs6000.c (rs6000_got_register): Update.
321         (first_reg_to_save): Update.
322         (first_altivec_reg_to_save): Update.
323         (compute_vrsave_mask): Update.
324         (compute_save_world_info): Update.
325         (rs6000_stack_info): Update.
326         (spe_func_has_64bit_regs_p): Update.
327         (rs6000_ra_ever_killed): Update.
328         (rs6000_emit_eh_reg_restore): Update.
329         (rs6000_emit_allocate_stack): Update.
330         (rs6000_emit_prologue): Update.
331         (rs6000_emit_epilogue): Update.
332         (rs6000_output_function_epilogue): Update.
333         (output_profile_hook): Update.
334         (rs6000_elf_declare_function_name): Update.
335         * config/rs6000/rs6000.h (rs6000_args): Update.
336         * config/rs6000/rs6000.md: Update.
337         * config/mcore/mcore.c (mcore_expand_prolog): Update.
338         * config/arc/arc.c (arc_output_function_epilogue): Update.
339         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
340         * config/darwin.c (machopic_function_base_name): Update.
341         * config/score/score3.c (score3_compute_frame_size): Update.
342         (rpush): Update.
343         (rpop): Update.
344         (score3_epilogue): Update.
345         * config/score/score7.c (score7_compute_frame_size): Update.
346         (score7_prologue): Update.
347         (score7_epilogue): Update.
348         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
349         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
350         * config/arm/arm.c (use_return_insn): Update.
351         (require_pic_register): Update.
352         (arm_load_pic_register): Update.
353         (arm_compute_save_reg0_reg12_mask): Update.
354         (arm_compute_save_reg_mask): Update.
355         (thumb1_compute_save_reg_mask): Update.
356         (output_return_instruction): Update.
357         (arm_output_function_prologue): Update.
358         (arm_output_epilogue): Update.
359         (arm_get_frame_offsets): Update.
360         (arm_expand_prologue): Update.
361         (thumb_pushpop): Update.
362         (thumb_exit): Update.
363         (thumb1_expand_prologue): Update.
364         (thumb1_expand_epilogue): Update.
365         (arm_unwind_emit): Update.
366         (arm_output_fn_unwind): Update.
367         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
368         * config/arm/arm.md: Update.
369         * config/pa/pa.md: Update.
370         * config/pa/pa.c (legitimize_pic_address): Update.
371         (compute_frame_size): Update.
372         (hppa_expand_prologue): Update.
373         (hppa_expand_epilogue): Update.
374         (borx_reg_operand): Update.
375         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
376         (HARD_REGNO_RENAME_OK): Update.
377         * config/mips/mips.c (mips_global_pointer): Update.
378         (mips_save_reg_p): Update.
379         (mips_compute_frame_info): Update.
380         (mips_frame_pointer_required): Update.
381         (mips_expand_prologue): Update.
382         (mips_expand_epilogue): Update.
383         (mips_can_use_return_insn): Update.
384         (mips_reorg_process_insns): Update.
385         * config/v850/v850.c (compute_register_save_size): Update.
386         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
387         * config/mmix/mmix.c (along): Update.
388         (mmix_expand_epilogue): Update.
389         * config/bfin/bfin.c (legitimize_pic_address): Update.
390         (must_save_p): Update.
391         (stack_frame_needed_p): Update.
392         (add_to_reg): Update.
393         (bfin_expand_prologue): Update.
394         * stmt.c (expand_asm_operands): Update.
395         * reload1.c (reload): Update.
396         (init_elim_table): Update.
397
398 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
399         
400         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
401         
402 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
403
404         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with
405         SSEMODE.
406         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
407         (mov<mode>): Removed.
408         (*movv4sf_internal): Likewise.
409         (*movv2df_internal): Likewise.
410
411 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
412
413         * config.gcc (crx-*-elf): Remove deprecation.
414
415 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
416
417         * config/i386/cygming-crtend.c (register_frame_ctor): Register
418         __gcc_deregister_frame with atexit.
419         (deregister_frame_dtor): Remove.
420
421 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
422             Nathan Sidwell  <nathan@codesourcery.com>
423
424         * config/rs6000/rs6000.opt (mspe): Remove Var property.
425         (misel): Likewise.
426         * config/rs6000/rs6000.h (rs6000_spe): Declare.
427         (rs6000_isel): Likewise.
428         * config/rs6000/rs6000.c (rs6000_spe): New variable.
429         (rs6000_isel): New variable.
430         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
431
432 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
433
434         PR c++/35758
435         * c-common.c (handle_vector_size_attribute): Call
436         lang_hooks.types.reconstruct_complex_type instead of
437         reconstruct_complex_type.
438         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
439         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
440         * langhooks.h (struct lang_hooks_for_types): Add
441         reconstruct_complex_type hook.
442         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
443         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
444
445 2008-04-24  Richard Guenther  <rguenther@suse.de>
446
447         * c-common.h (check_builtin_function_arguments): Declare.
448         * c-common.c (validate_nargs): New function.
449         (check_builtin_function_arguments): Likewise.
450         * c-typeck.c (build_function_call): Call
451         check_builtin_function_arguments.
452         * builtins.c (fold_builtin_classify): Remove error reporting code.
453         (fold_builtin_unordered_cmp): Likewise.
454         (fold_builtin_1): Likewise.
455         (fold_builtin_n): Likewise.
456
457 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
458
459         PR tree-optimization/36008
460         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
461         the original op1, rather than delta by step.
462
463 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
464             Sebastian Pop  <sebastian.pop@amd.com>
465
466         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
467         eliminate_local_variables_stmt, eliminate_local_variables,
468         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
469         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
470         of code delimited by two edges in the CFG.
471         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
472         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
473         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
474         the case of parallelisation of reductions.
475         (expr_invariant_in_region_p): New.
476
477         * tree-flow.h (gather_blocks_in_sese_region): Declared.
478         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
479
480 2008-04-24  Ira Rosen  <irar@il.ibm.com>
481             Richard Guenther  <rguenther@suse.de>
482
483         PR tree-optimization/36034
484         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
485         incapable of dealing with loads with gaps.
486
487 2008-04-24  Rafael Espindola  <espindola@google.com>
488
489         * tree-flow.h (vrp_evaluate_conditional): Change signature.
490         * tree-ssa-propagate.c (fold_predicate_in): Update call to
491         vrp_evaluate_conditional.
492         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
493         (vrp_evaluate_conditional): Split the cond argument.
494         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
495         (simplify_stmt_for_jump_threading): Update call to
496         vrp_evaluate_conditional.
497
498 2008-04-24  Ira Rosen  <irar@il.ibm.com>
499
500         PR tree-optimization/35982
501         * tree-vect-analyze.c (vect_check_interleaving): Check that the
502         interleaved data-refs are of the same type.
503
504 2008-04-24  Danny Smith  <dannysmith@users.net>
505
506         * c-format.c (check_format_info_main): Use strncmp rather than a
507         magic prefix to handle multichar length specs.
508         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
509         Don't prefix "I64" and "I32" with '\0'.
510
511 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
512
513         PR target/36015
514         * config/i386/i386.c (init_cumulative_args): Don't pass anything
515         in registers for -m32 only if stdarg_p (fntype).
516
517 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
518
519         PR rtl-optimization/36006
520         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
521         temp to op0 in order to avoid invalid rtx sharing.
522
523 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
524
525         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
526         check TREE_INVARIANT.
527         * tree-gimple.c (is_gimple_address): New.
528         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
529         * tree-gimple.h (is_gimple_address): New.
530         * tree.h (decl_address_invariant_p): New.
531         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
532         (build_string): Likewise.
533         (decl_address_invariant_p): New, from is_gimple_invariant_address.
534         (tree_invariant_p_1): Likewise.
535         (save_expr): Use it.
536         (tree_invariant_p): New.
537         (skip_simple_arithmetic): Use it.
538         (stabilize_reference_1): Use it.
539         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
540         simplify.
541         (build1_stat): Drop code to compute TREE_INVARIANT.
542         (build2_stat): Drop code to compute TREE_INVARIANT.
543         (build3_stat): Drop code to compute TREE_INVARIANT.
544         (build4_stat): Drop code to compute TREE_INVARIANT.
545         (build5_stat): Drop code to compute TREE_INVARIANT.
546         (build7_stat): Drop code to compute TREE_INVARIANT.
547         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
548         * tree.h (struct tree_base): Remove invariant_flag.
549         (TREE_INVARIANT): Remove.
550         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
551         (fold_builtin_expect): Check TREE_CONSTANT.
552         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
553         * c-tree.h (c_expr_to_decl): Drop third parameter.
554         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
555         (build_c_cast): Don't set TREE_INVARIANT.
556         (pop_init_level): Don't set TREE_INVARIANT.
557         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
558         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
559         TREE_CONSTANT.
560         (gimplify_init_constructor): Don't set TREE_INVARIANT.
561         (gimplify_addr_expr): Adjust comment.
562         * tree-mudflap.c (mf_build_string):
563         * print-tree.c (print_node): Don't print TREE_INVARIANT.
564         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
565         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
566         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
567         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
568         * langhooks.h (struct lang_hooks): Drop third parameter from
569         expr_to_decl.
570
571 2008-04-23  Richard Guenther  <rguenther@suse.de>
572
573         PR tree-optimization/27799
574         PR tree-optimization/32921
575         PR tree-optimization/32624
576         * tree-ssa-structalias.c (merge_smts_into): Only merge the
577         SMTs aliases and the tag itself into the solution.
578         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
579         merge the points-to solution back into the SMT aliases.
580         (may_alias_p): Use alias_set_subset_of instead of
581         aliases_conflict_p.  A pointer which points to
582         memory with alias set zero may access any variable.
583
584 2008-04-23  Richard Guenther  <rguenther@suse.de>
585
586         * alias.c (alias_set_subset_of): Correctly handle asking
587         if zero is a subset of an alias set with zero child.
588         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
589         (compute_flow_insensitive_aliasing): Correctly walk all
590         pointers.  Do not unnecessarily union sets.
591
592 2008-04-23  Richard Guenther  <rguenther@suse.de>
593
594         PR middle-end/36021
595         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
596
597 2008-04-22  Tomas Bily  <tbily@suse.cz>
598
599         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
600         unreachable case.
601         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
602         NON_LVALUE_EXPR.
603         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
604         * tree-ssa-structalias.c (get_constraint_for): Likewise.
605         * tree-inline.c (estimate_num_insns_1): Likewise.
606         * varasm.c (const_hash_1, compare_constant, copy_constant)
607         (compute_reloc_for_constant, output_addressed_constants): Likewise.
608         * emit-rtl.c (component_ref_for_mem_expr)
609         (set_mem_attributes_minus_bitpos): Likewise.
610         * expr.c (highest_pow2_factor, expand_expr_real_1, )
611         (is_aligning_offset): Likewise.
612         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
613         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
614         * dojump.c (do_jump): Likewise.
615         * builtins.c (get_pointer_alignment, get_memory_rtx)
616         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
617         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
618
619 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
620
621         PR rtl-optimization/36017
622         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
623         expanding the library call.
624
625 2008-04-22  Ian Lance Taylor  <iant@google.com>
626
627         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
628         than size_in_bytes.
629
630 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
631
632         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
633         of LR/CTR moves for Power6.
634
635 2008-04-22  Kenneth Zadeck <zadeck@naturalbridge.com>
636
637         PR middle-end/36003
638         * passes.c (init_optimization_passes): Remove
639         pass_fast_rtl_byte_dce.
640         
641 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
642
643         PR target/29096
644         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
645         builtin functions to generate faster code.
646         (_mm_cvtpu16_ps): Ditto.
647         (_mm_cvtpi32x2_ps): Ditto.
648
649 2008-04-22  Nick Clifton  <nickc@redhat.com>
650
651         * common.opt (ftree-loop-distribution): Add Optimization
652         attribute.
653
654         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
655         (frv_expand_builtin_va_start): Likewise.
656
657         * config/arm/arm.c (thumb_find_work_register): Fix location of
658         argument register count.
659
660 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
661
662         Support scheduling for ColdFire V1 and V3 microarchitecture.
663         Improve scheduling of multiplication instructions.
664
665         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
666         (mac): New instruction attribute.
667         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
668         (m68k_sched_mac): New variable.
669         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
670         Handle cfv1 and cfv3.
671         (max_insn_size): New static variable.
672         (struct _sched_ib): New type.
673         (sched_ib): New static variable.
674         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
675         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
676         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
677         Update.
678         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
679         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
680         new variables.  Update.
681         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
682         Add modeling of cfv3 instruction buffer.  Update.
683         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
684         * config/m68k/m68k.h (TUNE_CFV3): New macro.
685         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
686         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
687         a particular reservation applies to.
688         (type2): Reorganize attribute values.  Rename alu to alu_reg,
689         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
690         to mul_l and mul_w.
691         (cf_ib_*): Simplify description of instruction buffer.
692         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
693         (cf_mem): Split into cf_mem1 and cf_mem2.
694         (cf_v2_move_??): Rename to cfv12_alu_??.
695         (cf_v2_move_l_??): Rename to cfv12_omove_??.
696         (cf_v2_mul_??): Remove reservations.
697         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
698         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
699         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
700         appropriate place.
701         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
702         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
703         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
704         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
705         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
706         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
707         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
708         expansions of the above reservations for instructions of sizes
709         1, 2 and 3 words.
710
711 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
712
713         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
714
715 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
716
717         * coverage.c: Include tree-pass.h.
718         (coverage_counter_alloc): Print da_file_name to the dump file.
719
720 2008-04-21  Kenneth Zadeck <zadeck@naturalbridge.com>
721
722         * sbitmap.c (sbitmap_range_empty_p): New function.
723         * sbitmap.h (sbitmap_range_empty_p): New function.
724         * bitmap.h: Now includes obstack.h.
725
726 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
727             Kenneth Zadeck <zadeck@naturalbridge.com>
728
729         * dbgcnt.def (ra_byte_scan): Added.
730         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
731         when the last hit happens for a counter.  
732         * timevar.def (TV_DF_BYTE_LR): New variable.
733         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
734         * passes.c (pass_fast_rtl_byte_dce): New pass.
735         * fwprop.c (update_df): Added mode to call df_ref_create.
736         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
737         DF_REF_EXTRACT_OFFSET.
738         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
739         DF_BYTE_LR_OUT, df_byte_lr): New macro.
740         (df_mm): New enum.
741         (df_ref_extract): Added mode field.
742         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
743         DF_REF_EXTRACT_OFFSET.
744         (DF_REF_EXTRACT_MODE): New macro.
745         (df_byte_lr_bb_info): New structure.
746         (df_print_byte_regset, df_compute_accessed_bytes, 
747         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
748         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
749         df_byte_lr_simulate_uses,
750         df_byte_lr_simulate_artificial_refs_at_top,
751         df_byte_lr_simulate_artificial_refs_at_end,
752         df_compute_accessed_bytes): New function.
753         (df_ref_create): Add parameter.
754         (df_byte_lr_get_bb_info): New inline function.
755         * df-scan.c (df_ref_record, df_uses_record,
756         df_ref_create_structure): Added mode parameter.
757         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
758         df_defs_record, df_uses_record, df_get_conditional_uses,
759         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
760         df_entry_block_defs_collect, df_exit_block_uses_collect):
761         Added mode parameter to calls to df_ref_record, df_uses_record,
762         df_ref_create_structure.
763         (df_ref_equal_p, df_ref_compare): Added test for modes.
764         (df_ref_create_structure): Added code to set mode.  Renamed
765         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
766         DF_REF_EXTRACT_OFFSET.
767         * df-core.c (df_print_byte_regset): New function.
768         * df-byte-scan.c: New file.
769         * df-problems.c (df_rd_transfer_function): Removed unnecessary
770         calls to BITMAP_FREE.  
771         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
772         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
773         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
774         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
775         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
776         df_byte_lr_local_compute, df_byte_lr_init,
777         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
778         df_byte_lr_transfer_function, df_byte_lr_free, 
779         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
780         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
781         df_byte_lr_simulate_uses,
782         df_byte_lr_simulate_artificial_refs_at_top,
783         df_byte_lr_simulate_artificial_refs_at_end): New function.
784         * dce.c (byte_dce_process_block): New function.
785         (dce_process_block): au is now passed in rather than computed
786         locally.  Changed loops that look at artificial defs to not look
787         for conditional or partial ones, because there never are any.  
788         (fast_dce): Now is able to drive byte_dce_process_block or 
789         dce_process_block depending on the kind of dce being done.
790         (rest_of_handle_fast_dce): Add parameter to fast_dce.
791         (rest_of_handle_fast_byte_dce): New function.
792         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
793         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
794
795 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
796
797         PR fortran/35019
798         * gcc.h: Added fortran options that take arguments to
799         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
800         macros.
801
802 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
803
804         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
805         scalarization if on the LHS and not a full access.
806
807 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
808
809         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
810
811 2008-04-18  Rafael Espindola  <espindola@google.com>
812
813         * tree-vrp.c (find_case_label_index): Fix the binary search.
814         (find_case_label_range): New.
815         (vrp_visit_switch_stmt): Use find_case_label_range.
816         (simplify_switch_using_ranges): Use find_case_label_range.
817
818 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
819
820         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
821         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
822
823 2008-04-18  Tom Tromey  <tromey@redhat.com>
824
825         PR libcpp/15500:
826         * doc/cpp.texi (Implementation-defined behavior): Mention
827         -finput-charset.
828
829 2008-04-18  Ian Lance Taylor  <iant@google.com>
830
831         * fold-const.c (pointer_may_wrap_p): New static function.
832         (fold_comparison): Add another test for pointer overflow.  Use
833         pointer_may_wrap_p to disable some false positives.
834
835 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
836           
837         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
838         (fname_as_string): Match updated cpp_interpret_string prototype.
839         (fix_string_type): Support char16_t* and char32_t*.
840         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
841         derivative) nodes.  Register as builtin if C++0x.
842         (c_parse_error): Support CPP_CHAR{16,32}.
843         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
844         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
845         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
846         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
847         CTI_CHAR32_ARRAY_TYPE>: New elements.
848         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
849         char32_type_node, signed_char32_type_node, char16_array_type_node,
850         char32_array_type_node): New defines.
851         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
852         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
853         (lex_string): Support CPP_STRING{16,32}, match updated
854         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
855         (lex_charconst): Support CPP_CHAR{16,32}.
856         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
857         and CPP_STRING{16,32}.
858
859 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
860
861         PR bootstrap/35457
862         * aclocal.m4: Regenerate.
863         * configure: Regenerate.
864
865 2008-04-18  Jan Hubicka  <jh@suse.cz>
866
867         * except.c (dw2_size_of_call_site_table,
868         sjlj_size_of_call_site_table): Use vector API for call_site_record.
869
870         * cgraphbuild.c (build_cgraph_edges): Update.
871         * tree-pass.h: Update comment.
872         * final.c (leaf_function_p): Update.
873         (leaf_renumber_regs): Update.
874         (rest_of_clean_state): Update.
875         * omp-low.c (expand_omp_parallel): Update.
876         * ipa-reference.c (analyze_function): Update.
877         * reorg.c (find_end_label): Update.
878         (optimize_skip): Update.
879         (fill_simple_delay_slots): Update.
880         (fill_simple_delay_slots): Update.
881         (make_return_insns): Update.
882         (dbr_schedule): Update.
883         * gimple-low.c (record_vars_into): Update.
884         * cfgbuild.c (make_edges): Update.
885         * function.c (assign_stack_local): Update.
886         (assign_parm_adjust_stack_rtl): Update.
887         (locate_and_pad_parm): Update.
888         (allocate_struct_function): Do not initialize stack_alignment_needed
889         and preferred_stack_boundary here.
890         (stack_protect_prologue): Update.
891         (stack_protect_epilogue): Update.
892         (expand_function_start): Initialize stack_alignment_needed,
893         preferred_stack_boundary and max_jumptable_ents.
894         (expand_function_end): Update.
895         (free_after_compilation): Do not NULLify epilogue_delay_list.
896         * function.h (struct rtl_data): Add stack_protect_guard,
897         stack_alignment_needed,
898         preferred_stack_boundary, epilogue_delay_list.
899         (struct function): Remove value_histograms, stack_alignment_needed,
900         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
901         last_label_uid,
902         unexpanded_var_list, stack_protect_guard.
903         (current_function_epilogue_delay_list): Remove.
904         * ipa-type-escape.c (analyze_function): Update.
905         * gimplify.c (pop_gimplify_context): Update comment.
906         * calls.c (expand_call): Update.
907         (emit_library_call_value_1): Update.
908         * except.c (set_nothrow_function_flags): Update.
909         * cfgexpand.c (get_decl_align_unit): Update.
910         (create_stack_guard): Update.
911         (estimated_stack_frame_size): Update.
912         (expand_used_vars): Update.
913         (tree_expand_cfg): Free histogram earliers, init expansion variables.
914         * explow.c (allocate_dynamic_stack_space): Update.
915         * tree-ssa-live.c (remove_unused_locals): Update.
916         * varasm.c (mark_constant_pool): Update.
917         * tree-inline.c (remap_decls): Update.
918         (initialize_cfun): Update.
919         (declare_return_variable): Update.
920         (inline_forbidden_p): Update.
921         (expand_call_inline): Update.
922         (declare_inline_vars): Update.
923         (tree_function_versioning): Update.
924         * tree-flow.h (value_histograms): New.
925         (VALUE_HISTOGRAMS): New macro.
926         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
927         last_label_uid.
928         * tree-cfg.c (set_bb_for_stmt): Update.
929         (replace_by_duplicate_decl): Update.
930         (move_block_to_fn): Update.
931         (new_label_mapper): Update.
932         (dump_function_to_file): Update.
933         * ipa-struct-reorg.c (build_data_structure): Update.
934         * cfgrtl.c (print_rtl_with_bb): Update.
935         * reload1.c (reload): Update.
936         (reload): Update.
937         * config/i386/i386.c (setup_incoming_varargs_64,
938         ix86_compute_frame_layout): Update.
939         * config/arc/arc.c (arc_output_function_epilogue): Update.
940
941 2008-04-18  Marius Strobl <marius@FreeBSD.org>
942
943         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
944         for FreeBSD as well.
945         * gthr-posix95.h: Likewise.
946
947 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
948
949         PR rtl-optimization/35838
950         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
951         out the byte offset of the first subreg.
952
953 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
954
955         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
956         to split_ti instead of three separate calls with single member arrays.
957         (subti3 splitter): Ditto.
958         (adddi3 splitter): Ditto with split_di.
959         (subdi3 splitter): Ditto.
960         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
961         two separate calls with single member arrays.  Swap match_dup
962         operands 1 and 2 to better fit into the array.
963         (negdi2 splitter): Ditto with split_di.
964         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
965         two separate calls with single member arrays.  Swap match_dup operands
966         6 and 7 to better fit into the array.
967
968 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
969
970         * config/i386/i386.c (sse_builtin_type): New.
971         (bdesc_sse_args): Likewise.
972         (bdesc_sse_3arg): Removed.
973         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
974         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
975         IX86_BUILTIN_ROUNDPS.
976         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
977         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
978         IX86_BUILTIN_ROUNDPS.
979         (ix86_expand_sse_4_operands_builtin): Removed.
980         (ix86_expand_sse_operands_builtin): New.
981         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
982         and CODE_FOR_sse4_1_roundps.
983         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
984         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
985
986 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
987
988         PR target/35907
989         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
990         regs before frame pop when needed.  If use_backchain_to_restore_sp
991         then load backchain into a temp reg to restore vr and vrsave.  Add
992         code to restore vr after frame pop if possible.
993
994 2008-04-17  Richard Guenther  <rguenther@suse.de>
995
996         * tree-vn.c (expressions_equal_p): Do not check type
997         equality or compatibility before calling operand_equal_p.
998         * fold-const.c (operand_equal_p): Check equivalence of
999         integer constants before bailing out due to signedness or
1000         precision differences.
1001         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
1002         spurious differences in type qualification.  Ignore types
1003         for COMPONENT_REFs at all.
1004
1005 2008-04-17  Christian Bruel  <christian.bruel@st.com>
1006
1007         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
1008         msw_skip comparison.
1009         
1010 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
1011
1012         PR c/35739
1013         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
1014         reg type.
1015
1016         PR tree-optimization/35899
1017         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
1018         rather than TREE_OPERAND.
1019
1020 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
1021
1022         PR target/35944
1023         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
1024         temporary registers.  Change operand predicate to general_operand.
1025         (remainderxf3): Ditto.
1026
1027 2008-04-16  Richard Guenther  <rguenther@suse.de>
1028
1029         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
1030         * tree-affine.c (aff_combination_expand): Look through some
1031         conversions.
1032
1033 2008-04-15  Doug Kwan  <dougkwan@google.com>
1034
1035         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
1036         for hex printing.
1037         * tree-pretty-print.c (dump_generic_node): Ditto.
1038         * final.c (output_addr_const): Ditto.
1039         * dwarf2out.c (output_cfi): Ditto.
1040         * c-pretty-print.c (pp_c_integer_constant): Ditto.
1041         * print-rtl.c (print_rtx): Ditto.
1042         * print-tree.c (print_node_brief, print_node): Ditto.
1043         * c-common.c (match_case_to_enum_1): Ditto.
1044         * sched-vis.c (print_value): Ditto.
1045         * config/i386/i386.c (print_operand): Cast to long unsigned int
1046         for hex printing.
1047
1048 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
1049         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
1050         MS Windows VirtualProtect function.
1051
1052 2008-04-15  Jan Hubicka  <jh@suse.cz>
1053
1054         * gengtype.c (write_root): Param_is argument is OK.
1055         * expr.c (expand_expr_real_1): Update call of get_exception_*.
1056         * function.h: Include varray.h
1057         (rtl_eh): New stucture based on except.c one.
1058         (call_site_record): New forward declaration and vector type.
1059         * calls.c (emit_call_1): Do not call
1060         note_current_region_may_contain_throw.
1061         * except.c (eh_status): Remove cur_region, try_region since they are
1062         unused.
1063         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
1064         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
1065         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
1066         Remove call_site_data_used, call_site_data_size.
1067         Turn call_site_record into vector in function.h.
1068         (note_current_region_may_contain_throw): Remove.
1069         (get_exception_pointer, get_exception_filter): Do not take struct
1070         function argument; update.
1071         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
1072         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
1073         build_post_landing_pads, dw2_build_landing_pads,
1074         sjlj_assign_call_site_values, sjlj_mark_call_sites,
1075         sjlj_emit_function_enter, sjlj_emit_function_enter, 
1076         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
1077         sjlj_build_landing_pads, finish_eh_generation,
1078         remove_exception_handler_label, remove_eh_handler,
1079         maybe_remove_eh_handler, add_reachable_handler,
1080         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
1081         add_action_record, collect_one_action_chain, add_call_site,
1082         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
1083         sjlj_output_call_site_table, output_function_exception_table,
1084         * except.h (note_current_region_may_contain_throw): Remove
1085         (get_exception_pointer, get_exception_filter): Do not take struct
1086         function argument.
1087         * Makefile.in (GTFILES): Put varargs before struct function.
1088
1089 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1090
1091         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
1092         punt for STRING_CST.
1093         (get_constraint_for): Deal with STRING_CST here instead.
1094
1095 2008-04-15  Richard Guenther  <rguenther@suse.de>
1096
1097         * tree-ssa-propagate.c (substitute_and_fold): Substitute
1098         statements in a basic-block with a backward walk.  Do not
1099         substitute into dead statements but instead remove those.
1100
1101 2008-04-15  Richard Guenther  <rguenther@suse.de>
1102
1103         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
1104         to zero, thus disable creation of SFTs.
1105
1106 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1107
1108         * tree-predcom.c (suitable_reference_p): Return false if the
1109         reference can throw.
1110
1111 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
1112
1113         PR c/35751
1114         * c-decl.c (finish_decl): If extern or static var has variable
1115         size, set TREE_TYPE (decl) to error_mark_node.
1116
1117 2008-04-15  Rafael Espindola  <espindola@google.com>
1118
1119         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
1120         variable arg1.
1121
1122 2008-04-15  Richard Guenther  <rguenther@suse.de>
1123
1124         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
1125         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
1126         (visit_reference_op_load): Do walk vuse-vdef chains on
1127         vn_reference_lookup.
1128         (visit_reference_op_store): But do not here.
1129         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
1130         vn_reference_lookup.
1131         (vn_lookup_with_vuses): But do so here.
1132
1133 2008-04-14  Ian Lance Taylor  <iant@google.com>
1134
1135         * fold-const.c (fold_overflow_warning): Remove assertion.
1136
1137 2008-04-15  Ben Elliston  <bje@au.ibm.com>
1138
1139         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
1140         temp1 local variables.
1141
1142 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
1143
1144         PR target/35661
1145         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
1146         ".text.unlikely" section as executable.
1147
1148 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
1149
1150         * config/ia64/ia64.c (rtx_needs_barrier): Handle
1151         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
1152         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
1153         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
1154         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
1155         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
1156         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
1157
1158 2008-04-14  Ian Lance Taylor  <iant@google.com>
1159
1160         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
1161         * fold-const.c (fold_comparison): If appropriate, test
1162         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
1163         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
1164         reassociating a pointer type.
1165         * doc/invoke.texi (Optimize Options): Document that
1166         -fstrict-overflow applies to pointer wraparound.
1167
1168 2008-04-13  Jan Hubicka  <jh@suse.cz>
1169
1170         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
1171
1172 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
1173
1174         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
1175         we are going to "save the world".
1176
1177 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
1178
1179         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
1180         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
1181         operand 0 constraint, not "=".
1182
1183 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
1184
1185         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
1186
1187 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
1188
1189         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
1190         of size of positions_needed * CHAR_BIT.
1191
1192 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
1193
1194         PR middle-end/35897
1195         * dse.c (store_info): Change positions_needed to unsigned
1196         HOST_WIDE_INT.
1197         (lowpart_bitmask): New.
1198         (record_store): Cast to unsigned HOST_WIDE_INT for
1199         positions_needed.  Assert width <= size of positions_needed *
1200         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
1201         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
1202         lowpart_bitmask to set mask.
1203
1204 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
1205
1206         * config/bfin/constraints.md: New file.
1207         * config/bfin/bfin.md: Include it.
1208         (adddi3): Use satisfies_constraint functions instead of the old macros.
1209         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
1210         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
1211         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
1212         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
1213         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
1214         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
1215         EXTRA_CONSTRAINT): Delete.
1216         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
1217         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
1218         of the old macros.
1219         * config/bfin/bfin.c: Include "tm-constrs.h".
1220         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
1221         Use satisfies_constraint functions instead of the old macros.
1222         * doc/md.texi (Blackfin Constraints): Update file name reference.
1223
1224 2008-04-11  Richard Guenther  <rguenther@suse.de>
1225
1226         PR tree-optimization/35869
1227         * tree-vrp.c (execute_vrp): Move switch statement update after
1228         jump threading.  Schedule another cfg cleanup run.
1229
1230 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
1231
1232         PR c/35744
1233         * attribs.c (decl_attributes): Return early on errorneous node.
1234
1235 2008-04-10  Oleg Ryjkov  <olegr@google.com>
1236
1237         * tree.h (struct tree_base): Added a new flag default_def_flag.
1238         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
1239
1240 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
1241
1242         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
1243
1244 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1245
1246         PR target/35768
1247         * pa.md: Define mode iterator P.  Define mode attribute dwc.
1248         (dcacheflush): Update pattern to use iterator P and attribute dwc.
1249         (icacheflush): Likewise.
1250         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
1251         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
1252
1253 2008-04-11  Ben Elliston  <bje@au.ibm.com>
1254
1255         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
1256
1257 2008-04-10  Rafael Espindola  <espindola@google.com>
1258
1259         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
1260         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
1261         (extract_range_from_expr): The same.
1262
1263 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
1264
1265         * config/mips/mips.md (GPR2): New mode iterator.
1266         (seq): Add comment.
1267         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
1268         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
1269         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
1270         Rewrite these to take two modes, the mode of comparison and the
1271         mode of the destination.
1272         * config/mips/mips.c (mips_expand_scc): Instead of having
1273         paradoxical subreg as destination, expand "narrowing" scc if mode
1274         of comparison is SI and target is requested in DI mode.
1275         (mips_emit_int_order_test): Update comment.  Make mode of
1276         comparison match CMP0 rather than TARGET.  When creating inverse
1277         target use mode of TARGET.
1278
1279 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
1280
1281         * gcov-dump.c (tag_summary): Only print summaries for the first
1282         GCOV_COUNTERS_SUMMABLE counters.
1283
1284 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
1285
1286         * config/i386/i386.md (absneg): New code iterator.
1287         (absnegprefix): New code attribute.
1288         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
1289         patterns using absneg code iterator.
1290         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
1291         using absneg code iterator.
1292         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
1293         *neg<mode>2 patterns using absneg code iterator.
1294         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
1295         *negextendsfdf2 patterns using absneg code iterator.
1296         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
1297         *negextendsfxf2 patterns using absneg code iterator.
1298         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
1299         *negextendsfdf2 patterns using absneg code iterator.
1300         * config/i386/sse.md (<code><mode>2): Macroize expander from
1301         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
1302
1303 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
1304
1305         * config/s390/s390.h: Remove the remains of the recent search
1306         & replace action of current_function_outgoing_args_size.
1307
1308 2008-04-10  Ira Rosen  <irar@il.ibm.com>
1309
1310         PR tree-optimization/35821
1311         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
1312         NEW_STMT_LIST is not NULL.
1313
1314 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
1315
1316         PR libstdc++/35597
1317         * toplev.c (process_options): Remove -ffunction-sections debugging
1318         warning.
1319
1320 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
1321
1322         PR middle-end/PR28690
1323         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
1324         than gen_rtx_fmt_ee to perform more canonicalizations.
1325
1326 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1327
1328         PR driver/35665
1329         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
1330
1331 2008-04-09  Richard Guenther  <rguenther@suse.de>
1332
1333         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
1334         (dump_function_to_file): Dump function arguments with types.
1335
1336 2008-04-08  Richard Guenther  <rguenther@suse.de>
1337
1338         * fold-const.c (fold_widened_comparison): Do not allow
1339         sign-changes that change the result.
1340
1341 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
1342
1343         PR target/35839
1344         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
1345         kinds of indirect references.
1346
1347 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
1348
1349         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
1350         GNU Fortran language string.
1351
1352 2008-04-08  Rafael Espindola  <espindola@google.com>
1353
1354         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
1355         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
1356         * tree.h (tree_call_nonnegative_warnv_p): New.
1357
1358 2008-04-08  Jan Hubicka  <jh@suse.cz>
1359
1360         * function.c (free_after_compilation): Clear out regno_reg_rtx
1361         pointer.
1362
1363 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
1364
1365         Revert
1366         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
1367
1368         PR middle-end/PR28690
1369         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
1370         same precedence as REG_POINTER and MEM_POINTER operands.
1371
1372 2008-04-08  Richard Guenther  <rguenther@suse.de>
1373
1374         PR middle-end/35834
1375         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
1376         for adding index to base.
1377
1378 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
1379
1380         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
1381         (MINGW_ENABLE_EXECUTE_STACK): New.
1382         (IN_LIBGCC2): For libgcc include windows.h file for
1383         function declarations.
1384
1385 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
1386
1387         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
1388         and tem2 if tem1 is not a REG or MULT.
1389
1390 2008-04-08  Jan Hubicka  <jh@suse.cz>
1391
1392         * function.h (incomming_args): Break out of struct function.
1393         (function_subsections): Break out of struct function.
1394         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
1395         return_rtx and hard_reg_initial_vals from struct function.
1396         Kill inl_max_label_num.
1397         (current_function_pops_args, current_function_args_info,
1398         current_function_args_size, current_function_args_size,
1399         current_function_pretend_args_size,
1400         current_function_outgoing_args_size,
1401         current_function_internal_arg_pointer, current_function_return_rtx):
1402         Kill compatibility accestor macros.
1403         * builtins.c (expand_builtin_apply_args_1): Update.
1404         (expand_builtin_next_arg): Update.
1405         * df-scan.c (df_get_call_refs): Update.
1406         * dbxout.c (dbxout_function_end): Update.
1407         * dwarf2out.c (dwarf2out_switch_text_section): Update.
1408         (output_line_info): Update.
1409         (secname_for_decl): Update.
1410         (dwarf2out_var_location): Update.
1411         * function.c (free_after_compilation): Update.
1412         (assign_parm_find_stack_rtl): Update.
1413         (assign_parms): Update.
1414         (expand_dummy_function_end): Update.
1415         (expand_function_end): Update.
1416         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
1417         (expand_call): Update.
1418         (emit_library_call_value_1): Update.
1419         (store_one_arg): Update.
1420         * varasm.c (initialize_cold_section_name): Update.
1421         (unlikely_text_section): Update.
1422         (unlikely_text_section_p): Update.
1423         (assemble_start_function): Update.
1424         (assemble_end_function): Update.
1425         (default_section_type_flags): Update.
1426         (switch_to_section): Update.
1427         * integrate.c (set_decl_abstract_flags): Update.
1428         (get_hard_reg_initial_val): Update.
1429         (has_hard_reg_initial_val): Update.
1430         (allocate_initial_values): Update.
1431         * resource.c (init_resource_info): Update.
1432         * config/alpha/alpha.c (NUM_ARGS): Update.
1433         (direct_return): Update.
1434         (alpha_va_start): Update.
1435         (alpha_sa_size): Update.
1436         (alpha_initial_elimination_offset): Update.
1437         (alpha_expand_prologue): Update.
1438         (alpha_start_function): Update.
1439         (alpha_expand_epilogue): Update.
1440         (unicosmk_initial_elimination_offset):
1441         * config/alpha/alpha.md (call expander): Update.
1442         * config/s390/s390.c (s390_register_info): Update.
1443         (s390_register_info): Update.
1444         (s390_frame_info): Update.
1445         (s390_initial_elimination_offset): Update.
1446         (s390_build_builtin_va_list): Update.
1447         (s390_va_start): Update.
1448         * config/spu/spu.c (direct_return): Update.
1449         (spu_expand_prologue): Update.
1450         (spu_initial_elimination_offset): Update.
1451         (spu_build_builtin_va_list): Update.
1452         (spu_va_start): Update.
1453         * config/sparc/sparc.c (sparc_init_modes): Update.
1454         (sparc_compute_frame_size): Update.
1455         (function_value): Update.
1456         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
1457         * config/i386/i386.md (return expander): Update.
1458         * config/i386/i386.c (ix86_va_start): Update.
1459         (ix86_can_use_return_insn_p): Update.
1460         (ix86_compute_frame_layout): Update.
1461         (ix86_expand_epilogue): Update.
1462         * config/sh/sh.c (output_stack_adjust): Update.
1463         (calc_live_regs): Update.
1464         (sh_expand_prologue): Update.
1465         (sh_builtin_saveregs): Update.
1466         (sh_va_start): Update.
1467         (initial_elimination_offset): Update.
1468         (sh_allocate_initial_value): Update.
1469         (sh_function_ok_for_sibcall): Update.
1470         (sh_get_pr_initial_val): Update.
1471         * config/sh/sh.md (return expander): Update.
1472         * config/avr/avr.c (frame_pointer_required_p): UPdate.
1473         * config/crx/crx.c (crx_compute_frame): UPdate.
1474         (crx_initial_elimination_offset): UPdate.
1475         * config/xtensa/xtensa.c (compute_frame_size): Update
1476         (xtensa_builtin_saveregs): Update.
1477         (xtensa_va_start): Update.
1478         (order_regs_for_local_alloc): Update.
1479         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
1480         (xstormy16_expand_builtin_va_start): Update.
1481         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
1482         * config/m68hc11/m68hc11.md (return expanders): Update.
1483         * config/m68hc11/m68hc11.c (expand_prologue): Update.
1484         (expand_epilogue): Update.
1485         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
1486         (cris_simple_epilogue): Update.
1487         (cris_expand_prologue): Update.
1488         (cris_expand_epilogue): Update.
1489         * config/iq2000/iq2000.c (iq2000_va_start): Update.
1490         (compute_frame_size): Update.
1491         * config/mt/mt.c (mt_compute_frame_size): Update.
1492         * config/mn10300/mn10300.c (expand_prologue): Update.
1493         (expand_epilogue): Update.
1494         (initial_offset): Update.
1495         (mn10300_builtin_saveregs):
1496         * config/mn10300/mn10300.md (return expander): Update.
1497         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
1498         (ia64_initial_elimination_offset): Update.
1499         (ia64_initial_elimination_offset): Update.
1500         (ia64_expand_prologue): Update.
1501         * config/m68k/m68k.md (return expander): Update.
1502         * config/rs6000/rs6000.c (rs6000_va_start): Update.
1503         (rs6000_stack_info): Update.
1504         * config/mcore/mcore.c (layout_mcore_frame): Update.
1505         (mcore_expand_prolog): Update.
1506         * config/arc/arc.c (arc_compute_frame_size): Update.
1507         * config/score/score3.c (score3_compute_frame_size): Update.
1508         * config/score/score7.c (score7_compute_frame_size): Update.
1509         * config/arm/arm.c (use_return_insn): Update.
1510         (thumb_find_work_register): Update.
1511         (arm_compute_save_reg_mask): Update.
1512         (arm_output_function_prologue): Update.
1513         (arm_output_epilogue): Update.
1514         (arm_size_return_regs): Update.
1515         (arm_get_frame_offsets): Update.
1516         (arm_expand_prologue): Update.
1517         (thumb_exit): Update.
1518         (thumb_unexpanded_epilogue): Update.
1519         (thumb1_output_function_prologue): Update.
1520         * config/pa/pa.md (return expander): Update.
1521         * config/pa/pa.c (compute_frame_size): Update.
1522         (hppa_builtin_saveregs): Update.
1523         * config/mips/mips.c (mips_va_start): Update.
1524         (mips16_build_function_stub): Update.
1525         (mips_compute_frame_info): Update.
1526         (mips_restore_gp): Update.
1527         (mips_output_function_prologue): Update.
1528         (mips_expand_prologue): Update.
1529         * config/v850/v850.c (compute_frame_size): Update.
1530         (expand_prologue): * config/mmix/mmix.c (along): update.
1531         (mmix_initial_elimination_offset): update.
1532         (mmix_reorg): update.
1533         (mmix_use_simple_return): update.
1534         (mmix_expand_prologue): update.
1535         (mmix_expand_epilogue): Update.
1536         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
1537         (emit_link_insn): Update.
1538
1539 2008-04-08  Anatoly Sokolov <aesok@post.ru>
1540
1541         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
1542         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
1543         instructions.
1544         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
1545         atmega103 device.
1546
1547 2008-04-07  Jan Hubicka  <jh@suse.cz>
1548
1549         * function.h (rtl): Rename to x_rtl.
1550         (crtl): New define.
1551         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
1552         frame_offset, stack_check_probe_note, arg_pointer_save_area,
1553         used_temp_slots avail_temp_slots, temp_slot_level,
1554         nonlocal_goto_handler_labels): Update accesstors.
1555         (rtl): New global variable.
1556         (struct function): Move some fileds to rtl_data.
1557         (get_arg_pointer_save_area): Update prototype.
1558         * builtins.c (expand_builtin_setjmp_receiver): Update call of
1559         get_arg_pointer_save_area.
1560         * expr.c (init_expr): Update
1561         * function.c (get_frame_size): Update
1562         (assign_stack_local): Update
1563         (expand_function_end): Update.
1564         (get_art_pointer_save_area): Update
1565         * function.h 
1566         * emit-rtl.c (rtl): Declare.
1567         (regno_reg_rtx): Declare.
1568         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
1569         Update.
1570         (gen_reg_rtx): Update.
1571         * varasm.c (n_deferred_constatns): Update accestor.
1572         (init_varasm_status): Do not allocate varasm_status.
1573         (force_const_mem, get_pool_size, output_constant_pool): Update.
1574         * stmt.c (force_label_rtx): Do not use x_ prefixes.
1575         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
1576         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
1577         * sparc/sparc.h (INIT_EXPANDERS): Update.
1578         * ia64/ia64.h (INIT_EXPANDERS): Update.
1579
1580 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
1581
1582         * reload.c (push_secondary_reload): Add missing break to for loop.
1583
1584 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
1585
1586         PR middle-end/PR28690
1587         * rtlanal.c: Update copyright years.
1588         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
1589         as REG_POINTER and MEM_POINTER operands.
1590         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
1591         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
1592         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
1593         * gcse.c: Update copyright years.
1594         (pre_delete): Call gen_reg_rtx_and_attrs.
1595         (hoist_code): Likewise.
1596         (build_store_vectors): Likewise.
1597         (delete_store): Likewise.
1598         * loop-invariant.c (move_invariant_reg): Likewise.
1599         Update copyright years.
1600
1601 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
1602
1603         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
1604         control string instead of quoted.
1605
1606 2008-04-07  Kenneth Zadeck <zadeck@naturalbridge.com>
1607
1608         * doc/rtl.texi: Rewrite of subreg section.
1609
1610 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
1611
1612         PR/35842
1613         * config/i386/i386.c (legitimize_pic_address): Add treating
1614         of dllimport SYM_REF's.
1615         (legitimize_dllimport_symbol): Add prototype.
1616
1617 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
1618
1619         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
1620         reference in constructor with non self-referential type.
1621
1622 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
1623
1624         Removal of Return with Depressed Stack Pointer support
1625         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
1626         (ECF_SP_DEPRESSED): Likewise.
1627         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
1628         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
1629         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
1630         (expand_call): Do not test ECF_SP_DEPRESSED.
1631         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
1632         * function.c (keep_stack_depressed): Delete.
1633         (handle_epilogue_set): Likewise.
1634         (update_epilogue_consts): Likewise.
1635         (emit_equiv_load): Likewise.
1636         (thread_prologue_and_epilogue_insns): Remove support for Return with
1637         Depressed Stack Pointer.
1638         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
1639
1640 2008-04-06  Richard Guenther  <rguenther@suse.de>
1641
1642         PR tree-optimization/35400
1643         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
1644         information from SSA_NAMEs.
1645
1646 2008-04-06  Anatoly Sokolov <aesok@post.ru>
1647
1648         * config/avr/avr.h (avr_mega_p): Remove declaration.
1649         (AVR_MEGA): Remove macro.
1650         * config/avr/avr.c (avr_mega_p): Remove variable.
1651         (avr_override_options): Remove inicializion of avr_mega_p.
1652         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
1653         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
1654         (avr_jump_mode): (Ditto.).
1655         (avr_output_progmem_section_asm_op): (Ditto.).
1656         (avr_asm_init_sections): (Ditto.).
1657         (avr_asm_init_sections): (Ditto.).
1658         (avr_rtx_costs): (Ditto.).
1659         * config/avr/avr.md: (Ditto.).
1660         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
1661         '__AVR_MEGA__'.
1662
1663 2008-04-06  Richard Guenther  <rguenther@suse.de>
1664
1665         PR tree-optimization/35842
1666         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
1667         is_gimple_invariant_address.
1668
1669 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1670
1671         * gcc.c (default_compilers): Sync Fortran extensions list with
1672         that in fortran/lang-specs.h.
1673         * doc/invoke.texi: Likewise.
1674         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
1675         * dwarf2out.c (gen_compile_unit_die): Likewise.
1676
1677 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
1678
1679         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
1680
1681 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
1682
1683         PR target/12329
1684         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
1685         attribute is used for nested functions.
1686
1687 2008-04-05  Jan Hubicka  <jh@suse.cz>
1688
1689         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
1690
1691         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
1692         letter argument.
1693         (dump_files): Update.
1694         (enable_rtl_dump_file): Do not accept letter argument.
1695         * tree-pass.h (dump_file_info): Remove letter argument.
1696         * toplev.c (decode_d_option): Update -da handling.
1697         * toplev.h (enable_rtl_dump_file): Update prototype.
1698         * passes.c (register_one_dump_file): Do not accept IPA argument; work
1699         it out based on pass type.
1700         (register_dump_files_1): Likewise.
1701         (init_optimization_passes): Update register_one_dump_file calls.
1702         (execute_one_pass): Sanity check that IPA passes are called at IPA
1703         level and RTL passes at RTL level.
1704         (execute_pass_list): IPA pass can not be after or subpass of
1705         GIMPLE/RTL pass.
1706         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
1707         disallov RTL subpasses of IPA subpasses.
1708
1709 2008-04-05  Ben Elliston  <bje@au.ibm.com>
1710
1711         * tree-cfg.c (need_fake_edge_p): Return false for calls to
1712         builtins that return exactly once and do not throw. Cache call to
1713         call_expr_flags.
1714
1715 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
1716
1717         PR rtl-optimization/34916
1718         PR middle-end/35519
1719         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
1720         between instruction pairs.
1721
1722 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
1723
1724         * doc/invoke.texi: Document -mbitops for SH.
1725         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
1726         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
1727         * config/sh/sh.c (print_operand): Add %t operand code.
1728         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
1729         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
1730         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
1731         (extendqihi2): Likewise.
1732         (movqi_i): Likewise.
1733         (insv): Use bset, bclr and bst instructions for SH2A if possible.
1734         (extv): Use bld instruction for SH2A if possible.
1735         (extzv): Likewise.
1736         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
1737         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
1738         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
1739         (bset.b, bclr.b): Define peepholes.
1740         * config/sh/sh.opt (mbitops): New option.
1741
1742 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
1743
1744         PR target/35620
1745         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
1746         and view convert expression.
1747
1748 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
1749
1750         PR target/35364
1751         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
1752
1753 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
1754
1755         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
1756
1757         * config/i386/cpuid.h (bit_AES): New.
1758         (bit_PCLMUL): Likewise.
1759
1760         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
1761         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
1762         SSE2 if AES or PCLMUL is enabled.
1763         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
1764         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
1765         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
1766         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
1767         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
1768         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
1769         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
1770         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
1771         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
1772         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
1773         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
1774         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
1775         __builtin_ia32_aeskeygenassist128 and
1776         __builtin_ia32_pclmulqdq128.
1777         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
1778         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
1779         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
1780
1781         * config/i386/i386.h (TARGET_AES): New.
1782         (TARGET_PCLMUL): Likewise.
1783         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
1784
1785         * config/i386/i386.md (UNSPEC_AESENC): New.
1786         (UNSPEC_AESENCLAST): Likewise.
1787         (UNSPEC_AESDEC): Likewise.
1788         (UNSPEC_AESDECLAST): Likewise.
1789         (UNSPEC_AESIMC): Likewise.
1790         (UNSPEC_AESKEYGENASSIST): Likewise.
1791         (UNSPEC_PCLMUL): Likewise.
1792
1793         * config/i386/i386.opt (maes): New.
1794         (mpclmul): Likewise.
1795
1796         * config/i386/sse.md (aesenc): New pattern.
1797         (aesenclast): Likewise.
1798         (aesdec): Likewise.
1799         (aesdeclast): Likewise.
1800         (aesimc): Likewise.
1801         (aeskeygenassist): Likewise.
1802         (pclmulqdq): Likewise.
1803
1804         * config/i386/wmmintrin.h: New.
1805
1806         * doc/extend.texi: Document AES and PCLMUL built-in function.
1807
1808         * doc/invoke.texi: Document -maes and -mpclmul.
1809
1810 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
1811
1812         * function.c (free_after_parsing): Replace with
1813         cxx_push_function_context from C++ front-end.
1814         (allocate_struct_function): Don't call langhook.
1815         * langhooks.h (struct lang_hooks_for_functions): Delete.
1816         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
1817         member "function".
1818         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
1819         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
1820         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
1821         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
1822         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
1823         remove LANG_HOOKS_FUNCTION_INITIALIZER.
1824         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
1825
1826         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
1827         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
1828         
1829 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
1830
1831         PR c/35440
1832         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
1833         for all types.
1834
1835 2008-04-04  Richard Guenther  <rguenther@suse.de>
1836
1837         PR middle-end/35823
1838         * fold-const.c (optimize_minmax_comparison): Use the correct
1839         type for the constant in the simplified comparison.
1840
1841 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
1842
1843         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
1844         Pass L2 size as "--param l2-cache-size" to the compiler.
1845         (decode_l2_cache): New function to decode L2 cache parameters using
1846         0x8000006 extended cpuid function.
1847         (detect_caches_amd): Determine parameters of L2 cache using
1848         decode_l2_caches function.
1849         (decode_caches_intel): Decode L2 cache parameters.
1850         (detect_caches_intel): Determine L2 cache parameters using
1851         decode_caches_intel and decode_l2_caches functions.
1852
1853 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
1854
1855         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
1856         secondary input reload for subword loads from the constant pool.
1857
1858 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
1859
1860         PR target/35713
1861         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
1862           constants of the appropriate size for runtime calculations.
1863
1864         PR c/35712
1865         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
1866           decimal-float literal constant zero.
1867
1868 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
1869
1870         PR c/35738
1871         * c-parser.c (c_parser_omp_atomic): Call
1872         default_function_array_conversion on the RHS.
1873
1874         PR middle-end/35818
1875         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
1876         call is_variable_sized if decl has incomplete type.
1877
1878 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
1879
1880         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
1881
1882 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
1883
1884         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
1885         iterators.
1886         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
1887         (sgt<u>): Merge sgt and sgtu into new expander.
1888         (sgt, sgtu): Remove expanders.
1889         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
1890         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
1891         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
1892         *sgtu_<mode>_mips16 into new pattern.
1893         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
1894         (sge<u>): Merge sge and sgeu into new expander.
1895         (sge, sgeu): Remove expanders.
1896         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
1897         new pattern.
1898         (*sge_<mode>, second *sge_<mode>): Remove patterns.
1899         (slt<u>): Merge slt and sltu into new expander.
1900         (slt, sltu): Remove expanders.
1901         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
1902         (*slt_<mode>, *sltu_<mode>): Remove patterns.
1903         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
1904         *sltu_<mode>_mips16 into new pattern.
1905         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
1906         (sle<u>): Merge sle and sleu into new expander.
1907         (sle, sleu): Remove expanders.
1908         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
1909         (*sle_<mode>, *sleu_<mode>): Remove patterns.
1910         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
1911         *sleu_<mode>_mips16 into new pattern.
1912         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
1913
1914 2008-04-03  Jan Hubicka  <jh@suse.cz>
1915
1916         PR tree-optimization/35795
1917         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
1918         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
1919         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
1920         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
1921         * score/score3.c (score3_output_mi_thunk): Likewise.
1922         * score/score7.c (score7_output_mi_thunk): Likewise.
1923         * mips/mips.c (mips_output_mi_thunk): Likewise.
1924
1925 2008-04-03  Richard Guenther  <rguenther@suse.de>
1926
1927         * tree-vrp.c (extract_range_from_unary_expr): Handle all
1928         conversions.  Simplify code.
1929
1930 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
1931
1932         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
1933
1934 2008-04-03  Tom Tromey  <tromey@redhat.com>
1935             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1936
1937         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
1938         * config/bfin/t-bfin-linux (generated_files): Add
1939         linux-sysroot-suffix.h.
1940         * doc/install.texi (Prerequisites): Require make 3.80.
1941         * doc/sourcebuild.texi (Front End Directory): Document new
1942         variable.
1943         * Makefile.in (generated_files): New variable.
1944         (ALL_HOST_OBJS): New variable.
1945         ($(ALL_HOST_OBJS)): New target.
1946
1947 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
1948
1949         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
1950         (remap_block): Call id->transform_lang_insert_block instead
1951         of langhook.
1952         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
1953         Set id.transform_lang_insert_block to NULL.
1954         (clone_body): Move to cp/optimize.c
1955         * tree-inline.h (struct copy_body_data): Change
1956         transform_lang_insert_block to function pointer.
1957         (copy_generic_body, copy_decl_no_change): Export.
1958         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
1959         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
1960         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
1961
1962         * c-tree.h (insert_block): Kill.
1963         * c-decl.c (insert_block): Kill.
1964
1965 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
1966
1967         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1968         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
1969         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
1970         argument.
1971         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
1972         argument, call {push,pop}_function_context from here.
1973         * c-parser.c: Use c_{push,pop}_function_context.
1974
1975         * function.c (push_function_context_to): Move meat ...
1976         (push_function_context): ... here.  Simplify.
1977         * function.c (pop_function_context_from): Move meat ...
1978         (pop_function_context): ... here.  Simplify.
1979         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
1980         leave_nested).
1981         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1982         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
1983         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
1984         * tree.h (push_function_context_to, pop_function_context_from): Remove.
1985
1986 2008-04-03  Ben Elliston  <bje@au.ibm.com>
1987
1988         * expmed.c (extract_force_align_mem_bit_field): Remove.
1989
1990 2008-04-03  Richard Guenther  <rguenther@suse.de>
1991
1992         PR middle-end/35800
1993         * expr.h (try_casesi): Adjust prototype.
1994         * expr.c (try_casesi): Take fallback label as extra parameter.
1995         Use that for gen_casesi if default_label is NULL.
1996         * stmt.c (expand_case): Pass fallback label to try_casesi,
1997         make sure to fill gaps with a fallback label if default_label
1998         is not present.
1999
2000 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
2001
2002         PR target/35801
2003         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
2004
2005 2008-04-03  Ben Elliston  <bje@au.ibm.com>
2006
2007         * expmed.c (extract_split_bit_field): Remove if (0) code.
2008         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
2009         (do_ds_constraint): Likewise.
2010
2011 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
2012
2013         * doc/cppopts.texi (-dU): Document.
2014         * c-common.h (flag_dump_macros): Update comment.
2015         * c-opts.c (handle_OPT_d): Handle -dU.
2016         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
2017         dump_queued_macros, cb_used_define, cb_used_undef): New.
2018         (init_pp_output): Handle -dU.
2019         (cb_line_change): Call dump_queued_macros.
2020         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
2021
2022 2008-04-02  Anatoly Sokolov <aesok@post.ru>
2023
2024         * config/avr/predicates.md (io_address_operand): New predicate. 
2025         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
2026         * config/avr/avr.c (avr_io_address_p): Remove function.
2027         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
2028         'avr_io_address_p' function.
2029         (out_movhi_r_mr): (Ditto.).
2030         (out_movqi_mr_r): (Ditto.).
2031         (out_movhi_mr_r): (Ditto.).
2032         (avr_address_cost): (Ditto.).
2033
2034 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
2035
2036         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
2037         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
2038         in 32bit mode when XMM registers are available to avoid store
2039         forwarding stalls.
2040         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
2041         corresponding post-reload splitters.
2042
2043 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
2044
2045         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
2046         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
2047         __builtin_ia32_roundss.
2048         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
2049         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
2050         __builtin_ia32_roundss.
2051         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
2052         IX86_BUILTIN_SHUFPD here.
2053
2054 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
2055
2056         * config/i386/i386.md (plogic): New.
2057         (plogicprefix): Likewise.
2058
2059         * config/i386/mmx.md (mmx_<code><mode>3): New.
2060         (mmx_and<mode>3): Removed.
2061         (mmx_ior<mode>3): Likewise.
2062         (mmx_xor<mode>3): Likewise.
2063
2064         * config/i386/sse.md (<code><mode>3): New.
2065         (*<code><mode>3): Likewise.
2066         (*<code><mode>3): Likewise.
2067         (<code><mode>3): Likewise.
2068         (*sse_<code><mode>3): Likewise.
2069         (*sse2_<code><mode>3): Likewise.
2070         (<code>tf3): Likewise.
2071         (*<code>tf3): Likewise.
2072         (and<mode>3): Likewise.
2073         (*and<mode>3): Likewise.
2074         (ior<mode>3): Removed.
2075         (*ior<mode>3): Likewise.
2076         (xor<mode>3): Likewise.
2077         (*xor<mode>3): Likewise.
2078         (*and<mode>3): Likewise.
2079         (*ior<mode>3): Likewise.
2080         (*xor<mode>3): Likewise.
2081         (and<mode>3): Likewise.
2082         (*sse_and<mode>3): Likewise.
2083         (*sse2_and<mode>3): Likewise.
2084         (andtf3): Likewise.
2085         (*andtf3): Likewise.
2086         (ior<mode>3): Likewise.
2087         (*sse_ior<mode>3): Likewise.
2088         (*sse2_ior<mode>3): Likewise.
2089         (iortf3): Likewise.
2090         (*iortf3): Likewise.
2091         (xor<mode>3): Likewise.
2092         (*sse_xor<mode>3): Likewise.
2093         (*sse2_xor<mode>3): Likewise.
2094         (xortf3): Likewise.
2095         (*xortf3): Likewise.
2096
2097 2008-04-02  Richard Guenther  <rguenther@suse.de>
2098
2099         PR tree-optimization/14495
2100         PR tree-optimization/34793
2101         * tree-vrp.c (struct switch_update): New structure.
2102         (to_remove_edges, to_update_switch_stmts): New VECs.
2103         (simplify_switch_using_ranges): New function.  Remove not taken
2104         case labels and edges.
2105         (simplify_stmt_using_ranges): Call it.
2106         (identify_jump_threads): Mark edges we have queued for removal
2107         so we don't thread them.
2108         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
2109         case label vector.
2110         * tree-cfg.c (group_case_labels): Deal with missing default label.
2111         (tree_verify_flow_info): Allow missing default label.
2112         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
2113         (emit_case_nodes): Likewise.
2114         (expand_case): Do not rely on the default label to be present.
2115         * expr.c (try_casesi): Deal with NULL default_label.
2116         (do_tablejump): Likewise.
2117
2118 2008-04-02  Richard Guenther  <rguenther@suse.de>
2119
2120         PR tree-optimization/14495
2121         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
2122         SWITCH_EXPR here ...
2123         (vrp_visit_switch_stmt): ... but here (new function).
2124         (find_case_label_index): New helper function.
2125         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
2126
2127 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
2128
2129         * fwprop.c: Fix ISO-C99ism.
2130
2131 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
2132
2133         PR bootstrap/35752
2134         * Makefile.in (objdir): Set it here.
2135         * configure.ac: Not here.  Find dynamic linker characteristics.
2136         * exec-tool.in: Use them.
2137         * aclocal.m4: Regenerate.
2138         * configure: Regenerate.
2139
2140 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
2141
2142         * expr.c (expand_var): Delete it.
2143         * expr.h (expand_var): Delete prototype.
2144         * function.c (expand_function_start): Use expand_decl instead.
2145         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
2146         langhook.
2147
2148 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
2149
2150         PR rtl-optimization/35542
2151         * fwprop.c (forward_propagate_and_simplify): Replace
2152         loc_reg_mentioned_in_p with reg_mentioned_p.
2153
2154 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
2155
2156         PR rtl-optimization/35281
2157         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
2158         (propagate_rtx_1): Handle PR_HANDLE_MEM.
2159         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
2160         (varying_mem_p): Move above propagate_rtx.
2161         (all_uses_available_at): Do not check MEMs.
2162
2163 2008-04-02  Rafael Espindola  <espindola@google.com>
2164
2165         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
2166         (register_edge_assert_for_2): Split the cond argument.
2167         (register_edge_assert_for_1): Adjust for the change in
2168         register_edge_assert_for_2.
2169         (register_edge_assert_for): Split the cond argument.
2170         (find_switch_asserts): Adjust for the change in
2171         register_edge_assert_for.
2172
2173 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
2174
2175         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
2176         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
2177         offsets for 64-bit mingw.
2178         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
2179         abi for x86_64-pc-mingw.
2180
2181 2008-04-02  Richard Guenther  <rguenther@suse.de>
2182
2183         * tree-vrp.c (extract_range_from_assert): Make sure to not
2184         produce range min/max with TREE_OVERFOW set.
2185         If merging a anti-range and a range keep the anti-range if
2186         the range covers all values of the type.
2187         (register_edge_assert_for_2): Only allow sign-changing
2188         conversions in detecting canonical range checks.  Also
2189         register an assert for the unsigned name if useful.
2190
2191         PR tree-optimization/35787
2192         * tree-vrp.c (vrp_val_max): New function.
2193         (vrp_val_min): Likewise.
2194         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
2195         (vrp_val_is_min): Likewise.
2196         (supports_overflow_infinity): Use vrp_val_{min,max}.
2197         (negative_overflow_infinity): Likewise.
2198         (positive_overflow_infinity): Likewise.
2199         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
2200         (is_positive_overflow_infinity): Likewise.
2201         (is_overflow_infinity): Likewise.
2202         (avoid_overflow_infinity): Use vrp_val_{min,max} and
2203         vrp_val_is_{min,max}.
2204         (set_and_canonicalize_value_range): Canonicalize anti-ranges
2205         to ranges if possible.  Avoid empty ranges.
2206
2207 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2208
2209         PR middle-end/35705
2210         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
2211         the expression is a function address.
2212
2213 2008-04-01  George Helffrich  <george@gcc.gnu.org>
2214
2215         PR fortran/35154, fortran/23057
2216         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
2217         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
2218         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
2219         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
2220         in common.
2221         (dbxout_syms): Check for COMMON-based symbol and wrap in
2222         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
2223         in bracket for efficiency.
2224
2225         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
2226         using DW_TAG_common_block + member offset.
2227         (add_pubname_string): New function.
2228         (dw_expand_expr): New function to find block name and offset for
2229         COMMON var.
2230         (common_check): New function to check whether symbol in Fortran COMMON.
2231         (gen_variable_die): If COMMON, use DW_TAG_common_block.
2232
2233 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
2234
2235         PR c/35436
2236         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
2237
2238 2008-04-02  Ben Elliston  <bje@au.ibm.com>
2239
2240         * config/v850/v850.md (casesi): Remove if (0) code.
2241         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2242         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
2243
2244 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
2245
2246         * config/i386/i386.md (rex64suffix): New mode attribute.
2247         (floathi<mode>2): Disable expander for SSE math.
2248         (*floathi<mode>2_1): New insn insn_and_split pattern.
2249         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
2250         corresponding post-reload splitters.
2251         (*floathi<mode>2_i387): New macroized insn pattern.
2252         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
2253         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
2254         insn_and_split pattern.
2255         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
2256         New macroized instruction patterns and corresponding post-reload
2257         splitters.
2258         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
2259         and corresponding post-reload splitters.
2260         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
2261         New macroized instruction patterns.
2262         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
2263         macroized instruction patterns and corresponding post-reload splitters.
2264         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
2265         corresponding post-reload splitters.
2266         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
2267         New macroized instruction patterns.
2268         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
2269         corresponding post-reload splitters.
2270         (*floatsi<mode>2_i387): New macroized instruction patterns.
2271
2272 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
2273
2274         * config/i386/i386.md (smaxmin): New.
2275         (umaxmin): Likewise.
2276         (maxminiprefix): Likewise.
2277         (maxminfprefix): Likewise.
2278         (<code><mode>3): Likewise.
2279         (smin<mode>3): Removed.
2280         (smax<mode>3): Likewise.
2281
2282         * config/i386/mmx.md (mmx_<code>v2sf3): New.
2283         (mmx_<code>v4hi3): Likewise.
2284         (mmx_<code>v8qi3): Likewise.
2285         (mmx_smaxv2sf3): Removed.
2286         (mmx_sminv2sf3): Likewise.
2287         (mmx_umaxv8qi3): Likewise.
2288         (mmx_smaxv4hi3): Likewise.
2289         (mmx_uminv8qi3): Likewise.
2290         (mmx_sminv4hi3): Likewise.
2291
2292         * config/i386/sse.md (<addsub><mode>3): New.
2293         (*<addsub><mode>3): Likewise.
2294         (<sse>_vm<addsub><mode>3): Likewise.
2295         (<maxmin><mode>3): Likewise.
2296         (*<maxmin><mode>3_finite): Likewise.
2297         (*<maxmin><mode>3): Likewise.
2298         (<sse>_vm<maxmin><mode>3): Likewise.
2299         (sse3_h<addsub>v4sf3): Likewise.
2300         (sse3_h<addsub>v2df3): Likewise.
2301         (<maxmin>v16qi3): Likewise.
2302         (*<maxmin>v16qi3): Likewise.
2303         (<maxmin>v8hi3): Likewise.
2304         (*<maxmin>v8hi3): Likewise.
2305         (*sse4_1_<maxmin><mode>3): Likewise.
2306         (*sse4_1_<maxmin><mode>3): Likewise.
2307         (add<mode>3): Removed.
2308         (*add<mode>3): Likewise.
2309         (<sse>_vmadd<mode>3): Likewise.
2310         (sub<mode>3): Likewise.
2311         (*sub<mode>3): Likewise.
2312         (<sse>_vmsub<mode>3): Likewise.
2313         (smin<mode>3): Likewise.
2314         (*smin<mode>3_finite): Likewise.
2315         (*smin<mode>3): Likewise.
2316         (<sse>_vmsmin<mode>3): Likewise.
2317         (smax<mode>3): Likewise.
2318         (*smax<mode>3_finite): Likewise.
2319         (*smax<mode>3): Likewise.
2320         (<sse>_vmsmax<mode>3): Likewise.
2321         (sse3_haddv4sf3): Likewise.
2322         (sse3_haddv2df3): Likewise.
2323         (sse3_hsubv4sf3): Likewise.
2324         (sse3_hsubv2df3): Likewise.
2325         (umaxv16qi3): Likewise.
2326         (*umaxv16qi3): Likewise.
2327         (smaxv8hi3): Likewise.
2328         (*smaxv8hi3): Likewise.
2329         (*sse4_1_smax<mode>3): Likewise.
2330         (*sse4_1_umax<mode>3): Likewise.
2331         (uminv16qi3): Likewise.
2332         (*uminv16qi3): Likewise.
2333         (sminv8hi3): Likewise.
2334         (*sminv8hi3): Likewise.
2335         (*sse4_1_smin<mode>3): Likewise.
2336         (*sse4_1_umin<mode>3): Likewise.
2337
2338 2008-04-01  Rafael Espindola  <espindola@google.com>
2339
2340         * tree-cfg.c (verify_expr): remove in_phi.
2341         (verify_stmt): Don't call walk_tree with verify_expr. Use
2342         is_gimple_min_invariant instead of is_gimple_val.
2343
2344 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
2345
2346         * doc/include/gpl_v3.texi: Update for manpage generation.
2347         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
2348         gpl.texi.
2349         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
2350         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
2351         gpl_v3.texi instead of gpl.texi.
2352         (gpl.pod): New.
2353
2354 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
2355
2356         PR pch/13675
2357         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
2358
2359 2008-04-01  Rafael Espindola  <espindola@google.com>
2360
2361         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
2362         (extract_code_and_val_from_cond): Use
2363         extract_code_and_val_from_cond_with_ops.
2364
2365 2008-04-01  Jan Hubicka  <jh@suse.cz>
2366
2367         * function.c (free_after_compilation): Free epilogue_delay_list.
2368         (prepare_function_start): Assert that previous compilation was freed.
2369
2370 2008-04-01  Jan Hubicka  <jh@suse.cz>
2371             Jim Wilson  <wilson@tuliptree.org>
2372             Andreas Tobler <andreast@gcc.gnu.org>
2373
2374         PR middle-end/35781
2375         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
2376         rtl.emit instead cfun->emit.
2377         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
2378         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
2379
2380 2008-04-01  Ben Elliston  <bje@au.ibm.com>
2381
2382         * doc/c-tree.texi (Function Basics): Fix grammatical error.
2383
2384 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
2385
2386         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
2387         New options
2388         (fprofile-use): Add var flag_profile_use
2389         * coverage.c (coverage_begin_output): Do not open a gcno file for
2390         output only if -ftest-coverage is set.
2391         Do not add getpwd() to gcda file path.
2392         (build_gcov_info): Check the new flag
2393         flag_profile_datafile_relative_path.
2394         (coverage_init): Use profile_data_prefix.
2395         Read profile counter only if flag_profile_use is set.
2396         * opts.c (common_handle_option): New option fprofile-use=,
2397         fprofile-dir=, fprofile-generate=.
2398         * toplev.c (profile_data_prefix): New variable definition.
2399         * toplev.h (profile_data_prefix): New declaration.
2400         * doc/invoke.tex (Option Summary, Optimization Options):
2401         Add new options.
2402
2403 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
2404
2405         * varasm.c (output_constant_pool_1): In LABEL_REF check,
2406         use tmp consistently.
2407
2408         PR target/35695
2409         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
2410         * config/ia64/ia64.c (rtx_needs_barrier): Handle
2411         UNSPEC_FR_RECIP_APPROX_RES.
2412         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
2413
2414 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
2415
2416         PR c/35750
2417         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
2418
2419 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2420
2421         PR middle-end/30186
2422         * fold-const.c (fold_indirect_ref_1): Support accessing non first
2423         element of the vector via a pointer.
2424
2425 2008-03-31  Ian Lance Taylor  <iant@google.com>
2426
2427         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
2428
2429 2008-03-31  Jan Hubicka  <jh@suse.cz>
2430
2431         * builtins.c (expand_builtin_setjmp_receiver): Update call of
2432         get_arg_pointer_save_area.
2433         * expr.c (init_expr): Just clear out rtl.expr.
2434         * function.c (free_after_compilation): Clear out whole RTL structure.
2435         (get_func_frame_size): Merge into ...
2436         (get_frame_size): ... this one.
2437         (assign_stack_local_1): Merge into ...
2438         (assign_stack_local): ... this one.
2439         (expand_function_end): Update call of get_arg_pointer_save_area.
2440         (get_art_pointer_save_area): Remove cfun argument.
2441         * function.h (emit_status): regno_pointer_align does not need length
2442         attribute. Move x_regno_reg_rtx to ...
2443         (regno_reg_rtx): ... new global array.
2444         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
2445         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
2446         apply_args_value, forced_labels, stack_pointer_delta):
2447         Update accestors.
2448         (struct varasm_status): Move here from varasm.c
2449         (struct rtl_data): New. Move here some fields from struct function.
2450         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
2451         frame_offset, stack_check_probe_note, arg_pointer_save_area,
2452         used_temp_slots avail_temp_slots, temp_slot_level,
2453         nonlocal_goto_handler_labels): Update accesstors.
2454         (rtl): New global variable.
2455         (struct function): Move some fileds to rtl_data.
2456         (get_arg_pointer_save_area): Update prototype.
2457         * emit-rtl.c (rtl): Declare.
2458         (regno_reg_rtx): Declare.
2459         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
2460         Update.
2461         (gen_reg_rtx): Update.
2462         (init_virtual_regs): Do not tate emit_status argument.
2463         (init_emit): Do not allocate emit.
2464         * varasm.c (varasm_statuc): Move to function.h.
2465         (n_deferred_constatns): Update accestor.
2466         (init_varasm_status): Do not allocate varasm_status.
2467         (force_const_mem, get_pool_size, output_constant_pool): Update.
2468         * stmt.c (force_label_rtx): Do not use x_ prefixes.
2469         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
2470
2471 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
2472
2473         PR rtl-optimization/35729
2474         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
2475         references.
2476
2477 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
2478
2479         PR target/32000
2480         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
2481         load/store if memory is unaligned.
2482         (*movti_rex64): Likewise.
2483
2484         * config/i386/predicates.md (misaligned_operand): New.
2485
2486 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
2487
2488         PR tree-opt/35431
2489         * tree-ssa-phiopt.c (conditional_replacement): Return early for
2490         complex types.
2491
2492 2008-03-31  Jan Beulich  <jbeulich@novell.com>
2493
2494         * config/ia64/constraints.md: Add 'j' constraint.
2495         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
2496         (movdi_internal): Likewise.
2497
2498 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
2499
2500         PR c/35748
2501         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
2502
2503 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
2504
2505         PR target/35757
2506         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
2507         proper error message for the third argument on blendpd and
2508         blendps.
2509
2510         * config/i386/sse.md (blendbits): New.
2511         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
2512
2513 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
2514
2515         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
2516
2517 2008-03-30  Richard Guenther  <rguenther@suse.de>
2518
2519         PR middle-end/31023
2520         * fold-const.c (fold_sign_changed_comparison): Do leave
2521         conversions to base-types alone.
2522
2523 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2524
2525         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
2526         the link register if one altivec register is be saved.
2527
2528 2008-03-30  Ben Elliston  <bje@au.ibm.com>
2529
2530         * final.c (final_scan_insn): Remove if (0) code.
2531
2532 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
2533
2534         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
2535
2536 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
2537
2538         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
2539         of V4SFmode to ix86_binary_operator_ok.
2540
2541 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
2542
2543         * config/i386/i386.c (override_options): Initialize
2544         ix86_veclib_handler to ix86_veclibabi_svml when
2545         -mveclibabi=svml is used.
2546         (ix86_veclibabi_svml): New function for SVML ABI style
2547         vectorization support.
2548         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
2549
2550 2008-03-28  Rafael Espindola  <espindola@google.com>
2551
2552         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
2553         (tree_binary_nonnegative_warnv_p): Make it public.
2554         (tree_single_nonnegative_warnv_p): Make it public.
2555         (tree_invalid_nonnegative_warnv_p): Make it public.
2556         (tree_unary_nonzero_warnv_p): Make it public.
2557         (tree_binary_nonzero_warnv_p): Make it public
2558         (tree_single_nonzero_warnv_p): Make it public.
2559         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
2560         (extract_range_from_binary_expr): Split the expr argument.
2561         (extract_range_from_unary_expr): Split the expr argument.
2562         (extract_range_from_comparison): Split the expr argument.
2563         (extract_range_from_expr): Use the new aux functions.
2564         (vrp_evaluate_conditional_warnv): Use
2565         vrp_evaluate_conditional_warnv_with_ops.
2566         * tree.h (tree_unary_nonzero_warnv_p): Declare.
2567         (tree_binary_nonzero_warnv_p): Declare.
2568         (tree_single_nonzero_warnv_p): Declare.
2569         (tree_expr_nonzero_warnv_p): Declare.
2570         (tree_unary_nonnegative_warnv_p): Declare.
2571         (tree_binary_nonnegative_warnv_p): Declare.
2572         (tree_single_nonnegative_warnv_p): Declare.
2573         (tree_invalid_nonnegative_warnv_p): Declare.
2574
2575 2008-03-28  Richard Guenther  <rguenther@suse.de>
2576
2577         PR tree-optimization/30317
2578         PR tree-optimization/30911
2579         PR tree-optimization/34793
2580         * tree-vrp.c (set_and_canonicalize_value_range): New function.
2581         (struct assert_locus_d): New member EXPR.
2582         (register_new_assert_for): Add EXPR parameter to support
2583         ASSERT_EXPR <name, expr OP limit>.
2584         (register_edge_assert_for_1): Adjust callers.
2585         (find_assert_locations): Likewise.
2586         (process_assert_insertions_for): Build condition from expression.
2587         (extract_range_from_assert): Handle ASSERT_EXPRs
2588         of the form ASSERT_EXPR <name, expr OP limit>.
2589         (register_edge_assert_for_2): New helper registering
2590         asserts for comparisons.  Recognize range tests of the form
2591         (unsigned)i - CST1 OP CST2.
2592         (register_edge_assert_for_1): Use it.
2593         (register_edge_assert_for): Likewise.
2594         (needs_overflow_infinity): Integer sub-types
2595         do not need overflow infinities.
2596         (vrp_val_is_max): The extreme values of integer sub-types
2597         are those of the base type.
2598         (vrp_val_is_min): Likewise.
2599         * tree.def (ASSERT_EXPR): Document extra allowed conditional
2600         expressions.
2601
2602 2008-03-28  Nick Clifton  <nickc@redhat.com>
2603
2604         PR target/31110
2605         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
2606         Return GENERAL_REGS for stack adjustment reloads.
2607
2608 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2609
2610         PR target/31334
2611         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
2612         const_vector when all the vectors are constant.
2613
2614 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
2615
2616         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
2617         comparisons.
2618         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
2619         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
2620         (scc_sf): New.
2621         (s<code>_sf): Use new scc_sf attribute for opcode names.
2622
2623 2008-03-27  Tom Tromey  <tromey@redhat.com>
2624
2625         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
2626         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
2627         config/spu/t-spu-elf, config/i386/t-interix,
2628         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
2629         config/i386/x-darwin, config/i386/x-mingw32,
2630         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
2631         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
2632         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
2633         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
2634         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
2635         config/rs6000/x-darwin, config/rs6000/t-rs6000,
2636         config/score/t-score-elf, config/arm/t-strongarm-pe,
2637         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
2638         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
2639         Revert automatic dependency patch.
2640
2641 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
2642
2643         PR target/35657
2644         * config/i386/i386.c (ix86_function_arg_boundary): Align
2645         decimal floating point to its natural boundary.
2646
2647 2008-03-27  Richard Guenther  <rguenther@suse.de>
2648
2649         PR middle-end/35716
2650         * fold-const.c (fold_comparison): Restrict distinct decl
2651         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
2652         solely rely on operand_equal_p.
2653
2654 2008-03-27  Richard Guenther  <rguenther@suse.de>
2655
2656         PR c/32511
2657         * c-common.c (handle_weak_attribute): Reject combination of
2658         weak and inline.
2659
2660 2008-03-27  Richard Guenther  <rguenther@suse.de>
2661
2662         PR tree-optimization/32810
2663         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
2664         conversions from DECL_INITIAL.
2665         (fold_const_aggregate_ref): Likewise from constructor elements.
2666
2667 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
2668
2669         * tree-affine.h (aff_combination_expand): Declare.
2670         (get_inner_reference_aff): Likewise.
2671         * tree-affine.c (aff_combination_expand): Split out from
2672         tree_to_aff_combination_expand.
2673         (get_inner_reference_aff): New function.
2674         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
2675         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
2676         (struct lim_aux_data): sm_done field removed.
2677         (mem_ref_loc_p, mem_ref_locs_p): New types.
2678         (struct mem_ref): Added id, stored, accesses_in_loop,
2679         indep_loop, dep_loop, indep_ref, dep_ref fields.
2680         Removed is_stored, locs and next fields.
2681         (memory_accesses): New variable.
2682         (movement_possibility): Do not allow moving statements
2683         that store to memory.
2684         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
2685         New functions.
2686         (determine_max_movement): For statements with memory references,
2687         find the outermost loop in that the reference is independent.
2688         (move_computations_stmt): Mark the virtual operands for renaming.
2689         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
2690         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
2691         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
2692         add_vop_ref_mapping, create_vop_ref_mapping_loop,
2693         create_vop_ref_mapping, analyze_memory_references,
2694         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
2695         get_all_locs_in_loop, ref_always_accessed_p,
2696         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
2697         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
2698         store_motion_loop, store_motion): New functions.
2699         (struct vop_to_refs_elt): New type.
2700         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
2701         memref_hash, memref_eq, hoist_memory_references): Rewritten.
2702         (schedule_sm): Replaced by...
2703         (execute_sm): ... this.
2704         (determine_lsm_ref, hoist_memory_references,
2705         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
2706         find_more_ref_vops, free_mem_ref, free_mem_refs,
2707         determine_lsm_loop, determine_lsm): Removed.
2708         (tree_ssa_lim_finalize): Free data structures used by store motion.
2709         (tree_ssa_lim): Call analyze_memory_references.  Use
2710         store_motion instead of determine_lsm.
2711
2712 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
2713
2714         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
2715         rename tmake_file to m68hc11/t-m68hc11.
2716         (mcore): Set inhibit_libc to true.
2717         * config.host (alpha*-dec-*vms*): Set extra_programs.
2718         (interix3*): Don't use host_xmake_file.
2719         * configure.ac: Let config.gcc override inhibit_libc.
2720         * configure: Regenerate.
2721
2722         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
2723         * config/t-openbsd-thread: Remove commented out lines.
2724         
2725         * config/x-interix: Remove.
2726
2727         * config/m68hc11/t-m68hc11-gas: Rename to...
2728         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
2729
2730         * config/mcore/t-mcore: Remove T_CFLAGS.
2731         * config/mcore/t-mcore-pe: Likewise.
2732
2733 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
2734
2735         * configure.ac: Replace custom __GNU_SOURCE test with
2736         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
2737         * aclocal.m4: Regenerate.
2738         * configure: Regenerate.
2739         * config.in: Regenerate.
2740
2741 2008-03-27  Richard Guenther  <rguenther@suse.de>
2742
2743         * fold-const.c (target.h): Include.
2744         (fold_comparison): Fold comparison of addresses of decls
2745         that bind locally or of constants.  Consolidate address folding code.
2746         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
2747         results from fold_binary_to_constant.
2748         (compare_values_warnv): Likewise.
2749
2750 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
2751
2752         PR middle-end/35429
2753         * fold-const.c (fold_truthop): Check for integeral types when folding
2754         a == 0 && b == 0 and a != 0 || b != 0 .
2755
2756 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
2757
2758         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
2759
2760 2008-03-26  Andreas Schwab  <schwab@suse.de>
2761
2762         * doc/invoke.texi: Fix use of @item vs. @itemx.
2763
2764 2008-03-26  Tom Tromey  <tromey@redhat.com>
2765
2766         * Makefile.in (build/gensupport.o, build/print-rtl.o,
2767         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
2768         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
2769         build/gencodes.o, build/genconditions.o, build/genconfig.o,
2770         build/genconstants.o, build/genemit.o, build/genextract.o,
2771         build/genflags.o, build/genmddeps.o, build/genopinit.o,
2772         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
2773         options.h.
2774
2775 2008-03-26  Richard Guenther  <rguenther@suse.de>
2776
2777         Revert
2778         2008-03-26  Richard Guenther  <rguenther@suse.de>
2779
2780         * fold-const.c (target.h): Include.
2781         (fold_comparison): Fold comparison of addresses of two decls
2782         that bind locally.  Consolidate address folding code.
2783
2784 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2785
2786         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
2787         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
2788         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
2789         dconstsqrt2, dconstthird, dconste and/or dconst10.
2790         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
2791         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
2792         dconstsqrt2, dconste): Delete.
2793         (init_emit_once): Likewise.  Simplify initializing dconstm1.
2794         Constify variable.
2795         * real.c (get_real_const): New.
2796         * real.h (dconst3, dconst10, dconstm2, dconstthird,
2797         dconstsqrt2, dconste): Delete.
2798         (real_value_const, get_real_const): New.
2799
2800 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
2801
2802         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
2803
2804         * config/i386/i386.c (ix86_function_arg_boundary): Check
2805         BIGGEST_ALIGNMENT instead of 128.
2806         (setup_incoming_varargs_64): Likewise.
2807
2808 2008-03-26  Tom Tromey  <tromey@redhat.com>
2809
2810         * Makefile.in (DEPFILES): Add missing '/'.
2811
2812 2008-03-26  Richard Guenther  <rguenther@suse.de>
2813
2814         * fold-const.c (target.h): Include.
2815         (fold_comparison): Fold comparison of addresses of two decls
2816         that bind locally.  Consolidate address folding code.
2817
2818 2008-03-26  Nick Clifton  <nickc@redhat.com>
2819
2820         PR target/31232
2821         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
2822         not allow INT+INT as a legitimate addressing mode.
2823
2824 2008-03-26  Richard Guenther  <rguenther@suse.de>
2825
2826         * tree-flow.h (widen_bitfield): Remove declaration.
2827         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
2828         (widen_bitfield): Remove function.
2829         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
2830         code.
2831
2832 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2833
2834         PR target/31558
2835         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
2836         error_mark_node's.
2837
2838 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
2839
2840         PR rtl-optimization/35232
2841         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
2842         (forget_old_reloads_1, forget_marked_reloads): Don't clear
2843         reg_reloaded_call_part_clobbered here.
2844         (reload_regs_reach_end_p): New function.
2845         (reload_reg_rtx_for_input): New variable.
2846         (reload_reg_rtx_for_output): Likewise.
2847         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
2848         when reassigning a pseudo register.  Load reloadreg from 
2849         reload_reg_rtx_for_input, moving the mode and register
2850         calculation to...
2851         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
2852         instead of the original when deciding whether an input reload
2853         would be a no-op or whether an output reload can be deleted.
2854         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
2855         when setting up new_spill_reg_store.  Load it from
2856         reload_reg_rtx_for_output, moving the mode and register
2857         calculation to...
2858         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
2859         instead of the original when deciding whether an output reload
2860         would be a no-op.  Do the same when modifying insn notes.
2861         Use rtx_equal_p instead of == to compare the registers.
2862         (inherit_piecemeal_p): Take a mode and two register numbers
2863         as argument.
2864         (emit_reload_insns): Clear new_spill_reg_store for every hard
2865         register in the reload register.  Remove spill registers
2866         from reg_reloaded_valid before considering whether to record
2867         inheritance information for them.  Use reload_reg_rtx_for_output
2868         instead of reg_rtx when recording output reloads.  Use
2869         reload_reg_rtx_for_input instead of reg_rtx when recording
2870         input reloads.  Set or clear reg_reloaded_call_part_clobbered
2871         at the same time as setting reg_reloaded_valid.
2872         (delete_output_reload): Add a new_reload_reg parameter and use it
2873         instead of rld[j].reg_rtx.
2874         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
2875         calls accordingly.
2876
2877 2008-03-25  Tom Tromey  <tromey@redhat.com>
2878
2879         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
2880         (build/genattr.o): Likewise.
2881         (build/genattrtab.o): Likewise.
2882         (build/gencodes.o): Likewise.
2883         (build/genconfig.o): Likewise.
2884         (build/genconstants.o): Likewise.
2885         (build/genemit.o): Likewise.
2886         (build/genextract.o): Likewise.
2887         (build/genflags.o): Likewise.
2888
2889 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
2890         
2891         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
2892         instead of size_int for integer types.
2893         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
2894         to match type of MINUS_EXPR.
2895         
2896 2008-03-25  Tom Tromey  <tromey@redhat.com>
2897
2898         * configure: Rebuilt.
2899         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
2900         Makefile.
2901
2902 2008-03-25  Tom Tromey  <tromey@redhat.com>
2903
2904         * config/x-solaris (host-solaris.o): Update.
2905         * config/x-linux (host-linux.o): Update.
2906         * config/x-hpux (host-hpux.o): Update.
2907         * config/x-darwin (host-darwin.o): Update.
2908         * config/v850/t-v850e (v850-c.o): Update.
2909         * config/v850/t-v850 (v850-c.o): Update.
2910         * config/t-vxworks (vxworks.o): Update.
2911         * config/t-sol2 (sol2-c.o, sol2.o): Update.
2912         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
2913         * config/spu/t-spu-elf (spu-c.o): Update.
2914         (spu.o): Remove.
2915         * config/sh/t-symbian (sh-c.o): Update.
2916         (symbian.o): Update.
2917         * config/sh/t-sh (sh-c.o): Update.
2918         * config/score/t-score-elf (score7.o, score3.o): Update.
2919         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
2920         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
2921         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
2922         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
2923         (rs6000.o): Remove.
2924         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
2925         * config/m32c/t-m32c (m32c-pragma.o): Update.
2926         * config/ia64/t-ia64 (ia64-c.o): Update.
2927         * config/i386/x-mingw32 (host-mingw32.o): Update.
2928         * config/i386/x-i386 (driver-i386.o): Update.
2929         * config/i386/x-darwin (host-i386-darwin.o): Update.
2930         * config/i386/x-cygwin (host-cygwin.o): Update.
2931         * config/i386/t-nwld (nwld.o): Update.
2932         * config/i386/t-netware (netware.o): Update.
2933         * config/i386/t-interix (winnt.o): Update.
2934         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
2935         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
2936         msformat-c.o): Update.
2937         * config/bfin/t-bfin-linux (generated_files): Add
2938         linux-sysroot-suffix.h.
2939         * config/arm/t-wince-pe (pe.o): Update.
2940         * config/arm/t-strongarm-pe (pe.o): Update.
2941         * config/arm/t-pe (pe.o): Update.
2942         * config/arm/t-arm (arm-c.o): Update.
2943         * doc/install.texi (Prerequisites): Require make 3.80.
2944         * Makefile.in: Remove .o targets.
2945         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
2946         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
2947         (simple_generated_h, simple_generated_c): Move earlier.
2948         (generated_files): New variable.
2949         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
2950         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
2951         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
2952         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
2953         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
2954         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
2955         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
2956         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
2957         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
2958         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
2959         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
2960         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
2961         (.c.o): Remove.
2962         (COMPILE.base, COMPILE): New variables.
2963         (%.o): New pattern rule.
2964         (ALL_HOST_OBJS): New variable.
2965         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
2966         (dummy-checksum.o, cc1-checksum.o): Remove.
2967         (DRIVER_SHLIB): New variable.
2968         (DRIVER_DEFINES): Use it.
2969         (gencondmd.c): Move out of build/.
2970         (s-conditions): Update.
2971         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
2972         (ALL_BUILD_OBJS): Likewise.
2973         (build/%.o): Use BUILDCOMPILE.
2974         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
2975         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
2976         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
2977         build/gencheck.o, build/gencodes.o, build/genconditions.o,
2978         build/genconfig.o, build/genconstants.o, build/genemit.o,
2979         build/genextract.o, build/genflags.o, build/genmddeps.o,
2980         build/genopinit.o, build/genoutput.o, build/genpeep.o,
2981         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
2982         build/gen-protos.o, build/scan.o, build/fix-header.o,
2983         build/scan-decls.o): Simplify.
2984         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
2985         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
2986         prefix.o, toplev.o): Reduce to variable setting.
2987         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
2988         ($(out_object_file), gcc-options.o): New targets.
2989         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
2990         * configure: Rebuilt.
2991         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
2992         * doc/sourcebuild.texi (Front End Directory): Document new variable.
2993
2994 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
2995
2996         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
2997         complain when we hit an error, return ERROR_MARK_NODE.
2998
2999 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
3000
3001         * config/sh/constraints.md (Pso, Psz): New constraints.
3002         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
3003         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
3004
3005 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
3006
3007         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
3008         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
3009
3010 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
3011
3012         * config/sh/sh.md (prefetch): Add condition for SH2A target.
3013         (prefetch_sh2a): New.   
3014
3015 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
3016             Naveen.H.S  <naveen.hs@kpitcummins.com>
3017
3018         * config/sh/constraints.md (I28): New constraint.
3019         * config/sh/sh.c (broken_move): Add support for movi20s.
3020         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
3021
3022 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
3023             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
3024             Naveen.H.S  <naveen.hs@kpitcummins.com>
3025
3026         * config/sh/sh.c (SH_ATTRIBUTES): Define.
3027         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
3028         (print_operand): Handle resbank in %@ operand code.
3029         (sh_encode_section_info): New.
3030         (push_regs): Add conditions for resbank.
3031         (sh_expand_epilogue): Likewise.
3032         (sh_insert_attributes): Likewise.
3033         (sh_attribute_table): Likewise.
3034         (sh_handle_resbank_handler_attribute): New.
3035         (sh2a_handle_function_vector_handler_attribute): New.
3036         (sh2a_is_function_vector_call): New.
3037         (sh2a_get_function_vector_number): New.
3038         (sh2a_function_vector_p): New.
3039         (sh_cfun_resbank_handler_p): New.
3040         * config/sh/sh.md (calli): Emit jsr/n if possible.
3041         (calli_tbr_rel): New.
3042         (calli_pcrel): Emit jsr/n if possible.
3043         (return_i): Emit rts/n if possible.
3044         (call_valuei_tbr_rel): New.
3045         (call_valuei_pcrel): Add condition for SH2A target.
3046         (call_value): Likewise.
3047         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
3048         (sh2a_get_function_vector_number): Likewise.
3049         (sh2a_is_function_vector_call): Likewise.
3050         * doc/extend.texi: Document TBR relative addressing of SH2A.
3051         (resbank): Add description for SH2A.
3052
3053 2008-03-24  Richard Guenther  <rguenther@suse.de>
3054
3055         PR c/22371
3056         * gimplify.c (gimplify_modify_expr): For frontend type-correct
3057         pointer assignments change conversions according to middle-end rules.
3058         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
3059         * configure.ac: Include type checking in yes.
3060         * configure: Regenerate.
3061
3062 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3063
3064         * diagnostic.c (diagnostic_count_diagnostic): Delete.
3065         (diagnostic_report_diagnostic): Update. Handle ICEs here.
3066         
3067 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
3068
3069         * gthr-vxworks.h (UNUSED): Define.
3070
3071 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
3072
3073         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
3074
3075 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
3076
3077         * doc/extend.texi (Function Attributes): Add missing comma in the
3078         example of the "alloc_size" attribute.
3079         
3080 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
3081
3082         Revert:
3083         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
3084
3085         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
3086         32bit host.
3087
3088         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
3089
3090         PR target/35496
3091         * stor-layout.c (update_alignment_for_field): Set minimum alignment
3092         of the underlying type of a MS bitfield layout to the natural
3093         alignment of the type.
3094
3095         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
3096
3097         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
3098         to their natural alignment to avoid store forwarding stalls.
3099
3100 2008-03-22  Richard Guenther  <rguenther@suse.de>
3101
3102         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
3103         For PHI nodes verify the address is invariant.
3104         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
3105         (get_symbol_constant_value): Use is_gimple_min_invariant.
3106         (maybe_fold_stmt_indirect): Likewise.
3107
3108 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
3109
3110         PR rtl-optimization/33927
3111         * Makefile.in (dse.o): Depend on $(TM_P_H).
3112         * expr.h (extract_low_bits): Declare.
3113         * expmed.c (extract_low_bits): New function.
3114         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
3115         * dse.c: Include tm_p.h.
3116         (find_shift_sequence): Remove the read_reg argument and return the
3117         read value.  Emit the instructions instead of returning them.
3118         Iterate on new_mode rather than calculating it each time.
3119         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
3120         source to NEW_MODE and extract_low_bits to convert the shifted
3121         value to READ_MODE.
3122         (replace_read): Allow the load and store to have different mode
3123         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
3124         or extraction instructions before trying the replacement.  Update
3125         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
3126
3127 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
3128
3129         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
3130         to their natural alignment to avoid store forwarding stalls.
3131
3132 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3133
3134         PR target/27946
3135         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
3136         encouraging but not allowing gprs for input;
3137         change the input constraint to !f#r.
3138         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
3139         gprs for output;
3140         change the output constraint to !f#r.
3141
3142 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
3143
3144         PR target/13958
3145         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
3146         corresponding post-reload splitters.
3147         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
3148         when x87 FP math is selected.
3149         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
3150         New function prototype.
3151         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
3152         unreachable function to ease macroization of insn patterns.
3153
3154 2008-03-21  Martin Jambor  <mjambor@suse.cz>
3155
3156         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
3157         reference dumps if ddr is NULL or dependence is unknown.
3158
3159 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
3160
3161         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
3162         unsigned extension into account.
3163         (ATOMIC_COMPARE_AND_SWAP): Likewise.
3164         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
3165         Do computations on a scratch register.
3166
3167 2008-03-21  Richard Guenther  <rguenther@suse.de>
3168
3169         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
3170         Use is_gimple_min_invariant instead of TREE_INVARIANT.
3171         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
3172         * tree-ssa-dom.c (record_equality): Likewise.
3173         * tree-inline.c (copy_body_r): Likewise.
3174         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
3175         TREE_INVARIANT.
3176
3177 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
3178
3179         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
3180         as 'delete_unused' argument.
3181
3182 2008-03-20  Richard Guenther  <rguenther@suse.de>
3183
3184         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
3185         special casing of constant qualifiers.
3186         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
3187         care about them in general.
3188         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
3189         regardless of their type.
3190         (fold_stmt_r): Forcefully fold *& if we end up with that.
3191
3192 2008-03-20  Paul Brook  <paul@codesourcery.com>
3193
3194         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
3195         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
3196         linker flags.
3197         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
3198         definition.
3199         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
3200         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
3201
3202 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
3203
3204         * common.opt (Wmudflap): New option.
3205         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
3206         (mx_register_decls): Likewise.
3207         (mudflap_finish_file): Likewise.
3208         * doc/invoke.texi: Document -Wno-mudflap.
3209
3210 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
3211
3212         * c-format.c (replace_format_name_to_system_name): New.
3213         (cmp_attribs): New.
3214         (convert_format_name_to_system_name): New.
3215         (decode_format_attr): Add use of convert_format_name_to_system_name.
3216         (format_types_orig): Add gnu_ prefix to names.
3217         (check_format_info_main): Special treating of \0 escaped names for
3218         supporting multi-character format specifiers as I32, I64.
3219         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
3220         (gnu_target_overrides_format_attributes): New.
3221         * c-format.h: Add structure target_ovr_attr to hold
3222         system specific formatter names.
3223         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
3224         msformat-c.o file to c_target_objs and cxx_target_objs.
3225         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
3226         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
3227         (TARGET_N_FORMAT_TYPES): New.
3228         * config/i386/msformat-c.c: New.
3229         * config/i386/t-cygming: Add build rule for msformat-c.o.
3230         * doc/extend.texi: Add new format names gnu_* and ms_* and
3231         further details.
3232         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
3233
3234 2008-03-20  Ira Rosen  <irar@il.ibm.com>
3235
3236         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
3237         optimizations turned on under -O3.
3238         (ftree-vectorize): Add that the flag is turned on with -O3.
3239
3240 2008-03-20  Ben Elliston  <bje@au.ibm.com>
3241
3242         * regmove.c (try_auto_increment): Fix spelling error in comment.
3243         * final.c (final_scan_insn): Likewise.
3244
3245 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
3246
3247         PR target/14552
3248         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
3249         allocator preferences for "y" and "r" class registers.
3250         ("*mov<mode>_internal"): Ditto.
3251         ("*movv2sf_internal_rex64"): Ditto.
3252         ("*movv2sf_internal"): Ditto.
3253
3254 2008-03-19  Michael Matz  <matz@suse.de>
3255
3256         PR middle-end/35616
3257         * calls.c (expand_call): Check overlap of arguments with call
3258         address for sibcalls.
3259
3260 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
3261
3262         PR target/35496
3263         * stor-layout.c (update_alignment_for_field): Set minimum alignment
3264         of the underlying type of a MS bitfield layout to the natural
3265         alignment of the type.
3266
3267 2008-03-19  Jan Hubicka  <jh@suse.cz>
3268
3269         PR other/35094
3270         * toplev.c (decode_d_option): Handle all CPP flags.
3271         * tree-vrp.c: Update tree_pass descriptors.
3272         * regrename.c: Update tree_pass descriptors.
3273         * fwprop.c: Update tree_pass descriptors.
3274         * doc/invoke.texi: Remove documentation of dropped -d? flags.
3275         * tree-into-ssa.c: Update tree_pass descriptors.
3276         * tree-dump.c: Update tree_pass descriptors.
3277         * tree-complex.c: Update tree_pass descriptors.
3278         * tree-dump.h: Update tree_pass descriptors.
3279         * see.c: Update tree_pass descriptors.
3280         * cgraphbuild.c: Update tree_pass descriptors.
3281         * tracer.c: Update tree_pass descriptors.
3282         * tree-loop-distribution.c: Update tree_pass descriptors.
3283         * cgraph.c: Update tree_pass descriptors.
3284         * postreload-gcse.c: Update tree_pass descriptors.
3285         * postreload.c: Update tree_pass descriptors.
3286         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
3287         * tree-tailcall.c: Update tree_pass descriptors.
3288         * tree-pass.h (tree_opt_pass): Rename to ...
3289         (opt_pass) ... this one; add "type" field and remove letter field.
3290         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
3291         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
3292         all_lowering_passes): Update declaration.
3293         * ipa-cp.c: Update tree_pass descriptors.
3294         * final.c: Update tree_pass descriptors.
3295         * omp-low.c: Update tree_pass descriptors.
3296         * tree-ssa-dse.c: Update tree_pass descriptors.
3297         * ipa-reference.c: Update tree_pass descriptors.
3298         * tree-ssa-uncprop.c: Update tree_pass descriptors.
3299         * auto-inc-dec.c: Update tree_pass descriptors.
3300         * reorg.c: Update tree_pass descriptors.
3301         * cgraphunit.c: Update tree_pass descriptors.
3302         * tree-ssa-copyrename.c: Update tree_pass descriptors.
3303         * tree-ssa-ccp.c: Update tree_pass descriptors.
3304         * df-core.c: Update tree_pass descriptors.
3305         * mode-switching.c: Update tree_pass descriptors.
3306         * tree-nomudflap.c: Update tree_pass descriptors.
3307         * modulo-sched.c: Update tree_pass descriptors.
3308         * ipa-pure-const.c: Update tree_pass descriptors.
3309         * cse.c: Update tree_pass descriptors.
3310         * web.c: Update tree_pass descriptors.
3311         * tree-stdarg.c: Update tree_pass descriptors.
3312         * tree-ssa-math-opts.c: Update tree_pass descriptors.
3313         * tree-ssa-dom.c: Update tree_pass descriptors.
3314         * tree-nrv.c: Update tree_pass descriptors.
3315         * tree-ssa-alias.c: Update tree_pass descriptors.
3316         * loop-init.c: Update tree_pass descriptors.
3317         * gimple-low.c: Update tree_pass descriptors.
3318         * ipa-inline.c: Update tree_pass descriptors.
3319         * tree-ssa-sink.c: Update tree_pass descriptors.
3320         * global.c: Update tree_pass descriptors.
3321         * ifcvt.c: Update tree_pass descriptors.
3322         * jump.c: Update tree_pass descriptors.
3323         * predict.c: Update tree_pass descriptors.
3324         * tree-ssa-loop.c: Update tree_pass descriptors.
3325         * recog.c: Update tree_pass descriptors.
3326         * dse.c: Update tree_pass descriptors.
3327         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
3328         * tree-eh.c: Update tree_pass descriptors.
3329         * regmove.c: Update tree_pass descriptors.
3330         * local-alloc.c
3331         * function.c: Update tree_pass descriptors.
3332         * tree-vectorizer.c: Update tree_pass descriptors.
3333         * gcse.c: Update tree_pass descriptors.
3334         * ipa-type-escape.c: Update tree_pass descriptors.
3335         * tree-if-conv.c: Update tree_pass descriptors.
3336         * init-regs.c: Update tree_pass descriptors.
3337         * ipa.c: Update tree_pass descriptors.
3338         * tree-ssa-phiopt.c: Update tree_pass descriptors.
3339         * rtl-factoring.c: Update tree_pass descriptors.
3340         * lower-subreg.c: Update tree_pass descriptors.
3341         * bt-load.c: Update tree_pass descriptors.
3342         * tree-dfa.c: Update tree_pass descriptors.
3343         * except.c: Update tree_pass descriptors.
3344         * emit-rtl.c: Update tree_pass descriptors.
3345         * cfgexpand.c: Update tree_pass descriptors.
3346         * tree-cfgcleanup.c: Update tree_pass descriptors.
3347         * cfgcleanup.c: Update tree_pass descriptors.
3348         * tree-ssa-pre.c: Update tree_pass descriptors.
3349         * tree-sra.c: Update tree_pass descriptors.
3350         * tree-mudflap.c: Update tree_pass descriptors.
3351         * tree-ssa-copy.c: Update tree_pass descriptors.
3352         * cfglayout.c: Update tree_pass descriptors.
3353         * tree-ssa-forwprop.c: Update tree_pass descriptors.
3354         * tree-ssa-dce.c: Update tree_pass descriptors.
3355         * tree-ssa.c: Update tree_pass descriptors.
3356         * regclass.c: Update tree_pass descriptors.
3357         * integrate.c: Update tree_pass descriptors.
3358         * tree-optimize.c: Update tree_pass descriptors.
3359         * tree-ssa-phiprop.c: Update tree_pass descriptors.
3360         * tree-object-size.c: Update tree_pass descriptors.
3361         * combine.c: Update tree_pass descriptors.
3362         * tree-outof-ssa.c: Update tree_pass descriptors.
3363         * bb-reorder.c: Update tree_pass descriptors.
3364         * stack-ptr-mod.c: Update tree_pass descriptors.
3365         * var-tracking.c: Update tree_pass descriptors.
3366         * tree-profile.c: Update tree_pass descriptors.
3367         * tree-vect-generic.c: Update tree_pass descriptors.
3368         * reg-stack.c: Update tree_pass descriptors.
3369         * sched-rgn.c: Update tree_pass descriptors.
3370         * tree-ssa-structalias.c: Update tree_pass descriptors.
3371         * tree-cfg.c: Update tree_pass descriptors.
3372         * passes.c (current_pass): Update declaration.
3373         (finish_optimization_passes): Update.
3374         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
3375         (register_one_dump_file, register_dump_files_1, next_pass_1):
3376         Update arguments.
3377         (init_optimization_passes): Update handling of new types.
3378         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
3379         * ipa-struct-reorg.c: Update tree_pass descriptors.
3380         * tree-ssa-reassoc.c: Update tree_pass descriptors.
3381         * combine-stack-adj.c: Update tree_pass descriptors.
3382         * cfgrtl.c: Update tree_pass descriptors.
3383         * dce.c: Update tree_pass descriptors.
3384         * tree-ssanames.c: Update tree_pass descriptors.
3385
3386 2008-03-19  Richard Guenther  <rguenther@suse.de>
3387
3388         PR middle-end/35609
3389         * tree-ssa.c (walk_data): New structure.
3390         (warn_uninitialized_var): If not always_executed warn with "maybe"
3391         instead of "is".
3392         (execute_early_warn_uninitialized): Compute post-dominators.
3393         Initialize always_executed before processing each basic block.
3394
3395 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
3396
3397         PR target/35504
3398         * config/i386/i386.c (x86_this_parameter): Calculate correct location
3399         of "this" pointer when "regparm = N" or "fastcall" is in effect.
3400
3401 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3402
3403         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
3404
3405 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
3406
3407         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
3408         is true.
3409         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
3410         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
3411         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
3412         target after ignore has been set, and move there also the commputation
3413         of subtarget and original_target.
3414         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
3415         (LANG_HOOKS_INITIALIZER): Remove it.
3416         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
3417
3418 2008-03-18  Richard Guenther  <rguenther@suse.de>
3419
3420         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
3421         found an expression with constants, note that in the VN for the lhs.
3422         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
3423         fold them to constants if possible.  Run cleanup_cfg if done so.
3424         (execute_pre): Return todo.
3425         (do_pre): Likewise.
3426         (execute_fre): Likewise.
3427         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
3428         of constants.
3429         (get_prop_source_stmt): Look through pointer conversions.
3430
3431 2008-03-18  Jan Hubicka  <jh@suse.cz>
3432
3433         * tree-pretty-print.c: Include predict.h.
3434         (dump_generic_node): Dump predictor.
3435         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
3436         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
3437         * gimple-low.c (lower_stmt): Likewise.
3438         * expr.c (expand_expr_real): Likewise.
3439         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
3440         them.
3441         (build_predict_expr, build_predict_expr): New.
3442         * predict.h (predictor_name, build_predict_expr): Update.
3443         * c-typeck.c (c_finish_bc_stmt): Add prediction.
3444         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
3445         * predict.def (PRED_CONTINUE): Update hitrate.
3446         * tree.def (PREDICT_EXPR): Define.
3447         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
3448         do not handle BIND_EXPR.
3449         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
3450         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
3451         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
3452         operands.
3453
3454 2008-03-18  Michael Matz  <matz@suse.de>
3455
3456         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
3457
3458 2008-03-18  Richard Guenther  <rguenther@suse.de>
3459
3460         * tree-gimple.h (is_gimple_invariant_address): Declare.
3461         (is_gimple_constant): Likewise.
3462         * tree-gimple.c (is_gimple_constant): New function.
3463         (is_gimple_invariant_address): Likewise.
3464         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
3465         and is_gimple_invariant_address.
3466         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
3467         previous change.
3468         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
3469         an addressable base.
3470
3471 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
3472
3473         PR middle-end/35611
3474         * gimplify.c (gimplify_expr): Gimplify second operand of
3475         OMP_ATOMIC_LOAD.
3476
3477 2008-03-17  Richard Guenther  <rguenther@suse.de>
3478
3479         PR tree-optimization/19637
3480         * fold-const.c (fold_unary): Remove restrictions of removing
3481         intermediate pointer-conversions (P2)(P1)P0.
3482         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
3483         conversion to void pointer.
3484         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
3485
3486 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
3487
3488         PR debug/31510
3489         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
3490         emulated thread local variables.
3491
3492 2008-03-16  Richard Guenther  <rguenther@suse.de>
3493
3494         PR middle-end/35607
3495         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
3496         expand TREE_INVARIANT operations that are not gimple invariant.
3497
3498 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
3499
3500         * doc/extend.texi (Alignment): Say that the ABI controls
3501         the __alignof__ for non-strict-alignment targets rather
3502         than being a recommendation.
3503
3504 2008-03-15  Paul Brook  <paul@codesourcery.com>
3505
3506         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
3507         annotations.
3508         (arm_output_fn_unwind): Mark functions that can not be unwound.
3509
3510 2008-03-15  Paul Brook  <paul@codesourcery.com>
3511
3512         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
3513         extension instructions.
3514
3515 2008-03-15  Richard Guenther  <rguenther@suse.de>
3516
3517         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
3518         and fold constant aggregate refs.
3519         (fold_const_aggregate_ref): Handle string constants
3520         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
3521         (evaluate_stmt): Simplify now that ccp_fold folds constant
3522         aggregate refs.
3523
3524 2008-03-15  Paul Brook  <paul@codesourcery.com>
3525
3526         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
3527         (extzv): Use gen_extzv_t2.
3528         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
3529
3530 2008-03-15  Richard Guenther  <rguenther@suse.de>
3531
3532         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
3533         (fold_const_aggregate_ref): Likewise.
3534         (get_value): Return NULL if we don't have any values.
3535         (ccp_finalize): Set const_val to NULL after freeing it.
3536         * tree-flow.h (get_symbol_constant_value): Declare.
3537         (fold_const_aggregate_ref): Likewise.
3538         * tree-ssa-sccvn.c (try_to_simplify): Use them.
3539
3540 2008-03-15  Richard Guenther  <rguenther@suse.de>
3541
3542         PR middle-end/35593
3543         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
3544         to not produce negative array indices if not allowed.  Add
3545         parameter to indicate that.
3546         (maybe_fold_offset_to_component_ref): Allow negative array
3547         indices only for the first member of a structure.
3548         (maybe_fold_offset_to_reference): Allow negative array indices.
3549         (maybe_fold_stmt_addition): Likewise.
3550
3551 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
3552             Anatoly Sokolov <aesok@post.ru>
3553
3554         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
3555         (avr_arch): Add ARCH_AVR6.
3556         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
3557         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
3558         instead of fixed value 2.
3559         (print_operand_address): Use gs() asm specifier instead of pm().
3560         (avr_assemble_integer): (Ditto.).
3561         (avr_output_addr_vec_elt): (Ditto.).
3562         (print_operand): Handle "!" code.
3563         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
3564         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
3565         (AVR_HAVE_EIJMP_EICALL): Define.
3566         (AVR_3_BYTE_PC): Redefine.
3567         (AVR_2_BYTE_PC): (Ditto.).
3568         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
3569         (LINK_SPEC): Add atmega2560 and atmega2561.
3570         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
3571         (crtm2561.o).
3572         * config/avr/avr.md (call_insn): Use eicall instead of icall 
3573         for 3 byte PC devices.
3574         (call_value_insn): (Ditto.).
3575         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
3576         (indirect_jump): Use only for for 2 byte PC devices.
3577         (*tablejump): (Ditto.).
3578         (*indirect_jump_avr6): Add insn.
3579         (*tablejump_rjmp): Don't use for 3 byte PC devices.
3580         * config/avr/libgcc.S (__prologue_saves__): Use eijmp 
3581         instead of ijmp for 3 byte PC devices.
3582         (__tablejump2__): (Ditto.).
3583         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
3584         (MULITLIB_DIRNAMES): (Ditto.). 
3585         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
3586
3587 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
3588
3589         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
3590         "sse2_umulsidi3".  Use V1DI mode for operand 0.
3591         ("mmx_psadbw"): Use V1DI mode for operand 0.
3592         * config/i386/i386-modes.def (V1SI): New vector mode.
3593         * config/i386/i386.c (struct builtin_description)
3594         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
3595         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
3596         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
3597         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
3598         v1di_ftype_v8qi_v8qi type.
3599         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
3600
3601         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
3602         __builtin_ia32_pmuludq]: Fix the mode of return value.
3603
3604 2008-03-15  Richard Guenther  <rguenther@suse.de>
3605
3606         PR middle-end/35595
3607         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
3608         being a PHI_NODE.
3609
3610 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
3611         
3612         * doc/invoke.texi (Option Summary, Xtensa Options): Document
3613         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
3614         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
3615         unless TARGET_SERIALIZE_VOLATILE is enabled.
3616         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
3617         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
3618         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
3619
3620 2008-03-14  Richard Guenther  <rguenther@suse.de>
3621
3622         PR tree-optimization/34172
3623         * tree-flow.h (refs_may_alias_p): Declare.
3624         (get_single_def_stmt): Likewise.
3625         (get_single_def_stmt_from_phi): Likewise.
3626         (get_single_def_stmt_with_phi): Likewise.
3627         * tree-dfa.c (refs_may_alias_p): New function.
3628         (get_single_def_stmt): Likewise.
3629         (get_single_def_stmt_from_phi): Likewise.
3630         (get_single_def_stmt_with_phi): Likewise.
3631         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
3632         (vn_reference_lookup_1): New helper function.
3633         (vn_reference_lookup): Walk the virtual use-def chain to
3634         continue searching for a match if the def does not alias the
3635         reference we are looking for.
3636
3637 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
3638
3639         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
3640         archive and Perzl.  Update The Written Word listing.
3641
3642 2008-03-14  Richard Guenther  <rguenther@suse.de>
3643
3644         PR tree-optimization/34043
3645         PR tree-optimization/33989
3646         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
3647         when doing FRE.
3648         (bitmap_find_leader): Use extra argument to verify dominance
3649         relationship inside a basic-block.
3650         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
3651         (find_leader_in_sets): Adjust.
3652         (create_component_ref_by_pieces): Take extra argument for
3653         dominance check, handle lookup failures.
3654         (find_or_generate_expression): Likewise.
3655         (create_expression_by_pieces): Likewise.
3656         (insert_into_preds_of_block): Adjust.
3657         (create_value_expr_from): If asked for, verify all operands
3658         are in the blocks AVAIL_OUT set.
3659         (make_values_for_stmt): Check for SSA_NAMEs that are life
3660         over an abnormal edge.
3661         (compute_avail): Remove such check.
3662         (do_SCCVN_insertion): New function.
3663         (eliminate): If we do not find a leader suitable for replacement
3664         insert a replacement expression from SCCVN if available.
3665         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
3666         (struct vn_ssa_aux): Add needs_insertion flag.
3667         * tree-ssa-sccvn.c (may_insert): New global flag.
3668         (copy_reference_ops_from_ref): Value-number union member access
3669         based on its size, not type and member if insertion is allowed.
3670         (visit_reference_op_load): For a weak match from union type
3671         punning lookup a view-converted value and insert a SSA_NAME
3672         for that value if that is not found.
3673         (visit_use): Make dumps shorter.  Do not disallow value numbering
3674         SSA_NAMEs that are life over an abnormal edge to constants.
3675         (free_scc_vn): Release inserted SSA_NAMEs.
3676         (run_scc_vn): New flag to specify whether insertion is allowed.
3677         Process SSA_NAMEs in forward order.
3678         * tree-ssa-loop-im.c (for_each_index): Handle invariant
3679         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
3680         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
3681         pointer type to/from integral types that do not change the
3682         precision to regular conversions.
3683
3684 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
3685
3686         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
3687         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
3688         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
3689         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
3690         input arguments and the mode of return value.  Built-in functions
3691         that operate on whole 64-bit MMX register now use V1DI mode.
3692
3693 2008-03-13  Alon Dayan  <alond@il.ibm.com>
3694             Olga Golovanevsky  <olga@il.ibm.com>
3695
3696         PR tree-optimization/35041
3697         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
3698         to locate the right position in a statement.
3699
3700 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
3701
3702         PR target/34000
3703         PR target/35553
3704         * config/i386/xmmintrin.h:  Change all static inline functions to
3705         extern inline and add __gnu_inline__ attribute.
3706         * config/i386/bmintrin.h: Ditto.
3707         * config/i386/smmintrin.h: Ditto.
3708         * config/i386/tmmintrin.h: Ditto.
3709         * config/i386/mmintrin-common.h: Ditto.
3710         * config/i386/ammintrin.h: Ditto.
3711         * config/i386/emmintrin.h: Ditto.
3712         * config/i386/pmmintrin.h: Ditto.
3713         * config/i386/mmintrin.h: Ditto.
3714         * config/i386/mm3dnow.h: Ditto.
3715
3716 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
3717
3718         PR middle-end/35185
3719         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
3720         (lower_omp_2): New function.
3721         (lower_omp_1, lower_omp): Rewritten.
3722
3723 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
3724
3725         PR 35054
3726         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
3727         with the phrase "Microsoft Windows compilers".
3728         (Push/Pop Macro Pragmas): New subsection. Document
3729         #pragma push_macro and pragma pop_macro.
3730
3731 2008-03-12  Paul Brook  <paul@codesourcery.com>
3732
3733         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
3734
3735 2008-03-12  Paul Brook  <paul@codesourcery.com>
3736
3737         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
3738         (thumb2_alusi3_short): Exclude PLUS and MINUS.
3739         (thumb2_addsi_shortim): Rename ...
3740         (thumb2_addsi_short): ... to this.  Allow register operands.
3741         (thumb2_subsi_short): New pattern.
3742         (thumb2_one_cmplsi2_short,
3743         thumb2_negsi2_short): New patterns and peepholes.
3744
3745 2008-03-12  Paul Brook  <paul@codesourcery.com>
3746
3747         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
3748
3749 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
3750
3751         * config/i386/i386.md (int_cond): New code iterator.
3752         (fp_cond): Ditto.
3753         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
3754         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
3755         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
3756         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
3757         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
3758         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
3759         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
3760         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
3761
3762 2008-03-12  Paul Brook  <paul@codesourcery.com>
3763
3764         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
3765         instead of {arm,thumb}_compute_save_reg_mask.
3766         (output_return_instruction): Ditto.
3767         (thumb_unexpanded_epilogue): Ditto.
3768         (thumb1_expand_prologue): Ditto.
3769         (thumb1_output_function_prologue): Ditto.
3770         (arm_set_return_address): Ditto.
3771         (thumb_set_return_address): Ditto.
3772         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
3773         regs to achieve stack alignment.
3774         (thumb1_compute_save_reg_mask): Fix compiler warning.
3775         (arm_output_epilogue): Use offsets->saved_regs_mask.
3776         Adjust stack pointer by poping call clobered registers.
3777         (arm_expand_prologue): Use offsets->saved_regs_mask.
3778         Adjust stack pointer by pushing extra registers.
3779         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
3780
3781 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
3782
3783         PR tree-opt/35422
3784         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
3785         conversion to the operands of a multiplication.
3786
3787 2008-03-12  Richard Guenther  <rguenther@suse.de>
3788
3789         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
3790         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
3791         * timevar.def (TV_TREE_PHIPROP): Add.
3792         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
3793         pass description.  Use TV_TREE_PHIPROP.
3794         * tree-ssa-forwprop.c: Remove phiprop code.
3795
3796 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
3797
3798         PR middle-end/35549
3799         * omp-low.c (maybe_lookup_decl): Constify first argument.
3800         (use_pointer_for_field): Change last argument from bool to
3801         omp_context *.  Disallow shared copy-in/out in nested
3802         parallel if decl is shared in outer parallel too.
3803         (build_outer_var_ref, scan_sharing_clauses,
3804         lower_rec_input_clauses, lower_copyprivate_clauses,
3805         lower_send_clauses, lower_send_shared_vars): Adjust callers.
3806
3807 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
3808             Ira Rosen  <irar@il.ibm.com>
3809
3810         * tree-vectorizer.c (free_stmt_vec_info): New function.
3811         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
3812         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
3813         * tree-vectorizer.h (free_stmt_vec_info): Declare.
3814         * tree-vect-transform.c (vectorizable_conversion): Free
3815         vec_oprnds0 if it was allocated.
3816         (vect_permute_store_chain): Remove unused VECs.
3817         (vectorizable_store): Free VECs that are allocated in the..
3818         function.
3819         (vect_transform_strided_load, vectorizable_load): Likewise.
3820         (vect_remove_stores): Simplify the code.
3821         (vect_transform_loop): Move code to vect_remove_stores().
3822         Call vect_remove_stores() and free_stmt_vec_info().
3823
3824 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3825
3826         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
3827         TARGET_HPUX.  Revise comment.
3828         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
3829         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
3830         Use sr4 variant of `be' instruction when not generating PIC code.
3831         (attr_length_call): Adjust for above change.
3832
3833 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3834
3835         * ipa-reference.c (static_execute): Remove module_statics_const and
3836         associated setting code.
3837
3838 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
3839
3840         PR target/35540
3841         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
3842         predicate for operand 1.
3843         (paritysi2_cmp): Use register_operand predicate for operand 2.
3844         Use earlyclobber modifier for operand 1.  Remove support for
3845         memory operands.
3846         (paritydi2_cmp): Use register_operand predicate for operand 3.
3847         Use earlyclobber modifier for operand 1.  Remove support for
3848         memory operands.
3849
3850 2008-03-11  Paul Brook  <paul@codesourcery.com>
3851             Vladimir Prus  <vladimir@codesourcery.com>
3852
3853         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
3854         (arm_compute_save_reg0_reg12_mask): Always
3855         check if register 11 must be saved.  Always safe hard frame pointer
3856         when frame_pointer_needeed.
3857         (arm_compute_save_reg_mask): Save IP and PC
3858         only with apcs frames.
3859         (arm_output_epilogue): Adjust Thumb2 codepath to
3860         be also invoked and work for ARM non-apcs frames.
3861         (arm_expand_prologue): Don't bother saving IP
3862         for non-apcs frame, since it's not clobbered by
3863         prologue code.  Implement non-apcs frame
3864         layout.
3865
3866 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
3867
3868         PR rtl-optimization/35281
3869         * expr.c (convert_move): Use a new pseudo for the intermediate
3870         from_mode->word_mode result.
3871
3872 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
3873
3874         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
3875         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
3876         * toplev.c (compile_file): Don't call it.
3877
3878 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
3879
3880         PR middle-end/35526
3881         * expr.c (store_expr): Call emit_block_move if the mode
3882         of "temp" RTX is BLKmode.
3883
3884 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3885             Richard Guenther  <rguenther@suse.de>
3886
3887         PR tree-optimization/31358
3888         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
3889         the step with a NULL_TREE.
3890         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
3891         to sizetype if type is a pointer type.
3892         (add_candidate_1): Don't convert the base and step to
3893         the generic type if the orginal type is a pointer type.
3894         (add_iv_value_candidates): Use sizetype for the step
3895         if type is a pointer type.
3896         (cand_value_at): Likewise.
3897         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
3898         for pointer types.
3899         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
3900         Don't convert the tem affine to the type.
3901         (add_elt_to_tree): Use sizetype for the step if a pointer.
3902         Use POINTER_PLUS_EXPR for pointers.
3903         (aff_combination_to_tree): Use sizetype for the step if a
3904         pointer.
3905
3906 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
3907
3908         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
3909         Remove commutativity hint.
3910
3911 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
3912
3913         PR c/35438
3914         PR c/35439
3915         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
3916         errorneous type.  Check that v is a VAR_DECL.
3917
3918         PR middle-end/35099
3919         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
3920
3921 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
3922
3923         PR tree-optimization/35494
3924         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
3925         may be overriden at link and run time.
3926
3927 2008-03-10  Richard Guenther  <rguenther@suse.de>
3928
3929         PR tree-optimization/34677
3930         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
3931         (poolify_tree): Likewise.
3932         (modify_expr_template): Likewise.
3933         (poolify_modify_stmt): Likewise.
3934         (insert_fake_stores): Handle all component-ref style stores
3935         in addition to INDIRECT_REF.  Also handle complex types.
3936         Do not poolify the inserted load.
3937         (realify_fake_stores): Do not rebuild the tree but only
3938         make it a SSA_NAME copy.
3939         (init_pre): Remove initialzation of modify_expr_template.
3940         Do not allocate modify_expr_node_pool.
3941         (fini_pre): Do not free modify_expr_node_pool.
3942
3943 2008-03-10  Paul Brook  <paul@codesourcery.com>
3944
3945         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
3946         to avoid conflicts.
3947
3948 2008-03-10  Paul Brook  <paul@codesourcery.com>
3949             Mark Shinwell  <shinwell@codesourcery.com>
3950
3951         * config/arm/cortex-r4.md: New.
3952         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
3953         insn attributes.
3954         * config/arm/arm.md: Include cortex-r4.md.
3955         (insn): Add smmls, sdiv and udiv values.
3956         (generic_sched): Don't use generic scheduling for Cortex-R4.
3957         (arm_issue_rate): New function.
3958         (TARGET_SCHED_ISSUE_RATE): Define.
3959
3960 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
3961
3962         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
3963
3964 2008-03-10  Richard Guenther  <rguenther@suse.de>
3965
3966         * tree-ssa-pre.c (get_sccvn_value): Simplify.
3967         (compute_avail): Do not add stmt uses to AVAIL_OUT.
3968
3969 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
3970
3971         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
3972         Set default to true.
3973
3974 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3975
3976         * c.opt (Wsynth): Deprecate.
3977         * doc/invoke.texi (Option Summary, Warning Options): Document
3978         -Wno-format-contains-nul.
3979
3980 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
3981
3982         PR target/35496
3983         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
3984         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
3985
3986 2008-03-09  Ira Rosen  <irar@il.ibm.com>
3987
3988         * config/rs6000/rs6000.c (builtin_description): Rename vector
3989         left shift operations.
3990         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
3991         (altivec_vsl<VI_char>): Rename to ...
3992         (ashl<mode>3): ... new name.
3993         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
3994         gen_ashlv4si3.
3995         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
3996
3997 2008-03-08  Richard Guenther  <rguenther@suse.de>
3998
3999         * coverage.h (tree_coverage_counter_addr): Declare.
4000         * coverage.c (tree_coverage_counter_addr): New function.
4001         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
4002         before using again.
4003         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
4004         (tree_gen_one_value_profiler): Likewise.
4005         (tree_gen_ic_profiler): Likewise.
4006         (tree_gen_average_profiler): Likewise.
4007         (tree_gen_ior_profiler): Likewise.
4008
4009 2008-03-08  Richard Guenther  <rguenther@suse.de>
4010
4011         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
4012         (vn_binary_op_insert): Likewise.
4013         (vn_unary_op_lookup): Likewise.
4014         (vn_unary_op_insert): Likewise.
4015         (vn_nary_op_lookup): Declare.
4016         (vn_nary_op_insert): Likewise.
4017         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
4018         and binary hashes, use a single obstack for unary_op_pool
4019         and binary_op_pool.
4020         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
4021         a single struct vn_nary_op_s.  Store tree code length and
4022         a variable number of operands.
4023         (struct vn_reference_op_struct): Remove unused op2.
4024         (vn_reference_op_eq): Do not compare op2.
4025         (vn_reference_op_compute_hash): Do not compute hash of op2.
4026         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
4027         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
4028         with vn_nary_op_compute_hash.
4029         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
4030         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
4031         vn_nary_op_lookup.
4032         (vn_unary_op_insert, vn_binary_op_insert): Replace with
4033         vn_nary_op_insert.
4034         (visit_unary_op): Call nary functions.
4035         (visit_binary_op): Likewise.
4036         (process_scc): Adjust for struct vn_tables_s changes.
4037         (allocate_vn_table): Likewise.
4038         (free_vn_table): Likewise.
4039         * tree-vn.c (vn_add): Call nary functions.
4040         (vn_lookup): Likewise.
4041
4042 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
4043
4044         PR target/35498
4045         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
4046         wdst back after sync_compare_and_swapqhi_internal.
4047
4048 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
4049
4050         PR target/22152
4051         * config/i386/i386-modes.def (V1DI): New vector mode.
4052         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
4053         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
4054         (MMXMODE248): Ditto.
4055         (MMXMODE): Add V1DI mode.
4056         (mmxvecsize): Change DI mode to V1DI mode.
4057         ("mov<mode>): Use MMXMODEI8 mode iterator.
4058         ("*mov<mode>_internal_rex64"): Ditto.
4059         ("*mov<mode>_internal"): Ditto.
4060         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
4061         ("mmx_sub<mode>3"): Ditto.
4062         ("mmx_adddi3"): Remove insn pattern.
4063         ("mmx_subdi3"): Ditto.
4064         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
4065         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
4066         ("mmx_ashl<mode>3"): Ditto.
4067         ("mmx_lshrdi3"): Remove insn pattern.
4068         ("mmx_ashldi3"): Ditto.
4069         * config/i386/i386.c (classify_argument): Handle V1DImode.
4070         (function_arg_advance_32): Ditto.
4071         (function_arg_32): Ditto.
4072         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
4073         mmx_addv1di3 insn pattern.
4074         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
4075         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
4076         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
4077         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
4078         Remove definitions of built-in functions.
4079         (V1DI_type_node): New node.
4080         (v1di_ftype_v1di_int): Ditto.
4081         (v1di_ftype_v1di_v1di): Ditto.
4082         (v2si_ftype_v2si_si): Ditto.
4083         (v4hi_ftype_v4hi_di): Remove node.
4084         (v2si_ftype_v2si_di): Ditto.
4085         (ix86_init_mmx_sse_builtins): Handle V1DImode.
4086         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
4087         Redefine builtins using def_builtin_const with *_ftype_*_int node.
4088         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
4089         Add new builtins using def_builtin_const.
4090         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
4091         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
4092         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
4093         * config/i386/mmintrin.h (__v1di): New typedef.
4094         (_mm_add_si64): Cast arguments to __v1di type.
4095         (_mm_sub_si64): Ditto.
4096         (_mm_sll_pi16): Cast __count to __v4hi type.
4097         (_mm_sll_pi32): Cast __count to __v2si type.
4098         (_mm_sll_si64): Cast arguments to __v1di type.
4099         (_mm_srl_pi16): Cast __count to __v4hi type.
4100         (_mm_srl_pi32): Cast __count to __v2si type.
4101         (_mm_srl_si64): Cast arguments to __v1di type.
4102         (_mm_sra_pi16): Cast __count to __v4hi type.
4103         (_mm_sra_pi32): Cast __count to __v2si type.
4104         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
4105         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
4106         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
4107         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
4108         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
4109         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
4110         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
4111         (_mm_srai_pi32): Use __builtin_ia32_psradi.
4112         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
4113         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
4114         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
4115         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
4116
4117 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
4118
4119         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
4120
4121 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
4122
4123         PR target/35373
4124         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
4125         reg+const addressing for Altivec modes.  Don't generate reg+reg
4126         addressing for TFmode or TDmode quantities.
4127
4128 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
4129
4130         * c-common.c (vector_types_convertible_p): Call langhook
4131         instead of comptypes.
4132
4133 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4134
4135         PR tree-opt/35402
4136         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
4137         integral and scalar float variables which have a
4138         NULL DECL_INITIAL.
4139
4140 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
4141
4142         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
4143         dwarf_register_span hook when emitting unwind information for
4144         register-to-memory saves.
4145         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
4146         (rs6000_frame_related): Remove call to spe_synthesize_frame.
4147
4148 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
4149
4150         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
4151         for the same VAR_DECL.
4152
4153 2008-03-06  Tom Tromey  <tromey@redhat.com>
4154
4155         * treelang: Delete.
4156         * doc/standards.texi (Standards): Don't mention treelang.
4157         * doc/invoke.texi (Overall Options): Don't mention treelang.
4158         * doc/install.texi (Prerequisites): Don't mention bison or
4159         treelang.
4160         (Configuration): Don't mention treelang.
4161         (Building): Likewise.
4162         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
4163
4164 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
4165
4166         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
4167         word-extractions out of a multi-word object.
4168
4169 2008-03-06  Richard Guenther  <rguenther@suse.de>
4170
4171         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
4172         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
4173         result type and precision.
4174         * expr.c (get_inner_reference): Set unsignedp based on the result
4175         type of BIT_FIELD_REF.
4176         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
4177         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
4178         (try_instantiate_multiple_fields): Likewise.  Use the correct type
4179         for BIT_FIELD_REF.
4180         (sra_build_assignment): Likewise.
4181         (sra_build_elt_assignment): Likewise.
4182         (sra_explode_bitfield_assignment): Likewise.
4183         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
4184         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
4185         set BIT_FIELD_REF_UNSIGNED.
4186         (vectorizable_load): Likewise.
4187
4188 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
4189
4190         * cse.c (cse_extended_basic_block): Invalidate artificial defs
4191         at bb start.
4192
4193 2008-03-06  Richard Guenther  <rguenther@suse.de>
4194
4195         * alias.c (struct alias_set_entry): Move has_zero_child field
4196         to pack with alias_set.
4197
4198 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
4199
4200         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
4201         32bit host.
4202
4203 2008-03-05  Ian Lance Taylor  <iant@google.com>
4204
4205         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
4206
4207 2008-03-05  Kenneth Zadeck <zadeck@naturalbridge.com>
4208
4209         * fwprop.c (update_df): Support width and offset parameters of
4210         df_ref_create.
4211         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
4212         global_conflicts): Change DF_REF_EXTRACT to either
4213         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
4214         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
4215         * df-scan.c (df_ref_record, df_defs_record,
4216         df_ref_create_structure, df_def_record_1, df_uses_record,
4217         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
4218         df_bb_refs_collect, df_entry_block_defs_collect,
4219         df_exit_block_uses_collect): Support new width and offset fields.
4220         (ref_extract_pool): New storage pool.
4221         (df_free_ref): New function.
4222         (df_reg_chain_unlink, df_free_collection_rec,
4223         df_sort_and_compress_refs): Call df_free_ref.
4224         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
4225         of df_ref_extract.
4226         (df_ref_create_structure): Allocate df_ref_extract if offset and
4227         width fields are used.
4228         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
4229         (df_uses_record): Get offset and width from ZERO_EXTRACT 
4230         and SIGN_EXTRACT.
4231         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
4232         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
4233         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
4234         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
4235         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
4236         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
4237         (df_ref_extract): New structure.
4238         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
4239         (df_ref_create): Add width and offset parameters.
4240         
4241 2008-03-05  Richard Guenther  <rguenther@suse.de>
4242
4243         * tree-ssa-structalias.c (get_constraint_for_component_ref):
4244         Use ranges_overlap_p.
4245         (offset_overlaps_with_access): Rename
4246         to ranges_overlap_p and move ...
4247         * tree-flow-inline.h (ranges_overlap_p): ... here.
4248
4249         * tree.h (get_inner_reference, handled_component_p): Update
4250         comments.
4251
4252         * tree.h (record_component_aliases, get_alias_set,
4253         alias_sets_conflict_p, alias_sets_must_conflict_p,
4254         objects_must_conflict_p): Move declarations ...
4255         * alias.h (record_component_aliases, get_alias_set,
4256         alias_sets_conflict_p, alias_sets_must_conflict_p,
4257         objects_must_conflict_p): ... here.
4258         Include coretypes.h.
4259         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
4260
4261 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
4262
4263         * cfg.c: Include tree-flow.h.
4264         (remove_edge_raw): Call redirect_edge_var_map_clear.
4265         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
4266         * tree-flow-inline.h (redirect_edge_var_map_def): New.
4267         (redirect_edge_var_map_result): New.
4268         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
4269         PENDING_STMT use with redirect_edge_var_map_*.
4270         * tree-ssa.c (edge_var_maps): New definition.
4271         (redirect_edge_var_map_add): New.
4272         (redirect_edge_var_map_clear): New.
4273         (redirect_edge_var_map_dup): New.
4274         (redirect_edge_var_map_vector): New.
4275         (redirect_edge_var_map_destroy): New.
4276         (ssa_redirect_edge): Replace PENDING_STMT use with
4277         redirect_edge_var_map_*.
4278         (flush_pending_stmts): Same.
4279         (delete_tree_ssa): Destroy edge var map.
4280         * tree-flow.h (struct _edge_var_map): New.
4281         Define edge_var_map vector type.
4282         Declare redirect_edge_var_map_* prototypes.
4283         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
4284         * tree-cfg.c (reinstall_phi_args): Replace
4285         PENDING_STMT use with redirect_edge_var_map_*.
4286
4287 2008-03-05  Richard Guenther  <rguenther@suse.de>
4288
4289         PR tree-optimization/35472
4290         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
4291         whose single use_stmt has a overlapping set of loaded and
4292         stored symbols as that use_stmt might be a noop assignment then.
4293
4294 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
4295
4296         * gthr-rtems.h: Implement __gthread_mutex_destroy.
4297
4298 2008-03-05  Richard Guenther  <rguenther@suse.de>
4299
4300         PR c++/35336
4301         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
4302         should be constants.
4303         * tree-cfg.c (verify_expr): Verify it.
4304         * fold-const.c (fold_truthop): Remove code generating
4305         BIT_FIELD_REFs of structure bases.
4306         (fold_binary): Likewise.
4307         (fold_ternary): Position and size of BIT_FIELD_REFs are
4308         always host integers.
4309         (make_bit_field_ref): Remove.
4310         (optimize_bit_field_compare): Remove.
4311         (all_ones_mask_p): Remove.
4312
4313 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
4314
4315         PR gcc/33009
4316         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
4317         (split_block_and_df_analyze): New. Split basic block and rebuild
4318         dataflow.
4319         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
4320         SPLIT_BLOCK.
4321         (split_pattern_seq): Likewise.
4322         (erase_matching_seqs): Likewise.
4323         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
4324
4325 2008-03-04  Geoff Keating  <geoffk@apple.com>
4326
4327         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
4328         declaration and code.
4329         (tree_invalid_nonnegative_warnv_p): Likewise.
4330
4331 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
4332
4333         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
4334         examples.  Truncate option-names then causing overfull hbox.
4335
4336 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4337
4338         PR target/35222
4339         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
4340         on hpux10.
4341         * configure: Rebuilt.
4342
4343 2008-03-04  Rafael Espindola  <espindola@google.com>
4344
4345         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
4346         (tree_unary_nonnegative_warnv_p): New.
4347         (tree_binary_nonnegative_warnv_p): New.
4348         (tree_single_nonnegative_warnv_p): New.
4349         (tree_invalid_nonnegative_warnv_p): New.
4350         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
4351
4352 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4353
4354         PR 28322
4355         * opts.c (handle_option): Postpone 'unknown option' errors only for
4356         warning options.
4357
4358 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4359
4360         PR target/35453
4361         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
4362         (_SIDD_XXX): This.
4363
4364 2008-03-04  Rafael Espindola  <espindola@google.com>
4365
4366         * fold-const.c (tree_unary_nonzero_warnv_p): New.
4367         (tree_binary_nonzero_warnv_p): New.
4368         (tree_single_nonzero_warnv_p): New.
4369         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
4370
4371 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
4372
4373         PR middle-end/35456
4374         * fold-const.c (fold_cond_expr_with_comparison): Prevent
4375         transformations for modes that have signed zeros.
4376         * ifcvt.c (noce_try_abs): Ditto.
4377
4378 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
4379
4380         * config/i386/i386.c (override_options): Force
4381         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
4382
4383 2008-03-04  Jan Hubicka  <jh@suse.cz>
4384
4385         PR c++/35262
4386         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
4387         in last commit.
4388
4389 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
4390
4391         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
4392         label to probe the stack.
4393
4394 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
4395
4396         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
4397         (__gthr_win32_mutex_destroy): Declare.
4398         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
4399         __gthr_win32_mutex_destroy.
4400         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
4401
4402 2008-03-03  Jan Hubicka  <jh@suse.cz>
4403
4404         PR c++/35262
4405         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
4406         aggressive on inlining cold calls.
4407
4408 2008-03-03  Richard Guenther  <rguenther@suse.de>
4409
4410         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
4411         struct copies into the expression table.
4412         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
4413         (try_to_simplify): Likewise.
4414         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
4415         integral and pointer arguments which do not change the
4416         precision to NOP_EXPRs.
4417         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
4418         VIEW_CONVERT_EXPR case.
4419
4420 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
4421
4422         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
4423         defined in a loop at depth 0 is invariant.
4424         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
4425         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
4426         be called at loop depth 0.
4427
4428 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
4429
4430         PR driver/35420
4431         * gcc.c (process_command): Update copyright notice dates.
4432         * gcov.c (print_version): Likewise.
4433         * gcov-dump.c (print_version): Likewise.
4434         * mips-tfile.c (main): Likewise.
4435         * mips-tdump.c (main): Likewise.
4436
4437 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4438
4439         PR 24924
4440         * c-common.c (flag_permissive): Delete.
4441         (constant_expression_warnings): Check flags first.
4442         (constant_expression_error): New.
4443         * c-common.h (flag_permissive): Delete.
4444         (constant_expression_error): Declare.
4445         * flags.h (flag_permissive): Declare. Update description.
4446         * diagnostic.c (pedwarn): Update.
4447         (permerror): New.
4448         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
4449         (permissive_error_kind): New.
4450         * toplev.c (flag_permissive): Define. Update description.
4451         * toplev.h (permissive_error_kind): Declare.
4452         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
4453         (pedwarn_c90): Use pedantic_warning_kind.
4454         * c-opts.c (c_common_post_options): flag_permissive does not affect
4455         flag_pedantic_errors.
4456
4457 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
4458
4459         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
4460         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
4461         __absvsi2, __absvDI2): Use unsigned arithmetic.
4462
4463 2008-03-02  Andi Kleen  <ak@suse.de>
4464             Richard Guenther  <rguenther@suse.de>
4465
4466         * struct-equiv.c: Remove file.
4467         * cfg_cleanup.c (condjump_equiv_p): Remove.
4468         * Makefile.in (OBJS-common): Remove struct-equiv.o.
4469         (struct-equiv.o): Remove rule.
4470         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
4471         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
4472         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
4473
4474 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
4475
4476         * ifcvt.c (noce_process_if_block): Try to handle only the then
4477         block if the else block exists but isn't suitable.
4478
4479 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
4480
4481         PR gcc/35063
4482         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
4483         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
4484         regression from previous patch.
4485
4486 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
4487
4488         PR gcc/35063
4489         * gthr.h: Add __gthread_mutex_destroy as a function that must be
4490         implemented.
4491         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
4492         * gthr-single.h (__gthread_mutex_destroy): Likewise.
4493         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
4494         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
4495         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
4496         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
4497         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
4498         (__gthread_mutex_destroy_function): Rename to
4499         __gthread_mutex_destroy.
4500         * gthr-dce.h (__gthread_mutex_destroy): Call
4501         pthread_mutex_destroy.
4502         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
4503         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
4504         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
4505
4506 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
4507
4508         * df-scan.c (df_ref_chain_change_bb): Simplify.
4509         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
4510         set_block_for_insn if there's any change.
4511         * df.h ((df_insn_change_bb): Fix prototype.
4512         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
4513         df_insn_change_bb, don't call set_block_for_insn.
4514         * emit-rtl.c (reorder_insns): Likewise.
4515         * haifa-sched.c (move_insn): Likewise.
4516
4517 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
4518
4519         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
4520
4521 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
4522
4523         * tree-flow-inline.h (next_readonly_imm_use): Return
4524         NULL_USE_OPERAND_P after the end.
4525
4526 2008-03-01  Richard Guenther  <rguenther@suse.de>
4527
4528         PR tree-optimization/35411
4529         * tree-sra.c (sra_build_assignment): Split conversion to
4530         final type to a separate statement if we are not assigning
4531         to a register.
4532
4533 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
4534
4535         * fold-const.c (fold_convertible_p): Correct the logic to follow
4536         that in fold_convert().
4537
4538 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
4539
4540         PR c++/35315
4541         * tree-inline.c (build_duplicate_type): When we make a
4542         duplicate type, make it unique in the canonical types system.
4543
4544 2008-02-29  Tom Tromey  <tromey@redhat.com>
4545
4546         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
4547         input_file_stack_history, input_file_stack_restored): Remove.
4548         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
4549         * input.h (struct file_stack): Remove.
4550         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
4551         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
4552         Likewise.
4553         * diagnostic.h (struct diagnostic_context) <last_module>: Change
4554         type.
4555         (diagnostic_last_module_changed): Add 'map' argument.
4556         (diagnostic_set_last_function): Likewise.
4557         * diagnostic.c (undiagnostic_report_current_module): Iterate using
4558         line map, not input_file_stack.
4559         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
4560
4561 2008-02-29  Paul Brook  <paul@codesourcery.com>
4562
4563         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
4564
4565 2008-02-29  Paul Brook  <paul@codesourcery.com>
4566
4567         * config/arm/ieee754-df.S (muldf3): Use RET macros.
4568
4569 2008-02-29  Richard Guenther  <rguenther@suse.de>
4570
4571         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
4572         vn_lookup_or_add.
4573         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
4574         value for comparing for a store match.
4575         (simplify_unary_expression): Do nothing for SSA_NAMEs.
4576         (try_to_simplify): Do not do a full-blown reference lookup.
4577
4578 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
4579
4580         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
4581         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
4582
4583         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
4584
4585 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
4586
4587         * tree-loop-linear.c (try_interchange_loops): Compare memory access
4588         strides against cache sizes.
4589
4590 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
4591
4592         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
4593         constant to fpul.
4594
4595 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
4596
4597         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
4598         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
4599         is smaller than the original promoted value.
4600         (simplify_subreg): If OP is a SUBREG, try to preserve its
4601         SUBREG_PROMOTED_VAR_P information.
4602
4603 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
4604
4605         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
4606         (VN_INFO_GET): Allocate new objects on the obstack.
4607         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
4608         for rpo_numbers_temp, for consistency.
4609         (free_scc_vn): Free the obstack.
4610
4611 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
4612
4613         * doc/invoke.texi: Document -ftree-loop-distribution.
4614         * tree-loop-distribution.c: New.
4615         * tree-pass.h (pass_loop_distribution): New.
4616         * graphds.h (struct graph): Add htab_t indices.
4617         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
4618         * tree-vectorizer.c (rename_variables_in_loop): Extern.
4619         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
4620         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
4621         * tree-data-ref.c (debug_data_dependence_relations): New.
4622         (dump_data_dependence_relation): Also print data references.
4623         (free_data_ref): Extern.
4624         (same_access_functions): Moved...
4625         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
4626         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
4627         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
4628         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
4629         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
4630         (stmts_from_loop): Skip LABEL_EXPR.
4631         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
4632         New.
4633         (build_rdg): Initialize rdg->indices htab.
4634         (free_rdg, stores_from_loop, ref_base_address,
4635         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
4636         have_similar_memory_accesses_1, ref_base_address_1,
4637         remove_similar_memory_refs): New.
4638         * tree-data-ref.h: Depend on tree-chrec.h.
4639         (debug_data_dependence_relations, free_data_ref): Declared.
4640         (same_access_functions): ... here.
4641         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
4642         New.
4643         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
4644         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
4645         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
4646         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
4647         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
4648         rdg_vertex_for_stmt): Declared.
4649         (struct rdg_edge): Add level.
4650         (RDGE_LEVEL): New.
4651         (free_rdg, stores_from_loop, remove_similar_memory_refs,
4652         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
4653         Declared.
4654         (rdg_has_similar_memory_accesses): New.
4655         * tree-vect-analyze.c: Remove unused static decls.
4656         * lambda.h (dependence_level): New.
4657         * common.opt (ftree-loop-distribution): New.
4658         * tree-flow.h (mark_virtual_ops_in_bb, 
4659         slpeel_tree_duplicate_loop_to_edge_cfg,
4660         rename_variables_in_loop): Declared.
4661         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
4662         (OBJS-common): Add tree-loop-distribution.o.
4663         (tree-loop-distribution.o): New rule.
4664         * tree-cfg.c (mark_virtual_ops_in_bb): New.
4665         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
4666         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
4667
4668 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
4669
4670         PR target/33963
4671         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
4672         other than structures and unions.
4673
4674 2008-02-28  Richard Guenther  <rguenther@suse.de>
4675
4676         Revert:
4677         2008-02-26  Richard Guenther  <rguenther@suse.de>
4678
4679         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
4680         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
4681         (lookup_decl_from_uid): Declare.
4682         (remove_decl_from_map): Likewise.
4683         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
4684         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
4685         (decl_for_uid_map): New global hashtable mapping DECL_UID
4686         to the decl tree.
4687         (init_ttree): Allocate it.
4688         (insert_decl_to_uid_decl_map): New helper function.
4689         (make_node_stat): Insert new decls into the map.
4690         (copy_node_stat): Likewise.
4691         (lookup_decl_from_uid): New function.
4692         (remove_decl_from_map): Likewise.
4693         (print_decl_for_uid_map_statistics): New helper.
4694         (dump_tree_statistics): Call it.
4695
4696         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
4697         (referenced_var_iterator): Adjust.
4698         (FOR_EACH_REFERENCED_VAR): Adjust.
4699         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
4700         (num_referenced_vars): Adjust.
4701         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
4702         (first_referenced_var): Remove.
4703         (end_referenced_vars_p): Likewise.
4704         (next_referenced_var): Likewise.
4705         (referenced_var_iterator_set): New helper function.
4706         * tree-dfa.c (referenced_var_lookup): Adjust.
4707         (referenced_var_check_and_insert): Likewise.
4708         (remove_referenced_var): Likewise.
4709         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
4710         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4711         (verify_call_clobbering): Likewise.
4712         (verify_memory_partitions): Likewise.
4713         (init_tree_ssa): Allocate bitmap instead of hashtable for
4714         referenced_vars.
4715         (delete_tree_ssa): Adjust.
4716         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
4717         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4718         (compute_tag_properties): Likewise.
4719         (set_initial_properties): Likewise.
4720         (find_partition_for): Likewise.
4721         (update_reference_counts): Likewise.
4722         (dump_may_aliases_for): Likewise.
4723         * tree-ssa-operands.c (add_virtual_operand): Likewise.
4724         (add_call_clobber_ops): Likewise.
4725         (add_call_read_ops): Likewise.
4726         (get_asm_expr_operands): Likewise.
4727         * tree-into-ssa.c (dump_decl_set): Likewise.
4728         (update_ssa): Likewise.
4729         * tree-sra.c (scan_function): Likewise.
4730         (decide_instantiations): Likewise.
4731         (scalarize_parms): Likewise.
4732         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
4733         (dsa_named_for): Likewise.
4734         * tree-ssa-structalias.c (update_alias_info): Likewise.
4735         (merge_smts_into): Likewise.
4736
4737 2008-02-27  David Daney  <ddaney@avtrex.com>
4738
4739         PR target/34409
4740         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
4741         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
4742         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
4743         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
4744         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
4745
4746 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
4747
4748         PR target/25477
4749         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
4750         (BUILT_IN_NEXTTOWARD): Remove.
4751         (BUILT_IN_NEXTTOWARDF): Ditto.
4752         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
4753         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
4754
4755 2008-02-27  Tom Tromey  <tromey@redhat.com>
4756
4757         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
4758         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
4759
4760 2008-02-27  Jan Beulich  <jbeulich@novell.com>
4761
4762         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
4763         update the respective field on newdecl.
4764
4765 2008-02-27  Revital Eres  <eres@il.ibm.com>
4766
4767         PR rtl-optimization/34999
4768         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
4769         crossing edges that ends with a call insn.
4770         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
4771         call insn and clear the EDGE_CROSSING flag of the crossing edge
4772         when fixing fallthru edges.
4773
4774 2008-02-27  Richard Guenther  <rguenther@suse.de>
4775
4776         PR middle-end/35390
4777         * fold-const.c (fold_unary): Return the correct argument,
4778         converted to the result type.
4779
4780 2008-02-27  Richard Guenther  <rguenther@suse.de>
4781
4782         PR middle-end/34971
4783         * expr.c (expand_expr_real_1): Assert on rotates that operate
4784         on partial modes.
4785         * fold-const.c (fold_binary): Use the types precision, not the
4786         bitsize of the mode if folding rotate expressions.  Build rotates
4787         only for full modes.
4788
4789 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
4790
4791         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
4792         and CPP_PRAGMA_EOL.
4793         * c-pragma.c (pragma_ns_name): New typedef.
4794         (registered_pp_pragmas): New variable.
4795         (c_pp_lookup_pragma): New function.
4796         (c_register_pragma_1): If flag_preprocess_only, do nothing
4797         for non-expanded pragmas, for expanded ones push pragma's
4798         namespace and name into registered_pp_pragmas vector.
4799         (c_invoke_pragma_handler): Register OpenMP pragmas even when
4800         flag_preprocess_only, don't register GCC pch_preprocess
4801         pragma if flag_preprocess_only.
4802         * c-opts.c (c_common_init): Call init_pragma even if
4803         flag_preprocess_only.
4804         * c-pragma.c (c_pp_lookup_pragma): New prototype.
4805         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
4806         cpp_register_pragma if flag_preprocess_only.
4807
4808 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4809
4810         PR c/28800
4811         * c-parser.c (c_parser_translation_unit): Warn for empty
4812         translation unit, not empty source file.
4813
4814 2008-02-26  Paul Brook  <paul@codesourcery.com>
4815
4816         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
4817         operand for Thumb-2.
4818         * config/arm/arm.h (reg_class): Add CORE_REGS.
4819         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
4820         (BASE_REG_CLASS): Use CORE_REGS.
4821         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
4822         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
4823         (REGNO_OK_FOR_INDEX_P): Exclude SP.
4824         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
4825         ARM_REGNO_OK_FOR_INDEX_P.
4826         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
4827         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
4828         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
4829         (ldm/stm peepholes): Ditto.
4830         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
4831         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
4832         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
4833         * config/arm/constraints.md: Enable "k" constraint on ARM.
4834
4835 2008-02-27  Ben Elliston  <bje@au.ibm.com>
4836
4837         * config/rs6000/rs6000.c: Annotate cache line size field in all
4838         instances of struct processor_costs.
4839
4840 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
4841
4842         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
4843         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
4844         jump_bypass): New counters.
4845         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
4846         * dce.c (gate_ud_dce): Same.
4847         (gate_fast_dce): Same.
4848         * dse.c (gate_dse1): New function.
4849         (gate_dse2): New function.
4850         (gate_dse): Merge results of new gate functions.
4851         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
4852         (gate_handle_jump_bypass): Add dbg_cnt.
4853         (gate_handle_gcse): Add dbg_cnt.
4854         * ifcvt.c (gate_handle_if_conversion): Same.
4855         (gate_handle_if_after_combine): Same.
4856         (gate_handle_if_after_reload): Same.
4857         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
4858
4859 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
4860
4861         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
4862         line sizes.
4863         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
4864
4865 2008-02-26  Jason Merrill  <jason@redhat.com>
4866
4867         PR c++/35315
4868         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
4869         alone if it's the naming decl for the type's main variant.
4870
4871 2008-02-26  Tom Tromey  <tromey@redhat.com>
4872
4873         * system.h (USE_MAPPED_LOCATION): Poison.
4874         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
4875         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
4876         (make_goto_expr_edges): Likewise.
4877         (remove_bb): Likewise.
4878         (execute_warn_function_return): Likewise.
4879         * basic-block.h (struct edge_def) <goto_locus>: Change type to
4880         location_t.
4881         * c-common.c (fname_decl): Remove old location code.
4882         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
4883         location code.
4884         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
4885         variant.
4886         (ASM_INPUT_SOURCE_LOCATION): Likewise.
4887         (gen_rtx_ASM_INPUT): Likewise.
4888         (gen_rtx_ASM_INPUT_loc): Likewise.
4889         (get_rtx_asm_OPERANDS): Remove.
4890         * cfglayout.c (insn_locators_alloc): Remove old location code.
4891         (set_curr_insn_source_location): Likewise.
4892         (curr_insn_locator): Likewise.
4893         * print-tree.c (print_node): Remove old location code.
4894         * tree-mudflap.c (mf_varname_tree): Remove old location code.
4895         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
4896         * cfgexpand.c (expand_gimple_cond_expr): Don't use
4897         location_from_locus.
4898         (construct_exit_block): Remove old location code.
4899         * emit-rtl.c (force_next_line_note): Remove old location code.
4900         * profile.c (branch_prob): Remove old location code.
4901         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
4902         LOC_LINE): Remove old-location variants.
4903         * langhooks.c (lhd_print_error_function): Remove old location
4904         code.
4905         * configure, config.in: Rebuilt.
4906         * configure.ac (--enable-mapped-location): Remove.
4907         * c-decl.c (c_init_decl_processing): Remove old location code.
4908         (finish_function): Likewise.
4909         * recog.c (decode_asm_operands): Remove old location code.
4910         * c-pch.c (c_common_read_pch): Remove old location code.
4911         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
4912         variants.
4913         * gimple-low.c (lower_function_body): Remove old location code.
4914         * toplev.c (unknown_location): Remove.
4915         (push_srcloc): Remove old-location variant.
4916         (process_options): Remove old location code.
4917         (lang_dependent_init): Likewise.
4918         * input.h (UNKNOWN_LOCATION): Move definition.
4919         (location_t): Undeprecate.
4920         (source_locus): Remove.
4921         (location_from_locus): Remove.
4922         (struct location_s): Remove.
4923         Remove all old-location code.
4924         (input_line, input_filename): Remove.
4925         * final.c (final_scan_insn): Remove old location code.
4926         * diagnostic.c (diagnostic_build_prefix): Remove
4927         USE_MAPPED_LOCATION test.
4928         * tree.h (gimple_stmt) <locus>: Now a location_t.
4929         (tree_exp) <locus>: Likewise.
4930         (DECL_IS_BUILTIN): Remove old-location variant.
4931         (annotate_with_file_line, annotate_with_locus): Likewise.
4932         (expr_locus, set_expr_locus): Update.
4933         * tree.c (build1_stat): Remove old location code.
4934         (last_annotated_node): Remove.
4935         (annotate_with_file_line): Remove old-location variant.
4936         (annotate_with_locus): Likewise.
4937         (expr_location): Remove old location code.
4938         (set_expr_location): Likewise.
4939         (expr_has_location): Likewise.
4940         (expr_locus): Likewise.
4941         (set_expr_locus): Likewise.
4942         (expr_filename): Don't use location_from_locus.
4943         (expr_lineno): Likewise.
4944         * rtl-error.c (location_for_asm): Remove old location code.
4945         * c-lex.c (cb_line_change): Remove old location code.
4946         (fe_file_change): Likewise.
4947         (cb_def_pragma): Likewise.
4948         (c_lex_with_flags): Likewise.
4949         * gengtype.c (do_typedef): Don't special-case location types.
4950         (define_location_structures): Remove.
4951         (main): Don't call define_location_structures.
4952         * tree-pretty-print.c (dump_implicit_edges): Remove old location
4953         code.
4954
4955 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4956
4957         PR 26264
4958         * builtins.def (BUILT_IN_STDARG_START): Remove.
4959         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
4960         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
4961         * tree-inline.c (inline_forbidden_p_1): Likewise.
4962         
4963 2008-02-26  Richard Guenther  <rguenther@suse.de>
4964
4965         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
4966         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
4967         (lookup_decl_from_uid): Declare.
4968         (remove_decl_from_map): Likewise.
4969         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
4970         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
4971         (decl_for_uid_map): New global hashtable mapping DECL_UID
4972         to the decl tree.
4973         (init_ttree): Allocate it.
4974         (insert_decl_to_uid_decl_map): New helper function.
4975         (make_node_stat): Insert new decls into the map.
4976         (copy_node_stat): Likewise.
4977         (lookup_decl_from_uid): New function.
4978         (remove_decl_from_map): Likewise.
4979         (print_decl_for_uid_map_statistics): New helper.
4980         (dump_tree_statistics): Call it.
4981
4982         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
4983         (referenced_var_iterator): Adjust.
4984         (FOR_EACH_REFERENCED_VAR): Adjust.
4985         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
4986         (num_referenced_vars): Adjust.
4987         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
4988         (first_referenced_var): Remove.
4989         (end_referenced_vars_p): Likewise.
4990         (next_referenced_var): Likewise.
4991         (referenced_var_iterator_set): New helper function.
4992         * tree-dfa.c (referenced_var_lookup): Adjust.
4993         (referenced_var_check_and_insert): Likewise.
4994         (remove_referenced_var): Likewise.
4995         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
4996         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4997         (verify_call_clobbering): Likewise.
4998         (verify_memory_partitions): Likewise.
4999         (init_tree_ssa): Allocate bitmap instead of hashtable for
5000         referenced_vars.
5001         (delete_tree_ssa): Adjust.
5002         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
5003         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
5004         (compute_tag_properties): Likewise.
5005         (set_initial_properties): Likewise.
5006         (find_partition_for): Likewise.
5007         (update_reference_counts): Likewise.
5008         (dump_may_aliases_for): Likewise.
5009         * tree-ssa-operands.c (add_virtual_operand): Likewise.
5010         (add_call_clobber_ops): Likewise.
5011         (add_call_read_ops): Likewise.
5012         (get_asm_expr_operands): Likewise.
5013         * tree-into-ssa.c (dump_decl_set): Likewise.
5014         (update_ssa): Likewise.
5015         * tree-sra.c (scan_function): Likewise.
5016         (decide_instantiations): Likewise.
5017         (scalarize_parms): Likewise.
5018         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
5019         (dsa_named_for): Likewise.
5020         * tree-ssa-structalias.c (update_alias_info): Likewise.
5021         (merge_smts_into): Likewise.
5022
5023 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5024
5025         PR 34351
5026         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
5027         * c-opts.c (c_common_handle_option): Wall enables
5028         Wvolatile-register-var.
5029         * common.opt: Move Wvolatile-register-var to...
5030         * c.opt: ...here.
5031         
5032 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5033
5034         * common.opt (Wlarger-than=): New.
5035         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
5036         -Wlarger-than=.
5037         * opts.c (common_handle_option): Handle -Wlarger-than=.
5038         * optc-gen.awk: Likewise.
5039         * opth-gen.awk: Likewise.
5040         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
5041         * tree-optimize.c (tree_rest_of_compilation): Likewise.
5042         
5043 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5044
5045         * c-common.c (match_case_to_enum_1): Add appropriate
5046         OPT_W* parameter to warning.
5047         (c_do_switch_warnings): Likewise.
5048         * c-typeck.c (warning_init): Add one more parameter following
5049         'warning' function.
5050         (push_init_level): Update call to warning_init.
5051         (pop_init_level): Likewise.
5052         (add_pending_init): Likewise.
5053         (output_init_element: Likewise.
5054
5055 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5056
5057         PR 28322
5058         * toplev.c (toplev_main): If there are warnings or error, print
5059         errors for ignored options.
5060         * opts.c (ignored_options): New static variable.
5061         (postpone_unknown_option_error): New.
5062         (print_ignored_options): New.
5063         (handle_option): Postpone errors for unknown -Wno-* options.
5064         * opts.h (print_ignored_options): Declare.
5065         
5066 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
5067
5068         * config/mips/mips.md (loadgp_blockage, blockage): Change type
5069         to "ghost".
5070
5071 2008-02-25  Richard Guenther  <rguenther@suse.de>
5072
5073         Revert:
5074         2008-02-25  Richard Guenther  <rguenther@suse.de>
5075
5076         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
5077         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
5078         (lookup_decl_from_uid): Declare.
5079         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
5080         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
5081         (decl_for_uid_map): New global hashtable mapping DECL_UID
5082         to the decl tree.
5083         (init_ttree): Allocate it.
5084         (insert_decl_to_uid_decl_map): New helper function.
5085         (make_node_stat): Insert new decls into the map.
5086         (copy_node_stat): Likewise.
5087         (lookup_decl_from_uid): New function.
5088         (print_decl_for_uid_map_statistics): New helper.
5089         (dump_tree_statistics): Call it.
5090
5091         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
5092         (referenced_var_iterator): Adjust.
5093         (FOR_EACH_REFERENCED_VAR): Adjust.
5094         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
5095         (num_referenced_vars): Adjust.
5096         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
5097         (first_referenced_var): Remove.
5098         (end_referenced_vars_p): Likewise.
5099         (next_referenced_var): Likewise.
5100         (referenced_var_iterator_set): New helper function.
5101         * tree-dfa.c (referenced_var_lookup): Adjust.
5102         (referenced_var_check_and_insert): Likewise.
5103         (remove_referenced_var): Likewise.
5104         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
5105         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
5106         (verify_call_clobbering): Likewise.
5107         (verify_memory_partitions): Likewise.
5108         (init_tree_ssa): Allocate bitmap instead of hashtable for
5109         referenced_vars.
5110         (delete_tree_ssa): Adjust.
5111         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
5112         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
5113         (compute_tag_properties): Likewise.
5114         (set_initial_properties): Likewise.
5115         (find_partition_for): Likewise.
5116         (update_reference_counts): Likewise.
5117         (dump_may_aliases_for): Likewise.
5118         * tree-ssa-operands.c (add_virtual_operand): Likewise.
5119         (add_call_clobber_ops): Likewise.
5120         (add_call_read_ops): Likewise.
5121         (get_asm_expr_operands): Likewise.
5122         * tree-into-ssa.c (dump_decl_set): Likewise.
5123         (update_ssa): Likewise.
5124         * tree-sra.c (scan_function): Likewise.
5125         (decide_instantiations): Likewise.
5126         (scalarize_parms): Likewise.
5127         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
5128         (dsa_named_for): Likewise.
5129         * tree-ssa-structalias.c (update_alias_info): Likewise.
5130         (merge_smts_into): Likewise.
5131
5132 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
5133
5134         PR fortran/29549
5135         * doc/invoke.texi (-fcx-limited-range): Document new option.
5136         * toplev.c (process_options): Handle -fcx-fortran-rules.
5137         * common.opt: Add documentation for -fcx-fortran-rules.
5138
5139 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
5140
5141         PR c/35162
5142         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
5143         actual behaviour and C99.
5144         
5145 2008-02-26  Ben Elliston  <bje@au.ibm.com>
5146
5147         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
5148         (ASM_CPU_POWER6_SPEC): Likewise.
5149         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
5150         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
5151         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
5152
5153 2008-02-25  Richard Guenther  <rguenther@suse.de>
5154
5155         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
5156         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
5157         (lookup_decl_from_uid): Declare.
5158         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
5159         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
5160         (decl_for_uid_map): New global hashtable mapping DECL_UID
5161         to the decl tree.
5162         (init_ttree): Allocate it.
5163         (insert_decl_to_uid_decl_map): New helper function.
5164         (make_node_stat): Insert new decls into the map.
5165         (copy_node_stat): Likewise.
5166         (lookup_decl_from_uid): New function.
5167         (print_decl_for_uid_map_statistics): New helper.
5168         (dump_tree_statistics): Call it.
5169
5170         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
5171         (referenced_var_iterator): Adjust.
5172         (FOR_EACH_REFERENCED_VAR): Adjust.
5173         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
5174         (num_referenced_vars): Adjust.
5175         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
5176         (first_referenced_var): Remove.
5177         (end_referenced_vars_p): Likewise.
5178         (next_referenced_var): Likewise.
5179         (referenced_var_iterator_set): New helper function.
5180         * tree-dfa.c (referenced_var_lookup): Adjust.
5181         (referenced_var_check_and_insert): Likewise.
5182         (remove_referenced_var): Likewise.
5183         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
5184         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
5185         (verify_call_clobbering): Likewise.
5186         (verify_memory_partitions): Likewise.
5187         (init_tree_ssa): Allocate bitmap instead of hashtable for
5188         referenced_vars.
5189         (delete_tree_ssa): Adjust.
5190         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
5191         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
5192         (compute_tag_properties): Likewise.
5193         (set_initial_properties): Likewise.
5194         (find_partition_for): Likewise.
5195         (update_reference_counts): Likewise.
5196         (dump_may_aliases_for): Likewise.
5197         * tree-ssa-operands.c (add_virtual_operand): Likewise.
5198         (add_call_clobber_ops): Likewise.
5199         (add_call_read_ops): Likewise.
5200         (get_asm_expr_operands): Likewise.
5201         * tree-into-ssa.c (dump_decl_set): Likewise.
5202         (update_ssa): Likewise.
5203         * tree-sra.c (scan_function): Likewise.
5204         (decide_instantiations): Likewise.
5205         (scalarize_parms): Likewise.
5206         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
5207         (dsa_named_for): Likewise.
5208         * tree-ssa-structalias.c (update_alias_info): Likewise.
5209         (merge_smts_into): Likewise.
5210
5211 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
5212
5213         PR target/35258
5214         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
5215         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
5216         * alias.h (nonoverlapping_memrefs_p): Likewise.
5217
5218 2008-02-25  Jan Beulich  <jbeulich@novell.com>
5219
5220         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
5221         * config/i386/netware-libgcc.exp: Add __bswap?i2,
5222         __emultls_get_address, __emultls_register_common,
5223         __floatundi?f, and _Unwind_GetIPInfo.
5224         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
5225         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
5226         (gen_regparm_prefix): Likewise.
5227         (i386_nlm_encode_section_info): Sync with
5228         config/i386/winnt.c:i386_pe_encode_section_info().
5229         (i386_nlm_maybe_mangle_decl_assembler_name): New.
5230         i386_nlm_mangle_decl_assembler_name): New.
5231         (netware_override_options): New.
5232         * config/i386/netware.h (netware_override_options): Declare.
5233         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
5234         (i386_nlm_mangle_decl_assembler_name): Declare.
5235         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
5236
5237 2008-02-25  Ben Elliston  <bje@au.ibm.com>
5238
5239         PR other/32948
5240         * c-decl.c (grokdeclarator): Remove unused local variables
5241         `typedef_type' and `type_as_written'.
5242         * bb-reorder.c
5243         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
5244         unused local variable `has_hot_blocks'.
5245         (fix_crossing_conditional_branches): Remove unused local variable
5246         `prev_bb'.
5247         
5248 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
5249
5250         PR middle-end/19984
5251         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
5252         using DEF_C99_BUILTIN.
5253         (BUILT_IN_NANF): Ditto.
5254         (BUILT_IN_NANL): Ditto.
5255
5256 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
5257             Revital Eres  <eres@il.ibm.com>
5258
5259         * modulo-sched.c (calculate_must_precede_follow): Address TODO
5260         regarding the order of two dependent insns in the same row.
5261
5262 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
5263
5264         * stor-layout.c (layout_decl): Do not bump the alignment of a
5265         bit-field to more than byte alignment if it is packed.
5266
5267 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
5268
5269         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
5270         e300c2 and e300c3.
5271
5272 2008-02-24  Diego Novillo  <dnovillo@google.com>
5273
5274         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
5275
5276         PR 33738
5277         * tree-vrp.c (vrp_evaluate_conditional): With
5278         -Wtype-limits, emit a warning when comparing against a
5279         constant outside the natural range of OP0's type.
5280         * c.opt (Wtype-limits): Move ...
5281         * common.opt (Wtype-limits): ... here.
5282
5283 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
5284
5285         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
5286         * config/rs6000/e300c2c3.md: New file.
5287         * config/rs6000/rs6000.c (processor_costs): Add new costs for
5288         e300c2 and e300c3.
5289         (rs6000_override_options): Add e300c2 and e300c3 cases to
5290         processor_target_table. Do not allow usage of Altivec or Spe
5291         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
5292         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
5293         * config/rs6000/rs6000.h (processor_type): Add
5294         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
5295         (ASM_CPU_SPEC): Add e300c2 and e300c3.
5296         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
5297         and ppce300c3. Include e300c2c3.md.
5298
5299 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
5300
5301         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
5302         instead of TARGET_STRICT_ALIGN.
5303
5304 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
5305
5306         * explow.c (memory_address): Assert that the generated address is
5307         valid.
5308
5309 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
5310
5311         PR target/25477
5312         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
5313         * config/darwin-ppc-ldouble-patch.def: New file.
5314         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
5315         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
5316         SUBTARGET_INIT_BUILTINS if defined.
5317         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
5318         New functions.
5319
5320 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5321
5322         PR rtl-opt/33512
5323         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
5324         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
5325
5326 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5327
5328         PR pch/35027
5329         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
5330         file" warning condtional on -Winvalid-PCH.
5331
5332 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
5333
5334         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
5335
5336 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
5337
5338         PR target/22076
5339         PR target/34256 
5340         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
5341         prevent reload from using MMX registers.
5342         (*mov<mode>_internal): Ditto.
5343         (*movv2sf_internal_rex64): Ditto.
5344         (*movv2sf_internal): Ditto.
5345
5346 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5347
5348         PR documentation/31569
5349         * doc/install.texi2html: Use makeinfo --no-number-sections.
5350
5351 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
5352
5353         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
5354         ensure that we can address an entire entity > 8 bytes.  Don't
5355         generate reg+reg addressing for such data.
5356
5357 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
5358
5359         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
5360         strings when optimizing for size, unless the target cares about
5361         alignment.
5362
5363 2008-02-22  Tom Tromey  <tromey@redhat.com>
5364
5365         * regclass.c (current_pass): Remove declaration.
5366
5367 2008-02-22  Anatoly Sokolov <aesok@post.ru>
5368
5369         * config/avr/libgcc.S (__RAMPZ__): Define.
5370         (__do_copy_data): Add for devices with 128KB code memory.
5371
5372 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
5373
5374         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
5375         Use spe_abi.
5376         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
5377
5378 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
5379
5380         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
5381         GENNONACR_REGS.
5382
5383 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5384
5385         PR c/19999
5386         * c-typeck.c (build_binary_op): Warn about floating point
5387         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
5388
5389 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
5390
5391         PR target/34526
5392         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
5393         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
5394         add vrsave.
5395         (rs6000_override_options): Set altivec_abi as default, not override,
5396         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
5397         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
5398         is used; use new member spe_abi.
5399         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
5400         spe_abi and altivec_abi.
5401
5402 2008-02-22  Tomas Bily  <tbily@suse.cz>
5403
5404         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
5405
5406 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5407
5408         PR bootstrap/35273
5409         * config.build (build_file_translate): Set to `CMD //c' only if
5410         it works.
5411         * Makefile.in (build_file_translate): Improve comment.
5412
5413 2008-02-21  Jan Hubicka  <jh@suse.cz>
5414
5415         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
5416         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
5417         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
5418
5419 2008-02-21  Michael Matz  <matz@suse.de>
5420
5421         PR target/35264
5422         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
5423
5424 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
5425
5426         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
5427         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
5428         as insn constraint.
5429         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
5430         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
5431         SSE_VEC_FLOAT_MODE_P as insn constraint.
5432         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
5433         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
5434         sse4a_movntdf using MODEF mode iterator.
5435         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
5436         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
5437         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
5438         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
5439         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
5440         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
5441         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
5442
5443 2008-02-21  Richard Guenther  <rguenther@suse.de>
5444
5445         * tree.def (PAREN_EXPR): New tree code.
5446         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
5447         and PAREN_EXPR.
5448         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
5449         * expr.c (expand_expr_real_1): Likewise.
5450         * tree-inline.c (estimate_num_insns_1): Likewise.
5451         * tree-complex.c (expand_complex_move): Likewise.
5452         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
5453         as plain x.
5454
5455 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
5456
5457         PR target/35225
5458         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
5459
5460 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
5461
5462         PR target/35190
5463         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
5464
5465         * config/sh/sh.c (find_barrier): Don't go past
5466         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
5467
5468 2008-02-20  DJ Delorie  <dj@redhat.com>
5469
5470         * config/h8300/h8300.md (insv): Force source operand to be a register.
5471
5472         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
5473         as a jump, not as a plain insn.
5474         
5475 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
5476
5477         * doc/invoke.texi (Warning Options): Add new option
5478         -Wframe-larger-than=.
5479         (-Wframe-larger-than): Document.
5480
5481         * flags.h (warn_frame_larger_than, frame_larger_than_size):
5482         Add declarations for new option variables.
5483
5484         * final.c (final_start_function): Check the frame size
5485         before emission and issue a Wframe-larger-than warning.
5486
5487         * opts.c (warn_frame_larger_than, frame_larger_than_size):
5488         Add definitions for new option variables.
5489         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
5490
5491         * common.opt (Wframe-larger-than=): New option.
5492
5493 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
5494
5495         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
5496         (<sse>_div<mode>3): Ditto.
5497         (<sse>_vmdiv<mode>3): Ditto.
5498         (<sse>_vmsqrt<mode>2): Ditto.
5499         (*smax<mode>3): Ditto.
5500         (sse5_frcz<mode>2): Ditto.
5501         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
5502         as insn constraint.
5503
5504 2008-02-20  Richard Guenther  <rguenther@suse.de>
5505
5506         PR middle-end/35265
5507         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
5508         be happy with INTEGRAL_TYPE_P.
5509
5510 2008-02-20  Richard Guenther  <rguenther@suse.de>
5511
5512         * fold-const.c (split_tree): Associate floatig-point expressions
5513         if flag_associative_math is set.
5514
5515 2008-02-20  Richard Guenther  <rguenther@suse.de>
5516
5517         * tree.h (fold_real_zero_addition_p): Declare.
5518         * fold-const.c (fold_real_zero_addition_p): Export.
5519         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
5520         floating-point operations with zero and one.
5521
5522 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
5523
5524         * doc/install.texi: Correct references to CFLAGS, replacing them
5525         with BOOT_CFLAGS.  Document flags used during bootstrap for
5526         target libraries.
5527                                 
5528 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
5529
5530         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
5531         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
5532         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
5533         insn constraint.
5534         (smin<mode>3): Ditto from similar patterns.
5535         (smax<mode>3): Ditto.
5536         (*ieee_smin<mode>3): Ditto.
5537         (*ieee_smax<mode>3): Ditto.
5538         * config/i386/sse.md (sse): New mode attribute.
5539         (mov<mode>): Macroize expander from movv4sf and movv2df using
5540         SSEMODEF2P mode iterator.
5541         (<sse>_movnt<mode>): Ditto from similar patterns. Use
5542         SSE_VEC_FLOAT_MODE_P as insn constraint.
5543         (storent<mode>): Ditto.
5544         (storent<mode>): Macroize expander from storentsf and storentdf using
5545         MODEF mode iterator.
5546         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
5547         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
5548         (abs<mode>2): Ditto from similar patterns.
5549         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
5550         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
5551         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
5552         (<sse>_vmsqrt<mode>2): Ditto.
5553         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
5554         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
5555         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
5556         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
5557         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
5558         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
5559         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
5560         insn constraint.
5561         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
5562         iterator and SSE_FLOAT_MODE_P as insn constraint.
5563         (<sse>_ucomi): Ditto from similar patterns.
5564         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
5565         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
5566         SSE_VEC_FLOAT_MODE_P as insn constraint.
5567         (vcond<mode>): Ditto from similar patterns.
5568         (and<mode>3, *and<mode>3): Ditto.
5569         (<sse>_nand<mode>3): Ditto.
5570         (ior<mode>3, *ior<mode>3): Ditto.
5571         (xor<mode>3, *xor<mode>3): Ditto.
5572         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
5573         iterator and SSE_FLOAT_MODE_P as insn constraint.
5574         (*nand<mode>3): Ditto from similar patterns.
5575         (*ior<mode>3): Ditto.
5576         (*xor<mode>3): Ditto.
5577
5578 2008-02-20  Ira Rosen  <irar@il.ibm.com>
5579
5580         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
5581         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
5582         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
5583
5584 2008-02-19  Jan Hubicka  <jh@suse.cz>
5585
5586         * predict.c (tree_bb_level_predictions): Remove variable next
5587         mistakely introduced by previous commit.
5588
5589 2008-02-19  Jan Hubicka  <jh@suse.cz>
5590
5591         * predict.c (predict_paths_leading_to): Rewrite.
5592         (predict_paths_for_bb): New.
5593         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
5594
5595 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5596
5597         PR bootstrap/35218
5598         * Makefile.in (build_file_translate): New.
5599         (gcc-vers.texi): Use it for translating $(abs_srcdir).
5600         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
5601         * configure.ac (build_file_translate): Substitute it.
5602         * configure: Regenerate.
5603
5604 2008-02-19  Jan Hubicka  <jh@suse.cz>
5605
5606         PR rtl-optimization/34408
5607         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
5608         invalid sharing.
5609
5610 2008-02-19  Jan Hubicka  <jh@suse.cz>
5611
5612         PR middle-end/28779
5613         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
5614         call_expr.
5615
5616 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
5617
5618         PR Ada/35186
5619         * config/i386/i386-modes.def: Revert the last DI alignment
5620         change until Ada people can look into it.
5621
5622 2008-02-19  Nick Clifton  <nickc@redhat.com>
5623
5624         * opts.c (print_specific_help): Fix typo in --help text.
5625
5626 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
5627
5628         PR target/35239
5629         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
5630         32-bit inline asm without asm alternatives for host GCC < 3.0.
5631
5632 2008-02-19  Richard Guenther  <rguenther@suse.de>
5633
5634         PR tree-optimization/34989
5635         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
5636         Allow propagation to INDIRECT_REF if we can simplify only.
5637
5638 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5639
5640         * c-common.c (warn_for_collisions_1): Use appropriate option when
5641         warning.
5642
5643 2008-02-19  Nick Clifton  <nickc@redhat.com>
5644
5645         PR other/31349
5646         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
5647         (handle_options): Fix indentation.
5648         (print_filtered_help): If no language-specific options were
5649         displayed tell the user how to list all the options supported by
5650         the language's front-end.
5651         (print_specific_help): Fix indentation and remove duplicate line.
5652         (common_handle_option): Handle the -v option.
5653         For --help enable the display of undocumented options if the -v
5654         switch has been included on the command line.
5655         For --help= check for overlaps in the arguments between the option
5656         classes and the language names and issue a warning when they
5657         cannot be disambiguated.
5658         * c.opt (v): Pass on to the common option handler.
5659
5660 2008-02-19  Revital Eres  <eres@il.ibm.com> 
5661
5662         * modulo-sched.c (sms_schedule): Change dump message when
5663         create_ddg function fails.
5664         (try_scheduling_node_in_cycle): Rename row to cycle.
5665         (print_partial_schedule): Rename CYCLE to ROW.
5666
5667 2008-02-19  Christian Bruel  <christian.bruel@st.com>
5668             Zdenek Dvorak  <ook@ucw.cz>
5669
5670         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
5671
5672 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
5673
5674         PR target/33555
5675         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
5676         (*x86_movdicc_0_m1_se): Ditto.
5677
5678 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
5679
5680         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
5681         (CMPtype): Define as __gcc_CMPtype.
5682         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
5683         (CMPtype): Define as __gcc_CMPtype.
5684
5685 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
5686
5687         Support valgrind 3.3 for --enable-checking=valgrind.
5688         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
5689         here.
5690         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
5691         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
5692         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
5693         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
5694         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
5695         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
5696         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
5697         respectively.
5698         * ggc-zone.c: Similar.
5699         * ggc-page.c: Similar.
5700
5701 2008-02-19  Paul Brook  <paul@codesourcery.com>
5702
5703         PR target/35071
5704         * config/arm/ieee754-df.S: Fix do_it typo.
5705         * config/arm/ieee754-sf.S: Fix do_it typo.
5706
5707 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
5708
5709         PR target/35189
5710         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
5711         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
5712         (OPTION_MASK_ISA_SSE_SET): Likewise.
5713         (OPTION_MASK_ISA_SSE2_SET): Likewise.
5714         (OPTION_MASK_ISA_SSE3_SET): Likewise.
5715         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
5716         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
5717         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
5718         (OPTION_MASK_ISA_SSE4_SET): Likewise.
5719         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
5720         (OPTION_MASK_ISA_SSE5_SET): Likewise.
5721         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
5722         (OPTION_MASK_ISA_MMX_UNSET): Updated.
5723         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
5724         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
5725         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
5726         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
5727         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
5728         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
5729         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
5730         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
5731         (OPTION_MASK_ISA_SSE4): Removed.
5732         (ix86_handle_option): Turn on bits in ix86_isa_flags and
5733         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
5734         (override_options): Don't turn on implied SSE/MMX bits in
5735         ix86_isa_flags.
5736
5737 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
5738
5739         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
5740         32bit host.
5741
5742 2008-02-18  Joey Ye  <joey.ye@intel.com>
5743
5744         PR middle-end/34921
5745         * tree-nested.c (insert_field_into_struct): Set type alignment
5746         to field alignment if the former is less than the latter.
5747
5748 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
5749
5750         * BASE-VER: Set to 4.4.0.
5751
5752 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5753
5754         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
5755         * doc/cfg.texi: Likewise.
5756         * doc/extend.texi: Likewise.
5757         * doc/gty.texi: Likewise.
5758         * doc/invoke.texi: Likewise.
5759         * doc/loop.texi: Likewise.
5760         * doc/md.texi: Likewise.
5761         * doc/passes.texi: Likewise.
5762         * doc/rtl.texi: Likewise.
5763         * doc/sourcebuild.texi: Likewise.
5764         * doc/tm.texi: Likewise.
5765         * doc/tree-ssa.texi: Likewise.
5766
5767 2008-02-17  Richard Guenther  <rguenther@suse.de>
5768
5769         PR middle-end/35227
5770         * tree-complex.c (init_parameter_lattice_values): Handle parameters
5771         without default definition.
5772
5773 2008-02-17  Richard Guenther  <rguenther@suse.de>
5774
5775         PR tree-optimization/35231
5776         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
5777         if A | B != 1.
5778
5779 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
5780
5781         Revert:
5782         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
5783         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
5784         libgcc_cmp_return mode.
5785
5786 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5787
5788         PR c/28368
5789         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
5790
5791 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
5792
5793         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
5794         multilibs.
5795
5796 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5797
5798         * doc/c-tree.texi: Use `@.' where appropriate.
5799         * doc/extend.texi: Likewise.
5800         * doc/install.texi: Likewise.
5801         * doc/invoke.texi: Likewise.
5802         * doc/loop.texi: Likewise.
5803         * doc/makefile.texi: Likewise.
5804         * doc/md.texi: Likewise.
5805         * doc/passes.texi: Likewise.
5806         * doc/standards.texi: Likewise.
5807         * doc/tm.texi: Likewise.
5808
5809 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
5810
5811         PR middle-end/35196
5812         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
5813         in entry_bb.
5814         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
5815         rather than in entry_bb.
5816
5817 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
5818
5819         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
5820         libgcc_cmp_return mode.
5821
5822 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
5823
5824         PR middle-end/35130
5825         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
5826         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
5827
5828 2008-02-15  Richard Guenther  <rguenther@suse.de>
5829             Zdenek Dvorak  <ook@ucw.cz>
5830
5831         PR tree-optimization/35164
5832         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
5833         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
5834         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
5835         Only propagate addresses which do not have abnormal SSA_NAMEs
5836         in their operands.
5837
5838 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
5839
5840         PR target/35088
5841         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
5842
5843 2008-02-15  Jan Hubicka  <jh@suse.cz>
5844
5845         PR middle-end/35149
5846         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
5847
5848 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
5849
5850         PR middle-end/34621
5851         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
5852         when calculating alignment_pad.
5853
5854 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
5855
5856         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
5857         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
5858         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
5859         and STACK_BOUNDARY define.
5860
5861 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
5862
5863         PR preprocessor/35061
5864         * c-pragma.c (handle_pragma_pop_macro): Check that
5865         pushed_macro_table has been allocated.
5866
5867 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
5868
5869         PR middle-end/35136
5870         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
5871         (force_gimple_operand): Likewise.
5872         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
5873         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
5874         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
5875         (find_interesting_uses_address): Check addressability and alignment
5876         of the base expression only after substituting bases of IVs into it.
5877
5878 2008-02-14  Michael Matz  <matz@suse.de>
5879
5880         PR target/34930
5881         * function.c (instantiate_virtual_regs_in_insn): Reload address
5882         before falling back to reloading the whole operand.
5883
5884 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
5885
5886         * config/s390/s390.c (s390_mainpool_start): Emit the pool
5887         before the first section switch note.
5888
5889 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5890
5891         * doc/bugreport.texi: Update copyright years.
5892         * doc/c-tree.texi: Likewise.
5893         * doc/cfg.texi: Likewise.
5894         * doc/cpp.texi: Likewise.
5895         * doc/cppinternals.texi: Likewise.
5896         * doc/fragments.texi: Likewise.
5897         * doc/frontends.texi: Likewise.
5898         * doc/gcc.texi: Likewise.
5899         * doc/gty.texi: Likewise.
5900         * doc/hostconfig.texi: Likewise.
5901         * doc/implement-c.texi: Likewise.
5902         * doc/libgcc.texi: Likewise.
5903         * doc/loop.texi: Likewise.
5904         * doc/makefile.texi: Likewise.
5905         * doc/options.texi: Likewise.
5906         * doc/passes.texi: Likewise.
5907         * doc/rtl.texi: Likewise.
5908         * doc/sourcebuild.texi: Likewise.
5909         * doc/standards.texi: Likewise.
5910         * doc/tree-ssa.texi: Likewise.
5911         * doc/trouble.texi: Likewise.
5912
5913         * doc/extend.texi: Use @: or add comma where appropriate.
5914         * doc/invoke.texi: Likewise.
5915         * doc/tm.texi: Likewise.
5916
5917 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
5918
5919         PR target/34393
5920         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
5921         to a reg.
5922
5923 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
5924
5925         * doc/md.texi (clz, ctz): Add reference.
5926         * doc/rtl.texi (clz, ctz): Likewise.
5927
5928 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5929
5930         PR other/35148
5931         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
5932         srcdir.
5933
5934 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
5935
5936         * config/s390/s390.c (struct constant_pool): New field
5937         emit_pool_after added.
5938         (s390_mainpool_start): Set the emit_pool_after flag according
5939         to the section switch notes.
5940         (s390_mainpool_finish): Consider emit_pool_after when emitting
5941         the literal pool at the end of the function.
5942         (s390_chunkify_start): Force literal pool splits at section
5943         switch notes.
5944
5945 2008-02-13  Michael Matz  <matz@suse.de>
5946
5947         PR debug/35065
5948         * var-tracking.c (clobber_variable_part): Correctly traverse the
5949         list.
5950
5951 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5952
5953         PR 29673
5954         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
5955         Add -fdump-ipa-inline.
5956         * tree-dump.c (dump_files): Remove tree-inlined dump.
5957         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
5958         
5959 2008-02-12  Richard Guenther  <rguenther@suse.de>
5960
5961         PR tree-optimization/35171
5962         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
5963         default defs.
5964
5965 2008-02-12  Richard Guenther  <rguenther@suse.de>
5966
5967         PR middle-end/35163
5968         * fold-const.c (fold_widened_comparison): Use get_unwidened in
5969         value-preserving mode.  Disallow final truncation.
5970
5971 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
5972
5973         PR middle-end/35136
5974         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
5975         code from here to...
5976         (force_gimple_operand): ...here.
5977
5978 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
5979
5980         PR c++/35144
5981         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
5982         non-compatible pointers.
5983         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
5984         different FIELD_DECLs, try harder by comparing field offsets, sizes
5985         and types.
5986
5987         PR inline-asm/35160
5988         * function.c (match_asm_constraints_1): Don't replace the same input
5989         multiple times.
5990
5991 2008-02-12  Anatoly Sokolov <aesok@post.ru>
5992
5993         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
5994         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
5995         (expand_epilogue): Restore RAMPZ register.
5996         * config/avr/avr.md (RAMPZ_ADDR): New constant.
5997
5998 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
5999
6000         * config/i386/cygwin.asm: (__alloca): Correct calling
6001         convention and alignment.
6002         (__chkstk): Force 8 byte stack alignment.
6003
6004 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
6005             Richard Guenther  <rguenther@suse.de>
6006
6007         PR tree-optimization/33992
6008         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
6009         the zero we compare against.
6010
6011 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
6012
6013         PR libfortran/35063
6014         * gthr-win32.h (__gthread_mutex_destroy_function): New function
6015         to CloseHandle after unlocking to prevent accumulation of handle
6016         count.
6017
6018 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6019
6020         PR middle_end/34150
6021         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
6022         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
6023         and update LABEL_NUSES during and after reload.
6024
6025 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
6026
6027         PR middle-end/34627
6028         * combine.c (simplify_if_then_else): Make sure the comparison is
6029         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
6030
6031 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
6032
6033         PR bootstrap/35051
6034         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
6035         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
6036         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
6037         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
6038         * tree.h (get_type_static_bounds): Likewise.
6039
6040 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6041
6042         * doc/invoke.texi (Option Summary, C++ Dialect Options)
6043         (Objective-C and Objective-C++ Dialect Options, Warning Options):
6044         Make -Wfoo language annotations match what the compiler outputs.
6045
6046 2008-02-08  Sa Liu  <saliu@de.ibm.com>
6047
6048         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
6049         intrinsics spu_convts, spu_convtu, spu_convtf.
6050
6051 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
6052
6053         * doc/extend.texi (Function Attributes) <noinline>: Mention
6054         asm ("") as method to keep calls.
6055
6056 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6057
6058         PR other/32754
6059         * doc/options.texi (Options): Replace references to opts.sh with
6060         optc-gen.awk.
6061         * opts-common.c: Likewise.
6062         * optc-gen.awk: Likewise.
6063         
6064 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
6065
6066         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
6067
6068 2008-02-07  Richard Henderson  <rth@redhat.com>
6069
6070         PR rtl-opt/33410
6071         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
6072         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
6073         funny mode.
6074
6075 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
6076
6077         PR tree-optimization/35085
6078         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
6079         for operand entry oe2 in addition to operand entry oe3 in order to
6080         expose more opportunities for vectorizer sum reduction.
6081
6082 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6083
6084         PR other/35107
6085         * Makefile.in (LIBS): Remove $(GMPLIBS).
6086         (cc1-dummy, cc1): Add $(GMPLIBS).
6087
6088 2008-02-06  Jan Hubicka  <jh@suse.cz>
6089
6090         PR target/23322
6091         * i386.md (moddf_integer): Do not produce partial memory stalls for
6092         targets where it hurts.
6093
6094 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
6095
6096         PR target/35083
6097         * optabs.c (expand_float): Do not check for decimal modes when
6098         expanding unsigned integer through signed conversion.
6099
6100 2008-02-06  Nick Clifton  <nickc@redhat.com>
6101
6102         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
6103         inside the clobber with a match_operand and duplicated operand
6104         number in the constraint.
6105         (ineqbranchsi): Delete redundant comment.
6106
6107 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
6108
6109         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
6110         builtin_define ("__USE_INIT_FINI__").
6111         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
6112         -msx multilibs.
6113         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
6114
6115 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6116
6117         PR documentation/30330
6118         * doc/invoke.texi (C++ Dialect Options)
6119         (Objective-C and Objective-C++ Dialect Options, Warning Options):
6120         For each warning option -Wfoo that allows -Wno-foo, ensure both
6121         -Wfoo and -Wno-foo are listed in the option index.  Fix index
6122         entry of -Wswitch-default, index -Wnormalized= including the
6123         `=', and -Wlarger-than-@var{len} including @var{len}.
6124
6125 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
6126
6127         * config/i386/i386.md (floatunssisf2): Use
6128         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
6129         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
6130         Macroize expander using MODEF mode iterator.
6131
6132 2008-02-05  Diego Novillo  <dnovillo@google.com>
6133
6134         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
6135
6136         PR 33738
6137         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
6138
6139 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6140
6141         PR other/35070
6142         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
6143
6144 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
6145
6146         PR target/35084
6147         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
6148         to indicate if a message should be generated.
6149         (init_cumulative_args): Updated.
6150         (function_value_32): Likewise.
6151
6152 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
6153
6154         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
6155
6156 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
6157
6158         PR target/35083
6159         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
6160         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
6161
6162 2008-02-04  Diego Novillo  <dnovillo@google.com>
6163
6164         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
6165
6166         PR 33738
6167         * tree-vrp.c (vrp_evaluate_conditional): With
6168         -Wtype-limits, emit a warning when comparing against a
6169         constant outside the natural range of OP0's type.
6170
6171 2008-02-04  Richard Guenther  <rguenther@suse.de>
6172
6173         PR middle-end/33631
6174         * expr.c (count_type_elements): Give for unions instead of
6175         guessing.
6176
6177 2008-02-04  Richard Guenther  <rguenther@suse.de>
6178
6179         PR middle-end/35043
6180         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
6181         to TYPE_DOMAINs base type instead of using bitsizetype here.
6182
6183 2008-02-03  Jason Merrill  <jason@redhat.com>
6184
6185         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
6186
6187 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6188
6189         PR other/29972
6190         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
6191         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
6192         (RS/6000 and PowerPC Options): Fix typos and markup.
6193         * doc/passes.texi (Tree-SSA passes): Likewise.
6194
6195 2008-02-02  Michael Matz  <matz@suse.de>
6196
6197         PR target/35045
6198         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
6199         from record_last_reg_set_info.
6200         (record_last_reg_set_info): Take an RTX argument, iterate over all
6201         constituent hardregs.
6202         (record_last_set_info, record_opr_changes): Change calls to
6203         new signature or to record_last_reg_set_info_regno.
6204
6205 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
6206
6207         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
6208
6209 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
6210
6211         PR rtl-optimization/34773
6212         * reg-notes.def (EQUAL): Mention significance of combination of
6213         REG_EQUAL and REG_RETVAL.
6214         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
6215         insn that has a REG_RETVAL.
6216
6217 2008-02-01  Roger Sayle  <roger@eyesopen.com>
6218
6219         PR bootstrap/33781
6220         * configure.ac (--enable-fixed-point): Disable unless explicitly
6221         requested on IRIX.
6222         * configure: Regenerate.
6223
6224 2008-02-01  Richard Guenther  <rguenther@suse.de>
6225
6226         PR other/35042
6227         * invoke.texi (-finline-limit): Remove no longer true parts
6228         of the documentation.  Note that there is no default value.
6229
6230 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
6231             Mark Mitchell  <mark@codesourcery.com>
6232             Ben Elliston  <bje@au.ibm.com>
6233
6234         PR c/29326
6235         * doc/extend.texi (Other Builtins): Document.
6236
6237 2008-01-31  Tom Browder <tom.browder@gmail.com>
6238
6239         * doc/c-tree.texi (Types): Fix grammar.
6240         (Expression trees): Ditto.
6241         * doc/passes.texi (Tree-SSA passes): Ditto.
6242         
6243         * doc/configterms.texi (Configure Terms): Fix typo.
6244         * doc/cpp.texi (Common Predefined Macros): Ditto.
6245         * doc/md.texi (Machine Constraints): Ditto.
6246         
6247         * doc/makefile.texi (Makefile): Add comma.
6248
6249 2008-01-31  Tom Browder  <tom.browder@gmail.com>
6250             Gerald Pfeifer  <gerald@pfeifer.com>
6251         
6252         * doc/sourcebuild.texi (Front End): Remove references to CVS
6253         and CVSROOT/modules.
6254         (Texinfo Manuals): Replace reference to CVS by one to SVN.
6255         (Back End): Remove reference to CVS.
6256
6257 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
6258
6259         PR target/34900
6260         * config/mips/mips.c (gen_load_const_gp): New function, taking a
6261         comment from...
6262         (mips16_gp_pseudo_reg): ...here.
6263         * config/mips/mips.md (load_const_gp): Replace with...
6264         (load_const_gp_<mode>): ...this :P-based insn.
6265
6266 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6267
6268         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
6269         options. Minor fixes.
6270         (-std): Move reference to standards closer to where language
6271         standards are first mentioned.
6272         
6273 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
6274
6275         PR rtl-optimization/34995
6276         * reload.c (alternative_allows_const_pool_ref): Take an rtx
6277         parameter and return a bool.  If the rtx parameter is nonnull,
6278         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
6279         (find_reloads): Update call accordingly.  Pass the new operand
6280         if it needed no address reloads, otherwise pass null.
6281
6282 2008-01-30  Richard Henderson  <rth@redhat.com>
6283
6284         PR c/34993
6285         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
6286         for unbounded arrays.
6287
6288 2008-01-30  Silvius Rus  <rus@google.com>
6289
6290         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
6291
6292 2008-01-30  Jan Hubicka  <jh@suse.cz>
6293
6294         PR target/34982
6295         * i386.c (init_cumulative_args): Use real function declaration when
6296         calling locally.
6297
6298 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
6299
6300         PR rtl-optimization/34998
6301         * global.c (build_insn_chain): Treat non-subreg_lowpart
6302         SUBREGs of pseudos as clobbering all the words covered by the
6303         SUBREG, not just all the bytes.
6304         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
6305         original df_ref rather than an extract parameter.
6306         (global_conflicts): Update call accordingly.
6307
6308 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
6309
6310         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
6311         the overflow check to make it easier to read.
6312         (__fixtfdi): Change the type of the ll member in union
6313         long_double to UDItype_x.
6314
6315 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
6316
6317         PR middle-end/34969
6318         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
6319         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
6320         * tree-inline.c (fold_marked_statements): Call
6321         cgraph_update_edges_for_call_stmt if folding a call statement.
6322         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
6323         debug_generic_stmt calls, reset it back afterwards.
6324
6325         PR c/35017
6326         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
6327         static decls.
6328         * c-typeck.c (build_external_ref): Don't pedwarn about
6329         static vars in current function's scope.
6330
6331 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
6332
6333         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
6334
6335 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
6336
6337         PR c/35002
6338         * ipa-struct-reorg.c: Fix spelling.
6339         * params.def: Ditto.
6340
6341 2008-01-29  Richard Guenther  <rguenther@suse.de>
6342
6343         PR middle-end/35006
6344         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
6345         field.
6346         * tree-inline.c (remap_type): Increment remapping_type_depth
6347         around remapping types.
6348         (copy_body_r): Only add referenced variables if they are referenced
6349         from code, not types.
6350
6351 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
6352
6353         PR c++/34055
6354         PR c++/34103
6355         PR c++/34219
6356         PR c++/34606
6357         PR c++/34753
6358         PR c++/34754
6359         PR c++/34755
6360         PR c++/34919
6361         PR c++/34961
6362         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
6363         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
6364
6365 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
6366
6367         PR target/34412
6368         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
6369         pointer for tiny stack.
6370
6371 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
6372
6373         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
6374
6375 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
6376
6377         * config/vx-common.h: Fix typo in comment.
6378
6379 2008-01-28  Ian Lance Taylor  <iant@google.com>
6380
6381         PR c++/34862
6382         PR c++/33407
6383         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
6384         coalesce pointers if they have different DECL_NO_TBAA_P values.
6385         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
6386         between variables with different DECL_NO_TBAA_P values.
6387
6388 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
6389
6390         PR 31535
6391         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
6392         are not legitimate small data references on SPE targets.
6393
6394 2008-01-28  David Daney  <ddaney@avtrex.com>
6395
6396         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
6397
6398 2008-01-28  David Daney  <ddaney@avtrex.com>
6399
6400         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
6401
6402 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
6403
6404         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
6405         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
6406         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
6407         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
6408         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
6409         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
6410         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
6411         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
6412
6413 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
6414
6415         * basic-block.h (condjump_equiv_p): Fix comment.
6416
6417 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
6418
6419         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
6420         print_generic_stmt_indented): Fix comment.
6421
6422 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
6423
6424         * configure.ac (__stack_chk_fail): Add detecion for availability
6425         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
6426         * configure: Regenerate.
6427
6428 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
6429
6430         PR middle-end/34688
6431         * final.c (output_addr_const): Handle TRUNCATE.
6432
6433 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
6434
6435         PR target/34711
6436         * tree-ssa-loop-ivopts.c (comp_cost): New type.
6437         (zero_cost, infinite_cost): New constants.
6438         (struct cost_pair): Change type of cost to comp_cost.
6439         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
6440         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
6441         New functions.
6442         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
6443         split_address_cost, ptr_difference_cost, difference_cost,
6444         get_computation_cost_at, get_computation_cost,
6445         determine_use_iv_cost_generic, determine_use_iv_cost_address,
6446         determine_use_iv_cost_condition, determine_use_iv_costs,
6447         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
6448         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
6449         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
6450         Change type of cost to comp_cost.
6451         (determine_iv_cost): Increase cost of non-original ivs, instead
6452         of decreasing the cost of original ones.
6453         (get_address_cost): Indicate the complexity of the addressing mode 
6454         in comp_cost.
6455         (try_add_cand_for): Prefer using ivs not specific to some object.
6456         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
6457
6458 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
6459             Janis Johnson  <janis187@us.ibm.com>
6460
6461         PR target/34814
6462         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
6463         (TARGET_INSTANTIATE_DECLS): Likewise.
6464         * target.h (expand_to_rtl_hook): New target hook.
6465         (instantiate_decls): Likewise.
6466         * function.c (instantiate_decl): Make non-static.  Rename to...
6467         (instantiate_decl_rtl): ... this.
6468         (instantiate_expr): Use instantiate_decl_rtl.
6469         (instantiate_decls_1): Likewise.
6470         (instantiate_decls): Likewise.
6471         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
6472         * function.h (instantiate_decl_rtl): Add prototype.
6473         * cfgexpand.c (target.h): New include.
6474         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
6475         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
6476         (TARGET_INSTANTIATE_DECLS): Likewise.
6477         (TARGET_INITIALIZER): New target hooks added.
6478         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
6479         New prototype.
6480         * config/rs6000/rs6000.c (tree-flow.h): New include.
6481         (machine_function): Add sdmode_stack_slot field.
6482         (rs6000_alloc_sdmode_stack_slot): New function.
6483         (rs6000_instantiate_decls): Likewise.
6484         (rs6000_secondary_memory_needed_rtx): Likewise.
6485         (rs6000_check_sdmode): Likewise.
6486         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
6487         (TARGET_INSTANTIATE_DECLS): Likewise.
6488         (rs6000_hard_regno_mode_ok): Allow SDmode.
6489         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
6490         (rs6000_emit_move): Handle SDmode.
6491         (function_arg_advance): Likewise.
6492         (function_arg): Likewise.
6493         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
6494         SDmode var args for 32-bit compiles.
6495         (rs6000_secondary_reload_class): Handle SDmode.
6496         (rs6000_output_function_epilogue): Likewise.
6497         (rs6000_function_value): Simplify if statement.
6498         (rs6000_libcall_value): Likewise.
6499         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
6500         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
6501         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
6502         (movsd_hardfloat): New define_insn.
6503         (movsd_softfloat): Likewise.
6504         (movsd_store): Likewise.
6505         (movsd_load): Likewise.
6506         (extendsddd2): Likewise.
6507         (extendsdtd2): Likewise.
6508         (truncddsd2): Likewise.
6509         (movdd_hardfloat64): Fixup comment.
6510         (UNSPEC_MOVSD_LOAD): New constant.
6511         (UNSPEC_MOVSD_STORE): Likewise.
6512
6513 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
6514
6515         PR c++/34965
6516         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
6517         TRUTH_XOR_EXPR.
6518         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
6519         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
6520         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
6521         and TRUTH_XOR_EXPR.
6522
6523 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
6524
6525         PR target/34794
6526         * config.gcc: Separate AIX 5.3 from AIX 6.1.
6527         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
6528         __LONGDOUBLE128 too.
6529         * config/rs6000/aix61.h: New file.
6530
6531 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
6532
6533         PR rtl-optimization/34959
6534         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
6535         popcount and parity rtxes the same mode as their operand.
6536         Truncate or extend the result to the return value's mode
6537         if necessary.
6538
6539 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
6540
6541         PR target/34981
6542         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
6543         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
6544         to GOT_VERSION_REGNUM.
6545         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
6546         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
6547         * config/mips/mips.c (mips_emit_call_insn): New function.
6548         (mips_call_tls_get_addr): Call mips_expand_call directly.
6549         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
6550         emit_call_insn.
6551         (mips16_build_call_stub): Likewise.  Return the call insn or null.
6552         (mips_expand_call): Update the call to mips16_build_call_stub
6553         accordingly and a remove redundant condition.  Assert that MIPS16
6554         stubs do not use lazy binding.  Use mips_emit_call_insn and return
6555         the call insn.
6556         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
6557         TARGET_USE_GOT.
6558         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
6559         (mips_avoid_hazard): Remove hazard_set handling.
6560         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
6561         (UNSPEC_RESTORE_GP): ...this.
6562         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
6563         (FAKE_CALL_REGNO): Rename to...
6564         (GOT_VERSION_REGNUM): ...this.
6565         (type): Add "ghost" value.  Add an associated insn reservation.
6566         (hazard_set): Remove.
6567         (exception_receiver): Rename to...
6568         (restore_gp): ...this and update the unspec identifier accordingly.
6569         (exception_receiver, nonlocal_got_receiver): New expanders.
6570         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
6571         FAKE_CALL_REGNO.  Remove hazard_set attribute.
6572         (set_got_version, update_got_version): New patterns.
6573
6574 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
6575
6576         PR target/34970
6577         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
6578
6579 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
6580
6581         PR other/31955
6582         * doc/install.texi2html: Generate gcc-vers.texi.
6583
6584 2008-01-25  DJ Delorie  <dj@redhat.com>
6585
6586         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6587
6588 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
6589
6590         * config/c4x: Remove directory.
6591         * config.gcc (crx-*, mt-*): Mark obsolete.
6592         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
6593         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
6594         sh-*-rtemscoff*): Remove cases.
6595         * defaults.h (C4X_FLOAT_FORMAT): Remove.
6596         * real.c (encode_c4x_single, decode_c4x_single,
6597         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
6598         c4x_extended_format): Remove.
6599         * real.h (c4x_single_format, c4x_extended_format): Remove.
6600         * doc/extend.texi (interrupt, naked): Remove mention of attributes
6601         on C4x.
6602         (Pragmas): Remove comment about c4x pragmas.
6603         * doc/install.texi (c4x): Remove target-specific instructions.
6604         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
6605         * doc/md.texi (Machine Constraints): Remove C4x documentation.
6606         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
6607         refer to C4x source files as examples.
6608         (C4X_FLOAT_FORMAT): Remove documentation.
6609
6610 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
6611
6612         * config/bfin/bfin.c (override_options): Reorder tests so that
6613         flag_pic gets enabled for -msep-data.
6614
6615 2008-01-25  Richard Guenther  <rguenther@suse.de>
6616
6617         PR middle-end/32244
6618         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
6619         to its bitfield precision if required.
6620
6621 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
6622
6623         PR middle-end/33880
6624         * tree-nested.c (walk_omp_for): New function.
6625         (convert_nonlocal_reference, convert_local_reference): Call
6626         walk_omp_for on OMP_FOR.
6627         (convert_call_expr): Call walk_body on OMP_FOR's
6628         OMP_FOR_PRE_INIT_BODY.
6629
6630 2008-01-25  Richard Guenther  <rguenther@suse.de>
6631
6632         PR tree-optimization/34966
6633         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
6634         default defs and PHI_NODEs we have to insert after the
6635         defining statement.
6636
6637 2008-01-24  Nick Clifton  <nickc@redhat.com>
6638
6639         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
6640         Provide a default definition.
6641         (LIBGCC2_UNITS_PER_WORD): Likewise.
6642
6643         * config/stormy16/stormy16.c: Include df.h for the prototype
6644         for df_regs_ever_live_p.
6645         (xstormy16_expand_builtin_va_start): Convert the stack offset
6646         into a component_ref and then use POINTER_PLUS_EXPR to add it
6647         to the incoming_virtual_args_rtx.
6648         (xstormy16_gimplify_va_arg_expr): Rename to
6649         xstormy16_gimplify_va_arg_expr.
6650         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
6651         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
6652         xstormy16_gimplify_va_arg_expr.
6653         Fix up some formatting issues.
6654
6655         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
6656         Move to predicates.md.
6657         (xs_hi_general_operand): Likewise.
6658         (xs_hi_nonmemory_operand): Likewise.
6659         * config/stormy16/predicates.md:
6660         (xstormy16_carry_plus_operand): New predicate.
6661         (xs_hi_general_operand): New predicate.
6662         (xs_hi_nonmemory_operand): New predicate.
6663         * config/stormy16/stormy16-protos.h:
6664         (xstormy16_carry_plus_operand): Delete prototype.
6665         (xs_hi_general_operand): Likewise.
6666         (xs_hi_nonmemory_operand): Likewise.
6667
6668         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
6669         modifiers as they are no longer needed and they can trigger
6670         reload spill failures.
6671
6672         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
6673         with a match_operand in order to help reload.
6674
6675         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
6676         constraint with 'e' for the 8th alternative as this version of
6677         the mov.w instruction only accepts the lower 8 registers.
6678
6679 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
6680
6681         PR target/34856
6682         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
6683         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
6684         vector elements.
6685
6686 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
6687
6688         PR middle-end/33333
6689         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
6690
6691 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
6692
6693         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
6694         New functions.
6695         (remove_structure): Update allocations list before removing structure.
6696         
6697 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
6698
6699         * ipa-struct-reorg.c (is_safe_cond_expr, 
6700         create_new_stmts_for_cond_expr): Use integer_zerop function,
6701         that recognize not only zero-pointer, but zero-integer too.
6702
6703 2008-01-25  Ben Elliston  <bje@au.ibm.com>
6704
6705         PR other/22232
6706         * fixproto: Escape "." in sed expression that strips leading "./".
6707
6708 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
6709
6710         PR driver/34904
6711         * gcc.c (SWITCH_OK): Removed.
6712         (SWITCH_LIVE): Changed to bit.
6713         (SWITCH_FALSE): Likewise.
6714         (SWITCH_IGNORE): Likewise.
6715         (switchstr): Change live_cond to unsigned int.
6716         (process_command): Replace SWITCH_OK with 0.
6717         (do_self_spec): Likewise.
6718         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
6719         (give_switch): Likewise.
6720         (used_arg): Likewise.
6721         (do_spec_1): Set the SWITCH_IGNORE bit.
6722         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
6723         bits.  Set the SWITCH_LIVE bit.
6724
6725 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
6726
6727         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
6728
6729 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
6730
6731         PR tree-optimization/34472
6732         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
6733         parameter to a "bool *" and set *DATA to false if there is
6734         an unsafe access.  Do not delete the structure here.
6735         (check_cond_exprs): Delete it here instead.
6736         (check_cond_exprs, exclude_cold_structs): Do not increase
6737         I when removing a structure.
6738
6739 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
6740
6741         PR target/34856
6742         * config/i386/i386.c (ix86_expand_vector_init): Consider only
6743         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
6744
6745 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
6746
6747         PR middle-end/34934
6748         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
6749         a fixed vector for stack.
6750
6751 2008-01-24  Ben Elliston  <bje@au.ibm.com>
6752
6753         PR c++/25701
6754         * doc/gcc.texi (Software development): Add a direntry for g++.
6755         
6756 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
6757
6758         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
6759         stale and straggling -fforce-addr comments above.
6760
6761         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
6762         define.
6763         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
6764         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
6765
6766 2008-01-23  Michael Matz  <matz@suse.de>
6767
6768         PR debug/34895
6769         * dwarf2out.c (force_type_die): Use modified_type_die instead of
6770         gen_type_die.
6771
6772 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
6773
6774         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
6775         malloc result type.
6776
6777 2008-01-23 Anatoly Sokolov <aesok@post.ru>
6778
6779         * config/avr/avr.c (avr_current_arch): New variable.
6780         (avr_arch_types): Add 'avr31' and 'avr51' entries.
6781         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
6782         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
6783         (avr_override_options): Init 'avr_current_arch'. 
6784         (base_arch_s): Move from here...
6785         * config/avr/avr.h (base_arch_s): ... here. Add new members 
6786         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
6787         'mega' to 'have_jmp_call'.
6788         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
6789         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
6790         macros.
6791         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
6792         architectures.
6793         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
6794         MULTILIB_MATCHES): (Ditto.).
6795
6796 2008-01-23  Richard Guenther  <rguenther@suse.de>
6797
6798         PR middle-end/31529
6799         * cgraphunit.c (cgraph_reset_node): Always mark the node
6800         not reachable if it is not queued already.
6801
6802 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
6803
6804         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
6805         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
6806         (cputype_selected): New static variable.
6807         (bfin_handle_option): Set it if -mcpu is used.
6808         (override_option): Select default set of workarounds if no cpu type
6809         selected on the command line.
6810         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
6811
6812         From  Michael Frysinger  <michael.frysinger@analog.com>
6813         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
6814         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
6815
6816         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
6817         for bf547, bf523, bf524, and bf526.
6818         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
6819         bf526.
6820         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
6821         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
6822         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
6823         __ADSPBF547__ and __ADSPBF54x__ for bf547.
6824         * doc/invoke.texi (Blackfin Options): Document that
6825         -mcpu now accept bf547, bf523, bf524, and bf526.
6826
6827 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
6828
6829         PR rtl-optimization/34628
6830         * combine.c (try_combine): Stop and undo after the first combination
6831         if an autoincrement side-effect on the first insn has effectively
6832         been lost.
6833
6834 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
6835
6836         PR target/34529
6837         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
6838         Offset addresses are not valid for Altivec or paired float modes.
6839
6840 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
6841
6842         PR c++/34607
6843         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
6844         if DECL_INITIAL (decl) is error_mark_node.
6845
6846         PR c++/34914
6847         * c-common.c (handle_vector_size_attribute): Only allow
6848         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
6849         the same way as pointer, array etc. types.
6850         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
6851
6852         PR c++/34917
6853         * tree.c (build_type_attribute_qual_variant): Call
6854         build_qualified_type if attributes are equal, but quals are not.
6855
6856 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6857
6858         PR 32102
6859         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
6860         * flags.h (warn_strict_aliasing): Remove.
6861         (warn_strict_overflow): Remove.
6862         * opts.c (warn_strict_aliasing): Remove.
6863         (warn_strict_overflow): Remove.
6864         * c-opts.c (c_common_handle_option): -Wall only sets
6865         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
6866         (c_common_post_options): Give default values to -Wstrict-aliasing
6867         and -Wstrict-overflow if they are uninitialized.
6868         * common.opt (Wstrict-aliasing): Specify Var and Init.
6869         (Wstrict-overflow): Likewise.
6870
6871 2008-01-22  Kenneth Zadeck <zadeck@naturalbridge.com>
6872
6873         PR rtl-optimization/26854
6874         PR rtl-optimization/34400
6875         PR rtl-optimization/34884
6876         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
6877         DF_RD->gen.
6878         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
6879         (df_rd_bb_info.expanded_lr_out): Deleted
6880         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
6881         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
6882         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
6883         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
6884         Removed code to allocate, initialize or free expanded_lr_out.
6885         (df_rd_bb_local_compute_process_def): Restructured to make more
6886         understandable.
6887         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
6888         sets if the sets are being trimmed.
6889
6890 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
6891
6892         PR bootstrap/32287
6893         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
6894         (as_vers): Likewise.
6895         * configure: Regenerated.
6896
6897 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6898
6899         PR middle-end/33092
6900         * tree-pass.h (pass_build_alias): New pass.
6901         * tree-ssa-alias.c (gate_build_alias): New.
6902         (pass_build_alias): New.
6903         * passes.c (init_optimization_passes): Add pass_build_alias after
6904         pass_create_structure_vars.
6905
6906 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
6907
6908         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
6909         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
6910         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
6911         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
6912         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
6913         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
6914         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
6915         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
6916         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
6917         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
6918         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
6919         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
6920         * config/s390/s390.md (FP_ALL): New mode iterator.
6921         (_d): New mode attribute.
6922         ("*signbit<mode>2>"): Changed mode of first operand.
6923         ("isinf<mode>2"): Changed mode of first operand.
6924         ("*TDC_insn"): Adaptation for DFP modes.
6925
6926 2008-01-22  Ben Elliston  <bje@au.ibm.com>
6927
6928         * tree.c (check_qualified_type): Improve function description.
6929
6930 2008-01-21  Jason Merrill  <jason@redhat.com>
6931
6932         PR c++/34196
6933         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
6934         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
6935         if it is set.
6936
6937 2008-01-21  DJ Delorie  <dj@redhat.com>
6938
6939         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
6940         return zero.
6941
6942 2008-01-21  Richard Guenther  <rguenther@suse.de>
6943
6944         PR middle-end/34856
6945         * tree-cfg.c (verify_expr): Allow all invariant expressions
6946         instead of just constant class ones as reference argument.
6947         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
6948         like any other constant.
6949         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6950
6951 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
6952
6953         * regmove.c (fixup_match_1): Update call crossed frequencies.
6954
6955 2008-01-21  Richard Guenther  <rguenther@suse.de>
6956
6957         PR c/34885
6958         * tree-inline.c (setup_one_parameter): Deal with mismatched
6959         types using a VIEW_CONVERT_EXPR.
6960
6961 2008-01-21  Alon Dayan  <alond@il.ibm.com>
6962             Olga Golovanevsky  <olga@il.ibm.com>
6963         
6964         PR tree-optimization/34701
6965         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
6966         when the structure size is not a power of 2.
6967
6968 2008-01-20  Kenneth Zadeck <zadeck@naturalbridge.com>
6969
6970         * doc/install.texi: Add doc for --enable-checking=df.
6971         
6972 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
6973
6974         PR rtl-optimization/34808
6975         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
6976
6977 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
6978
6979         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
6980         input.
6981
6982 2008-01-19  Kenneth Zadeck <zadeck@naturalbridge.com>
6983
6984         PR rtl-optimization/26854
6985         PR rtl-optimization/34400
6986         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
6987         DF_RD->gen.
6988         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
6989         (df_rd_bb_info.expanded_lr_out): New.
6990         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
6991         * loop_iv.c (iv_analysis_loop_init): Ditto.
6992         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
6993         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
6994         Added code to allocate, initialize or free expanded_lr_out.
6995         (df_rd_bb_local_compute_process_def): Restructured to make
6996         more understandable.
6997         (df_rd_confluence_n): Add code to do nothing with fake edges and
6998         code to no apply invalidate_by_call sets if the sets are being trimmed.
6999         (df_lr_local_finalize): Renamed to df_lr_finalize.
7000         (df_live_local_finalize): Renamed to df_live_finalize.
7001
7002 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
7003
7004         PR target/34831
7005         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
7006         deciding whether to use reciprocal instructions.
7007
7008 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
7009
7010         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
7011         dwarf2out_note_section_used if cold_text_section is NULL.
7012
7013 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
7014
7015         PR gcov-profile/34610
7016         * tree-cfg.c (make_edges): Mark both outgoing edges from
7017         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
7018         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
7019         from OMP_FOR and OMP_CONTINUE outgoing edges.
7020
7021         * tree-profile.c (tree_profiling): Return early if
7022         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
7023         at the end.
7024         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
7025         from cfun to child_cfun.
7026         * function.h (struct function): Add after_tree_profile bit.
7027
7028 2008-01-19 Anatoly Sokolov <aesok@post.ru>
7029
7030         * config/avr/avr.S (_exit): Disable interrupt.
7031
7032 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
7033             Steven Bosscher  <stevenb.gcc@gmail.com>
7034
7035         PR rtl-optimization/26854
7036         PR rtl-optimization/34400
7037         * df-problems.c (df_live_scratch): New scratch bitmap.
7038         (df_live_alloc): Allocate df_live_scratch when doing df_live.
7039         (df_live_reset): Clear the proper bitmaps.
7040         (df_live_bb_local_compute): Only process the artificial defs once
7041         since the order is not important.
7042         (df_live_init): Init the df_live sets only with the variables
7043         found live by df_lr.
7044         (df_live_transfer_function): Use the df_lr sets to prune the
7045         df_live sets as they are being computed.  
7046         (df_live_free): Free df_live_scratch.
7047
7048 2008-01-18  Ian Lance Taylor  <iant@google.com>
7049
7050         * common.opt: Add fmerge-debug-strings.
7051         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
7052         flag_merge_debug_strings rather than flag_merge_constants.
7053         * doc/invoke.texi (Option Summary): Mention
7054         -fmerge-debug-strings.
7055         (Debugging Options): Document -fmerge-debug-strings.
7056
7057 2008-01-18  Ian Lance Taylor  <iant@google.com>
7058
7059         PR c++/33407
7060         * tree.h (DECL_IS_OPERATOR_NEW): Define.
7061         (struct tree_function_decl): Add new field operator_new_flag.
7062         * tree-inline.c (expand_call_inline): When inlining a call to
7063         operator new, force the return value to go into a variable, and
7064         set DECL_NO_TBAA_P on that variable.
7065         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
7066
7067 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
7068
7069         PR debug/34484
7070         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
7071         DWARF2_DEBUGGING_INFO.
7072         (dwarf2out_note_section_used): Ditto.  Add prototype.
7073         (have_multiple_function_sections, text_section_used,
7074         cold_text_section_used, *cold_text_sections): Move declarations
7075         before their uses.
7076
7077 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
7078
7079         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
7080         field and add signal_ra.
7081         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
7082         assignments to frame state pc.  Move end of stack check after
7083         MD_FALLBACK_FRAME_STATE_FOR.
7084         (uw_update_context_1): Use frame state signal_regs if set, instead
7085         of checking signal_frame flag.
7086         (uw_update_context): Use frame state signal_ra if set.
7087         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
7088         * config/xtensa/linux-unwind.h: New file.
7089
7090 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
7091
7092         * modulo-sched.c (get_sched_window): Fix comment typo.
7093
7094 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
7095
7096         PR tree-optimization/34648
7097         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
7098
7099 2008-01-17  Anatoly Sokolov <aesok@post.ru>
7100
7101         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
7102         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
7103
7104 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
7105
7106         PR rtl-optimization/34400
7107         * df-core.c (df_worklist_dataflow_overeager,
7108         df_worklist_dataflow_doublequeue): New functions.
7109         (df_worklist_dataflow): Two different worklist solvers.
7110         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
7111         New param.
7112
7113 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
7114
7115         PR testsuite/34821
7116         * doc/invoke.texi: Document the dependence on pthread for fopenmp
7117         and ftree-parallelize-loops.
7118
7119 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
7120
7121         PR rtl-optimization/34826
7122         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
7123
7124 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
7125
7126         * global.c (find_reg): Mark the eh regs as used if necessary.
7127         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
7128         * ra.h (struct allocno): no_eh_reg field added.  Changed
7129         no_stack_reg type to bitfield.
7130
7131 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
7132
7133         * tree.c (substitute_in_expr): Add missing 'break'.
7134
7135 2008-01-17  Richard Guenther  <rguenther@suse.de>
7136
7137         PR tree-optimization/34825
7138         * tree-ssa-math-opts.c (is_division_by): Do not recognize
7139         x / x as division to handle.
7140
7141 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7142
7143         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
7144         "-pthread" is specified.
7145         * pa-hpux11.h (LIB_SPEC): Likewise.
7146
7147 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
7148             Peter Bergner  <bergner@vnet.ibm.com>
7149
7150         PR rtl-optimization/33796
7151         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
7152
7153 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7154
7155         PR libgfortran/34699
7156         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
7157         static links.
7158         * pa-hpux10.h (LINK_SPEC): Likewise.
7159         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
7160
7161 2008-01-16  Richard Guenther  <rguenther@suse.de>
7162
7163         PR middle-end/32628
7164         * fold-const.c (fold_convert_const_int_from_int): Do not
7165         set overflow if that occured only because of a sign extension
7166         change when converting from/to a sizetype with the same
7167         precision and signedness.
7168
7169 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
7170
7171         PR debug/34249
7172         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
7173         location address to the correct place.  Update copyright year.
7174
7175 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
7176
7177         * lambda-code.c (lambda_transform_legal_p): Handle the case of
7178         no dependences in the dependence_relations vector.
7179
7180 2008-01-16  Jan Hubicka  <jh@suse.cz>
7181
7182         PR rtl-optimization/31396
7183         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
7184         * cfg.c (dump_reg_info): Print it.
7185         * regs.h (struct reg_info_t): add freq_calls_crossed.
7186         (REG_FREQ_CALLS_CROSSED): New macro.
7187         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
7188         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
7189         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
7190         regmove_optimize): Update call crossed frequencies.
7191         * local-alloc.c (struct qty): Add freq_calls_crossed.
7192         (alloc_qty): Copute freq_calls_crossed.
7193         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
7194         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
7195         * ra.h (struct allocno): Add freq_calls_crossed.
7196
7197 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
7198
7199         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
7200         libgomp when compiling with ftree-parallelize-loops.
7201         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
7202
7203 2008-01-16  Richard Guenther  <rguenther@suse.de>
7204
7205         PR tree-optimization/34769
7206         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
7207         * tree.c (int_cst_value): Instead make this function more
7208         permissive in what it accepts as valid input.  Document this
7209         function always sign-extends the value.
7210
7211 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
7212             Richard Guenther  <rguenther@suse.de>
7213
7214         PR c/34668
7215         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
7216         (gimple_fold_indirect_ref_rhs): ... this.
7217         (gimple_fold_indirect_ref): New function with foldings
7218         that preserve lvalueness.
7219         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
7220         * tree-flow.h (gimple_fold_indirect_ref): Declare.
7221         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
7222         to fold an INDIRECT_REF, fall back to the old use of
7223         fold_indirect_ref_1.
7224
7225 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
7226
7227         * tree-data-ref.c (subscript_dependence_tester_1): Call 
7228         free_conflict_function.
7229         (compute_self_dependence): Same.
7230
7231 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
7232
7233         PR debug/34249
7234         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
7235         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
7236         function global.
7237         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
7238         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
7239         for DWARF2_UNWIND_INFO targets.
7240
7241 2008-01-16  Richard Guenther  <rguenther@suse.de>
7242
7243         PR c/34768
7244         * c-typeck.c (common_pointer_type): Do not merge inconsistent
7245         type qualifiers for function types.
7246
7247 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
7248
7249         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
7250         loop_iterator li from previous commit.
7251
7252 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
7253
7254         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
7255
7256 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
7257
7258         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
7259         (parallelize_loops): Don't parallelize irreducible components.
7260
7261 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7262
7263         PR c++/24924
7264         * c-opts (c_common_post_options): Do not enable CPP
7265         flag_pedantic_errors by default.
7266         
7267 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
7268
7269         PR rtl-optimization/31944
7270         * cse.c (remove_pseudo_from_table): New function.
7271         (merge_equiv_classes): Use above function to remove pseudo-registers.
7272         (invalidate): Likewise.
7273
7274 2008-01-13  Richard Guenther  <rguenther@suse.de>
7275
7276         PR middle-end/34601
7277         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
7278         instead of TYPE_MODE to deal with calls from expand_one_error_var.
7279
7280 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
7281
7282         * gcse.c (cprop_jump): Call validate_unshare_change instead of
7283         validate_change to unshare the source of the PC set.
7284
7285 2008-01-12  Jan Hubicka  <jh@suse.cz>
7286
7287         PR middle-end/32135
7288         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
7289         references above array bounds.  This might trigger bounds checks for
7290         pointers to arrays.
7291
7292 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
7293
7294         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
7295         new_replaceable_dependencies.
7296
7297 2008-01-12  Doug Kwan  <dougkwan@google.com>
7298
7299         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
7300         instead of OPT_Wreturn_type in warning due to ignored return type
7301         qualifiers.
7302         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
7303         options included in -Wextra.
7304         * c.opt: New option -Wignored_qualifiers.
7305         * doc/invoke.texi (Warning Options, -Wextra): Add new option
7306         -Wignore_qualifiers.
7307         (-Wignored-qualifiers): Document.
7308         (-Wreturn-type): Remove description of functionality now handled
7309         by -Wignored-qualifiers.
7310
7311 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
7312
7313         PR ada/33788
7314         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
7315         NOP_EXPR if it is between integral types with the same precision.
7316
7317 2008-01-12  Jan Hubicka  <jh@suse.cz>
7318
7319         PR other/28023
7320         * invoke.texi (max-inline-recursive-depth): Fix default value.
7321
7322 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
7323
7324         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
7325         correct type.
7326
7327 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
7328         
7329         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
7330         
7331 2008-01-11  James E. Wilson  <wilson@specifix.com>
7332
7333         PR target/26015
7334         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
7335
7336 2008-01-11  Anatoly Sokolov <aesok@post.ru>
7337
7338         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
7339         save/restore frame pointer register and don't use 'call-prologues' 
7340         optimization in function with "OS_task" attribute.
7341
7342 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
7343
7344         PR middle-end/31309
7345         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
7346         when copying to memory.
7347
7348 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
7349
7350         PR rtl-optimization/30905
7351         * cfgcleanup.c: Include dce.h
7352         (crossjumps_occured): New global variable.
7353         (try_crossjump_bb): Exit loop after finding a fallthru edge.
7354         If something changed, set crossjumps_occured to true.
7355         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
7356         Don't add/remove fake edges to exit here...
7357         (cleanup_cfg): ...but do it here, when crossjumping.
7358         Run a fast DCE when successful crossjumps occured in the latest
7359         iteration of try_optimize_cfg.
7360
7361 2008-01-11  Richard Guenther  <rguenther@suse.de>
7362
7363         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
7364         (struct vn_unary_op_s): Likewise.
7365         (vn_reference_insert): Free old reference on hash collision.
7366
7367 2008-01-10  Raksit Ashok  <raksit@google.com>
7368
7369         PR rtl-optimization/27971
7370         * combine.c (find_split_point): Split PLUS expressions which are
7371         inside a MEM rtx, and whose first operand is complex.
7372
7373 2008-01-10  DJ Delorie  <dj@redhat.com>
7374
7375         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
7376         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
7377         (m32c_hard_regno_ok): Call the underlying function.
7378
7379 2008-01-10  Richard Guenther  <rguenther@suse.de>
7380
7381         PR middle-end/34683
7382         * tree-cfg.c (tree_merge_blocks): Do not go through the
7383         full-blown folding and stmt updating path if we just deal
7384         with virtual operands.
7385         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
7386         test for abnormal SSA_NAMEs.
7387
7388 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
7389
7390         PR middle-end/34641
7391         * reload.c (push_reload): Add assertions.  All constants from
7392         reg_equiv_constant should have been used for replacing the respective
7393         pseudo earlier.
7394         (find_reloads_address): Invoke find_reloads_address_part for
7395         constant taken from the reg_equiv_constant array.
7396
7397 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
7398
7399         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
7400         field (valnum) the first in the struct.  Replace bools with
7401         unit bit fields.
7402
7403 2008-01-10  Richard Guenther  <rguenther@suse.de>
7404
7405         PR tree-optimization/34651
7406         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
7407         types and ordering for masking and converting.
7408
7409 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
7410
7411         PR tree-optimization/34017
7412         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
7413         also for PHI_NODE expressions.
7414
7415 2008-01-09  Jan Hubicka  <jh@suse.cz>
7416
7417         PR tree-optimization/34708
7418         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
7419         based on number of case labels.
7420         (init_inline_once): Remove switch_cost.
7421         * tree-inline.h (eni_weights_d): Remove switch_cost.
7422
7423 2008-01-09  Richard Guenther  <rguenther@suse.de>
7424         Andrew Pinski  <andrew_pinski@playstation.sony.com>
7425
7426         PR middle-end/30132
7427         * gimplify.c (gimplify_cond_expr): Do not create an addressable
7428         temporary if an rvalue is ok or an lvalue is not required.
7429
7430 2008-01-09  Richard Guenther  <rguenther@suse.de>
7431
7432         PR middle-end/34458
7433         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
7434         adjust return type.
7435
7436 2008-01-09  Richard Guenther  <rguenther@suse.de>
7437
7438         PR middle-end/34679
7439         * tree.c (host_integerp): Check for sizetype only if the
7440         type is an integer type.
7441
7442 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
7443
7444         PR debug/26364
7445         * opts.c (decode_options): Disable inlining of functions called
7446         once if not in unit-at-a-time mode.
7447
7448 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
7449
7450         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
7451
7452 2008-01-08  Richard Guenther  <rguenther@suse.de>
7453
7454         PR middle-end/31863
7455         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
7456         out early if the result will be unused.
7457
7458 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
7459
7460         PR target/34709
7461         Revert:
7462
7463         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
7464         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
7465         for TARGET_RECIP.       
7466         
7467 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
7468         
7469         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
7470         for vectorization tuned.
7471         
7472 2008-01-08  Richard Guenther  <rguenther@suse.de>
7473
7474         PR tree-optimization/34683
7475         * tree-ssa-operands.c (operand_build_cmp): Export.
7476         * tree-ssa-operands.h (operand_build_cmp): Declare.
7477         * tree-vn.c (vuses_compare): Remove.
7478         (sort_vuses): Use operand_build_cmp.
7479         (sort_vuses_heap): Likewise.
7480         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
7481         to re-use old VEC if available.  Do not sort already sorted VUSEs.
7482         (vdefs_to_vec): Do not sort already sorted VDEFs.
7483
7484 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
7485
7486         PR middle-end/34694
7487         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
7488
7489 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
7490
7491         PR target/34702
7492         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
7493         limitations of reciprocal sequences on x86 targets.
7494
7495 2008-01-08  Richard Guenther  <rguenther@suse.de>
7496
7497         PR tree-optimization/34683
7498         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
7499
7500 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
7501
7502         PR target/34622
7503         * config/darwin.c (darwin_mergeable_string_section): Don't use
7504         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
7505
7506 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
7507
7508         PR target/34682
7509         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
7510         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
7511         predicates of op0 and op1 to register_operand.
7512         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
7513         expander using X87MODEF mode iterator.  Change predicates of
7514         op0 and op1 to register_operand.
7515         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
7516         corresponding patterns and macroize using MODEF macro.  Change
7517         predicates of op0 and op1 to register_operand and remove
7518         "m" constraint. Disparage "r" alternative with "!".
7519         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
7520         macroize using X87MODEF macro.  Change predicates of op0 and op1
7521         to register_operand and remove "m" constraint.  Disparage "r"
7522         alternative with "!".
7523         (absneg splitter with memory operands): Remove.
7524         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
7525         patterns and macroize using X87MODEF mode iterator.
7526         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
7527         Change predicate of op1 to register_operand.
7528         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
7529         for memory operands.
7530
7531 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
7532
7533         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
7534
7535 2008-01-07  Richard Guenther  <rguenther@suse.de>
7536
7537         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
7538         fields.
7539
7540 2008-01-07  Richard Guenther  <rguenther@suse.de>
7541
7542         PR tree-optimization/34683
7543         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
7544         VOPs of the needed size to save memory.  Use VEC_quick_push
7545         to save compile-time.
7546         (vdefs_to_vec): Likewise.
7547
7548 2008-01-07  Sa Liu  <saliu@de.ibm.com>
7549
7550         * config/spu/spu.md (divdf3): Genetate inline code for double
7551         division.  The implementation doesn't handle INF or NAN, therefore it
7552         only applies when -ffinite-math-only is given.
7553
7554 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
7555
7556         PR libstdc++/34680
7557         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
7558         * doc/cpp.texi ([Common Predefined Macros]): Document.
7559
7560 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
7561
7562         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
7563         order to use commutative addition instead of subtraction.
7564
7565 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7566             Mircea Namolaru  <namolaru@il.ibm.com>
7567             Vladimir Yanovsky  <yanov@il.ibm.com>
7568             Revital Eres  <eres@il.ibm.com>
7569
7570         PR tree-optimization/34263
7571         * tree-outof-ssa.c (process_single_block_loop_latch,
7572         contains_tree_r): New functions.
7573         (analyze_edges_for_bb): Call process_single_block_loop_latch
7574         function to empty single-basic-block latch block if possible.
7575
7576 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
7577
7578         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
7579         for TARGET_RECIP.
7580         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
7581
7582 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
7583
7584         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
7585
7586 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
7587
7588         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
7589
7590 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
7591
7592         PR tree-optimization/34618
7593         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
7594         flag from T.
7595
7596 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
7597
7598         PR target/34673
7599         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
7600         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
7601         Update copyright year.
7602
7603         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
7604         Update copyright year.
7605         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
7606         using NR fixup.
7607
7608 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
7609
7610         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
7611         edge does not point to current bb before changing need_assert.
7612
7613 2008-01-04  Richard Guenther  <rguenther@suse.de>
7614
7615         PR middle-end/34029
7616         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
7617         for verifying purposes if they are is_gimple_min_invariant.
7618
7619 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
7620
7621         PR tree-optimization/34448
7622         PR tree-optimization/34465
7623         * gimplify.c (gimplify_init_constructor): Add new parameter
7624         notify_temp_creation.  Use it.
7625         (gimplify_modify_expr_rhs): Take volatiles into account when
7626         optimizing constructors.
7627         Do not optimize constructors if gimplify_init_constructor will dump to
7628         memory.
7629         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
7630         * gcc.c-torture/compile/pr34448.c: New.
7631
7632 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
7633
7634         PR gcov-profile/34609
7635         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
7636         return_slot if result is TREE_ADDRESSABLE.
7637
7638 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
7639
7640         * config/mips/mips.md (sqrt_condition): Tweak comment.
7641         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
7642
7643 2008-01-03  Tom Tromey  <tromey@redhat.com>
7644
7645         PR c/34457
7646         * c-common.c (c_type_hash): Handle VLAs.
7647
7648 2008-01-03  Jan Hubicka  <jh@suse.cz>
7649
7650         PR tree-optimization/31081
7651         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
7652         0 when inlining and not inlining to first basic block.
7653         (remap_decl): When var is initialized to 0, don't set default_def.
7654         (expand_call_inline): Set entry_bb.
7655         * tree-inline.h (copy_body_data): Add entry_bb.
7656
7657 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
7658
7659         PR c++/34619
7660         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
7661         before returning.
7662
7663         PR tree-optimization/29484
7664         * tree-inline.c (inline_forbidden_p_2): New function.
7665         (inline_forbidden_p): Disallow inlining if some static var
7666         has an address of a local LABEL_DECL in its initializer.
7667         * doc/extend.texi (Labels as Values): Document &&foo behaviour
7668         vs. inlining.
7669
7670 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
7671
7672         PR tree-optimization/34635
7673         * tree-data-ref.c (add_other_self_distances): Make sure that the
7674         evolution step is constant.
7675
7676 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
7677
7678         PR middle-end/34608
7679         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
7680
7681 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
7682
7683         * tree-sra.c (scalarize_init): Insert the generate_element_init
7684         statements after the generate_element_zero statements.
7685
7686 2008-01-02  Richard Guenther  <rguenther@suse.de>
7687
7688         PR middle-end/34093
7689         PR middle-end/31976
7690         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
7691         for very large number of operands instead of ICEing.
7692
7693 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
7694
7695         PR target/34013
7696         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
7697         while stack probing.
7698
7699 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
7700
7701         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
7702         in C++0x mode.
7703
7704 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
7705
7706         PR libmudflap/26442
7707         * tree-mudflap.c (mx_register_decls): Guard warning by
7708         !DECL_ARTIFICIAL check.
7709
7710 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
7711
7712         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
7713         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
7714         sse5_perm<mode>): Fix constraints.