OSDN Git Service

2008-08-28 Dodji Seketeli <dodji@redhat.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-08-28  Dodji Seketeli  <dodji@redhat.com>
2
3         PR c++/36741
4         * tree.c (int_fits_type_p): Don't forget unsigned integers
5           of type sizetype which higher end word equals -1.
6
7 2008-08-28  Ira Rosen  <irar@il.ibm.com>
8
9         * target.h (struct vectorize): Add new target builtin.
10         * tree-vectorizer.c (destroy_loop_vec_info): Call 
11         vect_free_slp_instance instead of vect_free_slp_node.
12         * tree-vectorizer.h (enum slp_load_perm_type): New.
13         (struct _slp_instance): Add new fields.
14         (SLP_INSTANCE_LOAD_PERMUTATION): New.
15         (SLP_INSTANCE_LOADS): New.
16         (vect_free_slp_tree): Remove.
17         (vect_free_slp_instance): Declare.        
18         (SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
19         (vectorizable_load): Add argument.
20         (vect_transform_slp_perm_load): New.
21         * tree-vect-analyze.c (vect_analyze_operations): Add an argument to 
22         vectorizable_load.
23         (vect_get_place_in_interleaving_chain): New function.
24         (vect_free_slp_tree): Make static.
25         (vect_free_slp_instance): New function.
26         (vect_build_slp_tree): Add new arguments. Allow load permutations and 
27         collect the load location in the interleaving chain.
28         (vect_supported_slp_permutation_p): New function.
29         (vect_supported_load_permutation_p): Likewise.
30         (vect_analyze_slp_instance): In case of loads permutation, call
31         vect_supported_load_permutation_p to check that the permutation is 
32         supported.
33         * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
34         * tree-vect-transform.c (vect_transform_stmt): Add new argument.
35         (vect_create_mask_and_perm): New function.
36         (vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
37         (vectorizable_load): Add an argument. Don't keep the created vectors  
38         statements in the node if permutation is required. Call 
39         vect_transform_slp_perm_load to generate the permutation.
40         (vect_transform_stmt): Add new argument. Call vectorizable_load with 
41         additional argument.
42         (vect_schedule_slp_instance): In case of loads permutation, allocate  
43         vectorized statements structure for all the related SLP nodes. Call 
44         vect_transform_stmt with addditional argument.
45         (vect_transform_loop): Call vect_transform_stmt with correct arguments. 
46         * config/spu/spu.c (spu_builtin_vec_perm): New. 
47         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
48         * config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
49         * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
50         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
51
52 2008-08-28  Chris Fairles  <chris.fairles@gmail.com>
53
54         * gthr-posix.h (__gthread_create,  __gthread_join, __gthread_detach,
55         __gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
56         __gthread_cond_signal, __gthread_cond_timedwait,
57         __gthread_cond_timedwait_recursive): New functions.
58         * gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
59         Likewise.
60         * gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
61         thread interfaces.
62
63 2008-08-28  Richard Guenther  <rguenther@suse.de>
64
65         PR middle-end/37005
66         * fold-const.c (maybe_canonicalize_comparison_1): Require
67         undefined overflow only for canonicalizing A +- CST cmp CST.
68         Make sure to not generate new constants that are not inside
69         their TYPE_MIN/MAX_VALUE range.
70         (maybe_canonicalize_comparison): Remove undefined overflow
71         checking from here.
72         (fold_binary): Remove now duplicate folding.
73
74 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
75
76         * c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
77         use not updated in the last change.
78
79 2008-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
80
81         * config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
82         (IRA_COVER_CLASSES): Add FPUL_REGS.
83
84 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
85
86         PR 37217
87         * c-common.c (conversion_warning): Check for null operands.
88
89 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
90
91         PR c/31673
92         * c-decl.c (check_for_loop_decls): Improve error message. Give
93         hint.
94
95 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
96
97         PR c/37186
98         * c-typeck.c (WARN_FOR_ASSIGNMENT): Add OPT parameter.
99         (convert_for_assignment): Pass corrent OPT_W* parameter to
100         WARN_FOR_ASSIGNMENT.
101
102 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
103
104         PR c++/35321
105         * c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
106
107 2008-08-27  Paul Brook  <paul@codesourcery.com>
108
109         * config.gcc: Loosen checks for arm uclinux eabi targets.
110
111 2008-08-27  Paul Brook  <paul@codesourcery.com>
112
113         * config/arm/t-arm-coff (LIB1ASMFUNCS): Add missing undescrore on
114         _clzsi2.
115         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
116
117 2008-08-26  Douglas Gregor  <doug.gregor@gmail.com>
118
119         * c-common.c (do_switch_warnings): Look through the CONST_DECLs in
120         the enumerators of an ENUMERAL_TYPE.
121         * dbxout.c (dbxout_type): Ditto.
122
123 2008-08-26  Andrew Pinski  <andrew_pinski@playstation.sony.com>
124
125         PR rtl-opt/37219
126         * fwprop.c (fwprop): Check that the loop_father is the outer loop.
127         (fwprop_addr): Check that the loop_father is not the outer loop.
128
129 2008-08-26  Paul Brook  <paul@codesourcery.com>
130
131         * config/arm/vfp.md: Document fmul{s,d} and fmac{s,d} types.
132         Remove documentation entry for fmul type.
133         Use fmuls to annotate single-precision multiplication patterns,
134         fmuld to annotate double-precision multiplication patterns,
135         fmacs to annotate single-precision multiply-accumulate patterns
136         and fmacd to annotate double-precision multiply-accumulate patterns.
137         * config/arm/vfp11.md: Update reservations accordingly.
138         * config/arm/arm.md: Note that certain values of the "type"
139         attribute are documented in vfp.md.
140         * config/arm/arm1020e.md: Remove out of date duplicate comment.
141         (v10_cvt): Use new fmul types.
142
143 2008-08-26  Paul Brook   <paul@codesourcery.com>
144
145         * config/arm/vfp.md: Move pipeline description for VFP11 to...
146         * config/arm/vfp11.md: ...here.  New.
147         * config/arm/arm.md: Include vfp11.md.
148
149 2008-08-26  Hans-Peter Nilsson  <hp@axis.com>
150
151         * opts.c (decode_options) [!IRA_COVER_CLASSES]: Add missing
152         parameter to inform call.
153
154 2008-08-26  Jeff Law  <law@redhat.com>
155
156         * mn10300.md (movqi, movhi): Split i->d*a case into two cases to
157         avoid the possibility of getting DATA_OR_ADDRESS_REGS as the
158         preferred class when copying a constant into a partial word register.
159
160 2008-08-26  Ben Elliston  <bje@au.ibm.com>
161
162         * rtlanal.c: Fix uses of "it's" with "its" where appropriate.
163         * cp/typeck.c: Likewise.
164         * cp/tree.c: Likewise.
165         * gimple-low.c: Likewise.
166         * jump.c: Likewise.
167
168 2008-08-26  Vladimir Makarov  <vmakarov@redhat.com>
169
170         * ira-build.c, ira-color.c, ira-costs.c, ira.h, ira-lives.c,
171         ira.c, ira-conflicts.c, ira-emit.c, ira-int.h: New files.
172
173         * doc/passes.texi: Describe IRA.
174
175         * doc/tm.texi (IRA_COVER_CLASSES,
176         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Describe the new macros.
177
178         * doc/invoke.texi (ira-max-loops-num): Describe the new parameter.
179         (-fira, -fira-algorithm, -fira-coalesce, -fno-ira-move-spills,
180         -fira-propagate-cost, -fno-ira-share-save-slots,
181         -fno-ira-share-spill-slots, -fira-verbose): Describe new options.
182
183         * flags.h (ira_algorithm): New enumeration.
184         (flag_ira_algorithm, flag_ira_verbose): New external variable
185         declarations.
186
187         * postreload.c (gate_handle_postreload): Don't do post reload
188         optimizations unless the reload is completed.
189
190         * reload.c (push_reload, find_dummy_reload): Use DF_LR_OUT for
191         IRA.
192
193         * tree-pass.h (pass_ira): New external variable declaration.
194
195         * reload.h: Add 2008 to the Copyright.
196     
197         * cfgloopanal.c: Include params.h.
198         (estimate_reg_pressure_cost): Decrease cost for IRA optimization
199         mode.
200     
201         * params.h (IRA_MAX_LOOPS_NUM): New macro.
202
203         * toplev.c (ira.h): New include.
204         (flag_ira_algorithm, flag_ira_verbose): New external variables.
205         (backend_init_target): Call ira_init.
206         (backend_init): Call ira_init_once.
207         (finalize): Call finish_ira_once.
208
209         * toplev.h (flag_ira, flag_ira_coalesce, flag_ira_move_spills,
210         flag_ira_share_save_slots, flag_ira_share_spill_slots): New
211         external variables.
212
213         * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
214         may_move_out_cost): New external variable declarations.
215         (move_table): New typedef.
216     
217         * caller-save.c: Include headers output.h and ira.h.
218         (no_caller_save_reg_set): New global variable.
219         (save_slots_num, save_slots): New variables.
220         (reg_save_code, reg_restore_code, add_stored_regs): Add
221         prototypes.
222         (init_caller_save): Set up no_caller_save_reg_set.
223         (init_save_areas): Reset save_slots_num.
224         (saved_hard_reg): New structure.
225         (hard_reg_map, saved_regs_num, all_saved_regs): New variables.
226         (initiate_saved_hard_regs, new_saved_hard_reg,
227         finish_saved_hard_regs, saved_hard_reg_compare_func): New
228         functions.
229         (setup_save_areas): Add code for sharing stack slots.
230         (all_blocks): New variable.
231         (save_call_clobbered_regs): Process pseudo-register too.
232         (mark_set_regs): Process pseudo-register too.
233         (insert_one_insn): Put the insn after bb note in a empty basic
234         block.  Add insn check.
235     
236         * global.c (eliminable_regset): Make it external.
237         (mark_elimination): Use DF_LR_IN for IRA.
238         (pseudo_for_reload_consideration_p): New.
239         (build_insn_chain): Make it external.  Don't ignore spilled
240         pseudos for IRA.  Use pseudo_for_reload_consideration_p.
241         (gate_handle_global_alloc): New function.
242         (pass_global_alloc): Add the gate function.
243
244         * opts.c (decode_options): Set up flag_ira.  Print the warning for
245         -fira.
246         (common_handle_option): Process -fira-algorithm and -fira-verbose.
247
248         * timevar.def (TV_IRA, TV_RELOAD): New passes.
249
250         * regmove.c (regmove_optimize): Don't do replacement of output for
251         IRA.
252
253         * hard-reg-set.h (no_caller_save_reg_set, reg_class_subclasses):
254         New external variable declarations.
255
256         * local-alloc.c (update_equiv_regs): Make it external.  Return
257         true if jump label rebuilding should be done.  Rescan new_insn for
258         notes.
259         (gate_handle_local_alloc): New function.
260         (pass_local_alloc): Add the gate function.
261
262         * alias.c (value_addr_p, stack_addr_p): New functions.
263         (nonoverlapping_memrefs_p): Use them for IRA.
264
265         * common.opt (fira, fira-algorithm, fira-coalesce,
266         fira-move-spills, fira-share-save-slots, fira-share-spill-slots,
267         fira-verbose): New options.
268
269         * regclass.c (reg_class_subclasses, contains_reg_of_mode,
270         move_cost, may_move_in_cost, may_move_out_cost): Make the
271         variables external.
272         (move_table): Remove typedef.
273         (init_move_cost): Make it external.
274         (allocate_reg_info, resize_reg_info, setup_reg_classes): New
275         functions.
276
277         * rtl.h (init_move_cost, allocate_reg_info, resize_reg_info,
278         setup_reg_classes): New function prototypes.
279         (eliminable_regset): New external variable declaration.
280         (build_insn_chain, update_equiv_regs): New function prototypes.
281     
282         * Makefile.in (IRA_INT_H): New definition.
283         (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
284         ira-conflicts.o, ira-color.o, ira-emit.o, and ira-lives.o.
285         (reload1.o, toplev.o): Add dependence on ira.h.
286         (cfgloopanal.o): Add PARAMS_H.
287         (caller-save.o): Add dependence on output.h and ira.h.
288         (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
289         ira-emit.o, ira-lives.o): New entries.
290
291         * passes.c (pass_ira): New pass.
292
293         * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
294
295         * reload1.c (ira.h): Include the header.
296         (changed_allocation_pseudos): New bitmap.
297         (init_reload): Initiate the bitmap.
298         (compute_use_by_pseudos): Permits spilled registers in FROM.
299         (temp_pseudo_reg_arr): New variable.
300         (reload): Allocate and free temp_pseudo_reg_arr.  Sort pseudos for
301         IRA.  Call alter_reg with the additional parameter.  Don't clear
302         spilled_pseudos for IRA.  Restore original insn chain for IRA.
303         Clear changed_allocation_pseudos at the end of reload.
304         (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
305         (hard_regno_to_pseudo_regno): New variable.
306         (count_pseudo): Check spilled pseudos.  Set up
307         hard_regno_to_pseudo_regno.
308         (count_spilled_pseudo): Check spilled pseudos. Update
309         hard_regno_to_pseudo_regno.
310         (find_reg): Use better_spill_reload_regno_p.  Check
311         hard_regno_to_pseudo_regno.
312         (alter_reg): Set up spilled_pseudos.  Add a new parameter.  Add
313         code for IRA.
314         (eliminate_regs_1): Use additional parameter for alter_reg.
315         (finish_spills): Set up pseudo_previous_regs only for spilled
316         pseudos.  Call reassign_pseudos once for all spilled pseudos, pass
317         more arguments.  Don't clear live_throughout and dead_or_set for
318         spilled pseudos.  Use additional parameter for alter_reg.  Call
319         mark_allocation_change.  Set up changed_allocation_pseudos.
320         Remove sanity check.
321         (emit_input_reload_insns, delete_output_reload): Use additional
322         parameter for alter_reg.  Call mark_allocation_change.
323         (substitute, gen_reload_chain_without_interm_reg_p): New
324         functions.
325         (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
326     
327         * testsuite/gcc.dg/20080410-1.c: New file.
328         
329         * config/s390/s390.h (IRA_COVER_CLASSES,
330         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Define.
331
332         * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
333
334         * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
335
336         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
337
338         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
339
340         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
341     
342         * config/alpha/alpha.h (IRA_COVER_CLASSES): Ditto.
343     
344         2008-08-24  Jeff Law  <law@redhat.com>
345         * ira.c (setup_reg_class_intersect_union): Prefer smallest class
346         when ignoring unavailable registers.
347
348         2008-08-24  Jeff Law  <law@redhat.com>
349         * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
350         FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
351         * ira.c (setup_eliminable_regset): Check stack_realign_needed.
352         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): New macro.
353
354         2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
355         * ira-build.c (allocno_range_compare_func): Stabilize sort.
356
357         2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
358         * config/avr/avr.h (IRA_COVER_CLASSES): New macro.
359         * reload1.c (find_reg): Process registers in register allocation order.
360
361         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
362         * toplev.c (backend_init_target): Move ira_init call from
363         here...
364         (lang_dependent_init_target): ...to here.
365
366         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
367         * ira.c (setup_class_subset_and_memory_move_costs): Don't
368         calculate memory move costs for NO_REGS.
369
370         2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
371         * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
372         STACK_REGS is defined.
373
374         2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
375         * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
376
377         2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
378         * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
379
380         2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
381         * config/sh/sh.h (IRA_COVER_CLASSES): Define.
382         * config/sh/sh.md (movsicc_true+3): Check if emit returns a
383         barrier.
384
385 2008-08-26  Victor Kaplansky  <victork@il.ibm.com>
386             Dorit Nuzman  <dorit@il.ibm.com>
387
388         * gcc/config/spu/spu.md (vec_extract_evenv4si,
389         vec_extract_evenv4sf, vec_extract_evenv8hi,
390         vec_extract_evenv16qi, vec_extract_oddv4si,
391         vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
392         vec_interleave_highv4sf, vec_interleave_lowv4sf,
393         vec_interleave_highv4si, vec_interleave_lowv4si,
394         vec_interleave_highv8hi, vec_interleave_lowv8hi,
395         vec_interleave_highv16qi, vec_interleave_lowv16qi,
396         vec_pack_trunc_v8hi, vec_pack_trunc_v4si): Implement.S
397
398 2008-08-25  Janis Johnson  <janis187@us.ibm.com>
399
400         PR target/36756
401         * config/rs6000/rs6000.c (optimization_options): Don't default to
402         section anchors without toplevel reorder.
403
404 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
405
406         * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
407         (mfc_end_critical_section): Likewise.
408
409 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
410
411         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
412         all type qualifiers from element type to vector type.
413
414 2008-08-25  David Daney  <ddaney@avtrex.com>
415
416         * config/mips/mips.md (immediate_insn): Move up in file, fix
417         comment typo, reformat.
418         (fetchop_bit, atomic_hiqi_op memory_barrier,
419         sync_compare_and_swap<mode>, compare_and_swap_12, sync_add<mode>,
420         sync_<optab><mode>, sync_<optab>_12, sync_old_<optab><mode>,
421         sync_old_<optab>_12, sync_new_<optab><mode>, sync_new_<optab>_12,
422         sync_nand<mode>, sync_nand_12, sync_old_nand<mode>,
423         sync_old_nand_12, sync_new_nand<mode>, sync_new_nand_12,
424         sync_sub<mode>, sync_old_add<mode>, sync_old_sub<mode>,
425         sync_new_add<mode>, sync_new_sub<mode>, sync_<optab><mode>,
426         sync_old_<optab><mode>, sync_new_<optab><mode>, sync_nand<mode>,
427         sync_old_nand<mode>, sync_new_nand<mode>,
428         sync_lock_test_and_set<mode>, sync_lock_test_and_set<mode>,
429         test_and_set_12): Moved to sync.md.
430         (sync.md): Include.
431         * config/mips/sync.md: New file.
432
433 2008-08-25  Richard Henderson  <rth@redhat.com>
434
435         * dwarf2out.c (def_cfa_1): Don't scale by DWARF_CIE_DATA_ALIGNMENT.
436         (regsave): Likewise.
437         (lookup_cfa_1): Don't rescale by DWARF_CIE_DATA_ALIGNMENT.
438         (output_cfi_directive): Likewise.
439         (div_data_align): New.
440         (output_cfi): Use it.
441
442 2008-08-24  Adam Nemet  <anemet@caviumnetworks.com>
443
444         * config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
445         * config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
446         (TARGET_OCTEON): New macro.
447         (TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
448         (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
449         (ISA_HAS_POP): New macro.
450         * config/mips/driver-native.c (host_detect_local_cpu): Handle
451         Octeon.
452         * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
453         Handle Octeon.
454         * config/mips/mips.md (cpu): Add octeon.
455         (type): Add pop attribute value.
456         (popcount<mode>2): New pattern.
457         * doc/invoke.texi (-march=@var{arch}): Add octeon.
458
459 2008-08-24  Jan Hubicka  <jh@suse.cz>
460
461         * doc/invoke.texi (-fipa-cp-clone): New option.
462         (-fipa-cp): Update docs.
463         (--param ipcp-unit-growth):New.
464         * ipa-cp.c: Include fibheap.h, params.h
465         (ipcp_initialize_node_lattices): When not cloning, all externally
466         visible functions are bottom.
467         (ipcp_need_redirect_p): Accept clones.
468         (ipcp_insert_stage): Use cost driven heuristics.
469         (max_count, dead_nodes): New static vars.
470         (ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
471         ipcp_const_param_count): New functions.
472         * common.opt (ipa-cp-clone): New command line option.
473         * params.def (ipcp-unit-growth): New.
474
475 2008-08-24  Jan Hubicka  <jh@suse.cz>
476
477         * tree-inline.c (tree_function_versioning): Look harder
478         for referenced vars.
479
480 2008-08-24  Razya Ladelsky  <razya@il.ibm.com>
481
482         PR tree-optimization/37185
483         * matrix-reorg.c (transform_access_sites): Update changed stmt.
484
485 2008-08-23  Jan Hubicka  <jh@suse.cz>
486
487         * ipa-cp.c (ipcp_analyze_node): New function.
488         (ipcp_update_cloned_node): Use it.
489         (ipcp_init_stage): Likewise.
490         * ipa-inline.c (function_insertion_hook_holder): New static var.
491         (analyze_function): Break out from ....
492         (inline_generate_summary): Here; register insertion hook.
493         (cgraph_decide_inlining): Remove hook.
494         (add_new_function): New function.
495
496 2008-08-23  Jan Hubicka  <jh@suse.cz>
497
498         * opts.c (decode_options): Revert accidental change enabling ipa-cp.
499
500 2008-08-23  Jan Hubicka  <jh@suse.cz>
501
502         * ipa-cp.c (constant_val_insert): Remove.
503         (ipcp_propagate_one_const): Remove.
504         (ipcp_create_replace_map): Always insert replacements to the map.
505         (ipcp_insert_stage): Do not try to insert statements by hand.
506         * tree-inline.c (insert_init_stmt): Break out from ...
507         (setup_one_parameter): ... here; allow NULL BB pointer.
508         (tree_function_versioning): Use setup_one_parameter to process
509         replacement map.
510
511 2008-08-23  Jan Hubicka  <jh@suse.cz>
512
513         * tree.c (decl_address_ip_invariant_p): New function.
514         * tree.h (decl_address_ip_invariant_p): Declare.
515         * gimple.c (strip_invariant_refs): Break out from ...
516         (is_gimple_invariant_address): ... here
517         (is_gimple_ip_invariant_address): New function.
518         (is_gimple_ip_invariant): New function.
519         * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
520         Declare.
521
522         * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
523         (ipcp_lat_is_insertable): All constants are insertable.
524         (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
525         IPA_CONST_VALUE_REF.
526         (ipcp_initialize_node_lattices): Propagate all types of operands.
527         (build_const_val): Do not handle IPA_CONST_VALUE_REF.
528         (ipcp_create_replace_map): Reformat.
529         (ipcp_need_redirect_p): Simplify.
530         (ipcp_insert_stage): Check that argument is used before clonning.
531         * ipa-prop.c (ipa_print_node_jump_functions): Do not handle IPA_CONST_REF.
532         (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
533         (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
534         (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
535         * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
536         (jump_func_type): Remove IPA_CONST_VALUE_REF.
537         * tree-inline.c (tree_function_versioning): Add variables referenced by
538         replacing trees.
539
540 2008-08-23  Jan Hubicka  <jh@suse.cz>
541
542         PR target/37094
543         * i386.c (standard_80387_constant_p): Use optimize_size.
544
545 2008-08-23  Ira Rosen  <irar@il.ibm.com>
546
547         PR tree-optimization/37161
548         * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
549         * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
550         (vect_determine_vectorization_factor): Move the scalar type
551         retrieval to vect_get_smallest_scalar_type.
552         (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
553         scalar type. Remove redundant computation.
554         * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
555         (vect_get_slp_defs): Take the type of RHS into account if
556         necessary by calling vect_get_smallest_scalar_type. Call
557         vect_get_constant_vectors with additional argument.
558
559 2008-08-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
560
561         PR 35648
562         * doc/invoke.texi (Wwrite-strings): Clarify description.
563         
564 2008-08-23  Ira Rosen  <irar@il.ibm.com>
565
566         PR tree-optimization/37174
567         * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
568         def stmt is a part of the loop before accessing its stmt_vec_info.
569
570 2008-08-22  Anatoly Sokolov  <aesok@post.ru>
571
572         PR target/11259
573         * config/avr/avr.md (UNSPEC_SWAP): New constants.
574         (*swap): New insn pattern.
575         (*ashlqi3): Rename from ashlqi3 insn pattern.
576         (ashlqi3): New expanders.
577         (*lshrqi3): Rename from lshrqi3 insn pattern.
578         (lshrqi3): New expanders.       
579         (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
580         lshrqi3_const5, lshrqi3_const6): New splitters.
581         (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
582         lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
583         peephole2 patterns.
584
585 2008-08-22  Richard Guenther  <rguenther@suse.de>
586
587         PR tree-optimization/37078
588         * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
589         [+INF, +INF] ranges.
590
591 2008-08-22  Richard Guenther  <rguenther@suse.de>
592
593         PR tree-optimization/37143
594         * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
595         a conversion statement instead of a copy.
596
597 2008-08-22  Uros Bizjak  <ubizjak@gmail.com>
598
599         PR target/37184
600         * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
601         CCCmode, CCOmode and CCSmode destination modes.
602
603         PR target/37191
604         * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
605         from different units in a single alternative.
606         (*vec_extractv2sf_1): Ditto.
607         (*vec_extractv2si_0): Ditto.
608         (*vec_extractv2si_1): Ditto.
609         * config/i386/sse.md (sse2_storehpd): Ditto.
610         (sse2_storelpd): Ditto.
611         (sse2_loadhpd): Ditto.
612         (sse2_loadlpd): Ditto.
613
614         PR target/37197
615         * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
616         (popcountsi2): Ditto.
617         (clzdi2_abm): Ditto.
618         (popcountdi2): Ditto.
619         (clzhi2_abm): Ditto.
620         (popcounthi2): Ditto.
621
622 2008-08-22  Richard Guenther  <rguenther@suse.de>
623
624         PR middle-end/36548
625         PR middle-end/37125
626         * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
627         if the multiplication does not overflow.
628
629 2008-08-21  Nathan Sidwell  <nathan@codesourcery.com>
630
631         * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
632
633 2008-08-21  Richard Henderson  <rth@redhat.com>
634
635         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
636         spurrious comma from test.
637         * configure: Rebuild.
638
639 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
640
641         PR 30457
642         * builtins.c (fold_builtin_next_arg): Add warning about undefined
643         behaviour.
644         
645 2008-08-21  Aldy Hernandez  <aldyh@redhat.com>
646
647         * c-tree.h (grokfield): New argument.
648         * c-decl.c (grokfield): Handle new location argument.
649         * c-parser.c (c_parser_struct_declaration): Pass location to
650         grokfield.
651
652 2008-08-21  Richard Guenther  <rguenther@suse.de>
653
654         * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
655
656 2008-08-21  Jan Hubicka  <jh@suse.cz>
657
658         * cgraph.c (first_cgraph_function_insertion_hook): New variable.
659         (cgraph_add_function_insertion_hook,
660         cgraph_remove_function_insertion_hook,
661         cgraph_call_function_insertion_hooks): New functions.
662         * cgraph.h (cgraph_add_function_insertion_hook,
663         cgraph_remove_function_insertion_hook,
664         cgraph_call_function_insertion_hooks): Declare.
665         * ipa-reference.c (function_insertion_hook_holder): New variable.
666         (check_operand, look_for_address_of): When checking late, do not care
667         about module bitmaps.
668         (add_new_function): New function.
669         (generate_summary): Register hooks; zero module bitmaps.
670         (propagate): Unregister hooks.
671         * ipa-pure-const.c (function_insertion_hook_holder): New variable.
672         (add_new_function): New function.
673         (generate_summary): Register hook.
674         (propagate): Remove hook.
675
676         * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
677
678         * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
679         * ipa-cp.c (ipcp_update_cloned_node): New function.
680         (build_const_val): Handle functions correctly; bring type logic
681         into sync with tree-inline.c
682         (ipcp_init_stage):  Take care of computing stuff needed by
683         indirect inlining; update clones.
684         (ipcp_generate_summary): Break out of ipcp_driver.
685         (ipcp_driver): Do only execution and transformation.
686         (pass_ipa_cp): Make IPA_PASS.
687         * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
688         offset to address.
689         * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
690         ipcp, some info is already available.
691         * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
692         * tree-inline.c (remap_ssa_name): Unshare expression.
693
694 2008-08-21  Richard Guenther  <rguenther@suse.de>
695
696         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
697         a PHI ask VN if it is already available.
698         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
699         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
700
701 2008-08-21  Richard Guenther  <rguenther@suse.de>
702
703         PR middle-end/36817
704         * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
705         makes sure to produce a result of the correct type.
706
707 2008-08-21  Jan Hubicka  <jh@suse.cz>
708         Backport from LTO branch:
709
710         2008-05-05  Kenneth Zadeck <zadeck@naturalbridge.com>
711                     Jan Hubicka  <jh@suse.cz>
712         
713         * ipa-pure-const.c
714         (init_state, finish_state, set_function_state, generate_summary):
715         New functions.
716         (scan_stmt): Renamed from scan_function.  Changed to keep state in
717         local static vars rather than cgraph aux field.
718         (propagate): Renamed from static_execute. Changed to keep state in
719         local static vars rather than cgraph aux field.
720         (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
721         * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
722
723         2008-07-15  Kenneth Zadeck <zadeck@naturalbridge.com>
724
725         * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
726         * ipa-reference.c (init_function_info, generate_summary, 
727         propagate): New functions.
728         (analyze_function):  Call init_function_info.
729         (static_execute): Stripped into generate_summary and propagate.
730         (pass_ipa_reference): Made into ipa_opt_pass.
731
732 2008-08-21  Richard Guenther  <rguenther@suse.de>
733
734         PR tree-optimization/37181
735         * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
736         folding result.
737         (extract_range_from_unary_expr): Likewise.
738
739 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
740
741         * diagnostic.c (pedwarn_at): Rename as pedwarn.
742         (pedwarn): Delete.
743         * toplev.h (pedwarn_at): Likewise.
744         * builtins.c: Update all calls to pedwarn.
745         * c-lex.c: Likewise.
746         * toplev.c: Likewise.
747         * c-tree.h: Likewise.
748         * c-decl.c: Likewise.
749         * c-errors.c: Likewise.
750         * c-typeck.c: Likewise.
751         * c-common.c: Likewise.
752         * c-parser.c: Likewise.
753
754 2008-08-20  Joseph Myers  <joseph@codesourcery.com>
755
756         PR target/31070
757         * config/sparc/sparc.c (function_arg_slotno): Handle structure
758         with MODE_VECTOR_INT mode.
759
760 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
761
762         PR middle-end/179
763         * tree-ssa.c (warn_uninit): Do not warn for variables that can be
764         initialized outside the current module.
765         (warn_uninitialized_var): Ignore left-hand side when walking the
766         trees. Ignore address expressions. Examine VUSE operands in gimple
767         statements with a variable declaration on the right-hand side.
768
769 2008-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
770
771         PR bootstrap/37155
772         * rtlanal.c (subreg_offset_representable_p): Revert last change.
773
774 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
775
776         PR 35701
777         * c-common.c (conversion_warning): Do not warn if applying bit-and
778         operator to unsigned constant that fits in the target type.
779
780 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
781
782         PR c++/35602
783         * c-common.c (conversion_warning): Do not warn for artificial
784         expressions.
785
786 2008-08-20  Richard Guenther  <rguenther@suse.de>
787
788         * tree-vrp.c (op_with_constant_singleton_value_range): New function.
789         (extract_range_from_binary_expr): Fall back to constant propagation.
790         (extract_range_from_unary_expr): Likewise.
791
792 2008-08-20  Richard Guenther  <rguenther@suse.de>
793
794         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
795         with TREE_THIS_VOLATILE on shared nodes.
796         (fold_stmt_r): Likewise.
797
798 2008-08-20  Jakub Jelinek  <jakub@redhat.com>
799
800         PR c/37171
801         * c-parser.c (c_parser_attributes): For keywords use canonical
802         spelling for attr_name.
803
804 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
805
806         * value-prof.c (check_counter): Revert wrong call to error.
807         
808 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
809
810         * profile.c: Update calls to inform.
811         * value-prof.c: Update calls to inform.
812         
813 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
814
815         * diagnostic.c (inform): Add an explicit location_t parameter.
816         * toplev.h (inform): Update declaration.
817         * builtins.c: Update all calls to inform.
818         * c-common.c: Likewise.
819         * c-decl.c: Likewise.
820         * c-opts.c: Likewise.
821         * c-pch.c: Likewise.
822         * c-pragma.c: Likewise.
823         * c-typeck.c: Likewise.
824         * coverage.c: Likewise.
825         * opts.c: Likewise.
826         * toplev.c: Likewise.
827         * tree-cfg.c: Likewise.
828         * tree-ssa.c: Likewise.
829
830 2008-08-20  H.J. Lu  <hongjiu.lu@intel.com>
831
832         PR target/37169
833         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
834         V2DI mode, for SSE4.1, use movq instead of vector set if the
835         second element is zero and inter-unit moves are OK.
836
837 2008-08-20  Richard Guenther  <rguenther@suse.de>
838
839         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
840         properly handle conversion/copy chains after tuplification.
841
842 2008-08-20  Richard Guenther  <rguenther@suse.de>
843
844         * passes.c (init_optimization_passes): Move the second
845         forwprop pass before alias computation.  Remove the second
846         DCE pass.  Remove the first dominator and phi copy/const
847         prop passes.
848
849 2008-08-20  Nick Clifton  <nickc@redhat.com>
850
851         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
852         support of this feature.  Do not assume that a sufficiently new
853         assembler will support the feature regardless of the target type.
854         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
855         * configure: Regenerate.
856
857 2008-08-20  Richard Guenther  <rguenther@suse.de>
858
859         * tree-vrp.c (found_in_subgraph): Remove.
860         (live): New global static.
861         (live_on_edge): New function.
862         (blocks_visited): Remove.
863         (register_edge_assert_for_2): Use live_on_edge.
864         (find_conditional_asserts): Remove code dealing with
865         found_in_subgraph.  Do not walk the CFG.
866         (find_switch_asserts): Likewise.
867         (find_assert_locations_1): Renamed from find_assert_locations.
868         Move finding assert locations for conditional and switch
869         statements first.  Update live bitmap.  Do not walk the CFG.
870         (find_assert_locations): New function.
871         (insert_range_assertions): Remove entry of CFG walk.
872         Adjust call to find_assert_locations.
873         * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
874         that only can appear because of fake exit edges but assert we
875         never try to insert on those.
876         (fini_pre): Do not remove fake exit edges here...
877         (execute_pre): ...but here, before committing edge inserts.
878
879 2008-08-19  Richard Guenther  <rguenther@suse.de>
880
881         * passes.c (init_optimization_passes): Exchange store-ccp
882         with a ccp pass.
883
884 2008-08-19  Rafael Espindola  <espindola@google.com>
885
886         * varasm.c (weak_decls): Move earlier in the file.
887         (assemble_external): Add weak decls to the weak_decls list.
888         (declare_weak): Don't add decls to the weak_decls list.
889
890 2008-08-19  H.J. Lu  <hongjiu.lu@intel.com>
891
892         PR target/37157
893         * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
894         before (sse2_shufpd_<mode>).
895
896 2008-08-19  Jakub Jelinek  <jakub@redhat.com>
897
898         PR debug/37156
899         * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
900         * tree.c (block_nonartificial_location): Likewise.
901
902 2008-08-19  Richard Guenther  <rguenther@suse.de>
903
904         PR tree-optimization/35972
905         PR tree-optimization/23094
906         * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
907         parameter.
908         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
909         handle MISALIGNED_INDIRECT_REF.
910         (get_ref_from_reference_ops): New helper.
911         (vn_reference_lookup_pieces): Walk the use-def chain using the
912         alias-oracle if requested.
913         * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
914         walking the use-def chain.
915         (compute_avail): But not here.
916         (create_component_ref_by_pieces_1): Properly handle
917         MISALIGNED_INDIRECT_REF.
918         (do_regular_insertion): Handle fully redundant
919         expressions after PHI-translation also for SSA_NAME values, not
920         only constants.  Correctly use edoubleprime for that.
921
922 2008-08-19  Ira Rosen  <irar@il.ibm.com>
923
924         * tree-vectorizer.c (supportable_widening_operation): Support
925         multi-step conversion, return the number of steps in such conversion
926         and the required intermediate types.
927         (supportable_narrowing_operation): Likewise.
928         * tree-vectorizer.h (vect_pow2): New function.
929         (supportable_widening_operation): Change argument types.
930         (supportable_narrowing_operation): Likewise.
931         (vectorizable_type_promotion): Add an argument.
932         (vectorizable_type_demotion): Likewise.
933         * tree-vect-analyze.c (vect_analyze_operations): Call 
934         vectorizable_type_promotion and vectorizable_type_demotion with
935         additional argument.
936         (vect_get_and_check_slp_defs): Detect patterns.
937         (vect_build_slp_tree): Add an argument, don't fail in case of multiple
938         types. 
939         (vect_analyze_slp_instance): Don't fail in case of multiple types. Call
940         vect_build_slp_tree with correct arguments. Calculate unrolling factor
941         according to the smallest type in the loop.
942         (vect_detect_hybrid_slp_stmts): Include statements from patterns.
943         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call 
944         supportable_widening_operation with correct arguments. 
945         * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector 
946         operands lists according to the number of vector statements in left
947         or right node, if exists.
948         (vect_gen_widened_results_half): Remove unused argument.
949         (vectorizable_conversion): Call supportable_widening_operation, 
950         supportable_narrowing_operation, and vect_gen_widened_results_half
951         with correct arguments. 
952         (vectorizable_assignment): Change documentation, support multiple
953         types in SLP. 
954         (vectorizable_operation): Likewise.
955         (vect_get_loop_based_defs): New function.
956         (vect_create_vectorized_demotion_stmts): Likewise.
957         (vectorizable_type_demotion): Support loop-aware SLP and general
958         multi-step conversion. Call vect_get_loop_based_defs and
959         vect_create_vectorized_demotion_stmts for transformation.
960         (vect_create_vectorized_promotion_stmts): New function.
961         (vectorizable_type_promotion): Support loop-aware SLP and general
962         multi-step conversion. Call vect_create_vectorized_promotion_stmts
963         for transformation.     
964         (vectorizable_store): Change documentation, support multiple
965         types in SLP. 
966         (vectorizable_load): Likewise.
967         (vect_transform_stmt): Pass SLP_NODE to 
968         vectorizable_type_promotion and vectorizable_type_demotion.
969         (vect_schedule_slp_instance): Move here the calculation of number
970         of vectorized statements for each node from...
971         (vect_schedule_slp): ... here.
972         (vect_transform_loop): Call vect_schedule_slp without the last
973         argument.
974
975 2008-08-19  Dorit Nuzman  <dorit@il.ibm.com>
976
977         PR bootstrap/37152
978         * tree-vect-transform.c (vect_create_epilog_for_reduction): Change = 
979         to == in assert statement.
980         (vectorizable_reduction): Fix typo.
981
982 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
983
984         PR bootstrap/37153
985         * value-prof.c (check_counter): Dereference pointer to overall
986         count when printing it.
987
988 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
989
990         * profile.h: Really add it.
991
992 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
993
994         * mcf.c: Really add it.
995
996 2008-08-18  Paul Yuan  <yingbo.com@gmail.com>
997             Vinodha Ramasamy  <vinodha@google.com>
998
999         * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
1000         count_scale.
1001         * value-prof.c (check_counter): Fix the counter if
1002         flag_profile_correction is true.
1003         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
1004         tree_mod_subtract_transform):
1005         Follow check_counter parameter change.
1006         * common.opt (fprofile-correction): New option.
1007         * mcf.c: New file.
1008         * profile.h: Likewise.
1009         * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
1010         (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
1011         is_inconsistent, set_bb_counts, read_profile_edge_counts): New
1012         functions.
1013         (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
1014         flag_profile_correction is set.
1015
1016 2008-08-18  Richard Sandiford  <rdsandiford@googlemail.com>
1017
1018         * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
1019
1020 2008-08-18  Tomas Bily  <tbily@suse.cz>
1021
1022         * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
1023         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
1024         CONVERT_EXPR_P.
1025         * tree-data-ref.c (split_constant_offset_1): Likewise.
1026         * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
1027         * tree-sra.c (sra_walk_expr): Likewise.
1028         * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
1029         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
1030         * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
1031         * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
1032         Likewise.
1033         * gimple.c (gimple_assign_unary_nop_p): Likewise.
1034         * tree-vect-transform.c (vectorizable_type_demotion)
1035         (vectorizable_type_promotion): Likewise.
1036         * tree-inline.c (expand_call_inline): 
1037         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
1038         (forward_propagate_addr_expr_1, forward_propagate_comparison)
1039         (tree_ssa_forward_propagate_single_use_vars): Likewise.
1040         * expr.c (expand_expr_real_1): Likewise.
1041         * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
1042         (gimple_assign_unary_useless_conversion_p): Likewise.
1043         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
1044         * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
1045         * fold-const.c (fold_unary): Likewise.
1046         * tree.h (CONVERT_EXPR_P): Likewise.
1047         * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
1048         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
1049         * tree-vrp.c: 
1050         (register_edge_assert_for_2, extract_range_from_unary_expr)
1051         (register_edge_assert_for_1): Likewise.
1052         
1053 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1054
1055         * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
1056         dconst_third_ptr, dconst_sqrt2_ptr): Declare.
1057         (enum real_value_const): Delete.
1058         (get_real_const): Delete.
1059         * real.c (get_real_const): Delete.
1060         (dconst_e_ptr): Define.
1061         (dconst_third_ptr): Define.
1062         (dconst_sqrt2_ptr): Define.
1063         * builtins.c: Update all callers.
1064
1065 2008-08-18  Richard Guenther  <rguenther@suse.de>
1066
1067         * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
1068         statement iterator after statement removal.
1069
1070 2008-08-18  Andreas Tobler  <a.tobler@schweiz.org>
1071
1072         * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
1073         (detect_processor_freebsd): Likewise.
1074         (host_detect_local_cpu): Call newly added functions for FreeBSD.
1075
1076 2008-08-18  Richard Guenther  <rguenther@suse.de>
1077
1078         * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
1079         and loads have the correct types.
1080
1081 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1082
1083         PR cpp/7263
1084         * c-opts.c (cpp_opts): Remove static.
1085         * c-parser.c (cpp_opts): Declare it extern.
1086         (disable_extension_diagnostics): Handle cpp options.
1087         (enable_extension_diagnostics): Likewise.
1088
1089 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1090
1091         * diagnostics.c (permerror_at): Rename as permerror.
1092         (permerror): Delete.
1093         * toplev.h: Likewise.
1094
1095 2008-08-18  Richard Guenther  <rguenther@suse.de>
1096
1097         * passes.c (init_optimization_passes): Remove cleanup_cfg1,
1098         sdse1 and addressables2 passes.  Replace dce1 with cddce1.
1099         Move call_cdce before build_alias.  Move copyrename2,
1100         cunrolli and ccp2 beafore build_alias.  Re-add addressable2
1101         right after final inlining.
1102         * tree-cfg.c (build_gimple_cfg): Do not dump function here.
1103         (pass_build_cfg): But instead via TODO_dump_func.
1104
1105 2008-08-18  Richard Guenther  <rguenther@suse.de>
1106
1107         * tree-sra.c (generate_element_init_1): Deal with NULL constructor
1108         element index.
1109         (scalarize_init): If we failed to generate some initializers
1110         do not generate zeros for not instantiated members.  Instead
1111         rely on the copy out.
1112         * tree-ssa-operands.c (get_addr_dereference_operands): Warn
1113         about missing flow-sensitive alias info only if we have
1114         aliases computed.
1115
1116 2008-08-17  Nick Clifton  <nickc@redhat.com>
1117
1118         * doc/extend.texi (Function Attributes): Fix typo in description
1119         if hot function attribute.
1120
1121 2008-08-17  Daniel Jacobowitz  <dan@codesourcery.com>
1122             Richard Sandiford  <rdsandiford@googlemail.com>
1123
1124         * doc/install.texi (--with-mips-plt): Document.
1125         * doc/invoke.texi (-mplt, -mno-plt): Document.
1126         * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
1127         and handle ${with_mips_plt}.
1128         * config/mips/mips.opt (mplt): New option.
1129         * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
1130         (TARGET_ABICALLS_PIC2): Likewise.
1131         (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
1132         (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
1133         (ASM_SPEC): Use !mabi=* instead of !mabi*.
1134         (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
1135         to decide whether to output ".option picX" directives.
1136         * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
1137         Pass -call_nonpic rather than -KPIC for -mplt.
1138         (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
1139         on the command line.  Also remove it when -mabi=64 is used without
1140         -msym32.
1141         * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
1142         * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
1143         TARGET_ABICALLS_PIC0.
1144         (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
1145         TARGET_ABICALLS.
1146         (mips16_build_function_stub): Only output ".option pic" directives
1147         and PIC stubs if TARGET_ABICALLS_PIC2.  Call through $25 instead of $1.
1148         (mips16_build_call_stub): Fix comment and remove redundant
1149         ".set at"/"set .noat" directives.
1150         (mips_function_rodata_section): Use the default behaviour for
1151         TARGET_ABSOLUTE_ABICALLS.
1152         (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
1153         (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
1154         (mips_restore_gp): Do nothing if the current function doesn't use
1155         a global pointer.
1156         (mips_expand_prologue): Only save $gp if the current function uses it.
1157         Use a normal move for TARGET_ABICALLS_PIC0.
1158         (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
1159
1160 2008-08-17  Richard Sandiford  <rdsandiford@googlemail.com>
1161
1162         * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
1163         of function when handling GLOBAL_POINTER_REGNUM.
1164
1165 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
1166
1167         PR ada/20548
1168         * common.opt (-fstack-check): Do not declare the variable here.
1169         (-fstack-check=): New option variant.
1170         * doc/invoke.texi (Code Gen Options): Document it.
1171         * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
1172         (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
1173         (STACK_CHECK_STATIC_BUILTIN): New macro.
1174         * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
1175         * opts.c: Include expr.h.
1176         (common_handle_option) <OPT_fold_stack_check_>: New case.
1177         <OPT_fstack_check>: Likewise.
1178         * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
1179         consistently in the test for variable-sized types.  Adjust for
1180         new behaviour of flag_stack_check.
1181         * explow.c: Include except.h.
1182         (allocate_dynamic_stack_space): Do not take into account
1183         STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
1184         * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
1185         for variable-sized parameters.  Treat all parameters whose size is
1186         greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
1187         stack checking is enabled.
1188         * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
1189         size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
1190         if generic stack checking is enabled.
1191         (expand_function_end): Adjust for new behaviour of flag_stack_check.
1192         * reload1.c (reload): Likewise.
1193         * stmt.c (expand_decl): Assert that all automatic variables have
1194         fixed size at this point and remove dead code.
1195         * flags.h (stack_check_type): New enumeration type.
1196         (flag_stack_check): Declare.
1197         * toplev.c (flag_stack_check): New global variable.
1198         * Makefile.in (opts.o): Add dependency on EXPR_H.
1199         (explow.o): Add dependency on except.h.
1200
1201 2008-08-16  Andy Hutchinson  <hutchinsonandy@aim.com>
1202
1203         * config/avr/avr.c (avr_override_options): Reduce value of 
1204         PARAM_INLINE_CALL_COST.
1205
1206 2008-08-15  Eric Botcazou  <ebotcazou@adacore.com>
1207
1208         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
1209         to BLKmode, try to fetch an inner memory reference.  Use 'mode' in
1210         lieu of TYPE_MODE (type) throughout.
1211
1212 2008-08-15  Joseph Myers  <joseph@codesourcery.com>
1213
1214         * config/arm/arm.c (add_minipool_backward_ref): Check for
1215         8-byte-aligned entries in second case of forcing insertion after a
1216         particular entry.  Change third case to avoid inserting
1217         non-8-byte-aligned entries before 8-byte-aligned ones.
1218
1219 2008-08-15  Richard Guenther  <rguenther@suse.de>
1220
1221         * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
1222         strip components for unknown size accesses.
1223
1224 2008-08-15  Wolfgang Gellerich  <gellerich@de.ibm.com>
1225
1226         * config/s390/2097.md New file.
1227         * config/s390/s390.md ("z10prop" attribute): Define none,
1228         z10_super, z10_super_E1, z10_super_A1, z10_super_c,
1229         z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
1230         z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
1231         possible values and apply them to insns as appropriate.
1232         ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
1233         ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
1234         fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
1235         fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible
1236         values.
1237         ("bfp" mode attribute): Removed.  Every occurence replaced
1238         with <mode>.
1239         * config/s390/s390.c (struct "z10_cost"): Updated entries.
1240         * config/s390/2084.md (insn_reservation "x_itof"): Updated
1241           type attribute.
1242
1243 2008-08-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1244
1245         PR c/28152
1246         * c-parser.c (c_lex_one_token): Do not store the canonical spelling
1247         for keywords.
1248         
1249 2008-08-14  Dorit Nuzman  <dorit@il.ibm.com>
1250
1251         * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
1252         additional argument. Support reduction when duplication is needed due
1253         to data-types of different sizes in the loop.
1254         (get_initial_def_for_induction): Fix printout.
1255         (vect_get_vec_def_for_stmt_copy): Support case where the
1256         vec_stmt_for_operand is a phi node.
1257         (vectorizable_reduction): Support reduction when duplication is needed 
1258         due to data-types of different sizes in the loop.
1259         (vectorizable_call): Remove restriction to not vectorize in case we 
1260         have data-types of different sizes in the loop.
1261         (vectorizable_conversion): Likewise.
1262         (vectorizable_operation): Likewise.
1263         (vectorizable_type_demotion): Likewise.
1264         (vectorizable_type_promotion): Likewise.
1265         (vectorizable_induction): Add restriction to not vectorize in case 
1266         we have data-types of different sizes in the loop.
1267
1268 2008-08-14  Christophe Saout  <christophe@saout.de>
1269             Uros Bizjak  <ubizjak@gmail.com>
1270
1271         PR target/37101
1272         * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
1273         (*vec_concatv2di_rex64_sse4_1): Ditto.
1274         (*vec_concatv2di_rex64_sse): Ditto.
1275
1276 2008-08-14  Jakub Jelinek  <jakub@redhat.com>
1277
1278         PR middle-end/37103
1279         * fold-const.c (fold_widened_comparison): Do not allow
1280         sign changes that change the result even if shorter type
1281         is wider than arg1_unw's type.
1282
1283 2008-08-13  Kazu Hirata  <kazu@codesourcery.com>
1284
1285         * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
1286         Skip if the multilib testing specifies -march that does not
1287         agree with the one specified in the testcase.
1288
1289 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
1290
1291         * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
1292         zero extend SImode values being converted to TFmode before passing
1293         to libcalls.
1294
1295 2008-08-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1296
1297         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
1298         __PPU__ when targeting the Cell/B.E. PPU processor.
1299
1300 2008-08-13  Eric Botcazou  <ebotcazou@adacore.com>
1301
1302         * gimple.h (gimple_call_set_chain): Accept SSA variables.
1303         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
1304         Rematerialize the static chain, if any.
1305         * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
1306         static chain.
1307
1308 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
1309
1310         * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
1311         (new_loc_descr): Likewise.
1312         (add_loc_descr): Likewise.
1313         (size_of_loc_descr): Likewise.
1314         (size_of_locs): Likewise.
1315         (output_loc_operands): Likewise.
1316         (output_loc_sequence): Likewise.
1317         (new_reg_loc_descr): New.
1318         (build_cfa_loc): Use it.
1319         (build_cfa_aligned_loc): Likewise.
1320         (one_reg_loc_descriptor): Likewise.
1321         (based_loc_descr): Likewise.
1322
1323 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1324
1325         PR 30551
1326         * doc/invoke.texi (Wmain): Update.
1327         * c-decl.c (start_decl): warn_main is only 0 or 1.
1328         (start_function): Likewise. Fix formatting.
1329         (finish_function): Delete redundant warning.
1330         * c.opt (Wmain): Add Var(warn_main) and Init(-1).
1331         * c-opts (c_common_handle_option): -Wall only has effect if
1332         warn_main is uninitialized. OPT_Wmain is automatically
1333         handled. -pedantic also enables Wmain.
1334         (c_common_post_options): Handle all logic for Wmain here.
1335         * c-common.c (warn_main): Delete.
1336         (check_main_parameter_types): Make pedwarns conditional on
1337         OPT_Wmain.
1338         * c-common.h (warn_main): Delete.
1339
1340 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
1341
1342         PR middle-end/36701
1343         * expr.c (emit_group_store): Allocate stack temp with the
1344         largest alignment when copying from register to stack.
1345
1346 2008-08-13  Richard Guenther  <rguenther@suse.de>
1347
1348         * tree.h (maybe_fold_offset_to_address): Declare.
1349         * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
1350         (ccp_fold): Handle pointer conversions the same as fold_stmt.
1351         Likewise for POINTER_PLUS_EXPR.
1352         (maybe_fold_offset_to_reference): Enable disabled code.
1353         (maybe_fold_offset_to_address): New function.
1354         (fold_stmt_r): Use it.
1355         (fold_gimple_assign): Likewise.
1356         * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
1357         (gimplify_expr): Likewise.
1358
1359 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1360
1361         * toplev.h (pedwarn_at): Fix declaration.
1362         
1363 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
1364
1365         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1366         LINK_SPEC): Use %R in -Y P argument.
1367
1368 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1369
1370         PR c/15236
1371         * diagnostic.c (pedwarn_at): New.
1372         * toplev.h (pedwarn_at): Declare.
1373         * c-tree.h (build_enumerator): Update declaration.
1374         * c-decl.c (finish_enum): Update comment.
1375         (build_enumerator): Take a location parameter. Give a pedwarn but do
1376         not perform any conversion.
1377         * c-parser.c (c_parser_enum_specifier): Set correct location for
1378         enumerator.
1379
1380 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1381
1382         PR 35635
1383         * c-common.c (conversion_warning): Use a switch. Ignore boolean
1384         expressions except for conversions to signed:1 bitfields. Handle
1385         COND_EXPR with constant operands.
1386         
1387 2008-08-13  Richard Guenther  <rguenther@suse.de>
1388
1389         PR tree-optimization/15255
1390         * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
1391         (struct oecount_s): New struct and VEC types.
1392         (cvec): New global.
1393         (oecount_hash): New function.
1394         (oecount_eq): Likewise.
1395         (oecount_cmp): Likewise.
1396         (zero_one_operation): New function.
1397         (build_and_add_sum): Likewise.
1398         (undistribute_ops_list): Perform un-distribution of multiplication
1399         and division on the chain of summands.
1400         (should_break_up_subtract): Also break up subtracts for factors.
1401         (reassociate_bb): Delete dead visited statements.
1402         Call undistribute_ops_list.  Re-sort and optimize if it did something.
1403         * passes.c (init_optimization_passes): Move DSE before
1404         reassociation.
1405         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
1406         PHI nodes.
1407
1408 2008-08-12  Janis Johnson  <janis187@us.ibm.com>
1409
1410         * doc/invoke.texi (-fipa-pta): Say the option is experimental.
1411
1412         * doc/invoke.texi: Revert unintended checkin.
1413
1414 2008-08-12  Nathan Froyd  <froydnj@codesourcery.com>
1415
1416         PR libgomp/26165
1417         * gcc.c (include_spec_function): Tweak call to find_a_file.
1418
1419 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
1420
1421         PR middle-end/37014
1422         * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
1423         and TRUTH_ORIF_EXPR.
1424         * dojump.c (do_jump): Likewise.
1425
1426         PR tree-optimization/37084
1427         * tree-inline.c (copy_bb): Call gimple_regimplify_operands
1428         if id->regimplify, don't assume stmt is a cast assignment.
1429
1430 2008-08-12  Anatoly Sokolov  <aesok@post.ru>
1431
1432         * final.c (final_scan_insn): Use app_enable/app_disable functions.
1433
1434 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1435
1436         PR bootstrap/37097
1437         * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
1438         by last change.
1439
1440 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1441
1442         * defaults.h (TARGET_FLOAT_FORMAT): Remove.
1443         (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
1444
1445         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
1446         * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
1447         * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
1448         * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
1449         * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
1450
1451         * doc/tm.texi (Storage Layout): Remove documentation for
1452         TARGET_FLOAT_FORMAT.
1453
1454         * simplify-rtx.c (simplify_binary_operation_1): Replace
1455         TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
1456
1457 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1458
1459         * real.h (struct real_format): New member has_sign_dependent_rounding.
1460         * real.c (ieee_single_format, mips_single_format, motorola_single_format,
1461         spu_single_format, ieee_double_format, mips_double_format,
1462         motorola_double_format, ieee_extended_motorola_format,
1463         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
1464         ieee_extended_intel_96_round_53_format, ibm_extended_format,
1465         mips_extended_format, ieee_quad_format, mips_quad_format,
1466         vax_f_format, vax_d_format, vax_g_format): Initialize it.
1467         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
1468
1469         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
1470         MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
1471         * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
1472         MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
1473         (ROUND_TOWARDS_ZERO): Likewise.
1474
1475         * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
1476         (FLOAT_MODE_FORMAT): New macro.
1477         (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
1478         (MODE_COMPOSITE_P): ... this new macro.
1479         (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
1480         MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
1481         * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
1482
1483         * flags.h: Include "real.h".
1484
1485         * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
1486         REAL_MODE_FORMAT_COMPOSITE_P.
1487         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
1488
1489         * doc/tm.texi (Storage Layout): Remove documentation of
1490         MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
1491         MODE_HAS_SIGN_DEPENDENT_ROUNDING.  Update documentation of
1492         ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
1493         they only apply to libgcc2.a.
1494
1495 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1496
1497         * config/spu/float_disf.c: New file.
1498         * config/spu/float_unsdisf.c: New file.
1499         * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
1500         (LIB2FUNCS_EXCLUDE): Define.
1501
1502 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1503             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
1504
1505         * real.h (struct real_format): New member round_towards_zero.
1506         * real.c (round_for_format): Respect fmt->round_towards_zero.
1507         (ieee_single_format, mips_single_format, motorola_single_format,
1508         spu_single_format, ieee_double_format, mips_double_format,
1509         motorola_double_format, ieee_extended_motorola_format,
1510         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
1511         ieee_extended_intel_96_round_53_format, ibm_extended_format,
1512         mips_extended_format, ieee_quad_format, mips_quad_format,
1513         vax_f_format, vax_d_format, vax_g_format): Initialize it.
1514         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
1515
1516         * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
1517         real_format to choose rounding mode when calling MPFR functions.
1518         (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
1519         (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
1520
1521         * real.h (real_to_decimal_for_mode): Add prototype.
1522         * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
1523         Respect target rounding mode when generating decimal representation.
1524         (real_to_decimal): New stub for backwards compatibility.
1525         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
1526         real_to_decimal_for_mode instead of real_to_decimal.
1527
1528         * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
1529
1530 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1531             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
1532
1533         * real.c (spu_single_format): New variable.
1534         * real.h (spu_single_format): Declare.
1535
1536         * config/spu/spu.c (spu_override_options): Install SFmode format.
1537         (spu_split_immediate): Use integer mode to operate on pieces of
1538         floating-point values in all cases.
1539
1540         * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
1541         ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
1542         ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
1543
1544 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1545
1546         * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
1547
1548 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1549
1550         * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
1551
1552 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
1553
1554         PR c++/36688
1555         * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
1556         on the VAR_DECL instead of TYPE_READONLY on its type.
1557
1558 2008-08-12  Ira Rosen  <irar@il.ibm.com>
1559
1560         * tree-vectorizer.c: Depend on langhooks.h.
1561         (supportable_widening_operation): Add two arguments. Support double
1562         type conversions.
1563         (supportable_narrowing_operation): Likewise.
1564         * tree-vectorizer.h (supportable_widening_operation): Add two 
1565         arguments.
1566         (supportable_narrowing_operation): Likewise.
1567         * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
1568         supportable_widening_operation with correct arguments.
1569         * tree-vect-transform.c (vectorizable_conversion): Likewise.
1570         (vectorizable_type_demotion): Support double type conversions.
1571         (vectorizable_type_promotion): Likewise.
1572         * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
1573
1574 2008-08-11  Michael Matz  <matz@suse.de>
1575
1576         * i386/i386.c (override_options): Move initialisation from
1577         flag_schedule_insns_after_reload to here from ...
1578         (optimization_options): ... here.
1579
1580 2008-08-11  Jakub Jelinek  <jakub@redhat.com>
1581
1582         PR rtl-optimization/36998
1583         * dwarf2out.c (compute_barrier_args_size_1,
1584         compute_barrier_args_size): Temporarily remove assertions.
1585
1586 2008-08-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1587
1588         PR middle-end/20644
1589         * tree-ssa.c (struct walk_data): Add new flag
1590         warn_possibly_uninitialized.
1591         (warn_uninitialized_var): Use it.
1592         (warn_uninitialized_vars): New.
1593         (execute_early_warn_uninitialized): Call it.
1594         (execute_late_warn_uninitialized): Likewise.
1595
1596 2008-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1597
1598         PR middle-end/36238
1599         * reload1.c (gen_reload): Guard calls to get_secondary_mem
1600         for memory subregs.
1601
1602 2008-08-09  Jan Hubicka  <jh@suse.cz>
1603
1604         PR target/37055
1605         * optabs.c (maybe_emit_unop_insn): Remove produced code if
1606         expansion failed.
1607         (expand_fix): Be prepared for expansion to fail.
1608         (expand_sfix_optab): Remove instructions if expansion failed.
1609
1610 2008-08-09  Anatoly Sokolov  <aesok@post.ru>
1611
1612         * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
1613         avr31 architecture.
1614         * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
1615         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
1616
1617 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
1618
1619         * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
1620         mips/t-libgcc-mips16 to tmake_file.
1621         * config/mips/mips-protos.h (mips_call_type): New enum.
1622         (mips_pic_base_register, mips_got_load): Declare.
1623         (mips_restore_gp): Take an rtx argument.
1624         (mips_use_pic_fn_addr_reg_p): Declare.
1625         (mips_expand_call): Replace the sibcall_p argument with
1626         a mips_call_type argument.  Add a lazy_p parameter.
1627         (mips_split_call): Declare.
1628         * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
1629         (MIPS16_PIC_TEMP): Likewise.
1630         (reg_class): Delete M16_NA_REGS.
1631         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
1632         (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
1633         (mips_split_hi_p): Declare.
1634         * config/mips/mips.c (mips_split_hi_p): New array.
1635         (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
1636         (mips_got_symbol_type_p): New function.
1637         (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
1638         (mips16_stub_function_p): New function.
1639         (mips16_local_function_p): Likewise.
1640         (mips_use_pic_fn_addr_reg_p): Likewise.
1641         (mips_cannot_force_const_mem): Return false for HIGHs.
1642         Extend CONST_INT and symbolic handling to MIPS16, using
1643         mips_symbol_insns to check that the base symbol type is a
1644         legitimate constant.  Reject GOT-based constants if
1645         TARGET_MIPS16_PCREL_LOADS.
1646         (mips_const_insns): Check targetm.cannot_force_const_mem when
1647         decomposing a symbolic base and a large offset.
1648         (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
1649         When calling a function that needs $25 from MIPS16 code,
1650         move the target address into $25 separately and add a USE
1651         to the call insn.
1652         (mips16_gp_pseudo_reg): Insert the initializer immediately
1653         before the first real insn.
1654         (mips_pic_base_register, mips_got_load): New functions.
1655         (mips_split_symbol): Generalize the name of the LO_SUM_OUT
1656         parameter to LOW_OUT.  Say that it can be any valid SET_SRC
1657         when splitting a load-address operation.  Split SYMBOL_GOT_DISP
1658         constants and highs of SYMBOL_GOT_PAGE_OFST constants.
1659         (mips_call_tls_get_addr): Update the call to mips_expand_call,
1660         also passing NULL_RTX rather than const0_rtx as the aux argument.
1661         (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
1662         instead of TARGET_EXPLICIT_RELOCS.
1663         (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
1664         (mips_load_call_address): Replace the sibcall_p argument with
1665         a mips_call_type argument.  Use mips_got_load.
1666         (mips16_local_alias): New structure.
1667         (mips16_local_aliases): New variable.
1668         (mips16_local_aliases_hash): New function.
1669         (mips16_local_aliases_eq): Likewise.
1670         (mips16_local_alias): Likewise.
1671         (mips16_stub_function): Likewise.
1672         (mips16_build_function_stub): Create a local alias for the target
1673         function.  Handle TARGET_ABICALLS.  For PIC abicalls, emit a
1674         .cpload directive and an R_MIPS_NONE relocation for the target
1675         function, then load the alias rather than the function itself.
1676         Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
1677         (mips16_copy_fpr_return_value): Use mips16_stub_function and
1678         mips_expand_call.  Set SYMBOL_REF_BIND_NOW on the symbol.
1679         (mips16_build_call_stub): Replace the FN parameter with an
1680         FN_PTR parameter.  Force the address into a register if it
1681         isn't a call_insn_operand; don't rely on the caller to do this.
1682         If a call to a locally-defined and locally-binding MIPS16
1683         function must be made indirectly, redirect the call to the
1684         function's local alias.  Use mips16_stub_function_p,
1685         mips16_stub_function, mips_expand_call and use_reg.
1686         Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
1687         Use explicit %hi and %lo accesses where possible.
1688         Use MIPS_CALL to generate the correct code form of a
1689         jal instruction.  Add clobbers of $18 instead of uses.
1690         Update the call to mips_emit_call_insn.
1691         (mips_expand_call): Replace the SIBCALL_P argument with a
1692         mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
1693         Take a LAZY_P parameter.  Call mips16_build_call_stub first,
1694         allowing it to modify the call address.  Update the calls to
1695         mips_load_call_address and mips_emit_call_insn.
1696         (mips_split_call): New function.
1697         (mips_init_relocs): Clear mips_split_hi_p.  Only use %gp_rel if
1698         !TARGET_MIPS16.  Split SYMBOL_GOT_DISP, and the high parts of
1699         SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
1700         (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
1701         (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
1702         if TARGET_MIPS16.
1703         (mips_cprestore_slot): New function.
1704         (mips_restore_gp): Take a TEMP parameter.  Handle TARGET_MIPS16
1705         and use mips_cprestore_slot.
1706         (mips_output_function_prologue): Handle TARGET_MIPS16 for
1707         LOADGP_OLDABI.
1708         (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
1709         then use a copygp_mips16 instruction to set up $28.
1710         (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
1711         (mips16_lay_out_constants): Call split_all_insns_noflow.
1712         (mips_reorg_process_insns): Explicitly set all_noreorder_p to
1713         false if TARGET_MIPS16.
1714         (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
1715         (mips_output_mi_thunk): Use mips_got_symbol_type_p.  Use the
1716         mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
1717         (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
1718         MIPS16 code.  Allow MIPS16 o32 PIC.
1719         (mips_override_options): Allow MIPS16 o32 PIC.
1720         * config/mips/mips.md: Lower CONST_GP_P moves into register moves
1721         after reload if TARGET_USE_GOT.
1722         (UNSPEC_COPYGP): New constant.
1723         (length): Use a default length of 8 for MIPS16 GOT loads.
1724         (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
1725         (*got_page<mode>): Check mips_split_hi_p.
1726         (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
1727         (unspec_got<mode>, unspec_call<mode>): New expanders.
1728         (load_got<mode>, load_call<mode>): Remove the length attributes.
1729         Use a got attribute instead of a type attribute.
1730         (copygp_mips16): New insn.
1731         (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
1732         (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
1733         (sibcall, sibcall_value, call, call_value): Update the calls
1734         to mips_expand_call.
1735         (call_internal, call_value_internal): Use mips_split_call.
1736         (call_value_multiple_internal): Likewise.
1737         (call_split): Move after call_internal (the insn it is split from).
1738         (call_internal_direct, call_value_internal_direct): Turn into
1739         define_insn_and_splits.  Split if TARGET_SPLIT_CALLS.
1740         (call_direct_split, call_value_direct_split): New patterns.
1741         * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
1742         and use M16_REGS instead of M16_NA_REGS.
1743         * config/mips/predicates.md (const_call_insn_operand): Replace
1744         the TARGET_ABSOLUTE_ABICALLS-based check with a more general
1745         mips_use_pic_fn_addr_reg_p check.
1746         (move_operand): Reject HIGHs if mips_split_hi_p.
1747         * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
1748         (__mips16_floatunsisf): Inline __mips16_floatsisf.
1749         (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
1750         * config/mips/libgcc-mips16.ver: New file.
1751         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
1752         $(srcdir)/config/mips/libgcc-mips16.ver.
1753
1754 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
1755
1756         * config/mips/mips.c (mips_unspec_address_offset): Move earlier in file.
1757         (mips_unspec_address, mips_unspec_offset_high): Likewise.
1758         (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
1759         (mips16_cfun_returns_in_fpr_p): Likewise.
1760
1761 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
1762
1763         * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
1764         * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
1765         rather than 4 to PC.
1766
1767 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
1768
1769         * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
1770         (FUNCTION_PROFILER): Save the static chain pointer into $2
1771         beforehand and restore it aftewards.
1772         (TRAMPOLINE_TEMPLATE): Adjust accordingly.  Load the target
1773         address directly into $25 and call the function through $25;
1774         do not clobber $3.  Pad the DImode version to cover the space
1775         left by the deleted $25 <- $3 move.
1776         (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
1777         the removal of the $25 <- $3 move.
1778         (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
1779         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
1780
1781 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
1782             Daniel Jacobowitz  <dan@codesourcery.com>
1783
1784         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
1785         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
1786         (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
1787         * config/mips/mips.c (mips_start_function_definition): New function.
1788         (mips_end_function_definition): Likewise.
1789         (mips_output_function_prologue): Use mips_start_function_definition.
1790         (mips_output_function_epilogue): Use mips_end_function_definition.
1791         (build_mips16_function_stub): Use mips_start_function_definition
1792         and mips_end_function_definition.
1793         (build_mips16_call_stub): Likewise.
1794
1795 2008-08-09  Richard Guenther  <rguenther@suse.de>
1796
1797         * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
1798         * gimple.h (gimple_call_fn): Adjust comment.
1799         (gimple_call_set_fndecl): New function.
1800         (gimple_call_fndecl): Adjust for GIMPLE_CALL no
1801         longer having bare FUNCTION_DECL operand.
1802         (gimple_call_return_type): Likewise.
1803         * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
1804
1805         * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
1806         (gimple_mod_pow2): Likewise.
1807         (gimple_mod_subtract): Likewise.
1808         (gimple_ic): Likewise.
1809         (gimple_stringop_fixed_value): Likewise.
1810         (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
1811         longer having bare FUNCTION_DECL operand.
1812         * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
1813         * omp-low.c (optimize_omp_library_calls): Likewise.
1814         * cgraphunit.c (update_call_expr): Likewise.
1815         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
1816         (execute_convert_to_rsqrt): Likewise.
1817         * cfgexpand.c (gimple_to_tree): Simplify.
1818         (release_stmt_tree): Fix for GIMPLE_CALL no longer having
1819         bare FUNCTION_DECL operand.
1820         * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
1821         (convert_gimple_call): Use gimple_call_fndecl.
1822         * c-common.c (c_warn_unused_result): Likewise.
1823
1824 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1825
1826         PR c/17880
1827         * c-typeck.c (digest_init): Call verify_sequence_points from here.
1828         (c_finish_return): Likewise.
1829         (c_start_case): Likewise.
1830         * c-common.c (warn_for_collisions_1): Use explicit location in
1831         warning.
1832         * c-parser.c (c_parser_condition): New. Call
1833         verify_sequence_points.
1834         (c_parser_paren_condition): Call c_parser_condition.
1835         (c_parser_for_statement): Call c_parser_condition.
1836
1837 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1838
1839         PR 36901
1840         * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.  
1841         * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
1842         Moved from diagnostic.h
1843         (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
1844         DK_PERMERROR.
1845         (emit_diagnostic): New.
1846         (warning0, pedwarn0): Delete.
1847         (warning, warning_at, pedwarn, permerror): Return bool.  
1848         * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
1849         Moved to diagnostic.c.
1850         (struct diagnostic_context): Use correct type for
1851         classify_diagnostic.
1852         (diagnostic_report_diagnostic): Update declaration.
1853         (emit_diagnostic): Declare.
1854         * errors.c (warning): Return bool.  
1855         * errors.h (warning): Update declaration.
1856         * toplev.h (warning0, pedwarn0): Delete.
1857         (warning, warning_at, pedwarn, permerror): Return bool.
1858         * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
1859         * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
1860         inform. Update all calls.
1861         (diagnose_mismatched_decls): Check return value of warning/pedwarn
1862         before giving informative note.
1863         (implicit_decl_warning): Likewise.  
1864         * c-typeck.c (build_function_call): Likewise.  
1865         * tree-sssa.c (warn_uninit): Likewise.  
1866         * builtins.c (gimplify_va_arg_expr): Likewise.
1867
1868 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1869
1870         PR 7651
1871         * doc/invoke.texi (-Wextra): Move warning from here...
1872         (-Wuninitialized): ... to here.
1873         
1874 2008-08-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1875
1876         PR 28875
1877         * flags.h (set_Wunused): Delete
1878         * toplev.c (process_options): Handle Wunused flags here.
1879         * opts.c (maybe_warn_unused_parameter): Delete.
1880         (common_handle_option): Replace set_Wunused by warn_unused.
1881         (set_Wextra): Do not handle Wunused-parameter here.
1882         (set_Wunused): Delete.
1883         * c-opts.c (c_common_handle_option): Replace set_Wunused by
1884         warn_unused.
1885         * common.opt (Wunused): Add Var and Init.
1886         (Wunused-function): Likewise.
1887         (Wunused-label): Likewise.
1888         (Wunused-parameter): Likewise.
1889         (Wunused-value): Likewise.
1890         (Wunused-variable): Likewise.
1891         
1892 2008-08-08  Peter Bergner  <bergner@vnet.ibm.com>
1893
1894         * doc/invoke.texi: Add cpu_type power7.
1895         * config.in (HAVE_AS_VSX): New.
1896         * config.gcc: Add cpu_type power7.
1897         * configure.ac (HAVE_AS_VSX): Check for assembler support of the
1898         VSX instructions.
1899         * configure: Regenerate.
1900         * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
1901         power5.
1902         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
1903         (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
1904         (EXTRA_SPECS): Add asm_cpu_power7 spec string.
1905
1906 2008-08-08  Dorit Nuzman  <dorit@il.ibm.com>
1907
1908         * tree-vect-transform.c (vectorizable_conversion): Pass the integral
1909         type to vectorize.builtin_conversion.
1910         (vectorizable_conversion): Likewise.
1911         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
1912         integral type as input.
1913         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
1914         FIX_TRUNC_EXPR.
1915         (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
1916         and ALTIVEC_BUILTIN_VCTSXS.
1917         (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
1918         formatting. 
1919
1920 2008-08-08  Richard Guenther  <rguenther@suse.de>
1921
1922         * tree-ssa-ccp.c (likely_value): Calls are not all varying.
1923         (surely_varying_stmt_p): Calls are varying only if they are
1924         non-builtin and not indirect or have no result.
1925         (ccp_fold): Re-instantiate code before the tuples merge.
1926
1927 2008-08-08  Richard Guenther  <rguenther@suse.de>
1928
1929         PR tree-optimization/37056
1930         * gimple.h (gimple_assign_rhs_class): New helper function.
1931         * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
1932         unary operations properly.
1933
1934 2008-08-07  Jan Hubicka  <jh@suse.cz>
1935
1936         * i386.h (ix86_size_cost): Declare.
1937         (ix86_cur_cost): New function macro.
1938         * i386.md (peepholes expanding size and splitters): Predicate by
1939         optimize_insn_for_speed_p.
1940         (peepholes reduce size and splitters): Predicate by
1941         optimize_insn_for_size_p.
1942         * i386.c (ix86_size_cost): Rename from ...
1943         (size_cost): This one.
1944         (override_options): Update.
1945         (decide_alg): Likewise.
1946         (ix86_expand_clear): Use RTL profile.
1947         (ix86_pad_returns): Use RTL profile.
1948
1949 2008-08-07  Jan Hubicka  <jh@suse.cz>
1950
1951         * recog.c (split_all_insns): Set RTL profile
1952         (peephole2_optimize): Likewise.
1953         * function.c (thread_prologue_and_epilogue_insns): Likewise.
1954         * combine.c (combine_instructions): Likewise.
1955
1956 2008-08-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1957
1958         * c-common.c (c_common_reswords): Also warn about keyword "bool".
1959
1960 2008-08-07  Bob Wilson  <bob.wilson@acm.org>
1961         
1962         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
1963         value in a6 after the set_frame_ptr insn.
1964         
1965 2008-08-07  Richard Henderson  <rth@redhat.com>
1966
1967         PR debug/37033
1968         * gcc.c (cpp_options): Pass along -g*.
1969
1970 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
1971
1972         * config/arm/arm.c (output_move_neon): Update comment describing
1973         big-endian vector layout.
1974         (arm_assemble_integer): Do not handle big-endian NEON vectors
1975         specially.
1976         * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
1977         neon_vget_lane<mode>_sext_internal,
1978         neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
1979         element indices for big-endian.
1980
1981 2008-08-07  Richard Henderson  <rth@redhat.com>
1982
1983         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
1984         * configure, config.in: Rebuild.
1985         * debug.h (dwarf2out_do_cfi_asm): Declare.
1986         * c-cppbuiltin.c (c_cpp_builtins): Use it.
1987         * dwarf2out.c (dwarf2out_do_cfi_asm): New.
1988         (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
1989         dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
1990
1991 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
1992
1993         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
1994         movv2si_internal): Combine into mov<mode>_internal.
1995         (movv2si_internal_2): Remove.
1996
1997 2008-08-07  Jan Hubicka  <jh@suse.cz>
1998
1999         PR target/37048
2000         * i386.md (single stringop patterns): Enable unconditionally. 
2001
2002 2008-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2003
2004         PR target/36992
2005         * config/i386/emmintrin.h (_mm_move_epi64): Use
2006         __builtin_ia32_movq128.
2007
2008         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
2009         (bdesc_args): Add IX86_BUILTIN_MOVQ128.
2010
2011         * config/i386/sse.md (sse2_movq128): New.
2012
2013         * doc/extend.texi: Document __builtin_ia32_movq128.
2014
2015 2008-08-07  Richard Guenther  <rguenther@suse.de>
2016
2017         PR middle-end/37042
2018         * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
2019         pointers can access anything.
2020
2021 2008-08-06  Jan Hubicka  <jh@suse.cz>
2022
2023         * optabs.c (emit_unop_insn): Break out to ...
2024         (maybe_emit_unop_insn): ... this one.
2025         (expand_sfix_optab): Use maybe variant.
2026         * optabs.h (maybe_emit_unop_insn): Declare.
2027
2028         * i386.md (mov0 patterns): Enable by default.
2029         (FP conversion expanders): Disable expansion of code expanding
2030         sequences when instruction should be optimized for size.
2031         (single strinop patterns): Enable when optimizing for size.
2032         (string expanders): Disable expanding of code expanding sequences
2033         when optimizning instruction for size.
2034         * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
2035         per BB basis.
2036         (ix86_fp_comparison_sahf_cost): Likewise.
2037         (ix86_expand_branch): Likewise.
2038         (ix86_expand_ashl_const): Likewise.
2039         (ix86_split_ashl): Likewise.
2040         (ix86_expand_strlen): Likewise.
2041         (ix86_emit_fp_unordered_jump): Likewie.
2042
2043 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2044
2045         * c-common.c: Fix typo.
2046         (c_common_reswords): Activate more C++ keyword warnings.
2047
2048         * matrix-reorg.c (compute_offset): Avoid C++ keywords.
2049
2050 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2051
2052         PR 26785
2053         * diagnostic.c (permerror_at): New.
2054         * toplev.h (permerror_at): Declare.
2055         
2056 2008-08-06  Victor Kaplansky  <victork@il.ibm.com>
2057             Ira Rosen  <irar@il.ibm.com>
2058
2059         * tree-vect-transform.c (vect_model_simple_cost): Return
2060         immediately if stmt is pure SLP.
2061         (vect_model_store_cost): Ditto.
2062         (vect_model_load_cost): Ditto.
2063         (vectorizable_store): Remove PURE_SLP check before call
2064         to vect_model_store_cost.
2065         (vect_model_store_cost): When checking whether stmt describe
2066         strided access, add a check that it is not slp_node.
2067
2068 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2069
2070         PR 8715
2071         * c-common.c (warn_for_sign_compare): New. Handle separately the
2072         case that 'constant' is zero.
2073         * c-typeck.c (build_binary_op): Move code to c-common.c
2074         
2075 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2076
2077         * config/alpha/alpha.c (alpha_preferred_reload_class,
2078         alpha_secondary_reload, alpha_emit_set_const_1, function_value,
2079         alpha_output_mi_thunk_osf): Avoid C++ keywords.
2080         * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
2081         * config/arm/arm.md: Likewise.
2082         * config/avr/avr-protos.h (preferred_reload_class,
2083         test_hard_reg_class, avr_simplify_comparison_p,
2084         out_shift_with_cnt, class_max_nregs): Likewise.
2085         * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
2086         output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
2087         preferred_reload_class, test_hard_reg_class): Likewise.
2088         * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
2089         bfin_memory_move_cost, bfin_secondary_reload,
2090         bfin_output_mi_thunk): Likewise.
2091         * config/crx/crx.c (crx_secondary_reload_class,
2092         crx_memory_move_cost): Likewise.
2093         * config/frv/frv-protos.h (frv_secondary_reload_class,
2094         frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
2095         * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
2096         frv_secondary_reload_class, frv_class_likely_spilled_p,
2097         frv_class_max_nregs): Likewise.
2098         * config/h8300/h8300.c (h8300_classify_operand,
2099         h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
2100         Likewise.
2101         * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
2102         * config/ia64/ia64.c (ia64_preferred_reload_class,
2103         ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
2104         * config/iq2000/iq2000.c (gen_int_relational): Likewise.
2105         * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
2106         Likewise.
2107         * config/m68hc11/m68hc11.c (preferred_reload_class,
2108         m68hc11_memory_move_cost): Likewise.
2109         * config/mcore/mcore.c (mcore_secondary_reload_class,
2110         mcore_reload_class): Likewise.
2111         * config/mips/mips.c (mips_hard_regno_mode_ok_p,
2112         mips_class_max_nregs, mips_cannot_change_mode_class,
2113         mips_preferred_reload_class, mips_secondary_reload_class,
2114         mips_output_mi_thunk): Likewise.
2115         * config/mmix/mmix.c (mmix_preferred_reload_class,
2116         mmix_preferred_output_reload_class, mmix_secondary_reload_class):
2117         Likewise.
2118         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
2119         Likewise.
2120         * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
2121         pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
2122         * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
2123         * config/rs6000/rs6000.c (paired_expand_vector_init,
2124         rs6000_secondary_reload_class, rs6000_output_mi_thunk,
2125         compare_section_name, rs6000_memory_move_cost): Likewise.
2126         * config/s390/s390.c (s390_emit_compare_and_swap,
2127         s390_preferred_reload_class, s390_secondary_reload,
2128         legitimize_pic_address, legitimize_tls_address,
2129         legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
2130         s390_class_max_nregs): Likewise.
2131         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
2132         * config/s390/s390.md: Likewise.
2133         * config/score/score-protos.h (score_secondary_reload_class,
2134         score_preferred_reload_class): Likewise.
2135         * config/score/score.c (score_preferred_reload_class,
2136         score_secondary_reload_class): Likewise.
2137         * config/score/score3.c (score3_output_mi_thunk,
2138         score3_preferred_reload_class, score3_secondary_reload_class,
2139         score3_hard_regno_mode_ok): Likewise.
2140         * config/score/score3.h (score3_preferred_reload_class,
2141         score3_secondary_reload_class): Likewise.
2142         * config/score/score7.c (score7_output_mi_thunk,
2143         score7_preferred_reload_class, score7_secondary_reload_class,
2144         score7_hard_regno_mode_ok): Likewise.
2145         * config/score/score7.h (score7_preferred_reload_class,
2146         score7_secondary_reload_class): Likewise.
2147         * config/sh/sh.c (prepare_move_operands, output_far_jump,
2148         output_branchy_insn, add_constant, gen_block_redirect,
2149         sh_insn_length_adjustment, sh_cannot_change_mode_class,
2150         sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload):
2151         Likewise.
2152         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2153         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
2154         xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
2155         xstormy16_preferred_reload_class): Likewise.
2156         * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
2157         xtensa_expand_atomic, override_options,
2158         xtensa_preferred_reload_class, xtensa_secondary_reload_class):
2159         Likewise.
2160         * reorg.c (try_merge_delay_insns): Likewise.
2161         * tree.c (merge_dllimport_decl_attributes): Likewise.
2162
2163         * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
2164
2165 2008-08-06  Michael Matz  <matz@suse.de>
2166
2167         * Makefile.in (write_entries_to_file): Quote words.
2168         * gengtype.c: (read_input_line): Skip over leading white-space.
2169
2170 2008-08-06  Marc Gauthier  <marc@tensilica.com>
2171
2172         * config.gcc: Match more processor names for Xtensa.
2173         * configure.ac: Likewise.
2174         * doc/install.texi (Specific): Likewise.
2175         * configure: Regenerate.
2176
2177 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2178
2179         * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
2180         * calls.c (avoid_likely_spilled_reg): Likewise.
2181         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
2182         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
2183         * config/i386/i386.c (ix86_expand_special_args_builtin,
2184         ix86_secondary_reload): Likewise.
2185         * except.c (struct eh_region, gen_eh_region_catch,
2186         remove_unreachable_regions, duplicate_eh_regions,
2187         assign_filter_values, build_post_landing_pads,
2188         sjlj_find_directly_reachable_regions, remove_eh_handler,
2189         reachable_next_level, foreach_reachable_handler,
2190         can_throw_internal_1, can_throw_external_1,
2191         collect_one_action_chain): Likewise.
2192         * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
2193         * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
2194         * function.c (update_temp_slot_address, instantiate_new_reg,
2195         instantiate_virtual_regs_in_rtx,
2196         instantiate_virtual_regs_in_insn): Likewise.
2197         * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
2198         * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
2199         gimplify_cleanup_point_expr): Likewise.
2200         * ipa-cp.c (ipcp_lattice_changed): Likewise.
2201         * passes.c (next_pass_1): Likewise.
2202         * print-tree.c (print_node_brief, print_node): Likewise.
2203         * profile.c (branch_prob): Likewise.
2204         * tree-dump.c (dump_register): Likewise.
2205         * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
2206         Likewise.
2207         * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
2208         copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
2209         copy_edges_for_bb, copy_cfg_body, copy_tree_r,
2210         copy_arguments_for_versioning, copy_static_chain): Likewise.
2211         * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
2212         add_new_name_mapping, register_new_name_mapping): Likewise.
2213         * tree-mudflap.c (mf_xform_derefs): Likewise.
2214         * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
2215         get_init_expr, combine_chains): Likewise.
2216         * tree-pretty-print.c (dump_generic_node): Likewise.
2217         * tree-ssa-structalias.c (create_variable_info_for): Likewise.
2218         * tree-vrp.c (simplify_cond_using_ranges): Likewise.
2219         * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
2220         * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
2221
2222 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2223
2224         PR middle-end/37010
2225         * calls.c (expand_call): Use the biggest preferred stack
2226         boundary.
2227
2228 2008-08-06  Michael Matz  <matz@suse.de>
2229
2230         PR target/36613
2231         * reload.c (push_reload): Merge in,out,in_reg,out_reg members
2232         for reused reload, instead of overwriting them.
2233
2234 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2235
2236         PR middle-end/37009
2237         * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
2238         for incoming stack boundary.
2239
2240         * function.c (assign_parm_find_entry_rtl): Update
2241         parm_stack_boundary.
2242
2243         * function.h (rtl_data): Add parm_stack_boundary.
2244
2245         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
2246         parm_stack_boundary for incoming stack boundary.
2247
2248 2008-08-06  Joseph Myers  <joseph@codesourcery.com>
2249
2250         * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
2251         for unrepresentable subregs or treat them as equal to other regs
2252         or subregs with the same register number.
2253
2254 2008-08-06  Aldy Hernandez  <aldyh@redhat.com>
2255
2256         PR middle-end/35432
2257         * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
2258         if want_value.
2259
2260 2008-08-06  Jan Hubicka  <jh@suse.cz>
2261
2262         * predict.c (maybe_hot_frequency_p): When profile is absent, all
2263         frequencies might be hot.
2264
2265 2008-08-06  Andreas Krebbel  <krebbel1@de.ibm.com>
2266
2267         * reload.c (find_reloads): Force constants into literal pool
2268         also if they are wrapped in a SUBREG.
2269
2270 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
2271
2272         PR target/35659
2273         * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
2274         * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
2275         Don't allow predicated instructions for data speculation.
2276         * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
2277         declaration.
2278
2279 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
2280
2281         * haifa-sched.c (extend_global): Split to extend_global_data and
2282         extend_region_data.  Update all uses.
2283         (extend_all): Rename to extend_block_data.
2284
2285 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
2286
2287         * sched-rgn.c (new_ready): Check if instruction can be
2288         speculatively scheduled before attempting speculation.
2289         (debug_rgn_dependencies): Remove wrongful assert.
2290
2291 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
2292
2293         * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
2294         
2295 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
2296         
2297         * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
2298         (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
2299         va_size, and type_size.
2300         
2301 2008-08-04  Jason Merrill  <jason@redhat.com>
2302
2303         PR c++/37016
2304         * tree-ssa.c (useless_type_conversion_p_1): Call langhook
2305         if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
2306
2307 2008-08-05  Richard Henderson  <rth@redhat.com>
2308
2309         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
2310         * configure: Rebuild.
2311
2312 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2313
2314         PR tree-opt/37024
2315         * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
2316         instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
2317         is a conversion.
2318
2319 2008-08-05  Richard Henderson  <rth@redhat.com>
2320
2321         * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
2322         * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
2323         * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
2324         * common.opt (fdwarf2-cfi-asm): New.
2325         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
2326         * config.in, configure: Rebuild.
2327         * dwarf2asm.c (dw2_asm_output_data_raw): New.
2328         (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw): New.
2329         (dw2_force_const_mem): Externalize.
2330         * dwarf2asm.h: Update.
2331         * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
2332         generate a real label.
2333         (output_cfi_directive): New.
2334         (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
2335         (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
2336         (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
2337         and .cfi_lsda.
2338         (dwarf2out_end_epilogue): Emit .cfi_endproc.
2339         (output_loc_operands_raw, output_loc_sequence_raw): New.
2340         (output_cfa_loc_raw): New.
2341         
2342 2008-08-05  Paul Brook  <paul@codesourcery.com>
2343
2344         * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
2345         * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
2346         (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
2347         (arm_file_start): Add FPUTYPE_VFP3D16.  Rename vfp3 to vfpv3.
2348         * config/arm/arm.h (TARGET_VFPD32): Define.
2349         (TARGET_VFP3): Use TARGET_VFPD32.
2350         (fputype): Add FPUTYPE_VFP3D16.
2351         (LAST_VFP_REGNUM): Use TARGET_VFPD32.
2352         * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
2353         * config/arm/arm-cores.def: Add cortex-r4f.
2354         * config/arm/arm-tune.md: Regenerate.
2355
2356 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2357
2358         * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
2359         Reword some comments throughout the file.
2360
2361         (MFC_MIN_DMA_LIST_ELEMENTS): New define.
2362         (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
2363         (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of MFC_MIN_DMA_LIST_ELEMENTS.
2364         (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of MFC_MAX_DMA_LIST_ELEMENTS.
2365
2366         (MFC_START_ENABLE): Remove PPU-only define.
2367         (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
2368         (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
2369
2370         (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
2371         (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
2372         (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
2373         (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
2374         (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
2375         (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
2376         (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
2377
2378         (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
2379         (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
2380         (mfc_sdcrt, mfc_sdcrtst): Likewise.
2381         (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
2382
2383         (spu_read_machine_status): Fix typo.
2384
2385 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2386
2387         * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
2388         SUBREG of multi-word hard register.
2389         * config/spu/spu.c (valid_subreg): Likewise.
2390         (adjust_operand): Handle SUBREGs of multi-word hard registers.
2391
2392 2008-08-04  Richard Guenther  <rguenther@suse.de>
2393
2394         * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
2395         the candidate with the stripped base if that base is different
2396         from the original base even for offset zero.
2397
2398 2008-08-04  Richard Guenther  <rguenther@suse.de>
2399
2400         PR middle-end/36691
2401         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
2402         check for no_overflow.
2403
2404 2008-08-04  Richard Guenther  <rguenther@suse.de>
2405
2406         * tree-vect-transform.c (vectorizable_call): Fix tuplification.
2407
2408 2008-08-04  Paul Brook  <paul@codesourcery.com>
2409
2410         * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
2411         (arm_order_regs_for_local_alloc): New function.
2412         * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
2413         prototype.
2414         * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
2415
2416 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
2417
2418         PR target/37012
2419         * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
2420         instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
2421         (ix86_expand_epilogue): Likewise.
2422
2423 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
2424
2425         * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
2426         in comments.
2427
2428 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
2429
2430         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
2431         to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
2432         (*movv2sf_internal_rex64): Ditto.
2433
2434 2008-08-03  Jan Hubicka  <jh@suse.cz>
2435
2436         * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
2437         expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
2438         * expmed.c (expand_smod_pow2): Likewise.
2439
2440 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
2441
2442         PR target/36992
2443         * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
2444         alternative 0 of operand 1.
2445         (*vec_concatv2di_rex64_sse): Ditto.
2446         (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
2447         of operand 1.
2448         (*sse2_storeq_rex64): Penalize allocation of "r" registers.
2449         * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
2450         of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
2451         (*movv2sf_internal_rex64): Ditto.
2452
2453 2008-08-02  Richard Guenther  <rguenther@suse.de>
2454
2455         PR target/35252
2456         * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
2457         (ssedoublesizemode): New mode attribute.
2458         (sse_shufps): Call gen_sse_shufps_v4sf.
2459         (sse_shufps_1): Macroize.
2460         (sse2_shufpd): Call gen_Sse_shufpd_v2df.
2461         (sse2_shufpd_1): Macroize.
2462         (vec_extract_odd, vec_extract_even): New expanders.
2463         (vec_interleave_highv4sf, vec_interleave_lowv4sf,
2464         vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
2465         * i386.c (ix86_expand_vector_init_one_nonzero): Call
2466         gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
2467         (ix86_expand_vector_set): Likewise.
2468         (ix86_expand_reduc_v4sf): Likewise.
2469
2470 2008-08-01  Doug Kwan  <dougkwan@google.com>
2471
2472         * matrix-reorg.c: Re-enable all code.
2473         (struct malloc_call_data): Change CALL_STMT to gimple type.
2474         (collect_data_for_malloc_call): Tuplify.
2475         (struct access_site_info): Change STMT to gimple type.
2476         (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
2477         and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
2478         (struct free_info): Change STMT to gimple type.
2479         (struct matrix_access_phi_node):  Change PHI to gimple type.
2480         (get_inner_of_cast_expr): Remove.
2481         (may_flatten_matrices_1): Tuplify.
2482         (may_flatten_matrices): Ditto.
2483         (mark_min_matrix_escape_level): Ditto.
2484         (ssa_accessed_in_tree): Refactor statement RHS related code into ...
2485         (ssa_accessed_in_call_rhs): New
2486         (ssa_accessed_in_assign_rhs): New
2487         (record_access_alloc_site_info): Tuplify.
2488         (add_allocation_site): Ditto.
2489         (analyze_matrix_allocation_site): Ditto.
2490         (analyze_transpose): Ditto.
2491         (get_index_from_offset): Ditto.
2492         (update_type_size): Ditto.
2493         (analyze_accesses_for_call_expr): Tuplify and renamed into ...
2494         (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
2495         (analyze_accesses_for_phi_node): Tuplify.
2496         (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
2497         (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
2498         (analyze_matrix_accesses): Tuplify.
2499         (check_var_data): New call-back type for check_var_notmodified_p.
2500         (check_var_notmodified_p): Tuplify and use call-back struct to
2501         return statement found.
2502         (can_calculate_expr_before_stmt): Factor out statement related code
2503         into ...
2504         (can_calculate_stmt_before_stmt): New.
2505         (check_allocation_function): Tuplify.
2506         (find_sites_in_func): Ditto.
2507         (record_all_accesses_in_func): Ditto.
2508         (transform_access_sites): Ditto.
2509         (transform_allocation_sites): Ditto.
2510         (matrix_reorg): Re-enable.
2511         (gate_matrix_reorg): Re-enable.
2512
2513 2008-08-01  Jakub Jelinek  <jakub@redhat.com>
2514
2515         * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
2516         for labels for which it hasn't been set yet.  If it has been set,
2517         stop walking insns and continue with next worklist item.
2518         (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
2519         if the only BARRIER is at the very end of a function.
2520
2521 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
2522
2523         * cfgexpand.c (expand_stack_alignment): Assert that
2524         stack_realign_drap and drap_rtx must match.
2525
2526         * function.c (instantiate_new_reg): If DRAP is used to realign
2527         stack, replace virtual_incoming_args_rtx with internal arg
2528         pointer.
2529
2530 2008-08-01  Richard Guenther  <rguenther@suse.de>
2531
2532         * tree-ssa-pre.c (fini_pre): Take in_fre parameter.  Free
2533         loop information only if we initialized it.
2534         (execute_pre): Call fini_pre with in_fre.
2535         * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
2536         if we do not unroll because we hit max-completely-peeled-insns.
2537         Use our estimation for consistency, do allow shrinking.
2538
2539 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
2540
2541         * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
2542         with MIN_STACK_BOUNDARY.
2543         (ix86_update_stack_boundary): Likewise.
2544         (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
2545         STACK_BOUNDARY.
2546
2547         * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
2548         (MIN_STACK_BOUNDARY): This.
2549
2550 2008-08-01  Richard Guenther  <rguenther@suse.de>
2551
2552         PR middle-end/36997
2553         * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
2554
2555 2008-08-01  Richard Guenther  <rguenther@suse.de>
2556
2557         PR tree-optimization/36988
2558         * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
2559         do not matter if that doesn't change volatile qualification.
2560
2561 2008-08-01  Paolo Bonzini  <bonzini@gnu.org>
2562
2563         * configure.ac: Do not generate libada-mk.  Do not subst
2564         host_cc_for_libada.
2565         * libada-mk.in: Remove.
2566         * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
2567         * configure: Regenerate.
2568
2569 2008-08-01  Basile Starynkevitch  <basile@starynkevitch.net>
2570
2571         * tree-pass.h: Added comment about not dumping passes with name
2572         starting with star in struct opt_pass.
2573         * passes.c (register_dump_files_1): Don't do dump for a pass with
2574         name starting with star.
2575         * doc/passes.texi (Pass manager): Mention pass names and special
2576         meaning of star prefix to avoid dump.
2577
2578 2008-07-31  Adam Nemet  <anemet@caviumnetworks.com>
2579
2580         * config.gcc (mipsisa64r2*-*-linux*): New configuration.  Set ISA
2581         to MIPS64r2.
2582         * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
2583         (ISA_MIPS64R2): New macro.
2584         (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
2585         (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
2586         ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
2587         ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
2588         ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
2589         ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
2590         ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
2591         (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
2592         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
2593         Move up to keep list alphabetically sorted.
2594         (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
2595         * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
2596         processor.
2597         * doc/invoke.texi (MIPS Options): Add -mips64r2.
2598         (-march=@var{arch}): Add mips64r2.
2599
2600 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2601
2602         * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
2603
2604 2008-07-31  Steve Ellcey  <sje@cup.hp.com>
2605
2606         * expr.c (expand_assignment): Check for complete type.
2607
2608 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2609
2610         PR debug/36977
2611         * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
2612
2613         * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
2614         for stack alignment.
2615
2616         * function.h (rtl_data): Add stack_realign_tried.  Update comments.
2617
2618 2008-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
2619
2620         * config/sh/sh.c (sh_canonical_va_list_type): Remove.
2621         (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
2622
2623 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
2624
2625         PR rtl-optimization/36419
2626         * dwarf2out.c (barrier_args_size): New variable.
2627         (compute_barrier_args_size, compute_barrier_args_size_1): New
2628         functions.
2629         (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
2630         if not called yet in the current function, use barrier_args_size
2631         array to find the new args_size value.
2632         (dwarf2out_frame_debug): Free and clear barrier_args_size.
2633
2634 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2635
2636         PR debug/36980
2637         * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
2638         rule 19.
2639
2640 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2641
2642         PR debug/36976
2643         * dwarf2out.c (dwarf2out_args_size_adjust): New.
2644         (dwarf2out_stack_adjust): Use it.
2645         (dwarf2out_frame_debug_expr): Likewise.
2646
2647 2008-07-31  Richard Guenther  <rguenther@suse.de>
2648
2649         PR tree-optimization/36978
2650         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
2651         the generated condition.
2652
2653 2008-07-31  Richard Guenther  <rguenther@suse.de>
2654
2655         * passes.c (init_optimization_passes): Always call
2656         pass_early_warn_uninitialized.
2657         * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
2658         * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
2659         * doc/passes.texi (Warn for uninitialized variables): Adjust.
2660
2661 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
2662
2663         PR c/36970
2664         * builtins.c (maybe_emit_free_warning): New function.
2665         (expand_builtin): Process BUILT_IN_FREE even at -O0.  Call
2666         maybe_emit_free_warning for BUILT_IN_FREE.
2667
2668         PR debug/36278
2669         * dwarf2out.c (get_context_die): New function.
2670         (force_decl_die, force_type_die): Use it.
2671         (dwarf2out_imported_module_or_decl): Likewise.  If base_type_die
2672         returns NULL, force generation of DW_TAG_typedef and put that into
2673         DW_AT_import.
2674
2675         PR preprocessor/36649
2676         * c-pch.c (c_common_read_pch): Save and restore
2677         line_table->trace_includes across PCH restore.
2678
2679 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
2680
2681         PR ada/36554
2682         * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
2683
2684 2008-07-30  Rafael Avila de Espindola  <espindola@google.com>
2685
2686         PR 36974
2687         * final.c (call_from_call_insn): Handle COND_EXEC.
2688
2689 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
2690
2691         * builtins.c (std_gimplify_va_arg_expr): Replace
2692         PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
2693         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
2694
2695 2008-07-30  Joey Ye  <joey.ye@intel.com>
2696             H.J. Lu  <hongjiu.lu@intel.com>
2697
2698         * builtins.c (expand_builtin_setjmp_receiver): Replace
2699         virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
2700         (expand_builtin_apply_args_1): Likewise.
2701         (expand_builtin_longjmp): Need DRAP for stack alignment.
2702         (expand_builtin_apply): Likewise.
2703
2704         * caller-save.c (setup_save_areas): Call assign_stack_local_1
2705         instead of assign_stack_local to allow alignment reduction.
2706
2707         * calls.c (emit_call_1): Need DRAP for stack alignment if
2708         return pops.
2709         (expand_call): Replace virtual_incoming_args_rtx with
2710         crtl->args.internal_arg_pointer.
2711         * stmt.c (expand_nl_goto_receiver): Likewise.
2712
2713         * cfgexpand.c (get_decl_align_unit): Estimate stack variable
2714         alignment and store to stack_alignment_estimated and
2715         max_used_stack_slot_alignment.
2716         (expand_one_var): Likewise.
2717         (expand_stack_alignment): New function.
2718         (tree_expand_cfg): Initialize max_used_stack_slot_alignment
2719         and stack_alignment_estimated fields in rtl_data.  Call
2720         expand_stack_alignment at end.
2721
2722         * defaults.h (INCOMING_STACK_BOUNDARY): New.
2723         (MAX_STACK_ALIGNMENT): Likewise.
2724         (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
2725         (SUPPORTS_STACK_ALIGNMENT): Likewise.
2726
2727         * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
2728         stack alignment when generating virtual registers.
2729
2730         * function.c (assign_stack_local): Renamed to ...
2731         (assign_stack_local_1): This.  Add a parameter to indicate
2732         if it is OK to reduce alignment.
2733         (assign_stack_local): Use it.
2734         (instantiate_new_reg): Instantiate virtual incoming args rtx
2735         to vDRAP if stack realignment and DRAP is needed.
2736         (assign_parms): Collect parameter/return type alignment and
2737         contribute to stack_alignment_estimated.
2738         (locate_and_pad_parm): Likewise.
2739         (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
2740         with crtl->args.internal_arg_pointer.
2741
2742         * function.h (rtl_data): Add new field drap_reg,
2743         max_used_stack_slot_alignment, stack_alignment_estimated,
2744         stack_realign_needed, need_drap, stack_realign_processed and
2745         stack_realign_finalized.
2746         (stack_realign_fp): New macro.
2747         (stack_realign_drap): Likewise.
2748
2749         * global.c (compute_regsets): Frame pointer is needed when
2750         stack is realigned.  Can eliminate frame pointer when stack is
2751         realigned and dynamic realigned argument pointer isn't used.
2752
2753         * reload1.c (update_eliminables):  Frame pointer is needed
2754         when stack is realigned.
2755         (init_elim_table): Can eliminate frame pointer when stack is
2756         realigned and dynamic realigned argument pointer isn't used.
2757
2758         * rtl.h (assign_stack_local_1): Declare new funtion.
2759
2760         * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
2761         (TARGET_GET_DRAP_RTX): Likewise.
2762         (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
2763         TARGET_GET_DRAP_RTX.
2764
2765         * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
2766
2767         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
2768         STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
2769
2770 2008-07-30  Xuepeng Guo  <xuepeng.guo@intel.com>
2771             H.J. Lu  <hongjiu.lu@intel.com>
2772
2773         * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
2774         vdrap_reg, stack_realign and drap_reg_saved.
2775         (add_cfi): Don't allow redefining CFA when DRAP is used.
2776         (reg_save): Handle stack alignment.
2777         (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
2778         alignment.  Don't generate DWARF information for (set fp sp)
2779         when DRAP is used.
2780         (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
2781         to INVALID_REGNUM.
2782         (int_loc_descriptor): Move prototype forward.  Also define if
2783         DWARF2_UNWIND_INFO is true.
2784         (output_cfa_loc): Handle DW_CFA_expression.
2785         (build_cfa_aligned_loc): New.
2786         (based_loc_descr): Update assert for stack realign.  For local
2787         variables, use sp+offset when stack is aligned without drap and
2788         fp+offset when stack is aligned with drap.  For arguments, use
2789         cfa+offset when drap is used to align stack.
2790
2791 2008-07-30  Joey Ye  <joey.ye@intel.com>
2792             H.J. Lu  <hongjiu.lu@intel.com>
2793
2794         * config/i386/i386.c (ix86_force_align_arg_pointer_string):
2795         Break long line.
2796         (ix86_gen_andsp): New.
2797         (ix86_user_incoming_stack_boundary): Likewise.
2798         (ix86_default_incoming_stack_boundary): Likewise.
2799         (ix86_incoming_stack_boundary): Likewise.
2800         (ix86_can_eliminate): Likewise.
2801         (find_drap_reg): Likewise.
2802         (ix86_update_stack_boundary): Likewise.
2803         (ix86_get_drap_rtx): Likewise.
2804         (ix86_finalize_stack_realign_flags): Likewise.
2805         (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
2806         (TARGET_GET_DRAP_RTX): Likewise.
2807         (override_options): Overide option value for new options.
2808         (ix86_function_ok_for_sibcall): Remove check for
2809         force_align_arg_pointer.
2810         (ix86_handle_cconv_attribute): Likewise.
2811         (ix86_function_regparm): Likewise.
2812         (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
2813         (ix86_va_start): Replace virtual_incoming_args_rtx with
2814         crtl->args.internal_arg_pointer.
2815         (ix86_select_alt_pic_regnum): Check DRAP register.
2816         (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
2817         (ix86_compute_frame_layout): Compute frame layout wrt stack
2818         realignment.
2819         (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
2820         (ix86_expand_prologue): Decide if stack realignment is needed
2821         and generate prologue code accordingly.
2822         (ix86_expand_epilogue): Generate epilogue code wrt stack
2823         realignment is really needed or not.
2824         
2825         * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
2826         (ABI_STACK_BOUNDARY): Likewise.
2827         (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
2828         (STACK_REALIGN_DEFAULT): Likewise.
2829         (INCOMING_STACK_BOUNDARY): Likewise.
2830         (MAX_STACK_ALIGNMENT): Likewise.
2831         (ix86_incoming_stack_boundary): Likewise.
2832         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
2833         (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
2834         (CAN_ELIMINATE): Defined with ix86_can_eliminate.
2835         (machine_function): Remove force_align_arg_pointer.
2836
2837         * config/i386/i386.md (BX_REG): New.
2838         (R13_REG): Likewise.
2839
2840         * config/i386/i386.opt (mforce_drap): New.
2841         (mincoming-stack-boundary): Likewise.
2842         (mstackrealign): Add Init(-1).
2843
2844         * config/i386/i386-protos.h (ix86_can_eliminate): New
2845
2846 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
2847
2848         * doc/extend.texi: Update force_align_arg_pointer.
2849
2850         * doc/invoke.texi: Document -mincoming-stack-boundary.  Update
2851         -mstackrealign.
2852
2853         * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
2854         (INCOMING_STACK_BOUNDARY): Likewise.
2855         (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
2856         (TARGET_GET_DRAP_RTX): Likewise.
2857
2858 2008-07-30  Andreas Schwab  <schwab@suse.de>
2859
2860         PR rtl-optimization/36929
2861         * dse.c (replace_inc_dec): Use emit_insn_before instead of
2862         add_insn_before and fix argument order.
2863         (replace_inc_dec_mem): Handle NULL rtx.
2864
2865 2008-07-30  Andrew Jenner  <andrew@codesourcery.com>
2866
2867         * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
2868         function.
2869         (arm_compute_initial_elimination_offset): Use it.
2870         (arm_compute_save_reg_mask): Include static chain save slot when
2871         calculating alignment.
2872         (arm_get_frame_offsets): Ditto.
2873         (thumb1_compute_save_reg_mask): Ensure we have a low register saved
2874         that we can use to decrement the stack when the stack decrement
2875         could be too big for an immediate value in a single insn.
2876         (thumb1_expand_prologue): Avoid using r12 for stack decrement.
2877
2878 2008-07-30  Richard Guenther  <rguenther@suse.de>
2879
2880         PR tree-optimization/36967
2881         * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
2882         Release defs of statements we remove.
2883
2884 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
2885
2886         * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
2887         instead of NULL_RTVEC.
2888
2889 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
2890
2891         PR target/35866
2892
2893         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
2894         vector modes.
2895
2896 2008-07-30  Rafael Avila de Espindola  <espindola@google.com>
2897
2898         * final.c (call_from_call_insn): New.
2899         (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
2900
2901 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
2902
2903         * configure.ac: Substitute ADA_CFLAGS.
2904         * configure: Regenerate.
2905         * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
2906         * Makefile.in: Remove mention of X_* variables.
2907         * config/pa/x-ada-hpux10: Remove.
2908         * config/pa/x-ada: Remove.
2909
2910         * doc/fragments.texi: Update.
2911
2912 2008-07-30  Olivier Hainque  <hainque@adacore.com>
2913
2914         * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
2915         * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
2916         __dso_handle explicitly here.
2917
2918 2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2919
2920         PR 34389
2921         * c-typeck.c (build_binary_op): Encapsulate code into...
2922         * c-common.c (shorten_binary_op): ...this new function.
2923         (conversion_warning): Use the new function. Handle non-negative
2924         constant in bitwise-and.
2925         * c-common.h (shorten_binary_op): Declare.
2926
2927 2008-07-30  Olivier Hainque  <hainque@adacore.com>
2928
2929         * scan.c (make_sstring_space): Add explicit conversions of
2930         allocator's return value.
2931         * fix-header.c (recognized_function): Likewise.
2932
2933 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2934
2935         * doc/cpp.texi: Update to GFDL 1.2.
2936         * doc/gcc.texi: Do not list GPL as Invariant Section.
2937         * doc/gccint.texi: Likewise.  Update copyright years.
2938         * doc/install.texi: Update copyright years.
2939
2940 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
2941
2942         PR target/36955
2943         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
2944         a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
2945
2946 2008-07-29  Jan Hubicka  <jh@suse.cz>
2947
2948         * c-decl.c (merge_decls): Do not handle DECL_INLINE.
2949         (grokdeclarator): Likewise.
2950         * langhooks.c (lhd_warn_unused_global_decl): Use
2951         DECL_DECLARED_INLINE_P.
2952         * print-tree.c (print_node): Remove DECL_INLINE check.
2953
2954 2008-07-29  Richard Guenther  <rguenther@suse.de>
2955
2956         PR tree-optimization/36945
2957         * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
2958         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
2959         Record invariant addresses un-decomposed.
2960         (copy_reference_ops_from_call): Record reference call
2961         arguments properly.  Simplify.
2962         * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
2963         helper split out from ...
2964         (create_component_ref_by_pieces): ... here.  Simplify.
2965         Prepare for recursive invocation for call arguments.
2966         (create_expression_by_pieces): Adjust call to
2967         create_component_ref_by_pieces.
2968         (compute_avail): Process operand 2 of reference ops.
2969
2970 2008-07-29  Richard Guenther  <rguenther@suse.de>
2971
2972         * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
2973
2974 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
2975
2976         * c-format.c (check_format_types): Revert unwanted checkin.
2977
2978 2008-07-29  Jan Hubicka  <jh@suse.cz>
2979
2980         * flags.h (flag_really_no_inline): Remove.
2981         * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
2982         * toplev.c (flag_really_no_inline): Remove.
2983         * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
2984         * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
2985         (cgraph_decide_inlining_incrementally): Likewise.
2986         (compute_inline_parameters): Likewise.
2987         * opts.c (decode_options): Simplify.
2988         * c-opts.c (c_common_post_options): Do not set flag_no_inline.
2989         * common.opt (finline): Initialize to 1.
2990         * tree-inline.c (inlinable_function_p): Check flag_no_inline.
2991
2992 2008-07-29  Jan Hubicka  <jh@suse.cz>
2993
2994         * predict.c (always_optimize_for_size_p): New function.
2995         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
2996         optimize_edge_for_size_p, optimize_edge_for_speed_p,
2997         optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
2998         functions.
2999         (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
3000         * function.c (prepare_function_start): Set default profile.
3001         * function.h (rtl_data): Add maybe_hot_insn_p.
3002         * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
3003         (construct_exit_block): Likewise.
3004         (tree_expand_cfg): Likewise.
3005         * basic-block.h
3006         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
3007         optimize_edge_for_size_p, optimize_edge_for_speed_p,
3008         optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
3009         (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
3010         Declare.
3011
3012 2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3013
3014         PR 34985
3015         * c-decl.c (merge_decls): Merge USED flags.
3016
3017 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
3018
3019         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
3020         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
3021         next_stack, lab_false and lab_over trees.
3022
3023 2008-07-28  Richard Guenther  <rguenther@suse.de>
3024
3025         PR tree-optimization/36957
3026         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
3027         (useless_type_conversion_p): Remove.
3028         (types_compatible_p): Remove.
3029         * gimple.h (tree_ssa_useless_type_conversion): Declare.
3030         (useless_type_conversion_p): Declare.
3031         (types_compatible_p): Declare.
3032         (gimple_expr_type): Return the base type only if it is
3033         trivially convertible to the subtype.
3034
3035 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
3036
3037         * configure.ac: Use the m4_do macro to concatenate the warnings into
3038         one string in ACX_PROG_CC_WARNING_OPTS,
3039         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
3040         * configure: Regenerate.
3041
3042 2008-07-28  Richard Guenther  <rguenther@suse.de>
3043
3044         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
3045         (insert_fake_stores): Remove.
3046         (realify_fake_stores): Likewise.
3047         (execute_pre): Remove dead code.
3048         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
3049         (find_func_aliases): Deal with it here instead.
3050         Re-enable gcc_unreachable call.
3051
3052 2008-07-28  Richard Guenther  <rguenther@suse.de>
3053
3054         Merge from gimple-tuples-branch.
3055
3056         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
3057         * gimple.def: New file.
3058         * gsstruct.def: Likewise.
3059         * gimple-iterator.c: Likewise.
3060         * gimple-pretty-print.c: Likewise.
3061         * tree-gimple.c: Removed.  Merged into ...
3062         * gimple.c: ... here.  New file.
3063         * tree-gimple.h: Removed.  Merged into ...
3064         * gimple.h: ... here.  New file.
3065
3066         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
3067         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
3068         --enable-checking=gimple flag.
3069         * config.in: Likewise.
3070         * configure: Regenerated.
3071
3072         * tree-ssa-operands.h: Tuplified.
3073         * tree-vrp.c: Likewise.
3074         * tree-loop-linear.c: Likewise.
3075         * tree-into-ssa.c: Likewise.
3076         * tree-ssa-loop-im.c: Likewise.
3077         * tree-dump.c: Likewise.
3078         * tree-complex.c: Likewise.
3079         * cgraphbuild.c: Likewise.
3080         * tree-ssa-threadupdate.c: Likewise.
3081         * tree-ssa-loop-niter.c: Likewise.
3082         * tree-pretty-print.c: Likewise.
3083         * tracer.c: Likewise.
3084         * gengtype.c: Likewise.
3085         * tree-loop-distribution.c: Likewise.
3086         * tree-ssa-loop-unswitch.c: Likewise.
3087         * cgraph.c: Likewise.
3088         * cgraph.h: Likewise.
3089         * tree-ssa-loop-manip.c: Likewise.
3090         * value-prof.c: Likewise.
3091         * tree-ssa-loop-ch.c: Likewise.
3092         * tree-tailcall.c: Likewise.
3093         * value-prof.h: Likewise.
3094         * tree.c: Likewise.
3095         * tree.h: Likewise.
3096         * tree-pass.h: Likewise.
3097         * ipa-cp.c: Likewise.
3098         * tree-scalar-evolution.c: Likewise.
3099         * tree-scalar-evolution.h: Likewise.
3100         * target.h: Likewise.
3101         * lambda-mat.c: Likewise.
3102         * tree-phinodes.c: Likewise.
3103         * diagnostic.h: Likewise.
3104         * builtins.c: Likewise.
3105         * tree-ssa-alias-warnings.c: Likewise.
3106         * cfghooks.c: Likewise.
3107         * fold-const.c: Likewise.
3108         * cfghooks.h: Likewise.
3109         * omp-low.c: Likewise.
3110         * tree-ssa-dse.c: Likewise.
3111         * ipa-reference.c: Likewise.
3112         * tree-ssa-uncprop.c: Likewise.
3113         * toplev.c: Likewise.
3114         * tree-gimple.c: Likewise.
3115         * tree-gimple.h: Likewise.
3116         * tree-chrec.c: Likewise.
3117         * tree-chrec.h: Likewise.
3118         * tree-ssa-sccvn.c: Likewise.
3119         * tree-ssa-sccvn.h: Likewise.
3120         * cgraphunit.c: Likewise.
3121         * tree-ssa-copyrename.c: Likewise.
3122         * tree-ssa-ccp.c: Likewise.
3123         * tree-ssa-loop-ivopts.c: Likewise.
3124         * tree-nomudflap.c: Likewise.
3125         * tree-call-cdce.c: Likewise.
3126         * ipa-pure-const.c: Likewise.
3127         * c-format.c: Likewise.
3128         * tree-stdarg.c: Likewise.
3129         * tree-ssa-math-opts.c: Likewise.
3130         * tree-ssa-dom.c: Likewise.
3131         * tree-nrv.c: Likewise.
3132         * tree-ssa-propagate.c: Likewise.
3133         * ipa-utils.c: Likewise.
3134         * tree-ssa-propagate.h: Likewise.
3135         * tree-ssa-alias.c: Likewise.
3136         * gimple-low.c: Likewise.
3137         * tree-ssa-sink.c: Likewise.
3138         * ipa-inline.c: Likewise.
3139         * c-semantics.c: Likewise.
3140         * dwarf2out.c: Likewise.
3141         * expr.c: Likewise.
3142         * tree-ssa-loop-ivcanon.c: Likewise.
3143         * predict.c: Likewise.
3144         * tree-ssa-loop.c: Likewise.
3145         * tree-parloops.c: Likewise.
3146         * tree-ssa-address.c: Likewise.
3147         * tree-ssa-ifcombine.c: Likewise.
3148         * matrix-reorg.c: Likewise.
3149         * c-decl.c: Likewise.
3150         * tree-eh.c: Likewise.
3151         * c-pretty-print.c: Likewise.
3152         * lambda-trans.c: Likewise.
3153         * function.c: Likewise.
3154         * langhooks.c: Likewise.
3155         * ebitmap.h: Likewise.
3156         * tree-vectorizer.c: Likewise.
3157         * function.h: Likewise.
3158         * langhooks.h: Likewise.
3159         * tree-vectorizer.h: Likewise.
3160         * ipa-type-escape.c: Likewise.
3161         * ipa-type-escape.h: Likewise.
3162         * domwalk.c: Likewise.
3163         * tree-if-conv.c: Likewise.
3164         * profile.c: Likewise.
3165         * domwalk.h: Likewise.
3166         * tree-data-ref.c: Likewise.
3167         * tree-data-ref.h: Likewise.
3168         * tree-flow-inline.h: Likewise.
3169         * tree-affine.c: Likewise.
3170         * tree-vect-analyze.c: Likewise.
3171         * c-typeck.c: Likewise.
3172         * gimplify.c: Likewise.
3173         * coretypes.h: Likewise.
3174         * tree-ssa-phiopt.c: Likewise.
3175         * calls.c: Likewise.
3176         * tree-ssa-coalesce.c: Likewise.
3177         * tree.def: Likewise.
3178         * tree-dfa.c: Likewise.
3179         * except.c: Likewise.
3180         * except.h: Likewise.
3181         * cfgexpand.c: Likewise.
3182         * tree-cfgcleanup.c: Likewise.
3183         * tree-ssa-pre.c: Likewise.
3184         * tree-ssa-live.c: Likewise.
3185         * tree-sra.c: Likewise.
3186         * tree-ssa-live.h: Likewise.
3187         * tree-predcom.c: Likewise.
3188         * lambda.h: Likewise.
3189         * tree-mudflap.c: Likewise.
3190         * ipa-prop.c: Likewise.
3191         * print-tree.c: Likewise.
3192         * tree-ssa-copy.c: Likewise.
3193         * ipa-prop.h: Likewise.
3194         * tree-ssa-forwprop.c: Likewise.
3195         * ggc-page.c: Likewise.
3196         * c-omp.c: Likewise.
3197         * tree-ssa-dce.c: Likewise.
3198         * tree-vect-patterns.c: Likewise.
3199         * tree-ssa-ter.c: Likewise.
3200         * tree-nested.c: Likewise.
3201         * tree-ssa.c: Likewise.
3202         * lambda-code.c: Likewise.
3203         * tree-ssa-loop-prefetch.c: Likewise.
3204         * tree-inline.c: Likewise.
3205         * tree-inline.h: Likewise.
3206         * tree-iterator.c: Likewise.
3207         * tree-optimize.c: Likewise.
3208         * tree-ssa-phiprop.c: Likewise.
3209         * tree-vect-transform.c: Likewise.
3210         * tree-object-size.c: Likewise.
3211         * tree-outof-ssa.c: Likewise.
3212         * cfgloop.c: Likewise.
3213         * system.h: Likewise.
3214         * tree-profile.c: Likewise.
3215         * cfgloop.h: Likewise.
3216         * c-gimplify.c: Likewise.
3217         * c-common.c: Likewise.
3218         * tree-vect-generic.c: Likewise.
3219         * tree-flow.h: Likewise.
3220         * c-common.h: Likewise.
3221         * basic-block.h: Likewise.
3222         * tree-ssa-structalias.c: Likewise.
3223         * tree-switch-conversion.c: Likewise.
3224         * tree-ssa-structalias.h: Likewise.
3225         * tree-cfg.c: Likewise.
3226         * passes.c: Likewise.
3227         * ipa-struct-reorg.c: Likewise.
3228         * ipa-struct-reorg.h: Likewise.
3229         * tree-ssa-reassoc.c: Likewise.
3230         * cfgrtl.c: Likewise.
3231         * varpool.c: Likewise.
3232         * stmt.c: Likewise.
3233         * tree-ssanames.c: Likewise.
3234         * tree-ssa-threadedge.c: Likewise.
3235         * langhooks-def.h: Likewise.
3236         * tree-ssa-operands.c: Likewise.
3237         * config/alpha/alpha.c: Likewise.
3238         * config/frv/frv.c: Likewise.
3239         * config/s390/s390.c: Likewise.
3240         * config/m32c/m32c.c: Likewise.
3241         * config/m32c/m32c-protos.h: Likewise.
3242         * config/spu/spu.c: Likewise.
3243         * config/sparc/sparc.c: Likewise.
3244         * config/i386/i386.c: Likewise.
3245         * config/sh/sh.c: Likewise.
3246         * config/xtensa/xtensa.c: Likewise.
3247         * config/stormy16/stormy16.c: Likewise.
3248         * config/ia64/ia64.c: Likewise.
3249         * config/rs6000/rs6000.c: Likewise.
3250         * config/pa/pa.c: Likewise.
3251         * config/mips/mips.c: Likewise.
3252
3253 2008-07-28  Simon Baldwin  <simonb@google.com>
3254
3255         * c-pragma.c (handle_pragma_message): New function.
3256         (init_pragma): Register handle_pragma_message.
3257         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
3258         documentation.
3259
3260 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
3261
3262         PR tree-optimization/35252
3263         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
3264         REALPART_EXPR to be considered as same load operation.
3265
3266 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
3267
3268         PR tree-optimization/36830
3269         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
3270         (expressions_equal_p): Return false if only one operand is null.
3271
3272 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
3273
3274         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
3275         version requirements.
3276
3277 2008-07-26  Olivier Hainque  <hainque@adacore.com>
3278
3279         * collect2.c (symkind): New enum.  Symbol kinds we care about.
3280         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
3281         code and head comment accordingly.
3282         (scan_prog_file): Use symkind names instead of bare integers.
3283
3284 2008-07-25  Jan Hubicka  <jh@suse.cz>
3285
3286         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
3287         DECL_INLINE.
3288         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
3289         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
3290         * dojump.c (clear_pending_stack_adjust): Likewise.
3291         * print-tree.c (print_node): Ignore DECL_INLINE.
3292         * tree-inline.c (inlinable_function_p): Likewise.
3293
3294 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
3295
3296         * doc/extend.texi (hot attribute): Document that the hot attribute
3297         turns on -O3 for some ports.
3298         (cold attribute): Document that the cold attribute turns on -Os
3299         for some ports
3300
3301         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
3302         reflect function specific option support.
3303
3304         * target.h (struct target_option_hooks): Add fields to say whether
3305         the cold attribute implies -Os and the hot attribute implies -O3.
3306
3307         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
3308         By default, do not turn on -Os for cold functions.
3309         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
3310         not turn on -O3 for hot functions.
3311
3312         * c-common.c (handle_hot_attribute): Use target hook to determine
3313         if hot functions should enable -O3.
3314         (handle_cold_attribute): Use target hook to determine if cold
3315         functions should enable -Os.
3316
3317         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
3318         (override_options): Move disable scheduling to
3319         optimization_options.
3320         (optimization_options): Disable scheduling here, not
3321         override_options.
3322         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
3323         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
3324
3325         * config/ia64/ia64.c (ia64_override_options): Move setting
3326         scheduling flags to ia64_optimization_options.
3327         (ia64_optimization_options): Disable scheduling options here, and
3328         not in ia64_override_options.
3329         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
3330         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
3331
3332 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
3333
3334         PR target/36936
3335         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
3336
3337 2008-07-25  Martin Jambor  <mjambor@suse.cz>
3338
3339         PR tree-optimization/36926
3340         * ipa-prop.c (ipa_analyze_call_uses): Call
3341         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
3342
3343 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
3344
3345         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
3346         movv2si_internal): Add mem = reg alternative.
3347
3348 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
3349
3350         PR bootstrap/36918
3351         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
3352         DEFAULT_PCC_STRUCT_RETURN to 127.
3353
3354 2008-07-24  Jan Hubicka  <jh@suse.cz>
3355
3356         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
3357         (build_cgraph_edges): Likewise.
3358         * cgraph.c (cgraph_node): Do not update assembler hash.
3359         (cgraph_remove_node): Drop non-unit-at-a-time code.
3360         * tree-pass.h (pass_O0_always_inline): Remove.
3361         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
3362         * toplev.c (process_options): Flag unit-at-a-time does not imply
3363         no section anchors.
3364         * cgraphunit.c: Update comments.
3365         (decide_is_function_needed): Drop non-unit-at-a-time mode.
3366         (cgraph_assemble_pending_functions): Remove.
3367         (cgraph_reset_node): Drop non-unit-at-a-time code.
3368         (cgraph_finalize_function): Likewise.
3369         (cgraph_analyze_function): Likewise.
3370         (cgraph_finalize_compilation_unit): Likewise.
3371         (cgraph_expand_function): Likewise.
3372         (cgraph_optimize): Likesise.
3373         (save_inline_function_body): Likewise.
3374         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
3375         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
3376         * ipa-inline.c: Update comments.
3377         (enum inlining_mode): remove INLINE_SPEED.
3378         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
3379         (cgraph_mark_inline_edge): Likewise.
3380         (try_inline): Likewise.
3381         (cgraph_decide_inlining_incrementally): Likewise.
3382         (cgraph_gate_inlining): Remove.
3383         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
3384         (cgraph_gate_early_inlining): Likewise.
3385         (gate_inline_passes): Remove.
3386         (pass_inline_parameters, pass_ipa_inline): Remove gates.
3387         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
3388         pass_O0_always_inline): Remove.
3389         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
3390         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
3391         * opts.c (no_unit_at_a_time_default): Remove.
3392         (decode_options): Remove flag_unit_at_a_time reset and warning.
3393         * opts.h (no_unit_at_a_time_default): Remove.
3394         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
3395         early in GNU dialect.
3396         (merge_decls): Update comment; drop unit-at-a-time check.
3397         (finish_decl): Likewise.
3398         (grok_declaration): Remove flag_inline_trees code.
3399         (finish_functions): Return on function returning non-void on all
3400         statics.
3401         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
3402         * cfgexpand.c (expand_one_static_var): Remove.
3403         (expand_one_var): Remove expand_one_static_var call.
3404         (expand_used_vars_for_block): Remove flag_unit_a_time check.
3405         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
3406         and flag_unit_at_a-time compatibility checks.
3407         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
3408         * tree-inline.c (flag_inline_trees): Remove.
3409         (inlinable_function_p): Don't check it.
3410         (expand_call_inline): Remove non-unit-at-a-time code.
3411         * tree-inline.h (flag_inline_trees): Remove.
3412         * tree-optimize.c (execute_early_local_optimizations): Remove
3413         unit-at-a-time checks.
3414         (tree_rest_of_compilation): Likewise.
3415         * combine.c (setup_incoming_promotions): Likewise.
3416         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
3417         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
3418         * passes.c (pass_inline_parameters): Update comments; remove
3419         O0_alwaysinline pass.
3420         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
3421         (execute_one_pass): Likewise.
3422         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
3423         (ix86_function_sseregparm): Likewise.
3424         * arm.c (arm_function_in_section_p): Likewise.
3425         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
3426         * varpool.c: Update comments.
3427         (decide_is_variable_needed): Remove unit-at-a-time checks.
3428         (varpool_finalize_decl): Likewise.
3429
3430 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
3431
3432         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
3433         to 2 instead of -1.
3434         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
3435
3436 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
3437
3438         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
3439         imp symbol extension.
3440
3441         2008-07-23  Ian Lance Taylor  <iant@google.com>
3442
3443         * tree-vrp.c (infer_value_range): Ignore asm statements when
3444         looking for memory accesses for -fdelete-null-pointer-checks.
3445
3446 2008-07-24  Ben Elliston  <bje@au.ibm.com>
3447
3448         * config/spu/spu-c.c (__vector_keyword): New variable.
3449         (vector_keyword): Likewise.
3450         (spu_categorize_keyword): New function.
3451         (spu_macro_to_expand): Likewise.
3452         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
3453         compiling an ISO C dialect.
3454
3455 2008-07-24  Ben Elliston  <bje@au.ibm.com>
3456
3457         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
3458         conventional usage.
3459
3460 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
3461
3462         * configure: Regenerate.
3463         * configure.ac: Require texinfo 4.7.
3464         * doc/install.texi: Document texinfo 4.7 requirement.
3465
3466 2008-07-23  Martin Jambor  <mjambor@suse.cz>
3467
3468         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
3469         rather than for DECL_SAVED_TREE.
3470         * ipa-prop.c: Include diagnostic.h.
3471         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
3472         thoroughly.
3473         (ipa_detect_param_modifications): Function rewritten from scratch.
3474         (ipa_compute_jump_functions): Changed accesses to modification flags.
3475         (ipa_free_node_params_substructures): Update flags destruction.
3476         (ipa_node_duplication_hook): Update flags duplication.
3477         (ipa_print_all_params_modified): Updated flag access.
3478         * ipa-prop.h (struct ipa_param_flags): New structure.
3479         (struct ipa_node_params): New field modification_analysis_done,
3480         modified_flags changed into param_flags.
3481         (ipa_is_ith_param_modified): Changed to use new flags.
3482         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
3483
3484         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
3485         ipa-cp.c and split into two functions.
3486         (ipa_print_node_jump_functions): New function.
3487         (compute_scalar_jump_functions): New function.
3488         (type_like_member_ptr_p): New function.
3489         (compute_pass_through_member_ptrs): New function.
3490         (fill_member_ptr_cst_jump_function): New function.
3491         (determine_cst_member_ptr): New function.
3492         (compute_cst_member_ptr_arguments): New function.
3493         (ipa_compute_jump_functions): Complete rewrite.
3494         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
3495         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
3496         (struct ipa_member_ptr_cst): New structure.
3497         (union jump_func_value): New field member_cst.
3498         * ipa-cp.c (ipcp_lat_is_insertable): New function.
3499         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
3500         jump function types.
3501         (ipcp_print_all_lattices): Slight fprintf rearrangement.
3502         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
3503         instead of ipcp_print_all_jump_functions.
3504         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
3505         only for replacable scalars.
3506
3507         * doc/invoke.texi (Optimize options): Add description of
3508         -findirect-inlining.
3509         * common.opt (flag_indirect_inlining): New flag.
3510         * opts.c (decode_options): Set flag_indirect_inlining when
3511         optimize >= 3.
3512
3513         * ipa-inline.c: Include ipa-prop.h.
3514         (inline_indirect_intraprocedural_analysis): New function.
3515         (inline_generate_summary): Allocate parameter and argument info
3516         structures, call inline_indirect_intraprocedural_analysis on each
3517         node when doing indirect inlining and deallocate indirect inlining
3518         data structures in the end.
3519         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
3520         (free_all_ipa_structures_after_iinln): New function.
3521         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
3522         done.
3523         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
3524
3525         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
3526         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
3527         of computing the frequency separately.
3528         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
3529         of computing the frequency separately.
3530         * ipa-cp.c (ipcp_print_all_structures): Replace a call to
3531         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
3532         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
3533         (ipa_get_stmt_member_ptr_load_param): New function.
3534         (ipa_is_ssa_with_stmt_def): New function.
3535         (ipa_note_param_call): New function.
3536         (ipa_analyze_call_uses): New function.
3537         (ipa_analyze_stmt_uses): New function.
3538         (ipa_analyze_params_uses): New function.
3539         (ipa_free_node_params_substructures): Also free the param_calls linked
3540         list.
3541         (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
3542         (ipa_print_node_param_flags): New function.
3543         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
3544         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
3545         * ipa-prop.h (struct ipa_param_flags): New field called.
3546         (struct ipa_param_call_note): New structure.
3547         (struct ipa_node_params): New fields param_calls and
3548         uses_analysis_done.
3549         (ipa_is_ith_param_called): New function.
3550         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
3551         ipa_analyze_params_uses and dump parameter flags.
3552
3553         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
3554         ipa_propagate_indirect_call_infos if performing indirect inlining,
3555         pass a new parameter new_edges to it.
3556         (add_new_edges_to_heap): New fucntion.
3557         (cgraph_decide_inlining_of_small_functions): New vector
3558         new_indirect_edges for newly found indirect edges , call
3559         ipa_propagate_indirect_call_infos after inlining.
3560         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
3561         inlining if performing indirect inlining.  Call
3562         free_all_ipa_structures_after_iinln when doing so too.
3563         (inline_generate_summary): Do not call
3564         free_all_ipa_structures_after_iinln here.
3565         * ipa-prop.c (update_jump_functions_after_inlining): New function.
3566         (print_edge_addition_message): New function.
3567         (update_call_notes_after_inlining): New function.
3568         (propagate_info_to_inlined_callees): New function.
3569         (ipa_propagate_indirect_call_infos): New function.
3570         * ipa-prop.h: Include cgraph.h
3571         (struct ipa_param_call_note): Fields reordered, new field processed.
3572         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
3573         flag indirect_call.
3574         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
3575         rediscovered call statements.
3576         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
3577         (dump_cgraph_node): Dump also the indirect_call flag.
3578         (cgraph_clone_edge): Copy also the indirect_call flag.
3579         * tree-inline.c (copy_bb): Do not check for fndecls from call
3580         expressions, check for edge availability when moving clones.
3581         (get_indirect_callee_fndecl): New function.
3582         (expand_call_inline): If callee declaration is not apprent from
3583         the statement, try calling get_indirect_callee_fndecl.  Do not
3584         issue warnings or call sorry when not inlinings an indirect edge.
3585         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
3586
3587         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
3588         bit more frandly to matching.
3589         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
3590         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
3591         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
3592
3593 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
3594
3595         PR 36907
3596         * opth-gen.awk: Suppress function specific features when building
3597         target libraries.
3598         * optc-gen.awk: Ditto.
3599
3600 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3601
3602         PR 35058
3603         * diagnostic.c (pedwarn): Add opt parameter.
3604         (pedwarn0): New.
3605         * c-tree.h (pedwarn_init): Add opt parameter.
3606         (pedwarn_c90): Likewise.
3607         (pedwarn_c99): Likewise.
3608         * c-errors.c (pedwarn_c99): Likewise.
3609         (pedwarn_c90): Likewise.
3610         * toplev.h (pedwarn): Update declaration.
3611         (pedwarn0): Declare.
3612         * c-lex.c: All calls to pedwarn changed.
3613         * builtins.c: All calls to pedwarn changed.
3614         * toplev.c: All calls to pedwarn changed.
3615         * c-decl.c: All calls to pedwarn changed.
3616         * c-typeck.c: All calls to pedwarn changed.
3617         * c-common.c: All calls to pedwarn changed.
3618         * c-parser.c: All calls to pedwarn changed.
3619
3620 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
3621             Karthik Kumar  <karthikkumar@gmail.com>
3622
3623         * attribs.c (file scope): Include c-common.h.
3624         (decl_attributes): Add support for #pragma GCC optimize and
3625         #pragma GCC option.
3626
3627         * targhooks.c (default_can_inline_p): New function that is the
3628         default for the TARGET_CAN_INLINE_P target hook.
3629
3630         * targhooks.h (default_can_inline_p): Add declaration.
3631
3632         * tree.c (cl_optimization_node): New static tree for building
3633         OPTIMIZATION_NODE tree.
3634         (cl_target_option_node): New static tree for building
3635         TARGET_OPTION_NODE tree.
3636         (cl_option_hash_table): New hash table for hashing
3637         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
3638         (cl_option_hash_hash): New function to provide the hash value for
3639         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
3640         (cl_option_hash_eq): New function to provide an equality test for
3641         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
3642         (tree_code_size): Add support for OPTIMIZATION_NODE and
3643         TARGET_OPTION_NODE trees.
3644         (tree_code_structure): Add support for OPTIMIZATION_NODE and
3645         TARGET_OPTION_NODE trees.
3646         (build_optimization_node): Build a tree that has all of the
3647         current optimization options.
3648         (build_target_option_node): Build a tree that has the target
3649         options that might be changed on a per function basis.
3650
3651         * tree.h (file scope): Include options.h.
3652         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
3653         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
3654         (TREE_OPTIMIZATION): Ditto.
3655         (TREE_TARGET_SPECIFIC): Ditto.
3656         (struct tree_function_decl): Add fields for remembering the
3657         current optimization options and target specific options.
3658         (struct tree_optimization_option): New tree variant that remembers
3659         the optimization options.
3660         (struct tree_target_option): New tree variant that remembers the
3661         target specific flags that might change for compiling a particular
3662         function.
3663         (union tree_node): Include tree_optimization_option and
3664         tree_target_option fields.
3665         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
3666         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
3667         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
3668         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
3669         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
3670         optimization and target options.
3671         (optimization_default_node): New macro to refer to global_trees
3672         field.
3673         (optimization_current_node): Ditto.
3674         (optimization_cold_node): Ditto.
3675         (optimization_hot_node): Ditto.
3676         (target_option_default_node): Ditto.
3677         (target_option_current_node): Ditto.
3678         (current_option_pragma): Ditto.
3679         (current_optimize_pragma): Ditto.
3680
3681         * target.h (struct gcc_target): Add valid_option_attribute_p,
3682         target_option_save, target_option_restore, target_option_print,
3683         target_option_pragma_parse, and can_inline_p hooks.
3684
3685         * toplev.h (parse_optimize_options): Add declaration.
3686         (fast_math_flags_struct_set_p): Ditto.
3687
3688         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
3689         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
3690         optimize is used.
3691
3692         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
3693         tree_can_inline_p hook to see if one function can inline another.
3694         (cgraph_decide_inlining): Ditto.
3695         (cgraph_decide_inlining_incrementally): Ditto.
3696
3697         * opts.c (decode_options): Add support for running multiple times
3698         to allow functions with different target or optimization options
3699         than was specified on the command line.
3700         (fast_math_flags_struct_set_p): New function that is similar to
3701         fast_math_flags_set_p, except it uses the values in the
3702         cl_optimization structure instead of global variables.
3703
3704         * optc-gen.awk: Add support for TargetSave to allow a back end to
3705         declare new fields that need to be saved when using function
3706         specific options.  Include flags.h and target.h in the options.c
3707         source.  Add support for Save to indicate which options can be set
3708         for individual functions.  Generate cl_optimize_save,
3709         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
3710         cl_target_option_restore, cl_target_option_print functions to
3711         allow functions to use different optimization or target options.
3712
3713         * opt-functions.awk (var_type_struct): Return the type used for
3714         storing the field in a structure.
3715
3716         * opth-gen.awk: Add support for TargetSave to allow a back end to
3717         declare new fields that need to be saved when using function
3718         specific options.  Add support for Save to indicate which options
3719         can be set for individual functions.  Only generate one extern for
3720         Mask fields.  Generate cl_optimization and cl_target_option
3721         structures to remember optimization and target options.
3722
3723         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
3724         collecting new tree nodes.
3725         (TS_TARGET_OPTION): Ditto.
3726
3727         * c-decl.c (merge_decls): Merge function specific target and
3728         optimization options.
3729
3730         * function.c (invoke_set_current_function_hook): If the function
3731         uses different optimization options, change the global variables
3732         to reflect this.
3733
3734         * coretypes.h (struct cl_optimization): Add forward reference.
3735         (struct cl_target_option): Ditto.
3736
3737         * c-pragma.c (option_stack): New static vector to remember the
3738         current #pragma GCC option stack.
3739         (handle_pragma_option): New function to support #pragma GCC option
3740         to change target options.
3741         (optimize_stack): New static vector to remember the current
3742         #pragma GCC optimize stack.
3743         (handle_pragma_optimize): New function to support #pragma GCC
3744         optimize to change optimization options.
3745         (init_pragma): Add support for #pragma GCC optimize and #pragma
3746         GCC option.
3747
3748         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
3749         optimization options.
3750         (TARGET_OPTION_NODE): New tree code for remembering certain target
3751         options.
3752
3753         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
3754         TARGET_OPTION_NODE trees.
3755
3756         * common.opt (-O): Add Optimization flag.
3757         (-Os): Ditto.
3758         (-fmath-errno): Ditto.
3759         (-falign-functions): Add UInteger flag to make sure flag gets full
3760         int in cl_optimization structure.
3761         (-falign-jumps): Ditto.
3762         (-falign-labels): Ditto.
3763         (-falign-loops): Ditto.
3764         (-fsched-stalled-insns): Ditto.
3765         (-fsched-stalled-insns-dep): Ditto.
3766
3767         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
3768         definition.
3769         (TARGET_OPTION_SAVE): Ditto.
3770         (TARGET_OPTION_RESTORE): Ditto.
3771         (TARGET_OPTION_PRINT): Ditto.
3772         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
3773         (TARGET_CAN_INLINE_P): Ditto.
3774         (TARGET_INITIALIZER): Add new hooks.
3775
3776         * tree-inline.c (tree_can_inline_p): New function to determine
3777         whether one function can inline another.  Check if the functions
3778         use compatible optimization options, and also call the backend
3779         can_inline_p hook.
3780
3781         * tree-inline.h (tree_can_inline_p): Add declaration.
3782
3783         * c-common.c (c_common_attribute): Add support for option and
3784         optimize attributes.
3785         (handle_option_attribute): Add support for the option attribute to
3786         allow the user to specify different target options for compiling a
3787         specific function.
3788         (handle_optimize_attribute): Add support for the optimize
3789         attribute to allow the user to specify different optimization
3790         options for compiling a specific function.
3791         (handle_hot_attribute): Turn on -O3 optimization for this one
3792         function if it isn't the default optimization level.
3793         (handle_cold_attribute): Turn on -Os optimization for this one
3794         function if it insn't the default optimization.
3795         (const_char_p): New const char * typedef.
3796         (optimize_args): New static vector to remember the optimization
3797         arguments.
3798         (parse_optimize_options): New function to set up the optimization
3799         arguments from either the optimize attribute or #pragma GCC optimize.
3800
3801         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
3802         (builtin_define_std): Ditto.
3803
3804         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
3805         Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
3806         (x86_64-*-*): Ditto.
3807
3808         * Makefile.in (TREE_H): Add options.h.
3809         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
3810
3811         * doc/extend.texi (option attribute): Document new attribute.
3812         (optimize attribute): Ditto.
3813         (hot attribute): Document hot attribute sets -O3.
3814         (cold attribute): Document cold attribute sets -Os.
3815         (#pragma GCC option): Document new pragma.
3816         (#pragma GCC optimize): Ditto.
3817
3818         * doc/options.texi (TargetSave): Document TargetSave syntax.
3819         (UInteger): Document UInteger must be used for certain flags.
3820         (Save): Document Save option to create target specific options
3821         that can be saved/restored on a function specific context.
3822
3823         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
3824         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
3825
3826         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
3827         (TARGET_OPTION_SAVE): Ditto.
3828         (TARGET_OPTION_RESTORE): Ditto.
3829         (TARGET_OPTION_PRINT): Ditto.
3830         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
3831         (TARGET_CAN_INLINE_P): Ditto.
3832
3833         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
3834         -mfpmath=sse,387.
3835         (-mfpmath=both): Ditto.
3836
3837 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
3838             Karthik Kumar  <karthikkumar@gmail.com>
3839
3840         * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
3841         (TARGET_POPCNT): Ditto.
3842         (TARGET_SAHF): Ditto.
3843         (TARGET_AES): Ditto.
3844         (TARGET_PCLMUL): Ditto.
3845         (TARGET_CMPXCHG16B): Ditto.
3846         (TARGET_RECIP): Move switch into target_flags.
3847         (TARGET_FUSED_MADD): Ditto.
3848         (ix86_arch_features): Make an unsigned char type.
3849         (ix86_tune_features): Ditto.
3850         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
3851         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
3852         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
3853
3854         * config/i386/i386.opt (arch): New TargetSave field to define
3855         fields that need to be saved for function specific option support.
3856         (tune): Ditto.
3857         (fpmath): Ditto.
3858         (branch_cost): Ditto.
3859         (ix86_isa_flags_explicit): Ditto.
3860         (tune_defaulted): Ditto.
3861         (arch_specified): Ditto.
3862         (-m128-long-double): Add Save flag to save option for target
3863         specific option support.
3864         (-m80387): Ditto.
3865         (-maccumulate-outgoing-args): Ditto.
3866         (-malign-double): Ditto.
3867         (-malign-stringops): Ditto.
3868         (-mfancy-math-387): Ditto.
3869         (-mhard-float): Ditto.
3870         (-mieee-fp): Ditto.
3871         (-minline-all-stringops): Ditto.
3872         (-minline-stringops-dynamically): Ditto.
3873         (-mms-bitfields): Ditto.
3874         (-mno-align-stringops): Ditto.
3875         (-mno-fancy-math-387): Ditto.
3876         (-mno-push-args): Ditto.
3877         (-mno-red-zone): Ditto.
3878         (-mpush-args): Ditto.
3879         (-mred-zone): Ditto.
3880         (-mrtd): Ditto.
3881         (-msseregparm): Ditto.
3882         (-mstack-arg-probe): Ditto.
3883         (-m32): Ditto.
3884         (-m64): Ditto.
3885         (-mmmx): Ditto.
3886         (-m3dnow): Ditto.
3887         (-m3dnowa): Ditto.
3888         (-msse): Ditto.
3889         (-msse2): Ditto.
3890         (-msse3): Ditto.
3891         (-msse4.1): Ditto.
3892         (-msse4.2): Ditto.
3893         (-msse4): Ditto.
3894         (-mno-sse4): Ditto.
3895         (-msse4a): Ditto.
3896         (-msse5): Ditto.
3897         (-mrecip): Move flag into target_flags.
3898         (-mcld): Ditto.
3899         (-mno-fused-madd): Ditto.
3900         (-mfused-madd): Ditto.
3901         (-mabm): Move flag into ix86_isa_flags.
3902         (-mcx16): Ditto.
3903         (-mpopcnt): Ditto.
3904         (-msahf): Ditto.
3905         (-maes): Ditto.
3906         (-mpclmul): Ditto.
3907
3908         * config/i386/i386-c.c: New file for #pragma support.
3909         (ix86_target_macros_internal): New function to #define or #undef
3910         target macros based when the user uses the #pragma GCC option to
3911         change target options.
3912         (ix86_pragma_option_parse): New function to add #pragma GCC option
3913         support.
3914         (ix86_target_macros): Move defining the target macros here from
3915         TARGET_CPU_CPP_BUILTINS in i386.h.
3916         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
3917         defined, initialize any subtarget #pragmas.
3918
3919         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
3920         REGISTER_TARGET_PRAGMAS.
3921
3922         * config/i386/t-i386: New file for x86 dependencies.
3923         (i386.o): Make dependencies mirror the include files used.
3924         (i386-c.o): New file, add dependencies.
3925
3926         * config/i386/i386-protos.h (override_options): Add bool argument.
3927         (ix86_valid_option_attribute_tree): Add declaration.
3928         (ix86_target_macros): Ditto.
3929         (ix86_register_macros): Ditto.
3930
3931         * config/i386/i386.c (ix86_tune_features): Move initialization of
3932         the target masks to initial_ix86_tune_features to allow functions
3933         to have different target options.  Make type unsigned char,
3934         instead of unsigned int.
3935         (initial_ix86_tune_features): New static vector to hold processor
3936         masks for the tune variables.
3937         (ix86_arch_features): Move initialization of the target masks to
3938         initial_ix86_arch_features to allow functions to have different
3939         target options.  Make type unsigned char, instead of unsigned int.
3940         (initial_ix86_arch_features): New static vector to hold processor
3941         masks for the arch variables.
3942         (enum ix86_function_specific_strings): New enum to describe the
3943         string options used for attribute((option(...))).
3944         (ix86_target_string): New function to return a string that
3945         describes the target options.
3946         (ix86_debug_options): New function to print the current options in
3947         the debugger.
3948         (ix86_function_specific_save): New function hook to save the
3949         function specific global variables in the cl_target_option structure.
3950         (ix86_function_specific_restore): New function hook to restore the
3951         function specific variables from the cl_target_option structure to
3952         the global variables.
3953         (ix86_function_specific_print): New function hook to print the
3954         target specific options in the cl_target_option structure.
3955         (ix86_valid_option_attribute_p): New function hook to validate
3956         attribute((option(...))) arguments.
3957         (ix86_valid_option_attribute_tree): New function that is common
3958         code between attribute((option(...))) and #pragma GCC option
3959         support that parses the options and returns a tree holding the options.
3960         (ix86_valid_option_attribute_inner_p): New helper function for
3961         ix86_valid_option_attribute_tree.
3962         (ix86_can_inline_p): New function hook to decide if one function
3963         can inline another on a target specific basis.
3964         (ix86_set_current_function); New function hook to switch target
3965         options if the user used attribute((option(...))) or #pragma GCC
3966         option.
3967         (ix86_tune_defaulted): Move to static file scope from
3968         override_options.
3969         (ix86_arch_specified): Ditto.
3970         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
3971         ix86_isa_flags.
3972         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
3973         (OPTION_MASK_ISA_ABM_SET): Ditto.
3974         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
3975         (OPTION_MASK_ISA_CX16_SET): Ditto.
3976         (OPTION_MASK_ISA_SAHF_SET): Ditto.
3977         (OPTION_MASK_ISA_AES_UNSET): Ditto.
3978         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
3979         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
3980         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
3981         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
3982         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
3983         (struct ptt): Move to static file scope from override_options.
3984         (processor_target_table): Ditto.
3985         (cpu_names): Ditto.
3986         (ix86_handle_option): Add support for options that are now isa options.
3987         (override_options): Add support for declaring functions that
3988         support different target options than were specified on the
3989         command line.  Move struct ptt, processor_target_table, cpu_names,
3990         ix86_tune_defaulted, ix86_arch_specified to static file scope.
3991         Add bool argument.  Fix up error messages so the appropriate error
3992         is given for either command line or attribute.
3993         (ix86_previous_fndecl): New static to remember previous function
3994         declaration to see if we need to change target options.
3995         (ix86_builtins_isa): New array to record the ISA of each builtin
3996         function.
3997         (def_builtin): Always create the builtin function, even if the
3998         current ISA doesn't support it.
3999         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
4000         tests for those builtins.
4001         (ix86_init_builtins): Remove TARGET_MMX test for calling
4002         ix86_init_mmx_sse_builtins.
4003         (ix86_expand_builtin): If the current ISA doesn't support a given
4004         builtin, signal an error.
4005         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
4006         (TARGET_SET_CURRENT_FUNCTION): Ditto.
4007         (TARGET_OPTION_SAVE): Ditto.
4008         (TARGET_OPTION_RESTORE): Ditto.
4009         (TARGET_OPTION_PRINT): Ditto.
4010         (TARGET_CAN_INLINE_P): Ditto.
4011
4012 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
4013
4014         * c-typeck.c (build_external_ref): Don't call assemble_external.
4015         * final.c (output_operand): Call assemble_external.
4016
4017 2008-07-21  DJ Delorie  <dj@redhat.com>
4018
4019         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
4020         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
4021
4022 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4023
4024         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
4025         original insn and splitter contents into ...
4026         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
4027         flag_unsafe_math_optimizations.  Add dummy scratch register.
4028         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
4029         !flag_unsafe_math_optimizations.  Returns number with next
4030         highest magnitude if this is still less or equal to the true
4031         quotient in magnitude.
4032
4033 2008-07-21  Rafael Avila de Espindola  <espindola@google.com>
4034
4035         * Makefile.in: Replace toplev.h with TOPLEV_H.
4036         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
4037         * c-lex.c (fe_file_change): Don't set in_system_header.
4038         * c-parser.c (c_token): Remove in_system_header.
4039         (c_lex_one_token): Don't set in_system_header.
4040         (c_parser_set_source_position_from_token): Don't set in_system_header.
4041         * diagnostic.c (diagnostic_report_diagnostic): Use location from
4042         diagnostic_info.
4043         (warning_at): New.
4044         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
4045         * flags.h (in_system_header): Remove.
4046         * function.c (saved_in_system_header): Remove.
4047         (push_cfun): Don't set in_system_header.
4048         (pop_cfun): Don't set in_system_header.
4049         (push_struct_function): Don't set in_system_header.
4050         * input.h (expanded_location): Add sysp.
4051         (in_system_header_at): New.
4052         (in_system_header): New.
4053         * toplev.c (in_system_header): Remove.
4054         * toplev.h: Include input.h
4055         (warning_at): New.
4056         * tree-cfg.c (execute_warn_function_return): Call warning_at.
4057         * tree-ssa.c (warn_uninit): Call warning_at.
4058         (warn_uninitialized_var): Update calls to warn_uninit.
4059         (warn_uninitialized_phi): Update calls to warn_uninit.
4060         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
4061         (expand_location): Initialize xloc.sysp.
4062         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
4063         (tree_decl_with_vis): Remove in_system_header_flag.
4064
4065 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
4066
4067         PR target/36822
4068         * recog.c (asm_operand_ok): Change the order of the extra
4069         memory constraint checks.
4070
4071 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4072
4073         PR tree-opt/36879
4074         * tree-switch-conversion.c (build_one_array): Call
4075         varpool_mark_needed_node and varpool_finalize_decl
4076         instead of assemble_variable.
4077
4078 2008-07-19  Jan Hubicka  <jh@suse.cz>
4079
4080         * cgraph.c (cgraph_add_new_function): Do early local passes.
4081         * tree-nrv.c (gate_pass_return_slot): New gate.
4082         (pass_nrv): Add the gate.
4083         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
4084         functions.
4085         (coalesce_ssa_name): Coalesce SSA names.
4086         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
4087         not optimizing so unused user vars remains visible.
4088         * common.opt (flag_tree_ter): Always enable by default.
4089         * tree-ssa-ter.c: Include flags.h
4090         (is_replaceable_p): Check that locations match; when aliasing is missing
4091         be conservative about loads.
4092         * tree-optimize.c (gate_init_datastructures): Remove.
4093         (pass_init_datastructures): New.
4094         * passes.c: Reorder passes so we always go into SSA.
4095
4096 2008-07-19  Jan Hubicka  <jh@suse.cz>
4097
4098         * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
4099         * doc/invoke.texi (--combine): Likewise.
4100         (-finline-functions-called-once): Update levels when enabled.
4101         (-funit-at-a-time): Document new behaviour.
4102         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
4103         -fno-section-anchors when disabled explicitly.
4104         (inline params): They are not ignored now.
4105         (precompiled headers): Remove unit-at-a-time as being incompatible.
4106         * opts.c (decode_options): Handle unit-at-a-time as alias;
4107         imply -fno-section-anchors when toplevel reorder is disabled
4108         explicitly.
4109         * common.opt (ftoplevel-reorder): Set default value to 2.
4110         (funit-at-a-time): Set default value to 1.
4111         * config/rs6000/rs6000.c (optimization_options): Set section anchors
4112         to 2.
4113
4114 2008-07-19  Jan Hubicka  <jh@suse.cz>
4115
4116         * builtins.c (expand_builtin_int_roundingfn,
4117         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
4118         it is not useful.
4119
4120 2008-07-19  Richard Guenther  <rguenther@suse.de>
4121
4122         PR bootstrap/36864
4123         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
4124         * tree-ssa-sccvn.c (get_constant_value_id): New function.
4125         * tree-ssa-pre.c (get_expr_value_id): For newly created
4126         constant value-ids make sure to add the expression to its
4127         expression-set.
4128
4129 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
4130
4131         PR middle-end/36877
4132         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
4133         return value of the builtin is ignored.
4134
4135 2008-07-19  Olivier Hainque  <hainque@adacore.com>
4136
4137         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
4138         bits, a C conformant malloc implementation has to provide.
4139         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
4140
4141 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
4142
4143         PR target/36780
4144         PR target/36827
4145         * reload.c (find_reloads_subreg_address): Only reload address if
4146         reloaded == 0, not for reloaded != 1.
4147
4148         Revert:
4149         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
4150         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
4151         (m32c_legitimate_address_p): Handle "++rii" addresses created by
4152         m32c_legitimize_reload_address.
4153
4154         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
4155         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
4156         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
4157
4158 2008-07-19  Olivier Hainque  <hainque@adacore.com>
4159
4160         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
4161         argument, saying whether nested array are to be collapsed
4162         into a single array type DIE with multiple subscripts.
4163         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
4164         issues, centralize the nested array types collapsing control and
4165         disable the transformation for Ada.
4166
4167 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
4168
4169         PR target/36786
4170         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
4171         x86_64_shift_adj.
4172         (x86_64_shift_adj_2): New expander.
4173         (x86_64_shift_adj_3): Ditto.
4174         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
4175         to split TImode operands.
4176         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
4177         (ix86_split_lshr): Ditto.
4178
4179 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
4180
4181         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
4182         and __CHAR32_TYPE__.
4183         * c-typeck.c (digest_init): Support char16_t and char32_t.
4184         (set_nonincremental_init_from_string): Idem.
4185
4186 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4187
4188         PR middle-end/36859
4189         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
4190         PREFERRED_STACK_BOUNDARY.
4191         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
4192
4193 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4194
4195         PR middle-end/36858
4196         * function.c (locate_and_pad_parm): Cap boundary earlier.
4197
4198 2008-07-17  Julian Brown  <julian@codesourcery.com>
4199
4200         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
4201         no-op for targets which don't use DLLs.
4202
4203 2008-07-17  Martin Jambor  <mjambor@suse.cz>
4204
4205         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
4206         that nodes are relevant by examining the node->analyzed flag.
4207         (ipcp_init_stage): Check which nodes are relevant, assert that the
4208         relevant ones are also required.
4209         (ipcp_propagate_stage): Check on the side arrays are properly
4210         allocated.
4211         (ipcp_print_all_jump_functions): Make sure not to touch any node
4212         that is not analyzed or an edge that does not have a corresponding
4213         entry in the on-the-side vectors.
4214         (ipcp_function_scale_print): Likewise.
4215         (ipcp_update_callgraph): Check that the node is relevant.
4216         (ipcp_insert_stage): Check that the node is relevant.  Check there is
4217         an info for every node and edge.
4218         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
4219         (ipa_print_all_tree_maps): Likewise and a new variable info.
4220         (ipa_print_all_params_modified): Likewise.
4221         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
4222
4223 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
4224
4225         PR target/25343
4226         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
4227
4228 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
4229
4230         PR rtl-optimization/36753
4231         * fwprop.c (use_killed_between): Don't shortcut
4232         single-definition global registers.
4233
4234 2008-07-16  Jan Hubicka  <jh@suse.cz>
4235
4236         * cgraph.h (varpool_empty_needed_queue): Declare.
4237         * cgraphunit.c (output_in_order): Mark all variables as needed;
4238         empty the queue.
4239         * varpool.c (varpool_assemble_node): Update debug queue.
4240         (varpool_assemble_pending_decls): Don't do it here.
4241         (varpool_empty_needed_queue):  New function.
4242
4243 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4244
4245         * recog.c (peephole2_optimize): Fix formatting.
4246
4247 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4248
4249         * c-pch.c (get_ident): Avoid C++ keywords.
4250         * combine-stack-adj.c (single_set_for_csa): Likewise.
4251         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
4252         output_asm_insn): Likewise.
4253         * reload.c (push_secondary_reload, find_reusable_reload,
4254         push_reload, combine_reloads, find_reloads,
4255         debug_reload_to_stream): Likewise.
4256         * reload.h (struct reload): Likewise.
4257         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
4258         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
4259         emit_output_reload_insns): Likewise.
4260         * targhooks.c (default_secondary_reload): Likewise.
4261         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
4262
4263 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4264
4265         * recog.c (validate_change_1, validate_change,
4266         validate_unshare_change, validate_replace_rtx_1, struct
4267         funny_match, constrain_operands, peephole2_optimize): Avoid C++
4268         keywords.
4269         * reload.c (push_secondary_reload, secondary_reload_class,
4270         scratch_reload_class, find_valid_class, find_reusable_reload,
4271         push_reload, find_dummy_reload, find_reloads_address_1,
4272         find_reloads_address_part, find_equiv_reg): Likewise.
4273         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
4274         choose_reload_regs): Likewise.
4275         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
4276         Likewise.
4277         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
4278         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
4279         * sched-rgn.c (concat_INSN_LIST): Likewise.
4280         * stor-layout.c (mode_for_size, mode_for_size_tree,
4281         smallest_mode_for_size): Likewise.
4282
4283 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4284
4285         * cfg.c (dump_reg_info): Avoid C++ keywords.
4286         * dwarf2asm.c (dw2_force_const_mem,
4287         dw2_asm_output_encoded_addr_rtx): Likewise.
4288         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
4289         * expmed.c (expand_shift): Likewise.
4290         * global.c (find_reg): Likewise.
4291         * graph.c (draw_edge): Likewise.
4292         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
4293         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
4294         widen_clz, widen_bswap, expand_parity, expand_unop,
4295         emit_cmp_and_jump_insn_1): Likewise.
4296         * postreload.c (reload_cse_simplify_operands): Likewise.
4297         * ra.h (add_neighbor): Likewise.
4298         * reg-stack.c (remove_regno_note, change_stack): Likewise.
4299         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
4300         record_reg_classes, copy_cost, record_address_regs,
4301         invalid_mode_change_p): Likewise.
4302         * regrename.c (regrename_optimize, scan_rtx_reg,
4303         dump_def_use_chain, find_oldest_value_reg,
4304         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
4305
4306 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
4307
4308         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
4309         MASK_POWERPC64 for power4 in previous commit.
4310
4311 2008-07-16  Olivier Hainque  <hainque@adacore.com>
4312
4313         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
4314         instead of bare conversion to cast const-ness away.
4315
4316 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
4317
4318         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
4319         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
4320         * config/xtensa/xtensa.c (xtensa_function_value): New function.
4321         (TARGET_FUNCTION_VALUE): Define.
4322
4323 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
4324
4325         * config/rs6000/rs6000.c (processor_target_table): Add
4326         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
4327
4328 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
4329
4330         PR target/36827
4331         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
4332         (m32c_legitimate_address_p): Handle "++rii" addresses created by
4333         m32c_legitimize_reload_address.
4334
4335 2007-07-16  Rafael Avila de Espindola  <espindola@google.com>
4336
4337         * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
4338         DECL_IN_SYSTEM_HEADER in sync.
4339
4340 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
4341
4342         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
4343         * tree-ssa-pre.c (pre_expr_eq): Ditto
4344         (get_constant_for_value_id): Take a type as an argument.
4345         (fully_constant_expression): Pass in type.
4346         (find_or_generate_expression): Short circuit constant case.
4347         (create_expression_by_pieces): Remove special casing of
4348         pointer_plus.
4349         (do_regular_insertion): Short circuit constant case.
4350         (do_partial_partial_insertion): Ditto.
4351
4352 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
4353
4354         PR target/36782
4355         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
4356
4357 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
4358
4359         * config/xtensa/libgcc-xtensa.ver: New file.
4360         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
4361
4362 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4363
4364         * df-problems.c (df_set_note): Avoid C++ keywords.
4365         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
4366         * dse.c (record_store, remove_useless_values): Likewise.
4367         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
4368         gen_reg_rtx_offset, operand_subword, change_address_1,
4369         change_address, adjust_address_1, offset_address,
4370         widen_memory_access, emit_copy_of_insn_after): Likewise.
4371         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
4372         * fwprop.c (should_replace_address, propagate_rtx_1,
4373         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
4374         Likewise.
4375         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
4376         gcse_emit_move_after, update_ld_motion_stores): Likewise.
4377         * lcm.c (compute_insert_delete, pre_edge_lcm,
4378         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
4379         * lower-subreg.c (resolve_reg_notes): Likewise.
4380         * mode-switching.c (optimize_mode_switching): Likewise.
4381
4382 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4383
4384         * bt-load.c (add_btr_def, migrate_btr_def,
4385         branch_target_load_optimize): Avoid C++ keywords.
4386         * caller-save.c (insert_restore, insert_save, insert_one_insn):
4387         Likewise.
4388         * combine.c (subst, simplify_set, make_extraction,
4389         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
4390         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
4391         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
4392
4393 2008-07-15  Richard Guenther  <rguenther@suse.de>
4394
4395         PR middle-end/36369
4396         * c-common.c (strict_aliasing_warning): Do not warn for
4397         TYPE_REF_CAN_ALIAS_ALL pointers.
4398         (c_common_get_alias_set): may_alias types are not special.
4399         * tree.c (build_pointer_type_for_mode): Look up the may_alias
4400         attribute and set can_ref_all accordingly.
4401         (build_reference_type_for_mode): Likewise.
4402         * doc/extend.texi (may_alias): Clarify.
4403
4404 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
4405
4406         PR target/36780
4407         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
4408         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
4409
4410 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4411
4412         PR target/31568
4413         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
4414         gcc_assert, instead call output_operand_lossage.
4415
4416 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
4417
4418         * builtins.c (std_canonical_va_list): Treat structure based
4419         va_list types.
4420
4421 2008-07-15  Ben Elliston  <bje@au.ibm.com>
4422
4423         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
4424
4425 2007-07-14  Rafael Avila de Espindola  <espindola@google.com>
4426
4427         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
4428         is set.
4429
4430 2008-07-14  Jan Hubicka  <jh@suse.cz>
4431
4432         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
4433         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
4434         fix predicates and constraints.
4435         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
4436         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
4437
4438 2008-07-14  Doug Kwan  <dougkwan@google.com>
4439
4440         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
4441         additional option file arm/eabi.opt.
4442         * config/arm/eabi.h (File): New configuration file for EABI targets.
4443         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
4444         SUBSUBTARGET_EXTRA_SPECS.
4445         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
4446         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
4447         from STARTFILE_SPEC so that it can be referenced in an override.
4448         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
4449         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
4450         can be referenced in an override.
4451         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
4452         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
4453         so that it can be referenced in an override.
4454         (LINK_SPEC): Use BPABI_LINK_SPEC.
4455         * config/arm/eabi.opt (File): New.
4456
4457 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4458
4459         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
4460         (FIXED_VALUE_H): New variable.
4461         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
4462         input.h, fixed-value.h.
4463         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
4464         (BASIC_BLOCK_H): Use $(BITMAP_H).
4465         (FUNCTION_H): Add varray.h.
4466         (IPA_REFERENCE_H): Use $(BITMAP_H).
4467         (CGRAPH_H): Add $(BASIC_BLOCK_H).
4468         (DF_H): Use $(BITMAP_H).
4469         (GGC_H): Add statistics.h.
4470         (INSN_ADDR_H): New.
4471         (INSN_ATTR_H): Use it.
4472         (SYSTEM_H): Add safe-ctype.h, filenames.h.
4473         (INPUT_H): New.
4474         (SYMTAB_H): Add $(OBSTACK_H).
4475         (CPP_INTERNAL_H): New.
4476         (TREE_DUMP_H): Add tree-pass.h.
4477         (TREE_FLOW_H): Use $(BITMAP_H)
4478         (PRETTY_PRINT_H): Use $(INPUT_H).
4479         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
4480         (GSTAB_H): New.
4481         (BITMAP_H): New.
4482         (many object files): Fix lots of header dependencies throughout.
4483
4484 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4485
4486         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
4487         New macros.
4488         (s-gtyp-input): Use them to write tmp-gi.list.
4489         (echo_to_gi.list): Remove.
4490
4491 2008-07-14  Richard Guenther  <rguenther@suse.de>
4492
4493         * tree-ssa-sccvn.c (pre_info): Remove.
4494         (switch_to_PRE_table): Likewise.
4495         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
4496         (set_hashtable_value_ids): Do not create value-ids for the
4497         optimistic tables.
4498         (run_scc_vn): Remove double test.  Remove bogus special-case
4499         in value-number printing.
4500         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
4501         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
4502         SSA_NAME_VALUE.
4503         * tree-flow-inline.h (get_value_handle): Remove.
4504         * tree-flow.h (get_value_handle): Remove.
4505
4506 2008-07-14  Martin Jambor  <mjambor@suse.cz>
4507
4508         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
4509         in which we generate arithmetics is not a subrange.
4510
4511 2008-07-14  Martin Jambor  <mjambor@suse.cz>
4512
4513         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
4514
4515 2008-07-14  Richard Guenther  <rguenther@suse.de>
4516
4517         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
4518
4519 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
4520
4521         PR target/36745
4522         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
4523         reload for symbol refs moved to r0 with -fPIC.
4524         (legitimize_pic_address): Use the target register as temporary
4525         reg if possible.
4526         (emit_symbolic_move): Adjust comment.
4527         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
4528         New expanders.
4529
4530 2008-07-14  Ben Elliston  <bje@au.ibm.com>
4531
4532         * c-common.h (C_CPP_HASHNODE): New macro.
4533         * coretypes.h (struct cpp_token): Forward declare.
4534         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
4535         the context-sensitive keyword method.
4536         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
4537         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
4538         expand_bool_pixel): New.
4539         (altivec_categorize_keyword): New function.
4540         (init_vector_keywords): New function.
4541         (rs6000_macro_to_expand): Likewise.
4542         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
4543         compiling an ISO C dialect.
4544
4545 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
4546
4547         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
4548         (create_expression_by_pieces): Fix typo.
4549         (do_regular_insertion): Use debug counter here too.
4550
4551 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
4552
4553         PR target/35492.
4554         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
4555         CONST_OK_FOR_LETTER_P.  All port-local users changed.
4556         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
4557         implement Kp matching power-of-two.
4558         (CONSTRAINT_LEN): Define to match.
4559         * config/cris/cris.md: Replace all use of constraint K with Kc.
4560         ("*btst*): Use Kp for operand 0 of last alternative.
4561
4562 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4563
4564         PR testsuite/36440
4565         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
4566         and quad formats.
4567
4568 2008-07-13  Jan Hubicka  <jh@suse.cz>
4569
4570         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
4571         to be mangled too.
4572
4573 2008-07-13  Richard Guenther  <rguenther@suse.de>
4574
4575         PR middle-end/36811
4576         * langhooks.c (lhd_print_error_function): Deal with recursive
4577         BLOCK trees.
4578
4579 2008-07-12  Jan Hubicka  <jh@suse.cz>
4580
4581         * cgraph.c (assembler_name_hash): New static var.
4582         (hash_node_by_assembler_name, eq_assembler_name): New.
4583         (cgraph_node_for_asm): Use hashtable.
4584         (cgraph_remove_node): Maintain hashtable.
4585         (change_decl_assembler_name): Sanity check that names are not changing
4586         after aliasing was processed.
4587         * cgraph.h (varpoon_node): Add next GGC marker.
4588         * tree.c (decl_assembler_name_equal): Constify.
4589         (decl_assembler_name_hash): New.
4590         * tree.h (decl_assembler_name_equal): Constify.
4591         (decl_assembler_name_hash): Update.
4592
4593 2008-07-12  David Daney  <ddaney@avtrex.com>
4594
4595         * config/mips/driver-native.c (host_detect_local_cpu): Handle
4596         sb1 and r5000 cpus.
4597
4598 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4599
4600         * doc/md.texi: Document the MIPS "v" constraint.
4601         * config/mips/mips.h (reg_class): Revert last change.
4602         (REG_CLASS_NAMES): Likewise.
4603         (REG_CLASS_CONTENTS): Likewise.
4604         * config/mips/mips.c (mips_regno_to_class): Likewise.
4605         * config/mips/constraints.md (v): Likewise, but add documentation.
4606         Add a comment to say that this constraint should not be used in
4607         gcc code.
4608
4609 2008-07-11  DJ Delorie  <dj@redhat.com>
4610
4611         * config/h8300/h8300.md (length): Fix branch offset limit.
4612
4613 2008-07-11  Anatoly Sokolov  <aesok@post.ru>
4614
4615         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
4616         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
4617         (avr_hard_regno_scratch_ok): New function.
4618         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
4619         * config/avr/avr.md (all peepholes that request a scratch register):
4620         Remove avr_peep2_scratch_safe use.
4621
4622 2008-07-11  Tom Tromey  <tromey@redhat.com>
4623             Ian Lance Taylor  <iant@google.com>
4624
4625         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
4626         (struct c_common_resword): Define.
4627         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
4628         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
4629         (c_common_reswords, num_c_common_reswords): Declare.
4630         * c-common.c (c_common_reswords): New global const array.
4631         (num_c_common_reswords): New const int.
4632         * c-parser.c (struct resword, reswords): Don't define.
4633         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
4634         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
4635         than reswords.  If warning about C++ keywords, give them a special
4636         RID code.
4637         (c_lex_one_token): Warn about C++ keywords.  Call
4638         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
4639         (c_parser_external_declaration): Look for RID_xxx rather than
4640         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
4641         (c_parser_statement_after_labels): Likewise.
4642         (c_parser_objc_class_instance_variables): Likewise.
4643         (c_parser_objc_class_declaration): Likewise.
4644         (c_parser_objc_try_catch_statement): Likewise.
4645         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
4646         (declspecs_add_type): Likewise.
4647
4648 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
4649
4650         * ggc-page.c (alloc_page):
4651         Substituting xmalloc, xcalloc with
4652         XNEWVEC and XCNEWVAR macros which add the
4653         needed casts.
4654
4655 2008-07-11  Richard Guenther  <rguenther@suse.de>
4656
4657         PR tree-optimization/36765
4658         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
4659         aliases from HEAP vars to SMTs.
4660
4661 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4662
4663         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
4664         * configure.ac (loose_warn): Move -Wc++-compat from here...
4665         (strict_warn): ...to here.
4666         * configure: Regenerate.
4667
4668 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
4669
4670         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
4671         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
4672         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
4673         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
4674         excluding more specific h8300-*-* and sh-*-* targets.
4675
4676 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
4677
4678         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
4679         (eliminate): Ditto.
4680         (execute_pre): Call loop_optimizer_finalize in early exit.
4681
4682 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
4683
4684         PR middle-end/36790
4685         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
4686         uids in the bitmap, not just VAR_DECL uids.
4687
4688         PR rtl-optimization/36419
4689         * combine-stack-adj.c (adjust_frame_related_expr): New function.
4690         (combine_stack_adjustments_for_block): Call it if needed.  Delete
4691         correct insn.
4692         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
4693         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
4694         prologue sp adjustment.
4695
4696 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
4697
4698         PR other/28322
4699         * opts.c (print_ignored_options): Report postponed diagnostics for
4700         unknown -Wno-* options as warnings, not errors.
4701         (postpone_unknown_option_error): Renamed to...
4702         (postpone_unknown_option_warning): ... this.
4703
4704 2008-07-09  Doug Kwan  <dougkwan@google.com>
4705
4706         Revert:
4707         2008-07-08  Doug Kwan  <dougkwan@google.com>
4708
4709         * config/arm/arm.opt (mandroid): New option.
4710         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
4711         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
4712         (CC1_SPEC): Same.
4713         (CC1PLUS_SPEC): Same.
4714         (LIB_SPEC): Same.
4715         (STARTFILE_SPEC): Same.
4716         (ENDFILE_SPEC): Same.
4717         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
4718         used.
4719
4720 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
4721
4722         PR target/35802
4723         * config/mips/mips.h (reg_class): Remove V1_REG.
4724         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
4725         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
4726         instead of V1_REGS.
4727         (mips_get_tp): New function.
4728         (mips_legitimize_tls_address): Use it.
4729         * config/mips/constraints.md (v): Delete.
4730         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
4731         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
4732         After reload, split into a move and ...
4733         (*tls_get_tp_<mode>_split): ...this new instruction.
4734
4735 2008-07-09  David Daney  <ddaney@avtrex.com>
4736
4737         * config/mips/driver-native.c: Include coretypes.h and tm.h.
4738
4739 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
4740
4741         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
4742         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
4743         Add c argument.
4744         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
4745         htab_delete should be called.  Don't free c.
4746         (lookup_tmp_var): Create temp_htab lazily.
4747         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
4748         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
4749         callers.
4750         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
4751         lower_omp_ordered, lower_omp_critical, lower_omp_for,
4752         create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
4753         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
4754         * tree-sra.c (generate_element_init): Likewise.
4755         * tree-mudflap.c (execute_mudflap_function_ops,
4756         execute_mudflap_function_decls): Likewise.
4757         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
4758         * tree-gimple.h (struct gimplify_ctx): New type.
4759         (push_gimplify_context): Adjust prototype.
4760
4761 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
4762
4763         * tree-ssa-pre.c (phi_translate_1): Update placement of
4764         add_to_value calls.
4765
4766 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
4767
4768         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
4769         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
4770         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
4771         * targhooks.c (default_hard_regno_scratch_ok): New function.
4772         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
4773         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
4774         * recog.c:  Include "target.h".
4775         (peep2_find_free_register): Add check for global regs. Add target
4776         specific check.
4777         * Makefile.in (recog.o): Depend on target.h.
4778
4779 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
4780
4781         * config/sh/sh.c (sh_canonical_va_list_type): New.
4782         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
4783
4784 2008-07-09  Raksit Ashok <raksit@google.com>
4785
4786         * doc/invoke.texi (Option Summary): Mention new option
4787         -Wdisallowed-function-list=...
4788         (Warning Options): Document -Wdisallowed-function-list=...
4789         * common.opt (Wdisallowed-function-list=): New flag.
4790         * flags.h (warn_disallowed_functions): External definition of new
4791         boolean warning flag.
4792         (warn_if_disallowed_function_p): Declare new function.
4793         * opts.c (warning_disallowed_functions): New static variable.
4794         (warn_disallowed_functions): New boolean warning flag.
4795         (warn_if_disallowed_function_p): New function.
4796         (add_comma_separated_to_vector): Rename
4797         add_instrument_functions_exclude_list to this.
4798         (common_handle_option): Handle new option. Rename calls to
4799         add_instrument_functions_exclude_list into calls to
4800         add_comma_separated_to_vector.
4801         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
4802         based on flag warn_disallowed_functions.
4803
4804 2008-07-09  Christian Bruel  <christian.bruel@st.com>
4805
4806         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
4807          instead of get_attr_length.
4808
4809 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4810
4811         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
4812         keywords.
4813         * genemit.c (gen_insn): Likewise.
4814         * gengtype.c (note_def_vec): Likewise.
4815         * gengtype.h (note_def_vec): Likewise.
4816         * genoutput.c (struct data, output_insn_data, process_template,
4817         gen_expand, gen_split, note_constraint): Likewise.
4818         * genrecog.c (new_decision, add_to_sequence, factor_tests,
4819         make_insn_sequence): Likewise.
4820         * gensupport.c (record_insn_name): Likewise.
4821
4822 2008-07-08  Doug Kwan  <dougkwan@google.com>
4823
4824         * config/arm/arm.opt (mandroid): New option.
4825         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
4826         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
4827         (CC1_SPEC): Same.
4828         (CC1PLUS_SPEC): Same.
4829         (LIB_SPEC): Same.
4830         (STARTFILE_SPEC): Same.
4831         (ENDFILE_SPEC): Same.
4832         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
4833         used.
4834
4835 2008-07-08  Raksit Ashok  <raksit@google.com>
4836
4837         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
4838         (set_storage_via_setmem): Fix expected_align parameter.
4839         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
4840         missing from the list.
4841         * doc/md.texi (movmem): Explicitly state that expected alignment is
4842         to be expressed in bytes.
4843         (setmem): Explicitly state that expected alignment is to be expressed
4844         in bytes.
4845
4846 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
4847
4848         * reload.c (find_reloads_subreg_address): Do not require validity
4849         of address in original mode before reloading address.
4850
4851 2008-07-07  Tianwei Sheng  <tianweis@google.com>
4852
4853         * df-core.c (df_remove_problem): Adjust the access to avoid out of
4854         bounds array access.
4855
4856 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
4857
4858         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
4859
4860 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
4861
4862         Fix PR tree-optimization/23455
4863         Fix PR tree-optimization/35286
4864         Fix PR tree-optimization/35287
4865         * Makefile.in (OBJS-common): Remove tree-vn.o.
4866         (tree-vn.o): Remove.
4867         * dbgcnt.def: Add treepre_insert debug counter.
4868         * gcc/tree-flow.h (add_to_value): Updated for other changes.
4869         (debug_value_expressions): Ditto.
4870         (print_value_expressions): Ditto.
4871         * tree-pretty-print.c (dump_generic_node): Updated for
4872         VALUE_HANDLE removal.
4873         * tree-ssa-dom.c (record_equality): Ditto.
4874         (cprop_operand): Ditto.
4875         (lookup_avail_expr): Ditto.
4876         * tree-ssa-threadedge.c
4877         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
4878         (simplify_control_stmt_condition): Ditto.
4879         * tree.c (tree_code_size): Ditto.
4880         (tree_node_structure): Ditto.
4881         (iterative_hash_expr): Ditto.
4882         * tree.def: Ditto.
4883         * tree.h (VALUE_HANDLE_ID): Ditto.
4884         (VALUE_HANDLE_EXPR_SET): Ditto.
4885         (struct tree_value_handle): Ditto.
4886         (union tree_node): Ditto.
4887         * treestruct.def: Ditto.
4888         * tree-vn.c: Removed.
4889         * tree-ssa-pre.c: Rewritten entirely.
4890         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
4891         (constant_value_ids): Ditto.
4892         (vn_nary_op_t): Moved to header.
4893         (vn_phi_t): Ditto.
4894         (vn_reference_op_t): Ditto
4895         (vn_reference_t): Ditto.
4896         (next_value_id): New variable.
4897         (VN_INFO): Add an assert.
4898         (vn_constant_eq): New function.
4899         (vn_constant_hash): Ditto.
4900         (get_or_alloc_constant_value_id): Ditto.
4901         (value_id_constant_p): Ditto.
4902         (vn_reference_compute_hash): De-staticify.
4903         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
4904         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
4905         (valueize_refs): Update opcode if it changes from ssa name to constant.
4906         (vn_reference_lookup_1): Add new argument.
4907         (vn_reference_lookup):  Ditto.
4908         (vn_reference_lookup_pieces): New function.
4909         (vn_reference_insert): Add return type. Modify to deal with value ids.
4910         (vn_reference_insert_pieces):  New function.
4911         (vn_nary_op_compute_hash): De-staticify.
4912         (vn_nary_op_eq): Ditto.
4913         (vn_nary_op_lookup_pieces): New function.
4914         (vn_nary_op_lookup): Add new argument.
4915         (vn_nary_op_insert_pieces): New function.
4916         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
4917         (vn_phi_insert): Ditto.
4918         (visit_unary_op): Update for callee changes.
4919         (visit_binary_op): Ditto.
4920         (visit_reference_op_load): Ditto.
4921         (visit_reference_op_store): Ditto.
4922         (init_scc_vn): Init next_value_id, constant_to_value_id and
4923         constant_value_ids.
4924         (free_scc_vn): Free them.
4925         (set_hashtable_value_ids): New function.
4926         (run_scc_vn): Use it.
4927         (get_max_value_id): New function.
4928         (get_next_value_id): Ditto.
4929         (expressions_equal_p): Moved from tree-vn.c
4930         (sort_vuses): Ditto.
4931         (sort_vuses_heap): Ditto.
4932         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
4933         above).
4934         * tree.c (iterative_hash_hashval_t): Made non-static
4935         * tree.h (iterative_hash_hashval_t): Declare it.
4936
4937 2008-07-08  Martin Jambor  <mjambor@suse.cz>
4938
4939         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
4940         instead of ipa_create_node_params.
4941         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
4942         ipa_check_create_edge_args, free them with
4943         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
4944
4945         * ipa-prop.c: Include flags.h and tree-inline.h.
4946         (ipa_node_params_vector): New variable.
4947         (ipa_edge_args_vector): New variable.
4948         (edge_removal_hook_holder): New variable.
4949         (node_removal_hook_holder): New variable.
4950         (edge_duplication_hook_holder): New variable.
4951         (node_duplication_hook_holder): New variable.
4952         (ipa_detect_param_modifications): Check for presence of modified flags.
4953         (ipa_compute_jump_functions): Check for presence of jump functions.
4954         (ipa_free_edge_args_substructures): New function.
4955         (ipa_create_node_params): Removed.
4956         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
4957         (ipa_free_node_params_substructures): New function.
4958         (ipa_free_all_node_params): Changed to deallocate the on-the-side
4959         vector.
4960         (ipa_edge_removal_hook): New function.
4961         (ipa_node_removal_hook): New function.
4962         (duplicate_array): New function.
4963         (ipa_edge_duplication_hook): New function.
4964         (ipa_node_duplication_hook): New function.
4965         (ipa_register_cgraph_hooks): New function.
4966         (ipa_unregister_cgraph_hooks): New function.
4967         (free_all_ipa_structures_after_ipa_cp): New function.
4968
4969         * ipa-prop.h: Include vec.h.
4970         (ipa_node_params_t): New typedef with vector types for it.
4971         (ipa_edge_args_t):  New typedef with vector types for it.
4972         (IPA_NODE_REF): Changed to access an on-the-side vector.
4973         (IPA_EDGE_REF): Changed to access an on-the-side vector.
4974         (ipa_check_create_node_params): New function.
4975         (ipa_check_create_edge_args): New function.
4976
4977         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
4978         all users.
4979
4980 2008-07-07  Tom Tromey  <tromey@redhat.com>
4981
4982         * configure, config.in: Rebuilt.
4983         * configure.ac: Don't check for scandir or alphasort.
4984
4985 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
4986
4987         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
4988         types immediately after creating them.
4989
4990 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
4991
4992         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
4993
4994 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
4995
4996         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
4997         dump_constraint_graph.
4998         (dump_constraint_edge): New function.
4999         (dump_constraint_graph): New function.
5000         (debug_constraint_graph): New function.
5001         (dump_constraint): Removed useless comparison.
5002         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
5003         (dump_constraint_graph): Declare.
5004         (debug_constraint_graph): Declare.
5005         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
5006
5007 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
5008
5009         * config/i386/i386.c (is_va_list_char_pointer): New.
5010         (ix86_va_start): Replace compare with ms_va_list_type_node
5011         by is_va_list_char_pointer.
5012         (ix86_gimplify_va_arg): Likewise.
5013
5014 2008-07-07  Martin Jambor  <mjambor@suse.cz>
5015
5016         * cgraph.c (cgraph_edge_max_uid): New variable.
5017         (struct cgraph_edge_hook_list): New type.
5018         (struct cgraph_node_hook_list): New type.
5019         (struct cgraph_2edge_hook_list): New type.
5020         (struct cgraph_2node_hook_list): New type.
5021         (first_cgraph_edge_removal_hook): New variable.
5022         (first_cgraph_node_removal_hook): New variable.
5023         (first_cgraph_edge_duplicated_hook): New variable.
5024         (first_cgraph_node_duplicated_hook): New variable.
5025         (cgraph_add_edge_removal_hook): New function.
5026         (cgraph_remove_edge_removal_hook): New function.
5027         (cgraph_call_edge_removal_hooks):  New function.
5028         (cgraph_add_node_removal_hook):  New function.
5029         (cgraph_remove_node_removal_hook):  New function.
5030         (cgraph_call_node_removal_hooks):  New function.
5031         (cgraph_add_edge_duplication_hook):  New function.
5032         (cgraph_remove_edge_duplication_hook):  New function.
5033         (cgraph_call_edge_duplication_hooks):  New function.
5034         (cgraph_add_node_duplication_hook):  New function.
5035         (cgraph_remove_node_duplication_hook):  New function.
5036         (cgraph_call_node_duplication_hooks):  New function.
5037         (cgraph_create_edge): Assign to edge uid.
5038         (cgraph_remove_edge): Call edge removal hooks.
5039         (cgraph_node_remove_callees): Call edge removal hooks.
5040         (cgraph_node_remove_callers): Call edge removal hooks.
5041         (cgraph_remove_node): Call node removal hooks.
5042         (cgraph_clone_edge): Call edge duplication hooks.
5043         (cgraph_clone_node): Call node duplication hooks.
5044
5045         * cgraph.h (cgraph_edge): New field uid.
5046         (cgraph_edge_hook): New type.
5047         (cgraph_node_hook): New type.
5048         (cgraph_2edge_hook): New type.
5049         (cgraph_2node_hook): New type.
5050
5051 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
5052
5053         * config.in: Regenerate.
5054
5055 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
5056
5057         * gcc.c (print_sysroot): New.
5058         (option_map, display_help, process_command): Handle the
5059         -print-sysroot option.
5060         (main): Print the sysroot if requested.
5061         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
5062
5063 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5064
5065         PR target/34780
5066         * unwind-pe.h (size_of_encoded_value): add attribute unused.
5067
5068 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
5069
5070         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
5071         (assign_parm_setup_block_p): Also check mode of entry_parm.
5072
5073 2008-07-07  Richard Guenther  <rguenther@suse.de>
5074
5075         * tree-ssa-structalias.h (set_used_smts): Remove.
5076         * tree-ssa-structalias.c (used_smts): Likewise.
5077         (set_used_smts): Likewise.
5078         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
5079         call to set_used_smts.
5080
5081 2008-07-07  Richard Guenther  <rguenther@suse.de>
5082
5083         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
5084         (new_var_info): Set it to false.
5085         (solution_set_add): Correctly handle pointers outside a var and
5086         inside a field.
5087         (type_safe): Treat variables with is_full_var properly.
5088         (do_sd_constraint): Likewise.
5089         (do_ds_constraint): Likewise.
5090         (process_constraint): Remove zeroing offset for !use_field_sensitive.
5091         (get_constraint_for_ptr_offset): New function.
5092         (get_constraint_for_component_ref): For addresses at least include
5093         the last field of the variable.  Handle is_full_vars properly.
5094         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
5095         (handle_ptr_arith): Remove.
5096         (find_func_aliases): Simplify assignment handling.
5097         (create_function_info_for): For parameter and result varinfos set
5098         is_full_var flag.
5099         (create_variable_info_for): Set is_full_var flag whenever we
5100         just created a single varinfo for a decl.
5101         (init_alias_vars): Initialize use_field_sensitive from
5102         max-fields-for-field-sensitive parameter.
5103
5104 2008-07-07  Richard Guenther  <rguenther@suse.de>
5105
5106         PR tree-optimization/36713
5107         * tree-flow-inline.h (is_call_used): New function.
5108         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
5109         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
5110         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
5111
5112 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
5113
5114         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
5115
5116 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
5117
5118         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
5119
5120 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
5121             Nathan Sidwell  <nathan@codesourcery.com>
5122
5123         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
5124         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
5125         tmake_file.
5126         * config/m68k/t-linux: New.
5127         * doc/install.texi: Document m68k-*-linux is now multilibbed by
5128         default.
5129
5130 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
5131
5132         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
5133         * config/m68k/m68k-devices.def: Remove multilibs that only differ
5134         by MAC/EMAC.
5135
5136 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5137
5138         * gcc.c (execute): Fix -Wc++-compat warning.
5139
5140 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
5141
5142         PR target/36720
5143         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
5144         constant for little endian.
5145
5146 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
5147
5148         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
5149         mips_base_mips16 instead of TARGET_MIPS16.
5150         (mips_base_mips16): Declare.
5151         * config/mips/mips.c (mips_base_mips16): Make global.
5152         (was_mips16_p): Remove GTY marker.
5153         (was_mips16_pch_p): New variable.
5154         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
5155         (mips_override_options): Force to non-MIPS16 mode initially.
5156         Do not complain about MIPS16 PIC incompatibilities here.
5157         Only allow -mgpopt if -mexplicit-relocs is in force for
5158         non-MIPS16 code.
5159
5160 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
5161
5162         * configure.ac: Check for caddr_t, define to char * if not defined.
5163         * configure: Regenerate.
5164         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
5165         (mmap_gt_pch_use_address): Likewise.
5166         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
5167
5168 2008-07-06  Richard Guenther  <rguenther@suse.de>
5169
5170         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
5171         (new_var_info): Deal with it.
5172         (solution_set_add): Likewise.
5173         (bitpos_of_field): Make signed, fix.
5174         (struct fieldoff): Remove type and decl fields.  Make size field
5175         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
5176         flags.
5177         (fieldoff_compare): Deal with it.
5178         (push_fields_onto_fieldstack): Remove has_union argument, glob
5179         adjacent non-pointer fields together.
5180         (create_function_info_for): Do not set has_union.
5181         (create_variable_info_for): Simplify.
5182
5183 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
5184
5185         * config.gcc (extra_headers): Add cross-stdarg.h for target
5186         x86_64-*-* and i?86-*-*.
5187         * config/i386/cross-stdarg.h: New.
5188         * builtins.c (std_fn_abi_va_list): New.
5189         (std_canonical_va_list_type): New.
5190         (stabilize_va_list): Replace va_list_type_node use by
5191         mtarget.canonical_va_list_type.
5192         (gimplify_va_arg_expr): Likewise.
5193         (expand_builtin_va_copy): Replace va_list_type_node use by
5194         mtarget.fn_abi_va_list.
5195         * tree-sra.c (is_va_list_type): New helper.
5196         (decl_can_be_decomposed_p): Replace
5197         va_list_type_node use by is_va_list_type.
5198         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
5199         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
5200         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
5201         * config/i386/i386-protos.h (ix86_get_valist_type): New.
5202         (ix86_enum_va_list): New.
5203         * config/i386/i386.c (sysv_va_list_type_node): New.
5204         (ms_va_list_type_node): New.
5205         (ix86_function_type_abi): Remove sorry.
5206         (ix86_build_builtin_va_list_abi): New.
5207         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
5208         for 64-bit targets.
5209         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
5210         (ix86_init_builtins_va_builtins_abi): New.
5211         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
5212         for 64-bit targets.
5213         (ix86_handle_abi_attribute): New.
5214         (attribute_spec): Add sysv_abi and ms_abi.
5215         (ix86_fn_abi_va_list): New.
5216         (ix86_canonical_va_list_type): New.
5217         (ix86_enum_va_list): New.
5218         (TARGET_FN_ABI_VA_LIST): New.
5219         (TARGET_CANONICAL_VA_LIST_TYPE): New.
5220         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
5221         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
5222         (TARGET_CANONICAL_VA_LIST_TYPE): New.
5223         (TARGET_ENUM_VA_LIST): New.
5224         * expr.h (std_fn_abi_va_list): New.
5225         (std_canonical_va_list_type): New.
5226         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
5227         (TARGET_CANONICAL_VA_LIST_TYPE): New.
5228         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
5229         TARGET_CANONICAL_VA_LIST_TYPE.
5230         * target.h (struct gcc_target): Add fn_abi_va_list hook
5231         and canonical_va_list_type hook.
5232
5233 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5234
5235         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
5236         integral and pointer types.
5237
5238 2008-07-04  Roger Sayle  <roger@eyesopen.com>
5239
5240         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
5241         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
5242
5243 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
5244
5245         PR target/36684
5246         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
5247
5248 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
5249
5250         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
5251         build_gimple_modify_stmt.
5252         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
5253         gimple operand.  Use fold_build* instead of build*.
5254
5255 2008-07-04  Richard Guenther  <rguenther@suse.de>
5256
5257         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
5258         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
5259         properly to compute the reachability set if we do field-sensitive PTA.
5260         * invoke.texi (max-fields-for-field-sensitive): Document default.
5261         * opts.c (decode_options): Set max-fields-for-field-sensitive to
5262         100 for optimize >= 2.
5263
5264 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5265
5266         * ggc-zone.c (lookup_page_table_if_allocated,
5267         set_page_table_entry, zone_find_object_size, alloc_small_page,
5268         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
5269         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
5270         -Wc++-compat and/or -Wcast-qual warnings.
5271
5272 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
5273
5274         PR target/36634
5275         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
5276         pic_offset_table_rtx to be marked as used here.
5277         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
5278         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
5279         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
5280         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
5281         !TARGET_SECURE_PLT.
5282
5283 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5284
5285         * alloc-pool.c (hash_descriptor, eq_descriptor,
5286         alloc_pool_descriptor): Fix -Wc++-compat warnings.
5287         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
5288         Likewise.
5289         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
5290         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
5291         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
5292         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
5293         Likewise.
5294
5295 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
5296
5297         * tree-flow.h (loop_only_exit_p): Declare.
5298         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
5299         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
5300         the number of iterations if it is constant.  Otherwise, if this is the
5301         only possible exit of the loop, use the conservative estimate on the
5302         number of iterations of the entire loop if available.
5303
5304 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
5305
5306         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
5307         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
5308         Add synchronization functions.
5309         * config/sync.c: New file.
5310         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
5311         (LIBGCC_SYNC_CFLAGS): Likewise.
5312
5313 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
5314
5315         PR target/36710
5316         * config/i386/i386.md (mode): Add TF to "mode" attribute.
5317         (*pushtf_sse): New insn pattern.
5318         (pushtf splitters): New splitters.
5319
5320 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
5321
5322         PR middle-end/35736
5323         * predict.c (build_predict_expr): Use void_type_node for the tree
5324         type, instead of NULL_TREE.
5325
5326 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
5327
5328         * config/i386/i386.c (contains_aligned_value_p): Return true
5329         for TCmode.
5330         (ix86_data_alignment): Align TCmode to 128bits.
5331         (ix86_local_alignment): Likewise.
5332
5333 2008-07-03  Andrew Haley  <aph@redhat.com>
5334
5335         PR bootstrap/33304
5336         * vec.h (VEC_TA): New.
5337         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
5338         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
5339         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
5340         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
5341         (C_COMMON_FIXED_TYPES): Remove first arg.
5342         (C_COMMON_FIXED_MODE_TYPES): Likewise.
5343         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
5344         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
5345         not to use empty macro arguments.
5346
5347 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
5348
5349         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
5350         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
5351         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
5352         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
5353         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
5354         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
5355         config/ia64/crtn.asm, config/m68hc11/larith.asm,
5356         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
5357         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
5358         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
5359         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
5360         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
5361         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
5362         config/rs6000/e500crtres64gpr.asm,
5363         config/rs6000/e500crtres64gprctr.asm,
5364         config/rs6000/e500crtrest32gpr.asm,
5365         config/rs6000/e500crtrest64gpr.asm,
5366         config/rs6000/e500crtresx32gpr.asm,
5367         config/rs6000/e500crtresx64gpr.asm,
5368         config/rs6000/e500crtsav32gpr.asm,
5369         config/rs6000/e500crtsav64gpr.asm,
5370         config/rs6000/e500crtsav64gprctr.asm,
5371         config/rs6000/e500crtsavg32gpr.asm,
5372         config/rs6000/e500crtsavg64gpr.asm,
5373         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
5374         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
5375         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
5376         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
5377         config/sparc/sol2-cn.asm: Remove .file directives.
5378
5379 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
5380
5381         * resource.c (mark_referenced_resources): Look inside
5382         UNSPEC_VOLATILEs and ASM_INPUTs.
5383
5384 2008-07-02  Ian Lance Taylor  <iant@google.com>
5385
5386         * rtlanal.c (add_reg_note): New function.
5387         * rtl.h (add_reg_note): Declare.
5388         * auto-inc-dec.c (attempt_change): Use add_reg_note.
5389         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
5390         * builtins.c (expand_builtin_longjmp): Likewise.
5391         (expand_builtin_nonlocal_goto): Likewise.
5392         * calls.c (emit_call_1, expand_call): Likewise.
5393         * cfgexpand.c (add_reg_br_prob_note): Likewise.
5394         * cfglayout.c (fixup_reorder_chain): Likewise.
5395         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
5396         (commit_one_edge_insertion): Likewise.
5397         * combine.c (move_deaths, distribute_notes): Likewise.
5398         * df-problems.c (df_set_note): Likewise.
5399         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
5400         (set_unique_reg_note): Likewise.
5401         (emit_copy_of_insn_after): Likewise.
5402         * expr.c (expand_expr_real): Likewise.
5403         * gcse.c (add_label_notes): Likewise.
5404         * haifa-sched.c (create_check_block_twin): Likewise.
5405         * jump.c (mark_jump_label_1): Likewise.
5406         * loop-doloop.c (add_test, doloop_modify): Likewise.
5407         * loop-unswitch.c (compare_and_jump_seq): Likewise.
5408         * lower-subreg.c (move_eh_region_note): Likewise.
5409         * optabs.c (emit_libcall_block): Likewise.
5410         * predict.c (predict_insn): Likewise.
5411         (combine_predictions_for_insn): Likewise.
5412         * recog.c (peephole2_optimize): Likewise.
5413         * regmove.c (try_auto_increment): Likewise.
5414         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
5415         * reload.c (find_reloads): Likewise.
5416         * reload1.c (fixup_eh_region_note): Likewise.
5417         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
5418         * reorg.c (delete_prior_computation): Likewise.
5419         (delete_computation, dbr_schedule): Likewise.
5420         * config/pa/pa.c (legitimize_pic_address): Likewise.
5421         * config/sh/sh.c (sh_reorg): Likewise.
5422
5423 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
5424
5425         PR target/36669
5426         * config/libgcc-glibc.ver: Add %exclude.
5427         * config/m32r/libgcc-glibc.ver: Likwise.
5428         * config/s390/libgcc-glibc.ver: Likwise.
5429         * config/sh/libgcc-glibc.ver: Likwise.
5430         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
5431
5432         * config/i386/libgcc-glibc.ver: New.
5433
5434         * config/i386/libgcc-x86_64-glibc.ver: Removed.
5435
5436 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
5437
5438         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
5439         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
5440         i[34567]86-*-linux*, x86_64-*-linux*.  Add
5441         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
5442         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
5443         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
5444         i[34567]86-*-linux*, x86_64-*-linux*.
5445
5446         * libgcc-std.ver: Add empty GCC_4.4.0.
5447
5448         * mkmap-symver.awk: Support multiple versions per symbol.
5449
5450         * config/i386/i386.c (ix86_init_builtins): Always define
5451         __builtin_fabsq and __builtin_copysignq with fallbacks.
5452         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
5453         and __builtin_copysignq if SSE2 isn't available.
5454
5455         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
5456         (LIBGCC2_TF_CEXT): Likwise.
5457         (TF_SIZE): Likwise.
5458
5459         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
5460
5461         * config/i386/sfp-machine.h: Moved to libgcc.
5462
5463         * config/i386/sfp-machine.h: New.
5464         * config/i386/t-linux: Likwise.
5465
5466         * config/i386/t-darwin: Remove softfp_wrap_start and
5467         softfp_wrap_end.
5468         * config/i386/t-darwin64: Likewise.
5469
5470         * config/i386/t-fprules-softfp64: Renamed to ...
5471         * config/i386/t-fprules-softfp: This.
5472
5473         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
5474         and softfp_wrap_end.
5475
5476 2008-07-02  Jason Merrill  <jason@redhat.com>
5477
5478         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
5479
5480         * tree.c (ctor_to_list): New fn.
5481         * tree.h: Declare it.
5482         (CONSTRUCTOR_ELT): New macro.
5483         (CONSTRUCTOR_NELTS): New macro.
5484
5485 2008-07-02  Richard Guenther  <rguenther@suse.de>
5486
5487         * tree-ssa-structalias.c (struct variable_info): Reorder
5488         to fill padding on 64bit hosts.  Make collapsed_to an int.
5489         (get_varinfo_fc): Deal with that.
5490         (new_var_info): Likewise.
5491         (collapse_rest_of_var): Likewise.
5492
5493 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
5494
5495         * doc/install.texi (--enable-java-home): Document.
5496         (--enable-aot-compile-rpm): Likewise.
5497         (--with-arch-directory): Likewise.
5498         (--with-os-directory): Likewise.
5499         (--with-origin-name): Likewise.
5500         (--with-arch-suffix): Likewise.
5501         (--with-jvm-root-dir): Likewise.
5502         (--with-jvm-jar-dir): Likewise.
5503         (--with-python-dir): Likewise.
5504
5505 2008-07-02  Richard Guenther  <rguenther@suse.de>
5506
5507         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
5508         from decls explicitly.  Merge operand checking from tuples.
5509
5510 2008-07-02  Martin Jambor  <mjambor@suse.cz>
5511
5512         * tree-switch-conversion.c: Included timevar.h which I forgot before.
5513
5514 2008-07-02  Martin Jambor  <mjambor@suse.cz>
5515
5516         * tree-switch-conversion.c: Included timevar.h
5517         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
5518
5519         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
5520
5521 2008-07-02  Martin Jambor  <mjambor@suse.cz>
5522
5523         * tree-switch-conversion.c: Corrected various comments and
5524         whitespace issues
5525         (build_constructors): Fixed minor formatting mistakes.
5526
5527         * invoke.texi (Optimize Options): Corrected the
5528         switch-conversion-max-branch-ratio parameter.
5529
5530 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
5531
5532         * final.c (asm_insn_count): Return zero for an empty asm body.
5533
5534 2008-07-02  Richard Guenther  <rguenther@suse.de>
5535
5536         * bitmap.h (bitmap_set_bit): Return bool.
5537         (bitmap_clear_bit): Likewise.
5538         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
5539         write to the bitmap if it would.
5540         (bitmap_clear_bit): Likewise.
5541         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
5542         bitmap_set_bit return value.
5543         (add_pred_graph_edge): Likewise.
5544         (add_graph_edge): Likewise.
5545         (do_sd_constraint): Likewise.
5546         (do_ds_constraint): Likewise.
5547
5548 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5549
5550         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
5551         Fix -Wc++-compat and/or -Wcast-qual warnings.
5552         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
5553         gen_regparm_prefix): Likewise.
5554         * vmsdbgout.c (write_modbeg, lookup_filename,
5555         vmsdbgout_source_line, vmsdbgout_init): Likewise.
5556
5557 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
5558
5559         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
5560         defaults.h definition apply.
5561
5562 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
5563
5564         * function.c (assign_parm_remove_parallels): New.
5565         (assign_parm_setup_block_p): Do not return true for non-BLKmode
5566         PARALLELs.
5567         (assign_parm_setup_block): Do not handle them.
5568         (assign_parm_setup_reg, assign_parm_setup_stack): Call
5569         assign_parm_remove_parallels.
5570
5571 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
5572
5573         * c-typeck.c (convert_for_assignment): Use
5574         vector_targets_convertible_p.
5575         * c-common.c (vector_targets_convertible_p): New.
5576         * c-common.h (vector_targets_convertible_p): New prototype.
5577         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
5578         opaque_p_V2SI_type_node.
5579
5580 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
5581
5582         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
5583         RFmode constants.
5584
5585 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
5586
5587         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
5588         TFmode constants via two element DImode vector for hosts with
5589         HOST_BITS_PER_WIDE_INT < 64.
5590         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
5591         also for HOST_BITS_PER_WIDE_INT < 64.
5592
5593 2008-07-01  Richard Guenther  <rguenther@suse.de>
5594
5595         PR tree-optimization/36666
5596         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
5597         (get_constraint_exp_from_ssa_var): Split into ...
5598         (get_constraint_exp_for_temp): ... this ...
5599         (get_constraint_for_ssa_var): ... and that.
5600         Return constraint expressions for all touched sub-fields
5601         if the results address is not taken.
5602         (process_constraint): Remove assertion that aggregate
5603         assignments do not happen at this place.
5604         (get_constraint_for_component_ref): Add address_p argument.
5605         Return constraint expressions for all touched sub-fields
5606         if the results address is not taken.
5607         (do_deref): Use get_constraint_exp_for_temp.
5608         (get_constraint_for_1): Rename from ...
5609         (get_constraint_for): ... this.  Add the old function as wrapper.
5610         (do_structure_copy): Use get_constraint_for_1.
5611
5612 2008-07-01  Martin Jambor  <mjambor@suse.cz>
5613
5614         * Makefile.in (tree-switch-conversion.o): Add.
5615         (OBJS-common): Add tree-swtch-conversion.o.
5616         * passes.c (init_optimization_passes): Add pass_convert_switch.
5617         * tree-pass.h: (pass_convert_switch): Add.
5618         * tree-switch-conversion.c: New file.
5619         * gcc.dg/tree-ssa/cswtch.c: New testcase.
5620         * common.opt (ftree-cswtch): New option.
5621         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
5622         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
5623         * opts.c (decode_options): Set flag_tree_switch_conversion when
5624         optimization level is >= 2.
5625         * doc/invoke.texi (Optimize Options): Added description of
5626         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
5627
5628 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5629
5630         * config/darwin-driver.c (darwin_default_min_version): Fix
5631         -Wc++-compat warnings.
5632
5633 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
5634
5635         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
5636         of operand 0.
5637
5638 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
5639
5640         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
5641
5642 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
5643
5644         PR rtl-optimization/34744
5645         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
5646         (df_scan_free_internal): Free data structures not
5647         allocated in storage pools.
5648         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
5649         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
5650         df_scan_free_mws_vec.
5651         * dse.c (dse_step6): Free offset_map_p and offset_map_n
5652         unconditionally.
5653
5654 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
5655
5656         * config/i386/i386.c (contains_aligned_value_p): Return true
5657         for __float128.
5658         (ix86_function_arg_boundary): Return its natural boundary
5659         for __float128.
5660         (return_in_memory_32): Don't check TDmode.
5661         (ix86_split_to_parts): Support splitting into 4 parts and
5662         support TFmode for 32bit target.
5663         (ix86_split_long_move): Support splitting into 4 parts.
5664         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
5665         for SSE2.
5666         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
5667         (ix86_init_builtins): Here.
5668         (ix86_scalar_mode_supported_p): Always return true for TFmode.
5669         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
5670         'q' and 'w', respectively.
5671
5672         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
5673         TARGET_64BIT.
5674         (movtf_internal): Likewise.
5675         (<code>tf2): Likewise.
5676         (*absnegtf2_sse): Likewise.
5677         (copysign<mode>3): Likewise.
5678         (copysign<mode>3_const): Likewise.
5679         (copysign<mode>3_var): Likewise.
5680         (define_split UNSPEC_COPYSIGN): Likewise.
5681         * config/i386/sse.md (*nandtf3): Likewise.
5682         (<code>tf3): Likewise.
5683         (*<code>tf3): Likewise.
5684
5685 2008-06-30  Joey Ye  <joey.ye@intel.com>
5686             H.J. Lu  <hongjiu.lu@intel.com>
5687
5688         * global.c (compute_regsets): Set frame_pointer_needed here.
5689         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
5690
5691 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
5692
5693         * doc/install.texi (specific): Expand Windows build notes.
5694
5695 2008-06-30  Ira Rosen  <irar@il.ibm.com>
5696
5697         PR tree-optimization/36648
5698         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
5699         number of prolog iterations by step. Fix the comment.
5700
5701 2008-06-30  Richard Guenther  <rguenther@suse.de>
5702
5703         PR middle-end/36671
5704         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
5705         handle calls from ECF_MALLOC functions.
5706         (handle_pure_call): ECF_MALLOC functions do not return
5707         call-used memory.
5708         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
5709
5710 2008-06-29  Andreas Schwab  <schwab@suse.de>
5711
5712         * config/m68k/m68k.c (print_operand): Always print a float
5713         constant in hex.
5714         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
5715         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
5716         Remove macros.
5717
5718         * config/rs6000/x-linux64: Remove never used file.
5719
5720 2008-06-29  Richard Guenther  <rguenther@suse.de>
5721
5722         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
5723         prototype.
5724         (struct alias_info): Move ...
5725         * tree-ssa-alias.c: ... here.
5726         (update_alias_info): Declare.
5727         (compute_may_aliases): Call it.
5728         (update_alias_info): New function.
5729         * tree-ssa-structalias.c (update_alias_info): Move ...
5730         * tree-ssa-alias.c (update_alias_info_1): ... here.
5731         * tree-ssa-structalias.c (process_constraint_1): Remove
5732         unused from_call argument.  Rename to ...
5733         (process_constraint): ... this.  Delete old wrapper.
5734         (make_constraint_to): Adjust callers.
5735         (handle_const_call): Likewise.
5736         (handle_pure_call): Likewise.
5737         (init_base_vars): Likewise.
5738         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
5739         (find_func_aliases): We don't need structure copies for
5740         complex types.
5741         (make_constraint_from_anything): Remove.
5742         (create_variable_info_for): For globals make constraints
5743         from escaped, not from anything.
5744         (compute_points_to_sets): Do not call update_alias_info.
5745         (ipa_pta_execute): Use make_constraint_from.
5746
5747 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5748
5749         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
5750         (bitmap.o-warn, dominance.o-warn): New.
5751         * configure.ac (cxx_compat_warn): Delete.
5752         (loose_warn): Add -Wcast-qual and -Wc++-compat.
5753         * system.h: Remove #pragma diagnostic for -Wcast-qual and
5754         -Wc++-compat.
5755         * configure: Regenerate.
5756
5757         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
5758         warnings.
5759
5760 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5761
5762         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
5763         * df-scan.c (df_notes_rescan): Likewise.
5764         * ggc-page.c (set_page_table_entry): Likewise.
5765         * intl.c (gcc_gettext_width): Likewise.
5766         * varasm.c (get_unnamed_section, get_noswitch_section,
5767         get_section): Likewise.
5768
5769 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
5770
5771         * regrename.c (build_def_use): Don't copy RTX.
5772
5773 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
5774
5775         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
5776         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
5777         punctuation.  Use @ref instead of @xref.
5778         (Function Names): Remove stray @display/@end display.
5779         (C++ Attributes): Use @ref instead of @xref.
5780         (Deprecated Features): Fix punctuation around @xref.
5781         (Backwards Compatibility): Likewise.
5782         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
5783
5784 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
5785
5786         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
5787         constants for E500 double.
5788
5789 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5790
5791         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
5792         element type of const_vector.
5793
5794 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
5795
5796         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
5797         Remove FLAGS_REG clobber from expander pattern.
5798         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
5799         (anddi3, andsi3, andhi3, andqi3): Ditto.
5800         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
5801         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
5802         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
5803         (ashlsi3, ashlhi3, ashlqi3): Ditto.
5804         (ashrsi3, ashrhi3, ashrqi3): Ditto.
5805         (lshrsi3, lshrhi3, lshrqi3): Ditto.
5806         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
5807         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
5808
5809 2008-06-28  Richard Guenther  <rguenther@suse.de>
5810
5811         * tree-ssa-structalias.c (callused_id, var_callused,
5812         callused_tree): Add.
5813         (handle_pure_call): New function.
5814         (find_func_aliases): Call it.
5815         (find_what_p_points_to): Handle the call-used set.
5816         (clobber_what_escaped): Likewise.
5817         (compute_call_used_vars): New function.
5818         (init_base_vars): Init the call-used variable.
5819         (do_sd_constraint): Do not propagate the solution from CALLUSED
5820         but use CALLUSED as a placeholder.
5821         (solve_graph): Likewise.
5822         * tree-flow-inline.h (gimple_call_used_vars): New function.
5823         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
5824         (compute_call_used_vars): Declare.
5825         * tree-ssa-alias.c (set_initial_properties): Call
5826         compute_call_used_vars.
5827         (reset_alias_info): Clear call-used variables.
5828         (add_call_clobber_ops): Assert we are not called for const/pure
5829         functions.  Remove handling of them.
5830         (add_call_read_ops): Handle pure functions by adding the
5831         call-used set of variables as VUSEs.
5832         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
5833         (delete_tree_ssa): Free it.
5834         * tree-dfa.c (remove_referenced_var): Clear the var from the
5835         call-used bitmap.
5836
5837 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
5838
5839         * tree.c (build_varargs_function_type_list): New.
5840         (build_function_type_list_1): New.
5841         (build_function_type_list): Use build_function_type_list_1.
5842         * tree.h (build_varargs_function_type_list): New.
5843
5844 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5845
5846         PR target/34856
5847         * config/spu/spu.c (spu_builtin_splats): Do not generate
5848         invalid CONST_VECTOR expressions.
5849         (spu_expand_vector_init): Likewise.
5850
5851 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
5852
5853         * optabs.c (libfunc_decls): New variable.
5854         (libfunc_decl_hash, libfunc_decl_eq): New functions.
5855         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
5856         for the same function twice.
5857
5858 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
5859
5860         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
5861         ix86_expand_binary_operator directly.
5862         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
5863         for operand 2.
5864         (*ashrti3_1): Ditto.
5865         (*lshrti3_1): Ditto.
5866         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
5867         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
5868         using only one splitter.  Conditionaly execute splitter before or
5869         after peephole2 pass.
5870         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
5871         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
5872         Use only one alternative in asm template.
5873         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
5874         in asm template.
5875         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
5876         "J" operand constraint for operand 2.
5877         (*ashldi3_cconly_rex64): Ditto.
5878         (*ashrdi3_cmp_rex64): Ditto.
5879         (*ashrdi3_cconly_rex64): Ditto.
5880         (*lshrdi3_cmp_rex64): Ditto.
5881         (*lshrdi3_cconly_rex64): Ditto.
5882         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
5883         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
5884         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
5885         gen_x86_shrd_1.
5886
5887 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
5888
5889         * gimplify.c (omp_is_private): Don't return true if decl is not
5890         already private on #pragma omp for or #pragma omp parallel for.
5891
5892         PR debug/36617
5893         * tree-cfg.c (struct move_stmt_d): Replace block field with
5894         orig_block and new_block fields.
5895         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
5896         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
5897         (move_block_to_fn): Replace vars_map and new_label_map arguments
5898         with struct move_stmt_d pointer.
5899         (replace_block_vars_by_duplicates): New function.
5900         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
5901         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
5902         all subblocks of ORIG_BLOCK to the new function.  Call
5903         replace_block_vars_by_duplicates.
5904         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
5905         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
5906         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
5907         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
5908         (expand_omp): Temporarily set input_location to the location of
5909         region's controlling stmt.
5910         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
5911         BIND_EXPR, push ctx->block_vars and gimplification vars into
5912         the BIND_EXPR and its block's BLOCK_VARS instead of directly
5913         into dest function.
5914         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
5915         there are any BLOCK_VARS.
5916         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
5917         OMP_PARALLEL or OMP_TASK stmt.
5918         (lower_omp): Save and restore input_location around the lower_omp_1
5919         call.
5920
5921 2008-06-27  Richard Guenther  <rguenther@suse.de>
5922
5923         PR tree-optimization/36400
5924         PR tree-optimization/36373
5925         PR tree-optimization/36344
5926         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
5927         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
5928         (update_alias_info): Remove call clobbering code.
5929         (make_constraint_to): New helper function.
5930         (make_escape_constraint): Likewise.
5931         (handle_rhs_call): Use it on all pointer containing arguments.
5932         Also mark the static chain escaped.
5933         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
5934         instead of ANYTHING.
5935         (make_constraint_from): New helper split out from ...
5936         (make_constraint_from_anything): ... here.
5937         (find_func_aliases): Add constraints for escape sites.
5938         (intra_create_variable_infos): Make constraints from NONLOCAL
5939         for parameters.
5940         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
5941         as ANYTHING.
5942         (clobber_what_p_points_to): Remove.
5943         (clobber_what_escaped): New function.
5944         (init_base_vars): Init NONLOCAL and ESCAPED.
5945         (do_sd_constraint): Do not propagate the solution from ESCAPED
5946         but use ESCAPED as a placeholder.
5947         (solve_graph): Likewise.
5948         * tree-flow.h (clobber_what_p_points_to): Remove.
5949         (clobber_what_escaped): Declare.
5950         * tree-ssa-alias.c (set_initial_properties): Call it.
5951         Remove code clobbering escaped pointers.
5952
5953 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
5954
5955         * function.c (allocate_struct_function): Only allocate a unique
5956         funcdef_no if the decl is nonzero.
5957
5958 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
5959
5960         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
5961         * config/mips/mips.c (mips_split_const_insns): New function.
5962         * config/mips/mips.md (move_type): New attribute.
5963         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
5964         (dword_mode): New attribute.
5965         (type): Avoid long line.  Map "move_type"s to "type"s,
5966         choosing "multi" for doubleword moves if appropriate.
5967         Swap MTC/MFC comments to match their declaration order.
5968         (extended_mips16): Default to "yes" if "move_type" is "sll0",
5969         "type" is "branch" or "jal" is "direct".
5970         (length): Handle "extended_mips16" first.  Make the default
5971         "0" for "ghost" instructions.  Set the length from "move_type".
5972         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
5973         of "type", with "sll0" for the register alternative.  Remove the
5974         "extended_mips16" attribute.
5975         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
5976         of "type", with "shift_shift" for the register alternative.
5977         Remove the "length" attribute.
5978         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
5979         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
5980         of "type", with "andi" for the register alternative.
5981         (*zero_extendqihi2): Likewise.
5982         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
5983         of "andi" instead of a "type" of "arith".
5984         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
5985         instead of "type".
5986         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
5987         (mov_<store>r, *mov<mode>_ra): Likewise.
5988         (extendsidi2): Use "move_type" instead of "type", with "move"
5989         for the register alternative.
5990         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
5991         of "type", with "signext" for the register alternative.
5992         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
5993         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
5994         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
5995         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
5996         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
5997         (unnamed branch insn): Likewise.
5998         (*movdi_gp32_fp64): Fold into...
5999         (*movdi_32bit): ...here.
6000         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
6001         (*movdf_hardfloat): ...this new pattern.
6002         (*movdf_softfloat): Remove redundant FPR alternatives.
6003         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
6004         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
6005         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
6006         the "move" attribute.
6007         (*movdi_32bit): Use "move_type" instead of "type" and remove the
6008         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
6009         and "store" for COP loads and stores.
6010         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
6011         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
6012         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
6013         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
6014         (*movtf_mips16, *movv2sf): Likewise.
6015         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
6016         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
6017         (mfhc1<mode>): Use "move_type" instead of "move".
6018         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
6019         (loadgp_blockage): Remove the "length" attribute.
6020         (blockage, set_got_version, update_got_version): Likewise.
6021         (call_internal): Remove the "extended_mips16" attribute.
6022         (call_value_internal, call_value_multiple_internal): Likewise.
6023         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
6024         instead of "move".
6025         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
6026         the "length" attribute.
6027
6028 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6029
6030         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
6031         -Wcast-qual warnings.
6032         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
6033         handle_pragma_pop_macro): Likewise.
6034         * collect2.c (resolve_lib_name): Likewise.
6035         * config/arc/arc.c (arc_init): Likewise.
6036         * config/arm/arm.c (neon_builtin_compare,
6037         locate_neon_builtin_icode): Likewise.
6038         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
6039         * config/bfin/bfin.c (bfin_init_machine_status,
6040         bfin_optimize_loop): Likewise.
6041         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
6042         * config/cris/cris.c (cris_init_expanders): Likewise.
6043         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
6044         * config/darwin.c (machopic_indirection_eq,
6045         machopic_indirection_name, machopic_output_indirection): Likewise.
6046         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
6047         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
6048         frv_optimize_membar): Likewise.
6049         * config/i386/cygwin.h (mingw_scan,
6050         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
6051         * config/i386/cygwin1.c (mingw_scan): Likewise.
6052         * config/i386/i386.c (machopic_output_stub): Likewise.
6053         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
6054         i386_pe_unique_section): Likewise.
6055         * config/ia64/ia64.c (ia64_init_machine_status,
6056         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
6057         Likewise.
6058         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
6059         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
6060         * config/m68k/m68k.c (m68k_handle_option,
6061         m68k_sched_md_init_global): Likewise.
6062         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
6063         mcore_unique_section): Likewise.
6064         * config/mips/mips.c (mips_block_move_straight,
6065         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
6066         Likewise.
6067         * config/mmix/mmix.c (mmix_init_machine_status,
6068         mmix_encode_section_info): Likewise.
6069         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
6070         * config/rs6000/rs6000.c (rs6000_init_machine_status,
6071         print_operand_address, output_toc, redefine_groups,
6072         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
6073         * config/s390/s390.c (s390_init_machine_status): Likewise.
6074         * config/score/score.c (score_block_move_straight,
6075         score_block_move_loop_body): Likewise.
6076         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
6077         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
6078         * emit-rtl.c (find_auto_inc): Likewise.
6079         * gcc.c (translate_options, process_command): Likewise.
6080         * reorg.c (dbr_schedule): Likewise.
6081         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
6082         * xcoffout.c (xcoffout_declare_function): Likewise.
6083
6084 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
6085
6086         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
6087         ipa-pta working again.
6088
6089 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
6090
6091         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
6092         genautomata.
6093
6094 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
6095
6096         * config.gcc (powerpc*-*-*): Add new core e500mc.
6097         * config/rs6000/e500mc.md: New file.
6098         * config/rs6000/rs6000.c (processor_costs): Add new costs for
6099         e500mc.
6100         (rs6000_override_options): Add e500mc case to
6101         processor_target_table. Altivec and Spe options not allowed
6102         with e500mc. Add isel instruction to e500mc by
6103         default. Initialize rs6000_cost for e500mc.
6104         (rs6000_issue_rate): Set issue rate for e500mc.
6105         * config/rs6000/rs6000.h (processor_type): Add
6106         PROCESSOR_PPCE500MC.
6107         (ASM_CPU_SPEC): Add e500mc.
6108         Set TARGET_ISEL to rs6000_isel.
6109         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
6110         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
6111         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
6112         Include e500mc.md.
6113         * doc/invoke.texi: Add e500mc to list of cpus.
6114
6115 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
6116
6117         PR c/34867
6118         * c-lex.c (lex_charconst): Initialize unsignedp.
6119
6120 2008-06-27  Olivier Hainque  <hainque@adacore.com>
6121
6122         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
6123         documented assumptions.
6124
6125 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
6126
6127         * dwarf2out.c: Remove trailing white spaces.  Break long line
6128         in comments.
6129
6130 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
6131
6132         * libfuncs.h (LTI_synchronize): New libfunc_index.
6133         (synchronize_libfunc): Declare.
6134         * builtins.c (expand_builtin_synchronize): Consider using
6135         synchronize_libfunc before falling back on an asm blockage.
6136         * config/mips/mips.c: Include libfuncs.h
6137         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
6138
6139 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
6140
6141         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
6142         parameter.  Copy stack_reg to r11 where appropriate.
6143         (no_global_regs_above): Add gpr parameter.
6144         (rs6000_stack_info): Only add padding for SPE save area if we
6145         are saving SPE GPRs and CR.
6146         (saveres_routine_syms): New variable.
6147         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
6148         Define.
6149         (rs6000_savres_routine_sym): New function.
6150         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
6151         split out of...
6152         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
6153         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
6154         Tweak FPR out-of-line saving.
6155         (rs6000_make_savres_rtx): New function.
6156         (rs6000_use_multiple_p): New function.
6157         (rs6000_savres_strategy): New function.
6158         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
6159         out-of-line if appropriate.
6160         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
6161         if we are optimizing for size.
6162         (GP_SAVE_INLINE): Define.
6163         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
6164         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
6165         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
6166         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
6167         (*save_fpregs_<mode>): Add use of r11.
6168         (*restore_gpregs_<mode>): New insn.
6169         (*return_and_restore_gpregs_<mode>): New insn.
6170         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
6171         use r11.
6172         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
6173         (*restore_gpregs_spe): New insn.
6174         (*return_and_restore_gpregs_spe): New insn.
6175         * config/rs6000/predicates.md (save_world_operation): Fix check.
6176
6177 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
6178
6179         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
6180         this point, so assert that.
6181
6182 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
6183
6184         * cfganal.c: Include vec.h and vecprim.h.
6185         (compute_idf): Import from...
6186         * tree-into-ssa (compute_idf): ...here.
6187         * basic-block.h (compute_idf): Export.
6188
6189 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
6190
6191         * c-decl.c (merge_decls): Use !current_function_decl to check for
6192         extern declaration of C99 inline function being at file scope.
6193
6194 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
6195
6196         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
6197
6198 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6199
6200         * alias.c (record_alias_subset, init_alias_analysis): Fix
6201         -Wc++-compat and/or -Wcast-qual warnings.
6202         * attribs.c (lookup_attribute_spec): Likewise.
6203         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
6204         copy_bb, connect_traces,
6205         find_rarely_executed_basic_blocks_and_cr): Likewise.
6206         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
6207         note_btr_set, migrate_btr_defs): Likewise.
6208         * builtins.c (result_vector, expand_builtin_memcpy,
6209         expand_builtin_mempcpy_args, expand_builtin_strncpy,
6210         builtin_memset_read_str, expand_builtin_printf,
6211         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
6212         Likewise.
6213         * caller-save.c (mark_set_regs): Likewise.
6214         * calls.c (expand_call, emit_library_call_value_1): Likewise.
6215         * cgraph.c (cgraph_edge): Likewise.
6216         * combine.c (likely_spilled_retval_1): Likewise.
6217         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
6218         htab_counts_entry_del, get_coverage_counts): Likewise.
6219         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
6220         new_cselib_val): Likewise.
6221         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
6222         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
6223         Likewise.
6224         * df-core.c (df_compact_blocks): Likewise.
6225         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
6226         * df-scan.c (df_grow_reg_info, df_ref_create,
6227         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
6228         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
6229         df_record_entry_block_defs, df_record_exit_block_uses,
6230         df_bb_verify): Likewise.
6231         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
6232         DF_REF_EXTRACT_MODE_CONST): New.
6233         * dominance.c (get_immediate_dominator, get_dominated_by,
6234         nearest_common_dominator, root_of_dom_tree,
6235         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
6236         -Wc++-compat and/or -Wcast-qual warnings.
6237         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
6238         record_store, replace_read, check_mem_read_rtx, scan_insn,
6239         dse_step1, dse_record_singleton_alias_set): Likewise.
6240         * dwarf2asm.c (dw2_force_const_mem): Likewise.
6241
6242 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6243
6244         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
6245         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
6246         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
6247         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
6248         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
6249         add_ranges_num, add_ranges_by_labels, file_info_cmp,
6250         file_name_acquire, output_file_names, add_const_value_attribute,
6251         premark_used_types_helper, file_table_eq, file_table_hash,
6252         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
6253         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
6254         -Wcast-qual warnings.
6255         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
6256         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
6257         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
6258         gen_reg_rtx, start_sequence, init_emit): Likewise.
6259         * et-forest.c (et_new_occ, et_new_tree): Likewise.
6260         * except.c (init_eh_for_function, gen_eh_region,
6261         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
6262         arh_to_landing_pad, arh_to_label, add_action_record,
6263         add_call_site, switch_to_exception_section): Likewise.
6264         * expmed.c (synth_mult): Likewise.
6265         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
6266         store_expr): Likewise.
6267         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
6268         Likewise.
6269         * function.c (assign_stack_temp_for_type,
6270         allocate_struct_function, match_asm_constraints_1): Likewise.
6271         * gcov-io.c (gcov_allocate): Likewise.
6272         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
6273         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
6274         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
6275         record_one_set, insert_expr_in_table, insert_set_in_table,
6276         dump_hash_table, compute_hash_table_work, alloc_hash_table,
6277         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
6278         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
6279         -Wcast-qual warnings.
6280
6281 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6282
6283         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
6284         -Wcast-qual warnings.
6285         * gcc.c (process_command): Likewise.
6286         * genattrtab.c (oballoc): Use XOBNEW.
6287         (oballocvec): Define.
6288         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
6289         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
6290         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
6291         -Wc++-compat and/or -Wcast-qual warnings.
6292         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
6293         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
6294         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
6295         gen_presence_absence_set, gen_automaton, gen_regexp_el,
6296         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
6297         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
6298         add_excls, process_presence_absence_names,
6299         process_presence_absence_patterns, add_presence_absence,
6300         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
6301         get_free_state, add_arc, get_free_automata_list_el,
6302         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
6303         transform_3, cache_presence, create_ainsns, create_automata,
6304         create_state_ainsn_table, dfa_insn_code_enlarge,
6305         output_trans_func, output_min_issue_delay_func,
6306         output_dead_lock_func, output_reset_func,
6307         output_get_cpu_unit_code_func, output_dfa_start_func,
6308         expand_automata): Likewise.
6309         * genextract.c (gen_insn): Likewise.
6310         * gengtype-lex.l: Likewise.
6311         * gengtype.c (read_input_list, adjust_field_type,
6312         process_gc_options): Likewise.
6313         * genoutput.c (note_constraint): Likewise.
6314         * genpreds.c (mangle, add_constraint): Likewise.
6315         * genrecog.c (process_define_predicate, new_decision,
6316         add_to_sequence): Likewise.
6317         * gensupport.c (record_insn_name): Likewise.
6318
6319 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6320
6321         * config/i386/driver-i386.c (detect_caches_amd,
6322         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
6323         and/or -Wcast-qual warnings.
6324         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
6325         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
6326         gt_pch_save): Likewise.
6327         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
6328         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
6329         * global.c (compute_regsets): Likewise.
6330         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
6331         finish_graph_dump_file): Likewise.
6332         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
6333         unlink_bb_notes): Likewise.
6334         * integrate.c (get_hard_reg_initial_val): Likewise.
6335         * ipa-prop.c (ipa_push_func_to_list): Likewise.
6336         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
6337         * local-alloc.c (update_equiv_regs): Likewise.
6338         * loop-invariant.c (check_invariant_table_size,
6339         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
6340         Likewise.
6341         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
6342         altered_reg_used, mark_altered): Likewise.
6343         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
6344         insert_var_expansion_initialization,
6345         combine_var_copies_in_loop_exit, apply_opt_in_copies,
6346         release_var_copies): Likewise.
6347         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
6348         analyze_matrix_decl, add_allocation_site, analyze_transpose,
6349         analyze_accesses_for_phi_node, check_var_notmodified_p,
6350         check_allocation_function, find_sites_in_func,
6351         record_all_accesses_in_func, transform_access_sites,
6352         transform_allocation_sites): Likewise.
6353         * omp-low.c (new_omp_region, create_omp_child_function_name,
6354         check_omp_nesting_restrictions, check_combined_parallel,
6355         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
6356         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
6357         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
6358         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
6359         Likewise.
6360         * opts-common.c (prune_options): Likewise.
6361         * opts.c (add_input_filename, print_filtered_help,
6362         get_option_state): Likewise.
6363         * params.c (add_params): Likewise.
6364         * passes.c (set_pass_for_id, next_pass_1,
6365         do_per_function_toporder, pass_fini_dump_file): Likewise.
6366         * postreload.c (reload_cse_simplify_operands): Likewise.
6367         * predict.c (tree_predicted_by_p, tree_predict_edge,
6368         clear_bb_predictions, combine_predictions_for_bb): Likewise.
6369
6370 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6371
6372         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
6373         warnings.
6374         * recog.c (check_asm_operands, validate_change_1): Likewise.
6375         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
6376         subst_asm_stack_regs): Likewise.
6377         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
6378         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
6379         * regmove.c (reg_is_remote_constant_p): Likewise.
6380         * regrename.c (regrename_optimize, scan_rtx_reg,
6381         kill_clobbered_value, kill_set_value, kill_autoinc_value):
6382         Likewise.
6383         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
6384         regstat_compute_calls_crossed): Likewise.
6385         * reload1.c (init_reload, new_insn_chain,
6386         has_nonexceptional_receiver, reload, copy_reloads,
6387         calculate_needs_all_insns, init_elim_table): Likewise.
6388         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
6389         * rtl.c (shallow_copy_rtx_stat): Likewise.
6390         * rtlanal.c (parms_set): Likewise.
6391         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
6392         sbitmap_resize, sbitmap_vector_alloc): Likewise.
6393         * sched-ebb.c (earliest_block_with_similiar_load,
6394         add_deps_for_risky_insns): Likewise.
6395         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
6396         schedule_region): Likewise.
6397         * see.c (eq_descriptor_pre_extension,
6398         hash_descriptor_pre_extension, hash_del_pre_extension,
6399         eq_descriptor_properties, hash_descriptor_properties,
6400         hash_del_properties, see_seek_pre_extension_expr,
6401         see_initialize_data_structures, see_print_register_properties,
6402         see_print_pre_extension_expr, see_delete_merged_def_extension,
6403         see_delete_unmerged_def_extension, see_emit_use_extension,
6404         see_pre_delete_extension, see_map_extension, see_commit_changes,
6405         see_analyze_merged_def_local_prop,
6406         see_analyze_merged_def_local_prop,
6407         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
6408         see_set_prop_merged_def, see_set_prop_unmerged_def,
6409         see_set_prop_unmerged_use, see_print_one_extension,
6410         see_merge_one_use_extension, see_merge_one_def_extension,
6411         see_store_reference_and_extension, see_update_uses_relevancy,
6412         see_update_defs_relevancy): Likewise.
6413         * statistics.c (hash_statistics_hash, hash_statistics_eq,
6414         hash_statistics_free, curr_statistics_hash): Likewise.
6415         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
6416         expand_asm_operands, expand_return, case_bit_test_cmp,
6417         expand_case): Likewise.
6418         * stor-layout.c (start_record_layout): Likewise.
6419         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
6420         gt_pch_save_stringpool): Likewise.
6421         * tree-data-ref.c (hash_stmt_vertex_info,
6422         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
6423         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
6424
6425 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
6426
6427         PR target/36627
6428         * config/i386/i386.md : Change constraints of HImode and QImode
6429         immediate operands from "i" to "n".  Change SImode "ni" constraint to
6430         "i" and SImode "rmi" constraint to "g".  Remove all constraints
6431         from const0_operand and const1_operand predicated operands.
6432         (i): Change QImode and HImode attribute from "i" to "n".
6433         (*subqi_2): Change HImode operands to QImode.
6434         (*subqi_3): Ditto.
6435
6436 2008-06-25  Olivier Hainque  <hainque@adacore.com>
6437
6438         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
6439         sed substitutions.
6440
6441 2008-06-25  Richard Guenther  <rguenther@suse.de>
6442
6443         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
6444         not overflow the result type.
6445
6446 2008-06-25  Richard Guenther  <rguenther@suse.de>
6447
6448         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
6449         (vn_lookup): Likewise.
6450
6451 2008-06-25  Richard Guenther  <rguenther@suse.de>
6452
6453         PR tree-optimization/35518
6454         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
6455         * tree-sra.c (instantiate_element): Use fold_build3 to build
6456         BIT_FIELD_REFs.
6457         (try_instantiate_multiple_fields): Likewise.
6458
6459 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6460
6461         * config/rs6000/rs6000.md: Change all string instruction's clobber to
6462         be early clobbers.
6463
6464 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6465
6466         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
6467         use_backchain_to_restore_sp to true
6468         if the offset of the link register save area would go over the 32k - 1
6469         offset limit of the load
6470         instructions.
6471
6472 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
6473
6474         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
6475         anchor for the type-punning blurb.  Cross-reference "Structures
6476         unions enumerations and bit-fields implementation".  Provide a
6477         cast-through-pointer example.  Make final sentence self-contained.
6478         * doc/implement-c.texi (Structures unions enumerations and
6479         bit-fields implementation): Cross-reference the type-punning blurb
6480         in the -fstrict-aliasing documentation.
6481
6482 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6483
6484         PR middle-end/36594
6485         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
6486         the memory instead of the memory itself for the save area.
6487
6488 2008-06-24  Olivier Hainque  <hainque@adacore.com>
6489             Nicolas Roche  <roche@adacore.com>
6490
6491         * gengtype.c (srcdir_len): size_t instead of int.
6492         (get_file_realbasename): New function.  For F a filename, the real
6493         basename of F, with all the path components stripped.
6494         (get_file_srcdir_relative_path): New function.  For F a filename, the
6495         relative path to F from $(srcdir).
6496         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
6497         get_file_realbasename.  Adjust the head comment.
6498         (get_prefix_langdir_index): New function. For F a filename, return the
6499         lang_dir_names[] relative index of the language directory that is
6500         a prefix in F.
6501         (get_file_langdir): For F a filename, return the name of the language
6502         directory where F is located.
6503         (get_file_gtfilename): New function. The gt- output file name for an
6504         input filename F.
6505         (get_output_file_with_visibility): Replace in-line computations with
6506         uses of get_file_gtfilename and get_prefix_langdir_index.
6507         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
6508
6509 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
6510
6511         PR tree-optimization/36504
6512         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
6513         references without base address.
6514
6515 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
6516
6517         PR middle-end/36584
6518         * calls.c (expand_call): Increase alignment for recursive functions.
6519
6520 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
6521
6522         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
6523         (TARGET_FUNCTION_VALUE): New define.
6524         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
6525         * config/avr/avr.h (FUNCTION_VALUE): Remove.
6526
6527 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
6528
6529         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
6530         (fmod<mode>3): Ditto.
6531         (remainderxf3): Ditto.
6532         (remainder<mode>3): Ditto.
6533
6534 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
6535
6536         PR target/36533
6537         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
6538         REG is a hard register.
6539
6540         PR tree-optimization/36508
6541         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
6542         499, don't check it at all in release compilers.
6543
6544 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
6545
6546         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
6547         together with SSE_TARGET_MATH to disable insn pattern.
6548         (*fop_<MODEF:mode>_2_i387): Ditto.
6549         (*fop_<MODEF:mode>_3_i387): Ditto.
6550
6551 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
6552
6553         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
6554
6555 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
6556
6557         PR middle-end/34906
6558         * gimplify.c (gimplify_asm_expr): Check the return code of
6559         parse_output_constraint call, set function return and is_inout
6560         value if it failed.
6561
6562 2008-06-22  Ian Lance Taylor  <iant@google.com>
6563
6564         * c-lex.c (narrowest_unsigned_type): Change itk to int.
6565         (narrowest_signed_type): Likewise.
6566         * c-typeck.c (c_common_type): Change local variable mclass to enum
6567         mode_class, twice.
6568         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
6569         tcc_comparison, not the tree code itself.
6570         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
6571         (c_expand_expr): Cast modifier to enum expand_modifier.
6572         * c-common.h (C_RID_CODE): Add casts.
6573         (C_SET_RID_CODE): Define.
6574         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
6575         (c_lex_one_token): Add cast to avoid warning.
6576         (c_parser_objc_type_name): Rename local typename to type_name.
6577         (check_no_duplicate_clause): Change code parameter to enum
6578         omp_clause_code.
6579         (c_parser_omp_var_list_parens): Change kind parameter to enum
6580         omp_clause_code.
6581         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
6582         c_parser_omp_list_var_parens.
6583         (c_parser_omp_threadprivate): Likewise.
6584         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
6585         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
6586         * c-format.c (NO_FMT): Define.
6587         (printf_length_specs): Use NO_FMT.
6588         (asm_fprintf_length_specs): Likewise.
6589         (gcc_diag_length_specs): Likewise.
6590         (scanf_length_specs): Likewise.
6591         (strfmon_length_specs): Likewise.
6592         (gcc_gfc_length_specs): Likewise.
6593         (printf_flag_specs): Change 0 to STD_C89.
6594         (asm_fprintf_flag_specs): Likewise.
6595         (gcc_diag_flag_specs): Likewise.
6596         (gcc_cxxdiag_flag_specs): Likewise.
6597         (scanf_flag_specs): Likewise.
6598         (strftime_flag_specs): Likewise.
6599         (strfmon_flag_specs): Likewise.
6600         (print_char_table): Likewise.
6601         (asm_fprintf_char_table): Likewise.
6602         (gcc_diag_char_table): Likewise.
6603         (gcc_tdiag_char_table): Likewise.
6604         (gcc_cdiag_char_table): Likewise.
6605         (gcc_cxxdiag_char_table): Likewise.
6606         (gcc_gfc_char_table): Likewise.
6607         (scan_char_table): Likewise.
6608         (time_char_table): Likewis.
6609         (monetary_char_table): Likewise.
6610         * c-format.h (BADLEN): Likewise.
6611
6612 2008-06-21  Ian Lance Taylor  <iant@google.com>
6613
6614         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
6615         Define END_OF_BASE_TREE_CODES around inclusion.
6616         * tree.c (tree_code_type): New global array.
6617         (tree_code_length, tree_code_name): Likewise.
6618         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
6619         $(lang_tree_files).
6620         (all-tree.def, s-alltree): New targets.
6621         (gencheck.h, s-gencheck): Remove.
6622         (tree.o): Depend upon all-tree.def.
6623         (build/gencheck.o): Remove gencheck.h dependency.
6624         (mostlyclean): Don't remove gencheck.h.
6625         * c-common.h (enum c_tree_code): Remove.
6626         * c-lang.c (tree_code_type): Remove.
6627         (tree_code_length, tree_code_name): Remove.
6628         * gencheck.c (tree_codes): Include all-tree.def, rather than
6629         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
6630         after it is used.
6631         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
6632         than tree.def.
6633         * cp/cp-tree.h (enum cplus_tree_code): Remove.
6634         (operator_name_info): Size to MAX_TREE_CODES.
6635         (assignment_operator_name_info): Likewise.
6636         * cp/cp-lang.c (tree_code_type): Remove.
6637         (tree_code_length, tree_code_name): Remove.
6638         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
6639         (assignment_operator_name_info): Likewise.
6640         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
6641         MAX_TREE_CODES.
6642         * cp/mangle.c (write_expression): Likewise.
6643         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
6644         * fortran/f95-lang.c (tree_code_type): Remove.
6645         (tree_code_length, tree_code_name): Remove.
6646         * java/java-tree.h (enum java_tree_code): Remove.
6647         * java/lang.c (tree_code_type): Remove.
6648         (tree_code_length, tree_code_name): Remove.
6649         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
6650         * objc/objc-act.h (enum objc_tree_code): Remove.
6651         * objc/objc-lang.c (tree_code_type): Remove.
6652         (tree_code_length, tree_code_name): Remove.
6653         * objcp/objcp-lang.c (tree_code_type): Remove.
6654         (tree_code_length, tree_code_name): Remove.
6655         * ada/ada-tree.h (enum gnat_tree_code): Remove.
6656         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
6657         * ada/misc.c (tree_code_type): Remove.
6658         (tree_code_length, tree_code_name): Remove.
6659
6660 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
6661
6662         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
6663         the grand_bitmap_obstack.
6664
6665 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6666
6667         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
6668         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
6669         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
6670         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
6671         move_stmt_r, new_label_mapper): Likewise.
6672         * tree-complex.c (cvc_lookup): Likewise.
6673         * tree-dfa.c (create_function_ann): Likewise.
6674         * tree-dump.c (dump_register): Likewise.
6675         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
6676         find_phi_replacement_condition): Likewise.
6677         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
6678         tree_function_versioning): Likewise.
6679         * tree-into-ssa.c (cmp_dfsnum): Likewise.
6680         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
6681         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
6682         get_nonlocal_debug_decl, convert_nonlocal_reference,
6683         convert_nonlocal_omp_clauses, get_local_debug_decl,
6684         convert_local_reference, convert_local_omp_clauses,
6685         convert_nl_goto_reference, convert_nl_goto_receiver,
6686         convert_tramp_reference, convert_call_expr): Likewise.
6687         * tree-outof-ssa.c (contains_tree_r): Likewise.
6688         * tree-parloops.c (reduction_phi, initialize_reductions,
6689         eliminate_local_variables_1, add_field_for_reduction,
6690         add_field_for_name, create_phi_for_local_result,
6691         create_call_for_reduction_1, create_loads_for_reductions,
6692         create_stores_for_reduction, create_loads_and_stores_for_name):
6693         Likewise.
6694         * tree-phinodes.c (allocate_phi_node): Likewise.
6695         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
6696         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
6697         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
6698         * tree-ssa-coalesce.c (compare_pairs): Likewise.
6699         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
6700         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
6701         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
6702         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
6703         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
6704         vn_nary_op_insert): Likewise.
6705         * tree-ssa.c (redirect_edge_var_map_add,
6706         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
6707         * tree-vectorizer.c (vectorize_loops): Likewise.
6708         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
6709         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
6710         tree_cons_stat, build1_stat, build_variant_type_copy,
6711         decl_init_priority_lookup, decl_fini_priority_lookup,
6712         decl_priority_info, decl_restrict_base_lookup,
6713         decl_restrict_base_insert, decl_debug_expr_lookup,
6714         decl_debug_expr_insert, decl_value_expr_lookup,
6715         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
6716         type_hash_add, get_file_function_name, tree_check_failed,
6717         tree_not_check_failed, tree_range_check_failed,
6718         omp_clause_range_check_failed, build_omp_clause,
6719         build_vl_exp_stat): Likewise.
6720         * value-prof.c (gimple_histogram_value,
6721         gimple_duplicate_stmt_histograms): Likewise.
6722         * var-tracking.c (attrs_list_insert, attrs_list_copy,
6723         unshare_variable, variable_union_info_cmp_pos, variable_union,
6724         dataflow_set_different_1, dataflow_set_different_2,
6725         vt_find_locations, variable_was_changed, set_variable_part,
6726         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
6727         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
6728         section_entry_hash, object_block_entry_eq,
6729         object_block_entry_hash, create_block_symbol,
6730         initialize_cold_section_name, default_function_rodata_section,
6731         strip_reg_name, set_user_assembler_name, const_desc_eq,
6732         build_constant_desc, output_constant_def, lookup_constant_def,
6733         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
6734         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
6735         default_internal_label): Likewise.
6736         * varray.c (varray_init, varray_grow): Likewise.
6737         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
6738
6739 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
6740
6741         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
6742         operators for "test" insn.  Macroize insn using SWI mode macro.
6743         (*jcc_fused_2): Ditto.
6744         (*jcc_fused_3): Macroize insn using SWI mode macro.
6745         (*jcc_fused_4): Ditto.
6746
6747 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
6748
6749         * tree-ssa-pre.c: Fix typo in comment.
6750         (init_antic, fini_antic): Add explicit funtions for
6751         initializing and deinitializing ANTIC and AVAIL sets.
6752         (create_expression_by_pieces): Fix typo in comment.
6753         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
6754         (execute_pre): Eventually dump details about ANTIC_IN.
6755
6756 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6757
6758         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
6759         * gcc.c (translate_options, init_spec, store_arg, read_specs,
6760         add_to_obstack, file_at_path, find_a_file, execute,
6761         add_preprocessor_option, add_assembler_option, add_linker_option,
6762         process_command, insert_wrapper, do_option_spec, do_self_spec,
6763         spec_path, do_spec_1, is_directory, main, used_arg,
6764         getenv_spec_function): Likewise.
6765         * tlink.c (symbol_hash_lookup, file_hash_lookup,
6766         demangled_hash_lookup, symbol_push, file_push, frob_extension):
6767         Likewise.
6768
6769 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
6770
6771         * doc/rtl.texi: Updated subreg section.
6772
6773 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
6774
6775         PR c++/36523
6776         * cgraphunit.c (cgraph_process_new_functions): Don't clear
6777         node->needed and node->reachable.
6778         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
6779         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
6780         (expand_task_call): Don't call expand_task_copyfn.
6781         (expand_task_copyfn): Renamed to...
6782         (finalize_task_copyfn): ... this.
6783
6784 2008-06-19  Jan Hubicka  <jh@suse.cz>
6785
6786         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
6787         clobbering framepointer.
6788
6789 2008-06-19  Jan Hubicka  <jh@suse.cz>
6790
6791         * tree-optimize.c (execute_early_local_optimizations): Set
6792         cgraph_state only at first invocation.
6793
6794 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6795
6796         * system.h (-Wc++-compat): Activate as a warning, no an error.
6797
6798 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
6799
6800         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
6801         instead of "#" in insn asm template.
6802         (*jcc_fused_2): Ditto.
6803
6804 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
6805
6806         * config/i386/i386.h (ix86_tune_indices)
6807         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
6808         (TARGET_FUSE_CMP_AND_BRANCH): New define.
6809         * config/i386/i386.md (*jcc_fused_1): New insn pattern
6810         (*jcc_fused_2): Ditto.
6811         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
6812         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
6813         (print operand): Handle 'E' and 'e' code.
6814
6815 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
6816
6817         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
6818         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
6819         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
6820
6821 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
6822
6823         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
6824         node->decl.
6825         (cgraph_expand_function): Use local copy of decl.
6826         (cgraph_expand_all_functions): Remove redundant initialization of
6827         order_pos.
6828         (cgraph_optimize): Reword internal_error message.
6829
6830 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
6831
6832         * arm-protos.h (arm_return_in_memory): Remove public
6833         arm_return_in_memory() prototype.
6834         * arm.c (arm_return_in_memory): Add static prototype, add target
6835         hook macro, change definition and comments.
6836         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
6837
6838 2008-06-19  Ben Elliston  <bje@au.ibm.com>
6839
6840         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
6841         real.c: Remove references to IEEE 754R.
6842         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
6843         * doc/libgcc.texi (Decimal float library routines): Likewise.
6844
6845 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6846
6847         * targhooks.h (struct gcc_target): New member unwind_word_mode.
6848         (default_unwind_word_mode): Add prototype.
6849         * targhooks.c (default_unwind_word_mode): New function.
6850         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
6851         instead of word_mode.
6852         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
6853         (TARGET_INITIALIZER): Use it.
6854
6855         * c-common.c (handle_mode_attribute): Support "unwind_word"
6856         mode attribute.
6857         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
6858
6859         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
6860         word_mode to access SjLj_Function_Context member "data".
6861         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
6862         conversion from targetm.eh_return_filter_mode () to
6863         targetm.unwind_word_mode () if they differ.
6864
6865         * builtin-types.def (BT_UNWINDWORD): New primitive type.
6866         (BT_FN_UNWINDWORD_PTR): New function type.
6867         (BT_FN_WORD_PTR): Remove.
6868         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
6869         * except.c (expand_builtin_extend_pointer): Convert pointer to
6870         targetm.unwind_word_mode () instead of word_mode.
6871
6872         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
6873         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
6874         (spu_unwind_word_mode): New function.
6875         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
6876         (TARGET_UNWIND_WORD_MODE): Define.
6877         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
6878
6879 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6880
6881         * config/spu/spu.c (reg_align): Remove.
6882         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
6883         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
6884         (spu_split_store): Likewise.
6885
6886 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
6887
6888         * gcc/tree-vn.c: Fix typo in comment.
6889
6890 2008-06-18  Jan Hubicka  <jh@suse.cz>
6891
6892         * cgraphunit.c (cgraph_optimize): Output debug info when doing
6893         toplevel reorder too.
6894
6895 2008-06-18  Jan Hubicka  <jh@suse.cz>
6896
6897         * c-opts.c (c_common_post_options): PCH is not compatible with
6898         no-unit-at-a-time.
6899         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
6900         -fno-toplevel-reorder by default now.
6901
6902 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6903
6904         PR documentation/30739
6905         * doc/install.texi (Prerequisites): Document dependency on awk.
6906
6907 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
6908             Ian Lance Taylor  <iant@google.com>
6909
6910         PR rtl-optimization/35604
6911         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
6912         only want to change jump destinations, not eventual label comparisons.
6913
6914 2008-06-16  Jan Hubicka  <jh@suse.cz>
6915
6916         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
6917         syntax errors.
6918         (cgraph_analyze_function): Likewise.
6919
6920 2008-06-16  Jan Hubicka  <jh@suse.cz>
6921
6922         * cgraph.h (cgraph_mark_if_needed): New function.
6923         * cgraphunit.c (cgraph_mark_if_needed): New function.
6924         * c-decl.c (duplicate_decl): Use it.
6925
6926 2008-06-16  Jan Hubicka  <jh@suse.cz>
6927
6928         * cgraph.c (cgraph_add_new_function): When in expansion state, do
6929         lowering.
6930
6931 2008-06-16  Jan Hubicka  <jh@suse.cz>
6932
6933         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
6934
6935 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
6936             Kazu Hirata  <kazu@codesourcery.com>
6937             Maxim Kuvyrkov  <maxim@codesourcery.com
6938
6939         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
6940         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
6941         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
6942         EXTRA_SPEC_FUNCTIONS.
6943         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
6944         (DRIVER_SELF_SPECS): Adjust.
6945         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
6946         * config/mips/st.h, config/mips/t-st: New.
6947         * config/mips/driver-native.c, config/mips/x-native: New.
6948         * doc/invoke.texi (MIPS): Document 'native' value for -march and
6949         -mtune options.
6950
6951 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
6952
6953         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
6954         from it.
6955         (ISA_HAS_FP_CONDMOVE): New macro.
6956         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
6957         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
6958         (ISA_HAS_NMADD3_NMSUB3): New macro.
6959         * config/mips/mips.c (mips_rtx_costs): Update.
6960         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
6961         compiling for ST Loongson 2E/2F.
6962         (madd<mode>): Rename to madd4<mode>.  Update.
6963         (madd3<mode>): New pattern.
6964         (msub<mode>): Rename to msub4<mode>.  Update.
6965         (msub3<mode>): New pattern.
6966         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
6967         (nmadd3<mode>): New pattern.
6968         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
6969         (nmadd3<mode>_fastmath): New pattern.
6970         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
6971         (nmsub3<mode>): New pattern.
6972         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
6973         (nmsub3<mode>_fastmath): New pattern.
6974         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
6975
6976 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
6977
6978         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
6979         (DF_REF_INSN_INFO): New.
6980         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
6981         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
6982         with a NULL DF_REF_INSN_INFO.
6983         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
6984         DF_INSN_SET.
6985         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
6986         DF_INSN_INFO_EQ_USES): New.
6987         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
6988         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
6989         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
6990         * df-core.c: Update comment for above changes.
6991         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
6992         DF_INSN_UID_* macros.
6993         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
6994         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
6995         insn rtx.  Update all callers.
6996         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
6997         df_ref_create_structure, df_insn_refs_collect): Likewise.
6998         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
6999         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
7000         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
7001         macros to access the insn refs.
7002         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
7003         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
7004         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
7005         for accessing the refs.
7006         (try_fwprop_subst): Likewise.
7007         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
7008         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
7009         for accessing the refs.
7010         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
7011         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
7012         to look at the insn refs.
7013         (record_uses): Likewise.
7014         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
7015         function anymore.
7016         (mark_artificial_uses): Don't mark_insn for artificial refs.
7017         (mark_reg_rependencies): Likewise.
7018
7019         * doc/rtl.texi: Remove documentation of ADDRESSOF.
7020
7021 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7022
7023         * configure: Regenerate.
7024
7025 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
7026
7027         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
7028         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
7029         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
7030
7031 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
7032
7033         * config/avr/avr.c (avr_mcu_t): Add attiny167.
7034         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
7035         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
7036
7037 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
7038
7039         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
7040         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
7041         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
7042
7043 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
7044
7045         * tree-ssa-sccvn.c: Fix format of comments.
7046
7047 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
7048
7049         * cgraph.c: Remove unneeded forward declarations of eq_node()
7050         and hash_node().
7051
7052 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
7053
7054         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
7055         REG_RETVAL notes.
7056         (see_update_relevancy): Likewise.
7057         * fwprop.c (try_fwprop_subst): Likewise.
7058         * rtlanal.c (noop_move_p): Likewise.
7059         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
7060         notes to non-existing libcall blocks.
7061         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
7062         Remove orig_set.
7063         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
7064         (dead_libcall_p): Remove.
7065         (delete_trivially_dead_insns): Don't use it.
7066         * web.c (union_defs): Remove comment about keeping nops.
7067         * gcse.c (hash_scan_insn): Don't take libcall pointers.
7068         (compute_hash_table_work): Don't track libcall notes.
7069         (do_local_cprop): Don't take libcall pointers.  Don't update
7070         libcall notes.
7071         (adjust_libcall_notes): Deleted.
7072         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
7073         ever have existed in the first place).
7074         (replace_store_insn): Don't try to remove libcall notes.
7075         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
7076         (resolve_reg_notes): Don't call them.
7077         (resolve_simple_move): Likewise.
7078         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
7079         Don't remove REG_RETVAL notes.
7080         * emit-rtl.c (try_split): Don't update libcall notes.
7081         (emit_copy_of_insn_after): Dito.
7082         * cselib.c (cselib_current_insn_in_libcall): Remove.
7083         (cselib_process_insn): Don't set/clear it.
7084         (new_elt_loc_list): Don't record it.
7085         (cselib_init): Don't initialize it.
7086         * cselib.c (struct elt_loc_list): Remove in_libcall field.
7087         * loop-invariant.c (find_invariant_insn): Don't look for libcall
7088         notes.
7089         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
7090         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
7091         (init_deps): Don't initialize it.
7092         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
7093         * combine.c (delete_noop_moves): Don't update libcall notes.
7094         (can_combine_p): Remove now pointless #if 0 block.
7095         (try_combine): Remove another obsolete #if 0 block.
7096         (distribute_notes): Don't distribute libcall notes.
7097         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
7098         * dce.c (libcall_dead_p): Remove.
7099         (delete_unmarked_insns): Don't handle libcall blocks.
7100         (preserve_libcall_for_dce): Remove.
7101         (prescan_insns_for_dce): Don't special-case libcall block insns.
7102         * reload1 (reload): Don't handle libcall notes.
7103         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
7104         documentation.
7105
7106 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
7107
7108         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
7109         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
7110         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
7111
7112 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
7113
7114         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
7115         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
7116         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
7117
7118 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7119
7120         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
7121
7122 2008-06-16  Ira Rosen  <irar@il.ibm.com>
7123
7124         PR tree-optimization/36493
7125         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
7126         the arguments list. Use VECTYPE to create vector pointer.
7127         (vectorizable_store): Fail if accesses through a pointer to vectype
7128         do not alias the original memory reference operands.
7129         Call vect_create_data_ref_ptr without the removed argument.
7130         (vectorizable_load): Likewise.
7131         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
7132         removed argument.
7133
7134 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
7135
7136         PR target/36336
7137         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
7138         reg_equiv_constant.
7139
7140 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
7141
7142         * config/mips/loongson2ef.md: New file.
7143         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
7144         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
7145         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
7146         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
7147         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
7148         and loongson_2f.
7149         (loongson2ef.md): New include.
7150         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
7151         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
7152         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
7153         (loongson_gt_<mode>, loongson_extract_halfword)
7154         (loongson_insert_halfword_0, loongson_insert_halfword_2)
7155         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
7156         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
7157         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
7158         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
7159         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
7160         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
7161         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
7162         (vec_interleave_low<mode>): Define type attribute.
7163         * config/mips/mips.c (mips_ls2): New static variable.
7164         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
7165         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
7166         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
7167         Implement target scheduling hooks.
7168         (mips_multipass_dfa_lookahead): Update to handle tuning for
7169         Loongson 2E/2F.
7170         (mips_sched_init): Initialize data for Loongson scheduling.
7171         (mips_ls2_variable_issue): New static function.
7172         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
7173         Add sanity check.
7174         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
7175         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
7176         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
7177         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
7178         Handle ST Loongson 2E/2F cores.
7179         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
7180
7181 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7182
7183         * omp-low.c (extract_omp_for_data): Fix comment typo.
7184         * c.opt: Fix typo.
7185
7186 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7187
7188         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
7189         FIXME note about gcc/config.guess.
7190         * doc/options.texi (Option file format): Remove non-ASCII bytes.
7191         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
7192         * doc/cppopts.texi: Likewise.
7193         * doc/extend.texi: Likewise.
7194         * doc/gcc.texi: Likewise.
7195         * doc/gccint.texi: Likewise.
7196         * doc/gcov.texi: Likewise.
7197         * doc/gty.texi: Likewise.
7198         * doc/hostconfig.texi: Likewise.
7199         * doc/install.texi: Likewise.
7200         * doc/invoke.texi: Likewise.
7201         * doc/loop.texi: Likewise.
7202         * doc/makefile.texi: Likewise.
7203         * doc/md.texi: Likewise.
7204         * doc/passes.texi: Likewise.
7205         * doc/tm.texi: Likewise.
7206         * doc/tree-ssa.texi: Likewise.
7207         * doc/trouble.texi: Likewise.
7208
7209 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
7210             Nathan Sidwell  <nathan@codesourcery.com>
7211             Maxim Kuvyrkov  <maxim@codesourcery.com>
7212             Richard Sandiford  <rdsandiford@googlemail.com>
7213
7214         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
7215         * config/mips/mips-protos.h (mips_expand_vector_init): New.
7216         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
7217         builtins.
7218         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
7219         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
7220         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
7221         V8QImode cases.
7222         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
7223         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
7224         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
7225         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
7226         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
7227         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
7228         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
7229         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
7230         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
7231         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
7232         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
7233         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
7234         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
7235         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
7236         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
7237         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
7238         (mips_builtins): Add Loongson builtins.
7239         (mips_loongson_2ef_bdesc): New.
7240         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
7241         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
7242         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
7243         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
7244         New.
7245         (mips_expand_vector_init): New.
7246         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
7247         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
7248         if appropriate.
7249         * config/mips/mips.md: Add unspec numbers for Loongson
7250         builtins.  Include loongson.md.
7251         (MOVE64): Include Loongson vector modes.
7252         (SPLITF): Include Loongson vector modes.
7253         (HALFMODE): Handle Loongson vector modes.
7254         * config/mips/loongson.md: New.
7255         * config/mips/loongson.h: New.
7256         * config.gcc: Add loongson.h header for mips*-*-* targets.
7257         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
7258
7259 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
7260
7261         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
7262         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
7263         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
7264         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
7265         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
7266         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
7267         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
7268         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
7269         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
7270         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
7271         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
7272         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
7273         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
7274         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
7275         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
7276         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
7277         Remove use_fixproto=yes.
7278         (ia64*-*-hpux*): Remove comment about using fixproto.
7279         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
7280
7281 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7282
7283         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
7284         library rebuilds.
7285         * configure: Regenerate.
7286
7287 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
7288
7289         PR middle-end/36520
7290         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
7291         before evaluating it.
7292
7293 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
7294
7295         PR c/36507
7296         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
7297         nested inline functions.
7298         (start_decl, start_function): Don't invert DECL_EXTERNAL
7299         for nested inline functions.
7300
7301 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
7302
7303         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
7304         splits that must be made for correctness.
7305
7306 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
7307
7308         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
7309         (AVAIL_NON_MIPS16): Likewise.
7310         (mips_builtin_description): Replace target_flags with a predicate.
7311         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
7312         (dspr2_32): New availability predicates.
7313         (MIPS_BUILTIN): New macro.
7314         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
7315         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
7316         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
7317         Replace the TARGET_FLAGS parameters with AVAIL parameters.
7318         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
7319         (mips_dsp_32only_bdesc): Merge into...
7320         (mips_builtins): ...this new array.
7321         (mips_bdesc_map, mips_bdesc_arrays): Delete.
7322         (mips_init_builtins): Update after above changes.
7323         (mips_expand_builtin_1): Merge into...
7324         (mips_expand_builtin): ...here and update after above changes.
7325
7326 2008-06-12  Paul Brook  <paul@codesourcery.com>
7327
7328         * longlong.h (__arm__): Define count_leading_zeros.
7329         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
7330         (clzsi2, clzdi2): New functions.
7331         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
7332         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
7333         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
7334         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
7335         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
7336         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
7337         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
7338         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
7339         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
7340         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
7341
7342 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
7343
7344         * config/m68k/m68k.c (m68k_tune_flags): New.
7345         (override_options): Compute m68k_tune_flags.
7346         (MULL_COST, MULW_COST): Update for various variants of CFV2.
7347         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
7348
7349 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
7350
7351         PR middle-end/36506
7352         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
7353
7354 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
7355
7356         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
7357         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
7358
7359 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
7360
7361         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
7362         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
7363
7364 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
7365
7366         PR middle-end/36506
7367         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
7368         reductions.
7369
7370 2008-06-12  Richard Guenther  <rguenther@suse.de>
7371
7372         PR tree-optimization/36345
7373         * tree-flow.h (struct ptr_info_def): Align escape_mask,
7374         add memory_tag_needed flag.
7375         (may_alias_p): Declare.
7376         * tree-ssa-alias.c (may_alias_p): Export.
7377         (set_initial_properties): Use memory_tag_needed flag.
7378         (update_reference_counts): Likewise.
7379         (reset_alias_info): Reset memory_tag_needed flag.
7380         (create_name_tags): Check memory_tag_needed flag.
7381         (dump_points_to_info_for): Dump it.
7382         * tree-ssa-structalias.c (struct variable_info): Remove
7383         directly_dereferenced flag.
7384         (new_var_info): Do not initialize it.
7385         (process_constraint_1): Do not set it.
7386         (update_alias_info): Set is_dereferenced flag.
7387         (set_uids_in_ptset): Use may_alias_p.
7388         (set_used_smts): Check memory_tag_needed flag.
7389         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
7390         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
7391         memory_tag_needed flag.
7392         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
7393         from broken design.
7394
7395 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
7396
7397         * config/i386/i386.c (ix86_compute_frame_layout): Disable
7398         red zone for w64 abi.
7399         (ix86_expand_prologue): Likewise.
7400         (ix86_force_to_memory): Likewise.
7401         (ix86_free_from_memory): Likewise.
7402
7403 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
7404
7405         PR target/36425
7406         * config/rs6000/rs6000.c (rs6000_override_options): Set
7407         rs6000_isel conditionally to the absence of comand line override.
7408         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
7409         Remove duplicate rs6000_isel setting.
7410         * config/rs6000/eabispe.h: Ditto.
7411
7412 2008-06-11  Richard Guenther  <rguenther@suse.de>
7413
7414         * alias.c (get_alias_set): Use the element alias-set for arrays.
7415         (record_component_aliases): For arrays and vectors do nothing.
7416         * c-common.c (strict_aliasing_warning): Handle the cases
7417         of alias set zero explicitly.
7418         * Makefile.in (dfp.o-warn): Add -Wno-error.
7419
7420 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
7421
7422         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
7423         tune_32 tune_64.
7424         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
7425         tune_32 tune_64 to supported_defaults.  Allow values not
7426         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
7427         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
7428         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
7429         with_cpu_64 to generic for 64-bit-supporting configurations, not
7430         with_cpu.  Remove FIXMEs.
7431         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
7432         --with-arch-64, --with-tune-32, --with-tune-64): Document.
7433         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
7434         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
7435         arch_32 and arch_64.
7436
7437 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
7438             Olivier Hainque  <hainque@adacore.com>
7439
7440         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
7441         Use DECL_SIZE_UNIT to retrieve the size of the field.
7442
7443 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
7444
7445         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
7446         with function calls after declarations.  Lay out
7447         neon_float_type_node before further use.
7448
7449 2008-06-11  Richard Guenther  <rguenther@suse.de>
7450
7451         * tree-flow.h (may_point_to_global_var): Declare.
7452         * tree-ssa-alias.c (may_point_to_global_var): New function.
7453         * tree-ssa-sink.c (is_hidden_global_store): Use it.
7454
7455 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
7456
7457         * configure.ac: Teach that fido supports .debug_line.
7458         * configure: Regenerate.
7459
7460 2008-06-10  Tom Tromey  <tromey@redhat.com>
7461
7462         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
7463         debug hook.
7464
7465 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
7466
7467         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
7468         (encode_decimal64, decode_decimal64, encode_decimal128,
7469         decode_decimal128): Reverse order of 32-bit parts of value if host
7470         and target endianness differ.
7471
7472 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
7473
7474         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
7475         Avoid division by 0.
7476         (tree_mod_pow2_value_transform): Likewise.
7477         (tree_ic_transform): Likewise.
7478         (tree_stringops_transform): Likewise.
7479         (tree_mod_subtract_transform): Likewise.
7480         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
7481         (copy_edges_for_bb): Likewise.
7482         (initialize_cfun): Likewise.
7483
7484 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
7485
7486         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
7487         nonmemory_operand. Add "N" operand constraint.
7488         (*btsi): Ditto.
7489         (*jcc_btdi_mask_rex64): New instruction and split pattern.
7490         (*jcc_btsi_mask): Ditto.
7491         (*jcc_btsi_mask_1): Ditto.
7492
7493 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
7494
7495         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
7496         TYPE_CANONICAL for copied element type.
7497
7498 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
7499
7500         PR target/36473
7501         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
7502         Add m_CORE2 and m_GENERIC.
7503         * config/i386/predicates.md (bt_comparison_operator): New predicate.
7504         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
7505         (*btsi): Ditto.
7506         (*jcc_btdi_rex64): New instruction and split pattern.
7507         (*jcc_btsi): Ditto.
7508         (*jcc_btsi_1): Ditto.
7509         (*btsq): Fix Intel asm dialect operand order.
7510         (*btrq): Ditto.
7511         (*btcq): Ditto.
7512
7513 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
7514
7515         PR middle-end/36447
7516         * simplify-rtx.c (simplify_subreg): Add check for shift count
7517         greater than size.
7518
7519 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
7520
7521         * doc/md.texi: Synchronize with later constraints.md change.
7522         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
7523         with a C implementation.
7524         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
7525         MFLO handling.
7526         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
7527         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
7528         when moving to and from MD_REGNUM.
7529         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
7530         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
7531         Handle byte and halfword moves.
7532         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
7533         separately.
7534         * config/mips/constraints.md (h): Turn into NO_REGS.
7535         (l, x): Update documentation.
7536         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
7537         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
7538         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
7539         (HILO): New mode iterator.
7540         (MOVE128): Add TI.
7541         (any_div): New code iterator.
7542         (u): Extend code attribute to div and udiv.
7543         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
7544         d_operand in the splitters.  Remove redundant CONST_INT checks.
7545         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
7546         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
7547         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
7548         accordingly, using normal moves instead of unspecs to move LO into
7549         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
7550         (<u>mulsidi3): Handle expansion in C code.
7551         (<u>mulsidi3_32bit_internal): Rename to...
7552         (<u>mulsidi3_32bit): ...this.
7553         (<u>mulsidi3_32bit_r4000): Fix insn separator.
7554         (*<u>mulsidi3_64bit): Rename to...
7555         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
7556         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
7557         to set LO and HI to the multiplication result.  Use a normal move
7558         for MFLO and an unspec for MFHI.
7559         (*<u>mulsidi3_64bit_parts): Replace with...
7560         (<u>mulsidi3_64bit_hilo): ...this new instruction.
7561         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
7562         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
7563         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
7564         instead of HI.  Split the instruction into a separate multiplication
7565         and MFHI if !TARGET_FIX_R4000.
7566         (<su>muldi3_highpart): Likewise.
7567         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
7568         and the "=h" clobber.
7569         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
7570         (<u>mulditi3): New expander.
7571         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
7572         (madsi): Remove "=h" clobber.
7573         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
7574         Force the modulus result to be a GPR and split the instruction into
7575         a division followed by an MFHI after reload.
7576         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
7577         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
7578         the MIPS16 HIGH define_split.
7579         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
7580         of acc<->gpr moves to "multi".
7581         (*movdi_64bit): Replace the single "x" alternative with
7582         alternatives for moving into and out of "a".
7583         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
7584         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
7585         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
7586         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
7587         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
7588         (movti): New expander.
7589         (*movti, *movti_mips16): New insns.
7590         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
7591         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
7592         (mthi<GPR:mode>_<HILO:mode>): Likewise.
7593         * config/mips/predicates.md (fpr_operand): Delete.
7594         (d_operand): New predicate.
7595
7596 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
7597
7598         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
7599         failure on some Bourne shells.
7600         (x86_64-*-*): Ditto.
7601
7602 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
7603
7604         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
7605
7606 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
7607
7608         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
7609         (sparc-sun-solaris2*): Likewise.
7610
7611 2008-06-09  Arnaud Charlet  <charlet@adacore.com
7612
7613         * doc/install.texi: Update requirements to build the Ada compiler.
7614
7615 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
7616
7617         * df-scan.c (struct df_scan_problem_data): Remove the
7618         mw_link_pool alloc pool.
7619         (df_scan_free_internal): Don't free it.
7620         (df_scan_alloc): Don't allocate it.
7621         * df.h (struct df_link): Update comment.
7622
7623 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
7624
7625         * except.h: Correct checks for when SJLJ exceptions must be used.
7626
7627 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7628
7629         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
7630         default.
7631
7632 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
7633
7634         PR tree-optimization/36218
7635         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
7636         configure for the build system.
7637         (BUILD_LDFLAGS): Define.
7638         * configure: Regenerate.
7639         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
7640
7641 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
7642
7643         PR target/36424
7644         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
7645         * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
7646         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
7647
7648 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
7649
7650         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
7651
7652 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
7653
7654         * config.gcc (Obsolete configurations): Remove list of
7655         configurations.
7656         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
7657         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
7658         targets matched by those patterns.
7659         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
7660         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
7661         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
7662         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
7663         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
7664         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
7665         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
7666         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
7667         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
7668         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
7669         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
7670         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
7671         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
7672         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
7673         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
7674         Make code for Solaris 7 and greater unconditional for Solaris.
7675         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
7676         Remove --with-* handling.
7677         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
7678         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
7679         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
7680         LINK_OS_WINDISS_SPEC): Remove.
7681         * config/rs6000/sysv4.opt (mwindiss): Remove.
7682         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
7683         * configure: Regenerate.
7684         * doc/cpp.texi: Don't mention BeOS.
7685         * doc/extend.texi (interrupt): Don't mention MS1.
7686         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
7687         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
7688         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
7689         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
7690         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
7691         Remove.
7692         * doc/invoke.texi (MT Options): Remove.
7693         (-mwindiss): Remove.
7694         (CRIS Options): Remove cris-axis-aout references.
7695         (HPPA Options): Don't mention hppa1.1-*-pro.
7696         * doc/md.texi: (MorphoTech family): Remove.
7697         * libgcc2.c: Don't handle UWIN.
7698         * config/alpha/t-unicosmk: Remove.
7699         * config/alpha/unicosmk.h: Remove.
7700         * config/arm/kaos-arm.h: Remove.
7701         * config/arm/kaos-strongarm.h: Remove.
7702         * config/arm/strongarm-coff.h: Remove.
7703         * config/arm/strongarm-elf.h: Remove.
7704         * config/arm/strongarm-pe.h: Remove.
7705         * config/arm/t-strongarm-pe: Remove.
7706         * config/arm/t-xscale-coff: Remove.
7707         * config/arm/t-xscale-elf: Remove.
7708         * config/arm/xscale-coff.h: Remove.
7709         * config/arm/xscale-elf.h: Remove.
7710         * config/chorus.h: Remove.
7711         * config/cris/aout.h: Remove.
7712         * config/cris/aout.opt: Remove.
7713         * config/cris/t-aout: Remove.
7714         * config/i386/beos-elf.h: Remove.
7715         * config/i386/kaos-i386.h: Remove.
7716         * config/i386/ptx4-i.h: Remove.
7717         * config/i386/sco5.h: Remove.
7718         * config/i386/sco5.opt: Remove.
7719         * config/i386/sysv4-cpp.h: Remove.
7720         * config/i386/sysv5.h: Remove.
7721         * config/i386/t-beos: Remove.
7722         * config/i386/t-sco5: Remove.
7723         * config/i386/t-uwin: Remove.
7724         * config/i386/uwin.asm: Remove.
7725         * config/i386/uwin.h: Remove.
7726         * config/kaos.h: Remove.
7727         * config/mips/windiss.h: Remove.
7728         * config/mt: Remove directory.
7729         * config/pa/pa-osf.h: Remove.
7730         * config/pa/pa-pro-end.h: Remove.
7731         * config/pa/t-pro: Remove.
7732         * config/ptx4.h: Remove.
7733         * config/rs6000/beos.h: Remove.
7734         * config/rs6000/kaos-ppc.h: Remove.
7735         * config/rs6000/t-beos: Remove.
7736         * config/rs6000/windiss.h: Remove.
7737         * config/sh/kaos-sh.h: Remove.
7738         * config/sol2-6.h: Remove.
7739         * config/sparc/sol26-sld.h: Remove.
7740         * config/sparc/sysv4-only.h: Remove.
7741         * config/vax/bsd.h: Remove.
7742         * config/vax/t-memfuncs: Remove.
7743         * config/vax/ultrix.h: Remove.
7744         * config/vax/vaxv.h: Remove.
7745         * config/windiss.h: Remove.
7746
7747 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
7748
7749         PR rtl-optimization/36438
7750         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
7751         for vector shifts with constant scalar shift operands.
7752
7753 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
7754
7755         * doc/invoke.texi: Document -march=xlr.
7756         * config/mips/xlr.md: New file.
7757         * config/mips/mips.md: Include it.
7758         (cpu): Add "xlr".
7759         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
7760         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
7761         (mips_rtx_cost_data): Likewise.
7762
7763 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
7764
7765         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
7766         PRE_INC and PRE_DEC cases.
7767
7768 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
7769
7770         PR rtl-optimization/36419
7771         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
7772         the emitting jump insn.
7773
7774         PR target/36362
7775         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
7776         is not bool, boolify the whole *expr_p and convert to the desired type.
7777
7778 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
7779
7780         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
7781         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
7782         Add omp_private_outer_ref hook, add another argument to
7783         omp_clause_default_ctor hook.
7784         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
7785         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
7786         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
7787         hook_tree_tree_tree_tree_null.
7788         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
7789         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
7790         * hooks.c (hook_tree_tree_tree_tree_null): New function.
7791         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
7792         * tree.def (OMP_TASK): New tree code.
7793         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
7794         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
7795         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
7796         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
7797         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
7798         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
7799         OMP_CLAUSE_COLLAPSE_EXPR): Define.
7800         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
7801         (OMP_DIRECTIVE_P): Add OMP_TASK.
7802         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
7803         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
7804         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
7805         and OMP_CLAUSE_UNTIED entries.
7806         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
7807         num_ops to 2.
7808         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
7809         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
7810         * tree-pretty-print.c (dump_omp_clause): Handle
7811         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
7812         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
7813         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
7814         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
7815         warning about unsigned iterators.  Change decl/init/cond/incr
7816         arguments to TREE_VECs, check arguments for all collapsed loops.
7817         (c_finish_omp_taskwait): New function.
7818         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
7819         ws_clauses.
7820         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
7821         default_function_array_conversion on init.  Add par_clauses argument.
7822         If decl is present in parallel's lastprivate clause, change it to
7823         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
7824         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
7825         collapse count in clauses.
7826         (c_parser_omp_for, c_parser_omp_parallel): Adjust
7827         c_parser_omp_for_loop callers.
7828         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
7829         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
7830         (c_parser_omp_clause_name): Handle collapse and untied clauses.
7831         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
7832         functions.
7833         (c_parser_omp_clause_schedule): Handle schedule(auto).
7834         Include correct location in the error message.
7835         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
7836         and PRAGMA_OMP_CLAUSE_UNTIED.
7837         (OMP_TASK_CLAUSE_MASK): Define.
7838         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
7839         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
7840         * tree-nested.c (convert_nonlocal_omp_clauses,
7841         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
7842         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
7843         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
7844         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
7845         OMP_CLAUSE_DECL.
7846         (conver_nonlocal_reference, convert_local_reference,
7847         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
7848         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
7849         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
7850         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
7851         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
7852         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
7853         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
7854         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
7855         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
7856         OMP_CLAUSE_UNTIED.
7857         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
7858         * c-common.h (c_finish_omp_taskwait): New prototype.
7859         * gimple-low.c (lower_stmt): Handle OMP_TASK.
7860         * tree-parloops.c (create_parallel_loop): Create 1 entry
7861         vectors for OMP_FOR_{INIT,COND,INCR}.
7862         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
7863         (make_edges): Handle OMP_TASK.
7864         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
7865         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
7866         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
7867         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
7868         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
7869         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
7870         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
7871         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
7872         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
7873         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
7874         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
7875         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
7876         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
7877         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
7878         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
7879         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
7880         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
7881         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
7882         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
7883         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
7884         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
7885         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
7886         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
7887         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
7888         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
7889         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
7890         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
7891         original iterator is present in lastprivate clause or if
7892         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
7893         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
7894         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
7895         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
7896         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
7897         if it is set, lookup var in outer contexts too.  Handle
7898         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
7899         to be implicitly determined firstprivate for task regions.
7900         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
7901         if it is set, lookup var in outer contexts too.  Set
7902         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
7903         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
7904         OMP_CLAUSE_UNTIED.  Take region_type as last argument
7905         instead of in_parallel and in_combined_parallel.
7906         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
7907         Adjust callers.
7908         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
7909         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
7910         (new_omp_context): Set default_kind to
7911         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
7912         (omp_region_type): New enum.
7913         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
7914         fields, add region_type.
7915         (new_omp_context): Take region_type as argument instead of is_parallel
7916         and is_combined_parallel.
7917         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
7918         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
7919         ctx->is_combined_parallel checks.
7920         (gimplify_omp_task): New function.
7921         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
7922         OMP_CLAUSE_UNTIED.
7923         * omp-low.c (extract_omp_for_data): Use schedule(static)
7924         for schedule(auto).  Handle pointer and unsigned iterators.
7925         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
7926         Add loops argument.  Extract data for collapsed OMP_FOR loops.
7927         (expand_parallel_call): Assert sched_kind isn't auto,
7928         map runtime schedule to index 3.
7929         (struct omp_for_data_loop): New type.
7930         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
7931         Add loop, loops, collapse and iter_type fields.
7932         (workshare_safe_to_combine_p): Disallow combined for if
7933         iter_type is unsigned long long.  Don't combine collapse > 1 loops
7934         unless all bounds and steps are constant.  Adjust extract_omp_for_data
7935         caller.
7936         (expand_omp_for_generic): Handle pointer, unsigned and long long
7937         iterators.  Handle collapsed OMP_FOR loops.  Adjust
7938         for struct omp_for_data changes.  If libgomp function doesn't return
7939         boolean_type_node, add comparison of the return value with 0.
7940         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
7941         pointer, unsigned and long long iterators.  Adjust for struct
7942         omp_for_data changes.
7943         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
7944         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
7945         unsigned long long.  Allocate loops array, pass it to
7946         extract_omp_for_data.  For collapse > 1 loops use always
7947         expand_omp_for_generic.
7948         (omp_context): Add sfield_map and srecord_type fields.
7949         (is_task_ctx, lookup_sfield): New functions.
7950         (use_pointer_for_field): Use is_task_ctx helper.  Change first
7951         argument's type from const_tree to tree.  Clarify comment.
7952         In OMP_TASK disallow copy-in/out sharing.
7953         (build_sender_ref): Call lookup_sfield instead of lookup_field.
7954         (install_var_field): Add mask argument.  Populate both record_type
7955         and srecord_type if needed.
7956         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
7957         in srecord_type.
7958         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
7959         and DECL_FIELD_OFFSET.
7960         (scan_sharing_clauses): Adjust install_var_field callers.  For
7961         firstprivate clauses on explicit tasks allocate the var by value in
7962         record_type unconditionally, rather than by reference.
7963         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
7964         Use is_taskreg_ctx instead of is_parallel_ctx.
7965         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
7966         (create_omp_child_function_name): Add task_copy argument, use
7967         *_omp_cpyfn* names if it is true.
7968         (create_omp_child_function): Add task_copy argument, if true create
7969         *_omp_cpyfn* helper function.
7970         (scan_omp_parallel): Adjust create_omp_child_function callers.
7971         Rename parallel_nesting_level to taskreg_nesting_level.
7972         (scan_omp_task): New function.
7973         (lower_rec_input_clauses): Don't run constructors for firstprivate
7974         explicit task vars which are initialized by *_omp_cpyfn*.
7975         Pass outer var ref to omp_clause_default_ctor hook if
7976         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
7977         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
7978         OMP_CLAUSE_REDUCTION_INIT.
7979         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
7980         avoid duplicate setting of fields.  Handle
7981         OMP_CLAUSE_PRIVATE_OUTER_REF.
7982         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
7983         copy-out if TREE_READONLY, only copy-in.
7984         (expand_task_copyfn): New function.
7985         (expand_task_call): New function.
7986         (struct omp_taskcopy_context): New type.
7987         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
7988         New functions.
7989         (lower_omp_parallel): Rename to...
7990         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
7991         Call create_task_copyfn if srecord_type is needed.  Adjust
7992         sender_decl type.
7993         (task_shared_vars): New variable.
7994         (check_omp_nesting_restrictions): Warn if work-sharing,
7995         barrier, master or ordered region is closely nested inside OMP_TASK.
7996         Add warnings for barrier if closely nested inside of work-sharing,
7997         ordered, or master region.
7998         (scan_omp_1): Call check_omp_nesting_restrictions even for
7999         GOMP_barrier calls.  Rename parallel_nesting_level to
8000         taskreg_nesting_level.  Handle OMP_TASK.
8001         (lower_lastprivate_clauses): Even if some lastprivate is found on a
8002         work-sharing construct, continue looking for them on parent parallel
8003         construct.
8004         (lower_omp_for_lastprivate): Add lastprivate clauses
8005         to the beginning of dlist rather than end.  Adjust for struct
8006         omp_for_data changes.
8007         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
8008         not after it.  Handle collapsed OMP_FOR loops, adjust for
8009         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
8010         (get_ws_args_for): Adjust extract_omp_for_data caller.
8011         (scan_omp_for): Handle collapsed OMP_FOR
8012         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
8013         (lower_omp_single_simple): If libgomp function doesn't return
8014         boolean_type_node, add comparison of the return value with 0.
8015         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
8016         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
8017         (parallel_nesting_level): Rename to...
8018         (taskreg_nesting_level): ... this.
8019         (is_taskreg_ctx): New function.
8020         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
8021         of is_parallel_ctx.
8022         (execute_lower_omp): Rename parallel_nesting_level to
8023         taskreg_nesting_level.
8024         (expand_omp_parallel): Rename to...
8025         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
8026         Call omp_task_call for OMP_TASK regions.
8027         (expand_omp): Adjust caller, handle OMP_TASK.
8028         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
8029
8030         * bitmap.c (bitmap_default_obstack_depth): New variable.
8031         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
8032         if argument is NULL and bitmap_default_obstack is already initialized.
8033         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
8034         at the end.
8035         * matrix-reorg.c (matrix_reorg): Likewise.
8036
8037 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
8038
8039         * config/i386/i386.md (*indirect_jump): Macroize using P
8040         mode iterator.  Remove !TARGET_64BIT from insn constraints.
8041         (*tablejump_1): Ditto.
8042         (*indirect_jump_rex64): Remove insn pattern.
8043         (*tablejump_1_rex64): Ditto.
8044         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
8045         and eh_return_si insn patterns.
8046
8047 2008-06-06  Richard Guenther  <rguenther@suse.de>
8048
8049         * tree-ssa-structalias.c (merge_smts_into): Remove.
8050         (find_what_p_points_to): Do not bother to compute the
8051         points-to set for pt_anything pointers.
8052         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
8053         for pt_anything pointers is ok.
8054
8055 2008-06-06  Jan Hubicka  <jh@suse.cz>
8056
8057         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
8058
8059 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8060
8061         * cgraph.c: Fix typos in comments.
8062         (cgraph_availability_names): Fix string typo.
8063         * fold-const.c: Fix typos in comments.
8064         (fold_binary): Fix typo in warning.
8065         * genautomata.c: Fix typos in comments.
8066         (check_presence_pattern_sets): Fix typo in local variable.
8067         (output_description): Fix typo in output.
8068         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
8069         * hwint.h: Likewise.
8070         * matrix-reorg.c (check_allocation_function): Likewise.
8071         * omega.c (smooth_weird_equations): Likewise.
8072         * auto-inc-dec.c: Fix typos in comments.
8073         * bb-reorder.c: Likewise.
8074         * builtins.c: Likewise.
8075         * c-common.c: Likewise.
8076         * c-cppbuiltin.c: Likewise.
8077         * c-parser.c: Likewise.
8078         * c-pretty-print.c: Likewise.
8079         * cfgcleanup.c: Likewise.
8080         * cfgexpand.c: Likewise.
8081         * cfghooks.c: Likewise.
8082         * cfglayout.c: Likewise.
8083         * cfgloopmanip.c: Likewise.
8084         * cgraphunit.c: Likewise.
8085         * coverage.c: Likewise.
8086         * dbxout.c: Likewise.
8087         * df-byte-scan.c: Likewise.
8088         * df-core.c: Likewise.
8089         * df-problems.c: Likewise.
8090         * df-scan.c: Likewise.
8091         * dfp.c: Likewise.
8092         * dominance.c: Likewise.
8093         * domwalk.c: Likewise.
8094         * dse.c: Likewise.
8095         * dwarf2out.c: Likewise.
8096         * emit-rtl.c: Likewise.
8097         * et-forest.c: Likewise.
8098         * function.c: Likewise.
8099         * function.h: Likewise.
8100         * gcc.c: Likewise.
8101         * gcov-io.c: Likewise.
8102         * gcov.c: Likewise.
8103         * gcse.c: Likewise.
8104         * genattrtab.c: Likewise.
8105         * ggc-page.c: Likewise.
8106         * gimplify.c: Likewise.
8107         * gthr-lynx.h: Likewise.
8108         * haifa-sched.c: Likewise.
8109         * ipa-cp.c: Likewise.
8110         * ipa-inline.c: Likewise.
8111         * ipa-prop.h: Likewise.
8112         * ipa-pure-const.c: Likewise.
8113         * ipa-struct-reorg.c: Likewise.
8114         * ipa-struct-reorg.h: Likewise.
8115         * ipa-type-escape.c: Likewise.
8116         * ipa.c: Likewise.
8117         * loop-doloop.c: Likewise.
8118         * mips-tfile.c: Likewise.
8119         * mkmap-flat.awk: Likewise.
8120         * mkmap-symver.awk: Likewise.
8121         * modulo-sched.c: Likewise.
8122         * omp-low.c: Likewise.
8123         * optabs.c: Likewise.
8124         * optabs.h: Likewise.
8125         * opts.c: Likewise.
8126         * passes.c: Likewise.
8127         * postreload-gcse.c: Likewise.
8128         * postreload.c: Likewise.
8129         * predict.c: Likewise.
8130         * pretty-print.h: Likewise.
8131         * profile.c: Likewise.
8132         * protoize.c: Likewise.
8133         * ra-conflict.c: Likewise.
8134         * real.c: Likewise.
8135         * recog.c: Likewise.
8136         * regclass.c: Likewise.
8137         * regs.h: Likewise.
8138         * reload.c: Likewise.
8139         * rtl-error.c: Likewise.
8140         * rtlanal.c: Likewise.
8141         * scan.h: Likewise.
8142         * sched-rgn.c: Likewise.
8143         * see.c: Likewise.
8144         * stmt.c: Likewise.
8145         * target.h: Likewise.
8146         * tree-dfa.c: Likewise.
8147         * tree-eh.c: Likewise.
8148         * tree-flow-inline.h: Likewise.
8149         * tree-inline.c: Likewise.
8150         * tree-into-ssa.c: Likewise.
8151         * tree-loop-distribution.c: Likewise.
8152         * tree-nested.c: Likewise.
8153         * tree-parloops.c: Likewise.
8154         * tree-pass.h: Likewise.
8155         * tree-pretty-print.c: Likewise.
8156         * tree-profile.c: Likewise.
8157         * tree-scalar-evolution.c: Likewise.
8158         * tree-sra.c: Likewise.
8159         * tree-ssa-alias-warnings.c: Likewise.
8160         * tree-ssa-ccp.c: Likewise.
8161         * tree-ssa-coalesce.c: Likewise.
8162         * tree-ssa-dom.c: Likewise.
8163         * tree-ssa-dse.c: Likewise.
8164         * tree-ssa-forwprop.c: Likewise.
8165         * tree-ssa-live.c: Likewise.
8166         * tree-ssa-live.h: Likewise.
8167         * tree-ssa-loop-im.c: Likewise.
8168         * tree-ssa-loop-ivopts.c: Likewise.
8169         * tree-ssa-loop-niter.c: Likewise.
8170         * tree-ssa-loop-prefetch.c: Likewise.
8171         * tree-ssa-phiopt.c: Likewise.
8172         * tree-ssa-phiprop.c: Likewise.
8173         * tree-ssa-sccvn.c: Likewise.
8174         * tree-ssa-ter.c: Likewise.
8175         * tree-ssa-threadupdate.c: Likewise.
8176         * tree-ssa.c: Likewise.
8177         * tree-vect-analyze.c: Likewise.
8178         * tree-vect-transform.c: Likewise.
8179         * tree-vectorizer.c: Likewise.
8180         * tree-vn.c: Likewise.
8181         * tree-vrp.c: Likewise.
8182         * tree.c: Likewise.
8183         * tree.def: Likewise.
8184         * tree.h: Likewise.
8185         * unwind-dw2-fde.c: Likewise.
8186         * unwind.inc: Likewise.
8187         * value-prof.c: Likewise.
8188         * vmsdbgout.c: Likewise.
8189
8190 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
8191
8192         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
8193         always place FP constants in the TOC for TARGET_POWERPC64.
8194         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
8195
8196 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
8197
8198         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
8199         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
8200         enable for TARGET_E500_DOUBLE.
8201         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
8202         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
8203         floating-point modes like integer modes for E500 double.
8204         (rs6000_legitimate_offset_address_p): Likewise.
8205         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
8206         addressing for DDmode for E500 double.
8207         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
8208         modes as using 64-bits of registers for E500 double.
8209         (spe_build_register_parallel): Do not handle DDmode or TDmode.
8210         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
8211         specially for E500 double.
8212         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
8213         TDmode for E500 double.
8214         (rs6000_gimplify_va_arg): Only handle SDmode in registers
8215         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
8216         (rs6000_split_multireg_move): Do not handle TDmode specially for
8217         E500 double.
8218         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
8219         using 64-bit registers for E500 double.
8220         (emit_frame_save): Do not handle DDmode specially for E500 double.
8221         (gen_frame_mem_offset): Likewise.
8222         (rs6000_function_value): Do not call spe_build_register_parallel
8223         for DDmode or TDmode.
8224         (rs6000_libcall_value): Likewise.
8225         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
8226         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
8227         for E500 double.
8228
8229 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
8230
8231         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
8232         in comments.
8233
8234 2008-06-04  Junjie Gu <jgu@tensilica.com>
8235
8236         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
8237         comparison for frame pointers.
8238
8239 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
8240
8241         PR target/27386
8242         * config/avr/avr.h (PUSH_ROUNDING): Remove.
8243
8244 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
8245
8246         PR target/30243
8247         * builtins.c (expand_builtin_signbit): Don't take lowpart when
8248         register is already smaller or equal to required mode.
8249
8250 2008-06-04  Xinliang David Li  <davidxl@google.com>
8251
8252         * tree-call-cdce.c: New file.
8253         (cond_dead_built_in_calls): New static variable.
8254         (input_domain): New struct.
8255         (check_pow): New function.
8256         (check_builtin_call): Ditto.
8257         (check_target_format): Ditto.
8258         (is_call_dce_candidate): Ditto.
8259         (gen_one_condition): Ditto.
8260         (gen_conditions_for_domain): Ditto.
8261         (get_domain): Ditto.
8262         (gen_conditions_for_pow_cst_base): Ditto.
8263         (gen_conditions_for_pow_int_base): Ditto.
8264         (gen_conditions_for_pow): Ditto.
8265         (get_no_error_domain): Ditto.
8266         (gen_shrink_wrap_conditions): Ditto.
8267         (shrink_wrap_one_built_in_call): Ditto.
8268         (shink_wrap_conditional_dead_built_in_calls): Ditto.
8269         (tree_call_cdce): Ditto.
8270         (gate_call_cdce): Ditto.
8271         (pass_call_cdce): New gimple pass.
8272         * passes.c: (init_optimization_passes): New pass.
8273         * tree-pass.h: New pass declaration.
8274         * opts.c (decode_options): New flag setting.
8275         * common.opt: Add -ftree-builtin-call-dce flag.
8276         * Makefile.in: Add new source file.
8277         * tempvar.def: New tv_id.
8278         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
8279
8280 2008-06-04  Richard Guenther  <rguenther@suse.de>
8281
8282         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
8283         (is_call_clobbered): Always check var_ann->call_clobbered.
8284         (mark_call_clobbered): Always set var_ann->call_clobbered.
8285         (clear_call_clobbered): Always clear var_ann->call_clobbered.
8286         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
8287         (reset_alias_info): Clear call clobbering info on MTAGs and
8288         globals as well.
8289         (set_pt_anything): Set pt_global_mem.
8290         (create_tag_raw): Adjust comment.
8291         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
8292
8293 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
8294             Maxim Kuvyrkov  <maxim@codesourcery.com>
8295
8296         * config/m68k/m68k.opt (mxgot): New option.
8297         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
8298         (m68k_output_addr_const_extra): New.
8299         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
8300         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
8301         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
8302         * doc/invoke.texi (M680x0 Options): Document -mxgot.
8303
8304 2008-06-04  Richard Guenther  <rguenther@suse.de>
8305
8306         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
8307         negative or non-representable offsets.
8308
8309 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
8310
8311         * config/i386/i386.c (ix86_gen_leave): New.
8312         (ix86_gen_pop1): Likewise.
8313         (ix86_gen_add3): Likewise.
8314         (ix86_gen_sub3): Likewise.
8315         (ix86_gen_sub3_carry): Likewise.
8316         (ix86_gen_one_cmpl2): Likewise.
8317         (ix86_gen_monitor): Likewise.
8318         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
8319         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
8320         ix86_gen_one_cmpl2 and ix86_gen_monitor.
8321         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
8322         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
8323         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
8324         (ix86_expand_epilogue): Updated.
8325         (print_operand): Handle integer register operand for 'z'.
8326         (ix86_expand_strlensi_unroll_1): Likewise.
8327         (ix86_expand_strlen): Likewise.
8328         (ix86_expand_builtin): Likewise.
8329         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
8330         mov{q}/mov{l} and add{q}/add{l}.
8331
8332 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
8333
8334         * config/i386/i386.md (P): New mode iterator.
8335         (SFmode push_operand splitter): Macroize DImode and SImode pushes
8336         using P mode iterator.
8337         (DFmode push_operand splitter): Ditto.
8338         (XFmode push_operand splitter): Ditto.
8339         (DFmode float_extend SFmode push_operand splitter): Ditto.
8340         (XFmode float_extend SFmode push_operand splitter): Do not generate
8341         SImode pushes for 64bit target.  Macroize Dimode and SImode
8342         pushes using P mode iterator.
8343         (XFmode float_extend DFmode push_operand splitter): Ditto.
8344
8345 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
8346
8347         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
8348         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
8349         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
8350         return type to int.
8351         (ix86_call_abi_override): Remove check for call_used_regs.
8352
8353 2008-06-03  Richard Guenther  <rguenther@suse.de>
8354
8355         * tree-ssa-structalias.c (find_func_aliases): Add constraints
8356         for the lhs of calls if the return type contains pointers.
8357
8358 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
8359
8360         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
8361         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
8362         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
8363         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
8364         of cfun and DEFAULT_ABI to deceide abi mode.
8365         (DEFAULT_ABI): New.
8366         (REG_PARM_STACK_SPACE): Removed.
8367         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
8368         (STACK_BOUNDARY): Use default target to deceide stack boundary.
8369         * config/i386/i386-protos.h (ix86_cfun_abi): New.
8370         (ix86_function_abi): Likewise.
8371         (ix86_function_type_abi): Likewise.
8372         (ix86_call_abi_override): Likewise.
8373         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
8374         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
8375         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
8376         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
8377         specific defines.
8378         (X86_64_REGPARM_MAX): New.
8379         (X86_64_SSE_REGPARM_MAX): New.
8380         (X64_REGPARM_MAX): New.
8381         (X64_SSE_REGPARM_MAX): New.
8382         (X86_32_REGPARM_MAX): New.
8383         (X86_32_SSE_REGPARM_MAX): New.
8384         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
8385         (ix86_function_regparm): Handle user calling abi.
8386         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
8387         by DEFAULT_ABI versus SYSV_ABI check.
8388         (ix86_reg_parm_stack_space): New.
8389         (ix86_function_type_abi): New.
8390         (ix86_call_abi_override): New.
8391         (ix86_function_abi): New.
8392         (ix86_cfun_abi): New.
8393         (init_cumulative_args): Call abi specific initialization.
8394         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
8395         (function_arg_64): Extend SSE_REGPARM_MAX check.
8396         (function_arg (): Remove TARGET_64BIT_MS_ABI.
8397         (ix86_pass_by_reference): Likewise.
8398         (ix86_function_value_regno_p): Likewise.
8399         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
8400         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
8401         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
8402         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
8403         (setup_incoming_varargs_64): Adjust regparm for call abi.
8404         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
8405         (ix86_va_start): Likewise.
8406         (ix86_gimplify_va_arg): Likewise.
8407         (ix86_expand_prologue): Likewise.
8408         (output_pic_addr_const): Likewise.
8409         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
8410         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
8411         (x86_output_mi_thunk): Likewise.
8412         (x86_function_profiler): Likewise.
8413         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
8414         (SYSV_ABI, MS_ABI): New constants.
8415         (DEFAULT_ABI): New.
8416         (init_regs): Add prototype of function in regclass.c file.
8417         (OVERRIDE_ABI_FORMAT): New.
8418         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
8419         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
8420         (OUTGOING_REG_PARM_STACK_SPACE): New.
8421         (ix86_reg_parm_stack_space): New prototype.
8422         (CUMULATIVE_ARGS): Add call_abi member.
8423         (machine_function): Add call_abi member.
8424         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
8425         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
8426
8427 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com>
8428
8429         PR target/34879
8430         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
8431         (avr_builtin_setjmp_frame_value): New function.
8432         * config/avr/avr.md (nonlocal_goto_receiver): Define.
8433         (nonlocal_goto): Define.
8434
8435 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
8436
8437         * config/mips/mips.c (mips_emit_loadgp): Return early if
8438         there is nothing do to, otherwise emit a blockage if
8439         !TARGET_EXPLICIT_RELOCS || crtl->profile.
8440         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
8441
8442 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8443
8444         * configure.ac: Drop unneeded backslash ending up in config.in.
8445         * acinclude.m4: Likewise.
8446         * config.in: Regenerate.
8447
8448 2008-05-26  Jan Hubicka  <jh@suse.cz>
8449
8450         * predict.c (maybe_hot_frequency_p): Break out of...
8451         (maybe_hot_bb_p): ... here.
8452         (maybe_hot_edge_p): New.
8453         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
8454         * basic-block.h (maybe_hot_edge_p): Declare.
8455
8456 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
8457
8458         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
8459         (*cmpfp_<mode>_cc): Ditto.
8460         (*fp_jcc_8<mode>_387): Ditto.
8461         (*fop_<MODEF:mode>_2_i387): Ditto.
8462         (*fop_<MODEF:mode>_3_i387): Ditto.
8463         (*fop_xf_2_i387): Ditto.
8464         (*fop_xf_3_i387): Ditto.
8465
8466 2008-06-02  Tomas Bily  <tbily@suse.cz>
8467
8468         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
8469
8470 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
8471
8472         * config/mips/mips.c (mips_valid_offset_p): New function.
8473         (mips_valid_lo_sum_p): Likewise.
8474         (mips_classify_address): Use them.
8475         (mips_force_address): New function.
8476         (mips_legitimize_address): Use it.
8477         * config/mips/mips.md (MOVE128): New mode iterator.
8478         (movtf): Require TARGET_64BIT.  Remove empty strings.
8479         (*movtf_internal): Rename to...
8480         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
8481         of "R" and use {,fp}{load,store} attributes instead of "multi".
8482         Use a separate define_split.
8483         (*movtf_mips16): New pattern.
8484
8485 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
8486
8487         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
8488         * config/mips/mips.c (mips_expand_before_return): New function.
8489         (mips_expand_epilogue): Call it.
8490         * config/mips/mips.md (return): Turn into a define_expand.
8491         (*return): New insn.
8492
8493 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
8494
8495         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
8496         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
8497         functions.  Do not emit uses and clobbers of CONCATs; individually
8498         use and clobber their operands.
8499         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
8500         gen_clobber, emit_use and gen_use.
8501         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
8502         (expand_builtin_return): Likewise.
8503         * cfgbuild.c (count_basic_blocks): Likewise.
8504         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
8505         * explow.c (emit_stack_restore): Likewise.
8506         * expmed.c (extract_bit_field_1): Likewise.
8507         * expr.c (convert_move, emit_move_complex_parts): Likewise.
8508         (emit_move_multi_word, store_constructor): Likewise.
8509         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
8510         (thread_prologue_and_epilogue_insns): Likewise.
8511         * lower-subreg.c (resolve_simple_move): Likewise.
8512         * optabs.c (widen_operand, expand_binop): Likewise.
8513         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
8514         * reload.c (find_reloads): Likewise.
8515         * reload1.c (eliminate_regs_in_insn): Likewise.
8516         * stmt.c (expand_nl_goto_receiver): Likewise.
8517         * config/alpha/alpha.md (builtin_longjmp): Likewise.
8518         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
8519         * config/arm/arm.c (arm_load_pic_register): Likewise.
8520         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
8521         * config/arm/arm.md (untyped_return): Likewise.
8522         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
8523         * config/avr/avr.c (expand_prologue): Likewise.
8524         * config/bfin/bfin.c (do_unlink): Likewise.
8525         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
8526         * config/cris/cris.c (cris_expand_prologue): Likewise.
8527         * config/darwin.c (machopic_indirect_data_reference): Likewise.
8528         (machopic_legitimize_pic_address): Likewise.
8529         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
8530         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
8531         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
8532         (ix86_expand_convert_uns_didf_sse): Likewise.
8533         (ix86_expand_vector_init_general): Likewise.
8534         * config/ia64/ia64.md (eh_epilogue): Likewise.
8535         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
8536         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
8537         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
8538         (config/iq2000/iq2000.c): Likewise.
8539         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
8540         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
8541         (builtin_longjmp): Likewise.
8542         * config/mn10300/mn10300.md (call, call_value): Likewise.
8543         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
8544         * config/pdp11/pdp11.md (abshi2): Likewise.
8545         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
8546         * config/s390/s390.c (s390_emit_prologue): Likewise.
8547         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
8548         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
8549         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
8550         * config/sh/sh.c (prepare_move_operands): Likewise.
8551         (output_stack_adjust, sh_expand_epilogue): Likewise.
8552         (sh_set_return_address, sh_expand_t_scc): Likewise.
8553         * config/sparc/sparc.c (load_pic_register): Likewise.
8554         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
8555         * config/spu/spu.c (spu_expand_epilogue): Likewise.
8556         * config/v850/v850.c (expand_epilogue): Likewise.
8557
8558 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
8559
8560         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
8561         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
8562         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
8563         * config/avr/avr.c (expand_prologue, expand_epilogue): Use
8564         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
8565         stack pointer register.
8566         (output_movhi): Remove code for interrupt specific writing to the
8567         stack pointer register.
8568
8569 2008-05-31  Richard Guenther  <rguenther@suse.de>
8570
8571         PR tree-optimization/34244
8572         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
8573         (tree_expr_nonzero_warnv_p): Likewise.
8574         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
8575         ssa_name_nonnegative_p.
8576         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
8577         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
8578         not tree_expr_nonzero_warnv_p.
8579
8580         PR tree-optimization/36262
8581         Revert
8582         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
8583
8584         PR tree-optimization/34244
8585         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
8586         (record_numbers_of_iterations): New function.
8587         (execute_vrp): Cache the numbers of iterations of loops.
8588         * tree-scalar-evolution.c (scev_reset_except_niters):
8589         New function.
8590         (scev_reset): Use scev_reset_except_niters.
8591         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
8592
8593 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
8594
8595         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
8596         __WORKAROUND_RETS when appropriate.
8597
8598 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
8599
8600         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
8601         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
8602         mode iterator.
8603         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
8604         *fop_df_comm_sse insn patterns using MODEF mode iterator.
8605         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
8606         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
8607         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
8608         *fop_df_1_mixed insn patterns using MODEF mode iterator.
8609         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
8610         *fop_df_1_sse insn patterns using MODEF mode iterator.
8611         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
8612         *fop_df_1_i387 insn patterns using MODEF mode iterator.
8613         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
8614         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
8615         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
8616         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
8617         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
8618         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
8619         (*fop_xf_4_i387): Use <MODE> for mode attribute.
8620         (*fop_xf_5_i387): Ditto.
8621         (*fop_xf_6_i387): Ditto.
8622
8623 2008-05-30  Richard Guenther  <rguenther@suse.de>
8624
8625         * builtins.c (build_string_literal): Avoid generating
8626         a non-gimple_val result.
8627
8628 2008-05-30  DJ Delorie  <dj@redhat.com>
8629
8630         * exec-tool.in: Use an environment variable (private) instead of a
8631         file (shared) as a semaphore, so as to not break parallel builds.
8632
8633 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
8634
8635         * optabs.c (maybe_encapsulate_block): Remove.
8636         (emit_libcall_block): Adjust accordingly.
8637         * optabs.h (maybe_encapsulate_block): Remove prototype.
8638
8639         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
8640         Don't use maybe_encapsulate_block.
8641
8642 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
8643
8644         * config/rs6000/rs6000.c (rs6000_legitimize_address,
8645         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
8646         rtx is a SYMBOL_REF before calling get_pool_constant.
8647
8648 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
8649
8650         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
8651
8652 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
8653
8654         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
8655         rather than OS names to choose INO_T_EQ definition.
8656         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
8657         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
8658
8659 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
8660
8661         PR target/36348
8662         * config/darwin-f.c: New.
8663         * config/t-darwin: Added rule to build darwin-f.o.
8664         * config.gcc: Defined new variable, fortran_target_objs.
8665         (*-*-darwin*): Set fortran_target_objs.
8666         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
8667         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
8668         * configure: Regenerated.
8669
8670 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
8671
8672         PR target/35771
8673         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
8674         canonical type if needed.
8675
8676 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
8677
8678         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
8679
8680 2008-05-29  Richard Guenther  <rguenther@suse.de>
8681
8682         PR tree-optimization/36343
8683         PR tree-optimization/36346
8684         PR tree-optimization/36347
8685         * tree-flow.h (clobber_what_p_points_to): Declare.
8686         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
8687         pointed-to variable is dereferenced is irrelevant to whether
8688         the pointer can access the pointed-to variable.
8689         (clobber_what_p_points_to): New function.
8690         * tree-ssa-alias.c (set_initial_properties): Use it.
8691         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
8692         call clobber check for NMTs.
8693
8694 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
8695
8696         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
8697         for printing gcov_type.
8698
8699 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
8700
8701         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
8702         and the eh region information.
8703         * value-prof.c (gimple_move_stmt_histograms): New function.
8704         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
8705
8706 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
8707
8708         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
8709
8710 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
8711
8712         * value-prof.c (tree_ic_transform): Print counts.
8713         * tree-profile.c (tree_gen_ic_func_profiler):
8714         Clear __gcov_indreict_call_callee variable to avoid misattribution
8715         of the profile.
8716
8717 2008-05-28  Rafael Espindola  <espindola@google.com>
8718
8719         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
8720         invalid sharing.
8721
8722 2008-05-28  Richard Guenther  <rguenther@suse.de>
8723
8724         PR tree-optimization/36339
8725         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
8726         and clobbering code out of the loop.
8727
8728 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
8729
8730         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
8731         letters defined.
8732
8733         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
8734         s390_contiguous_bitmask_p, s390_symref_operand_p,
8735         s390_check_symref_alignment, s390_reload_larl_operand,
8736         s390_reload_symref_address): New functions.
8737         (s390_branch_condition_mnemonic): Support compare and branch
8738         instructions.
8739         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
8740         and 'W' constraints.
8741         (s390_secondary_reload): Add secondary reloads for unaligned
8742         symbol refs or symbol refs to floating point or QI/TI mode
8743         integer values.
8744         (legitimate_address_p): Accept symbol references as addresses.
8745         (s390_expand_insv): Use rotate and insert selected bits
8746         instruction for insv when building for z10.
8747         (print_operand_address): Handle symbol ref addresses.
8748         (print_operand): Output modifier 'c' added for signed byte values.
8749         (s390_encode_section_info): Mark symbol refs with
8750         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
8751
8752         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
8753         (length attribute): RRF, RRR have 4 byte length.
8754         (FPALL, INTALL): New mode iterators added.
8755         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
8756         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
8757         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
8758         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
8759         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
8760         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
8761         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
8762         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
8763         instructions.
8764         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
8765         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
8766         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
8767         reload<INTALL:mode><P:mode>_toreg_z10,
8768         reload<FPALL:mode><P:mode>_tomem_z10,
8769         reload<FPALL:mode><P:mode>_toreg_z10,
8770         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
8771         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
8772         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
8773         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
8774         definition.
8775         (movmem, clrmem, cmpmem): New splitters added.
8776
8777         * config/s390/predicates.md (larl_operand): Use
8778         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
8779         SYMBOL_REF_ALIGN1_P.
8780         (s390_signed_integer_comparison,
8781         s390_unsigned_integer_comparison): New predicates.
8782
8783         * config/s390/s390-protos.h (s390_check_symref_alignment,
8784         s390_contiguous_bitmask_p, s390_reload_larl_operand,
8785         s390_reload_symref_address,
8786         s390_compare_and_branch_condition_mask): Prototypes added.
8787
8788         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
8789         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
8790         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
8791
8792 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
8793
8794         * config/s390/s390.c (z10_cost): New cost function for z10.
8795         (s390_handle_arch_option, override_options): Support -march=z10 switch.
8796         (s390_issue_rate): Adjust issue rate for z10.
8797         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
8798         (processor_flags): Add PF_Z10.
8799         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
8800         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
8801         * gcc/config.gcc: Add z10.
8802
8803 2008-05-28  Richard Guenther  <rguenther@suse.de>
8804
8805         PR tree-optimization/36291
8806         * tree-flow. h (struct gimple_df): Remove var_anns member.
8807         * tree-flow-inline.h (gimple_var_anns): Remove.
8808         (var_ann): Simplify.
8809         * tree-dfa.c (create_var_ann): Simplify.
8810         (remove_referenced_var): Clear alias info from var_anns of globals.
8811         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
8812         (delete_tree_ssa): Clear alias info from var_anns of globals.
8813         Do not free var_anns.
8814         (var_ann_eq): Remove.
8815         (var_ann_hash): Likewise.
8816
8817 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
8818
8819         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
8820         and loongson2f entries.
8821         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
8822         * config/mips/mips.h (processor_type): Add Loongson-2E
8823         and Loongson-2F entries.
8824         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
8825         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
8826         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
8827         * doc/invoke.texi (MIPS Options): Document loongson2e
8828         and loongson2f processor names.
8829
8830 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
8831
8832         PR target/35767
8833         PR target/35771
8834         * config/i386/i386.c (ix86_function_arg_boundary): Use
8835         alignment of canonical type.
8836         (ix86_expand_vector_move): Check unaligned memory access for
8837         all SSE modes.
8838
8839 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
8840
8841         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
8842         Moved to the front of file.
8843
8844 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
8845             H.J. Lu  <hongjiu.lu@intel.com>
8846
8847         * dwarf2out.c (current_fde): New.
8848         (add_cfi): Use it.
8849         (lookup_cfa:): Likewise.
8850         (dwarf2out_end_epilogue): Likewise.
8851         (dwarf2out_note_section_used): Likewise.
8852
8853 2008-05-27  Michael Matz  <matz@suse.de>
8854
8855         PR c++/27975
8856         * c.opt (Wenum-compare): New warning option.
8857         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
8858
8859 2008-05-27  Michael Matz  <matz@suse.de>
8860
8861         PR middle-end/36326
8862         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
8863         non-BLKmode types.
8864         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
8865         into memory as tail calls.
8866
8867 2008-05-27  Richard Guenther  <rguenther@suse.de>
8868
8869         PR tree-optimization/36339
8870         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
8871         pointers cause all addressable variables to be call clobbered.
8872
8873 2008-05-27  Richard Guenther  <rguenther@suse.de>
8874
8875         PR tree-optimization/36245
8876         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
8877
8878 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
8879
8880         * config/s390/s390.md: Replace all occurences of the 'm'
8881         constraint with 'RT'.
8882
8883 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
8884
8885         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
8886         definitions added.
8887         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
8888         "*movdi_64".
8889         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
8890         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
8891         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
8892
8893 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
8894
8895         * reload.c: (find_reloads): Skip alternatives according to the
8896         "enabled" attribute. Constify the constraint variable.
8897         * recog.c (get_attr_enabled): Add default implementation.
8898         (extract_insn): Set the alternative_enabled_p array
8899         in the recog_data struct.
8900         (preprocess_constraints, constrain_operands): Skip
8901         alternatives according to the "enabled" attribute
8902         * recog.h (struct recog_data): New field alternative_enabled_p.
8903         (skip_alternative): New inline function.
8904         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
8905         (record_reg_classes): Skip alternative according to the
8906         "enabled" attribute.
8907
8908         * doc/md.texi: Add documention for the "enabled" attribute.
8909
8910 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
8911
8912         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
8913         * postreload.c (reload_cse_simplify_operands): Replace 'm'
8914         constraint with TARGET_MEM_CONSTRAINT.
8915         * recog.c (asm_operand_ok, preprocess_constraints,
8916         constrain_operands): Likewise.
8917         * regclass.c (record_reg_classes): Likewise.
8918         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
8919         * reload1.c (maybe_fix_stack_asms): Likewise.
8920         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
8921         * recog.h: Adjust comment.
8922         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
8923         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
8924         * doc/md.texi: Add a note to description of 'm' constraint.
8925         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
8926
8927 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
8928
8929         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
8930         that the bitfield is of integral type before testing its precision.
8931
8932 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
8933             Sa Liu  <saliu@de.ibm.com>
8934
8935         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
8936         __modti3, __udivti3, __umodti3 and __udivmodti4.
8937         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
8938         that implement TImode mul and div functions.
8939         * config/spu/multi3.c: New. Implement __multi3.
8940         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
8941         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
8942         functions on SPU.
8943
8944 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
8945
8946         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
8947         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
8948         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
8949         tls_sysv_suffix): New mode and mode attribute iterators.
8950         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
8951         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
8952         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
8953         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
8954         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
8955         iterators.
8956
8957 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
8958
8959         PR tree-optimization/36329
8960         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
8961         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
8962         * cgraphbuild.c (initialize_inline_failed): Use the latter
8963         macro in lieu of the former.
8964         * ipa-inline.c (cgraph_mark_inline): Likewise.
8965         (cgraph_decide_inlining_of_small_function): Likewise.
8966         (cgraph_decide_inlining): Likewise.
8967         (cgraph_decide_inlining_incrementally): Likewise.
8968
8969 2008-05-26  Tristan Gingold  <gingold@adacore.com>
8970             Anatoly Sokolov  <aesok@post.ru>
8971
8972         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
8973         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
8974         * config/avr/avr.c (expand_prologue): Tune "call_prologue"
8975         optimization for 'avr6' architecture.
8976
8977 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
8978
8979         PR target/34932
8980         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
8981
8982 2008-05-26  Richard Guenther  <rguenther@suse.de>
8983
8984         * tree-ssa-sccvn.c (expr_has_constants): Declare.
8985         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
8986
8987 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
8988
8989         PR middle-end/36253
8990         * caller-save.c (insert_restore): Verify alignment of spill space.
8991         (insert_save): Likewise.
8992         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
8993         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
8994         (STACK_SLOT_ALIGNMENT): Likewise.
8995         * function.c (LOCAL_ALIGNMENT): Removed.
8996         (get_stack_local_alignment): New.
8997         (assign_stack_local): Use it.  Set alignment on stack slot.
8998         (assign_stack_temp_for_type): Use get_stack_local_alignment.
8999         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
9000         (STACK_SLOT_ALIGNMENT): New.
9001         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
9002         stack slot in XFmode.
9003
9004         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
9005
9006 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
9007
9008         PR/36321
9009         * config/i386/i386.md (allocate_stack_worker_64): Make sure
9010         argument operand in rax isn't removed.
9011
9012 2008-05-26  Richard Guenther  <rguenther@suse.de>
9013
9014         PR middle-end/36300
9015         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
9016         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
9017
9018 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
9019
9020         PR bootstrap/36331
9021         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
9022
9023 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
9024
9025         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
9026         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
9027
9028 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
9029
9030         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
9031         build a trampoline if we don't want one.
9032         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
9033         return zero for nested functions if we don't want a trampoline.
9034
9035 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
9036
9037         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
9038
9039 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
9040
9041         PR fortran/18428
9042         * c.opt: Removed undocumented option '-lang-fortran'.
9043         * c-common.h: Removed global variable 'lang_fortran'.
9044         * c-opts.c (c_common_handle_option): Removed code to handle
9045         option '-lang-fortran'. Updated includes.
9046         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
9047         definition of '__GFORTRAN__'.
9048         (define__GNUC__): Reimplemented to use BASEVER and
9049         cpp_define_formatted.
9050         (builtin_define_with_value_n): Removed.
9051         * c-incpath.h: Renamed to ...
9052         * incpath.h: ... this.
9053         * c-incpath.c: Renamed to ...
9054         * incpath.c: ... this. Updated includes.
9055         * fix-header.c: Updated includes.
9056         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
9057         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
9058         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
9059
9060 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
9061
9062         * tree.h: Update the table of flags used on tree nodes.
9063         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
9064         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
9065         (FORCED_LABEL): Add access check.
9066         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
9067         (ASM_INPUT_P): Likewise.
9068         (ASM_VOLATILE_P): Likewise.
9069         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
9070         (OMP_SECTION_LAST): Access private_flag directly.
9071         (OMP_RETURN_NOWAIT): Likewise.
9072         (OMP_PARALLEL_COMBINED): Likewise.
9073         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
9074         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
9075         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
9076         deprecated_flag directly.
9077
9078 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
9079
9080         * final.c (frame_pointer_needed): Removed.
9081         * flags.h (frame_pointer_needed): Likewise.
9082
9083         * function.h (rtl_data): Add frame_pointer_needed.
9084         (frame_pointer_needed): New.
9085
9086 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
9087
9088         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
9089
9090 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
9091
9092         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
9093         SRC is a REG.
9094
9095 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
9096
9097         * c-common.c (strip_array_types): Move function to..
9098         * tree.c: ..here.
9099         (get_inner_array_type): Delete.
9100         * c-common.h (strip_array_types): Move declaration to..
9101         * tree.h: ..here.
9102         (get_inner_array_type): Delete.
9103         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
9104         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
9105         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
9106         * config/pa/pa.c (emit_move_sequence): Likewise.
9107
9108 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
9109
9110         * config/i386/i386.md (*sse_prologue_save_insn): Set length
9111         attribute to 34.
9112
9113 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
9114
9115         * function.c: Include target hook for nonlocal_goto frame value.
9116
9117 2008-05-24  Richard Guenther  <rguenther@suse.de>
9118
9119         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
9120         variable can be only accessed through a pointer or a union.
9121
9122 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9123
9124         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
9125         * doc/extend.texi: Likewise.
9126
9127 2008-05-23  DJ Delorie  <dj@redhat.com>
9128
9129         * config/m32c/jump.md (untyped_call): Add.
9130
9131         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
9132         for A24 to PSImode.
9133         (m32c_address_cost): Detail costs for indirect offsets.
9134
9135 2008-05-23  Rafael Espindola  <espindola@google.com>
9136
9137         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
9138         if a node is a SUBREG.
9139         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
9140         is a SUBREG.
9141
9142 2008-05-23  Paul Brook  <paul@codesourcery.com>
9143             Carlos O'Donell  <carlos@codesourcery.com>
9144
9145         * doc/extend.texi: Clarify use of __attribute__((naked)).
9146         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
9147         * target.h (gcc_target): Add allocate_stack_slots_for_args.
9148         * function.c (use_register_for_decl): Use
9149         targetm.calls.allocate_stack_slots_for_args.
9150         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
9151         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
9152         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
9153
9154 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
9155
9156         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
9157
9158 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
9159
9160         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
9161         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
9162         is only rounded once.
9163
9164 2008-05-23  Richard Guenther  <rguenther@suse.de>
9165
9166         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
9167
9168 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
9169             Jakub Jelinek  <jakub@redhat.com>
9170
9171         PR target/36079
9172         * configure.ac: Handle --enable-cld.
9173         * configure: Regenerated.
9174         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
9175         * config/i386/i386.h (struct machine_function): Add needs_cld field.
9176         (ix86_current_function_needs_cld): New define.
9177         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
9178         (cld): New isns pattern.
9179         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
9180         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
9181         * config/i386/i386.opt (mcld): New option.
9182         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
9183         TARGET_CLD and ix86_current_function_needs_cld.
9184         (override_options): Use -mcld by default for 32-bit code if
9185         USE_IX86_CLD.
9186
9187         * doc/install.texi (Options specification): Document --enable-cld.
9188         * doc/invoke.texi (Machine Dependent Options)
9189         [i386 and x86-64 Options]: Add -mcld option.
9190         (Intel 386 and AMD x86-64 Options): Document -mcld option.
9191
9192 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
9193         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
9194         (return_in_memory_64): Likewise.
9195         (return_in_memory_ms_64): Likewise.
9196
9197 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9198
9199         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
9200         * builtins.c (fold_builtin_fpclassify): New.
9201         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
9202         * builtins.def (BUILT_IN_FPCLASSIFY): New.
9203         * c-common.c (handle_type_generic_attribute): Adjust to accept
9204         fixed arguments before an elipsis.
9205         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
9206         * doc/extend.texi: Document __builtin_fpclassify.
9207
9208 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
9209
9210         * omp-low.c (gate_expand_omp_ssa): Remove.
9211         (pass_expand_omp_ssa): Remove.
9212         (gate_expand_omp): Do not check for flag_openmp_ssa.
9213         * common.opt (-fopenmp-ssa): Remove.
9214         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
9215
9216 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
9217
9218         * config/sh/sh.opt (mfixed-range): New option.
9219         * config/sh/sh-protos.h (sh_fix_range): Declare.
9220         * config/sh/sh.c (sh_fix_range): New function.
9221         * config/sh/sh.h (sh_fixed_range_str): Declare.
9222         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
9223         is not empty.
9224         * doc/invoke.texi (SH Options): Document -mfixed-range.
9225
9226 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
9227
9228         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
9229         it before the redeclaration.
9230
9231 2008-05-22  Anatoly Sokolov <aesok@post.ru>
9232
9233         * config/avr/avr.c (get_sequence_length): Add new function.
9234         (expand_prologue, expand_epilogue): Remove duplicate code.
9235
9236 2008-05-22  Rafael Espindola  <espindola@google.com>
9237
9238         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
9239         sharing.
9240
9241 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
9242
9243         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
9244         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
9245
9246         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
9247         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
9248         (vect_update_misalignment_for_peel): Likewise.
9249         (vector_alignment_reachable_p): Likewise.
9250         * tree-vect-transform.c (vectorizable_load): Likewise.
9251         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
9252         (get_vectype_for_scalar_type): Pass mode of scalar_type
9253         to UNITS_PER_SIMD_WORD.
9254
9255         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
9256         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
9257         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
9258         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
9259         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
9260
9261 2008-05-22  Ira Rosen  <irar@il.ibm.com>
9262
9263         PR tree-optimization/36293
9264         * tree-vect-transform.c (vect_transform_strided_load): Don't check
9265         if the first load must be skipped because of a gap.
9266
9267 2008-05-22  Richard Guenther  <rguenther@suse.de>
9268
9269         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
9270         more cases of offset disambiguation that is possible if
9271         strict-aliasing rules apply.
9272         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
9273         for basic offset and type-based disambiguation.
9274
9275 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
9276
9277         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
9278         ix86_expand_vector_set on V16QImode for SSE4.1.
9279
9280 2008-05-21  Tom Tromey  <tromey@redhat.com>
9281
9282         * c.opt (Wimport): Mark as undocumented.
9283         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
9284         -Wno-import.
9285         (Warning Options): Likewise.
9286         * doc/cppopts.texi: Don't mention -Wimport.
9287
9288 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
9289
9290         PR tree-optimization/36287
9291         PR tree-optimization/36286
9292         * lambda-code.c (build_access_matrix): Do not use the loop->num
9293         for computing the number of induction variables: use the loop depth
9294         instead.
9295
9296 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
9297
9298         PR/36280
9299         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
9300         option -f(no-)leading-underscore.
9301
9302 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
9303
9304         * config/i386/i386.c (ix86_expand_vector_init_general): Use
9305         GET_MODE_NUNITS (mode).
9306
9307 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
9308
9309         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
9310         (-mmulhw): Add 464 to description.
9311         (-mdlmzb): Likewise.
9312         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
9313         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
9314         464fp entries.
9315         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
9316         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
9317         * config/rs6000/rs6000.md: Update comments for 464.
9318
9319 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
9320
9321         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
9322
9323 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
9324
9325         * config/i386/sse.md (vec_extractv4sf): Removed.
9326         (vec_extractv2df): Likewise.
9327         (vec_extractv2di): Likewise.
9328         (vec_extractv4si): Likewise.
9329         (vec_extractv8hi): Likewise.
9330         (vec_extractv16qi): Likewise.
9331         (vec_extract<mode>): New.
9332
9333 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
9334
9335         * config/i386/sse.md (vec_setv4sf): Removed.
9336         (vec_setv2df): Likewise.
9337         (vec_setv2di): Likewise.
9338         (vec_setv4si): Likewise.
9339         (vec_setv8hi): Likewise.
9340         (vec_setv16qi): Likewise.
9341         (vec_set<mode>): New.
9342
9343 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
9344
9345         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
9346         goto for vec_concat and vec_interleave.
9347
9348 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
9349
9350         * config/i386/sse.md (vec_initv4sf): Removed.
9351         (vec_initv2df): Likewise.
9352         (vec_initv2di): Likewise.
9353         (vec_initv4si): Likewise.
9354         (vec_initv8hi): Likewise.
9355         (vec_initv16qi): Likewise.
9356         (vec_init<mode>): New.
9357
9358 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
9359
9360         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
9361
9362 2008-05-21  Tom Tromey  <tromey@redhat.com>
9363
9364         * ggc-zone.c (lookup_page_table_if_allocated): New function.
9365         (zone_find_object_offset): Likewise.
9366         (gt_ggc_m_S): Likewise.
9367         (highest_bit): Likewise.
9368         * ggc-page.c (gt_ggc_m_S): New function.
9369         * stringpool.c (string_stack): Remove.
9370         (init_stringpool): Update.
9371         (ggc_alloc_string): Use ggc_alloc.
9372         (maybe_delete_ident): New function.
9373         (ggc_purge_stringpool): Likewise.
9374         (gt_ggc_m_S): Remove.
9375         * ggc-common.c (ggc_protect_identifiers): New global.
9376         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
9377         ggc_protect_identifiers.
9378         * ggc.h (ggc_protect_identifiers): Declare.
9379         (gt_ggc_m_S): Update.
9380         (ggc_purge_stringpool): Declare.
9381         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
9382         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
9383         special case.
9384         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
9385
9386 2008-05-21  David S. Miller  <davem@davemloft.net>
9387
9388         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
9389         tmake_file.
9390
9391 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
9392
9393         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
9394         once finished.
9395
9396 2008-05-20  David Daney  <ddaney@avtrex.com>
9397
9398         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
9399         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
9400         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
9401         UNSPEC_UPDATE_GOT_VERSION): Renumber.
9402         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
9403         (atomic_hiqi_op): New define_code_iterator.
9404         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
9405         mips_expand_compare_and_swap_12.
9406         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
9407         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
9408         (sync_<optab><mode>, sync_old_<optab><mode>,
9409         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
9410         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
9411         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
9412         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
9413         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
9414         (test_and_set_12): New insn.
9415         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
9416         sync_new_<optab><mode>, sync_old_nand<mode>,
9417         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
9418         clobber to operand 0 for SI and DI mode insns.
9419         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
9420         mips_gen_fn_4): New typedefs.
9421         (mips_gen_fn_ptrs): Define new union type.
9422         (mips_expand_compare_and_swap_12): Remove declaration.
9423         (mips_expand_atomic_qihi): Declare function.
9424         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
9425         (mips_expand_atomic_qihi): ... this.  Use new generator function
9426         parameter.
9427         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
9428         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
9429         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
9430         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
9431         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
9432         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
9433         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
9434         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
9435         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
9436         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
9437         New macros.
9438
9439 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
9440
9441         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
9442         the missing break.
9443
9444 2008-05-20  Anatoly Sokolov <aesok@post.ru>
9445
9446         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
9447         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
9448         (avr_attribute_table): Add 'OS_main' function attribute.
9449         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
9450         functions with 'OS_main' attribute.
9451
9452 2008-05-20  Richard Guenther  <rguenther@suse.de>
9453
9454         PR tree-optimization/35204
9455         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
9456         helper, split out from ...
9457         (DFS): ... here.  Make the DFS walk non-recursive.
9458
9459 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
9460             Jan Sjodin  <jan.sjodin@amd.com>
9461
9462         PR tree-optimization/36181
9463         * tree-parloops.c (loop_has_vector_phi_nodes): New.
9464         (parallelize_loops): Don't parallelize when the loop has vector
9465         phi nodes.
9466
9467 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
9468             Sebastian Pop  <sebastian.pop@amd.com>
9469
9470         * tree-loop-linear.c (gather_interchange_stats): Look in the access
9471         matrix, and never look at the tree representation of the memory
9472         accesses.
9473         (linear_transform_loops): Computes parameters and access matrices.
9474         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
9475         when fails.
9476         (access_matrix_get_index_for_parameter): New.
9477         * tree-data-ref.h (struct access_matrix): New.
9478         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
9479         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
9480         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
9481         am_vector_index_for_loop): New.
9482         (struct data_reference): Add field access_matrix.
9483         (DR_ACCESS_MATRIX): New.
9484         (compute_data_dependences_for_loop): Update declaration.
9485         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
9486         * lambda.h (lambda_vector_vec_p): Declared.
9487         * lambda-code.c: Depend on pointer-set.h.
9488         (lambda_collect_parameters_from_af, lambda_collect_parameters,
9489         av_for_af_base, av_for_af, build_access_matrix,
9490         lambda_compute_access_matrices): New.
9491         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
9492
9493 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
9494
9495         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
9496         $SOURCEDIR/include.
9497
9498 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
9499             Sebastian Pop  <sebastian.pop@amd.com>
9500
9501         PR tree-optimization/36206
9502         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
9503         FOLD_CONVERSIONS.
9504         (instantiate_scev_1): Rename flags to fold_conversions.
9505         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
9506         outeside instantiation_loop.
9507         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
9508         (evolution_function_is_affine_or_constant_p): Removed.
9509         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
9510         instantiate_scev.
9511         (analyze_siv_subscript): Pass in the loop nest number.
9512         Call evolution_function_is_affine_in_loop instead of
9513         evolution_function_is_affine_p.
9514         (analyze_overlapping_iterations): Pass in the loop nest number.
9515
9516 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
9517             Sebastian Pop  <sebastian.pop@amd.com>
9518
9519         PR tree-optimization/36206
9520         * tree-chrec.h (chrec_fold_op): New.
9521         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
9522         and other trees.
9523
9524 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
9525
9526         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
9527         (DIRS_EQ): New.
9528         (remove_duplicates): Do not set inode on non-inode systems.
9529         Use DIRS_EQ.
9530
9531 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
9532
9533         * config.gcc (tm_file): Update comments about relative pathnames.
9534
9535 2008-05-20  Richard Guenther  <rguenther@suse.de>
9536
9537         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
9538         * tree-ssa-sccvn.c (process_scc): Likewise.
9539         * tree-ssa-sink.c (execute_sink_code): Likewise.
9540         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
9541         * tree-vrp.c (process_assert_insertions): Likewise.
9542         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
9543         (perform_tree_ssa_dce): Likewise.
9544         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
9545         (dump_dominator_optimization_stats): Likewise.
9546         * tree-vectorizer.c (vectorize_loops): Likewise.
9547
9548 2008-05-20  Richard Guenther  <rguenther@suse.de>
9549
9550         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
9551
9552 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
9553
9554         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
9555         (ix86_i386elf_return_in_memory): Likewise.
9556         (ix86_i386interix_return_in_memory): Likewise.
9557         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
9558         (SUBTARGET_RETURN_IN_MEMORY): New.
9559         * config/i386/i386elf.h: Likewise.
9560         * config/i386/ptx4-i.h: Likewise.
9561         * config/i386/sol2-10.h: Likewise.
9562         * config/i386/sysv4.h: Likewise.
9563         * config/i386/vx-common.h: Likewise.
9564         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
9565         * config/i386/i386.c (ix86_return_in_memory): Made static and
9566         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
9567         (ix86_i386elf_return_in_memory): Removed.
9568         (ix86_i386interix_return_in_memory): Removed.
9569         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
9570         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
9571
9572 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
9573
9574         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
9575
9576 2008-05-19  Xinliang David Li  <davidxl@google.com>
9577
9578         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
9579         * opts.c: Ditto.
9580         * common.opt: Ditto.
9581         * doc/invoke.texi: Ditto.
9582
9583 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
9584
9585         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
9586         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
9587
9588 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
9589
9590         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
9591         sizes of operand array from 8/4 to 4/2.
9592         (ix86_expand_vector_init_general): Change size of operand array
9593         from 32 to 16.  Remove op0, op1 and half_mode.
9594
9595 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
9596
9597         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
9598         (ix86_expand_vector_init_interleave): Likewise.
9599         (ix86_expand_vector_init_general): Use them.  Assert
9600         word_mode == SImode when n_words == 4.
9601
9602 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
9603
9604         * config/i386/i386.c (ix86_secondary_reload): New static function.
9605         (TARGET_SECONDARY_RELOAD): New define.
9606         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
9607         * config/i386/i386.md (reload_outqi): Remove.
9608
9609 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9610
9611         PR middle-end/35509
9612         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
9613         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
9614         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
9615         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
9616         (fold_builtin_1): Likewise.
9617         * builtins.def (BUILT_IN_ISINF_SIGN): New.
9618         c-common.c (check_builtin_function_arguments): Handle
9619         BUILT_IN_ISINF_SIGN.
9620         * doc/extend.texi: Document __builtin_isinf_sign.
9621         * fold-const.c (operand_equal_p): Handle COND_EXPR.
9622
9623 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
9624
9625         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
9626         EH cleanup at the end of the pass, search for those that have been
9627         turned into forwarder blocks and do the cleanup on their successor.
9628
9629 2008-05-18  Richard Guenther  <rguenther@suse.de>
9630
9631         * tree-cfg.c (verify_gimple_expr): Allow conversions from
9632         pointers to sizetype and vice versa.
9633
9634 2008-05-18 Xinliang David Li   <davidxl@google.com>
9635
9636         * gcc/tree-ssa-dce.c: Coding style fix.
9637         (check_pow): Documentation comment.
9638         (check_log): Documenation comment. Coding style fix.
9639         (is_unnecessary_except_errno_call): Ditto.
9640         (gen_conditions_for_pow): Ditto.
9641         (gen_conditions_for_log): Ditto.
9642         (gen_shrink_wrap_conditions): Ditto.
9643         (shrink_wrap_one_built_in_calls): Ditto.
9644         * gcc/doc/invoke.texi: Better documentation string.
9645         * ChangeLog: Fix wrong change log entries from
9646         May 17 checkin on function call DCE.
9647
9648 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
9649
9650         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
9651
9652 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
9653
9654         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
9655         * df-problems.c (simulation routines): Fixed block comment to
9656         properly say how to add forwards scanning functions.
9657
9658 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
9659
9660         * tree-inline.c (setup_one_parameter): Remove dead code.
9661
9662 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
9663
9664         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
9665         a BIT_AND_EXPR only for an INTEGER_TYPE.
9666
9667 2008-05-17 Xinliang David Li   <davidxl@google.com>
9668
9669         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
9670         (check_pow, check_log, is_unnecessary_except_errno_call): New
9671         functions to check for eliminating math functions that are pure
9672         except for setting errno.
9673         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
9674         general condition expressions for shrink-wrapping pow/log calls.
9675         (gen_shrink_wrap_conditions): Ditto.
9676         (shrink_wrap_one_built_in_call): Ditto.
9677         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
9678         (mark_operand_necessary): If debugging, output if OP is necessary.
9679         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
9680         unnecessary.
9681         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
9682         opt level >= 2.
9683         * gcc/common.opt: New user flag -ftree-builtin-dce.
9684         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
9685
9686 2008-05-16  David S. Miller  <davem@davemloft.net>
9687
9688         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
9689         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
9690
9691 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
9692
9693         PR target/36246
9694         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
9695
9696 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
9697
9698         * ifcvt.c (dead_or_predicable): Rename
9699         df_simulate_one_insn_backwards to df_simulate_one_insn.
9700         * recog.c (peephole2_optimize): Ditto.
9701         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
9702         Ditto.
9703         * df.h: Rename df_simulate_one_insn_backwards to
9704         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
9705         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
9706         scanning of defs and uses.
9707         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
9708         (df_simulate_one_insn_forwards): Removed.
9709
9710 2008-05-16  Doug Kwan  <dougkwan@google.com>
9711
9712         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
9713         QNaN & SNaN.
9714         (real_from_string): Handle NaNs and Inf as approriate.
9715
9716 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
9717
9718         * doc/gty.texi (Source Files Containing Type Information): Note
9719         that headers should appear first in the gtfiles list.
9720
9721 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
9722
9723         * tree.def (COND_EXEC): Properly documented this code.
9724
9725 2008-05-16  Diego Novillo  <dnovillo@google.com>
9726
9727         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
9728         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
9729         the new field.
9730
9731 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
9732
9733         * tree-ssa-dse (max_stmt_uid): Removed.
9734         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
9735         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
9736         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
9737         * function.h (cfun.last_stmt_uid): New field.
9738         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
9739         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
9740         New functions.
9741         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
9742         (create_stmt_ann): Initialize the ann->uid field.
9743         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
9744         with new calls.
9745         * tree-flow.h (renumber_gimple_stmt_uids): New function.
9746
9747 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
9748
9749         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
9750         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
9751         (init_empty_tree_cfg): Call it.
9752
9753 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
9754
9755         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
9756         Update all users.
9757
9758 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
9759
9760         * doc/invoke.text (-fdump-tree-*-verbose): New option.
9761         * tree-dump.c (dump_options): New verbose option.
9762         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
9763         Add verbose dump.
9764         * tree-pass.h (TDF_VERBOSE): New dump flag.
9765         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
9766         (tree-flow.h): Added include.
9767         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
9768
9769 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
9770
9771         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
9772
9773         From Jie Zhang  <jie.zhang@analog.com>
9774         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
9775         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
9776         mcpu=bf561-none and mcpu=bf561-0.2.
9777         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
9778         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
9779         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
9780         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
9781         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
9782         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
9783         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
9784         option.
9785         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
9786         (cputype_selected): Remove.
9787         (bfin_handle_option): Don't use cputype_selected.
9788         (override_options): When no mcpu option, enable all workarounds.
9789         Don't use bfin_workarounds.
9790         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
9791         processor type.
9792         (DEFAULT_CPU_TYPE): Don't define.
9793
9794 2008-05-16  Richard Guenther  <rguenther@suse.de>
9795
9796         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
9797         on deletion of the last stmt.
9798
9799 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9800
9801         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
9802         V8HImode for SSE2 and V16QImode for SSE4.1.
9803
9804 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
9805
9806         * cgraph.h (compute_inline_parameters): Made public.
9807         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
9808         variable_generate_summary, function_write_summary,
9809         variable_write_summary, variable_read_summary.  Added generate_summary,
9810         write_summary, read_summary.
9811         * cgraphunit.c (cgraph_process_new_functions): Changed call from
9812         pass_ipa_inline.function_generate_summary, to
9813         compute_inline_parameters.
9814         * ipa-inline.c (compute_inline_parameters): Made public and added
9815         node parameter.
9816         (compute_inline_parameters_for_current): New function.
9817         (pass_inline_param): Now calls compute_inline_parameters_for_current.
9818         (inline_generate_summary): Removed parameter and made to loop over
9819         all cgraph nodes.
9820         (pass_ipa_inline): Updated for new IPA_PASS structure.
9821         * passes.c (execute_ipa_summary_passes): Now is called once per
9822         pass rather than once per node*pass.
9823
9824 2008-05-15  Anatoly Sokolov <aesok@post.ru>
9825
9826         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
9827         avr_have_mul_p, avr_asm_only_p): Remove variables.
9828         (avr_override_options): Remove initialization of removed variables.
9829         (avr_file_start):  Convert removed variables to fields of
9830         'struct base_arch_s *avr_current_arch'.
9831         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
9832         (AVR_HAVE_MUL): (Ditto.).
9833         (AVR_HAVE_MOVW): (Ditto.).
9834         (AVR_HAVE_LPMX): (Ditto.).
9835         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
9836         avr_asm_only_p): Remove declaration.
9837
9838 2008-05-15  Diego Novillo  <dnovillo@google.com>
9839
9840         * config/arm/arm.c (arm_return_in_memory): Fix return type.
9841         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
9842
9843 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
9844
9845         PR middle-end/36194
9846         * combine.c (check_conversion): Rename back to check_promoted_subreg.
9847         Don't call record_truncated_value from here.
9848         (record_truncated_value): Turn it into a for_each_rtx callback.
9849         (record_truncated_values): New function.
9850         (combine_instructions): Call note_uses with record_truncated_values.
9851         Change name of check_conversion to check_promoted_subreg.
9852
9853 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
9854
9855         * doc/sourcebuild.texi: Document support for torture tests.
9856
9857 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
9858
9859         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
9860         to alternative 4 of operand 2.
9861
9862 2008-05-15  Richard Guenther  <rguenther@suse.de>
9863
9864         * tree-pass.h (current_pass): Declare.
9865         (get_pass_for_id): Likewise.
9866         * passes.c (passes_by_id, passes_by_id_size): New globals.
9867         (set_pass_for_id): New function.
9868         (get_pass_for_id): Likewise.
9869         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
9870         (execute_function_todo): Flush per function statistics.
9871         * toplev.c (compile_file): Init statistics.
9872         (general_init): Do early statistics initialization.
9873         (finalize): Finish statistics.
9874         * statistics.h (statistics_early_init): Declare.
9875         (statistics_init): Likewise.
9876         (statistics_fini): Likewise.
9877         (statistics_fini_pass): Likewise.
9878         (statistics_counter_event): Likewise.
9879         (statistics_histogram_event): Likewise.
9880         * statistics.c: New file.
9881         * Makefile.in (OBJS-common): Add statistics.o.
9882         (statistics.o): Add dependencies.
9883         * doc/invoke.texi (-fdump-statistics): Document.
9884
9885         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
9886         (insert): Likewise.
9887         (execute_pre): Use statistics_counter_event.
9888         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
9889         (substitute_and_fold): Increment it.  Use statistics_counter_event.
9890
9891 2008-05-15  Diego Novillo  <dnovillo@google.com>
9892
9893         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
9894
9895         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
9896         * tree-ssa-alias.c (new_type_alias): Remove references to
9897         sub-variables from comment.
9898         * tree-ssa-operands.c (swap_tree_operands): Likewise.
9899
9900 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9901
9902         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
9903         attribute to 1 only for insertps alternative.
9904
9905 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
9906
9907         * config/bfin/bfin.md (loadbytes): New pattern.
9908         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
9909         (bfin_init_builtins): Initialize it.
9910         (bdesc_1arg): Add it.
9911
9912 2008-05-15  Sa Liu  <saliu@de.ibm.com>
9913
9914         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
9915         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
9916         * testsuite/lib/target-supports.exp: Add
9917         check_effective_target_fortran_integer_16.
9918
9919 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
9920
9921         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
9922         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
9923         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
9924         (TARGET_RETURN_IN_MEMORY): Define.
9925
9926 2008-05-15  Richard Guenther  <rguenther@suse.de>
9927
9928         PR middle-end/36244
9929         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
9930         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
9931         represent unmodifiable vars.
9932
9933 2008-05-15  Richard Guenther  <rguenther@suse.de>
9934
9935         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
9936         INDIRECT_REF and TARGET_MEM_REF.
9937         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
9938         TARGET_MEM_REF.
9939
9940 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
9941             H.J. Lu  <hongjiu.lu@intel.com>
9942
9943         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
9944         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
9945         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
9946         insn alternatives.  Add missing alternatives.
9947         (*vec_concatv2di_rex64_sse4_1): Likewise.
9948         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
9949         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
9950         Require TARGET_SSE.
9951
9952 2008-05-15  Richard Guenther  <rguenther@suse.de>
9953
9954         PR tree-optimization/36009
9955         PR tree-optimization/36204
9956         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
9957         (determine_invariantness_stmt): Record the loop a store is
9958         always executed in.
9959         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
9960         dependency.
9961
9962 2008-05-15  Richard Guenther  <rguenther@suse.de>
9963
9964         PR tree-optimization/34330
9965         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
9966         through the pointer will alias the SMT.
9967
9968 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
9969
9970         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
9971
9972 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
9973
9974         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
9975
9976 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
9977             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
9978
9979         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
9980         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
9981         (vashl_optab): New optab for vector/vector shifts.
9982         (vashr_optab): Ditto.
9983         (vlshr_optab): Ditto.
9984         (vrotl_optab): Ditto.
9985         (vrotr_optab): Ditto.
9986         (optab_subtype): New enum for optab_for_tree_code call.
9987         (optab_for_tree_code): Add enum optab_subtype argument.
9988
9989         * optabs.c (optab_for_tree_code): Take an additional argument to
9990         distinguish between a vector shift by a scalar and vector shift by
9991         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
9992         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
9993         vector shift by a vector.
9994         (expand_widen_pattern_expr): Pass additional argument to
9995         optab_for_tree_code.
9996
9997         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
9998         vrotl_optab, vrotr_optab.
9999
10000         * expr.c (expand_expr_real_1): Update calls to
10001         optab_for_tree_code to distinguish between vector shifted by a
10002         scalar and vector shifted by a vector.
10003         * tree-vectorizer.c (supportable_widening_operation): Ditto.
10004         (supportable_narrowing_operation): Ditto.
10005         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
10006         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
10007         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
10008         (vect_create_epilog_for_reduction): Ditto.
10009         (vectorizable_reduction): Ditto.
10010         (vectorizable_operation): Ditto.
10011         (vect_strided_store_supported): Ditto.
10012         (vect_strided_load_supported): Ditto.
10013         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
10014         * expmed.c (expand_shift): Ditto.
10015
10016         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
10017         scalar type.
10018         (ashr@var{m}3): Ditto.
10019         (vashl@var{m}3): Document new vector/vector shift standard name.
10020         (vashr@var{m}3): Ditto.
10021         (vlshr@var{m}3): Ditto.
10022         (vrotl@var{m}3): Ditto.
10023         (vrotr@var{m}3): Ditto.
10024
10025         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
10026         (PPERM_INVERT): Ditto.
10027         (PPERM_REVERSE): Ditto.
10028         (PPERM_REV_INV): Ditto.
10029         (PPERM_ZERO): Ditto.
10030         (PPERM_ONES): Ditto.
10031         (PPERM_SIGN): Ditto.
10032         (PPERM_INV_SIGN): Ditto.
10033         (PPERM_SRC1): Ditto.
10034         (PPERM_SRC2): Ditto.
10035
10036         * config/i386/sse.md (mulv2di3): Add SSE5 support.
10037         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
10038         allows a memory operand to be the value being added, and split it
10039         to improve vectorization.
10040         (sse5_pmacsdqh_mem): Ditto.
10041         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
10042         (sse5_mulv2div2di3_high): Ditto.
10043         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
10044         (vec_pack_trunc_v4si): Ditto.
10045         (vec_pack_trunc_v2di): Ditto.
10046         (sse5_pcmov_<mode>): Remove code that tried to use use
10047         andps/andnps instead of pcmov.
10048         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
10049         pmacsdqh instructions.
10050         (vec_widen_smult_lo_v4si): Ditto.
10051
10052         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
10053         (PPERM_INVERT): Ditto.
10054         (PPERM_REVERSE): Ditto.
10055         (PPERM_REV_INV): Ditto.
10056         (PPERM_ZERO): Ditto.
10057         (PPERM_ONES): Ditto.
10058         (PPERM_SIGN): Ditto.
10059         (PPERM_INV_SIGN): Ditto.
10060         (PPERM_SRC1): Ditto.
10061         (PPERM_SRC2): Ditto.
10062         (ix86_expand_sse_movcc): Move the SSE5 test after the if
10063         true/false tests.
10064         (ix86_expand_int_vcond): If SSE5 generate all possible integer
10065         comparisons.
10066         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
10067         says ignore whether the last reference is a memory operand.
10068
10069 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
10070             Paolo Bonzini <bonzini at gnu dot org>
10071
10072         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
10073         shift patterns.
10074
10075         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
10076         (vlshr<mode>3): Rename from vlshr<mode>3.
10077         (vashr<mode>3): Rename from vashr<mode>3.
10078         (mulv4sf3): Change the names of vector shift patterns.
10079         (mulv4si3): Ditto.
10080         (negv4sf2): Ditt.
10081
10082         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
10083         shift insns.
10084
10085         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
10086         (SI_SHLHI): Ditto.
10087         (SI_SHL): Ditto.
10088         (SI_SHLI): Ditto.
10089         (SI_ROTH): Ditto.
10090         (SI_ROTHI): Ditto.
10091         (SI_ROT): Ditto.
10092         (SI_ROTI): Ditto.
10093         (SPU_RL_0): Ditto.
10094         (SPU_RL_1): Ditto.
10095         (SPU_RL_2): Ditto.
10096         (SPU_RL_3): Ditto.
10097         (SPU_RL_4): Ditto.
10098         (SPU_RL_5): Ditto.
10099         (SPU_RL_6): Ditto.
10100         (SPU_RL_7): Ditto.
10101         (SPU_SL_0): Ditto.
10102         (SPU_SL_1): Ditto.
10103         (SPU_SL_2): Ditto.
10104         (SPU_SL_3): Ditto.
10105         (SPU_SL_4): Ditto.
10106         (SPU_SL_5): Ditto.
10107         (SPU_SL_6): Ditto.
10108         (SPU_SL_7): Ditto.
10109
10110         * config/spu/spu.md (v): New iterator macro to add v for vector types.
10111         (floatunssidf2_internal): Change vector/vector shift names.
10112         (floatunsdidf2_internal): Ditto.
10113         (mulv8hi3): Ditto.
10114         (ashrdi3): Ditto.
10115         (ashrti3): Ditto.
10116         (cgt_df): Ditto.
10117         (cgt_v2df): Ditto.
10118         (dftsv): Ditto.
10119         (vashl<mode>3): Rename from ashl<mode>3.
10120         (vashr<mode>3): Rename from ashr<mode>3.
10121         (vlshr<mode>3): Rename from lshr<mode>3.
10122         (vrotl<mode>3): Rename from rotl<mode>3.
10123
10124 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
10125
10126         PR target/36224
10127         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
10128         multiply gives the wrong value when doing widening multiplies.
10129         (vec_widen_smult_lo_v4si): Ditto.
10130
10131 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
10132
10133         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
10134         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
10135         emit_library_call_value.
10136         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
10137         * tree.h (ECF_LIBCALL_BLOCK): Removed.
10138         * calls.c (initialize_argument_information, precompute_arguments,
10139         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
10140         (precompute_arguments): Removed flags parameter.
10141         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
10142
10143 2008-05-14  Richard Guenther  <rguenther@suse.de>
10144
10145         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
10146         Make sure to register the store if the use is a PHI_NODE.
10147
10148 2008-05-14  Olivier Hainque  <hainque@adacore.com>
10149
10150         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
10151         memory if the component is to be referenced in BLKmode according
10152         to get_inner_reference.
10153
10154 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
10155
10156         * calls.c (emit_library_call_value_1): Restore code clearing
10157         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
10158
10159 2008-05-14  Olivier Hainque  <hainque@adacore.com>
10160             Nicolas Roche  <roche@adacore.com>
10161
10162         * configure.ac: Add support for a "gcc_subdir" variable in
10163         config-lang.in, to denote a subdirectory where the language/GCC
10164         integration files are to be found.
10165         * configure: Regenerate.
10166
10167 2008-05-14  Ira Rosen  <irar@il.ibm.com>
10168
10169         PR tree-optimization/36098
10170         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
10171         value for the first load in the group in case of a gap.
10172         (vect_build_slp_tree): Check that there are no gaps in loads.
10173
10174 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
10175
10176         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
10177         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
10178         expand_copysign_bit, ): Change call to emit_no_conflict_block to
10179         emit_insn and remove unneeded code to construct extra args.
10180         (emit_no_conflict_block): Removed.
10181         * optabls.h: (emit_no_conflict_block): Removed.
10182         * cse.c (cse_extended_basic_block): Remove search for
10183         REG_NO_CONFLICT note.
10184         * global.c: Removed incorrect comment added in revision 117.
10185         * expr.c (convert_move): Change call to emit_no_conflict_block to
10186         emit_insn.
10187         * recog.c: Change comments so that they do not mention
10188         REG_NO_CONFLICT.
10189         * local_alloc.c (combine_regs): Removed last parameter.
10190         (no_conflict_p): Removed.
10191         (block_alloc): Removed note, no_conflict_combined_regno and set
10192         local vars. Removed all code to process REG_NO_CONFLICT blocks.
10193         (combine_regs): Removed already_dead and code to look for
10194         REG_NO_CONFLICT notes.
10195         * lower_subreg (remove_retval_note): Removed code to look for
10196         REG_NO_CONFLICT block.
10197         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
10198         (resolve_clobber): Remove code to process libcalls that have
10199         REG_NO_CONFLICT notes.
10200         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
10201         case.
10202         * combine.c (can_combine_p, distribute_notes):  Removed
10203         REG_NO_CONFLICT case.
10204         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
10205         to emit_insns.
10206         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
10207         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
10208         Ditto.
10209         * reg-notes.def (NO_CONFLICT): Removed.
10210
10211 2008-05-14  David S. Miller  <davem@davemloft.net>
10212
10213         * config/sparc/sparc.c (sparc_profile_hook): If
10214         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
10215         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
10216         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
10217
10218 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
10219
10220         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
10221
10222 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
10223
10224         PR target/36222
10225         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
10226         and op1 expansion before vector concat to have less live pseudos.
10227
10228 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
10229
10230         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
10231         ix86_expand_vector_set if supported.
10232
10233 2008-05-13  Diego Novillo  <dnovillo@google.com>
10234             Kenneth Zadeck  <zadeck@naturalbridge.com>
10235
10236         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
10237
10238         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
10239         phinodes_print_statistics, init_ssanames, fini_ssanames,
10240         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
10241         release_ssa_name, release_defs, replace_ssa_name_symbol,
10242         ssanames_print_statistics): Move ...
10243         * tree-flow.h: ... here.
10244         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
10245         Use FN instead of cfun.
10246         (make_ssa_name_fn): Rename from make_ssa_name.
10247         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
10248         * tree-flow-inline.h (make_ssa_name): Move from
10249         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
10250         * omp-low.c (expand_omp_parallel):
10251         * tree-flow-inline.h (redirect_edge_var_map_result):
10252         * tree-ssa.c (init_tree_ssa): Add argument FN.
10253         Use it instead of cfun.  Update all users.
10254
10255 2008-05-13  Tom Tromey  <tromey@redhat.com>
10256
10257         PR preprocessor/22168:
10258         * doc/cpp.texi (Top): Update menu.
10259         (Alternatives to Wrapper #ifndef): New node.
10260         (Other Directives): Document deprecation.
10261         (Obsolete Features): Remove menu.
10262         (Assertions): Merge node into Obsolete Features.
10263         (Obsolete once-only headers): Move earlier; rename to Alternatives
10264         to Wrapper #ifndef.
10265         * doc/cppopts.texi: Update.
10266         * c.opt (Wdeprecated): Enable for C and ObjC.
10267         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
10268         (C++ Dialect Options): Move -Wno-deprecated from here to...
10269         (Warning Options): ... here.
10270
10271 2008-05-13  Richard Guenther  <rguenther@suse.de>
10272
10273         PR middle-end/36227
10274         * fold-const.c (fold_sign_changed_comparison): Do not allow
10275         changes in pointer-ness.
10276
10277 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
10278
10279         PR target/24713
10280         * config/sh/sh.c (sh_expand_prologue): Don't clear
10281         RTX_FRAME_RELATED_P for push insns.
10282
10283 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
10284
10285         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
10286
10287 2008-05-12  Anatoly Sokolov <aesok@post.ru>
10288
10289         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
10290         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
10291         Use 'machine->is_leaf' instead of 'leaf_func_p'.
10292
10293 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
10294
10295         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
10296         (*vec_concatv4sf_sse): This.
10297         (*sse2_concatv2si): Renamed to ...
10298         (*vec_concatv2si_sse2): This.
10299         (*sse1_concatv2si): Renamed to ...
10300         (*vec_concatv2si_sse): This.
10301         (*vec_concatv2di_rex): Renamed to ...
10302         (*vec_concatv2di_rex64): This.
10303         (*vec_concatv2si_sse4_1): New.
10304         (*vec_concatv2di_rex64_sse4_1): Likewise.
10305
10306 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
10307
10308         PR rtl-optimization/36111
10309         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
10310         that was created for swappable operands.
10311
10312 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
10313
10314         PR ada/36001
10315         * Makefile.in: Substitute GNATMAKE and GNATBIND.
10316         * configure.ac: Add call to ACX_PROG_GNAT.
10317
10318 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
10319
10320         * optc-gen.awk: Fix comment typo.
10321
10322 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
10323
10324         * pretty-print.c (pp_integer_with_precision): Use
10325         HOST_LONG_LONG_FORMAT.
10326
10327 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
10328
10329         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
10330
10331 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
10332
10333         * config/i386/i386.c (bdesc_ptest): Removed.
10334         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
10335         (bdesc_args): Add __builtin_ia32_ptestz128,
10336         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
10337         (ix86_init_mmx_sse_builtins): Updated.
10338         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
10339         (ix86_expand_builtin): Updated.
10340
10341 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
10342
10343         * tree-cfg.c (valid_fixed_convert_types_p): New function.
10344         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
10345
10346 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
10347
10348         * value-prof.c (interesting_stringop_to_profile): Do not
10349         return early for BUILT_IN_MEMPCPY.
10350
10351 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
10352
10353         * calls.c (expand_call): Don't use callgraph to increase
10354         preferred_stack_boundary.
10355
10356         * cgraph.h (cgraph_rtl_info): Use unsigned on
10357         preferred_incoming_stack_boundary.
10358
10359         * final.c (rest_of_clean_state): Use unsigned on
10360         preferred_stack_boundary.
10361
10362 2008-05-09  Tom Tromey  <tromey@redhat.com>
10363
10364         PR preprocessor/22231:
10365         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
10366         proceeding.
10367
10368 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
10369
10370         PR tree-optimization/36129
10371         * tree-ssa-ccp.c: Include value-prof.h.
10372         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
10373         built-in function was folded to a constant.
10374         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
10375
10376 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
10377             Sebastian Pop  <sebastian.pop@amd.com>
10378
10379         * tree-scalar-evolution.c: Document instantiate_scev.
10380         (instantiate_parameters_1): Renamed instantiate_scev_1.
10381         Don't use the same loop for instantiation_loop and evolution_loop.
10382         (instantiate_scev): New.
10383         (instantiate_parameters): Moved...
10384         (resolve_mixers): Update call to instantiate_scev_1 to pass the
10385         same loop twice.  Maintains the semantics for this function.
10386         * tree-scalar-evolution.h (instantiate_scev): Declare.
10387         (instantiate_parameters): ...here.  Now static inline.
10388         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
10389         instead of resolve_mixers.
10390
10391 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
10392
10393         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
10394
10395 2008-05-09  Tomas Bily  <tbily@suse.cz>
10396
10397         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
10398         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
10399         * tree-ssa-structalias.c (get_constraint_for): Likewise.
10400         * c-common.c (c_common_truthvalue_conversion): Likewise.
10401         * tree-object-size.c (compute_object_offset): Likewise.
10402         * tree-inline.c (estimate_num_insns_1): Likewise.
10403         * varasm.c (const_hash_1, compare_constant, copy_constant)
10404         (compute_reloc_for_constant, output_addressed_constants)
10405         (initializer_constant_valid_p): Likewise.
10406         * c-omp.c (check_omp_for_incr_expr): Likewise.
10407         * gimplify.c (gimplify_expr): Likewise.
10408         * c-typeck.c (c_finish_return): Likewise.
10409         * tree-vectorizer.c (supportable_widening_operation)
10410         (supportable_narrowing_operation): Likewise.
10411         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
10412         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
10413         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
10414         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
10415         (descr_info_loc): Likewise.
10416         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
10417         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
10418         (fold_unary): Likewise.
10419         * builtins.c (get_pointer_alignment): Likewise.
10420         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
10421         (instantiate_parameters_1): Likewise.
10422         * tree.c (expr_align, stabilize_reference): Likewise.
10423         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
10424         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
10425         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
10426         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
10427         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
10428         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
10429         Likewise.
10430         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
10431         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
10432         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
10433         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
10434         (forward_propagate_comparison)
10435         (tree_ssa_forward_propagate_single_use_vars): Likewise.
10436         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
10437         * emit-rtl.c (component_ref_for_mem_expr)
10438         (set_mem_attributes_minus_bitpos): Likewise.
10439         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
10440         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
10441         Likewise.
10442         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
10443         (build_function_call, pointer_diff, build_compound_expr)
10444         (c_finish_return): Likewise.
10445         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
10446         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
10447         Likewise.
10448         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
10449         * expr.c (is_aligning_offset): Likewise.
10450         * tree-ssa-alias.c (is_escape_site): Likewise.
10451         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
10452         (check_all_va_list_escapes): Likewise.
10453         * tree-ssa-loop-ivopts.c (determine_base_object)
10454         (determine_common_wider_type): Likewise.
10455         * dojump.c (do_jump): Likewise.
10456         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
10457         * tree-gimple.c (is_gimple_cast): Likewise.
10458         * fold-const.c (decode_field_reference, )
10459         (fold_sign_changed_comparison, fold_unary, fold_comparison)
10460         (fold_binary): Likewise.
10461         * tree-ssa-alias-warnings.c (find_alias_site_helper)
10462         (already_warned_in_frontend_p): Likewise.
10463         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
10464         * tree.c (really_constant_p, get_unwidened): Likewise.
10465         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
10466         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
10467         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
10468         Likewise.
10469         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
10470         CONVERT_EXPR_P.
10471         (CONVERT_EXPR_P): Define.
10472         (CASE_CONVERT): Define.
10473
10474 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
10475
10476         PR middle-end/36117
10477         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
10478         (delete_unmarked_insns): When deleting a call, call
10479         delete_unreachable_blocks.
10480         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
10481         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
10482
10483 2008-05-08  Richard Guenther  <rguenther@suse.de>
10484
10485         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
10486         (-ftree-salias): Likewise.
10487         (salias-max-implicit-fields): Remove param documentation.
10488         (salias-max-array-elements): Likewise.
10489         * tree-pass.h (pass_create_structure_vars): Remove.
10490         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
10491         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
10492         * tree-ssa-alias.c (create_structure_vars): Remove.
10493         (gate_structure_vars): Likewise.
10494         (pass_create_structure_vars): Likewise.
10495         (gate_build_alias): Likewise.
10496         (pass_build_alias): Adjust to run always and dump the function.
10497         * common.opt (ftree-salias): Hide.
10498         * passes.c (init_optimization_passes): Remove
10499         pass_create_structure_vars, adjust comment.
10500         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
10501         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
10502         * opts.c (decode_options): Do not set flag_tree_salias.
10503         (common_handle_option): Add OPT_ftree_salias to the backward
10504         compatibility section.
10505
10506 2008-05-08  Richard Guenther  <rguenther@suse.de>
10507
10508         * tree-flow-inline.h (var_can_have_subvars): Move ...
10509         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
10510         * tree-flow.h (var_can_have_subvars): Remove.
10511         (push_fields_onto_fieldstack): Remove.
10512         (sort_fieldstack): Likewise.
10513         (struct fieldoff): Move ...
10514         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
10515         alias_set and base_for_components fields.
10516         (sort_fieldstack): Make static.
10517         (push_fields_onto_fieldstack): Likewise.  Remove code that
10518         handles anything but RECORD_TYPEs.  Remove alias_set and
10519         base_for_components handling.
10520         (create_variable_info_for): Adjust.
10521
10522 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
10523
10524         * common.opt (Wframe-larger-than=): Shorten the help message
10525         to one line.
10526         * doc/invoke.texi (Wframe-larger-than=): Add more description.
10527
10528 2008-05-08  Rafael Espindola  <espindola@google.com>
10529
10530         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
10531         trap.
10532         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
10533         trap and that both operands are gimple values.
10534         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
10535         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
10536         is a fp operation.
10537
10538 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
10539
10540         * read-rtl.c (join_c_conditions): Return the first string if the
10541         two strings are equal.
10542
10543 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
10544
10545         * gensupport.h (pred_data): Add a "num_codes" field.
10546         (add_predicate_code): Declare.
10547         * gensupport.c (add_predicate_code): New function.
10548         (std_pred_table): Add an "allows_const_p" field.
10549         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
10550         Remove the (incomplete) list of such codes from the codes field.
10551         (init_predicate_table): Use add_predicate_code.  Add all
10552         RTX_CONST_OBJs if allows_const_p is true.
10553         * genrecog.c (process_define_predicate): Use add_predicate_code.
10554
10555 2008-05-08  David Daney  <ddaney@avtrex.com>
10556             Richard Sandiford  <rsandifo@nildram.co.uk>
10557
10558         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
10559         special case of constant zero operands.
10560         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
10561         old and new values.  Special case constant zero values.
10562         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
10563         fails.
10564         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
10565         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
10566
10567 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
10568
10569         PR target/36090
10570         * simplify-rtx.c (simplify_plus_minus): Create CONST of
10571         similar RTX_CONST_OBJ before CONST_INT.
10572
10573 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
10574
10575         * stmt.c (expand_stack_restore): Change sa mode if needed.
10576
10577 2008-05-08  Richard Guenther  <rguenther@suse.de>
10578
10579         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
10580         return type to bool.
10581         (ix86_sol10_return_in_memory): Likewise.
10582         (ix86_i386elf_return_in_memory): Likewise.
10583         (ix86_i386interix_return_in_memory): Likewise.
10584         * config/i386/i386.c (ix86_return_in_memory): Likewise.
10585         (ix86_sol10_return_in_memory): Likewise.
10586         (ix86_i386elf_return_in_memory): Likewise.
10587         (ix86_i386interix_return_in_memory): Likewise.
10588
10589 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
10590
10591         PR bootstrap/36180
10592         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
10593         fndecl argument.
10594         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
10595         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
10596         declared in front.
10597
10598 2008-05-08  Richard Guenther  <rguenther@suse.de>
10599
10600         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
10601         * tree-data-ref.h (struct dr_alias): Remove subvars field.
10602         (DR_SUBVARS): Remove.
10603         * tree-dfa.c (dump_subvars_for): Remove.
10604         (debug_subvars_for): Likewise.
10605         (dump_variable): Do not dump subvars.
10606         (remove_referenced_var): Do not remove subvars.
10607         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
10608         (lookup_subvars_for_var): Remove.
10609         (get_subvars_for_var): Likewise.
10610         (get_subvars_at): Likewise.
10611         (get_first_overlapping_subvar): Likewise.
10612         (overlap_subvar): Likewise.
10613         * tree-flow.h (subvar_t): Remove.
10614         (struct var_ann_d): Remove subvars field.
10615         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
10616         argument.  Remove special handling of SFTs.
10617         (compute_tag_properties): Likewise.
10618         (set_initial_properties): Likewise.
10619         (compute_call_clobbered): Likewise.
10620         (count_mem_refs): Likewise.
10621         (compute_memory_partitions): Likewise.
10622         (compute_flow_insensitive_aliasing): Likewise.
10623         (setup_pointers_and_addressables): Likewise.
10624         (new_type_alias): Likewise.
10625         (struct used_part): Remove.
10626         (used_portions): Likewise.
10627         (struct used_part_map): Likewise.
10628         (used_part_map_eq): Likewise.
10629         (used_part_map_hash): Likewise.
10630         (free_used_part_map): Likewise.
10631         (up_lookup): Likewise.
10632         (up_insert): Likewise.
10633         (get_or_create_used_part_for): Likewise.
10634         (create_sft): Likewise.
10635         (create_overlap_variables_for): Likewise.
10636         (find_used_portions): Likewise.
10637         (create_structure_vars): Likewise.
10638         * tree.def (STRUCT_FIELD_TAG): Remove.
10639         * tree.h (MTAG_P): Adjust.
10640         (struct tree_memory_tag): Remove base_for_components and
10641         unpartitionable flags.
10642         (struct tree_struct_field_tag): Remove.
10643         (SFT_PARENT_VAR): Likewise.
10644         (SFT_OFFSET): Likewise.
10645         (SFT_SIZE): Likewise.
10646         (SFT_NONADDRESSABLE_P): Likewise.
10647         (SFT_ALIAS_SET): Likewise.
10648         (SFT_UNPARTITIONABLE_P): Likewise.
10649         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
10650         (union tree_node): Remove sft field.
10651         * alias.c (get_alias_set): Remove special handling of SFTs.
10652         * print-tree.c (print_node): Remove handling of SFTs.
10653         * tree-dump.c (dequeue_and_dump): Likewise.
10654         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
10655         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
10656         * tree-predcom.c (set_alias_info): Do not set subvars.
10657         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
10658         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
10659         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
10660         (add_vars_for_offset): Remove.
10661         (add_virtual_operand): Remove special handling of SFTs.
10662         (add_call_clobber_ops): Likewise.
10663         (add_call_read_ops): Likewise.
10664         (get_asm_expr_operands): Likewise.
10665         (get_modify_stmt_operands): Likewise.
10666         (get_expr_operands): Likewise.
10667         (add_to_addressable_set): Likewise.
10668         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
10669         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
10670         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
10671         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
10672         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
10673         (tree_node_structure): Likewise.
10674         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
10675         handling of SFTs.
10676         (find_what_p_points_to): Likewise.
10677
10678 2008-05-08  Sa Liu  <saliu@de.ibm.com>
10679
10680         * config/spu/spu.md: Fixed subti3 pattern.
10681
10682 2008-05-08  Richard Guenther  <rguenther@suse.de>
10683
10684         PR middle-end/36154
10685         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
10686         sure to create a representative for trailing arrays for PTA.
10687
10688 2008-05-08  Richard Guenther  <rguenther@suse.de>
10689
10690         PR middle-end/36172
10691         * fold-const.c (operand_equal_p): Two objects which types
10692         differ in pointerness are not equal.
10693
10694 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
10695
10696         * calls.c (compute_argument_block_size): Add argument tree fndecl.
10697         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
10698         (emit_library_call_value_1): Add new variable fndecl initialized by
10699         NULL_TREE. It should be the decl type of orgfun, but this information
10700         seems not to be available here, so it uses the default calling abi.
10701         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
10702         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
10703         by TARGET_RETURN_IN_MEMORY.
10704         * config/i386/i386-interix.h: Likewise.
10705         * config/i386/i386.h: Likewise.
10706         * config/i386/i386elf.h: Likewise.
10707         * config/i386/ptx4-i.h: Likewise.
10708         * config/i386/sol2-10.h: Likewise.
10709         * config/i386/sysv4.h: Likewise.
10710         * config/i386/vx-common.h: Likewise.
10711         * config/cris/cris.h: Removed #if 0 clause.
10712         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
10713         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
10714         argument.
10715         (ix86_sol10_return_in_memory): Likewise.
10716         (ix86_i386elf_return_in_memory): New.
10717         (ix86_i386interix_return_in_memory): New.
10718         * config/mt/mt-protos.h (mt_return_in_memory): New.
10719         * config/mt/mt.c: Likewise.
10720         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
10721         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
10722         * config/bfin/bfin.h: Likewise.
10723         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
10724         argument.
10725         * config/bfin/bfin.c: Likewise.
10726         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
10727         * config/alpha/unicosmk.h: Likewise.
10728         * config/i386/cygming.h: Likewise.
10729         * config/iq2000/iq2000.h: Likewise.
10730         * config/mips/mips.h: Likewise.
10731         * config/mn10300/mn10300.h: Likewise.
10732         * config/rs6000/rs6000.h: Likewise.
10733         * config/score/score.h: Likewise.
10734         * config/spu/spu.h: Likewise.
10735         * config/v850/v850.h: Likewise.
10736         * defaults.h: Likewise.
10737         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
10738         * expr.c (emit_block_move): Adjust use of
10739         OUTGOING_REG_PARM_STACK_SPACE.
10740         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
10741         OUTGOING_REG_PARM_STACK_SPACE.
10742         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
10743
10744 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
10745
10746         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
10747         on OMP_RETURN for OMP_FOR.
10748
10749         PR debug/35896
10750         * dwarf2out.c (dw_expand_expr, common_check): Removed.
10751         (fortran_common): New function.
10752         (gen_variable_die): Call fortran_common instead of common_check,
10753         adjust for it returning tree instead of rtx.  Formatting.
10754
10755 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
10756
10757         PR rtl/7335
10758         PR rtl/33826
10759         * see.c (see_copy_insn): Copy new pure const attributes for new call.
10760         * c-decl.c (merge_decls): Ditto.
10761         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
10762         to RTL_CONST_OR_PURE_CALL_P.
10763         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
10764         Initialized DECL_LOOPING_CONST_PURE.
10765         (process_call_operands): Set tree_side_effects properly.
10766         * tree.h (TREE_READONLY_DECL_P): Removed.
10767         (DECL_IS_PURE): Renamed to DECL_PURE_P.
10768         (DECL_LOOPING_OR_CONST_P): New macro.
10769         (struct tree_function_decl): Added looping_const_or_pure_p.
10770         (ECF_*) Renumbered.
10771         (ECF_LOOPING_OR_CONST_P): New macro.
10772         * rtlanal.c (pure_const_p): Removed.
10773         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
10774         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
10775         to RTL_CONST_CALL_P.
10776         * ipa-pure-const.c (pure_const_state_e): Added looping field.
10777         (check_decl, check_tree, check_call, scan_function): Initialize
10778         looping.
10779         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
10780         (static_execute): Set looping true for recursive functions.
10781         Undo setting state to IPA_NEITHER for recursive functions.
10782         * cse.c (cse_insn):
10783         * ifcvt.c (noce_can_store_speculate_p): Changed
10784         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
10785         RTL_CONST_OR_PURE_CALL_P.
10786         * dse.c (scan_insn): Ditto.
10787         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
10788         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
10789         RTL_CONST_OR_PURE_CALL_P.
10790         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
10791         pure_call_p to RTL_CONST_CALL_P.
10792         * gimplify.c (gimplify_call_expr): Clear side effects for
10793         non-looping pure and constant calls.
10794         * calls.c (emit_call_1): Set rtl flags from ecf flags.
10795         (flags_from_decl_or_type): Set ecf flags from decl flags.
10796         (initialize_argument_information): Turn off
10797         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
10798         Change const to pure if callee_copies is true rather than just
10799         turning off const.
10800         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
10801         way of marking pure calls.
10802         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
10803         Remove hack that was supposed to fix pr7335 and remove old
10804         way of marking pure calls.
10805         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
10806         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
10807         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
10808         RTL_CONST_OR_PURE_CALL_P.
10809         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
10810         * loop-invariant.c (find_exits, find_invariant_bb): Changed
10811         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
10812         * sched-deps.c (schedule_analyze): Ditto.
10813         * rtl.h (struct rtx_def): Use call field, unchanging field, and
10814         return_val field of calls to represent pure and const function info.
10815         (CONST_OR_PURE_CALL_P): Deleted macro.
10816         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
10817         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
10818         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
10819         TREE_READONLY.
10820         * tree-optimize.c (execute_fixup_cfg): Added test for
10821         ECF_LOOPING_CONST_OR_PURE.
10822         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
10823         DECL_PURE_P.
10824         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
10825         effects for looping pure or const calls.
10826         (verify_gimple_expr): Added verification code.
10827         * config/alpha/alpha.c (alpha_legitimize_address,
10828         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
10829         RTL_CONST_CALL_P.
10830         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
10831         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
10832         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
10833         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
10834         RTL_CONST_OR_PURE_CALL_P.
10835         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
10836         and const calls to be deleted.
10837
10838 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
10839
10840         PR target/35714
10841         * config/i386/mmx.md (mmx_subv2sf3): New expander.
10842         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
10843         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
10844         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
10845         to handle nonimmediate operands.
10846         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
10847         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
10848         to handle nonimmediate operands.
10849         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
10850         (mmx_pmulhrwv4hi3): New expander.  Use
10851         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10852         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
10853         (sse2_umulv1siv1di3): New expander.  Use
10854         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10855         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
10856         (mmx_eq<mode>3): New expander.  Use
10857         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10858         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
10859         (mmx_uavgv8qi3): New expander.  Use
10860         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10861         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
10862         (mmx_uavgv4hi3): New expander.  Use
10863         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10864
10865         * config/i386/sse.md
10866         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
10867         to handle nonimmediate operands.
10868         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
10869         to handle nonimmediate operands.
10870         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
10871         to handle nonimmediate operands.
10872         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
10873         to handle nonimmediate operands.
10874         (sse2_unpckhpd_exp): New expander.  Use
10875         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10876         (sse2_unpcklpd_exp): New expander.  Use
10877         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10878         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
10879         to handle nonimmediate operands.
10880         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
10881         to handle nonimmediate operands.
10882         (*sse2_<plusminus_insn><mode>3): Rename from
10883         sse2_<plusminus_insn><mode>3 insn pattern.
10884         (sse2_<plusminus_insn><mode>3): New expander.  Use
10885         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10886         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
10887         (sse2_umulv2siv2di3): New expander.  Use
10888         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10889         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
10890         (sse4_1_mulv2siv2di3): New expander.  Use
10891         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10892         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
10893         (sse2_pmaddwd): New expander.  Use
10894         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10895         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
10896         (sse2_eq<mode>3): New expander.  Use
10897         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10898         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
10899         (sse4_1_eqv2di3): New expander.  Use
10900         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10901         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
10902         (sse2_uavgv16qi3): New expander.  Use
10903         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10904         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
10905         (sse2_uavgv16qi3): New expander.  Use
10906         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10907         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
10908         (sse2_uavgv8hi3): New expander.  Use
10909         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10910         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
10911         (ssse3_pmulhrswv8hi3): New expander.  Use
10912         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10913         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
10914         (ssse3_pmulhrswv4hi3): New expander.  Use
10915         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10916
10917         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
10918         (<sse>_vmmul<mode>3): Ditto.
10919         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
10920         (divv2df3): Ditto.
10921         (ssse3_pmaddubsw128): Use register_operand for operand 1.
10922         (ssse3_pmaddubsw): Ditto.
10923
10924         * config/i386/i386.c (struct_builtin_description)
10925         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
10926         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
10927         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
10928         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
10929         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
10930         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
10931         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
10932         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
10933         (ix86_fixup_binary_operands): Assert that src1
10934         and src2 must have the same mode when swapped.
10935         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
10936         and ix86_binary_operator_ok.  Do not force operands in registers
10937         when optimizing.
10938
10939 2008-05-07  Jan Hubicka  <jh@suse.cz>
10940
10941         * cgraph.c (dump_cgraph_node): Update.
10942         * cgraph.h (cgraph_local_info): Break out inline summary.
10943         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
10944         hook.
10945         * ipa-inline (inline_summary): New accestor function.
10946         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
10947         cgraph_decide_inlining, compute_inline_parameters): Update.
10948         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
10949
10950 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
10951
10952         Cleanup ColdFire scheduling support and add V4 pipeline model.
10953
10954         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
10955         (define_attr cpu): Add cfv4 value.
10956         (define_attr type, define_attr type1): Merge into a single 'type'
10957         attribute.  Update all uses.
10958         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
10959         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
10960         Update all uses.
10961         (define_attr opx_mem, define_attr opy_mem): Remove.
10962         (define_attr op_mem): Clean up, update comment.
10963         (define_attr size): Use specific values instead of general int.
10964         (define_attr guess, define_attr split): Remove.  Update all uses.
10965         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
10966         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
10967         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
10968         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
10969         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
10970         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
10971         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
10972         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
10973         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
10974         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
10975         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
10976         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
10977         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
10978         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
10979         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
10980         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
10981         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
10982         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
10983         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
10984         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
10985         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
10986         Update or set attributes.
10987         (stack_tie): New fake instruction.
10988
10989         * config/m68k/m68k.h (TUNE_CFV4): New macro.
10990         (m68k_sched_attr_size): Update declaration.
10991         (m68k_sched_attr_type2): Remove.
10992         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
10993         Declare new bypass predicates.
10994
10995         * config/m68k/m68k.c (m68k_sched_issue_rate,
10996         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
10997         implementations.
10998         (TARGET_SCHED_ISSUE_RATE,
10999         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
11000         (override_options): Handle scheduling for ColdFire V4 core.
11001         (m68k_expand_prologue): Emit stack_tie.
11002         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
11003         'OP_TYPE_FPN'.  Update all uses.
11004         (sched_guess_p): Remove.
11005         (sched_address_type): Handle symbolic addresses.
11006         (sched_get_operand): New static function.
11007         (sched_operand_type): Merge into sched_attr_op_type.
11008         (sched_attr_op_type): Handle FP registers, handle quick constants,
11009         update.
11010         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
11011         (m68k_sched_attr_size): Update.  Move logic to ...
11012         (sched_get_attr_size_int): New static function.
11013         (sched_get_opxy_mem_type): New static function.
11014         (m68k_sched_attr_op_mem): Update.
11015         (m68k_sched_attr_type2): Remove.
11016         (sched_cfv4_bypass_data): New static variable.
11017         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
11018         (m68k_sched_issue_rate): Implement scheduler hook.
11019         (struct _sched_ib: enabled_p): New field.
11020         (m68k_sched_variable_issue): Update.  Handle V4.
11021         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
11022         sched_dump_class_func_t, sched_dump_split_class,
11023         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
11024         sched_dump_dfa_class, m68k_sched_dump): Remove.
11025         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
11026         hook.
11027         (m68k_sched_init_global): Remove statisctics dumping, introduce
11028         sanity check that all instructions have pipeline reservations.  Handle
11029         ColdFire V4 core.
11030         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
11031         Handle ColdFire V4 core.
11032         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
11033         New static functions.
11034         (m68k_sched_address_bypass_p): New bypass predicate.
11035         (sched_get_indexed_address_scale): New static function.
11036         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
11037
11038         * cf.md: Update comments.
11039         (define_attr type2): Remove.  Use 'type' attribute instead.
11040         Update all uses.
11041         (cf_ib): Rename to cfv123_ib.  Update all uses.
11042         (cf_oep): Rename to cfv123_oep.  Update all uses.
11043         (cf_chr): Rename to cfv123_chr.  Update all uses.
11044         (cf_mem): Rename to cfv123_mem.  Update all uses.
11045         (cf_mac): Move to more appropriate place.
11046         (cfv123_guess): New automaton and cpu_unit.
11047         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
11048         Update uses of 'size' attribute.  Handle before reload scheduling.
11049         (cfv123_guess): New dummy reservation for unhandled instructions.
11050         (cfv4_*): Pipeline description of ColdFire V4 core.
11051         (ignore): New reservation to handle 'ignore' type.
11052
11053 2008-05-07  Ian Lance Taylor  <iant@google.com>
11054
11055         PR middle-end/36013
11056         * gimplify.c (find_single_pointer_decl_1): Don't look through
11057         indirections.
11058         (find_single_pointer_decl): Adjust comments.
11059
11060 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
11061
11062         PR middle-end/36137
11063         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
11064         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
11065
11066         PR middle-end/36106
11067         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
11068         integral type rather than floating point, then VIEW_CONVERT_EXPR
11069         to the floating point type.
11070
11071 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
11072
11073         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
11074         TFmode op0 to register.
11075
11076 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
11077
11078         * c-decl.c (grokdeclarator): Comment typo.
11079
11080 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
11081
11082         * tree-flow.h: Remove prototype for computed_goto_p.
11083         * tree-cfg.c (computed_goto_p): Make static.
11084
11085 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
11086
11087         PR target/35657
11088         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
11089         (contains_aligned_value_p): This.  Handle _Decimal128.
11090         (ix86_function_arg_boundary): Only align _Decimal128 to its
11091         natural boundary and handle it properly.
11092
11093 2008-05-06  Martin Jambor  <mjambor@suse.cz>
11094
11095         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
11096         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
11097         (ipcp_method_set_orig_node): Removed.
11098         (ipcp_cval_get_cvalue_type): Removed.
11099         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
11100         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
11101         (ipcp_cval_set_cvalue_type): Removed.
11102         (ipcp_cval_get_cvalue): Removed.
11103         (ipcp_cval_set_cvalue): Removed.
11104         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
11105         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
11106         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
11107         (ipcp_cval_meet): Renamed to ipa_lattice_meet
11108         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
11109         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
11110         (ipcp_get_ith_lattice): Changed parameters.
11111         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
11112         (ipcp_lattice_from_jfunc): Changed parameters.
11113         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
11114         (ipcp_method_cval_print): Added temporary variable info.
11115         (ipcp_redirect): Removed already unused local variable caller.
11116         (ipcp_redirect): New temporary variable orig_callee_info
11117         (ipcp_redirect): Removed newly unused local variable callee.
11118         (ipcp_redirect): Removed (a bit confusing) local variable type.
11119         (ipcp_insert_stage): Added local variable info.
11120         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
11121         renamed too
11122         (ipcp_formal_create): Removed.
11123         (ipcp_method_cval_set): Removed.
11124         (ipcp_propagate_stage): Renamed lattice variables.
11125         (ipcp_method_cval_set_cvalue_type): Removed.
11126         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
11127         (ipcp_print_all_lattices): Changed printed strings to refer to
11128         lattices rather than cvals.
11129         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
11130         (ipcp_propagate_const): Changed formal parameters.
11131         (build_const_val): Changed formal parameters.
11132         (ipcp_insert_stage): Removed useless variable cvalue
11133         (build_const_val): Changed formal parameters.
11134         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
11135         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
11136         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
11137         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
11138         (ipcp_print_func_profile_counts): Changed string from "method" to
11139         "function"
11140         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
11141         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
11142         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
11143         (ipcp_structures_print): Renamed to ipcp_print_all_structures
11144         (ipcp_profile_print): Renamed to ipcp_print_profile_data
11145         (ipcp_lat_is_const): Changed parameters and made inline.
11146         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
11147         (ipcp_redirect): Renamed to ipcp_need_redirect_p
11148         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
11149         the predicate condition directly
11150         (ipcp_propagate_stage): Added local variable args. Removed local
11151         variable callee.  (Both are mere code simplifications.)
11152         (ipcp_method_dont_insert_const): Renamed to
11153         ipcp_node_not_modifiable_p.
11154         (ipcp_node_not_modifiable_p): Made inline.
11155         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
11156         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
11157         (ipcp_print_all_lattices): Removed variable cvalue
11158         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
11159         Updated comments.
11160
11161 2008-05-06  Olivier Hainque  <hainque@adacore.com>
11162
11163         * tree-sra.c (try_instantiate_multiple_fields): Early return
11164         if field has POINTER_TYPE.
11165
11166 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
11167
11168         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
11169         by using 'q' specifier for instruction.
11170         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
11171
11172 2008-05-06  Anatoly Sokolov <aesok@post.ru>
11173
11174         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
11175         Change mode of zero_extract from QImode to HImode.
11176         (sign bit tests peepholes): (Ditto.).
11177
11178 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
11179
11180         * config/i386/mmx.md: Remove double backslashes from asm templates.
11181         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
11182         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
11183         to handle nonimmediate operands.
11184         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
11185         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
11186         to handle nonimmediate operands.
11187         (*mmx_<code>v2sf3_finite): New insn pattern.
11188         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
11189         (mmx_<code>v2sf3): New expander.  Use
11190         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
11191         (mmx_<plusminus_insn><mode>3): New expander.  Use
11192         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
11193         (*mmx_<plusminus_insn><mode>3): New insn pattern.
11194         (mmx_add<mode>3): Removed.
11195         (mmx_ssadd<mode>3): Ditto.
11196         (mmx_usadd<mode>3): Ditto.
11197         (mmx_sub<mode>3): Ditto.
11198         (mmx_sssub<mode>3): Ditto.
11199         (mmx_ussub<mode>3): Ditto.
11200         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
11201         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
11202         to handle nonimmediate operands.
11203         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
11204         insn pattern.
11205         (mmx_smulv4hi3_highpart): New expander.  Use
11206         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
11207         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
11208         insn pattern.
11209         (mmx_umulv4hi3_highpart): New expander.  Use
11210         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
11211         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
11212         (mmx_<code>v4hi3): New expander.  Use
11213         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
11214         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
11215         (mmx_<code>v8qi3): New expander.  Use
11216         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
11217         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
11218         (mmx_<code><mode>3): New expander.  Use
11219         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
11220
11221 2008-05-05  Jan Hubicka  <jh@suse.cz>
11222
11223         PR tree-optimization/36118
11224         * passes.c (pass_init_dump_file): Fix dump header.
11225
11226 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11227
11228         PR middle-end/36141
11229         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
11230         VCE for function decls.
11231
11232 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
11233
11234         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
11235
11236 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
11237
11238         * config/i386/i386.md (sat_plusminus): New.
11239         (plusminus_insn): Likewise.
11240         (plusminus_mnemonic): Likewise.
11241         (addsub): Removed.
11242         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
11243         (*<addsub><mode>3_cc_overflow): Renamed to ...
11244         (*<plusminus_insn><mode>3_cc_overflow): This.
11245         (*<addsub>si3_zext_cc_overflow): Renamed to ...
11246         (*<plusminus_insn>si3_zext_cc_overflow): This.
11247
11248         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
11249         (<plusminus_insn><mode>3): This.
11250         (*<addsub><mode>3): Renamed to ...
11251         (*<plusminus_insn><mode>3): This.
11252         (<sse>_vm<addsub><mode>3): Renamed to ...
11253         (<sse>_vm<plusminus_insn><mode>3): This.
11254         (sse3_h<addsub>v4sf3): Renamed to ...
11255         (sse3_h<plusminus_insn>v4sf3): This.
11256         (sse3_h<addsub>v2df3): Renamed to ...
11257         (sse3_h<plusminus_insn>v2df3): This.
11258         (<plusminus_insn><mode>3): New.
11259         (*<plusminus_insn><mode>3): Likewise.
11260         (sse2_<plusminus_insn><mode>3): Likewise.
11261         (add<mode>): Removed.
11262         (*add<mode>3): Likewise.
11263         (sse2_ssadd<mode>3): Likewise.
11264         (sse2_usadd<mode>3): Likewise.
11265         (sub<mode>3): Likewise.
11266         (*sub<mode>3): Likewise.
11267         (sse2_sssub<mode>3): Likewise.
11268         (sse2_ussub<mode>3): Likewise.
11269
11270 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
11271
11272         * gthr-single.h: Add in required interface elements as per gthr.h.
11273         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
11274         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
11275         Generalize UNUSED macro.
11276         (__gthread_once): Add.
11277         (__gthread_key_create): Add.
11278         (__gthread_key_delete): Add.
11279         (__gthread_getspecific): Add.
11280         (__gthread_setspecific): Add.
11281
11282 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
11283
11284         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
11285         the same size types for the indirect reference on the rhs, then
11286         create a VCE.
11287
11288 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
11289
11290         * config/i386/i386.md
11291         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
11292         one insn template instead of template series.
11293         (*xordi_1_rex64): Ditto.
11294         (*xordi_2_rex64): Ditto.
11295
11296 2008-05-05  Ira Rosen  <irar@il.ibm.com>
11297
11298         PR tree-optimization/36119
11299         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
11300         in case of SLP.
11301
11302 2008-06-04  Jan Hubicka  <jh@suse.cz>
11303
11304         tree-optimization/36100
11305         * tree-pass.h (pass_O0_always_inline): Declare.
11306         * ipa-inline.c (inline_transform): Remove dead code.
11307         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
11308         pass_O0_always_inline): New.
11309         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
11310
11311 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
11312
11313         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
11314         mnemonic in this_param move for TARGET_64BIT.
11315
11316 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
11317
11318         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
11319         (*strmovsi_rex_1): Ditto.
11320         (*strsetsi_1): Ditto.
11321         (*strsetsi_rex_1): Ditto.
11322
11323         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
11324         adddicc expanders using SWI mode iterator.
11325
11326 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
11327
11328         PR target/36121
11329         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
11330         argument handling.
11331
11332 2008-05-04  David S. Miller  <davem@davemloft.net>
11333
11334         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
11335         (sparc*-*-linux*): Use linux.h in tm_file.
11336         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
11337         compiler defaulting to 32-bit.
11338         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
11339         no longer needed.
11340         * config/sparc/linux.h: Remove definitions now obtained
11341         properly from linux.h
11342         * config/sparc/linux64.h: Likewise.
11343         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
11344         don't want this setting for 32-bit builds in a biarch compiler.
11345         * doc/install.texi: Add sparc-linux to list of targets
11346         supporting --enable-targets=all.
11347
11348 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
11349
11350         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
11351
11352 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
11353
11354         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
11355         after V4SI_FTYPE_V8HI.
11356         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
11357         case V4SI_FTYPE_V2DF.
11358
11359 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
11360
11361         * doc/invoke.texi (max-flow-memory-locations): Removed.
11362         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
11363
11364 2008-05-03  Richard Guenther  <rguenther@suse.de>
11365
11366         PR middle-end/34973
11367         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
11368
11369 2008-05-02  David S. Miller  <davem@davemloft.net>
11370
11371         * config.gcc (need_64bit_hwint): Document libcpp dependency.
11372
11373 2008-05-02  Simon Baldwin <simonb@google.com>
11374
11375         PR bootstrap/36108
11376         * c-common.h (warn_array_subscript_range): Removed.
11377         * c-common.c (warn_array_subscript_range): Ditto.
11378         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
11379         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
11380
11381 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
11382
11383         * config/i386/i386.c (ix86_special_builtin_type): New.
11384         (bdesc_special_args): Likewise.
11385         (ix86_expand_special_args_builtin): Likewise.
11386         (ix86_init_mmx_sse_builtins): Updated.
11387         (ix86_expand_builtin): Updated.
11388         (ix86_expand_store_builtin): Removed.
11389         (ix86_expand_unop_builtin): Likewise.
11390
11391         * config/i386/mm3dnow.h (__v2sf): Moved to ...
11392         * config/i386/mmintrin.h (__v2sf): Here.
11393
11394         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
11395         const __v2sf.
11396         (_mm_loadl_pi): Likewise.
11397         (_mm_storeh_pi): Replace __v2si with __v2sf.
11398         (_mm_storel_pi): Likewise.
11399
11400         * doc/extend.texi: Correct __builtin_ia32_loadhps,
11401         __builtin_ia32_loadlps, __builtin_ia32_storehps,
11402         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
11403         __builtin_ia32_loadlpd.
11404
11405 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
11406
11407         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
11408         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
11409         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
11410         (ix86_init_mmx_sse_builtins): Updated.
11411         (ix86_expand_args_builtin): Likewise.
11412         (ix86_expand_builtin): Likewise.
11413         (ix86_expand_unop1_builtin): Renamed to ...
11414         (ix86_expand_unop_vec_merge_builtin): This.
11415
11416 2008-05-01  Jan Hubicka  <jh@suse.cz>
11417
11418         PR bootstrap/36100
11419         * ipa-inline.c (inline_generate_summary): Make static.
11420         (inline_transform): Do not call inlining at -O0; make static.
11421         * passes.c (execute_todo): Add sanity check.
11422         (execute_one_ipa_transform_pass): Execute proper flags.
11423
11424 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
11425
11426         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
11427         (DECL_NONADDRESSABLE_P): Likewise.
11428         * alias.c (record_component_aliases): Fix comment.
11429
11430 2008-05-01  Simon Baldwin <simonb@google.com>
11431
11432         * c-common.h (warn_array_subscript_range): New function.
11433         * c-common.c (warn_array_subscript_range): Ditto.
11434         * tree-vrp.c (check_array_ref): Corrected code to agree with
11435         comment, ignoring only arrays of size 0 or size 1.
11436         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
11437
11438 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
11439
11440         * config/i386/i386.c (ix86_builtin_type): Replace
11441         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
11442         (bdesc_args): Updated.
11443         (ix86_init_mmx_sse_builtins): Likewise.
11444         (ix86_expand_args_builtin): Likewise.
11445
11446         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
11447         with __v1di.
11448
11449         * doc/extend.texi: Correct __builtin_ia32_palignr.
11450
11451 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
11452
11453         PR target/36095
11454         * config/i386/i386.c (bdesc_crc32): Removed.
11455         (ix86_expand_crc32): Likewise.
11456         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
11457         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
11458         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
11459         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
11460         UINT_FTYPE_UINT_UCHAR.
11461         (bdesc_args): Updated. Add crc32 builtins.
11462         (ix86_init_mmx_sse_builtins): Updated.
11463         (ix86_expand_args_builtin): Updated to support subreg.
11464
11465         * doc/extend.texi: Correct __builtin_ia32_crc32di.
11466
11467 2008-05-01  Jan Hubicka  <jh@suse.cz>
11468
11469         * tree-pass.h (opt_pass): Add IPA_PASS.
11470         (varpool_node, cgraph_node): Forward declare.
11471         (ipa_opt_pass): Define.
11472         (pass_ipa_inline): Turn into ipa_opt_pass.
11473         (pass_apply_inline): Remove.
11474         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
11475         (apply_inline): Turn into ....
11476         (inline_transform): ... this one.
11477         (inline_generate_summary): New function.
11478         (pass_apply_inline): Remove.
11479         * function.h (ipa_opt_pass): Forward declare structure; typedef;
11480         vector.
11481         (struct function): Add ipa_transforms_to_apply.
11482         * passes.c (register_one_dump_file): Work on IPA_PASS.
11483         (init_optimization_passes): Remove pass_inline_parameters and
11484         pass_apply_inline.
11485         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
11486         (execute_one_pass) ... here; apply transforms when possible.
11487         (add_ipa_transform_pass, execute_ipa_summary_asses,
11488         execute_one_ipa_transform_pass): New.
11489         (execute_ipa_pass_list): Update for IPA_PASS type.
11490
11491 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
11492
11493         * config/i386/i386.c (ix86_builtin_type): Add
11494         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
11495         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
11496         (bdesc_args): Add SSE4a builtins.
11497         (ix86_init_mmx_sse_builtins): Updated.
11498         (ix86_expand_args_builtin): Likewise.
11499         (ix86_expand_builtin): Likewise.
11500
11501 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
11502
11503         * config/i386/i386.c (ix86_builtin_type): Add
11504         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
11505         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
11506         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
11507         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
11508         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
11509         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
11510         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
11511         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
11512         and DI_FTYPE_DI_DI_INT.
11513         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
11514         (ix86_init_mmx_sse_builtins): Updated.
11515         (ix86_expand_args_builtin): Likewise.
11516         (ix86_expand_builtin): Likewise.
11517         (ix86_expand_binop_imm_builtin): Removed.
11518
11519         * doc/extend.texi: Correct __builtin_ia32_palignr128.
11520
11521 2008-04-30  Richard Guenther  <rguenther@suse.de>
11522
11523         PR tree-optimization/32921
11524         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
11525
11526 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
11527
11528         * config/arm/arm.c (arm_unwind_emit): Use
11529         crtl->all_throwers_are_sibcalls instead of
11530         cfun->all_throwers_are_sibcalls.
11531         (arm_output_fn_unwind): Likewise.
11532         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
11533         instead of cfun->uses_pic_offset_table.
11534         (frv_expand_prologue): Likewise.
11535         (frv_frame_pointer_required): Likewise.
11536         (frv_expand_fdpic_call): Likewise.
11537         (frv_emit_movsi): Likewise.
11538         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
11539         cfun->returns_pcc_struct instead of
11540         current_function_returns_pcc_struct.
11541         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
11542         instead of cfun->calls_eh_return.
11543         (m32c_pushm_popm): Likewise.
11544         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
11545         "extern" declaration.
11546
11547 2008-04-30  Richard Guenther  <rguenther@suse.de>
11548
11549         PR tree-optimization/21636
11550         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
11551         constant address.
11552         (evaluate_stmt): Print the likely value.
11553         (ccp_visit_stmt): Avoid excessive vertical spacing.
11554
11555 2008-04-30  Rafael Espindola  <espindola@google.com>
11556
11557         * builtins.c (fold_call_expr): Return realret.
11558         * tree-ssa-threadedge.c
11559         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
11560         __builtin_object_size.
11561
11562 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
11563
11564         * gcc.c (wrapper_string): New variable.
11565         (insert_wrapper): New function.
11566         (execute): New option -wrapper.
11567         * doc/invoke.texi (Overall Options): New driver option -wrapper.
11568
11569 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
11570
11571         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
11572         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
11573         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
11574         from...
11575         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
11576         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
11577         config/rs6000/e500crtres64gprctr.asm,
11578         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
11579         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
11580         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
11581         config/rs6000/e500crtsav64gprctr.asm,
11582         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
11583         config/rs6000/e500crtsavg64gprctr.asm: New files.
11584         * config/rs6000/t-ppccomm: Add build rules for new files.
11585         (LIB2FUNCS_STATIC_EXTRA): Add new files.
11586         * config/rs6000/t-netbsd: Add build rules for new files.
11587         (LIB2FUNCS_STATIC_EXTRA): New variable.
11588         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
11589         (CRTSAVRES_DEFAULT_SPEC): Likewise.
11590         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
11591
11592 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
11593
11594         * config/i386/i386.c (ix86_builtin_type): Add
11595         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
11596         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
11597         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
11598         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
11599         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
11600         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
11601         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
11602         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
11603         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
11604         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
11605         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
11606         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
11607         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
11608         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
11609         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
11610         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
11611         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
11612         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
11613         V1DI_FTYPE_V2SI_V2SI.
11614         (bdesc_2arg): Moved to ...
11615         (bdesc_args): Here.
11616         (ix86_init_mmx_sse_builtins): Updated.
11617         (ix86_expand_args_builtin): Updated.  Take a pointer
11618         to const struct builtin_description.  Handle comparison
11619         builtin functions.
11620         (ix86_expand_sse_compare): Take a new argument for swapping operands.
11621         (ix86_expand_builtin): Updated.
11622
11623         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
11624         (ssse3_pmaddubsw128): This.
11625         (ssse3_pmaddubswv4hi3): Renamed to ...
11626         (ssse3_pmaddubsw): This.
11627
11628         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
11629         (__builtin_ia32_packssdw128): Likewise.
11630         (__builtin_ia32_packuswb128): Likewise.
11631         (__builtin_ia32_pmaddubsw): Likewise.
11632         (__builtin_ia32_pmaddubsw128): Likewise.
11633
11634 2008-04-30  Richard Guenther  <rguenther@suse.de>
11635
11636         PR tree-optimization/14847
11637         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
11638         (recognize_bits_test): Use it.
11639         (recognize_single_bit_test): Likewise.
11640
11641 2008-04-30  Martin Jambor  <mjambor@suse.cz>
11642
11643         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
11644         instead of setting number of formal parameters to zero.
11645         (ipcp_init_stage): Do not set the number of actual parameters to zero
11646         either.
11647         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
11648         which are called with variable number of arguments.
11649         (ipcp_insert_stage): Explicitely skipping all nodes which are
11650         called with variable number of arguments.
11651         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
11652         number of parameters.
11653
11654         * ipa-prop.h (struct ipa_node_params): Added flag
11655         called_with_var_arguments
11656         (ipa_set_param_count): Added.  Changed sole setter to use it.
11657         (ipa_get_param_count): Added.  All readers of param_count
11658         converted to use it instead.
11659         (ipa_set_called_with_variable_arg): Added.
11660         (ipa_is_called_with_var_arguments): Added.
11661         (ipa_get_ith_param): Added.  All readers of param_decls converted
11662         to use it instead.
11663         (ipa_set_cs_argument_count): Added, sole writer to argument_count
11664         changed to use it.
11665         (ipa_get_cs_argument_count): Added, all readers of argument_count
11666         changed to cal it.
11667         (ipa_get_ith_jump_func): Added. Accessors of jump values changed
11668         to use it.
11669
11670         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
11671         (struct ipcp_lattice): Renamed cval_type to type
11672         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
11673
11674         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
11675         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
11676         (ipcp_insert_stage): Changed the type of variable cvalue to tree
11677         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
11678         (build_const_val): Changed the type of parameter cvalue to tree
11679         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
11680         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
11681
11682         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
11683         constant
11684
11685         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
11686         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
11687         (ipa_add_method): Renamed to ipa_push_func_to_list
11688         (ipa_remove_method): Renamed to ipa_pop_func_from_list
11689         (ipa_callsite_param_count): Removed.
11690         (ipa_callsite_param_count_set): Removed.
11691         (ipa_callsite_param): Removed.
11692         (ipa_callsite_callee): Removed.
11693         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
11694         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
11695         (ipa_method_formal_count): Removed.
11696         (ipa_method_formal_count_set): Removed.
11697         (ipa_method_get_tree): Removed.
11698         (ipa_method_tree_map_create): Removed.
11699         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
11700         (ipa_create_param_decls_array): Creates the array itself
11701         (ipa_create_param_decls_array): Temporary variable info instead of
11702         a few dereferences.
11703         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
11704         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
11705         (get_type): Removed.
11706         (ipa_jf_get_info_type): Removed.
11707         (ipa_node_create): Renamed to ipa_create_node_params
11708         (ipa_free): Renamed to ipa_free_all_node_params
11709         (ipa_nodes_create): Renamed to ipa_create_all_node_params
11710         (ipa_edges_create): Renamed to ipa_create_all_edge_args
11711         (ipa_edges_free): Renamed to ipa_free_all_edge_args
11712         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
11713         (ipa_free_all_node_params): Deallocation to jump_functions moved to
11714         ipa_free_all_edge_args
11715         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
11716         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
11717         (ipa_create_methodlist_node): Removed.
11718         (ipa_methodlist_method): Removed.
11719         (ipa_methodlist_method_set): Removed.
11720         (ipa_methodlist_next_method): Removed.
11721         (ipa_methodlist_next_method_set): Removed.
11722         (ipa_method_is_modified): Removed.
11723         (ipa_method_modify_create): Removed.
11724         (ipa_method_modify_init): Temporary variable info instead of a few
11725         dereferences.
11726         (ipa_detect_param_modifications): Temporary variable info instead of
11727         a few dereferences.
11728         (ipa_compute_jump_functions): Temporary variable info instead of
11729         a few dereferences.
11730         (ipa_method_modify_set): Removed.
11731         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
11732         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
11733         than craph_node as the first parameter.
11734         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
11735         (ipa_method_modify_init): Removed.
11736         (ipa_compute_jump_functions): Added a temp variable instead of
11737         repeatadly dereferencing the cgraph_edge.aux pointer
11738         (ipa_callsite_param_set_type): Removed.
11739         (ipa_compute_jump_functions): i renamed to index and moved to
11740         an inner block
11741         (ipa_callsite_param_set_info_type_formal): Removed.
11742         (ipa_callsite_param_set_info_type): Removed.
11743         (ipa_callsite_param_map_create): Removed.
11744         (ipa_callsite_tree): Removed.
11745         (ipa_callsite_caller): Removed.
11746         (ipa_pop_func_from_list): return_method removed to return_func
11747
11748         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
11749         prefixed all values with IPA_. Changed all users.
11750         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
11751         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
11752         and FORMAL_IPATYPE IPA_PASS_THROUGH.
11753         (union parameter_info): Renamed to jump_func_value.
11754         (union jump_func_value): Renamed value to constant
11755         (struct ipa_jump_func): Renamed info_type to value
11756         (struct ipa_node): Renamed to ipa_node_params
11757         (struct ipa_node_params): Renamed ipa_arg_num to param_count
11758         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
11759         (struct ipa_node_params): Renamed ipa_mod to modified_flags
11760         (struct ipa_edge): Renamed to ipa_edge_args
11761         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
11762         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
11763         (struct ipa_methodlist): Renamed to ipa_func_list
11764         (struct ipa_func_list): method_p renamed to node, next_method
11765         renamed to next
11766         (ipa_methodlist_p): Removed, switched all users to struct pointer
11767         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
11768
11769 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
11770
11771         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
11772         (rs6000_emit_epilogue): Use backchain to restore only when we
11773         have a large frame.  Make use of frame pointer to restore if we
11774         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
11775
11776 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
11777
11778         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
11779         Add mode to zero_extract.
11780         (sign bit tests peepholes): (Ditto.).
11781
11782 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
11783
11784         * config/i386/i386.c (ix86_builtins): Replace Prescott New
11785         Instructions in comments with SSE3.
11786         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
11787         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
11788         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
11789         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
11790         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
11791         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
11792         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
11793         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
11794         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
11795         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
11796         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
11797         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
11798         (bdesc_sse_args): Renamed to ...
11799         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
11800         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
11801         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
11802         IX86_BUILTIN_FABSQ.
11803         (bdesc_1arg): Moved to ...
11804         (bdesc_args): Here.
11805         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
11806         Instructions in comments with SSE3.
11807         (ix86_expand_sse_operands_builtin): Renamed to ...
11808         (ix86_expand_args_builtin): This.  Updated.
11809         (ix86_expand_unop1_builtin): Update comments.
11810         (ix86_expand_builtin): Updated.
11811
11812 2008-04-29  Richard Guenther  <rguenther@suse.de>
11813
11814         PR tree-optimization/36078
11815         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
11816         Update virtual SSA form after cleaning up the CFG.
11817
11818 2008-04-29  Richard Guenther  <rguenther@suse.de>
11819
11820         PR middle-end/15255
11821         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
11822
11823 2008-04-29  Richard Guenther  <rguenther@suse.de>
11824
11825         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
11826         (compute_may_aliases): Do not call finalize_ref_all_pointers.
11827         (compute_flow_insensitive_aliasing): Do not treat
11828         PTR_IS_REF_ALL pointers special.
11829         (get_smt_for): Likewise.
11830         (may_alias_p): Re-structure.
11831         (is_escape_site): A ref-all pointer conversion is not an escape site.
11832         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
11833         PTR_IS_REF_ALL pointers special.
11834         * tree-ssa-structalias.h (struct alias_info): Remove
11835         ref_all_symbol_mem_tag field.
11836         (PTR_IS_REF_ALL): Remove.
11837
11838 2008-04-29  Richard Guenther  <rguenther@suse.de>
11839
11840         PR middle-end/36077
11841         * fold-const.c (extract_muldiv_1): In combining division constants
11842         make sure to never overflow.
11843
11844 2008-04-29  Nick Clifton  <nickc@redhat.com>
11845
11846         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
11847
11848 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11849
11850         PR bootstrap/35169
11851         * optc-gen.awk: Work around HP-UX/IA awk bug.
11852
11853 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
11854
11855         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
11856         2008-04-25 commit.
11857
11858 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
11859
11860         PR target/36073
11861         * config/i386/i386.md
11862         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
11863         Change operand 1 predicate to nonimmediate_operand.
11864
11865 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
11866
11867         PR debug/36060
11868         * dwarf2out.c (struct die_struct): Mark as chain_circular through
11869         die_sub field.
11870         * gengtype.c (walk_type, write_func_for_structure): Handle
11871         chain_circular.
11872         * doc/gty.texi: Document chain_circular.
11873
11874 2008-04-28  Richard Guenther  <rguenther@suse.de>
11875
11876         PR tree-optimization/36066
11877         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
11878         SCEV and loop.
11879
11880 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
11881
11882         PR target/36064
11883         * config/i386/i386.md
11884         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
11885         Use match_scratch instead of match_operand for operands 3 and 4.
11886
11887 2008-04-27  Richard Guenther  <rguenther@suse.de>
11888
11889         PR tree-optimization/18754
11890         PR tree-optimization/34223
11891         * tree-pass.h (pass_complete_unrolli): Declare.
11892         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
11893         loop size before and after unconditionally of UL_NO_GROWTH in effect.
11894         Rewrite loop into loop closed SSA form if it is not already.
11895         (tree_unroll_loops_completely): Re-structure to iterate over
11896         innermost loops with intermediate CFG cleanups.
11897         Unroll outermost loops only if requested or the code does not grow
11898         doing so.
11899         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
11900         loops are available.
11901         (tree_vectorize): Instead do so here.
11902         (tree_complete_unroll): Also unroll outermost loops.
11903         (tree_complete_unroll_inner): New function.
11904         (gate_tree_complete_unroll_inner): Likewise.
11905         (pass_complete_unrolli): New pass.
11906         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
11907         uses outside of the loop.
11908         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
11909         form if it is available.
11910         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
11911         * passes.c (init_optimization_passes): Schedule complete inner
11912         loop unrolling pass before the first CCP pass after final inlining.
11913
11914 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
11915
11916         * targhooks.h (default_emutls_var_fields,
11917         default_emutls_var_init): Declare.
11918         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
11919         * target.h (struct gcc_target): Add struct emutls member.
11920         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
11921         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
11922         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
11923         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
11924         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
11925         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
11926         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
11927         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
11928         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
11929         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
11930         emit debug information.
11931         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
11932         * varasm.c: Include targhooks.h.
11933         (emutls_object_section, emutls_tmpl_section): New.
11934         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
11935         (EMUTLS_SEPARATOR): New.
11936         (prefix_name): New.
11937         (get_emutls_object_name): New.
11938         (default_emutls_var_fields): New, broken out of ...
11939         (get_emutls_object_type): ... here.  Adjust to use target hooks.
11940         (get_emutls_init_templ_addr): Adjust to use target hooks.
11941         (emutls_decl): Adjust to use target hooks.
11942         (emutls_finish): Likewise.
11943         (default_emutls_var_init): New, broken out of ...
11944         (assemble_variable): ... here.  Adjust to use target hooks.
11945         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
11946         SECCAT_EMUTLS_TMPL.
11947         * c-common.c (handle_section_attribute): Prevent overriding
11948         sections for emulated tls with special sections.
11949         * config/i386/i386.c (x86_64_elf_select_section): Add
11950         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
11951         (x86_64_elf_unique_section): Likewise.
11952         * config/vxworks.c: Include tree.h.
11953         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
11954         (vxworks_override_options): Set TLS scheme.
11955         * doc/tm.texi (Emulated TLS): New node.
11956
11957 2008-04-26  Simon Baldwin <simonb@google.com>
11958
11959         PR c/35652
11960         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
11961         with propagated string constants.
11962
11963 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
11964
11965         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
11966         constraint for operand 2 when operand 0 is memory operand.
11967         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
11968         operand 0 is memory operand.
11969         (fix_trunc<mode>_i387_with_temp): Ditto.
11970         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
11971         operand 2 when operand 1 is memory operand.
11972         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
11973         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
11974         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
11975         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
11976         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
11977         operands 2,3 and 4 when operand 1 is memory operand.
11978         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
11979         is memory operand.
11980         (fistdi2_floor_with_temp): Ditto.
11981         (fist<mode>2_floor_with_temp): Ditto.
11982         (fistdi2_ceil_with_temp): Ditto.
11983         (fist<mode>2_ceil_with_temp): Ditto.
11984         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
11985
11986 2008-04-26  David Daney  <ddaney@avtrex.com>
11987
11988         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
11989         unspec_volitile.
11990         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
11991         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
11992         UNSPEC_UPDATE_GOT_VERSION): Renumber.
11993         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
11994         (compare_and_swap_12): New insn.
11995         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
11996         * config/mips/mips.c (mips_force_binary): New function.
11997         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
11998         (mips_expand_compare_and_swap_12): New function.
11999         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
12000
12001 2008-04-25  Jan Hubicka  <jh@suse.cz>
12002
12003         PR testsuite/35843
12004         * cfgexpand.c (pass_expand): Turn into RTL pass.
12005         * passes.c (execute_one_pass): Do pass typechecking after execution.
12006         * tree-pass.h (pass_expand): Turn into RTL pass.
12007
12008         * function.h (struct rtl_data): Move here fields
12009         accesses_prior_frames, calls_eh_return, saves_all_registers,
12010         has_nonlocal_goto, has_asm_statement, is_thunk,
12011         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
12012         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
12013         arg_pointer_save_area_init from struct function; turn into bool.
12014         (struct function): Move
12015         calls_eh_return, saves_all_registers, has_nonlocal_goto,
12016         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
12017         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
12018         tail_call_emit, arg_pointer_save_area_init
12019         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
12020         (current_function_returns_struct, current_function_returns_pcc_struct,
12021         current_function_calls_setjmp, current_function_calls_alloca,
12022         current_function_accesses_prior_frames,
12023         current_function_calls_eh_return, current_function_is_thunk,
12024         current_function_stdarg, current_function_profile,
12025         current_function_limit_stack, current_function_uses_pic_offset_table,
12026         current_function_uses_const_pool, current_function_has_nonlocal_label,
12027         current_function_saves_all_registers,
12028         current_function_has_nonlocal_goto,
12029         current_function_has_asm_statement): Remove accesor macros.
12030         * ra-conflict.c (global_conflicts): Update.
12031         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
12032         (suitable_for_tail_call_opt_p): Update.
12033         * builtins.c (expand_builtin_return_addr): Update.
12034         (expand_builtin_setjmp_setup): Update.
12035         (expand_builtin_nonlocal_goto): Update.
12036         * final.c (final_start_function): Update.
12037         (profile_function): Update.
12038         (leaf_function_p): Update.
12039         (only_leaf_regs_used): Update.
12040         * df-scan.c (df_get_exit_block_use_set): Update.
12041         * dojump.c (clear_pending_stack_adjust): Update.
12042         * tree-stdarg.c (gate_optimize_stdarg): Update.
12043         * gimple-low.c (lower_function_body): Update.
12044         * global.c (compute_regsets): Update.
12045         (global_alloc): Update.
12046         * dwarf2out.c (dwarf2out_begin_prologue): Update.
12047         * expr.c (expand_assignment): Update.
12048         * dse.c (dse_step0): Update.
12049         (dse_step1): Update.
12050         * c-decl.c (store_parm_decls): Update.
12051         * local-alloc.c (combine_regs): Update.
12052         (find_free_reg): Update.
12053         * function.c (assign_parms_augmented_arg_list): Update.
12054         (assign_parm_find_data_types): Update.
12055         (assign_parms): Update.
12056         (allocate_struct_function): Update.
12057         (expand_function_start): Update.
12058         (expand_function_end): Update.
12059         (get_arg_pointer_save_area): Update.
12060         (thread_prologue_and_epilogue_insns): Update.
12061         (rest_of_match_asm_constraints): Update.
12062         * stor-layout.c (variable_size): Update.
12063         * gcse.c (gcse_main): Update.
12064         (bypass_jumps): Update.
12065         * gimplify.c (gimplify_function_tree): Update.
12066         * calls.c (emit_call_1): Update.
12067         (expand_call): Update.
12068         * bt-load.c (compute_defs_uses_and_gen): Update.
12069         * except.c (sjlj_assign_call_site_values): Update.
12070         (sjlj_emit_function_enter): Update.
12071         (can_throw_external): Update.
12072         (set_nothrow_function_flags): Update.
12073         (expand_builtin_unwind_init): Update.
12074         (expand_eh_return): Update.
12075         (convert_to_eh_region_ranges): Update.
12076         (output_function_exception_table): Update.
12077         * emit-rtl.c (gen_tmp_stack_mem): Update.
12078         * cfgexpand.c (expand_used_vars): Update.
12079         (tree_expand_cfg): Update.
12080         * cfgcleanup.c (rest_of_handle_jump): Update.
12081         * explow.c (allocate_dynamic_stack_space): Update.
12082         * varasm.c (assemble_start_function): Update.
12083         (force_const_mem): Update.
12084         (mark_constant_pool): Update.
12085         * tree-optimize.c (tree_rest_of_compilation): Update.
12086         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
12087         * tree-cfg.c (notice_special_calls): Update.
12088         (is_ctrl_altering_stmt): Update.
12089         (tree_can_make_abnormal_goto): Update.
12090         (tree_purge_dead_abnormal_call_edges): Update.
12091         * config/alpha/predicates.md: Update.
12092         * config/alpha/alpha.c (alpha_sa_mask): Update.
12093         (alpha_sa_size): Update.
12094         (alpha_does_function_need_gp): Update.
12095         (alpha_expand_prologue): Update.
12096         (alpha_start_function): Update.
12097         (alpha_output_function_end_prologue): Update.
12098         (alpha_expand_epilogue): Update.
12099         * config/frv/frv.c (frv_stack_info): Update.
12100         (frv_expand_epilogue): Update.
12101         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
12102         (s390_register_info): Update.
12103         (s390_frame_info): Update.
12104         (s390_init_frame_layout): Update.
12105         (s390_can_eliminate): Update.
12106         (save_gprs): Update.
12107         * config/spu/spu.c (spu_split_immediate): Update.
12108         (need_to_save_reg): Update.
12109         (spu_expand_prologue): Update.
12110         (spu_expand_epilogue): Update.
12111         * config/sparc/sparc.md: Update.
12112         * config/sparc/sparc.c (eligible_for_return_delay): Update.
12113         (sparc_tls_got): Update.
12114         (legitimize_pic_address): Update.
12115         (sparc_emit_call_insn): Update.
12116         (sparc_expand_prologue): Update.
12117         (output_return): Update.
12118         (print_operand): Update.
12119         (sparc_function_ok_for_sibcall): Update.
12120         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
12121         * config/m32r/m32r.md: Update.
12122         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
12123         (m32r_compute_frame_size): Update.
12124         (m32r_expand_prologue): Update.
12125         (m32r_expand_epilogue): Update.
12126         (m32r_legitimize_pic_address): Update.
12127         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
12128         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
12129         * config/i386/i386.c (ix86_frame_pointer_required): Update.
12130         (gen_push): Update.
12131         (ix86_save_reg): Update.
12132         (ix86_compute_frame_layout): Update.
12133         (ix86_expand_prologue): Update.
12134         (ix86_expand_epilogue): Update.
12135         * config/sh/sh.c (output_stack_adjust): Update.
12136         (calc_live_regs): Update.
12137         (sh5_schedule_saves): Update.
12138         (sh_expand_prologue): Update.
12139         (sh_expand_epilogue): Update.
12140         (sh_setup_incoming_varargs): Update.
12141         (sh_allocate_initial_value): Update.
12142         (sh_get_pr_initial_val): Update.
12143         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
12144         * config/sh/sh.md (label:): Update.
12145         * config/avr/avr.c (out_movhi_mr_r): Update.
12146         * config/crx/crx.h (enum): Update.
12147         * config/xtensa/xtensa.h (along): Update.
12148         * config/stormy16/stormy16.c Update.
12149         (xstormy16_compute_stack_layout): Update.
12150         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
12151         (fr30_expand_prologue): Update.
12152         * config/cris/cris.c (cris_conditional_register_usage): Update.
12153         (cris_reg_saved_in_regsave_area): Update.
12154         (cris_initial_frame_pointer_offset): Update.
12155         (cris_simple_epilogue): Update.
12156         (cris_expand_prologue): Update.
12157         (cris_expand_epilogue): Update.
12158         (cris_expand_pic_call_address): Update.
12159         (cris_asm_output_symbol_ref): Update.
12160         (cris_asm_output_label_ref): Update.
12161         * config/cris/cris.md Update.
12162         * config/iq2000/iq2000.c (compute_frame_size): Update.
12163         (iq2000_expand_epilogue): Update.
12164         * config/mt/mt.h (save_direction): Update.
12165         * config/mn10300/mn10300.c (mn10300_function_value): Update.
12166         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
12167         (ia64_secondary_reload_class): Update.
12168         * config/m68k/m68k.c (m68k_save_reg): Update.
12169         (m68k_expand_prologue): Update.
12170         (m68k_expand_epilogue): Update.
12171         (legitimize_pic_address): Update.
12172         * config/rs6000/rs6000.c (rs6000_got_register): Update.
12173         (first_reg_to_save): Update.
12174         (first_altivec_reg_to_save): Update.
12175         (compute_vrsave_mask): Update.
12176         (compute_save_world_info): Update.
12177         (rs6000_stack_info): Update.
12178         (spe_func_has_64bit_regs_p): Update.
12179         (rs6000_ra_ever_killed): Update.
12180         (rs6000_emit_eh_reg_restore): Update.
12181         (rs6000_emit_allocate_stack): Update.
12182         (rs6000_emit_prologue): Update.
12183         (rs6000_emit_epilogue): Update.
12184         (rs6000_output_function_epilogue): Update.
12185         (output_profile_hook): Update.
12186         (rs6000_elf_declare_function_name): Update.
12187         * config/rs6000/rs6000.h (rs6000_args): Update.
12188         * config/rs6000/rs6000.md: Update.
12189         * config/mcore/mcore.c (mcore_expand_prolog): Update.
12190         * config/arc/arc.c (arc_output_function_epilogue): Update.
12191         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
12192         * config/darwin.c (machopic_function_base_name): Update.
12193         * config/score/score3.c (score3_compute_frame_size): Update.
12194         (rpush): Update.
12195         (rpop): Update.
12196         (score3_epilogue): Update.
12197         * config/score/score7.c (score7_compute_frame_size): Update.
12198         (score7_prologue): Update.
12199         (score7_epilogue): Update.
12200         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
12201         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
12202         * config/arm/arm.c (use_return_insn): Update.
12203         (require_pic_register): Update.
12204         (arm_load_pic_register): Update.
12205         (arm_compute_save_reg0_reg12_mask): Update.
12206         (arm_compute_save_reg_mask): Update.
12207         (thumb1_compute_save_reg_mask): Update.
12208         (output_return_instruction): Update.
12209         (arm_output_function_prologue): Update.
12210         (arm_output_epilogue): Update.
12211         (arm_get_frame_offsets): Update.
12212         (arm_expand_prologue): Update.
12213         (thumb_pushpop): Update.
12214         (thumb_exit): Update.
12215         (thumb1_expand_prologue): Update.
12216         (thumb1_expand_epilogue): Update.
12217         (arm_unwind_emit): Update.
12218         (arm_output_fn_unwind): Update.
12219         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
12220         * config/arm/arm.md: Update.
12221         * config/pa/pa.md: Update.
12222         * config/pa/pa.c (legitimize_pic_address): Update.
12223         (compute_frame_size): Update.
12224         (hppa_expand_prologue): Update.
12225         (hppa_expand_epilogue): Update.
12226         (borx_reg_operand): Update.
12227         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
12228         (HARD_REGNO_RENAME_OK): Update.
12229         * config/mips/mips.c (mips_global_pointer): Update.
12230         (mips_save_reg_p): Update.
12231         (mips_compute_frame_info): Update.
12232         (mips_frame_pointer_required): Update.
12233         (mips_expand_prologue): Update.
12234         (mips_expand_epilogue): Update.
12235         (mips_can_use_return_insn): Update.
12236         (mips_reorg_process_insns): Update.
12237         * config/v850/v850.c (compute_register_save_size): Update.
12238         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
12239         * config/mmix/mmix.c (along): Update.
12240         (mmix_expand_epilogue): Update.
12241         * config/bfin/bfin.c (legitimize_pic_address): Update.
12242         (must_save_p): Update.
12243         (stack_frame_needed_p): Update.
12244         (add_to_reg): Update.
12245         (bfin_expand_prologue): Update.
12246         * stmt.c (expand_asm_operands): Update.
12247         * reload1.c (reload): Update.
12248         (init_elim_table): Update.
12249
12250 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
12251
12252         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
12253
12254 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
12255
12256         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
12257         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
12258         (mov<mode>): Removed.
12259         (*movv4sf_internal): Likewise.
12260         (*movv2df_internal): Likewise.
12261
12262 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
12263
12264         * config.gcc (crx-*-elf): Remove deprecation.
12265
12266 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
12267
12268         * config/i386/cygming-crtend.c (register_frame_ctor): Register
12269         __gcc_deregister_frame with atexit.
12270         (deregister_frame_dtor): Remove.
12271
12272 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
12273             Nathan Sidwell  <nathan@codesourcery.com>
12274
12275         * config/rs6000/rs6000.opt (mspe): Remove Var property.
12276         (misel): Likewise.
12277         * config/rs6000/rs6000.h (rs6000_spe): Declare.
12278         (rs6000_isel): Likewise.
12279         * config/rs6000/rs6000.c (rs6000_spe): New variable.
12280         (rs6000_isel): New variable.
12281         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
12282
12283 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
12284
12285         PR c++/35758
12286         * c-common.c (handle_vector_size_attribute): Call
12287         lang_hooks.types.reconstruct_complex_type instead of
12288         reconstruct_complex_type.
12289         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
12290         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
12291         * langhooks.h (struct lang_hooks_for_types): Add
12292         reconstruct_complex_type hook.
12293         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
12294         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
12295
12296 2008-04-24  Richard Guenther  <rguenther@suse.de>
12297
12298         * c-common.h (check_builtin_function_arguments): Declare.
12299         * c-common.c (validate_nargs): New function.
12300         (check_builtin_function_arguments): Likewise.
12301         * c-typeck.c (build_function_call): Call
12302         check_builtin_function_arguments.
12303         * builtins.c (fold_builtin_classify): Remove error reporting code.
12304         (fold_builtin_unordered_cmp): Likewise.
12305         (fold_builtin_1): Likewise.
12306         (fold_builtin_n): Likewise.
12307
12308 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
12309
12310         PR tree-optimization/36008
12311         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
12312         the original op1, rather than delta by step.
12313
12314 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
12315             Sebastian Pop  <sebastian.pop@amd.com>
12316
12317         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
12318         eliminate_local_variables_stmt, eliminate_local_variables,
12319         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
12320         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
12321         of code delimited by two edges in the CFG.
12322         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
12323         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
12324         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate
12325         the case of parallelisation of reductions.
12326         (expr_invariant_in_region_p): New.
12327
12328         * tree-flow.h (gather_blocks_in_sese_region): Declared.
12329         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
12330
12331 2008-04-24  Ira Rosen  <irar@il.ibm.com>
12332             Richard Guenther  <rguenther@suse.de>
12333
12334         PR tree-optimization/36034
12335         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
12336         incapable of dealing with loads with gaps.
12337
12338 2008-04-24  Rafael Espindola  <espindola@google.com>
12339
12340         * tree-flow.h (vrp_evaluate_conditional): Change signature.
12341         * tree-ssa-propagate.c (fold_predicate_in): Update call to
12342         vrp_evaluate_conditional.
12343         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
12344         (vrp_evaluate_conditional): Split the cond argument.
12345         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
12346         (simplify_stmt_for_jump_threading): Update call to
12347         vrp_evaluate_conditional.
12348
12349 2008-04-24  Ira Rosen  <irar@il.ibm.com>
12350
12351         PR tree-optimization/35982
12352         * tree-vect-analyze.c (vect_check_interleaving): Check that the
12353         interleaved data-refs are of the same type.
12354
12355 2008-04-24  Danny Smith  <dannysmith@users.net>
12356
12357         * c-format.c (check_format_info_main): Use strncmp rather than a
12358         magic prefix to handle multichar length specs.
12359         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
12360         Don't prefix "I64" and "I32" with '\0'.
12361
12362 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
12363
12364         PR target/36015
12365         * config/i386/i386.c (init_cumulative_args): Don't pass anything
12366         in registers for -m32 only if stdarg_p (fntype).
12367
12368 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
12369
12370         PR rtl-optimization/36006
12371         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
12372         temp to op0 in order to avoid invalid rtx sharing.
12373
12374 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
12375
12376         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
12377         check TREE_INVARIANT.
12378         * tree-gimple.c (is_gimple_address): New.
12379         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
12380         * tree-gimple.h (is_gimple_address): New.
12381         * tree.h (decl_address_invariant_p): New.
12382         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
12383         (build_string): Likewise.
12384         (decl_address_invariant_p): New, from is_gimple_invariant_address.
12385         (tree_invariant_p_1): Likewise.
12386         (save_expr): Use it.
12387         (tree_invariant_p): New.
12388         (skip_simple_arithmetic): Use it.
12389         (stabilize_reference_1): Use it.
12390         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
12391         simplify.
12392         (build1_stat): Drop code to compute TREE_INVARIANT.
12393         (build2_stat): Drop code to compute TREE_INVARIANT.
12394         (build3_stat): Drop code to compute TREE_INVARIANT.
12395         (build4_stat): Drop code to compute TREE_INVARIANT.
12396         (build5_stat): Drop code to compute TREE_INVARIANT.
12397         (build7_stat): Drop code to compute TREE_INVARIANT.
12398         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
12399         * tree.h (struct tree_base): Remove invariant_flag.
12400         (TREE_INVARIANT): Remove.
12401         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
12402         (fold_builtin_expect): Check TREE_CONSTANT.
12403         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
12404         * c-tree.h (c_expr_to_decl): Drop third parameter.
12405         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
12406         (build_c_cast): Don't set TREE_INVARIANT.
12407         (pop_init_level): Don't set TREE_INVARIANT.
12408         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
12409         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
12410         TREE_CONSTANT.
12411         (gimplify_init_constructor): Don't set TREE_INVARIANT.
12412         (gimplify_addr_expr): Adjust comment.
12413         * tree-mudflap.c (mf_build_string):
12414         * print-tree.c (print_node): Don't print TREE_INVARIANT.
12415         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
12416         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
12417         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
12418         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
12419         * langhooks.h (struct lang_hooks): Drop third parameter from
12420         expr_to_decl.
12421
12422 2008-04-23  Richard Guenther  <rguenther@suse.de>
12423
12424         PR tree-optimization/27799
12425         PR tree-optimization/32921
12426         PR tree-optimization/32624
12427         * tree-ssa-structalias.c (merge_smts_into): Only merge the
12428         SMTs aliases and the tag itself into the solution.
12429         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
12430         merge the points-to solution back into the SMT aliases.
12431         (may_alias_p): Use alias_set_subset_of instead of
12432         aliases_conflict_p.  A pointer which points to
12433         memory with alias set zero may access any variable.
12434
12435 2008-04-23  Richard Guenther  <rguenther@suse.de>
12436
12437         * alias.c (alias_set_subset_of): Correctly handle asking
12438         if zero is a subset of an alias set with zero child.
12439         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
12440         (compute_flow_insensitive_aliasing): Correctly walk all
12441         pointers.  Do not unnecessarily union sets.
12442
12443 2008-04-23  Richard Guenther  <rguenther@suse.de>
12444
12445         PR middle-end/36021
12446         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
12447
12448 2008-04-22  Tomas Bily  <tbily@suse.cz>
12449
12450         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
12451         unreachable case.
12452         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
12453         NON_LVALUE_EXPR.
12454         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
12455         * tree-ssa-structalias.c (get_constraint_for): Likewise.
12456         * tree-inline.c (estimate_num_insns_1): Likewise.
12457         * varasm.c (const_hash_1, compare_constant, copy_constant)
12458         (compute_reloc_for_constant, output_addressed_constants): Likewise.
12459         * emit-rtl.c (component_ref_for_mem_expr)
12460         (set_mem_attributes_minus_bitpos): Likewise.
12461         * expr.c (highest_pow2_factor, expand_expr_real_1, )
12462         (is_aligning_offset): Likewise.
12463         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
12464         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
12465         * dojump.c (do_jump): Likewise.
12466         * builtins.c (get_pointer_alignment, get_memory_rtx)
12467         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
12468         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
12469
12470 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
12471
12472         PR rtl-optimization/36017
12473         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
12474         expanding the library call.
12475
12476 2008-04-22  Ian Lance Taylor  <iant@google.com>
12477
12478         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
12479         than size_in_bytes.
12480
12481 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
12482
12483         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
12484         of LR/CTR moves for Power6.
12485
12486 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
12487
12488         PR middle-end/36003
12489         * passes.c (init_optimization_passes): Remove
12490         pass_fast_rtl_byte_dce.
12491
12492 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
12493
12494         PR target/29096
12495         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
12496         builtin functions to generate faster code.
12497         (_mm_cvtpu16_ps): Ditto.
12498         (_mm_cvtpi32x2_ps): Ditto.
12499
12500 2008-04-22  Nick Clifton  <nickc@redhat.com>
12501
12502         * common.opt (ftree-loop-distribution): Add Optimization
12503         attribute.
12504
12505         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
12506         (frv_expand_builtin_va_start): Likewise.
12507
12508         * config/arm/arm.c (thumb_find_work_register): Fix location of
12509         argument register count.
12510
12511 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
12512
12513         Support scheduling for ColdFire V1 and V3 microarchitecture.
12514         Improve scheduling of multiplication instructions.
12515
12516         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
12517         (mac): New instruction attribute.
12518         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
12519         (m68k_sched_mac): New variable.
12520         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
12521         Handle cfv1 and cfv3.
12522         (max_insn_size): New static variable.
12523         (struct _sched_ib): New type.
12524         (sched_ib): New static variable.
12525         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
12526         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
12527         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
12528         Update.
12529         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
12530         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
12531         new variables.  Update.
12532         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
12533         Add modeling of cfv3 instruction buffer.  Update.
12534         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
12535         * config/m68k/m68k.h (TUNE_CFV3): New macro.
12536         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
12537         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
12538         a particular reservation applies to.
12539         (type2): Reorganize attribute values.  Rename alu to alu_reg,
12540         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
12541         to mul_l and mul_w.
12542         (cf_ib_*): Simplify description of instruction buffer.
12543         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
12544         (cf_mem): Split into cf_mem1 and cf_mem2.
12545         (cf_v2_move_??): Rename to cfv12_alu_??.
12546         (cf_v2_move_l_??): Rename to cfv12_omove_??.
12547         (cf_v2_mul_??): Remove reservations.
12548         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
12549         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
12550         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
12551         appropriate place.
12552         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
12553         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
12554         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
12555         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
12556         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
12557         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
12558         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
12559         expansions of the above reservations for instructions of sizes
12560         1, 2 and 3 words.
12561
12562 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
12563
12564         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
12565
12566 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
12567
12568         * coverage.c: Include tree-pass.h.
12569         (coverage_counter_alloc): Print da_file_name to the dump file.
12570
12571 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
12572
12573         * sbitmap.c (sbitmap_range_empty_p): New function.
12574         * sbitmap.h (sbitmap_range_empty_p): New function.
12575         * bitmap.h: Now includes obstack.h.
12576
12577 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
12578             Kenneth Zadeck  <zadeck@naturalbridge.com>
12579
12580         * dbgcnt.def (ra_byte_scan): Added.
12581         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
12582         when the last hit happens for a counter.
12583         * timevar.def (TV_DF_BYTE_LR): New variable.
12584         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
12585         * passes.c (pass_fast_rtl_byte_dce): New pass.
12586         * fwprop.c (update_df): Added mode to call df_ref_create.
12587         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
12588         DF_REF_EXTRACT_OFFSET.
12589         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
12590         DF_BYTE_LR_OUT, df_byte_lr): New macro.
12591         (df_mm): New enum.
12592         (df_ref_extract): Added mode field.
12593         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
12594         DF_REF_EXTRACT_OFFSET.
12595         (DF_REF_EXTRACT_MODE): New macro.
12596         (df_byte_lr_bb_info): New structure.
12597         (df_print_byte_regset, df_compute_accessed_bytes,
12598         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
12599         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
12600         df_byte_lr_simulate_uses,
12601         df_byte_lr_simulate_artificial_refs_at_top,
12602         df_byte_lr_simulate_artificial_refs_at_end,
12603         df_compute_accessed_bytes): New function.
12604         (df_ref_create): Add parameter.
12605         (df_byte_lr_get_bb_info): New inline function.
12606         * df-scan.c (df_ref_record, df_uses_record,
12607         df_ref_create_structure): Added mode parameter.
12608         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
12609         df_defs_record, df_uses_record, df_get_conditional_uses,
12610         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
12611         df_entry_block_defs_collect, df_exit_block_uses_collect):
12612         Added mode parameter to calls to df_ref_record, df_uses_record,
12613         df_ref_create_structure.
12614         (df_ref_equal_p, df_ref_compare): Added test for modes.
12615         (df_ref_create_structure): Added code to set mode.  Renamed
12616         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
12617         DF_REF_EXTRACT_OFFSET.
12618         * df-core.c (df_print_byte_regset): New function.
12619         * df-byte-scan.c: New file.
12620         * df-problems.c (df_rd_transfer_function): Removed unnecessary
12621         calls to BITMAP_FREE.
12622         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
12623         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
12624         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
12625         df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
12626         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
12627         df_byte_lr_local_compute, df_byte_lr_init,
12628         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
12629         df_byte_lr_transfer_function, df_byte_lr_free,
12630         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
12631         df_byte_lr_add_problem, df_byte_lr_simulate_defs,
12632         df_byte_lr_simulate_uses,
12633         df_byte_lr_simulate_artificial_refs_at_top,
12634         df_byte_lr_simulate_artificial_refs_at_end): New function.
12635         * dce.c (byte_dce_process_block): New function.
12636         (dce_process_block): au is now passed in rather than computed
12637         locally.  Changed loops that look at artificial defs to not look
12638         for conditional or partial ones, because there never are any.
12639         (fast_dce): Now is able to drive byte_dce_process_block or
12640         dce_process_block depending on the kind of dce being done.
12641         (rest_of_handle_fast_dce): Add parameter to fast_dce.
12642         (rest_of_handle_fast_byte_dce): New function.
12643         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
12644         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
12645
12646 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
12647
12648         PR fortran/35019
12649         * gcc.h: Added fortran options that take arguments to
12650         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
12651         macros.
12652
12653 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
12654
12655         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
12656         scalarization if on the LHS and not a full access.
12657
12658 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12659
12660         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
12661
12662 2008-04-18  Rafael Espindola  <espindola@google.com>
12663
12664         * tree-vrp.c (find_case_label_index): Fix the binary search.
12665         (find_case_label_range): New.
12666         (vrp_visit_switch_stmt): Use find_case_label_range.
12667         (simplify_switch_using_ranges): Use find_case_label_range.
12668
12669 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
12670
12671         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
12672         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
12673
12674 2008-04-18  Tom Tromey  <tromey@redhat.com>
12675
12676         PR libcpp/15500:
12677         * doc/cpp.texi (Implementation-defined behavior): Mention
12678         -finput-charset.
12679
12680 2008-04-18  Ian Lance Taylor  <iant@google.com>
12681
12682         * fold-const.c (pointer_may_wrap_p): New static function.
12683         (fold_comparison): Add another test for pointer overflow.  Use
12684         pointer_may_wrap_p to disable some false positives.
12685
12686 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
12687
12688         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
12689         (fname_as_string): Match updated cpp_interpret_string prototype.
12690         (fix_string_type): Support char16_t* and char32_t*.
12691         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
12692         derivative) nodes.  Register as builtin if C++0x.
12693         (c_parse_error): Support CPP_CHAR{16,32}.
12694         * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
12695         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
12696         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
12697         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
12698         CTI_CHAR32_ARRAY_TYPE>: New elements.
12699         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
12700         char32_type_node, signed_char32_type_node, char16_array_type_node,
12701         char32_array_type_node): New defines.
12702         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
12703         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
12704         (lex_string): Support CPP_STRING{16,32}, match updated
12705         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
12706         (lex_charconst): Support CPP_CHAR{16,32}.
12707         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
12708         and CPP_STRING{16,32}.
12709
12710 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
12711
12712         PR bootstrap/35457
12713         * aclocal.m4: Regenerate.
12714         * configure: Regenerate.
12715
12716 2008-04-18  Jan Hubicka  <jh@suse.cz>
12717
12718         * except.c (dw2_size_of_call_site_table,
12719         sjlj_size_of_call_site_table): Use vector API for call_site_record.
12720
12721         * cgraphbuild.c (build_cgraph_edges): Update.
12722         * tree-pass.h: Update comment.
12723         * final.c (leaf_function_p): Update.
12724         (leaf_renumber_regs): Update.
12725         (rest_of_clean_state): Update.
12726         * omp-low.c (expand_omp_parallel): Update.
12727         * ipa-reference.c (analyze_function): Update.
12728         * reorg.c (find_end_label): Update.
12729         (optimize_skip): Update.
12730         (fill_simple_delay_slots): Update.
12731         (fill_simple_delay_slots): Update.
12732         (make_return_insns): Update.
12733         (dbr_schedule): Update.
12734         * gimple-low.c (record_vars_into): Update.
12735         * cfgbuild.c (make_edges): Update.
12736         * function.c (assign_stack_local): Update.
12737         (assign_parm_adjust_stack_rtl): Update.
12738         (locate_and_pad_parm): Update.
12739         (allocate_struct_function): Do not initialize stack_alignment_needed
12740         and preferred_stack_boundary here.
12741         (stack_protect_prologue): Update.
12742         (stack_protect_epilogue): Update.
12743         (expand_function_start): Initialize stack_alignment_needed,
12744         preferred_stack_boundary and max_jumptable_ents.
12745         (expand_function_end): Update.
12746         (free_after_compilation): Do not NULLify epilogue_delay_list.
12747         * function.h (struct rtl_data): Add stack_protect_guard,
12748         stack_alignment_needed,
12749         preferred_stack_boundary, epilogue_delay_list.
12750         (struct function): Remove value_histograms, stack_alignment_needed,
12751         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
12752         last_label_uid,
12753         unexpanded_var_list, stack_protect_guard.
12754         (current_function_epilogue_delay_list): Remove.
12755         * ipa-type-escape.c (analyze_function): Update.
12756         * gimplify.c (pop_gimplify_context): Update comment.
12757         * calls.c (expand_call): Update.
12758         (emit_library_call_value_1): Update.
12759         * except.c (set_nothrow_function_flags): Update.
12760         * cfgexpand.c (get_decl_align_unit): Update.
12761         (create_stack_guard): Update.
12762         (estimated_stack_frame_size): Update.
12763         (expand_used_vars): Update.
12764         (tree_expand_cfg): Free histogram earliers, init expansion variables.
12765         * explow.c (allocate_dynamic_stack_space): Update.
12766         * tree-ssa-live.c (remove_unused_locals): Update.
12767         * varasm.c (mark_constant_pool): Update.
12768         * tree-inline.c (remap_decls): Update.
12769         (initialize_cfun): Update.
12770         (declare_return_variable): Update.
12771         (inline_forbidden_p): Update.
12772         (expand_call_inline): Update.
12773         (declare_inline_vars): Update.
12774         (tree_function_versioning): Update.
12775         * tree-flow.h (value_histograms): New.
12776         (VALUE_HISTOGRAMS): New macro.
12777         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
12778         last_label_uid.
12779         * tree-cfg.c (set_bb_for_stmt): Update.
12780         (replace_by_duplicate_decl): Update.
12781         (move_block_to_fn): Update.
12782         (new_label_mapper): Update.
12783         (dump_function_to_file): Update.
12784         * ipa-struct-reorg.c (build_data_structure): Update.
12785         * cfgrtl.c (print_rtl_with_bb): Update.
12786         * reload1.c (reload): Update.
12787         (reload): Update.
12788         * config/i386/i386.c (setup_incoming_varargs_64,
12789         ix86_compute_frame_layout): Update.
12790         * config/arc/arc.c (arc_output_function_epilogue): Update.
12791
12792 2008-04-18  Marius Strobl <marius@FreeBSD.org>
12793
12794         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
12795         for FreeBSD as well.
12796         * gthr-posix95.h: Likewise.
12797
12798 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
12799
12800         PR rtl-optimization/35838
12801         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
12802         out the byte offset of the first subreg.
12803
12804 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
12805
12806         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
12807         to split_ti instead of three separate calls with single member arrays.
12808         (subti3 splitter): Ditto.
12809         (adddi3 splitter): Ditto with split_di.
12810         (subdi3 splitter): Ditto.
12811         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
12812         two separate calls with single member arrays.  Swap match_dup
12813         operands 1 and 2 to better fit into the array.
12814         (negdi2 splitter): Ditto with split_di.
12815         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
12816         two separate calls with single member arrays.  Swap match_dup operands
12817         6 and 7 to better fit into the array.
12818
12819 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
12820
12821         * config/i386/i386.c (sse_builtin_type): New.
12822         (bdesc_sse_args): Likewise.
12823         (bdesc_sse_3arg): Removed.
12824         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
12825         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
12826         IX86_BUILTIN_ROUNDPS.
12827         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
12828         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
12829         IX86_BUILTIN_ROUNDPS.
12830         (ix86_expand_sse_4_operands_builtin): Removed.
12831         (ix86_expand_sse_operands_builtin): New.
12832         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
12833         and CODE_FOR_sse4_1_roundps.
12834         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
12835         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
12836
12837 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
12838
12839         PR target/35907
12840         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
12841         regs before frame pop when needed.  If use_backchain_to_restore_sp
12842         then load backchain into a temp reg to restore vr and vrsave.  Add
12843         code to restore vr after frame pop if possible.
12844
12845 2008-04-17  Richard Guenther  <rguenther@suse.de>
12846
12847         * tree-vn.c (expressions_equal_p): Do not check type
12848         equality or compatibility before calling operand_equal_p.
12849         * fold-const.c (operand_equal_p): Check equivalence of
12850         integer constants before bailing out due to signedness or
12851         precision differences.
12852         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
12853         spurious differences in type qualification.  Ignore types
12854         for COMPONENT_REFs at all.
12855
12856 2008-04-17  Christian Bruel  <christian.bruel@st.com>
12857
12858         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
12859         msw_skip comparison.
12860
12861 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
12862
12863         PR c/35739
12864         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
12865         reg type.
12866
12867         PR tree-optimization/35899
12868         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
12869         rather than TREE_OPERAND.
12870
12871 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
12872
12873         PR target/35944
12874         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
12875         temporary registers.  Change operand predicate to general_operand.
12876         (remainderxf3): Ditto.
12877
12878 2008-04-16  Richard Guenther  <rguenther@suse.de>
12879
12880         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
12881         * tree-affine.c (aff_combination_expand): Look through some
12882         conversions.
12883
12884 2008-04-15  Doug Kwan  <dougkwan@google.com>
12885
12886         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
12887         for hex printing.
12888         * tree-pretty-print.c (dump_generic_node): Ditto.
12889         * final.c (output_addr_const): Ditto.
12890         * dwarf2out.c (output_cfi): Ditto.
12891         * c-pretty-print.c (pp_c_integer_constant): Ditto.
12892         * print-rtl.c (print_rtx): Ditto.
12893         * print-tree.c (print_node_brief, print_node): Ditto.
12894         * c-common.c (match_case_to_enum_1): Ditto.
12895         * sched-vis.c (print_value): Ditto.
12896         * config/i386/i386.c (print_operand): Cast to long unsigned int
12897         for hex printing.
12898
12899 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
12900         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
12901         MS Windows VirtualProtect function.
12902
12903 2008-04-15  Jan Hubicka  <jh@suse.cz>
12904
12905         * gengtype.c (write_root): Param_is argument is OK.
12906         * expr.c (expand_expr_real_1): Update call of get_exception_*.
12907         * function.h: Include varray.h
12908         (rtl_eh): New stucture based on except.c one.
12909         (call_site_record): New forward declaration and vector type.
12910         * calls.c (emit_call_1): Do not call
12911         note_current_region_may_contain_throw.
12912         * except.c (eh_status): Remove cur_region, try_region since they are
12913         unused.
12914         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
12915         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
12916         sjlj_fc, sjlj_exit_after to rth_eh in function.h.
12917         Remove call_site_data_used, call_site_data_size.
12918         Turn call_site_record into vector in function.h.
12919         (note_current_region_may_contain_throw): Remove.
12920         (get_exception_pointer, get_exception_filter): Do not take struct
12921         function argument; update.
12922         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
12923         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
12924         build_post_landing_pads, dw2_build_landing_pads,
12925         sjlj_assign_call_site_values, sjlj_mark_call_sites,
12926         sjlj_emit_function_enter, sjlj_emit_function_enter,
12927         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
12928         sjlj_build_landing_pads, finish_eh_generation,
12929         remove_exception_handler_label, remove_eh_handler,
12930         maybe_remove_eh_handler, add_reachable_handler,
12931         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
12932         add_action_record, collect_one_action_chain, add_call_site,
12933         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
12934         sjlj_output_call_site_table, output_function_exception_table,
12935         * except.h (note_current_region_may_contain_throw): Remove
12936         (get_exception_pointer, get_exception_filter): Do not take struct
12937         function argument.
12938         * Makefile.in (GTFILES): Put varargs before struct function.
12939
12940 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
12941
12942         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
12943         punt for STRING_CST.
12944         (get_constraint_for): Deal with STRING_CST here instead.
12945
12946 2008-04-15  Richard Guenther  <rguenther@suse.de>
12947
12948         * tree-ssa-propagate.c (substitute_and_fold): Substitute
12949         statements in a basic-block with a backward walk.  Do not
12950         substitute into dead statements but instead remove those.
12951
12952 2008-04-15  Richard Guenther  <rguenther@suse.de>
12953
12954         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
12955         to zero, thus disable creation of SFTs.
12956
12957 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
12958
12959         * tree-predcom.c (suitable_reference_p): Return false if the
12960         reference can throw.
12961
12962 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
12963
12964         PR c/35751
12965         * c-decl.c (finish_decl): If extern or static var has variable
12966         size, set TREE_TYPE (decl) to error_mark_node.
12967
12968 2008-04-15  Rafael Espindola  <espindola@google.com>
12969
12970         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
12971         variable arg1.
12972
12973 2008-04-15  Richard Guenther  <rguenther@suse.de>
12974
12975         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
12976         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
12977         (visit_reference_op_load): Do walk vuse-vdef chains on
12978         vn_reference_lookup.
12979         (visit_reference_op_store): But do not here.
12980         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
12981         vn_reference_lookup.
12982         (vn_lookup_with_vuses): But do so here.
12983
12984 2008-04-14  Ian Lance Taylor  <iant@google.com>
12985
12986         * fold-const.c (fold_overflow_warning): Remove assertion.
12987
12988 2008-04-15  Ben Elliston  <bje@au.ibm.com>
12989
12990         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
12991         temp1 local variables.
12992
12993 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
12994
12995         PR target/35661
12996         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
12997         ".text.unlikely" section as executable.
12998
12999 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
13000
13001         * config/ia64/ia64.c (rtx_needs_barrier): Handle
13002         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
13003         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
13004         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
13005         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
13006         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
13007         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
13008
13009 2008-04-14  Ian Lance Taylor  <iant@google.com>
13010
13011         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
13012         * fold-const.c (fold_comparison): If appropriate, test
13013         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
13014         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
13015         reassociating a pointer type.
13016         * doc/invoke.texi (Optimize Options): Document that
13017         -fstrict-overflow applies to pointer wraparound.
13018
13019 2008-04-13  Jan Hubicka  <jh@suse.cz>
13020
13021         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
13022
13023 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
13024
13025         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
13026         we are going to "save the world".
13027
13028 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
13029
13030         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
13031         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
13032         operand 0 constraint, not "=".
13033
13034 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
13035
13036         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
13037
13038 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
13039
13040         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
13041         of size of positions_needed * CHAR_BIT.
13042
13043 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
13044
13045         PR middle-end/35897
13046         * dse.c (store_info): Change positions_needed to unsigned
13047         HOST_WIDE_INT.
13048         (lowpart_bitmask): New.
13049         (record_store): Cast to unsigned HOST_WIDE_INT for
13050         positions_needed.  Assert width <= size of positions_needed *
13051         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
13052         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
13053         lowpart_bitmask to set mask.
13054
13055 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
13056
13057         * config/bfin/constraints.md: New file.
13058         * config/bfin/bfin.md: Include it.
13059         (adddi3): Use satisfies_constraint functions instead of the old macros.
13060         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
13061         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
13062         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
13063         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
13064         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
13065         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
13066         EXTRA_CONSTRAINT): Delete.
13067         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
13068         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
13069         of the old macros.
13070         * config/bfin/bfin.c: Include "tm-constrs.h".
13071         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
13072         Use satisfies_constraint functions instead of the old macros.
13073         * doc/md.texi (Blackfin Constraints): Update file name reference.
13074
13075 2008-04-11  Richard Guenther  <rguenther@suse.de>
13076
13077         PR tree-optimization/35869
13078         * tree-vrp.c (execute_vrp): Move switch statement update after
13079         jump threading.  Schedule another cfg cleanup run.
13080
13081 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
13082
13083         PR c/35744
13084         * attribs.c (decl_attributes): Return early on errorneous node.
13085
13086 2008-04-10  Oleg Ryjkov  <olegr@google.com>
13087
13088         * tree.h (struct tree_base): Added a new flag default_def_flag.
13089         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
13090
13091 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
13092
13093         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
13094
13095 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13096
13097         PR target/35768
13098         * pa.md: Define mode iterator P.  Define mode attribute dwc.
13099         (dcacheflush): Update pattern to use iterator P and attribute dwc.
13100         (icacheflush): Likewise.
13101         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
13102         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
13103
13104 2008-04-11  Ben Elliston  <bje@au.ibm.com>
13105
13106         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
13107
13108 2008-04-10  Rafael Espindola  <espindola@google.com>
13109
13110         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
13111         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
13112         (extract_range_from_expr): The same.
13113
13114 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
13115
13116         * config/mips/mips.md (GPR2): New mode iterator.
13117         (seq): Add comment.
13118         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
13119         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
13120         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
13121         Rewrite these to take two modes, the mode of comparison and the
13122         mode of the destination.
13123         * config/mips/mips.c (mips_expand_scc): Instead of having
13124         paradoxical subreg as destination, expand "narrowing" scc if mode
13125         of comparison is SI and target is requested in DI mode.
13126         (mips_emit_int_order_test): Update comment.  Make mode of
13127         comparison match CMP0 rather than TARGET.  When creating inverse
13128         target use mode of TARGET.
13129
13130 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
13131
13132         * gcov-dump.c (tag_summary): Only print summaries for the first
13133         GCOV_COUNTERS_SUMMABLE counters.
13134
13135 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
13136
13137         * config/i386/i386.md (absneg): New code iterator.
13138         (absnegprefix): New code attribute.
13139         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
13140         patterns using absneg code iterator.
13141         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
13142         using absneg code iterator.
13143         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
13144         *neg<mode>2 patterns using absneg code iterator.
13145         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
13146         *negextendsfdf2 patterns using absneg code iterator.
13147         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
13148         *negextendsfxf2 patterns using absneg code iterator.
13149         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
13150         *negextendsfdf2 patterns using absneg code iterator.
13151         * config/i386/sse.md (<code><mode>2): Macroize expander from
13152         abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
13153
13154 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
13155
13156         * config/s390/s390.h: Remove the remains of the recent search
13157         & replace action of current_function_outgoing_args_size.
13158
13159 2008-04-10  Ira Rosen  <irar@il.ibm.com>
13160
13161         PR tree-optimization/35821
13162         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
13163         NEW_STMT_LIST is not NULL.
13164
13165 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
13166
13167         PR libstdc++/35597
13168         * toplev.c (process_options): Remove -ffunction-sections debugging
13169         warning.
13170
13171 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
13172
13173         PR middle-end/PR28690
13174         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
13175         than gen_rtx_fmt_ee to perform more canonicalizations.
13176
13177 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13178
13179         PR driver/35665
13180         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
13181
13182 2008-04-09  Richard Guenther  <rguenther@suse.de>
13183
13184         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
13185         (dump_function_to_file): Dump function arguments with types.
13186
13187 2008-04-08  Richard Guenther  <rguenther@suse.de>
13188
13189         * fold-const.c (fold_widened_comparison): Do not allow
13190         sign-changes that change the result.
13191
13192 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
13193
13194         PR target/35839
13195         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
13196         kinds of indirect references.
13197
13198 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
13199
13200         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
13201         GNU Fortran language string.
13202
13203 2008-04-08  Rafael Espindola  <espindola@google.com>
13204
13205         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
13206         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
13207         * tree.h (tree_call_nonnegative_warnv_p): New.
13208
13209 2008-04-08  Jan Hubicka  <jh@suse.cz>
13210
13211         * function.c (free_after_compilation): Clear out regno_reg_rtx
13212         pointer.
13213
13214 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
13215
13216         Revert
13217         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
13218
13219         PR middle-end/PR28690
13220         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
13221         same precedence as REG_POINTER and MEM_POINTER operands.
13222
13223 2008-04-08  Richard Guenther  <rguenther@suse.de>
13224
13225         PR middle-end/35834
13226         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
13227         for adding index to base.
13228
13229 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
13230
13231         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
13232         (MINGW_ENABLE_EXECUTE_STACK): New.
13233         (IN_LIBGCC2): For libgcc include windows.h file for
13234         function declarations.
13235
13236 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
13237
13238         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
13239         and tem2 if tem1 is not a REG or MULT.
13240
13241 2008-04-08  Jan Hubicka  <jh@suse.cz>
13242
13243         * function.h (incomming_args): Break out of struct function.
13244         (function_subsections): Break out of struct function.
13245         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
13246         return_rtx and hard_reg_initial_vals from struct function.
13247         Kill inl_max_label_num.
13248         (current_function_pops_args, current_function_args_info,
13249         current_function_args_size, current_function_args_size,
13250         current_function_pretend_args_size,
13251         current_function_outgoing_args_size,
13252         current_function_internal_arg_pointer, current_function_return_rtx):
13253         Kill compatibility accestor macros.
13254         * builtins.c (expand_builtin_apply_args_1): Update.
13255         (expand_builtin_next_arg): Update.
13256         * df-scan.c (df_get_call_refs): Update.
13257         * dbxout.c (dbxout_function_end): Update.
13258         * dwarf2out.c (dwarf2out_switch_text_section): Update.
13259         (output_line_info): Update.
13260         (secname_for_decl): Update.
13261         (dwarf2out_var_location): Update.
13262         * function.c (free_after_compilation): Update.
13263         (assign_parm_find_stack_rtl): Update.
13264         (assign_parms): Update.
13265         (expand_dummy_function_end): Update.
13266         (expand_function_end): Update.
13267         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
13268         (expand_call): Update.
13269         (emit_library_call_value_1): Update.
13270         (store_one_arg): Update.
13271         * varasm.c (initialize_cold_section_name): Update.
13272         (unlikely_text_section): Update.
13273         (unlikely_text_section_p): Update.
13274         (assemble_start_function): Update.
13275         (assemble_end_function): Update.
13276         (default_section_type_flags): Update.
13277         (switch_to_section): Update.
13278         * integrate.c (set_decl_abstract_flags): Update.
13279         (get_hard_reg_initial_val): Update.
13280         (has_hard_reg_initial_val): Update.
13281         (allocate_initial_values): Update.
13282         * resource.c (init_resource_info): Update.
13283         * config/alpha/alpha.c (NUM_ARGS): Update.
13284         (direct_return): Update.
13285         (alpha_va_start): Update.
13286         (alpha_sa_size): Update.
13287         (alpha_initial_elimination_offset): Update.
13288         (alpha_expand_prologue): Update.
13289         (alpha_start_function): Update.
13290         (alpha_expand_epilogue): Update.
13291         (unicosmk_initial_elimination_offset):
13292         * config/alpha/alpha.md (call expander): Update.
13293         * config/s390/s390.c (s390_register_info): Update.
13294         (s390_register_info): Update.
13295         (s390_frame_info): Update.
13296         (s390_initial_elimination_offset): Update.
13297         (s390_build_builtin_va_list): Update.
13298         (s390_va_start): Update.
13299         * config/spu/spu.c (direct_return): Update.
13300         (spu_expand_prologue): Update.
13301         (spu_initial_elimination_offset): Update.
13302         (spu_build_builtin_va_list): Update.
13303         (spu_va_start): Update.
13304         * config/sparc/sparc.c (sparc_init_modes): Update.
13305         (sparc_compute_frame_size): Update.
13306         (function_value): Update.
13307         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
13308         * config/i386/i386.md (return expander): Update.
13309         * config/i386/i386.c (ix86_va_start): Update.
13310         (ix86_can_use_return_insn_p): Update.
13311         (ix86_compute_frame_layout): Update.
13312         (ix86_expand_epilogue): Update.
13313         * config/sh/sh.c (output_stack_adjust): Update.
13314         (calc_live_regs): Update.
13315         (sh_expand_prologue): Update.
13316         (sh_builtin_saveregs): Update.
13317         (sh_va_start): Update.
13318         (initial_elimination_offset): Update.
13319         (sh_allocate_initial_value): Update.
13320         (sh_function_ok_for_sibcall): Update.
13321         (sh_get_pr_initial_val): Update.
13322         * config/sh/sh.md (return expander): Update.
13323         * config/avr/avr.c (frame_pointer_required_p): UPdate.
13324         * config/crx/crx.c (crx_compute_frame): UPdate.
13325         (crx_initial_elimination_offset): UPdate.
13326         * config/xtensa/xtensa.c (compute_frame_size): Update
13327         (xtensa_builtin_saveregs): Update.
13328         (xtensa_va_start): Update.
13329         (order_regs_for_local_alloc): Update.
13330         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
13331         (xstormy16_expand_builtin_va_start): Update.
13332         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
13333         * config/m68hc11/m68hc11.md (return expanders): Update.
13334         * config/m68hc11/m68hc11.c (expand_prologue): Update.
13335         (expand_epilogue): Update.
13336         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
13337         (cris_simple_epilogue): Update.
13338         (cris_expand_prologue): Update.
13339         (cris_expand_epilogue): Update.
13340         * config/iq2000/iq2000.c (iq2000_va_start): Update.
13341         (compute_frame_size): Update.
13342         * config/mt/mt.c (mt_compute_frame_size): Update.
13343         * config/mn10300/mn10300.c (expand_prologue): Update.
13344         (expand_epilogue): Update.
13345         (initial_offset): Update.
13346         (mn10300_builtin_saveregs):
13347         * config/mn10300/mn10300.md (return expander): Update.
13348         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
13349         (ia64_initial_elimination_offset): Update.
13350         (ia64_initial_elimination_offset): Update.
13351         (ia64_expand_prologue): Update.
13352         * config/m68k/m68k.md (return expander): Update.
13353         * config/rs6000/rs6000.c (rs6000_va_start): Update.
13354         (rs6000_stack_info): Update.
13355         * config/mcore/mcore.c (layout_mcore_frame): Update.
13356         (mcore_expand_prolog): Update.
13357         * config/arc/arc.c (arc_compute_frame_size): Update.
13358         * config/score/score3.c (score3_compute_frame_size): Update.
13359         * config/score/score7.c (score7_compute_frame_size): Update.
13360         * config/arm/arm.c (use_return_insn): Update.
13361         (thumb_find_work_register): Update.
13362         (arm_compute_save_reg_mask): Update.
13363         (arm_output_function_prologue): Update.
13364         (arm_output_epilogue): Update.
13365         (arm_size_return_regs): Update.
13366         (arm_get_frame_offsets): Update.
13367         (arm_expand_prologue): Update.
13368         (thumb_exit): Update.
13369         (thumb_unexpanded_epilogue): Update.
13370         (thumb1_output_function_prologue): Update.
13371         * config/pa/pa.md (return expander): Update.
13372         * config/pa/pa.c (compute_frame_size): Update.
13373         (hppa_builtin_saveregs): Update.
13374         * config/mips/mips.c (mips_va_start): Update.
13375         (mips16_build_function_stub): Update.
13376         (mips_compute_frame_info): Update.
13377         (mips_restore_gp): Update.
13378         (mips_output_function_prologue): Update.
13379         (mips_expand_prologue): Update.
13380         * config/v850/v850.c (compute_frame_size): Update.
13381         (expand_prologue): * config/mmix/mmix.c (along): update.
13382         (mmix_initial_elimination_offset): update.
13383         (mmix_reorg): update.
13384         (mmix_use_simple_return): update.
13385         (mmix_expand_prologue): update.
13386         (mmix_expand_epilogue): Update.
13387         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
13388         (emit_link_insn): Update.
13389
13390 2008-04-08  Anatoly Sokolov <aesok@post.ru>
13391
13392         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
13393         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
13394         instructions.
13395         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
13396         atmega103 device.
13397
13398 2008-04-07  Jan Hubicka  <jh@suse.cz>
13399
13400         * function.h (rtl): Rename to x_rtl.
13401         (crtl): New define.
13402         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
13403         frame_offset, stack_check_probe_note, arg_pointer_save_area,
13404         used_temp_slots avail_temp_slots, temp_slot_level,
13405         nonlocal_goto_handler_labels): Update accesstors.
13406         (rtl): New global variable.
13407         (struct function): Move some fileds to rtl_data.
13408         (get_arg_pointer_save_area): Update prototype.
13409         * builtins.c (expand_builtin_setjmp_receiver): Update call of
13410         get_arg_pointer_save_area.
13411         * expr.c (init_expr): Update
13412         * function.c (get_frame_size): Update
13413         (assign_stack_local): Update
13414         (expand_function_end): Update.
13415         (get_art_pointer_save_area): Update
13416         * function.h
13417         * emit-rtl.c (rtl): Declare.
13418         (regno_reg_rtx): Declare.
13419         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
13420         Update.
13421         (gen_reg_rtx): Update.
13422         * varasm.c (n_deferred_constatns): Update accestor.
13423         (init_varasm_status): Do not allocate varasm_status.
13424         (force_const_mem, get_pool_size, output_constant_pool): Update.
13425         * stmt.c (force_label_rtx): Do not use x_ prefixes.
13426         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
13427         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
13428         * sparc/sparc.h (INIT_EXPANDERS): Update.
13429         * ia64/ia64.h (INIT_EXPANDERS): Update.
13430
13431 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
13432
13433         * reload.c (push_secondary_reload): Add missing break to for loop.
13434
13435 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
13436
13437         PR middle-end/PR28690
13438         * rtlanal.c: Update copyright years.
13439         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
13440         as REG_POINTER and MEM_POINTER operands.
13441         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
13442         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
13443         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
13444         * gcse.c: Update copyright years.
13445         (pre_delete): Call gen_reg_rtx_and_attrs.
13446         (hoist_code): Likewise.
13447         (build_store_vectors): Likewise.
13448         (delete_store): Likewise.
13449         * loop-invariant.c (move_invariant_reg): Likewise.
13450         Update copyright years.
13451
13452 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
13453
13454         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
13455         control string instead of quoted.
13456
13457 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
13458
13459         * doc/rtl.texi: Rewrite of subreg section.
13460
13461 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
13462
13463         PR/35842
13464         * config/i386/i386.c (legitimize_pic_address): Add treating
13465         of dllimport SYM_REF's.
13466         (legitimize_dllimport_symbol): Add prototype.
13467
13468 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
13469
13470         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
13471         reference in constructor with non self-referential type.
13472
13473 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
13474
13475         Removal of Return with Depressed Stack Pointer support
13476         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
13477         (ECF_SP_DEPRESSED): Likewise.
13478         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
13479         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
13480         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
13481         (expand_call): Do not test ECF_SP_DEPRESSED.
13482         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
13483         * function.c (keep_stack_depressed): Delete.
13484         (handle_epilogue_set): Likewise.
13485         (update_epilogue_consts): Likewise.
13486         (emit_equiv_load): Likewise.
13487         (thread_prologue_and_epilogue_insns): Remove support for Return with
13488         Depressed Stack Pointer.
13489         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
13490
13491 2008-04-06  Richard Guenther  <rguenther@suse.de>
13492
13493         PR tree-optimization/35400
13494         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
13495         information from SSA_NAMEs.
13496
13497 2008-04-06  Anatoly Sokolov <aesok@post.ru>
13498
13499         * config/avr/avr.h (avr_mega_p): Remove declaration.
13500         (AVR_MEGA): Remove macro.
13501         * config/avr/avr.c (avr_mega_p): Remove variable.
13502         (avr_override_options): Remove inicializion of avr_mega_p.
13503         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
13504         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
13505         (avr_jump_mode): (Ditto.).
13506         (avr_output_progmem_section_asm_op): (Ditto.).
13507         (avr_asm_init_sections): (Ditto.).
13508         (avr_asm_init_sections): (Ditto.).
13509         (avr_rtx_costs): (Ditto.).
13510         * config/avr/avr.md: (Ditto.).
13511         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
13512         '__AVR_MEGA__'.
13513
13514 2008-04-06  Richard Guenther  <rguenther@suse.de>
13515
13516         PR tree-optimization/35842
13517         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
13518         is_gimple_invariant_address.
13519
13520 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13521
13522         * gcc.c (default_compilers): Sync Fortran extensions list with
13523         that in fortran/lang-specs.h.
13524         * doc/invoke.texi: Likewise.
13525         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
13526         * dwarf2out.c (gen_compile_unit_die): Likewise.
13527
13528 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
13529
13530         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
13531
13532 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
13533
13534         PR target/12329
13535         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
13536         attribute is used for nested functions.
13537
13538 2008-04-05  Jan Hubicka  <jh@suse.cz>
13539
13540         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
13541
13542         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
13543         letter argument.
13544         (dump_files): Update.
13545         (enable_rtl_dump_file): Do not accept letter argument.
13546         * tree-pass.h (dump_file_info): Remove letter argument.
13547         * toplev.c (decode_d_option): Update -da handling.
13548         * toplev.h (enable_rtl_dump_file): Update prototype.
13549         * passes.c (register_one_dump_file): Do not accept IPA argument; work
13550         it out based on pass type.
13551         (register_dump_files_1): Likewise.
13552         (init_optimization_passes): Update register_one_dump_file calls.
13553         (execute_one_pass): Sanity check that IPA passes are called at IPA
13554         level and RTL passes at RTL level.
13555         (execute_pass_list): IPA pass can not be after or subpass of
13556         GIMPLE/RTL pass.
13557         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
13558         disallov RTL subpasses of IPA subpasses.
13559
13560 2008-04-05  Ben Elliston  <bje@au.ibm.com>
13561
13562         * tree-cfg.c (need_fake_edge_p): Return false for calls to
13563         builtins that return exactly once and do not throw. Cache call to
13564         call_expr_flags.
13565
13566 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
13567
13568         PR rtl-optimization/34916
13569         PR middle-end/35519
13570         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
13571         between instruction pairs.
13572
13573 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
13574
13575         * doc/invoke.texi: Document -mbitops for SH.
13576         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
13577         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
13578         * config/sh/sh.c (print_operand): Add %t operand code.
13579         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
13580         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
13581         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
13582         (extendqihi2): Likewise.
13583         (movqi_i): Likewise.
13584         (insv): Use bset, bclr and bst instructions for SH2A if possible.
13585         (extv): Use bld instruction for SH2A if possible.
13586         (extzv): Likewise.
13587         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
13588         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
13589         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
13590         (bset.b, bclr.b): Define peepholes.
13591         * config/sh/sh.opt (mbitops): New option.
13592
13593 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
13594
13595         PR target/35620
13596         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
13597         and view convert expression.
13598
13599 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
13600
13601         PR target/35364
13602         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
13603
13604 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
13605
13606         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
13607
13608         * config/i386/cpuid.h (bit_AES): New.
13609         (bit_PCLMUL): Likewise.
13610
13611         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
13612         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
13613         SSE2 if AES or PCLMUL is enabled.
13614         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
13615         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
13616         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
13617         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
13618         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
13619         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
13620         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
13621         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
13622         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
13623         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
13624         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
13625         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
13626         __builtin_ia32_aeskeygenassist128 and
13627         __builtin_ia32_pclmulqdq128.
13628         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
13629         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
13630         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
13631
13632         * config/i386/i386.h (TARGET_AES): New.
13633         (TARGET_PCLMUL): Likewise.
13634         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
13635
13636         * config/i386/i386.md (UNSPEC_AESENC): New.
13637         (UNSPEC_AESENCLAST): Likewise.
13638         (UNSPEC_AESDEC): Likewise.
13639         (UNSPEC_AESDECLAST): Likewise.
13640         (UNSPEC_AESIMC): Likewise.
13641         (UNSPEC_AESKEYGENASSIST): Likewise.
13642         (UNSPEC_PCLMUL): Likewise.
13643
13644         * config/i386/i386.opt (maes): New.
13645         (mpclmul): Likewise.
13646
13647         * config/i386/sse.md (aesenc): New pattern.
13648         (aesenclast): Likewise.
13649         (aesdec): Likewise.
13650         (aesdeclast): Likewise.
13651         (aesimc): Likewise.
13652         (aeskeygenassist): Likewise.
13653         (pclmulqdq): Likewise.
13654
13655         * config/i386/wmmintrin.h: New.
13656
13657         * doc/extend.texi: Document AES and PCLMUL built-in function.
13658
13659         * doc/invoke.texi: Document -maes and -mpclmul.
13660
13661 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
13662
13663         * function.c (free_after_parsing): Replace with
13664         cxx_push_function_context from C++ front-end.
13665         (allocate_struct_function): Don't call langhook.
13666         * langhooks.h (struct lang_hooks_for_functions): Delete.
13667         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
13668         member "function".
13669         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
13670         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
13671         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
13672         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
13673         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
13674         remove LANG_HOOKS_FUNCTION_INITIALIZER.
13675         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
13676
13677         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
13678         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
13679
13680 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
13681
13682         PR c/35440
13683         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
13684         for all types.
13685
13686 2008-04-04  Richard Guenther  <rguenther@suse.de>
13687
13688         PR middle-end/35823
13689         * fold-const.c (optimize_minmax_comparison): Use the correct
13690         type for the constant in the simplified comparison.
13691
13692 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
13693
13694         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
13695         Pass L2 size as "--param l2-cache-size" to the compiler.
13696         (decode_l2_cache): New function to decode L2 cache parameters using
13697         0x8000006 extended cpuid function.
13698         (detect_caches_amd): Determine parameters of L2 cache using
13699         decode_l2_caches function.
13700         (decode_caches_intel): Decode L2 cache parameters.
13701         (detect_caches_intel): Determine L2 cache parameters using
13702         decode_caches_intel and decode_l2_caches functions.
13703
13704 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
13705
13706         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
13707         secondary input reload for subword loads from the constant pool.
13708
13709 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
13710
13711         PR target/35713
13712         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
13713           constants of the appropriate size for runtime calculations.
13714
13715         PR c/35712
13716         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
13717           decimal-float literal constant zero.
13718
13719 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
13720
13721         PR c/35738
13722         * c-parser.c (c_parser_omp_atomic): Call
13723         default_function_array_conversion on the RHS.
13724
13725         PR middle-end/35818
13726         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
13727         call is_variable_sized if decl has incomplete type.
13728
13729 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
13730
13731         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
13732
13733 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
13734
13735         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
13736         iterators.
13737         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
13738         (sgt<u>): Merge sgt and sgtu into new expander.
13739         (sgt, sgtu): Remove expanders.
13740         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
13741         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
13742         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
13743         *sgtu_<mode>_mips16 into new pattern.
13744         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
13745         (sge<u>): Merge sge and sgeu into new expander.
13746         (sge, sgeu): Remove expanders.
13747         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
13748         new pattern.
13749         (*sge_<mode>, second *sge_<mode>): Remove patterns.
13750         (slt<u>): Merge slt and sltu into new expander.
13751         (slt, sltu): Remove expanders.
13752         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
13753         (*slt_<mode>, *sltu_<mode>): Remove patterns.
13754         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
13755         *sltu_<mode>_mips16 into new pattern.
13756         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
13757         (sle<u>): Merge sle and sleu into new expander.
13758         (sle, sleu): Remove expanders.
13759         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
13760         (*sle_<mode>, *sleu_<mode>): Remove patterns.
13761         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
13762         *sleu_<mode>_mips16 into new pattern.
13763         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
13764
13765 2008-04-03  Jan Hubicka  <jh@suse.cz>
13766
13767         PR tree-optimization/35795
13768         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
13769         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
13770         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
13771         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
13772         * score/score3.c (score3_output_mi_thunk): Likewise.
13773         * score/score7.c (score7_output_mi_thunk): Likewise.
13774         * mips/mips.c (mips_output_mi_thunk): Likewise.
13775
13776 2008-04-03  Richard Guenther  <rguenther@suse.de>
13777
13778         * tree-vrp.c (extract_range_from_unary_expr): Handle all
13779         conversions.  Simplify code.
13780
13781 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
13782
13783         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
13784
13785 2008-04-03  Tom Tromey  <tromey@redhat.com>
13786             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13787
13788         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
13789         * config/bfin/t-bfin-linux (generated_files): Add
13790         linux-sysroot-suffix.h.
13791         * doc/install.texi (Prerequisites): Require make 3.80.
13792         * doc/sourcebuild.texi (Front End Directory): Document new
13793         variable.
13794         * Makefile.in (generated_files): New variable.
13795         (ALL_HOST_OBJS): New variable.
13796         ($(ALL_HOST_OBJS)): New target.
13797
13798 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
13799
13800         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
13801         (remap_block): Call id->transform_lang_insert_block instead
13802         of langhook.
13803         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
13804         Set id.transform_lang_insert_block to NULL.
13805         (clone_body): Move to cp/optimize.c
13806         * tree-inline.h (struct copy_body_data): Change
13807         transform_lang_insert_block to function pointer.
13808         (copy_generic_body, copy_decl_no_change): Export.
13809         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
13810         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
13811         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
13812
13813         * c-tree.h (insert_block): Kill.
13814         * c-decl.c (insert_block): Kill.
13815
13816 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
13817
13818         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
13819         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
13820         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
13821         argument.
13822         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
13823         argument, call {push,pop}_function_context from here.
13824         * c-parser.c: Use c_{push,pop}_function_context.
13825
13826         * function.c (push_function_context_to): Move meat ...
13827         (push_function_context): ... here.  Simplify.
13828         * function.c (pop_function_context_from): Move meat ...
13829         (pop_function_context): ... here.  Simplify.
13830         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
13831         leave_nested).
13832         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
13833         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
13834         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
13835         * tree.h (push_function_context_to, pop_function_context_from): Remove.
13836
13837 2008-04-03  Ben Elliston  <bje@au.ibm.com>
13838
13839         * expmed.c (extract_force_align_mem_bit_field): Remove.
13840
13841 2008-04-03  Richard Guenther  <rguenther@suse.de>
13842
13843         PR middle-end/35800
13844         * expr.h (try_casesi): Adjust prototype.
13845         * expr.c (try_casesi): Take fallback label as extra parameter.
13846         Use that for gen_casesi if default_label is NULL.
13847         * stmt.c (expand_case): Pass fallback label to try_casesi,
13848         make sure to fill gaps with a fallback label if default_label
13849         is not present.
13850
13851 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
13852
13853         PR target/35801
13854         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
13855
13856 2008-04-03  Ben Elliston  <bje@au.ibm.com>
13857
13858         * expmed.c (extract_split_bit_field): Remove if (0) code.
13859         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
13860         (do_ds_constraint): Likewise.
13861
13862 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
13863
13864         * doc/cppopts.texi (-dU): Document.
13865         * c-common.h (flag_dump_macros): Update comment.
13866         * c-opts.c (handle_OPT_d): Handle -dU.
13867         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
13868         dump_queued_macros, cb_used_define, cb_used_undef): New.
13869         (init_pp_output): Handle -dU.
13870         (cb_line_change): Call dump_queued_macros.
13871         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
13872
13873 2008-04-02  Anatoly Sokolov <aesok@post.ru>
13874
13875         * config/avr/predicates.md (io_address_operand): New predicate.
13876         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
13877         * config/avr/avr.c (avr_io_address_p): Remove function.
13878         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
13879         'avr_io_address_p' function.
13880         (out_movhi_r_mr): (Ditto.).
13881         (out_movqi_mr_r): (Ditto.).
13882         (out_movhi_mr_r): (Ditto.).
13883         (avr_address_cost): (Ditto.).
13884
13885 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
13886
13887         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
13888         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
13889         in 32bit mode when XMM registers are available to avoid store
13890         forwarding stalls.
13891         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
13892         corresponding post-reload splitters.
13893
13894 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
13895
13896         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
13897         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
13898         __builtin_ia32_roundss.
13899         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
13900         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
13901         __builtin_ia32_roundss.
13902         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
13903         IX86_BUILTIN_SHUFPD here.
13904
13905 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
13906
13907         * config/i386/i386.md (plogic): New.
13908         (plogicprefix): Likewise.
13909
13910         * config/i386/mmx.md (mmx_<code><mode>3): New.
13911         (mmx_and<mode>3): Removed.
13912         (mmx_ior<mode>3): Likewise.
13913         (mmx_xor<mode>3): Likewise.
13914
13915         * config/i386/sse.md (<code><mode>3): New.
13916         (*<code><mode>3): Likewise.
13917         (*<code><mode>3): Likewise.
13918         (<code><mode>3): Likewise.
13919         (*sse_<code><mode>3): Likewise.
13920         (*sse2_<code><mode>3): Likewise.
13921         (<code>tf3): Likewise.
13922         (*<code>tf3): Likewise.
13923         (and<mode>3): Likewise.
13924         (*and<mode>3): Likewise.
13925         (ior<mode>3): Removed.
13926         (*ior<mode>3): Likewise.
13927         (xor<mode>3): Likewise.
13928         (*xor<mode>3): Likewise.
13929         (*and<mode>3): Likewise.
13930         (*ior<mode>3): Likewise.
13931         (*xor<mode>3): Likewise.
13932         (and<mode>3): Likewise.
13933         (*sse_and<mode>3): Likewise.
13934         (*sse2_and<mode>3): Likewise.
13935         (andtf3): Likewise.
13936         (*andtf3): Likewise.
13937         (ior<mode>3): Likewise.
13938         (*sse_ior<mode>3): Likewise.
13939         (*sse2_ior<mode>3): Likewise.
13940         (iortf3): Likewise.
13941         (*iortf3): Likewise.
13942         (xor<mode>3): Likewise.
13943         (*sse_xor<mode>3): Likewise.
13944         (*sse2_xor<mode>3): Likewise.
13945         (xortf3): Likewise.
13946         (*xortf3): Likewise.
13947
13948 2008-04-02  Richard Guenther  <rguenther@suse.de>
13949
13950         PR tree-optimization/14495
13951         PR tree-optimization/34793
13952         * tree-vrp.c (struct switch_update): New structure.
13953         (to_remove_edges, to_update_switch_stmts): New VECs.
13954         (simplify_switch_using_ranges): New function.  Remove not taken
13955         case labels and edges.
13956         (simplify_stmt_using_ranges): Call it.
13957         (identify_jump_threads): Mark edges we have queued for removal
13958         so we don't thread them.
13959         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
13960         case label vector.
13961         * tree-cfg.c (group_case_labels): Deal with missing default label.
13962         (tree_verify_flow_info): Allow missing default label.
13963         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
13964         (emit_case_nodes): Likewise.
13965         (expand_case): Do not rely on the default label to be present.
13966         * expr.c (try_casesi): Deal with NULL default_label.
13967         (do_tablejump): Likewise.
13968
13969 2008-04-02  Richard Guenther  <rguenther@suse.de>
13970
13971         PR tree-optimization/14495
13972         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
13973         SWITCH_EXPR here ...
13974         (vrp_visit_switch_stmt): ... but here (new function).
13975         (find_case_label_index): New helper function.
13976         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
13977
13978 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
13979
13980         * fwprop.c: Fix ISO-C99ism.
13981
13982 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
13983
13984         PR bootstrap/35752
13985         * Makefile.in (objdir): Set it here.
13986         * configure.ac: Not here.  Find dynamic linker characteristics.
13987         * exec-tool.in: Use them.
13988         * aclocal.m4: Regenerate.
13989         * configure: Regenerate.
13990
13991 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
13992
13993         * expr.c (expand_var): Delete it.
13994         * expr.h (expand_var): Delete prototype.
13995         * function.c (expand_function_start): Use expand_decl instead.
13996         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
13997         langhook.
13998
13999 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
14000
14001         PR rtl-optimization/35542
14002         * fwprop.c (forward_propagate_and_simplify): Replace
14003         loc_reg_mentioned_in_p with reg_mentioned_p.
14004
14005 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
14006
14007         PR rtl-optimization/35281
14008         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
14009         (propagate_rtx_1): Handle PR_HANDLE_MEM.
14010         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
14011         (varying_mem_p): Move above propagate_rtx.
14012         (all_uses_available_at): Do not check MEMs.
14013
14014 2008-04-02  Rafael Espindola  <espindola@google.com>
14015
14016         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
14017         (register_edge_assert_for_2): Split the cond argument.
14018         (register_edge_assert_for_1): Adjust for the change in
14019         register_edge_assert_for_2.
14020         (register_edge_assert_for): Split the cond argument.
14021         (find_switch_asserts): Adjust for the change in
14022         register_edge_assert_for.
14023
14024 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
14025
14026         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
14027         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
14028         offsets for 64-bit mingw.
14029         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
14030         abi for x86_64-pc-mingw.
14031
14032 2008-04-02  Richard Guenther  <rguenther@suse.de>
14033
14034         * tree-vrp.c (extract_range_from_assert): Make sure to not
14035         produce range min/max with TREE_OVERFOW set.
14036         If merging a anti-range and a range keep the anti-range if
14037         the range covers all values of the type.
14038         (register_edge_assert_for_2): Only allow sign-changing
14039         conversions in detecting canonical range checks.  Also
14040         register an assert for the unsigned name if useful.
14041
14042         PR tree-optimization/35787
14043         * tree-vrp.c (vrp_val_max): New function.
14044         (vrp_val_min): Likewise.
14045         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
14046         (vrp_val_is_min): Likewise.
14047         (supports_overflow_infinity): Use vrp_val_{min,max}.
14048         (negative_overflow_infinity): Likewise.
14049         (positive_overflow_infinity): Likewise.
14050         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
14051         (is_positive_overflow_infinity): Likewise.
14052         (is_overflow_infinity): Likewise.
14053         (avoid_overflow_infinity): Use vrp_val_{min,max} and
14054         vrp_val_is_{min,max}.
14055         (set_and_canonicalize_value_range): Canonicalize anti-ranges
14056         to ranges if possible.  Avoid empty ranges.
14057
14058 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14059
14060         PR middle-end/35705
14061         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
14062         the expression is a function address.
14063
14064 2008-04-01  George Helffrich  <george@gcc.gnu.org>
14065
14066         PR fortran/35154, fortran/23057
14067         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
14068         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
14069         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
14070         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
14071         in common.
14072         (dbxout_syms): Check for COMMON-based symbol and wrap in
14073         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
14074         in bracket for efficiency.
14075
14076         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
14077         using DW_TAG_common_block + member offset.
14078         (add_pubname_string): New function.
14079         (dw_expand_expr): New function to find block name and offset for
14080         COMMON var.
14081         (common_check): New function to check whether symbol in Fortran COMMON.
14082         (gen_variable_die): If COMMON, use DW_TAG_common_block.
14083
14084 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
14085
14086         PR c/35436
14087         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
14088
14089 2008-04-02  Ben Elliston  <bje@au.ibm.com>
14090
14091         * config/v850/v850.md (casesi): Remove if (0) code.
14092         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
14093         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
14094
14095 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
14096
14097         * config/i386/i386.md (rex64suffix): New mode attribute.
14098         (floathi<mode>2): Disable expander for SSE math.
14099         (*floathi<mode>2_1): New insn insn_and_split pattern.
14100         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
14101         corresponding post-reload splitters.
14102         (*floathi<mode>2_i387): New macroized insn pattern.
14103         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
14104         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
14105         insn_and_split pattern.
14106         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
14107         New macroized instruction patterns and corresponding post-reload
14108         splitters.
14109         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
14110         and corresponding post-reload splitters.
14111         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
14112         New macroized instruction patterns.
14113         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
14114         macroized instruction patterns and corresponding post-reload splitters.
14115         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
14116         corresponding post-reload splitters.
14117         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
14118         New macroized instruction patterns.
14119         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
14120         corresponding post-reload splitters.
14121         (*floatsi<mode>2_i387): New macroized instruction patterns.
14122
14123 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
14124
14125         * config/i386/i386.md (smaxmin): New.
14126         (umaxmin): Likewise.
14127         (maxminiprefix): Likewise.
14128         (maxminfprefix): Likewise.
14129         (<code><mode>3): Likewise.
14130         (smin<mode>3): Removed.
14131         (smax<mode>3): Likewise.
14132
14133         * config/i386/mmx.md (mmx_<code>v2sf3): New.
14134         (mmx_<code>v4hi3): Likewise.
14135         (mmx_<code>v8qi3): Likewise.
14136         (mmx_smaxv2sf3): Removed.
14137         (mmx_sminv2sf3): Likewise.
14138         (mmx_umaxv8qi3): Likewise.
14139         (mmx_smaxv4hi3): Likewise.
14140         (mmx_uminv8qi3): Likewise.
14141         (mmx_sminv4hi3): Likewise.
14142
14143         * config/i386/sse.md (<addsub><mode>3): New.
14144         (*<addsub><mode>3): Likewise.
14145         (<sse>_vm<addsub><mode>3): Likewise.
14146         (<maxmin><mode>3): Likewise.
14147         (*<maxmin><mode>3_finite): Likewise.
14148         (*<maxmin><mode>3): Likewise.
14149         (<sse>_vm<maxmin><mode>3): Likewise.
14150         (sse3_h<addsub>v4sf3): Likewise.
14151         (sse3_h<addsub>v2df3): Likewise.
14152         (<maxmin>v16qi3): Likewise.
14153         (*<maxmin>v16qi3): Likewise.
14154         (<maxmin>v8hi3): Likewise.
14155         (*<maxmin>v8hi3): Likewise.
14156         (*sse4_1_<maxmin><mode>3): Likewise.
14157         (*sse4_1_<maxmin><mode>3): Likewise.
14158         (add<mode>3): Removed.
14159         (*add<mode>3): Likewise.
14160         (<sse>_vmadd<mode>3): Likewise.
14161         (sub<mode>3): Likewise.
14162         (*sub<mode>3): Likewise.
14163         (<sse>_vmsub<mode>3): Likewise.
14164         (smin<mode>3): Likewise.
14165         (*smin<mode>3_finite): Likewise.
14166         (*smin<mode>3): Likewise.
14167         (<sse>_vmsmin<mode>3): Likewise.
14168         (smax<mode>3): Likewise.
14169         (*smax<mode>3_finite): Likewise.
14170         (*smax<mode>3): Likewise.
14171         (<sse>_vmsmax<mode>3): Likewise.
14172         (sse3_haddv4sf3): Likewise.
14173         (sse3_haddv2df3): Likewise.
14174         (sse3_hsubv4sf3): Likewise.
14175         (sse3_hsubv2df3): Likewise.
14176         (umaxv16qi3): Likewise.
14177         (*umaxv16qi3): Likewise.
14178         (smaxv8hi3): Likewise.
14179         (*smaxv8hi3): Likewise.
14180         (*sse4_1_smax<mode>3): Likewise.
14181         (*sse4_1_umax<mode>3): Likewise.
14182         (uminv16qi3): Likewise.
14183         (*uminv16qi3): Likewise.
14184         (sminv8hi3): Likewise.
14185         (*sminv8hi3): Likewise.
14186         (*sse4_1_smin<mode>3): Likewise.
14187         (*sse4_1_umin<mode>3): Likewise.
14188
14189 2008-04-01  Rafael Espindola  <espindola@google.com>
14190
14191         * tree-cfg.c (verify_expr): remove in_phi.
14192         (verify_stmt): Don't call walk_tree with verify_expr. Use
14193         is_gimple_min_invariant instead of is_gimple_val.
14194
14195 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
14196
14197         * doc/include/gpl_v3.texi: Update for manpage generation.
14198         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
14199         gpl.texi.
14200         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
14201         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
14202         gpl_v3.texi instead of gpl.texi.
14203         (gpl.pod): New.
14204
14205 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
14206
14207         PR pch/13675
14208         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
14209
14210 2008-04-01  Rafael Espindola  <espindola@google.com>
14211
14212         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
14213         (extract_code_and_val_from_cond): Use
14214         extract_code_and_val_from_cond_with_ops.
14215
14216 2008-04-01  Jan Hubicka  <jh@suse.cz>
14217
14218         * function.c (free_after_compilation): Free epilogue_delay_list.
14219         (prepare_function_start): Assert that previous compilation was freed.
14220
14221 2008-04-01  Jan Hubicka  <jh@suse.cz>
14222             Jim Wilson  <wilson@tuliptree.org>
14223             Andreas Tobler <andreast@gcc.gnu.org>
14224
14225         PR middle-end/35781
14226         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
14227         rtl.emit instead cfun->emit.
14228         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
14229         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
14230
14231 2008-04-01  Ben Elliston  <bje@au.ibm.com>
14232
14233         * doc/c-tree.texi (Function Basics): Fix grammatical error.
14234
14235 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
14236
14237         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
14238         New options
14239         (fprofile-use): Add var flag_profile_use
14240         * coverage.c (coverage_begin_output): Do not open a gcno file for
14241         output only if -ftest-coverage is set.
14242         Do not add getpwd() to gcda file path.
14243         (build_gcov_info): Check the new flag
14244         flag_profile_datafile_relative_path.
14245         (coverage_init): Use profile_data_prefix.
14246         Read profile counter only if flag_profile_use is set.
14247         * opts.c (common_handle_option): New option fprofile-use=,
14248         fprofile-dir=, fprofile-generate=.
14249         * toplev.c (profile_data_prefix): New variable definition.
14250         * toplev.h (profile_data_prefix): New declaration.
14251         * doc/invoke.tex (Option Summary, Optimization Options):
14252         Add new options.
14253
14254 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
14255
14256         * varasm.c (output_constant_pool_1): In LABEL_REF check,
14257         use tmp consistently.
14258
14259         PR target/35695
14260         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
14261         * config/ia64/ia64.c (rtx_needs_barrier): Handle
14262         UNSPEC_FR_RECIP_APPROX_RES.
14263         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
14264
14265 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
14266
14267         PR c/35750
14268         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
14269
14270 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14271
14272         PR middle-end/30186
14273         * fold-const.c (fold_indirect_ref_1): Support accessing non first
14274         element of the vector via a pointer.
14275
14276 2008-03-31  Ian Lance Taylor  <iant@google.com>
14277
14278         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
14279
14280 2008-03-31  Jan Hubicka  <jh@suse.cz>
14281
14282         * builtins.c (expand_builtin_setjmp_receiver): Update call of
14283         get_arg_pointer_save_area.
14284         * expr.c (init_expr): Just clear out rtl.expr.
14285         * function.c (free_after_compilation): Clear out whole RTL structure.
14286         (get_func_frame_size): Merge into ...
14287         (get_frame_size): ... this one.
14288         (assign_stack_local_1): Merge into ...
14289         (assign_stack_local): ... this one.
14290         (expand_function_end): Update call of get_arg_pointer_save_area.
14291         (get_art_pointer_save_area): Remove cfun argument.
14292         * function.h (emit_status): regno_pointer_align does not need length
14293         attribute. Move x_regno_reg_rtx to ...
14294         (regno_reg_rtx): ... new global array.
14295         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
14296         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
14297         apply_args_value, forced_labels, stack_pointer_delta):
14298         Update accestors.
14299         (struct varasm_status): Move here from varasm.c
14300         (struct rtl_data): New. Move here some fields from struct function.
14301         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
14302         frame_offset, stack_check_probe_note, arg_pointer_save_area,
14303         used_temp_slots avail_temp_slots, temp_slot_level,
14304         nonlocal_goto_handler_labels): Update accesstors.
14305         (rtl): New global variable.
14306         (struct function): Move some fileds to rtl_data.
14307         (get_arg_pointer_save_area): Update prototype.
14308         * emit-rtl.c (rtl): Declare.
14309         (regno_reg_rtx): Declare.
14310         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
14311         Update.
14312         (gen_reg_rtx): Update.
14313         (init_virtual_regs): Do not tate emit_status argument.
14314         (init_emit): Do not allocate emit.
14315         * varasm.c (varasm_statuc): Move to function.h.
14316         (n_deferred_constatns): Update accestor.
14317         (init_varasm_status): Do not allocate varasm_status.
14318         (force_const_mem, get_pool_size, output_constant_pool): Update.
14319         * stmt.c (force_label_rtx): Do not use x_ prefixes.
14320         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
14321
14322 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
14323
14324         PR rtl-optimization/35729
14325         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
14326         references.
14327
14328 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
14329
14330         PR target/32000
14331         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
14332         load/store if memory is unaligned.
14333         (*movti_rex64): Likewise.
14334
14335         * config/i386/predicates.md (misaligned_operand): New.
14336
14337 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
14338
14339         PR tree-opt/35431
14340         * tree-ssa-phiopt.c (conditional_replacement): Return early for
14341         complex types.
14342
14343 2008-03-31  Jan Beulich  <jbeulich@novell.com>
14344
14345         * config/ia64/constraints.md: Add 'j' constraint.
14346         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
14347         (movdi_internal): Likewise.
14348
14349 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
14350
14351         PR c/35748
14352         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
14353
14354 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
14355
14356         PR target/35757
14357         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
14358         proper error message for the third argument on blendpd and
14359         blendps.
14360
14361         * config/i386/sse.md (blendbits): New.
14362         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
14363
14364 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
14365
14366         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
14367
14368 2008-03-30  Richard Guenther  <rguenther@suse.de>
14369
14370         PR middle-end/31023
14371         * fold-const.c (fold_sign_changed_comparison): Do leave
14372         conversions to base-types alone.
14373
14374 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14375
14376         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
14377         the link register if one altivec register is be saved.
14378
14379 2008-03-30  Ben Elliston  <bje@au.ibm.com>
14380
14381         * final.c (final_scan_insn): Remove if (0) code.
14382
14383 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
14384
14385         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
14386
14387 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
14388
14389         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
14390         of V4SFmode to ix86_binary_operator_ok.
14391
14392 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
14393
14394         * config/i386/i386.c (override_options): Initialize
14395         ix86_veclib_handler to ix86_veclibabi_svml when
14396         -mveclibabi=svml is used.
14397         (ix86_veclibabi_svml): New function for SVML ABI style
14398         vectorization support.
14399         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
14400
14401 2008-03-28  Rafael Espindola  <espindola@google.com>
14402
14403         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
14404         (tree_binary_nonnegative_warnv_p): Make it public.
14405         (tree_single_nonnegative_warnv_p): Make it public.
14406         (tree_invalid_nonnegative_warnv_p): Make it public.
14407         (tree_unary_nonzero_warnv_p): Make it public.
14408         (tree_binary_nonzero_warnv_p): Make it public
14409         (tree_single_nonzero_warnv_p): Make it public.
14410         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
14411         (extract_range_from_binary_expr): Split the expr argument.
14412         (extract_range_from_unary_expr): Split the expr argument.
14413         (extract_range_from_comparison): Split the expr argument.
14414         (extract_range_from_expr): Use the new aux functions.
14415         (vrp_evaluate_conditional_warnv): Use
14416         vrp_evaluate_conditional_warnv_with_ops.
14417         * tree.h (tree_unary_nonzero_warnv_p): Declare.
14418         (tree_binary_nonzero_warnv_p): Declare.
14419         (tree_single_nonzero_warnv_p): Declare.
14420         (tree_expr_nonzero_warnv_p): Declare.
14421         (tree_unary_nonnegative_warnv_p): Declare.
14422         (tree_binary_nonnegative_warnv_p): Declare.
14423         (tree_single_nonnegative_warnv_p): Declare.
14424         (tree_invalid_nonnegative_warnv_p): Declare.
14425
14426 2008-03-28  Richard Guenther  <rguenther@suse.de>
14427
14428         PR tree-optimization/30317
14429         PR tree-optimization/30911
14430         PR tree-optimization/34793
14431         * tree-vrp.c (set_and_canonicalize_value_range): New function.
14432         (struct assert_locus_d): New member EXPR.
14433         (register_new_assert_for): Add EXPR parameter to support
14434         ASSERT_EXPR <name, expr OP limit>.
14435         (register_edge_assert_for_1): Adjust callers.
14436         (find_assert_locations): Likewise.
14437         (process_assert_insertions_for): Build condition from expression.
14438         (extract_range_from_assert): Handle ASSERT_EXPRs
14439         of the form ASSERT_EXPR <name, expr OP limit>.
14440         (register_edge_assert_for_2): New helper registering
14441         asserts for comparisons.  Recognize range tests of the form
14442         (unsigned)i - CST1 OP CST2.
14443         (register_edge_assert_for_1): Use it.
14444         (register_edge_assert_for): Likewise.
14445         (needs_overflow_infinity): Integer sub-types
14446         do not need overflow infinities.
14447         (vrp_val_is_max): The extreme values of integer sub-types
14448         are those of the base type.
14449         (vrp_val_is_min): Likewise.
14450         * tree.def (ASSERT_EXPR): Document extra allowed conditional
14451         expressions.
14452
14453 2008-03-28  Nick Clifton  <nickc@redhat.com>
14454
14455         PR target/31110
14456         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
14457         Return GENERAL_REGS for stack adjustment reloads.
14458
14459 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14460
14461         PR target/31334
14462         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
14463         const_vector when all the vectors are constant.
14464
14465 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
14466
14467         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
14468         comparisons.
14469         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
14470         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
14471         (scc_sf): New.
14472         (s<code>_sf): Use new scc_sf attribute for opcode names.
14473
14474 2008-03-27  Tom Tromey  <tromey@redhat.com>
14475
14476         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
14477         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
14478         config/spu/t-spu-elf, config/i386/t-interix,
14479         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
14480         config/i386/x-darwin, config/i386/x-mingw32,
14481         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
14482         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
14483         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
14484         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
14485         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
14486         config/rs6000/x-darwin, config/rs6000/t-rs6000,
14487         config/score/t-score-elf, config/arm/t-strongarm-pe,
14488         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
14489         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
14490         Revert automatic dependency patch.
14491
14492 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
14493
14494         PR target/35657
14495         * config/i386/i386.c (ix86_function_arg_boundary): Align
14496         decimal floating point to its natural boundary.
14497
14498 2008-03-27  Richard Guenther  <rguenther@suse.de>
14499
14500         PR middle-end/35716
14501         * fold-const.c (fold_comparison): Restrict distinct decl
14502         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
14503         solely rely on operand_equal_p.
14504
14505 2008-03-27  Richard Guenther  <rguenther@suse.de>
14506
14507         PR c/32511
14508         * c-common.c (handle_weak_attribute): Reject combination of
14509         weak and inline.
14510
14511 2008-03-27  Richard Guenther  <rguenther@suse.de>
14512
14513         PR tree-optimization/32810
14514         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
14515         conversions from DECL_INITIAL.
14516         (fold_const_aggregate_ref): Likewise from constructor elements.
14517
14518 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
14519
14520         * tree-affine.h (aff_combination_expand): Declare.
14521         (get_inner_reference_aff): Likewise.
14522         * tree-affine.c (aff_combination_expand): Split out from
14523         tree_to_aff_combination_expand.
14524         (get_inner_reference_aff): New function.
14525         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
14526         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
14527         (struct lim_aux_data): sm_done field removed.
14528         (mem_ref_loc_p, mem_ref_locs_p): New types.
14529         (struct mem_ref): Added id, stored, accesses_in_loop,
14530         indep_loop, dep_loop, indep_ref, dep_ref fields.
14531         Removed is_stored, locs and next fields.
14532         (memory_accesses): New variable.
14533         (movement_possibility): Do not allow moving statements
14534         that store to memory.
14535         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
14536         New functions.
14537         (determine_max_movement): For statements with memory references,
14538         find the outermost loop in that the reference is independent.
14539         (move_computations_stmt): Mark the virtual operands for renaming.
14540         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
14541         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
14542         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
14543         add_vop_ref_mapping, create_vop_ref_mapping_loop,
14544         create_vop_ref_mapping, analyze_memory_references,
14545         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
14546         get_all_locs_in_loop, ref_always_accessed_p,
14547         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
14548         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
14549         store_motion_loop, store_motion): New functions.
14550         (struct vop_to_refs_elt): New type.
14551         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
14552         memref_hash, memref_eq, hoist_memory_references): Rewritten.
14553         (schedule_sm): Replaced by...
14554         (execute_sm): ... this.
14555         (determine_lsm_ref, hoist_memory_references,
14556         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
14557         find_more_ref_vops, free_mem_ref, free_mem_refs,
14558         determine_lsm_loop, determine_lsm): Removed.
14559         (tree_ssa_lim_finalize): Free data structures used by store motion.
14560         (tree_ssa_lim): Call analyze_memory_references.  Use
14561         store_motion instead of determine_lsm.
14562
14563 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
14564
14565         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
14566         rename tmake_file to m68hc11/t-m68hc11.
14567         (mcore): Set inhibit_libc to true.
14568         * config.host (alpha*-dec-*vms*): Set extra_programs.
14569         (interix3*): Don't use host_xmake_file.
14570         * configure.ac: Let config.gcc override inhibit_libc.
14571         * configure: Regenerate.
14572
14573         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
14574         * config/t-openbsd-thread: Remove commented out lines.
14575
14576         * config/x-interix: Remove.
14577
14578         * config/m68hc11/t-m68hc11-gas: Rename to...
14579         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
14580
14581         * config/mcore/t-mcore: Remove T_CFLAGS.
14582         * config/mcore/t-mcore-pe: Likewise.
14583
14584 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
14585
14586         * configure.ac: Replace custom __GNU_SOURCE test with
14587         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
14588         * aclocal.m4: Regenerate.
14589         * configure: Regenerate.
14590         * config.in: Regenerate.
14591
14592 2008-03-27  Richard Guenther  <rguenther@suse.de>
14593
14594         * fold-const.c (target.h): Include.
14595         (fold_comparison): Fold comparison of addresses of decls
14596         that bind locally or of constants.  Consolidate address folding code.
14597         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
14598         results from fold_binary_to_constant.
14599         (compare_values_warnv): Likewise.
14600
14601 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
14602
14603         PR middle-end/35429
14604         * fold-const.c (fold_truthop): Check for integeral types when folding
14605         a == 0 && b == 0 and a != 0 || b != 0 .
14606
14607 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
14608
14609         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
14610
14611 2008-03-26  Andreas Schwab  <schwab@suse.de>
14612
14613         * doc/invoke.texi: Fix use of @item vs. @itemx.
14614
14615 2008-03-26  Tom Tromey  <tromey@redhat.com>
14616
14617         * Makefile.in (build/gensupport.o, build/print-rtl.o,
14618         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
14619         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
14620         build/gencodes.o, build/genconditions.o, build/genconfig.o,
14621         build/genconstants.o, build/genemit.o, build/genextract.o,
14622         build/genflags.o, build/genmddeps.o, build/genopinit.o,
14623         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
14624         options.h.
14625
14626 2008-03-26  Richard Guenther  <rguenther@suse.de>
14627
14628         Revert
14629         2008-03-26  Richard Guenther  <rguenther@suse.de>
14630
14631         * fold-const.c (target.h): Include.
14632         (fold_comparison): Fold comparison of addresses of two decls
14633         that bind locally.  Consolidate address folding code.
14634
14635 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14636
14637         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
14638         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
14639         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
14640         dconstsqrt2, dconstthird, dconste and/or dconst10.
14641         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
14642         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
14643         dconstsqrt2, dconste): Delete.
14644         (init_emit_once): Likewise.  Simplify initializing dconstm1.
14645         Constify variable.
14646         * real.c (get_real_const): New.
14647         * real.h (dconst3, dconst10, dconstm2, dconstthird,
14648         dconstsqrt2, dconste): Delete.
14649         (real_value_const, get_real_const): New.
14650
14651 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
14652
14653         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
14654
14655         * config/i386/i386.c (ix86_function_arg_boundary): Check
14656         BIGGEST_ALIGNMENT instead of 128.
14657         (setup_incoming_varargs_64): Likewise.
14658
14659 2008-03-26  Tom Tromey  <tromey@redhat.com>
14660
14661         * Makefile.in (DEPFILES): Add missing '/'.
14662
14663 2008-03-26  Richard Guenther  <rguenther@suse.de>
14664
14665         * fold-const.c (target.h): Include.
14666         (fold_comparison): Fold comparison of addresses of two decls
14667         that bind locally.  Consolidate address folding code.
14668
14669 2008-03-26  Nick Clifton  <nickc@redhat.com>
14670
14671         PR target/31232
14672         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
14673         not allow INT+INT as a legitimate addressing mode.
14674
14675 2008-03-26  Richard Guenther  <rguenther@suse.de>
14676
14677         * tree-flow.h (widen_bitfield): Remove declaration.
14678         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
14679         (widen_bitfield): Remove function.
14680         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
14681         code.
14682
14683 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14684
14685         PR target/31558
14686         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
14687         error_mark_node's.
14688
14689 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
14690
14691         PR rtl-optimization/35232
14692         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
14693         (forget_old_reloads_1, forget_marked_reloads): Don't clear
14694         reg_reloaded_call_part_clobbered here.
14695         (reload_regs_reach_end_p): New function.
14696         (reload_reg_rtx_for_input): New variable.
14697         (reload_reg_rtx_for_output): Likewise.
14698         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
14699         when reassigning a pseudo register.  Load reloadreg from
14700         reload_reg_rtx_for_input, moving the mode and register
14701         calculation to...
14702         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
14703         instead of the original when deciding whether an input reload
14704         would be a no-op or whether an output reload can be deleted.
14705         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
14706         when setting up new_spill_reg_store.  Load it from
14707         reload_reg_rtx_for_output, moving the mode and register
14708         calculation to...
14709         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
14710         instead of the original when deciding whether an output reload
14711         would be a no-op.  Do the same when modifying insn notes.
14712         Use rtx_equal_p instead of == to compare the registers.
14713         (inherit_piecemeal_p): Take a mode and two register numbers
14714         as argument.
14715         (emit_reload_insns): Clear new_spill_reg_store for every hard
14716         register in the reload register.  Remove spill registers
14717         from reg_reloaded_valid before considering whether to record
14718         inheritance information for them.  Use reload_reg_rtx_for_output
14719         instead of reg_rtx when recording output reloads.  Use
14720         reload_reg_rtx_for_input instead of reg_rtx when recording
14721         input reloads.  Set or clear reg_reloaded_call_part_clobbered
14722         at the same time as setting reg_reloaded_valid.
14723         (delete_output_reload): Add a new_reload_reg parameter and use it
14724         instead of rld[j].reg_rtx.
14725         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
14726         calls accordingly.
14727
14728 2008-03-25  Tom Tromey  <tromey@redhat.com>
14729
14730         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
14731         (build/genattr.o): Likewise.
14732         (build/genattrtab.o): Likewise.
14733         (build/gencodes.o): Likewise.
14734         (build/genconfig.o): Likewise.
14735         (build/genconstants.o): Likewise.
14736         (build/genemit.o): Likewise.
14737         (build/genextract.o): Likewise.
14738         (build/genflags.o): Likewise.
14739
14740 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
14741
14742         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
14743         instead of size_int for integer types.
14744         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
14745         to match type of MINUS_EXPR.
14746
14747 2008-03-25  Tom Tromey  <tromey@redhat.com>
14748
14749         * configure: Rebuilt.
14750         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
14751         Makefile.
14752
14753 2008-03-25  Tom Tromey  <tromey@redhat.com>
14754
14755         * config/x-solaris (host-solaris.o): Update.
14756         * config/x-linux (host-linux.o): Update.
14757         * config/x-hpux (host-hpux.o): Update.
14758         * config/x-darwin (host-darwin.o): Update.
14759         * config/v850/t-v850e (v850-c.o): Update.
14760         * config/v850/t-v850 (v850-c.o): Update.
14761         * config/t-vxworks (vxworks.o): Update.
14762         * config/t-sol2 (sol2-c.o, sol2.o): Update.
14763         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
14764         * config/spu/t-spu-elf (spu-c.o): Update.
14765         (spu.o): Remove.
14766         * config/sh/t-symbian (sh-c.o): Update.
14767         (symbian.o): Update.
14768         * config/sh/t-sh (sh-c.o): Update.
14769         * config/score/t-score-elf (score7.o, score3.o): Update.
14770         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
14771         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
14772         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
14773         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
14774         (rs6000.o): Remove.
14775         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
14776         * config/m32c/t-m32c (m32c-pragma.o): Update.
14777         * config/ia64/t-ia64 (ia64-c.o): Update.
14778         * config/i386/x-mingw32 (host-mingw32.o): Update.
14779         * config/i386/x-i386 (driver-i386.o): Update.
14780         * config/i386/x-darwin (host-i386-darwin.o): Update.
14781         * config/i386/x-cygwin (host-cygwin.o): Update.
14782         * config/i386/t-nwld (nwld.o): Update.
14783         * config/i386/t-netware (netware.o): Update.
14784         * config/i386/t-interix (winnt.o): Update.
14785         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
14786         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
14787         msformat-c.o): Update.
14788         * config/bfin/t-bfin-linux (generated_files): Add
14789         linux-sysroot-suffix.h.
14790         * config/arm/t-wince-pe (pe.o): Update.
14791         * config/arm/t-strongarm-pe (pe.o): Update.
14792         * config/arm/t-pe (pe.o): Update.
14793         * config/arm/t-arm (arm-c.o): Update.
14794         * doc/install.texi (Prerequisites): Require make 3.80.
14795         * Makefile.in: Remove .o targets.
14796         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
14797         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
14798         (simple_generated_h, simple_generated_c): Move earlier.
14799         (generated_files): New variable.
14800         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
14801         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
14802         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
14803         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
14804         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
14805         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
14806         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
14807         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
14808         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
14809         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
14810         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
14811         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
14812         (.c.o): Remove.
14813         (COMPILE.base, COMPILE): New variables.
14814         (%.o): New pattern rule.
14815         (ALL_HOST_OBJS): New variable.
14816         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
14817         (dummy-checksum.o, cc1-checksum.o): Remove.
14818         (DRIVER_SHLIB): New variable.
14819         (DRIVER_DEFINES): Use it.
14820         (gencondmd.c): Move out of build/.
14821         (s-conditions): Update.
14822         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
14823         (ALL_BUILD_OBJS): Likewise.
14824         (build/%.o): Use BUILDCOMPILE.
14825         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
14826         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
14827         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
14828         build/gencheck.o, build/gencodes.o, build/genconditions.o,
14829         build/genconfig.o, build/genconstants.o, build/genemit.o,
14830         build/genextract.o, build/genflags.o, build/genmddeps.o,
14831         build/genopinit.o, build/genoutput.o, build/genpeep.o,
14832         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
14833         build/gen-protos.o, build/scan.o, build/fix-header.o,
14834         build/scan-decls.o): Simplify.
14835         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
14836         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
14837         prefix.o, toplev.o): Reduce to variable setting.
14838         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
14839         ($(out_object_file), gcc-options.o): New targets.
14840         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
14841         * configure: Rebuilt.
14842         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
14843         * doc/sourcebuild.texi (Front End Directory): Document new variable.
14844
14845 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
14846
14847         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
14848         complain when we hit an error, return ERROR_MARK_NODE.
14849
14850 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
14851
14852         * config/sh/constraints.md (Pso, Psz): New constraints.
14853         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
14854         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
14855
14856 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
14857
14858         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
14859         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
14860
14861 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
14862
14863         * config/sh/sh.md (prefetch): Add condition for SH2A target.
14864         (prefetch_sh2a): New.
14865
14866 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
14867             Naveen.H.S  <naveen.hs@kpitcummins.com>
14868
14869         * config/sh/constraints.md (I28): New constraint.
14870         * config/sh/sh.c (broken_move): Add support for movi20s.
14871         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
14872
14873 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
14874             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
14875             Naveen.H.S  <naveen.hs@kpitcummins.com>
14876
14877         * config/sh/sh.c (SH_ATTRIBUTES): Define.
14878         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
14879         (print_operand): Handle resbank in %@ operand code.
14880         (sh_encode_section_info): New.
14881         (push_regs): Add conditions for resbank.
14882         (sh_expand_epilogue): Likewise.
14883         (sh_insert_attributes): Likewise.
14884         (sh_attribute_table): Likewise.
14885         (sh_handle_resbank_handler_attribute): New.
14886         (sh2a_handle_function_vector_handler_attribute): New.
14887         (sh2a_is_function_vector_call): New.
14888         (sh2a_get_function_vector_number): New.
14889         (sh2a_function_vector_p): New.
14890         (sh_cfun_resbank_handler_p): New.
14891         * config/sh/sh.md (calli): Emit jsr/n if possible.
14892         (calli_tbr_rel): New.
14893         (calli_pcrel): Emit jsr/n if possible.
14894         (return_i): Emit rts/n if possible.
14895         (call_valuei_tbr_rel): New.
14896         (call_valuei_pcrel): Add condition for SH2A target.
14897         (call_value): Likewise.
14898         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
14899         (sh2a_get_function_vector_number): Likewise.
14900         (sh2a_is_function_vector_call): Likewise.
14901         * doc/extend.texi: Document TBR relative addressing of SH2A.
14902         (resbank): Add description for SH2A.
14903
14904 2008-03-24  Richard Guenther  <rguenther@suse.de>
14905
14906         PR c/22371
14907         * gimplify.c (gimplify_modify_expr): For frontend type-correct
14908         pointer assignments change conversions according to middle-end rules.
14909         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
14910         * configure.ac: Include type checking in yes.
14911         * configure: Regenerate.
14912
14913 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14914
14915         * diagnostic.c (diagnostic_count_diagnostic): Delete.
14916         (diagnostic_report_diagnostic): Update. Handle ICEs here.
14917
14918 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
14919
14920         * gthr-vxworks.h (UNUSED): Define.
14921
14922 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
14923
14924         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
14925
14926 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
14927
14928         * doc/extend.texi (Function Attributes): Add missing comma in the
14929         example of the "alloc_size" attribute.
14930
14931 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
14932
14933         Revert:
14934         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
14935
14936         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
14937         32bit host.
14938
14939         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
14940
14941         PR target/35496
14942         * stor-layout.c (update_alignment_for_field): Set minimum alignment
14943         of the underlying type of a MS bitfield layout to the natural
14944         alignment of the type.
14945
14946         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
14947
14948         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
14949         to their natural alignment to avoid store forwarding stalls.
14950
14951 2008-03-22  Richard Guenther  <rguenther@suse.de>
14952
14953         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
14954         For PHI nodes verify the address is invariant.
14955         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
14956         (get_symbol_constant_value): Use is_gimple_min_invariant.
14957         (maybe_fold_stmt_indirect): Likewise.
14958
14959 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
14960
14961         PR rtl-optimization/33927
14962         * Makefile.in (dse.o): Depend on $(TM_P_H).
14963         * expr.h (extract_low_bits): Declare.
14964         * expmed.c (extract_low_bits): New function.
14965         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
14966         * dse.c: Include tm_p.h.
14967         (find_shift_sequence): Remove the read_reg argument and return the
14968         read value.  Emit the instructions instead of returning them.
14969         Iterate on new_mode rather than calculating it each time.
14970         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
14971         source to NEW_MODE and extract_low_bits to convert the shifted
14972         value to READ_MODE.
14973         (replace_read): Allow the load and store to have different mode
14974         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
14975         or extraction instructions before trying the replacement.  Update
14976         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
14977
14978 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
14979
14980         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
14981         to their natural alignment to avoid store forwarding stalls.
14982
14983 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14984
14985         PR target/27946
14986         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
14987         encouraging but not allowing gprs for input;
14988         change the input constraint to !f#r.
14989         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
14990         gprs for output;
14991         change the output constraint to !f#r.
14992
14993 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
14994
14995         PR target/13958
14996         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
14997         corresponding post-reload splitters.
14998         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
14999         when x87 FP math is selected.
15000         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
15001         New function prototype.
15002         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
15003         unreachable function to ease macroization of insn patterns.
15004
15005 2008-03-21  Martin Jambor  <mjambor@suse.cz>
15006
15007         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
15008         reference dumps if ddr is NULL or dependence is unknown.
15009
15010 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
15011
15012         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
15013         unsigned extension into account.
15014         (ATOMIC_COMPARE_AND_SWAP): Likewise.
15015         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
15016         Do computations on a scratch register.
15017
15018 2008-03-21  Richard Guenther  <rguenther@suse.de>
15019
15020         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
15021         Use is_gimple_min_invariant instead of TREE_INVARIANT.
15022         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
15023         * tree-ssa-dom.c (record_equality): Likewise.
15024         * tree-inline.c (copy_body_r): Likewise.
15025         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
15026         TREE_INVARIANT.
15027
15028 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
15029
15030         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
15031         as 'delete_unused' argument.
15032
15033 2008-03-20  Richard Guenther  <rguenther@suse.de>
15034
15035         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
15036         special casing of constant qualifiers.
15037         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
15038         care about them in general.
15039         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
15040         regardless of their type.
15041         (fold_stmt_r): Forcefully fold *& if we end up with that.
15042
15043 2008-03-20  Paul Brook  <paul@codesourcery.com>
15044
15045         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
15046         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
15047         linker flags.
15048         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
15049         definition.
15050         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
15051         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
15052
15053 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
15054
15055         * common.opt (Wmudflap): New option.
15056         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
15057         (mx_register_decls): Likewise.
15058         (mudflap_finish_file): Likewise.
15059         * doc/invoke.texi: Document -Wno-mudflap.
15060
15061 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
15062
15063         * c-format.c (replace_format_name_to_system_name): New.
15064         (cmp_attribs): New.
15065         (convert_format_name_to_system_name): New.
15066         (decode_format_attr): Add use of convert_format_name_to_system_name.
15067         (format_types_orig): Add gnu_ prefix to names.
15068         (check_format_info_main): Special treating of \0 escaped names for
15069         supporting multi-character format specifiers as I32, I64.
15070         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
15071         (gnu_target_overrides_format_attributes): New.
15072         * c-format.h: Add structure target_ovr_attr to hold
15073         system specific formatter names.
15074         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
15075         msformat-c.o file to c_target_objs and cxx_target_objs.
15076         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
15077         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
15078         (TARGET_N_FORMAT_TYPES): New.
15079         * config/i386/msformat-c.c: New.
15080         * config/i386/t-cygming: Add build rule for msformat-c.o.
15081         * doc/extend.texi: Add new format names gnu_* and ms_* and
15082         further details.
15083         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
15084
15085 2008-03-20  Ira Rosen  <irar@il.ibm.com>
15086
15087         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
15088         optimizations turned on under -O3.
15089         (ftree-vectorize): Add that the flag is turned on with -O3.
15090
15091 2008-03-20  Ben Elliston  <bje@au.ibm.com>
15092
15093         * regmove.c (try_auto_increment): Fix spelling error in comment.
15094         * final.c (final_scan_insn): Likewise.
15095
15096 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
15097
15098         PR target/14552
15099         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
15100         allocator preferences for "y" and "r" class registers.
15101         ("*mov<mode>_internal"): Ditto.
15102         ("*movv2sf_internal_rex64"): Ditto.
15103         ("*movv2sf_internal"): Ditto.
15104
15105 2008-03-19  Michael Matz  <matz@suse.de>
15106
15107         PR middle-end/35616
15108         * calls.c (expand_call): Check overlap of arguments with call
15109         address for sibcalls.
15110
15111 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
15112
15113         PR target/35496
15114         * stor-layout.c (update_alignment_for_field): Set minimum alignment
15115         of the underlying type of a MS bitfield layout to the natural
15116         alignment of the type.
15117
15118 2008-03-19  Jan Hubicka  <jh@suse.cz>
15119
15120         PR other/35094
15121         * toplev.c (decode_d_option): Handle all CPP flags.
15122         * tree-vrp.c: Update tree_pass descriptors.
15123         * regrename.c: Update tree_pass descriptors.
15124         * fwprop.c: Update tree_pass descriptors.
15125         * doc/invoke.texi: Remove documentation of dropped -d? flags.
15126         * tree-into-ssa.c: Update tree_pass descriptors.
15127         * tree-dump.c: Update tree_pass descriptors.
15128         * tree-complex.c: Update tree_pass descriptors.
15129         * tree-dump.h: Update tree_pass descriptors.
15130         * see.c: Update tree_pass descriptors.
15131         * cgraphbuild.c: Update tree_pass descriptors.
15132         * tracer.c: Update tree_pass descriptors.
15133         * tree-loop-distribution.c: Update tree_pass descriptors.
15134         * cgraph.c: Update tree_pass descriptors.
15135         * postreload-gcse.c: Update tree_pass descriptors.
15136         * postreload.c: Update tree_pass descriptors.
15137         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
15138         * tree-tailcall.c: Update tree_pass descriptors.
15139         * tree-pass.h (tree_opt_pass): Rename to ...
15140         (opt_pass) ... this one; add "type" field and remove letter field.
15141         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
15142         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
15143         all_lowering_passes): Update declaration.
15144         * ipa-cp.c: Update tree_pass descriptors.
15145         * final.c: Update tree_pass descriptors.
15146         * omp-low.c: Update tree_pass descriptors.
15147         * tree-ssa-dse.c: Update tree_pass descriptors.
15148         * ipa-reference.c: Update tree_pass descriptors.
15149         * tree-ssa-uncprop.c: Update tree_pass descriptors.
15150         * auto-inc-dec.c: Update tree_pass descriptors.
15151         * reorg.c: Update tree_pass descriptors.
15152         * cgraphunit.c: Update tree_pass descriptors.
15153         * tree-ssa-copyrename.c: Update tree_pass descriptors.
15154         * tree-ssa-ccp.c: Update tree_pass descriptors.
15155         * df-core.c: Update tree_pass descriptors.
15156         * mode-switching.c: Update tree_pass descriptors.
15157         * tree-nomudflap.c: Update tree_pass descriptors.
15158         * modulo-sched.c: Update tree_pass descriptors.
15159         * ipa-pure-const.c: Update tree_pass descriptors.
15160         * cse.c: Update tree_pass descriptors.
15161         * web.c: Update tree_pass descriptors.
15162         * tree-stdarg.c: Update tree_pass descriptors.
15163         * tree-ssa-math-opts.c: Update tree_pass descriptors.
15164         * tree-ssa-dom.c: Update tree_pass descriptors.
15165         * tree-nrv.c: Update tree_pass descriptors.
15166         * tree-ssa-alias.c: Update tree_pass descriptors.
15167         * loop-init.c: Update tree_pass descriptors.
15168         * gimple-low.c: Update tree_pass descriptors.
15169         * ipa-inline.c: Update tree_pass descriptors.
15170         * tree-ssa-sink.c: Update tree_pass descriptors.
15171         * global.c: Update tree_pass descriptors.
15172         * ifcvt.c: Update tree_pass descriptors.
15173         * jump.c: Update tree_pass descriptors.
15174         * predict.c: Update tree_pass descriptors.
15175         * tree-ssa-loop.c: Update tree_pass descriptors.
15176         * recog.c: Update tree_pass descriptors.
15177         * dse.c: Update tree_pass descriptors.
15178         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
15179         * tree-eh.c: Update tree_pass descriptors.
15180         * regmove.c: Update tree_pass descriptors.
15181         * local-alloc.c
15182         * function.c: Update tree_pass descriptors.
15183         * tree-vectorizer.c: Update tree_pass descriptors.
15184         * gcse.c: Update tree_pass descriptors.
15185         * ipa-type-escape.c: Update tree_pass descriptors.
15186         * tree-if-conv.c: Update tree_pass descriptors.
15187         * init-regs.c: Update tree_pass descriptors.
15188         * ipa.c: Update tree_pass descriptors.
15189         * tree-ssa-phiopt.c: Update tree_pass descriptors.
15190         * rtl-factoring.c: Update tree_pass descriptors.
15191         * lower-subreg.c: Update tree_pass descriptors.
15192         * bt-load.c: Update tree_pass descriptors.
15193         * tree-dfa.c: Update tree_pass descriptors.
15194         * except.c: Update tree_pass descriptors.
15195         * emit-rtl.c: Update tree_pass descriptors.
15196         * cfgexpand.c: Update tree_pass descriptors.
15197         * tree-cfgcleanup.c: Update tree_pass descriptors.
15198         * cfgcleanup.c: Update tree_pass descriptors.
15199         * tree-ssa-pre.c: Update tree_pass descriptors.
15200         * tree-sra.c: Update tree_pass descriptors.
15201         * tree-mudflap.c: Update tree_pass descriptors.
15202         * tree-ssa-copy.c: Update tree_pass descriptors.
15203         * cfglayout.c: Update tree_pass descriptors.
15204         * tree-ssa-forwprop.c: Update tree_pass descriptors.
15205         * tree-ssa-dce.c: Update tree_pass descriptors.
15206         * tree-ssa.c: Update tree_pass descriptors.
15207         * regclass.c: Update tree_pass descriptors.
15208         * integrate.c: Update tree_pass descriptors.
15209         * tree-optimize.c: Update tree_pass descriptors.
15210         * tree-ssa-phiprop.c: Update tree_pass descriptors.
15211         * tree-object-size.c: Update tree_pass descriptors.
15212         * combine.c: Update tree_pass descriptors.
15213         * tree-outof-ssa.c: Update tree_pass descriptors.
15214         * bb-reorder.c: Update tree_pass descriptors.
15215         * stack-ptr-mod.c: Update tree_pass descriptors.
15216         * var-tracking.c: Update tree_pass descriptors.
15217         * tree-profile.c: Update tree_pass descriptors.
15218         * tree-vect-generic.c: Update tree_pass descriptors.
15219         * reg-stack.c: Update tree_pass descriptors.
15220         * sched-rgn.c: Update tree_pass descriptors.
15221         * tree-ssa-structalias.c: Update tree_pass descriptors.
15222         * tree-cfg.c: Update tree_pass descriptors.
15223         * passes.c (current_pass): Update declaration.
15224         (finish_optimization_passes): Update.
15225         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
15226         (register_one_dump_file, register_dump_files_1, next_pass_1):
15227         Update arguments.
15228         (init_optimization_passes): Update handling of new types.
15229         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
15230         * ipa-struct-reorg.c: Update tree_pass descriptors.
15231         * tree-ssa-reassoc.c: Update tree_pass descriptors.
15232         * combine-stack-adj.c: Update tree_pass descriptors.
15233         * cfgrtl.c: Update tree_pass descriptors.
15234         * dce.c: Update tree_pass descriptors.
15235         * tree-ssanames.c: Update tree_pass descriptors.
15236
15237 2008-03-19  Richard Guenther  <rguenther@suse.de>
15238
15239         PR middle-end/35609
15240         * tree-ssa.c (walk_data): New structure.
15241         (warn_uninitialized_var): If not always_executed warn with "maybe"
15242         instead of "is".
15243         (execute_early_warn_uninitialized): Compute post-dominators.
15244         Initialize always_executed before processing each basic block.
15245
15246 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
15247
15248         PR target/35504
15249         * config/i386/i386.c (x86_this_parameter): Calculate correct location
15250         of "this" pointer when "regparm = N" or "fastcall" is in effect.
15251
15252 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15253
15254         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
15255
15256 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
15257
15258         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
15259         is true.
15260         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
15261         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
15262         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
15263         target after ignore has been set, and move there also the commputation
15264         of subtarget and original_target.
15265         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
15266         (LANG_HOOKS_INITIALIZER): Remove it.
15267         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
15268
15269 2008-03-18  Richard Guenther  <rguenther@suse.de>
15270
15271         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
15272         found an expression with constants, note that in the VN for the lhs.
15273         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
15274         fold them to constants if possible.  Run cleanup_cfg if done so.
15275         (execute_pre): Return todo.
15276         (do_pre): Likewise.
15277         (execute_fre): Likewise.
15278         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
15279         of constants.
15280         (get_prop_source_stmt): Look through pointer conversions.
15281
15282 2008-03-18  Jan Hubicka  <jh@suse.cz>
15283
15284         * tree-pretty-print.c: Include predict.h.
15285         (dump_generic_node): Dump predictor.
15286         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
15287         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
15288         * gimple-low.c (lower_stmt): Likewise.
15289         * expr.c (expand_expr_real): Likewise.
15290         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
15291         them.
15292         (build_predict_expr, build_predict_expr): New.
15293         * predict.h (predictor_name, build_predict_expr): Update.
15294         * c-typeck.c (c_finish_bc_stmt): Add prediction.
15295         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
15296         * predict.def (PRED_CONTINUE): Update hitrate.
15297         * tree.def (PREDICT_EXPR): Define.
15298         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
15299         do not handle BIND_EXPR.
15300         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
15301         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
15302         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
15303         operands.
15304
15305 2008-03-18  Michael Matz  <matz@suse.de>
15306
15307         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
15308
15309 2008-03-18  Richard Guenther  <rguenther@suse.de>
15310
15311         * tree-gimple.h (is_gimple_invariant_address): Declare.
15312         (is_gimple_constant): Likewise.
15313         * tree-gimple.c (is_gimple_constant): New function.
15314         (is_gimple_invariant_address): Likewise.
15315         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
15316         and is_gimple_invariant_address.
15317         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
15318         previous change.
15319         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
15320         an addressable base.
15321
15322 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
15323
15324         PR middle-end/35611
15325         * gimplify.c (gimplify_expr): Gimplify second operand of
15326         OMP_ATOMIC_LOAD.
15327
15328 2008-03-17  Richard Guenther  <rguenther@suse.de>
15329
15330         PR tree-optimization/19637
15331         * fold-const.c (fold_unary): Remove restrictions of removing
15332         intermediate pointer-conversions (P2)(P1)P0.
15333         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
15334         conversion to void pointer.
15335         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
15336
15337 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
15338
15339         PR debug/31510
15340         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
15341         emulated thread local variables.
15342
15343 2008-03-16  Richard Guenther  <rguenther@suse.de>
15344
15345         PR middle-end/35607
15346         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
15347         expand TREE_INVARIANT operations that are not gimple invariant.
15348
15349 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
15350
15351         * doc/extend.texi (Alignment): Say that the ABI controls
15352         the __alignof__ for non-strict-alignment targets rather
15353         than being a recommendation.
15354
15355 2008-03-15  Paul Brook  <paul@codesourcery.com>
15356
15357         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
15358         annotations.
15359         (arm_output_fn_unwind): Mark functions that can not be unwound.
15360
15361 2008-03-15  Paul Brook  <paul@codesourcery.com>
15362
15363         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
15364         extension instructions.
15365
15366 2008-03-15  Richard Guenther  <rguenther@suse.de>
15367
15368         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
15369         and fold constant aggregate refs.
15370         (fold_const_aggregate_ref): Handle string constants
15371         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
15372         (evaluate_stmt): Simplify now that ccp_fold folds constant
15373         aggregate refs.
15374
15375 2008-03-15  Paul Brook  <paul@codesourcery.com>
15376
15377         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
15378         (extzv): Use gen_extzv_t2.
15379         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
15380
15381 2008-03-15  Richard Guenther  <rguenther@suse.de>
15382
15383         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
15384         (fold_const_aggregate_ref): Likewise.
15385         (get_value): Return NULL if we don't have any values.
15386         (ccp_finalize): Set const_val to NULL after freeing it.
15387         * tree-flow.h (get_symbol_constant_value): Declare.
15388         (fold_const_aggregate_ref): Likewise.
15389         * tree-ssa-sccvn.c (try_to_simplify): Use them.
15390
15391 2008-03-15  Richard Guenther  <rguenther@suse.de>
15392
15393         PR middle-end/35593
15394         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
15395         to not produce negative array indices if not allowed.  Add
15396         parameter to indicate that.
15397         (maybe_fold_offset_to_component_ref): Allow negative array
15398         indices only for the first member of a structure.
15399         (maybe_fold_offset_to_reference): Allow negative array indices.
15400         (maybe_fold_stmt_addition): Likewise.
15401
15402 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
15403             Anatoly Sokolov <aesok@post.ru>
15404
15405         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
15406         (avr_arch): Add ARCH_AVR6.
15407         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
15408         (initial_elimination_offset): Initialize and use 'avr_pc_size'
15409         instead of fixed value 2.
15410         (print_operand_address): Use gs() asm specifier instead of pm().
15411         (avr_assemble_integer): (Ditto.).
15412         (avr_output_addr_vec_elt): (Ditto.).
15413         (print_operand): Handle "!" code.
15414         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
15415         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
15416         (AVR_HAVE_EIJMP_EICALL): Define.
15417         (AVR_3_BYTE_PC): Redefine.
15418         (AVR_2_BYTE_PC): (Ditto.).
15419         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
15420         (LINK_SPEC): Add atmega2560 and atmega2561.
15421         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
15422         (crtm2561.o).
15423         * config/avr/avr.md (call_insn): Use eicall instead of icall
15424         for 3 byte PC devices.
15425         (call_value_insn): (Ditto.).
15426         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
15427         (indirect_jump): Use only for for 2 byte PC devices.
15428         (*tablejump): (Ditto.).
15429         (*indirect_jump_avr6): Add insn.
15430         (*tablejump_rjmp): Don't use for 3 byte PC devices.
15431         * config/avr/libgcc.S (__prologue_saves__): Use eijmp
15432         instead of ijmp for 3 byte PC devices.
15433         (__tablejump2__): (Ditto.).
15434         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
15435         (MULITLIB_DIRNAMES): (Ditto.).
15436         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
15437
15438 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
15439
15440         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
15441         "sse2_umulsidi3".  Use V1DI mode for operand 0.
15442         ("mmx_psadbw"): Use V1DI mode for operand 0.
15443         * config/i386/i386-modes.def (V1SI): New vector mode.
15444         * config/i386/i386.c (struct builtin_description)
15445         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
15446         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
15447         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
15448         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
15449         v1di_ftype_v8qi_v8qi type.
15450         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
15451
15452         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
15453         __builtin_ia32_pmuludq]: Fix the mode of return value.
15454
15455 2008-03-15  Richard Guenther  <rguenther@suse.de>
15456
15457         PR middle-end/35595
15458         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
15459         being a PHI_NODE.
15460
15461 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
15462
15463         * doc/invoke.texi (Option Summary, Xtensa Options): Document
15464         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
15465         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
15466         unless TARGET_SERIALIZE_VOLATILE is enabled.
15467         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
15468         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
15469         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
15470
15471 2008-03-14  Richard Guenther  <rguenther@suse.de>
15472
15473         PR tree-optimization/34172
15474         * tree-flow.h (refs_may_alias_p): Declare.
15475         (get_single_def_stmt): Likewise.
15476         (get_single_def_stmt_from_phi): Likewise.
15477         (get_single_def_stmt_with_phi): Likewise.
15478         * tree-dfa.c (refs_may_alias_p): New function.
15479         (get_single_def_stmt): Likewise.
15480         (get_single_def_stmt_from_phi): Likewise.
15481         (get_single_def_stmt_with_phi): Likewise.
15482         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
15483         (vn_reference_lookup_1): New helper function.
15484         (vn_reference_lookup): Walk the virtual use-def chain to
15485         continue searching for a match if the def does not alias the
15486         reference we are looking for.
15487
15488 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
15489
15490         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
15491         archive and Perzl.  Update The Written Word listing.
15492
15493 2008-03-14  Richard Guenther  <rguenther@suse.de>
15494
15495         PR tree-optimization/34043
15496         PR tree-optimization/33989
15497         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
15498         when doing FRE.
15499         (bitmap_find_leader): Use extra argument to verify dominance
15500         relationship inside a basic-block.
15501         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
15502         (find_leader_in_sets): Adjust.
15503         (create_component_ref_by_pieces): Take extra argument for
15504         dominance check, handle lookup failures.
15505         (find_or_generate_expression): Likewise.
15506         (create_expression_by_pieces): Likewise.
15507         (insert_into_preds_of_block): Adjust.
15508         (create_value_expr_from): If asked for, verify all operands
15509         are in the blocks AVAIL_OUT set.
15510         (make_values_for_stmt): Check for SSA_NAMEs that are life
15511         over an abnormal edge.
15512         (compute_avail): Remove such check.
15513         (do_SCCVN_insertion): New function.
15514         (eliminate): If we do not find a leader suitable for replacement
15515         insert a replacement expression from SCCVN if available.
15516         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
15517         (struct vn_ssa_aux): Add needs_insertion flag.
15518         * tree-ssa-sccvn.c (may_insert): New global flag.
15519         (copy_reference_ops_from_ref): Value-number union member access
15520         based on its size, not type and member if insertion is allowed.
15521         (visit_reference_op_load): For a weak match from union type
15522         punning lookup a view-converted value and insert a SSA_NAME
15523         for that value if that is not found.
15524         (visit_use): Make dumps shorter.  Do not disallow value numbering
15525         SSA_NAMEs that are life over an abnormal edge to constants.
15526         (free_scc_vn): Release inserted SSA_NAMEs.
15527         (run_scc_vn): New flag to specify whether insertion is allowed.
15528         Process SSA_NAMEs in forward order.
15529         * tree-ssa-loop-im.c (for_each_index): Handle invariant
15530         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
15531         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
15532         pointer type to/from integral types that do not change the
15533         precision to regular conversions.
15534
15535 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
15536
15537         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
15538         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
15539         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
15540         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
15541         input arguments and the mode of return value.  Built-in functions
15542         that operate on whole 64-bit MMX register now use V1DI mode.
15543
15544 2008-03-13  Alon Dayan  <alond@il.ibm.com>
15545             Olga Golovanevsky  <olga@il.ibm.com>
15546
15547         PR tree-optimization/35041
15548         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
15549         to locate the right position in a statement.
15550
15551 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
15552
15553         PR target/34000
15554         PR target/35553
15555         * config/i386/xmmintrin.h:  Change all static inline functions to
15556         extern inline and add __gnu_inline__ attribute.
15557         * config/i386/bmintrin.h: Ditto.
15558         * config/i386/smmintrin.h: Ditto.
15559         * config/i386/tmmintrin.h: Ditto.
15560         * config/i386/mmintrin-common.h: Ditto.
15561         * config/i386/ammintrin.h: Ditto.
15562         * config/i386/emmintrin.h: Ditto.
15563         * config/i386/pmmintrin.h: Ditto.
15564         * config/i386/mmintrin.h: Ditto.
15565         * config/i386/mm3dnow.h: Ditto.
15566
15567 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
15568
15569         PR middle-end/35185
15570         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
15571         (lower_omp_2): New function.
15572         (lower_omp_1, lower_omp): Rewritten.
15573
15574 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
15575
15576         PR 35054
15577         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
15578         with the phrase "Microsoft Windows compilers".
15579         (Push/Pop Macro Pragmas): New subsection. Document
15580         #pragma push_macro and pragma pop_macro.
15581
15582 2008-03-12  Paul Brook  <paul@codesourcery.com>
15583
15584         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
15585
15586 2008-03-12  Paul Brook  <paul@codesourcery.com>
15587
15588         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
15589         (thumb2_alusi3_short): Exclude PLUS and MINUS.
15590         (thumb2_addsi_shortim): Rename ...
15591         (thumb2_addsi_short): ... to this.  Allow register operands.
15592         (thumb2_subsi_short): New pattern.
15593         (thumb2_one_cmplsi2_short,
15594         thumb2_negsi2_short): New patterns and peepholes.
15595
15596 2008-03-12  Paul Brook  <paul@codesourcery.com>
15597
15598         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
15599
15600 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
15601
15602         * config/i386/i386.md (int_cond): New code iterator.
15603         (fp_cond): Ditto.
15604         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
15605         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
15606         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
15607         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
15608         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
15609         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
15610         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
15611         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
15612
15613 2008-03-12  Paul Brook  <paul@codesourcery.com>
15614
15615         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
15616         instead of {arm,thumb}_compute_save_reg_mask.
15617         (output_return_instruction): Ditto.
15618         (thumb_unexpanded_epilogue): Ditto.
15619         (thumb1_expand_prologue): Ditto.
15620         (thumb1_output_function_prologue): Ditto.
15621         (arm_set_return_address): Ditto.
15622         (thumb_set_return_address): Ditto.
15623         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
15624         regs to achieve stack alignment.
15625         (thumb1_compute_save_reg_mask): Fix compiler warning.
15626         (arm_output_epilogue): Use offsets->saved_regs_mask.
15627         Adjust stack pointer by poping call clobered registers.
15628         (arm_expand_prologue): Use offsets->saved_regs_mask.
15629         Adjust stack pointer by pushing extra registers.
15630         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
15631
15632 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
15633
15634         PR tree-opt/35422
15635         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
15636         conversion to the operands of a multiplication.
15637
15638 2008-03-12  Richard Guenther  <rguenther@suse.de>
15639
15640         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
15641         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
15642         * timevar.def (TV_TREE_PHIPROP): Add.
15643         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
15644         pass description.  Use TV_TREE_PHIPROP.
15645         * tree-ssa-forwprop.c: Remove phiprop code.
15646
15647 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
15648
15649         PR middle-end/35549
15650         * omp-low.c (maybe_lookup_decl): Constify first argument.
15651         (use_pointer_for_field): Change last argument from bool to
15652         omp_context *.  Disallow shared copy-in/out in nested
15653         parallel if decl is shared in outer parallel too.
15654         (build_outer_var_ref, scan_sharing_clauses,
15655         lower_rec_input_clauses, lower_copyprivate_clauses,
15656         lower_send_clauses, lower_send_shared_vars): Adjust callers.
15657
15658 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
15659             Ira Rosen  <irar@il.ibm.com>
15660
15661         * tree-vectorizer.c (free_stmt_vec_info): New function.
15662         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
15663         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
15664         * tree-vectorizer.h (free_stmt_vec_info): Declare.
15665         * tree-vect-transform.c (vectorizable_conversion): Free
15666         vec_oprnds0 if it was allocated.
15667         (vect_permute_store_chain): Remove unused VECs.
15668         (vectorizable_store): Free VECs that are allocated in the..
15669         function.
15670         (vect_transform_strided_load, vectorizable_load): Likewise.
15671         (vect_remove_stores): Simplify the code.
15672         (vect_transform_loop): Move code to vect_remove_stores().
15673         Call vect_remove_stores() and free_stmt_vec_info().
15674
15675 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15676
15677         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
15678         TARGET_HPUX.  Revise comment.
15679         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
15680         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
15681         Use sr4 variant of `be' instruction when not generating PIC code.
15682         (attr_length_call): Adjust for above change.
15683
15684 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15685
15686         * ipa-reference.c (static_execute): Remove module_statics_const and
15687         associated setting code.
15688
15689 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
15690
15691         PR target/35540
15692         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
15693         predicate for operand 1.
15694         (paritysi2_cmp): Use register_operand predicate for operand 2.
15695         Use earlyclobber modifier for operand 1.  Remove support for
15696         memory operands.
15697         (paritydi2_cmp): Use register_operand predicate for operand 3.
15698         Use earlyclobber modifier for operand 1.  Remove support for
15699         memory operands.
15700
15701 2008-03-11  Paul Brook  <paul@codesourcery.com>
15702             Vladimir Prus  <vladimir@codesourcery.com>
15703
15704         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
15705         (arm_compute_save_reg0_reg12_mask): Always
15706         check if register 11 must be saved.  Always safe hard frame pointer
15707         when frame_pointer_needeed.
15708         (arm_compute_save_reg_mask): Save IP and PC
15709         only with apcs frames.
15710         (arm_output_epilogue): Adjust Thumb2 codepath to
15711         be also invoked and work for ARM non-apcs frames.
15712         (arm_expand_prologue): Don't bother saving IP
15713         for non-apcs frame, since it's not clobbered by
15714         prologue code.  Implement non-apcs frame
15715         layout.
15716
15717 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
15718
15719         PR rtl-optimization/35281
15720         * expr.c (convert_move): Use a new pseudo for the intermediate
15721         from_mode->word_mode result.
15722
15723 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
15724
15725         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
15726         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
15727         * toplev.c (compile_file): Don't call it.
15728
15729 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
15730
15731         PR middle-end/35526
15732         * expr.c (store_expr): Call emit_block_move if the mode
15733         of "temp" RTX is BLKmode.
15734
15735 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15736             Richard Guenther  <rguenther@suse.de>
15737
15738         PR tree-optimization/31358
15739         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
15740         the step with a NULL_TREE.
15741         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
15742         to sizetype if type is a pointer type.
15743         (add_candidate_1): Don't convert the base and step to
15744         the generic type if the orginal type is a pointer type.
15745         (add_iv_value_candidates): Use sizetype for the step
15746         if type is a pointer type.
15747         (cand_value_at): Likewise.
15748         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
15749         for pointer types.
15750         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
15751         Don't convert the tem affine to the type.
15752         (add_elt_to_tree): Use sizetype for the step if a pointer.
15753         Use POINTER_PLUS_EXPR for pointers.
15754         (aff_combination_to_tree): Use sizetype for the step if a
15755         pointer.
15756
15757 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
15758
15759         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
15760         Remove commutativity hint.
15761
15762 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
15763
15764         PR c/35438
15765         PR c/35439
15766         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
15767         errorneous type.  Check that v is a VAR_DECL.
15768
15769         PR middle-end/35099
15770         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
15771
15772 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
15773
15774         PR tree-optimization/35494
15775         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
15776         may be overriden at link and run time.
15777
15778 2008-03-10  Richard Guenther  <rguenther@suse.de>
15779
15780         PR tree-optimization/34677
15781         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
15782         (poolify_tree): Likewise.
15783         (modify_expr_template): Likewise.
15784         (poolify_modify_stmt): Likewise.
15785         (insert_fake_stores): Handle all component-ref style stores
15786         in addition to INDIRECT_REF.  Also handle complex types.
15787         Do not poolify the inserted load.
15788         (realify_fake_stores): Do not rebuild the tree but only
15789         make it a SSA_NAME copy.
15790         (init_pre): Remove initialzation of modify_expr_template.
15791         Do not allocate modify_expr_node_pool.
15792         (fini_pre): Do not free modify_expr_node_pool.
15793
15794 2008-03-10  Paul Brook  <paul@codesourcery.com>
15795
15796         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
15797         to avoid conflicts.
15798
15799 2008-03-10  Paul Brook  <paul@codesourcery.com>
15800             Mark Shinwell  <shinwell@codesourcery.com>
15801
15802         * config/arm/cortex-r4.md: New.
15803         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
15804         insn attributes.
15805         * config/arm/arm.md: Include cortex-r4.md.
15806         (insn): Add smmls, sdiv and udiv values.
15807         (generic_sched): Don't use generic scheduling for Cortex-R4.
15808         (arm_issue_rate): New function.
15809         (TARGET_SCHED_ISSUE_RATE): Define.
15810
15811 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
15812
15813         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
15814
15815 2008-03-10  Richard Guenther  <rguenther@suse.de>
15816
15817         * tree-ssa-pre.c (get_sccvn_value): Simplify.
15818         (compute_avail): Do not add stmt uses to AVAIL_OUT.
15819
15820 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
15821
15822         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
15823         Set default to true.
15824
15825 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15826
15827         * c.opt (Wsynth): Deprecate.
15828         * doc/invoke.texi (Option Summary, Warning Options): Document
15829         -Wno-format-contains-nul.
15830
15831 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
15832
15833         PR target/35496
15834         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
15835         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
15836
15837 2008-03-09  Ira Rosen  <irar@il.ibm.com>
15838
15839         * config/rs6000/rs6000.c (builtin_description): Rename vector
15840         left shift operations.
15841         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
15842         (altivec_vsl<VI_char>): Rename to ...
15843         (ashl<mode>3): ... new name.
15844         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
15845         gen_ashlv4si3.
15846         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
15847
15848 2008-03-08  Richard Guenther  <rguenther@suse.de>
15849
15850         * coverage.h (tree_coverage_counter_addr): Declare.
15851         * coverage.c (tree_coverage_counter_addr): New function.
15852         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
15853         before using again.
15854         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
15855         (tree_gen_one_value_profiler): Likewise.
15856         (tree_gen_ic_profiler): Likewise.
15857         (tree_gen_average_profiler): Likewise.
15858         (tree_gen_ior_profiler): Likewise.
15859
15860 2008-03-08  Richard Guenther  <rguenther@suse.de>
15861
15862         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
15863         (vn_binary_op_insert): Likewise.
15864         (vn_unary_op_lookup): Likewise.
15865         (vn_unary_op_insert): Likewise.
15866         (vn_nary_op_lookup): Declare.
15867         (vn_nary_op_insert): Likewise.
15868         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
15869         and binary hashes, use a single obstack for unary_op_pool
15870         and binary_op_pool.
15871         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
15872         a single struct vn_nary_op_s.  Store tree code length and
15873         a variable number of operands.
15874         (struct vn_reference_op_struct): Remove unused op2.
15875         (vn_reference_op_eq): Do not compare op2.
15876         (vn_reference_op_compute_hash): Do not compute hash of op2.
15877         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
15878         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
15879         with vn_nary_op_compute_hash.
15880         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
15881         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
15882         vn_nary_op_lookup.
15883         (vn_unary_op_insert, vn_binary_op_insert): Replace with
15884         vn_nary_op_insert.
15885         (visit_unary_op): Call nary functions.
15886         (visit_binary_op): Likewise.
15887         (process_scc): Adjust for struct vn_tables_s changes.
15888         (allocate_vn_table): Likewise.
15889         (free_vn_table): Likewise.
15890         * tree-vn.c (vn_add): Call nary functions.
15891         (vn_lookup): Likewise.
15892
15893 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
15894
15895         PR target/35498
15896         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
15897         wdst back after sync_compare_and_swapqhi_internal.
15898
15899 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
15900
15901         PR target/22152
15902         * config/i386/i386-modes.def (V1DI): New vector mode.
15903         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
15904         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
15905         (MMXMODE248): Ditto.
15906         (MMXMODE): Add V1DI mode.
15907         (mmxvecsize): Change DI mode to V1DI mode.
15908         ("mov<mode>): Use MMXMODEI8 mode iterator.
15909         ("*mov<mode>_internal_rex64"): Ditto.
15910         ("*mov<mode>_internal"): Ditto.
15911         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
15912         ("mmx_sub<mode>3"): Ditto.
15913         ("mmx_adddi3"): Remove insn pattern.
15914         ("mmx_subdi3"): Ditto.
15915         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
15916         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
15917         ("mmx_ashl<mode>3"): Ditto.
15918         ("mmx_lshrdi3"): Remove insn pattern.
15919         ("mmx_ashldi3"): Ditto.
15920         * config/i386/i386.c (classify_argument): Handle V1DImode.
15921         (function_arg_advance_32): Ditto.
15922         (function_arg_32): Ditto.
15923         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
15924         mmx_addv1di3 insn pattern.
15925         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
15926         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
15927         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
15928         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
15929         Remove definitions of built-in functions.
15930         (V1DI_type_node): New node.
15931         (v1di_ftype_v1di_int): Ditto.
15932         (v1di_ftype_v1di_v1di): Ditto.
15933         (v2si_ftype_v2si_si): Ditto.
15934         (v4hi_ftype_v4hi_di): Remove node.
15935         (v2si_ftype_v2si_di): Ditto.
15936         (ix86_init_mmx_sse_builtins): Handle V1DImode.
15937         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
15938         Redefine builtins using def_builtin_const with *_ftype_*_int node.
15939         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
15940         Add new builtins using def_builtin_const.
15941         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
15942         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
15943         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
15944         * config/i386/mmintrin.h (__v1di): New typedef.
15945         (_mm_add_si64): Cast arguments to __v1di type.
15946         (_mm_sub_si64): Ditto.
15947         (_mm_sll_pi16): Cast __count to __v4hi type.
15948         (_mm_sll_pi32): Cast __count to __v2si type.
15949         (_mm_sll_si64): Cast arguments to __v1di type.
15950         (_mm_srl_pi16): Cast __count to __v4hi type.
15951         (_mm_srl_pi32): Cast __count to __v2si type.
15952         (_mm_srl_si64): Cast arguments to __v1di type.
15953         (_mm_sra_pi16): Cast __count to __v4hi type.
15954         (_mm_sra_pi32): Cast __count to __v2si type.
15955         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
15956         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
15957         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
15958         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
15959         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
15960         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
15961         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
15962         (_mm_srai_pi32): Use __builtin_ia32_psradi.
15963         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
15964         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
15965         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
15966         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
15967
15968 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
15969
15970         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
15971
15972 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
15973
15974         PR target/35373
15975         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
15976         reg+const addressing for Altivec modes.  Don't generate reg+reg
15977         addressing for TFmode or TDmode quantities.
15978
15979 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
15980
15981         * c-common.c (vector_types_convertible_p): Call langhook
15982         instead of comptypes.
15983
15984 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15985
15986         PR tree-opt/35402
15987         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
15988         integral and scalar float variables which have a
15989         NULL DECL_INITIAL.
15990
15991 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
15992
15993         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
15994         dwarf_register_span hook when emitting unwind information for
15995         register-to-memory saves.
15996         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
15997         (rs6000_frame_related): Remove call to spe_synthesize_frame.
15998
15999 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
16000
16001         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
16002         for the same VAR_DECL.
16003
16004 2008-03-06  Tom Tromey  <tromey@redhat.com>
16005
16006         * treelang: Delete.
16007         * doc/standards.texi (Standards): Don't mention treelang.
16008         * doc/invoke.texi (Overall Options): Don't mention treelang.
16009         * doc/install.texi (Prerequisites): Don't mention bison or
16010         treelang.
16011         (Configuration): Don't mention treelang.
16012         (Building): Likewise.
16013         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
16014
16015 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
16016
16017         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
16018         word-extractions out of a multi-word object.
16019
16020 2008-03-06  Richard Guenther  <rguenther@suse.de>
16021
16022         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
16023         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
16024         result type and precision.
16025         * expr.c (get_inner_reference): Set unsignedp based on the result
16026         type of BIT_FIELD_REF.
16027         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
16028         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
16029         (try_instantiate_multiple_fields): Likewise.  Use the correct type
16030         for BIT_FIELD_REF.
16031         (sra_build_assignment): Likewise.
16032         (sra_build_elt_assignment): Likewise.
16033         (sra_explode_bitfield_assignment): Likewise.
16034         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
16035         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
16036         set BIT_FIELD_REF_UNSIGNED.
16037         (vectorizable_load): Likewise.
16038
16039 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
16040
16041         * cse.c (cse_extended_basic_block): Invalidate artificial defs
16042         at bb start.
16043
16044 2008-03-06  Richard Guenther  <rguenther@suse.de>
16045
16046         * alias.c (struct alias_set_entry): Move has_zero_child field
16047         to pack with alias_set.
16048
16049 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
16050
16051         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
16052         32bit host.
16053
16054 2008-03-05  Ian Lance Taylor  <iant@google.com>
16055
16056         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
16057
16058 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
16059
16060         * fwprop.c (update_df): Support width and offset parameters of
16061         df_ref_create.
16062         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
16063         global_conflicts): Change DF_REF_EXTRACT to either
16064         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
16065         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
16066         * df-scan.c (df_ref_record, df_defs_record,
16067         df_ref_create_structure, df_def_record_1, df_uses_record,
16068         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
16069         df_bb_refs_collect, df_entry_block_defs_collect,
16070         df_exit_block_uses_collect): Support new width and offset fields.
16071         (ref_extract_pool): New storage pool.
16072         (df_free_ref): New function.
16073         (df_reg_chain_unlink, df_free_collection_rec,
16074         df_sort_and_compress_refs): Call df_free_ref.
16075         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
16076         of df_ref_extract.
16077         (df_ref_create_structure): Allocate df_ref_extract if offset and
16078         width fields are used.
16079         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
16080         (df_uses_record): Get offset and width from ZERO_EXTRACT
16081         and SIGN_EXTRACT.
16082         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
16083         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
16084         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
16085         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
16086         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
16087         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
16088         (df_ref_extract): New structure.
16089         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
16090         (df_ref_create): Add width and offset parameters.
16091
16092 2008-03-05  Richard Guenther  <rguenther@suse.de>
16093
16094         * tree-ssa-structalias.c (get_constraint_for_component_ref):
16095         Use ranges_overlap_p.
16096         (offset_overlaps_with_access): Rename
16097         to ranges_overlap_p and move ...
16098         * tree-flow-inline.h (ranges_overlap_p): ... here.
16099
16100         * tree.h (get_inner_reference, handled_component_p): Update
16101         comments.
16102
16103         * tree.h (record_component_aliases, get_alias_set,
16104         alias_sets_conflict_p, alias_sets_must_conflict_p,
16105         objects_must_conflict_p): Move declarations ...
16106         * alias.h (record_component_aliases, get_alias_set,
16107         alias_sets_conflict_p, alias_sets_must_conflict_p,
16108         objects_must_conflict_p): ... here.
16109         Include coretypes.h.
16110         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
16111
16112 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
16113
16114         * cfg.c: Include tree-flow.h.
16115         (remove_edge_raw): Call redirect_edge_var_map_clear.
16116         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
16117         * tree-flow-inline.h (redirect_edge_var_map_def): New.
16118         (redirect_edge_var_map_result): New.
16119         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
16120         PENDING_STMT use with redirect_edge_var_map_*.
16121         * tree-ssa.c (edge_var_maps): New definition.
16122         (redirect_edge_var_map_add): New.
16123         (redirect_edge_var_map_clear): New.
16124         (redirect_edge_var_map_dup): New.
16125         (redirect_edge_var_map_vector): New.
16126         (redirect_edge_var_map_destroy): New.
16127         (ssa_redirect_edge): Replace PENDING_STMT use with
16128         redirect_edge_var_map_*.
16129         (flush_pending_stmts): Same.
16130         (delete_tree_ssa): Destroy edge var map.
16131         * tree-flow.h (struct _edge_var_map): New.
16132         Define edge_var_map vector type.
16133         Declare redirect_edge_var_map_* prototypes.
16134         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
16135         * tree-cfg.c (reinstall_phi_args): Replace
16136         PENDING_STMT use with redirect_edge_var_map_*.
16137
16138 2008-03-05  Richard Guenther  <rguenther@suse.de>
16139
16140         PR tree-optimization/35472
16141         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
16142         whose single use_stmt has a overlapping set of loaded and
16143         stored symbols as that use_stmt might be a noop assignment then.
16144
16145 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
16146
16147         * gthr-rtems.h: Implement __gthread_mutex_destroy.
16148
16149 2008-03-05  Richard Guenther  <rguenther@suse.de>
16150
16151         PR c++/35336
16152         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
16153         should be constants.
16154         * tree-cfg.c (verify_expr): Verify it.
16155         * fold-const.c (fold_truthop): Remove code generating
16156         BIT_FIELD_REFs of structure bases.
16157         (fold_binary): Likewise.
16158         (fold_ternary): Position and size of BIT_FIELD_REFs are
16159         always host integers.
16160         (make_bit_field_ref): Remove.
16161         (optimize_bit_field_compare): Remove.
16162         (all_ones_mask_p): Remove.
16163
16164 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
16165
16166         PR gcc/33009
16167         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
16168         (split_block_and_df_analyze): New. Split basic block and rebuild
16169         dataflow.
16170         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
16171         SPLIT_BLOCK.
16172         (split_pattern_seq): Likewise.
16173         (erase_matching_seqs): Likewise.
16174         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
16175
16176 2008-03-04  Geoff Keating  <geoffk@apple.com>
16177
16178         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
16179         declaration and code.
16180         (tree_invalid_nonnegative_warnv_p): Likewise.
16181
16182 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
16183
16184         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
16185         examples.  Truncate option-names then causing overfull hbox.
16186
16187 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16188
16189         PR target/35222
16190         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
16191         on hpux10.
16192         * configure: Rebuilt.
16193
16194 2008-03-04  Rafael Espindola  <espindola@google.com>
16195
16196         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
16197         (tree_unary_nonnegative_warnv_p): New.
16198         (tree_binary_nonnegative_warnv_p): New.
16199         (tree_single_nonnegative_warnv_p): New.
16200         (tree_invalid_nonnegative_warnv_p): New.
16201         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
16202
16203 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16204
16205         PR 28322
16206         * opts.c (handle_option): Postpone 'unknown option' errors only for
16207         warning options.
16208
16209 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
16210
16211         PR target/35453
16212         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
16213         (_SIDD_XXX): This.
16214
16215 2008-03-04  Rafael Espindola  <espindola@google.com>
16216
16217         * fold-const.c (tree_unary_nonzero_warnv_p): New.
16218         (tree_binary_nonzero_warnv_p): New.
16219         (tree_single_nonzero_warnv_p): New.
16220         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
16221
16222 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
16223
16224         PR middle-end/35456
16225         * fold-const.c (fold_cond_expr_with_comparison): Prevent
16226         transformations for modes that have signed zeros.
16227         * ifcvt.c (noce_try_abs): Ditto.
16228
16229 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
16230
16231         * config/i386/i386.c (override_options): Force
16232         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
16233
16234 2008-03-04  Jan Hubicka  <jh@suse.cz>
16235
16236         PR c++/35262
16237         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
16238         in last commit.
16239
16240 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
16241
16242         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
16243         label to probe the stack.
16244
16245 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
16246
16247         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
16248         (__gthr_win32_mutex_destroy): Declare.
16249         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
16250         __gthr_win32_mutex_destroy.
16251         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
16252
16253 2008-03-03  Jan Hubicka  <jh@suse.cz>
16254
16255         PR c++/35262
16256         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
16257         aggressive on inlining cold calls.
16258
16259 2008-03-03  Richard Guenther  <rguenther@suse.de>
16260
16261         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
16262         struct copies into the expression table.
16263         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
16264         (try_to_simplify): Likewise.
16265         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
16266         integral and pointer arguments which do not change the
16267         precision to NOP_EXPRs.
16268         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
16269         VIEW_CONVERT_EXPR case.
16270
16271 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
16272
16273         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
16274         defined in a loop at depth 0 is invariant.
16275         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
16276         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
16277         be called at loop depth 0.
16278
16279 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
16280
16281         PR driver/35420
16282         * gcc.c (process_command): Update copyright notice dates.
16283         * gcov.c (print_version): Likewise.
16284         * gcov-dump.c (print_version): Likewise.
16285         * mips-tfile.c (main): Likewise.
16286         * mips-tdump.c (main): Likewise.
16287
16288 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16289
16290         PR 24924
16291         * c-common.c (flag_permissive): Delete.
16292         (constant_expression_warnings): Check flags first.
16293         (constant_expression_error): New.
16294         * c-common.h (flag_permissive): Delete.
16295         (constant_expression_error): Declare.
16296         * flags.h (flag_permissive): Declare. Update description.
16297         * diagnostic.c (pedwarn): Update.
16298         (permerror): New.
16299         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
16300         (permissive_error_kind): New.
16301         * toplev.c (flag_permissive): Define. Update description.
16302         * toplev.h (permissive_error_kind): Declare.
16303         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
16304         (pedwarn_c90): Use pedantic_warning_kind.
16305         * c-opts.c (c_common_post_options): flag_permissive does not affect
16306         flag_pedantic_errors.
16307
16308 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
16309
16310         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
16311         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
16312         __absvsi2, __absvDI2): Use unsigned arithmetic.
16313
16314 2008-03-02  Andi Kleen  <ak@suse.de>
16315             Richard Guenther  <rguenther@suse.de>
16316
16317         * struct-equiv.c: Remove file.
16318         * cfg_cleanup.c (condjump_equiv_p): Remove.
16319         * Makefile.in (OBJS-common): Remove struct-equiv.o.
16320         (struct-equiv.o): Remove rule.
16321         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
16322         insns_match_p, struct_equiv_block_eq, struct_equiv_init,
16323         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
16324
16325 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
16326
16327         * ifcvt.c (noce_process_if_block): Try to handle only the then
16328         block if the else block exists but isn't suitable.
16329
16330 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
16331
16332         PR gcc/35063
16333         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
16334         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
16335         regression from previous patch.
16336
16337 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
16338
16339         PR gcc/35063
16340         * gthr.h: Add __gthread_mutex_destroy as a function that must be
16341         implemented.
16342         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
16343         * gthr-single.h (__gthread_mutex_destroy): Likewise.
16344         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
16345         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
16346         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
16347         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
16348         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
16349         (__gthread_mutex_destroy_function): Rename to
16350         __gthread_mutex_destroy.
16351         * gthr-dce.h (__gthread_mutex_destroy): Call
16352         pthread_mutex_destroy.
16353         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
16354         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
16355         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
16356
16357 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
16358
16359         * df-scan.c (df_ref_chain_change_bb): Simplify.
16360         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
16361         set_block_for_insn if there's any change.
16362         * df.h ((df_insn_change_bb): Fix prototype.
16363         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
16364         df_insn_change_bb, don't call set_block_for_insn.
16365         * emit-rtl.c (reorder_insns): Likewise.
16366         * haifa-sched.c (move_insn): Likewise.
16367
16368 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
16369
16370         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
16371
16372 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
16373
16374         * tree-flow-inline.h (next_readonly_imm_use): Return
16375         NULL_USE_OPERAND_P after the end.
16376
16377 2008-03-01  Richard Guenther  <rguenther@suse.de>
16378
16379         PR tree-optimization/35411
16380         * tree-sra.c (sra_build_assignment): Split conversion to
16381         final type to a separate statement if we are not assigning
16382         to a register.
16383
16384 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
16385
16386         * fold-const.c (fold_convertible_p): Correct the logic to follow
16387         that in fold_convert().
16388
16389 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
16390
16391         PR c++/35315
16392         * tree-inline.c (build_duplicate_type): When we make a
16393         duplicate type, make it unique in the canonical types system.
16394
16395 2008-02-29  Tom Tromey  <tromey@redhat.com>
16396
16397         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
16398         input_file_stack_history, input_file_stack_restored): Remove.
16399         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
16400         * input.h (struct file_stack): Remove.
16401         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
16402         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
16403         Likewise.
16404         * diagnostic.h (struct diagnostic_context) <last_module>: Change
16405         type.
16406         (diagnostic_last_module_changed): Add 'map' argument.
16407         (diagnostic_set_last_function): Likewise.
16408         * diagnostic.c (undiagnostic_report_current_module): Iterate using
16409         line map, not input_file_stack.
16410         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
16411
16412 2008-02-29  Paul Brook  <paul@codesourcery.com>
16413
16414         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
16415
16416 2008-02-29  Paul Brook  <paul@codesourcery.com>
16417
16418         * config/arm/ieee754-df.S (muldf3): Use RET macros.
16419
16420 2008-02-29  Richard Guenther  <rguenther@suse.de>
16421
16422         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
16423         vn_lookup_or_add.
16424         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
16425         value for comparing for a store match.
16426         (simplify_unary_expression): Do nothing for SSA_NAMEs.
16427         (try_to_simplify): Do not do a full-blown reference lookup.
16428
16429 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
16430
16431         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
16432         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
16433
16434         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
16435
16436 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
16437
16438         * tree-loop-linear.c (try_interchange_loops): Compare memory access
16439         strides against cache sizes.
16440
16441 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
16442
16443         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
16444         constant to fpul.
16445
16446 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
16447
16448         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
16449         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
16450         is smaller than the original promoted value.
16451         (simplify_subreg): If OP is a SUBREG, try to preserve its
16452         SUBREG_PROMOTED_VAR_P information.
16453
16454 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
16455
16456         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
16457         (VN_INFO_GET): Allocate new objects on the obstack.
16458         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
16459         for rpo_numbers_temp, for consistency.
16460         (free_scc_vn): Free the obstack.
16461
16462 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
16463
16464         * doc/invoke.texi: Document -ftree-loop-distribution.
16465         * tree-loop-distribution.c: New.
16466         * tree-pass.h (pass_loop_distribution): New.
16467         * graphds.h (struct graph): Add htab_t indices.
16468         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
16469         * tree-vectorizer.c (rename_variables_in_loop): Extern.
16470         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
16471         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
16472         * tree-data-ref.c (debug_data_dependence_relations): New.
16473         (dump_data_dependence_relation): Also print data references.
16474         (free_data_ref): Extern.
16475         (same_access_functions): Moved...
16476         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
16477         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
16478         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
16479         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
16480         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
16481         (stmts_from_loop): Skip LABEL_EXPR.
16482         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
16483         New.
16484         (build_rdg): Initialize rdg->indices htab.
16485         (free_rdg, stores_from_loop, ref_base_address,
16486         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
16487         have_similar_memory_accesses_1, ref_base_address_1,
16488         remove_similar_memory_refs): New.
16489         * tree-data-ref.h: Depend on tree-chrec.h.
16490         (debug_data_dependence_relations, free_data_ref): Declared.
16491         (same_access_functions): ... here.
16492         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
16493         New.
16494         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
16495         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
16496         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
16497         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
16498         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
16499         rdg_vertex_for_stmt): Declared.
16500         (struct rdg_edge): Add level.
16501         (RDGE_LEVEL): New.
16502         (free_rdg, stores_from_loop, remove_similar_memory_refs,
16503         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
16504         Declared.
16505         (rdg_has_similar_memory_accesses): New.
16506         * tree-vect-analyze.c: Remove unused static decls.
16507         * lambda.h (dependence_level): New.
16508         * common.opt (ftree-loop-distribution): New.
16509         * tree-flow.h (mark_virtual_ops_in_bb,
16510         slpeel_tree_duplicate_loop_to_edge_cfg,
16511         rename_variables_in_loop): Declared.
16512         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
16513         (OBJS-common): Add tree-loop-distribution.o.
16514         (tree-loop-distribution.o): New rule.
16515         * tree-cfg.c (mark_virtual_ops_in_bb): New.
16516         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
16517         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
16518
16519 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
16520
16521         PR target/33963
16522         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
16523         other than structures and unions.
16524
16525 2008-02-28  Richard Guenther  <rguenther@suse.de>
16526
16527         Revert:
16528         2008-02-26  Richard Guenther  <rguenther@suse.de>
16529
16530         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
16531         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
16532         (lookup_decl_from_uid): Declare.
16533         (remove_decl_from_map): Likewise.
16534         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
16535         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
16536         (decl_for_uid_map): New global hashtable mapping DECL_UID
16537         to the decl tree.
16538         (init_ttree): Allocate it.
16539         (insert_decl_to_uid_decl_map): New helper function.
16540         (make_node_stat): Insert new decls into the map.
16541         (copy_node_stat): Likewise.
16542         (lookup_decl_from_uid): New function.
16543         (remove_decl_from_map): Likewise.
16544         (print_decl_for_uid_map_statistics): New helper.
16545         (dump_tree_statistics): Call it.
16546
16547         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
16548         (referenced_var_iterator): Adjust.
16549         (FOR_EACH_REFERENCED_VAR): Adjust.
16550         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
16551         (num_referenced_vars): Adjust.
16552         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
16553         (first_referenced_var): Remove.
16554         (end_referenced_vars_p): Likewise.
16555         (next_referenced_var): Likewise.
16556         (referenced_var_iterator_set): New helper function.
16557         * tree-dfa.c (referenced_var_lookup): Adjust.
16558         (referenced_var_check_and_insert): Likewise.
16559         (remove_referenced_var): Likewise.
16560         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
16561         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
16562         (verify_call_clobbering): Likewise.
16563         (verify_memory_partitions): Likewise.
16564         (init_tree_ssa): Allocate bitmap instead of hashtable for
16565         referenced_vars.
16566         (delete_tree_ssa): Adjust.
16567         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
16568         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
16569         (compute_tag_properties): Likewise.
16570         (set_initial_properties): Likewise.
16571         (find_partition_for): Likewise.
16572         (update_reference_counts): Likewise.
16573         (dump_may_aliases_for): Likewise.
16574         * tree-ssa-operands.c (add_virtual_operand): Likewise.
16575         (add_call_clobber_ops): Likewise.
16576         (add_call_read_ops): Likewise.
16577         (get_asm_expr_operands): Likewise.
16578         * tree-into-ssa.c (dump_decl_set): Likewise.
16579         (update_ssa): Likewise.
16580         * tree-sra.c (scan_function): Likewise.
16581         (decide_instantiations): Likewise.
16582         (scalarize_parms): Likewise.
16583         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
16584         (dsa_named_for): Likewise.
16585         * tree-ssa-structalias.c (update_alias_info): Likewise.
16586         (merge_smts_into): Likewise.
16587
16588 2008-02-27  David Daney  <ddaney@avtrex.com>
16589
16590         PR target/34409
16591         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
16592         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
16593         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
16594         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
16595         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
16596
16597 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
16598
16599         PR target/25477
16600         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
16601         (BUILT_IN_NEXTTOWARD): Remove.
16602         (BUILT_IN_NEXTTOWARDF): Ditto.
16603         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
16604         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
16605
16606 2008-02-27  Tom Tromey  <tromey@redhat.com>
16607
16608         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
16609         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
16610
16611 2008-02-27  Jan Beulich  <jbeulich@novell.com>
16612
16613         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
16614         update the respective field on newdecl.
16615
16616 2008-02-27  Revital Eres  <eres@il.ibm.com>
16617
16618         PR rtl-optimization/34999
16619         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
16620         crossing edges that ends with a call insn.
16621         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
16622         call insn and clear the EDGE_CROSSING flag of the crossing edge
16623         when fixing fallthru edges.
16624
16625 2008-02-27  Richard Guenther  <rguenther@suse.de>
16626
16627         PR middle-end/35390
16628         * fold-const.c (fold_unary): Return the correct argument,
16629         converted to the result type.
16630
16631 2008-02-27  Richard Guenther  <rguenther@suse.de>
16632
16633         PR middle-end/34971
16634         * expr.c (expand_expr_real_1): Assert on rotates that operate
16635         on partial modes.
16636         * fold-const.c (fold_binary): Use the types precision, not the
16637         bitsize of the mode if folding rotate expressions.  Build rotates
16638         only for full modes.
16639
16640 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
16641
16642         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
16643         and CPP_PRAGMA_EOL.
16644         * c-pragma.c (pragma_ns_name): New typedef.
16645         (registered_pp_pragmas): New variable.
16646         (c_pp_lookup_pragma): New function.
16647         (c_register_pragma_1): If flag_preprocess_only, do nothing
16648         for non-expanded pragmas, for expanded ones push pragma's
16649         namespace and name into registered_pp_pragmas vector.
16650         (c_invoke_pragma_handler): Register OpenMP pragmas even when
16651         flag_preprocess_only, don't register GCC pch_preprocess
16652         pragma if flag_preprocess_only.
16653         * c-opts.c (c_common_init): Call init_pragma even if
16654         flag_preprocess_only.
16655         * c-pragma.c (c_pp_lookup_pragma): New prototype.
16656         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
16657         cpp_register_pragma if flag_preprocess_only.
16658
16659 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16660
16661         PR c/28800
16662         * c-parser.c (c_parser_translation_unit): Warn for empty
16663         translation unit, not empty source file.
16664
16665 2008-02-26  Paul Brook  <paul@codesourcery.com>
16666
16667         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
16668         operand for Thumb-2.
16669         * config/arm/arm.h (reg_class): Add CORE_REGS.
16670         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
16671         (BASE_REG_CLASS): Use CORE_REGS.
16672         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
16673         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
16674         (REGNO_OK_FOR_INDEX_P): Exclude SP.
16675         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
16676         ARM_REGNO_OK_FOR_INDEX_P.
16677         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
16678         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
16679         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
16680         (ldm/stm peepholes): Ditto.
16681         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
16682         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
16683         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
16684         * config/arm/constraints.md: Enable "k" constraint on ARM.
16685
16686 2008-02-27  Ben Elliston  <bje@au.ibm.com>
16687
16688         * config/rs6000/rs6000.c: Annotate cache line size field in all
16689         instances of struct processor_costs.
16690
16691 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
16692
16693         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
16694         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
16695         jump_bypass): New counters.
16696         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
16697         * dce.c (gate_ud_dce): Same.
16698         (gate_fast_dce): Same.
16699         * dse.c (gate_dse1): New function.
16700         (gate_dse2): New function.
16701         (gate_dse): Merge results of new gate functions.
16702         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
16703         (gate_handle_jump_bypass): Add dbg_cnt.
16704         (gate_handle_gcse): Add dbg_cnt.
16705         * ifcvt.c (gate_handle_if_conversion): Same.
16706         (gate_handle_if_after_combine): Same.
16707         (gate_handle_if_after_reload): Same.
16708         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
16709
16710 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
16711
16712         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
16713         line sizes.
16714         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
16715
16716 2008-02-26  Jason Merrill  <jason@redhat.com>
16717
16718         PR c++/35315
16719         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
16720         alone if it's the naming decl for the type's main variant.
16721
16722 2008-02-26  Tom Tromey  <tromey@redhat.com>
16723
16724         * system.h (USE_MAPPED_LOCATION): Poison.
16725         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
16726         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
16727         (make_goto_expr_edges): Likewise.
16728         (remove_bb): Likewise.
16729         (execute_warn_function_return): Likewise.
16730         * basic-block.h (struct edge_def) <goto_locus>: Change type to
16731         location_t.
16732         * c-common.c (fname_decl): Remove old location code.
16733         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
16734         location code.
16735         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
16736         variant.
16737         (ASM_INPUT_SOURCE_LOCATION): Likewise.
16738         (gen_rtx_ASM_INPUT): Likewise.
16739         (gen_rtx_ASM_INPUT_loc): Likewise.
16740         (get_rtx_asm_OPERANDS): Remove.
16741         * cfglayout.c (insn_locators_alloc): Remove old location code.
16742         (set_curr_insn_source_location): Likewise.
16743         (curr_insn_locator): Likewise.
16744         * print-tree.c (print_node): Remove old location code.
16745         * tree-mudflap.c (mf_varname_tree): Remove old location code.
16746         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
16747         * cfgexpand.c (expand_gimple_cond_expr): Don't use
16748         location_from_locus.
16749         (construct_exit_block): Remove old location code.
16750         * emit-rtl.c (force_next_line_note): Remove old location code.
16751         * profile.c (branch_prob): Remove old location code.
16752         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
16753         LOC_LINE): Remove old-location variants.
16754         * langhooks.c (lhd_print_error_function): Remove old location
16755         code.
16756         * configure, config.in: Rebuilt.
16757         * configure.ac (--enable-mapped-location): Remove.
16758         * c-decl.c (c_init_decl_processing): Remove old location code.
16759         (finish_function): Likewise.
16760         * recog.c (decode_asm_operands): Remove old location code.
16761         * c-pch.c (c_common_read_pch): Remove old location code.
16762         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
16763         variants.
16764         * gimple-low.c (lower_function_body): Remove old location code.
16765         * toplev.c (unknown_location): Remove.
16766         (push_srcloc): Remove old-location variant.
16767         (process_options): Remove old location code.
16768         (lang_dependent_init): Likewise.
16769         * input.h (UNKNOWN_LOCATION): Move definition.
16770         (location_t): Undeprecate.
16771         (source_locus): Remove.
16772         (location_from_locus): Remove.
16773         (struct location_s): Remove.
16774         Remove all old-location code.
16775         (input_line, input_filename): Remove.
16776         * final.c (final_scan_insn): Remove old location code.
16777         * diagnostic.c (diagnostic_build_prefix): Remove
16778         USE_MAPPED_LOCATION test.
16779         * tree.h (gimple_stmt) <locus>: Now a location_t.
16780         (tree_exp) <locus>: Likewise.
16781         (DECL_IS_BUILTIN): Remove old-location variant.
16782         (annotate_with_file_line, annotate_with_locus): Likewise.
16783         (expr_locus, set_expr_locus): Update.
16784         * tree.c (build1_stat): Remove old location code.
16785         (last_annotated_node): Remove.
16786         (annotate_with_file_line): Remove old-location variant.
16787         (annotate_with_locus): Likewise.
16788         (expr_location): Remove old location code.
16789         (set_expr_location): Likewise.
16790         (expr_has_location): Likewise.
16791         (expr_locus): Likewise.
16792         (set_expr_locus): Likewise.
16793         (expr_filename): Don't use location_from_locus.
16794         (expr_lineno): Likewise.
16795         * rtl-error.c (location_for_asm): Remove old location code.
16796         * c-lex.c (cb_line_change): Remove old location code.
16797         (fe_file_change): Likewise.
16798         (cb_def_pragma): Likewise.
16799         (c_lex_with_flags): Likewise.
16800         * gengtype.c (do_typedef): Don't special-case location types.
16801         (define_location_structures): Remove.
16802         (main): Don't call define_location_structures.
16803         * tree-pretty-print.c (dump_implicit_edges): Remove old location
16804         code.
16805
16806 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16807
16808         PR 26264
16809         * builtins.def (BUILT_IN_STDARG_START): Remove.
16810         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
16811         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
16812         * tree-inline.c (inline_forbidden_p_1): Likewise.
16813
16814 2008-02-26  Richard Guenther  <rguenther@suse.de>
16815
16816         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
16817         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
16818         (lookup_decl_from_uid): Declare.
16819         (remove_decl_from_map): Likewise.
16820         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
16821         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
16822         (decl_for_uid_map): New global hashtable mapping DECL_UID
16823         to the decl tree.
16824         (init_ttree): Allocate it.
16825         (insert_decl_to_uid_decl_map): New helper function.
16826         (make_node_stat): Insert new decls into the map.
16827         (copy_node_stat): Likewise.
16828         (lookup_decl_from_uid): New function.
16829         (remove_decl_from_map): Likewise.
16830         (print_decl_for_uid_map_statistics): New helper.
16831         (dump_tree_statistics): Call it.
16832
16833         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
16834         (referenced_var_iterator): Adjust.
16835         (FOR_EACH_REFERENCED_VAR): Adjust.
16836         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
16837         (num_referenced_vars): Adjust.
16838         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
16839         (first_referenced_var): Remove.
16840         (end_referenced_vars_p): Likewise.
16841         (next_referenced_var): Likewise.
16842         (referenced_var_iterator_set): New helper function.
16843         * tree-dfa.c (referenced_var_lookup): Adjust.
16844         (referenced_var_check_and_insert): Likewise.
16845         (remove_referenced_var): Likewise.
16846         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
16847         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
16848         (verify_call_clobbering): Likewise.
16849         (verify_memory_partitions): Likewise.
16850         (init_tree_ssa): Allocate bitmap instead of hashtable for
16851         referenced_vars.
16852         (delete_tree_ssa): Adjust.
16853         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
16854         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
16855         (compute_tag_properties): Likewise.
16856         (set_initial_properties): Likewise.
16857         (find_partition_for): Likewise.
16858         (update_reference_counts): Likewise.
16859         (dump_may_aliases_for): Likewise.
16860         * tree-ssa-operands.c (add_virtual_operand): Likewise.
16861         (add_call_clobber_ops): Likewise.
16862         (add_call_read_ops): Likewise.
16863         (get_asm_expr_operands): Likewise.
16864         * tree-into-ssa.c (dump_decl_set): Likewise.
16865         (update_ssa): Likewise.
16866         * tree-sra.c (scan_function): Likewise.
16867         (decide_instantiations): Likewise.
16868         (scalarize_parms): Likewise.
16869         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
16870         (dsa_named_for): Likewise.
16871         * tree-ssa-structalias.c (update_alias_info): Likewise.
16872         (merge_smts_into): Likewise.
16873
16874 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16875
16876         PR 34351
16877         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
16878         * c-opts.c (c_common_handle_option): Wall enables
16879         Wvolatile-register-var.
16880         * common.opt: Move Wvolatile-register-var to...
16881         * c.opt: ...here.
16882
16883 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16884
16885         * common.opt (Wlarger-than=): New.
16886         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
16887         -Wlarger-than=.
16888         * opts.c (common_handle_option): Handle -Wlarger-than=.
16889         * optc-gen.awk: Likewise.
16890         * opth-gen.awk: Likewise.
16891         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
16892         * tree-optimize.c (tree_rest_of_compilation): Likewise.
16893
16894 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16895
16896         * c-common.c (match_case_to_enum_1): Add appropriate
16897         OPT_W* parameter to warning.
16898         (c_do_switch_warnings): Likewise.
16899         * c-typeck.c (warning_init): Add one more parameter following
16900         'warning' function.
16901         (push_init_level): Update call to warning_init.
16902         (pop_init_level): Likewise.
16903         (add_pending_init): Likewise.
16904         (output_init_element: Likewise.
16905
16906 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16907
16908         PR 28322
16909         * toplev.c (toplev_main): If there are warnings or error, print
16910         errors for ignored options.
16911         * opts.c (ignored_options): New static variable.
16912         (postpone_unknown_option_error): New.
16913         (print_ignored_options): New.
16914         (handle_option): Postpone errors for unknown -Wno-* options.
16915         * opts.h (print_ignored_options): Declare.
16916
16917 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
16918
16919         * config/mips/mips.md (loadgp_blockage, blockage): Change type
16920         to "ghost".
16921
16922 2008-02-25  Richard Guenther  <rguenther@suse.de>
16923
16924         Revert:
16925         2008-02-25  Richard Guenther  <rguenther@suse.de>
16926
16927         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
16928         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
16929         (lookup_decl_from_uid): Declare.
16930         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
16931         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
16932         (decl_for_uid_map): New global hashtable mapping DECL_UID
16933         to the decl tree.
16934         (init_ttree): Allocate it.
16935         (insert_decl_to_uid_decl_map): New helper function.
16936         (make_node_stat): Insert new decls into the map.
16937         (copy_node_stat): Likewise.
16938         (lookup_decl_from_uid): New function.
16939         (print_decl_for_uid_map_statistics): New helper.
16940         (dump_tree_statistics): Call it.
16941
16942         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
16943         (referenced_var_iterator): Adjust.
16944         (FOR_EACH_REFERENCED_VAR): Adjust.
16945         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
16946         (num_referenced_vars): Adjust.
16947         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
16948         (first_referenced_var): Remove.
16949         (end_referenced_vars_p): Likewise.
16950         (next_referenced_var): Likewise.
16951         (referenced_var_iterator_set): New helper function.
16952         * tree-dfa.c (referenced_var_lookup): Adjust.
16953         (referenced_var_check_and_insert): Likewise.
16954         (remove_referenced_var): Likewise.
16955         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
16956         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
16957         (verify_call_clobbering): Likewise.
16958         (verify_memory_partitions): Likewise.
16959         (init_tree_ssa): Allocate bitmap instead of hashtable for
16960         referenced_vars.
16961         (delete_tree_ssa): Adjust.
16962         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
16963         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
16964         (compute_tag_properties): Likewise.
16965         (set_initial_properties): Likewise.
16966         (find_partition_for): Likewise.
16967         (update_reference_counts): Likewise.
16968         (dump_may_aliases_for): Likewise.
16969         * tree-ssa-operands.c (add_virtual_operand): Likewise.
16970         (add_call_clobber_ops): Likewise.
16971         (add_call_read_ops): Likewise.
16972         (get_asm_expr_operands): Likewise.
16973         * tree-into-ssa.c (dump_decl_set): Likewise.
16974         (update_ssa): Likewise.
16975         * tree-sra.c (scan_function): Likewise.
16976         (decide_instantiations): Likewise.
16977         (scalarize_parms): Likewise.
16978         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
16979         (dsa_named_for): Likewise.
16980         * tree-ssa-structalias.c (update_alias_info): Likewise.
16981         (merge_smts_into): Likewise.
16982
16983 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
16984
16985         PR fortran/29549
16986         * doc/invoke.texi (-fcx-limited-range): Document new option.
16987         * toplev.c (process_options): Handle -fcx-fortran-rules.
16988         * common.opt: Add documentation for -fcx-fortran-rules.
16989
16990 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
16991
16992         PR c/35162
16993         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
16994         actual behaviour and C99.
16995
16996 2008-02-26  Ben Elliston  <bje@au.ibm.com>
16997
16998         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
16999         (ASM_CPU_POWER6_SPEC): Likewise.
17000         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
17001         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
17002         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
17003
17004 2008-02-25  Richard Guenther  <rguenther@suse.de>
17005
17006         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
17007         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
17008         (lookup_decl_from_uid): Declare.
17009         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
17010         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
17011         (decl_for_uid_map): New global hashtable mapping DECL_UID
17012         to the decl tree.
17013         (init_ttree): Allocate it.
17014         (insert_decl_to_uid_decl_map): New helper function.
17015         (make_node_stat): Insert new decls into the map.
17016         (copy_node_stat): Likewise.
17017         (lookup_decl_from_uid): New function.
17018         (print_decl_for_uid_map_statistics): New helper.
17019         (dump_tree_statistics): Call it.
17020
17021         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
17022         (referenced_var_iterator): Adjust.
17023         (FOR_EACH_REFERENCED_VAR): Adjust.
17024         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
17025         (num_referenced_vars): Adjust.
17026         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
17027         (first_referenced_var): Remove.
17028         (end_referenced_vars_p): Likewise.
17029         (next_referenced_var): Likewise.
17030         (referenced_var_iterator_set): New helper function.
17031         * tree-dfa.c (referenced_var_lookup): Adjust.
17032         (referenced_var_check_and_insert): Likewise.
17033         (remove_referenced_var): Likewise.
17034         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
17035         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
17036         (verify_call_clobbering): Likewise.
17037         (verify_memory_partitions): Likewise.
17038         (init_tree_ssa): Allocate bitmap instead of hashtable for
17039         referenced_vars.
17040         (delete_tree_ssa): Adjust.
17041         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
17042         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
17043         (compute_tag_properties): Likewise.
17044         (set_initial_properties): Likewise.
17045         (find_partition_for): Likewise.
17046         (update_reference_counts): Likewise.
17047         (dump_may_aliases_for): Likewise.
17048         * tree-ssa-operands.c (add_virtual_operand): Likewise.
17049         (add_call_clobber_ops): Likewise.
17050         (add_call_read_ops): Likewise.
17051         (get_asm_expr_operands): Likewise.
17052         * tree-into-ssa.c (dump_decl_set): Likewise.
17053         (update_ssa): Likewise.
17054         * tree-sra.c (scan_function): Likewise.
17055         (decide_instantiations): Likewise.
17056         (scalarize_parms): Likewise.
17057         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
17058         (dsa_named_for): Likewise.
17059         * tree-ssa-structalias.c (update_alias_info): Likewise.
17060         (merge_smts_into): Likewise.
17061
17062 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
17063
17064         PR target/35258
17065         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
17066         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
17067         * alias.h (nonoverlapping_memrefs_p): Likewise.
17068
17069 2008-02-25  Jan Beulich  <jbeulich@novell.com>
17070
17071         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
17072         * config/i386/netware-libgcc.exp: Add __bswap?i2,
17073         __emultls_get_address, __emultls_register_common,
17074         __floatundi?f, and _Unwind_GetIPInfo.
17075         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
17076         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
17077         (gen_regparm_prefix): Likewise.
17078         (i386_nlm_encode_section_info): Sync with
17079         config/i386/winnt.c:i386_pe_encode_section_info().
17080         (i386_nlm_maybe_mangle_decl_assembler_name): New.
17081         i386_nlm_mangle_decl_assembler_name): New.
17082         (netware_override_options): New.
17083         * config/i386/netware.h (netware_override_options): Declare.
17084         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
17085         (i386_nlm_mangle_decl_assembler_name): Declare.
17086         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
17087
17088 2008-02-25  Ben Elliston  <bje@au.ibm.com>
17089
17090         PR other/32948
17091         * c-decl.c (grokdeclarator): Remove unused local variables
17092         `typedef_type' and `type_as_written'.
17093         * bb-reorder.c
17094         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
17095         unused local variable `has_hot_blocks'.
17096         (fix_crossing_conditional_branches): Remove unused local variable
17097         `prev_bb'.
17098
17099 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
17100
17101         PR middle-end/19984
17102         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
17103         using DEF_C99_BUILTIN.
17104         (BUILT_IN_NANF): Ditto.
17105         (BUILT_IN_NANL): Ditto.
17106
17107 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
17108             Revital Eres  <eres@il.ibm.com>
17109
17110         * modulo-sched.c (calculate_must_precede_follow): Address TODO
17111         regarding the order of two dependent insns in the same row.
17112
17113 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
17114
17115         * stor-layout.c (layout_decl): Do not bump the alignment of a
17116         bit-field to more than byte alignment if it is packed.
17117
17118 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
17119
17120         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
17121         e300c2 and e300c3.
17122
17123 2008-02-24  Diego Novillo  <dnovillo@google.com>
17124
17125         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
17126
17127         PR 33738
17128         * tree-vrp.c (vrp_evaluate_conditional): With
17129         -Wtype-limits, emit a warning when comparing against a
17130         constant outside the natural range of OP0's type.
17131         * c.opt (Wtype-limits): Move ...
17132         * common.opt (Wtype-limits): ... here.
17133
17134 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
17135
17136         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
17137         * config/rs6000/e300c2c3.md: New file.
17138         * config/rs6000/rs6000.c (processor_costs): Add new costs for
17139         e300c2 and e300c3.
17140         (rs6000_override_options): Add e300c2 and e300c3 cases to
17141         processor_target_table. Do not allow usage of Altivec or Spe
17142         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
17143         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
17144         * config/rs6000/rs6000.h (processor_type): Add
17145         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
17146         (ASM_CPU_SPEC): Add e300c2 and e300c3.
17147         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
17148         and ppce300c3. Include e300c2c3.md.
17149
17150 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
17151
17152         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
17153         instead of TARGET_STRICT_ALIGN.
17154
17155 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
17156
17157         * explow.c (memory_address): Assert that the generated address is
17158         valid.
17159
17160 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
17161
17162         PR target/25477
17163         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
17164         * config/darwin-ppc-ldouble-patch.def: New file.
17165         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
17166         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
17167         SUBTARGET_INIT_BUILTINS if defined.
17168         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
17169         New functions.
17170
17171 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17172
17173         PR rtl-opt/33512
17174         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
17175         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
17176
17177 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17178
17179         PR pch/35027
17180         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
17181         file" warning condtional on -Winvalid-PCH.
17182
17183 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
17184
17185         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
17186
17187 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
17188
17189         PR target/22076
17190         PR target/34256
17191         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
17192         prevent reload from using MMX registers.
17193         (*mov<mode>_internal): Ditto.
17194         (*movv2sf_internal_rex64): Ditto.
17195         (*movv2sf_internal): Ditto.
17196
17197 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17198
17199         PR documentation/31569
17200         * doc/install.texi2html: Use makeinfo --no-number-sections.
17201
17202 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
17203
17204         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
17205         ensure that we can address an entire entity > 8 bytes.  Don't
17206         generate reg+reg addressing for such data.
17207
17208 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
17209
17210         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
17211         strings when optimizing for size, unless the target cares about
17212         alignment.
17213
17214 2008-02-22  Tom Tromey  <tromey@redhat.com>
17215
17216         * regclass.c (current_pass): Remove declaration.
17217
17218 2008-02-22  Anatoly Sokolov <aesok@post.ru>
17219
17220         * config/avr/libgcc.S (__RAMPZ__): Define.
17221         (__do_copy_data): Add for devices with 128KB code memory.
17222
17223 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
17224
17225         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
17226         Use spe_abi.
17227         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
17228
17229 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
17230
17231         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
17232         GENNONACR_REGS.
17233
17234 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17235
17236         PR c/19999
17237         * c-typeck.c (build_binary_op): Warn about floating point
17238         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
17239
17240 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
17241
17242         PR target/34526
17243         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
17244         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
17245         add vrsave.
17246         (rs6000_override_options): Set altivec_abi as default, not override,
17247         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
17248         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
17249         is used; use new member spe_abi.
17250         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
17251         spe_abi and altivec_abi.
17252
17253 2008-02-22  Tomas Bily  <tbily@suse.cz>
17254
17255         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
17256
17257 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17258
17259         PR bootstrap/35273
17260         * config.build (build_file_translate): Set to `CMD //c' only if
17261         it works.
17262         * Makefile.in (build_file_translate): Improve comment.
17263
17264 2008-02-21  Jan Hubicka  <jh@suse.cz>
17265
17266         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
17267         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
17268         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
17269
17270 2008-02-21  Michael Matz  <matz@suse.de>
17271
17272         PR target/35264
17273         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
17274
17275 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
17276
17277         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
17278         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
17279         as insn constraint.
17280         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
17281         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
17282         SSE_VEC_FLOAT_MODE_P as insn constraint.
17283         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
17284         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
17285         sse4a_movntdf using MODEF mode iterator.
17286         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
17287         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
17288         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
17289         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
17290         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
17291         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
17292         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
17293
17294 2008-02-21  Richard Guenther  <rguenther@suse.de>
17295
17296         * tree.def (PAREN_EXPR): New tree code.
17297         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
17298         and PAREN_EXPR.
17299         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
17300         * expr.c (expand_expr_real_1): Likewise.
17301         * tree-inline.c (estimate_num_insns_1): Likewise.
17302         * tree-complex.c (expand_complex_move): Likewise.
17303         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
17304         as plain x.
17305
17306 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
17307
17308         PR target/35225
17309         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
17310
17311 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
17312
17313         PR target/35190
17314         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
17315
17316         * config/sh/sh.c (find_barrier): Don't go past
17317         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
17318
17319 2008-02-20  DJ Delorie  <dj@redhat.com>
17320
17321         * config/h8300/h8300.md (insv): Force source operand to be a register.
17322
17323         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
17324         as a jump, not as a plain insn.
17325
17326 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
17327
17328         * doc/invoke.texi (Warning Options): Add new option
17329         -Wframe-larger-than=.
17330         (-Wframe-larger-than): Document.
17331
17332         * flags.h (warn_frame_larger_than, frame_larger_than_size):
17333         Add declarations for new option variables.
17334
17335         * final.c (final_start_function): Check the frame size
17336         before emission and issue a Wframe-larger-than warning.
17337
17338         * opts.c (warn_frame_larger_than, frame_larger_than_size):
17339         Add definitions for new option variables.
17340         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
17341
17342         * common.opt (Wframe-larger-than=): New option.
17343
17344 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
17345
17346         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
17347         (<sse>_div<mode>3): Ditto.
17348         (<sse>_vmdiv<mode>3): Ditto.
17349         (<sse>_vmsqrt<mode>2): Ditto.
17350         (*smax<mode>3): Ditto.
17351         (sse5_frcz<mode>2): Ditto.
17352         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
17353         as insn constraint.
17354
17355 2008-02-20  Richard Guenther  <rguenther@suse.de>
17356
17357         PR middle-end/35265
17358         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
17359         be happy with INTEGRAL_TYPE_P.
17360
17361 2008-02-20  Richard Guenther  <rguenther@suse.de>
17362
17363         * fold-const.c (split_tree): Associate floatig-point expressions
17364         if flag_associative_math is set.
17365
17366 2008-02-20  Richard Guenther  <rguenther@suse.de>
17367
17368         * tree.h (fold_real_zero_addition_p): Declare.
17369         * fold-const.c (fold_real_zero_addition_p): Export.
17370         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
17371         floating-point operations with zero and one.
17372
17373 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
17374
17375         * doc/install.texi: Correct references to CFLAGS, replacing them
17376         with BOOT_CFLAGS.  Document flags used during bootstrap for
17377         target libraries.
17378
17379 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
17380
17381         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
17382         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
17383         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
17384         insn constraint.
17385         (smin<mode>3): Ditto from similar patterns.
17386         (smax<mode>3): Ditto.
17387         (*ieee_smin<mode>3): Ditto.
17388         (*ieee_smax<mode>3): Ditto.
17389         * config/i386/sse.md (sse): New mode attribute.
17390         (mov<mode>): Macroize expander from movv4sf and movv2df using
17391         SSEMODEF2P mode iterator.
17392         (<sse>_movnt<mode>): Ditto from similar patterns. Use
17393         SSE_VEC_FLOAT_MODE_P as insn constraint.
17394         (storent<mode>): Ditto.
17395         (storent<mode>): Macroize expander from storentsf and storentdf using
17396         MODEF mode iterator.
17397         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
17398         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
17399         (abs<mode>2): Ditto from similar patterns.
17400         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
17401         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
17402         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
17403         (<sse>_vmsqrt<mode>2): Ditto.
17404         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
17405         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
17406         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
17407         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
17408         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
17409         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
17410         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
17411         insn constraint.
17412         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
17413         iterator and SSE_FLOAT_MODE_P as insn constraint.
17414         (<sse>_ucomi): Ditto from similar patterns.
17415         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
17416         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
17417         SSE_VEC_FLOAT_MODE_P as insn constraint.
17418         (vcond<mode>): Ditto from similar patterns.
17419         (and<mode>3, *and<mode>3): Ditto.
17420         (<sse>_nand<mode>3): Ditto.
17421         (ior<mode>3, *ior<mode>3): Ditto.
17422         (xor<mode>3, *xor<mode>3): Ditto.
17423         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
17424         iterator and SSE_FLOAT_MODE_P as insn constraint.
17425         (*nand<mode>3): Ditto from similar patterns.
17426         (*ior<mode>3): Ditto.
17427         (*xor<mode>3): Ditto.
17428
17429 2008-02-20  Ira Rosen  <irar@il.ibm.com>
17430
17431         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
17432         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
17433         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
17434
17435 2008-02-19  Jan Hubicka  <jh@suse.cz>
17436
17437         * predict.c (tree_bb_level_predictions): Remove variable next
17438         mistakely introduced by previous commit.
17439
17440 2008-02-19  Jan Hubicka  <jh@suse.cz>
17441
17442         * predict.c (predict_paths_leading_to): Rewrite.
17443         (predict_paths_for_bb): New.
17444         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
17445
17446 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17447
17448         PR bootstrap/35218
17449         * Makefile.in (build_file_translate): New.
17450         (gcc-vers.texi): Use it for translating $(abs_srcdir).
17451         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
17452         * configure.ac (build_file_translate): Substitute it.
17453         * configure: Regenerate.
17454
17455 2008-02-19  Jan Hubicka  <jh@suse.cz>
17456
17457         PR rtl-optimization/34408
17458         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
17459         invalid sharing.
17460
17461 2008-02-19  Jan Hubicka  <jh@suse.cz>
17462
17463         PR middle-end/28779
17464         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
17465         call_expr.
17466
17467 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
17468
17469         PR Ada/35186
17470         * config/i386/i386-modes.def: Revert the last DI alignment
17471         change until Ada people can look into it.
17472
17473 2008-02-19  Nick Clifton  <nickc@redhat.com>
17474
17475         * opts.c (print_specific_help): Fix typo in --help text.
17476
17477 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
17478
17479         PR target/35239
17480         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
17481         32-bit inline asm without asm alternatives for host GCC < 3.0.
17482
17483 2008-02-19  Richard Guenther  <rguenther@suse.de>
17484
17485         PR tree-optimization/34989
17486         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
17487         Allow propagation to INDIRECT_REF if we can simplify only.
17488
17489 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17490
17491         * c-common.c (warn_for_collisions_1): Use appropriate option when
17492         warning.
17493
17494 2008-02-19  Nick Clifton  <nickc@redhat.com>
17495
17496         PR other/31349
17497         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
17498         (handle_options): Fix indentation.
17499         (print_filtered_help): If no language-specific options were
17500         displayed tell the user how to list all the options supported by
17501         the language's front-end.
17502         (print_specific_help): Fix indentation and remove duplicate line.
17503         (common_handle_option): Handle the -v option.
17504         For --help enable the display of undocumented options if the -v
17505         switch has been included on the command line.
17506         For --help= check for overlaps in the arguments between the option
17507         classes and the language names and issue a warning when they
17508         cannot be disambiguated.
17509         * c.opt (v): Pass on to the common option handler.
17510
17511 2008-02-19  Revital Eres  <eres@il.ibm.com>
17512
17513         * modulo-sched.c (sms_schedule): Change dump message when
17514         create_ddg function fails.
17515         (try_scheduling_node_in_cycle): Rename row to cycle.
17516         (print_partial_schedule): Rename CYCLE to ROW.
17517
17518 2008-02-19  Christian Bruel  <christian.bruel@st.com>
17519             Zdenek Dvorak  <ook@ucw.cz>
17520
17521         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
17522
17523 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
17524
17525         PR target/33555
17526         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
17527         (*x86_movdicc_0_m1_se): Ditto.
17528
17529 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
17530
17531         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
17532         (CMPtype): Define as __gcc_CMPtype.
17533         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
17534         (CMPtype): Define as __gcc_CMPtype.
17535
17536 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
17537
17538         Support valgrind 3.3 for --enable-checking=valgrind.
17539         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
17540         here.
17541         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
17542         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
17543         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
17544         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
17545         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
17546         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
17547         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
17548         respectively.
17549         * ggc-zone.c: Similar.
17550         * ggc-page.c: Similar.
17551
17552 2008-02-19  Paul Brook  <paul@codesourcery.com>
17553
17554         PR target/35071
17555         * config/arm/ieee754-df.S: Fix do_it typo.
17556         * config/arm/ieee754-sf.S: Fix do_it typo.
17557
17558 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
17559
17560         PR target/35189
17561         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
17562         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
17563         (OPTION_MASK_ISA_SSE_SET): Likewise.
17564         (OPTION_MASK_ISA_SSE2_SET): Likewise.
17565         (OPTION_MASK_ISA_SSE3_SET): Likewise.
17566         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
17567         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
17568         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
17569         (OPTION_MASK_ISA_SSE4_SET): Likewise.
17570         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
17571         (OPTION_MASK_ISA_SSE5_SET): Likewise.
17572         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
17573         (OPTION_MASK_ISA_MMX_UNSET): Updated.
17574         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
17575         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
17576         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
17577         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
17578         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
17579         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
17580         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
17581         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
17582         (OPTION_MASK_ISA_SSE4): Removed.
17583         (ix86_handle_option): Turn on bits in ix86_isa_flags and
17584         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
17585         (override_options): Don't turn on implied SSE/MMX bits in
17586         ix86_isa_flags.
17587
17588 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
17589
17590         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
17591         32bit host.
17592
17593 2008-02-18  Joey Ye  <joey.ye@intel.com>
17594
17595         PR middle-end/34921
17596         * tree-nested.c (insert_field_into_struct): Set type alignment
17597         to field alignment if the former is less than the latter.
17598
17599 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
17600
17601         * BASE-VER: Set to 4.4.0.
17602
17603 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17604
17605         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
17606         * doc/cfg.texi: Likewise.
17607         * doc/extend.texi: Likewise.
17608         * doc/gty.texi: Likewise.
17609         * doc/invoke.texi: Likewise.
17610         * doc/loop.texi: Likewise.
17611         * doc/md.texi: Likewise.
17612         * doc/passes.texi: Likewise.
17613         * doc/rtl.texi: Likewise.
17614         * doc/sourcebuild.texi: Likewise.
17615         * doc/tm.texi: Likewise.
17616         * doc/tree-ssa.texi: Likewise.
17617
17618 2008-02-17  Richard Guenther  <rguenther@suse.de>
17619
17620         PR middle-end/35227
17621         * tree-complex.c (init_parameter_lattice_values): Handle parameters
17622         without default definition.
17623
17624 2008-02-17  Richard Guenther  <rguenther@suse.de>
17625
17626         PR tree-optimization/35231
17627         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
17628         if A | B != 1.
17629
17630 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
17631
17632         Revert:
17633         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
17634         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
17635         libgcc_cmp_return mode.
17636
17637 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17638
17639         PR c/28368
17640         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
17641
17642 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
17643
17644         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
17645         multilibs.
17646
17647 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17648
17649         * doc/c-tree.texi: Use `@.' where appropriate.
17650         * doc/extend.texi: Likewise.
17651         * doc/install.texi: Likewise.
17652         * doc/invoke.texi: Likewise.
17653         * doc/loop.texi: Likewise.
17654         * doc/makefile.texi: Likewise.
17655         * doc/md.texi: Likewise.
17656         * doc/passes.texi: Likewise.
17657         * doc/standards.texi: Likewise.
17658         * doc/tm.texi: Likewise.
17659
17660 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
17661
17662         PR middle-end/35196
17663         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
17664         in entry_bb.
17665         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
17666         rather than in entry_bb.
17667
17668 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
17669
17670         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
17671         libgcc_cmp_return mode.
17672
17673 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
17674
17675         PR middle-end/35130
17676         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
17677         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
17678
17679 2008-02-15  Richard Guenther  <rguenther@suse.de>
17680             Zdenek Dvorak  <ook@ucw.cz>
17681
17682         PR tree-optimization/35164
17683         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
17684         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
17685         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
17686         Only propagate addresses which do not have abnormal SSA_NAMEs
17687         in their operands.
17688
17689 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
17690
17691         PR target/35088
17692         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
17693
17694 2008-02-15  Jan Hubicka  <jh@suse.cz>
17695
17696         PR middle-end/35149
17697         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
17698
17699 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
17700
17701         PR middle-end/34621
17702         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
17703         when calculating alignment_pad.
17704
17705 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
17706
17707         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
17708         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
17709         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
17710         and STACK_BOUNDARY define.
17711
17712 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
17713
17714         PR preprocessor/35061
17715         * c-pragma.c (handle_pragma_pop_macro): Check that
17716         pushed_macro_table has been allocated.
17717
17718 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
17719
17720         PR middle-end/35136
17721         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
17722         (force_gimple_operand): Likewise.
17723         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
17724         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
17725         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
17726         (find_interesting_uses_address): Check addressability and alignment
17727         of the base expression only after substituting bases of IVs into it.
17728
17729 2008-02-14  Michael Matz  <matz@suse.de>
17730
17731         PR target/34930
17732         * function.c (instantiate_virtual_regs_in_insn): Reload address
17733         before falling back to reloading the whole operand.
17734
17735 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
17736
17737         * config/s390/s390.c (s390_mainpool_start): Emit the pool
17738         before the first section switch note.
17739
17740 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17741
17742         * doc/bugreport.texi: Update copyright years.
17743         * doc/c-tree.texi: Likewise.
17744         * doc/cfg.texi: Likewise.
17745         * doc/cpp.texi: Likewise.
17746         * doc/cppinternals.texi: Likewise.
17747         * doc/fragments.texi: Likewise.
17748         * doc/frontends.texi: Likewise.
17749         * doc/gcc.texi: Likewise.
17750         * doc/gty.texi: Likewise.
17751         * doc/hostconfig.texi: Likewise.
17752         * doc/implement-c.texi: Likewise.
17753         * doc/libgcc.texi: Likewise.
17754         * doc/loop.texi: Likewise.
17755         * doc/makefile.texi: Likewise.
17756         * doc/options.texi: Likewise.
17757         * doc/passes.texi: Likewise.
17758         * doc/rtl.texi: Likewise.
17759         * doc/sourcebuild.texi: Likewise.
17760         * doc/standards.texi: Likewise.
17761         * doc/tree-ssa.texi: Likewise.
17762         * doc/trouble.texi: Likewise.
17763
17764         * doc/extend.texi: Use @: or add comma where appropriate.
17765         * doc/invoke.texi: Likewise.
17766         * doc/tm.texi: Likewise.
17767
17768 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
17769
17770         PR target/34393
17771         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
17772         to a reg.
17773
17774 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
17775
17776         * doc/md.texi (clz, ctz): Add reference.
17777         * doc/rtl.texi (clz, ctz): Likewise.
17778
17779 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17780
17781         PR other/35148
17782         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
17783         srcdir.
17784
17785 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
17786
17787         * config/s390/s390.c (struct constant_pool): New field
17788         emit_pool_after added.
17789         (s390_mainpool_start): Set the emit_pool_after flag according
17790         to the section switch notes.
17791         (s390_mainpool_finish): Consider emit_pool_after when emitting
17792         the literal pool at the end of the function.
17793         (s390_chunkify_start): Force literal pool splits at section
17794         switch notes.
17795
17796 2008-02-13  Michael Matz  <matz@suse.de>
17797
17798         PR debug/35065
17799         * var-tracking.c (clobber_variable_part): Correctly traverse the
17800         list.
17801
17802 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17803
17804         PR 29673
17805         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
17806         Add -fdump-ipa-inline.
17807         * tree-dump.c (dump_files): Remove tree-inlined dump.
17808         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
17809
17810 2008-02-12  Richard Guenther  <rguenther@suse.de>
17811
17812         PR tree-optimization/35171
17813         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
17814         default defs.
17815
17816 2008-02-12  Richard Guenther  <rguenther@suse.de>
17817
17818         PR middle-end/35163
17819         * fold-const.c (fold_widened_comparison): Use get_unwidened in
17820         value-preserving mode.  Disallow final truncation.
17821
17822 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
17823
17824         PR middle-end/35136
17825         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
17826         code from here to...
17827         (force_gimple_operand): ...here.
17828
17829 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
17830
17831         PR c++/35144
17832         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
17833         non-compatible pointers.
17834         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
17835         different FIELD_DECLs, try harder by comparing field offsets, sizes
17836         and types.
17837
17838         PR inline-asm/35160
17839         * function.c (match_asm_constraints_1): Don't replace the same input
17840         multiple times.
17841
17842 2008-02-12  Anatoly Sokolov <aesok@post.ru>
17843
17844         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
17845         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
17846         (expand_epilogue): Restore RAMPZ register.
17847         * config/avr/avr.md (RAMPZ_ADDR): New constant.
17848
17849 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
17850
17851         * config/i386/cygwin.asm: (__alloca): Correct calling
17852         convention and alignment.
17853         (__chkstk): Force 8 byte stack alignment.
17854
17855 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
17856             Richard Guenther  <rguenther@suse.de>
17857
17858         PR tree-optimization/33992
17859         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
17860         the zero we compare against.
17861
17862 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
17863
17864         PR libfortran/35063
17865         * gthr-win32.h (__gthread_mutex_destroy_function): New function
17866         to CloseHandle after unlocking to prevent accumulation of handle
17867         count.
17868
17869 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17870
17871         PR middle_end/34150
17872         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
17873         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
17874         and update LABEL_NUSES during and after reload.
17875
17876 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
17877
17878         PR middle-end/34627
17879         * combine.c (simplify_if_then_else): Make sure the comparison is
17880         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
17881
17882 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
17883
17884         PR bootstrap/35051
17885         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
17886         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
17887         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
17888         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
17889         * tree.h (get_type_static_bounds): Likewise.
17890
17891 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17892
17893         * doc/invoke.texi (Option Summary, C++ Dialect Options)
17894         (Objective-C and Objective-C++ Dialect Options, Warning Options):
17895         Make -Wfoo language annotations match what the compiler outputs.
17896
17897 2008-02-08  Sa Liu  <saliu@de.ibm.com>
17898
17899         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
17900         intrinsics spu_convts, spu_convtu, spu_convtf.
17901
17902 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
17903
17904         * doc/extend.texi (Function Attributes) <noinline>: Mention
17905         asm ("") as method to keep calls.
17906
17907 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17908
17909         PR other/32754
17910         * doc/options.texi (Options): Replace references to opts.sh with
17911         optc-gen.awk.
17912         * opts-common.c: Likewise.
17913         * optc-gen.awk: Likewise.
17914
17915 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
17916
17917         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
17918
17919 2008-02-07  Richard Henderson  <rth@redhat.com>
17920
17921         PR rtl-opt/33410
17922         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
17923         EXPR_LIST for the REG_EQUAL instead of a comparison with a
17924         funny mode.
17925
17926 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
17927
17928         PR tree-optimization/35085
17929         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
17930         for operand entry oe2 in addition to operand entry oe3 in order to
17931         expose more opportunities for vectorizer sum reduction.
17932
17933 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17934
17935         PR other/35107
17936         * Makefile.in (LIBS): Remove $(GMPLIBS).
17937         (cc1-dummy, cc1): Add $(GMPLIBS).
17938
17939 2008-02-06  Jan Hubicka  <jh@suse.cz>
17940
17941         PR target/23322
17942         * i386.md (moddf_integer): Do not produce partial memory stalls for
17943         targets where it hurts.
17944
17945 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
17946
17947         PR target/35083
17948         * optabs.c (expand_float): Do not check for decimal modes when
17949         expanding unsigned integer through signed conversion.
17950
17951 2008-02-06  Nick Clifton  <nickc@redhat.com>
17952
17953         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
17954         inside the clobber with a match_operand and duplicated operand
17955         number in the constraint.
17956         (ineqbranchsi): Delete redundant comment.
17957
17958 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
17959
17960         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
17961         builtin_define ("__USE_INIT_FINI__").
17962         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
17963         -msx multilibs.
17964         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
17965
17966 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17967
17968         PR documentation/30330
17969         * doc/invoke.texi (C++ Dialect Options)
17970         (Objective-C and Objective-C++ Dialect Options, Warning Options):
17971         For each warning option -Wfoo that allows -Wno-foo, ensure both
17972         -Wfoo and -Wno-foo are listed in the option index.  Fix index
17973         entry of -Wswitch-default, index -Wnormalized= including the
17974         `=', and -Wlarger-than-@var{len} including @var{len}.
17975
17976 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
17977
17978         * config/i386/i386.md (floatunssisf2): Use
17979         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
17980         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
17981         Macroize expander using MODEF mode iterator.
17982
17983 2008-02-05  Diego Novillo  <dnovillo@google.com>
17984
17985         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
17986
17987         PR 33738
17988         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
17989
17990 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17991
17992         PR other/35070
17993         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
17994
17995 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
17996
17997         PR target/35084
17998         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
17999         to indicate if a message should be generated.
18000         (init_cumulative_args): Updated.
18001         (function_value_32): Likewise.
18002
18003 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
18004
18005         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
18006
18007 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
18008
18009         PR target/35083
18010         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
18011         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
18012
18013 2008-02-04  Diego Novillo  <dnovillo@google.com>
18014
18015         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
18016
18017         PR 33738
18018         * tree-vrp.c (vrp_evaluate_conditional): With
18019         -Wtype-limits, emit a warning when comparing against a
18020         constant outside the natural range of OP0's type.
18021
18022 2008-02-04  Richard Guenther  <rguenther@suse.de>
18023
18024         PR middle-end/33631
18025         * expr.c (count_type_elements): Give for unions instead of
18026         guessing.
18027
18028 2008-02-04  Richard Guenther  <rguenther@suse.de>
18029
18030         PR middle-end/35043
18031         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
18032         to TYPE_DOMAINs base type instead of using bitsizetype here.
18033
18034 2008-02-03  Jason Merrill  <jason@redhat.com>
18035
18036         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
18037
18038 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18039
18040         PR other/29972
18041         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
18042         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
18043         (RS/6000 and PowerPC Options): Fix typos and markup.
18044         * doc/passes.texi (Tree-SSA passes): Likewise.
18045
18046 2008-02-02  Michael Matz  <matz@suse.de>
18047
18048         PR target/35045
18049         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
18050         from record_last_reg_set_info.
18051         (record_last_reg_set_info): Take an RTX argument, iterate over all
18052         constituent hardregs.
18053         (record_last_set_info, record_opr_changes): Change calls to
18054         new signature or to record_last_reg_set_info_regno.
18055
18056 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
18057
18058         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
18059
18060 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
18061
18062         PR rtl-optimization/34773
18063         * reg-notes.def (EQUAL): Mention significance of combination of
18064         REG_EQUAL and REG_RETVAL.
18065         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
18066         insn that has a REG_RETVAL.
18067
18068 2008-02-01  Roger Sayle  <roger@eyesopen.com>
18069
18070         PR bootstrap/33781
18071         * configure.ac (--enable-fixed-point): Disable unless explicitly
18072         requested on IRIX.
18073         * configure: Regenerate.
18074
18075 2008-02-01  Richard Guenther  <rguenther@suse.de>
18076
18077         PR other/35042
18078         * invoke.texi (-finline-limit): Remove no longer true parts
18079         of the documentation.  Note that there is no default value.
18080
18081 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
18082             Mark Mitchell  <mark@codesourcery.com>
18083             Ben Elliston  <bje@au.ibm.com>
18084
18085         PR c/29326
18086         * doc/extend.texi (Other Builtins): Document.
18087
18088 2008-01-31  Tom Browder <tom.browder@gmail.com>
18089
18090         * doc/c-tree.texi (Types): Fix grammar.
18091         (Expression trees): Ditto.
18092         * doc/passes.texi (Tree-SSA passes): Ditto.
18093
18094         * doc/configterms.texi (Configure Terms): Fix typo.
18095         * doc/cpp.texi (Common Predefined Macros): Ditto.
18096         * doc/md.texi (Machine Constraints): Ditto.
18097
18098         * doc/makefile.texi (Makefile): Add comma.
18099
18100 2008-01-31  Tom Browder  <tom.browder@gmail.com>
18101             Gerald Pfeifer  <gerald@pfeifer.com>
18102
18103         * doc/sourcebuild.texi (Front End): Remove references to CVS
18104         and CVSROOT/modules.
18105         (Texinfo Manuals): Replace reference to CVS by one to SVN.
18106         (Back End): Remove reference to CVS.
18107
18108 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
18109
18110         PR target/34900
18111         * config/mips/mips.c (gen_load_const_gp): New function, taking a
18112         comment from...
18113         (mips16_gp_pseudo_reg): ...here.
18114         * config/mips/mips.md (load_const_gp): Replace with...
18115         (load_const_gp_<mode>): ...this :P-based insn.
18116
18117 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
18118
18119         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
18120         options. Minor fixes.
18121         (-std): Move reference to standards closer to where language
18122         standards are first mentioned.
18123
18124 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
18125
18126         PR rtl-optimization/34995
18127         * reload.c (alternative_allows_const_pool_ref): Take an rtx
18128         parameter and return a bool.  If the rtx parameter is nonnull,
18129         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
18130         (find_reloads): Update call accordingly.  Pass the new operand
18131         if it needed no address reloads, otherwise pass null.
18132
18133 2008-01-30  Richard Henderson  <rth@redhat.com>
18134
18135         PR c/34993
18136         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
18137         for unbounded arrays.
18138
18139 2008-01-30  Silvius Rus  <rus@google.com>
18140
18141         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
18142
18143 2008-01-30  Jan Hubicka  <jh@suse.cz>
18144
18145         PR target/34982
18146         * i386.c (init_cumulative_args): Use real function declaration when
18147         calling locally.
18148
18149 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
18150
18151         PR rtl-optimization/34998
18152         * global.c (build_insn_chain): Treat non-subreg_lowpart
18153         SUBREGs of pseudos as clobbering all the words covered by the
18154         SUBREG, not just all the bytes.
18155         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
18156         original df_ref rather than an extract parameter.
18157         (global_conflicts): Update call accordingly.
18158
18159 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
18160
18161         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
18162         the overflow check to make it easier to read.
18163         (__fixtfdi): Change the type of the ll member in union
18164         long_double to UDItype_x.
18165
18166 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
18167
18168         PR middle-end/34969
18169         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
18170         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
18171         * tree-inline.c (fold_marked_statements): Call
18172         cgraph_update_edges_for_call_stmt if folding a call statement.
18173         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
18174         debug_generic_stmt calls, reset it back afterwards.
18175
18176         PR c/35017
18177         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
18178         static decls.
18179         * c-typeck.c (build_external_ref): Don't pedwarn about
18180         static vars in current function's scope.
18181
18182 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
18183
18184         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
18185
18186 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
18187
18188         PR c/35002
18189         * ipa-struct-reorg.c: Fix spelling.
18190         * params.def: Ditto.
18191
18192 2008-01-29  Richard Guenther  <rguenther@suse.de>
18193
18194         PR middle-end/35006
18195         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
18196         field.
18197         * tree-inline.c (remap_type): Increment remapping_type_depth
18198         around remapping types.
18199         (copy_body_r): Only add referenced variables if they are referenced
18200         from code, not types.
18201
18202 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
18203
18204         PR c++/34055
18205         PR c++/34103
18206         PR c++/34219
18207         PR c++/34606
18208         PR c++/34753
18209         PR c++/34754
18210         PR c++/34755
18211         PR c++/34919
18212         PR c++/34961
18213         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
18214         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
18215
18216 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
18217
18218         PR target/34412
18219         * config/avr/avr.c (expand_prologue): Use correct QI mode frame
18220         pointer for tiny stack.
18221
18222 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
18223
18224         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
18225
18226 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
18227
18228         * config/vx-common.h: Fix typo in comment.
18229
18230 2008-01-28  Ian Lance Taylor  <iant@google.com>
18231
18232         PR c++/34862
18233         PR c++/33407
18234         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
18235         coalesce pointers if they have different DECL_NO_TBAA_P values.
18236         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
18237         between variables with different DECL_NO_TBAA_P values.
18238
18239 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
18240
18241         PR 31535
18242         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
18243         are not legitimate small data references on SPE targets.
18244
18245 2008-01-28  David Daney  <ddaney@avtrex.com>
18246
18247         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
18248
18249 2008-01-28  David Daney  <ddaney@avtrex.com>
18250
18251         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
18252
18253 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
18254
18255         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
18256         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
18257         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
18258         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
18259         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
18260         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
18261         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
18262         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
18263
18264 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
18265
18266         * basic-block.h (condjump_equiv_p): Fix comment.
18267
18268 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
18269
18270         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
18271         print_generic_stmt_indented): Fix comment.
18272
18273 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
18274
18275         * configure.ac (__stack_chk_fail): Add detecion for availability
18276         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
18277         * configure: Regenerate.
18278
18279 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
18280
18281         PR middle-end/34688
18282         * final.c (output_addr_const): Handle TRUNCATE.
18283
18284 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
18285
18286         PR target/34711
18287         * tree-ssa-loop-ivopts.c (comp_cost): New type.
18288         (zero_cost, infinite_cost): New constants.
18289         (struct cost_pair): Change type of cost to comp_cost.
18290         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
18291         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
18292         New functions.
18293         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
18294         split_address_cost, ptr_difference_cost, difference_cost,
18295         get_computation_cost_at, get_computation_cost,
18296         determine_use_iv_cost_generic, determine_use_iv_cost_address,
18297         determine_use_iv_cost_condition, determine_use_iv_costs,
18298         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
18299         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
18300         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
18301         Change type of cost to comp_cost.
18302         (determine_iv_cost): Increase cost of non-original ivs, instead
18303         of decreasing the cost of original ones.
18304         (get_address_cost): Indicate the complexity of the addressing mode
18305         in comp_cost.
18306         (try_add_cand_for): Prefer using ivs not specific to some object.
18307         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
18308
18309 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
18310             Janis Johnson  <janis187@us.ibm.com>
18311
18312         PR target/34814
18313         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
18314         (TARGET_INSTANTIATE_DECLS): Likewise.
18315         * target.h (expand_to_rtl_hook): New target hook.
18316         (instantiate_decls): Likewise.
18317         * function.c (instantiate_decl): Make non-static.  Rename to...
18318         (instantiate_decl_rtl): ... this.
18319         (instantiate_expr): Use instantiate_decl_rtl.
18320         (instantiate_decls_1): Likewise.
18321         (instantiate_decls): Likewise.
18322         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
18323         * function.h (instantiate_decl_rtl): Add prototype.
18324         * cfgexpand.c (target.h): New include.
18325         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
18326         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
18327         (TARGET_INSTANTIATE_DECLS): Likewise.
18328         (TARGET_INITIALIZER): New target hooks added.
18329         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
18330         New prototype.
18331         * config/rs6000/rs6000.c (tree-flow.h): New include.
18332         (machine_function): Add sdmode_stack_slot field.
18333         (rs6000_alloc_sdmode_stack_slot): New function.
18334         (rs6000_instantiate_decls): Likewise.
18335         (rs6000_secondary_memory_needed_rtx): Likewise.
18336         (rs6000_check_sdmode): Likewise.
18337         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
18338         (TARGET_INSTANTIATE_DECLS): Likewise.
18339         (rs6000_hard_regno_mode_ok): Allow SDmode.
18340         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
18341         (rs6000_emit_move): Handle SDmode.
18342         (function_arg_advance): Likewise.
18343         (function_arg): Likewise.
18344         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
18345         SDmode var args for 32-bit compiles.
18346         (rs6000_secondary_reload_class): Handle SDmode.
18347         (rs6000_output_function_epilogue): Likewise.
18348         (rs6000_function_value): Simplify if statement.
18349         (rs6000_libcall_value): Likewise.
18350         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
18351         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
18352         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
18353         (movsd_hardfloat): New define_insn.
18354         (movsd_softfloat): Likewise.
18355         (movsd_store): Likewise.
18356         (movsd_load): Likewise.
18357         (extendsddd2): Likewise.
18358         (extendsdtd2): Likewise.
18359         (truncddsd2): Likewise.
18360         (movdd_hardfloat64): Fixup comment.
18361         (UNSPEC_MOVSD_LOAD): New constant.
18362         (UNSPEC_MOVSD_STORE): Likewise.
18363
18364 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
18365
18366         PR c++/34965
18367         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
18368         TRUTH_XOR_EXPR.
18369         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
18370         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
18371         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
18372         and TRUTH_XOR_EXPR.
18373
18374 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
18375
18376         PR target/34794
18377         * config.gcc: Separate AIX 5.3 from AIX 6.1.
18378         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
18379         __LONGDOUBLE128 too.
18380         * config/rs6000/aix61.h: New file.
18381
18382 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
18383
18384         PR rtl-optimization/34959
18385         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
18386         popcount and parity rtxes the same mode as their operand.
18387         Truncate or extend the result to the return value's mode
18388         if necessary.
18389
18390 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
18391
18392         PR target/34981
18393         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
18394         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
18395         to GOT_VERSION_REGNUM.
18396         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
18397         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
18398         * config/mips/mips.c (mips_emit_call_insn): New function.
18399         (mips_call_tls_get_addr): Call mips_expand_call directly.
18400         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
18401         emit_call_insn.
18402         (mips16_build_call_stub): Likewise.  Return the call insn or null.
18403         (mips_expand_call): Update the call to mips16_build_call_stub
18404         accordingly and a remove redundant condition.  Assert that MIPS16
18405         stubs do not use lazy binding.  Use mips_emit_call_insn and return
18406         the call insn.
18407         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
18408         TARGET_USE_GOT.
18409         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
18410         (mips_avoid_hazard): Remove hazard_set handling.
18411         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
18412         (UNSPEC_RESTORE_GP): ...this.
18413         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
18414         (FAKE_CALL_REGNO): Rename to...
18415         (GOT_VERSION_REGNUM): ...this.
18416         (type): Add "ghost" value.  Add an associated insn reservation.
18417         (hazard_set): Remove.
18418         (exception_receiver): Rename to...
18419         (restore_gp): ...this and update the unspec identifier accordingly.
18420         (exception_receiver, nonlocal_got_receiver): New expanders.
18421         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
18422         FAKE_CALL_REGNO.  Remove hazard_set attribute.
18423         (set_got_version, update_got_version): New patterns.
18424
18425 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
18426
18427         PR target/34970
18428         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
18429
18430 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
18431
18432         PR other/31955
18433         * doc/install.texi2html: Generate gcc-vers.texi.
18434
18435 2008-01-25  DJ Delorie  <dj@redhat.com>
18436
18437         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
18438
18439 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
18440
18441         * config/c4x: Remove directory.
18442         * config.gcc (crx-*, mt-*): Mark obsolete.
18443         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
18444         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
18445         sh-*-rtemscoff*): Remove cases.
18446         * defaults.h (C4X_FLOAT_FORMAT): Remove.
18447         * real.c (encode_c4x_single, decode_c4x_single,
18448         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
18449         c4x_extended_format): Remove.
18450         * real.h (c4x_single_format, c4x_extended_format): Remove.
18451         * doc/extend.texi (interrupt, naked): Remove mention of attributes
18452         on C4x.
18453         (Pragmas): Remove comment about c4x pragmas.
18454         * doc/install.texi (c4x): Remove target-specific instructions.
18455         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
18456         * doc/md.texi (Machine Constraints): Remove C4x documentation.
18457         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
18458         refer to C4x source files as examples.
18459         (C4X_FLOAT_FORMAT): Remove documentation.
18460
18461 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
18462
18463         * config/bfin/bfin.c (override_options): Reorder tests so that
18464         flag_pic gets enabled for -msep-data.
18465
18466 2008-01-25  Richard Guenther  <rguenther@suse.de>
18467
18468         PR middle-end/32244
18469         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
18470         to its bitfield precision if required.
18471
18472 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
18473
18474         PR middle-end/33880
18475         * tree-nested.c (walk_omp_for): New function.
18476         (convert_nonlocal_reference, convert_local_reference): Call
18477         walk_omp_for on OMP_FOR.
18478         (convert_call_expr): Call walk_body on OMP_FOR's
18479         OMP_FOR_PRE_INIT_BODY.
18480
18481 2008-01-25  Richard Guenther  <rguenther@suse.de>
18482
18483         PR tree-optimization/34966
18484         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
18485         default defs and PHI_NODEs we have to insert after the
18486         defining statement.
18487
18488 2008-01-24  Nick Clifton  <nickc@redhat.com>
18489
18490         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
18491         Provide a default definition.
18492         (LIBGCC2_UNITS_PER_WORD): Likewise.
18493
18494         * config/stormy16/stormy16.c: Include df.h for the prototype
18495         for df_regs_ever_live_p.
18496         (xstormy16_expand_builtin_va_start): Convert the stack offset
18497         into a component_ref and then use POINTER_PLUS_EXPR to add it
18498         to the incoming_virtual_args_rtx.
18499         (xstormy16_gimplify_va_arg_expr): Rename to
18500         xstormy16_gimplify_va_arg_expr.
18501         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
18502         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
18503         xstormy16_gimplify_va_arg_expr.
18504         Fix up some formatting issues.
18505
18506         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
18507         Move to predicates.md.
18508         (xs_hi_general_operand): Likewise.
18509         (xs_hi_nonmemory_operand): Likewise.
18510         * config/stormy16/predicates.md:
18511         (xstormy16_carry_plus_operand): New predicate.
18512         (xs_hi_general_operand): New predicate.
18513         (xs_hi_nonmemory_operand): New predicate.
18514         * config/stormy16/stormy16-protos.h:
18515         (xstormy16_carry_plus_operand): Delete prototype.
18516         (xs_hi_general_operand): Likewise.
18517         (xs_hi_nonmemory_operand): Likewise.
18518
18519         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
18520         modifiers as they are no longer needed and they can trigger
18521         reload spill failures.
18522
18523         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
18524         with a match_operand in order to help reload.
18525
18526         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
18527         constraint with 'e' for the 8th alternative as this version of
18528         the mov.w instruction only accepts the lower 8 registers.
18529
18530 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
18531
18532         PR target/34856
18533         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
18534         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
18535         vector elements.
18536
18537 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
18538
18539         PR middle-end/33333
18540         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
18541
18542 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
18543
18544         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
18545         New functions.
18546         (remove_structure): Update allocations list before removing structure.
18547
18548 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
18549
18550         * ipa-struct-reorg.c (is_safe_cond_expr,
18551         create_new_stmts_for_cond_expr): Use integer_zerop function,
18552         that recognize not only zero-pointer, but zero-integer too.
18553
18554 2008-01-25  Ben Elliston  <bje@au.ibm.com>
18555
18556         PR other/22232
18557         * fixproto: Escape "." in sed expression that strips leading "./".
18558
18559 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
18560
18561         PR driver/34904
18562         * gcc.c (SWITCH_OK): Removed.
18563         (SWITCH_LIVE): Changed to bit.
18564         (SWITCH_FALSE): Likewise.
18565         (SWITCH_IGNORE): Likewise.
18566         (switchstr): Change live_cond to unsigned int.
18567         (process_command): Replace SWITCH_OK with 0.
18568         (do_self_spec): Likewise.
18569         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
18570         (give_switch): Likewise.
18571         (used_arg): Likewise.
18572         (do_spec_1): Set the SWITCH_IGNORE bit.
18573         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
18574         bits.  Set the SWITCH_LIVE bit.
18575
18576 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
18577
18578         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
18579
18580 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
18581
18582         PR tree-optimization/34472
18583         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
18584         parameter to a "bool *" and set *DATA to false if there is
18585         an unsafe access.  Do not delete the structure here.
18586         (check_cond_exprs): Delete it here instead.
18587         (check_cond_exprs, exclude_cold_structs): Do not increase
18588         I when removing a structure.
18589
18590 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
18591
18592         PR target/34856
18593         * config/i386/i386.c (ix86_expand_vector_init): Consider only
18594         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
18595
18596 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
18597
18598         PR middle-end/34934
18599         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
18600         a fixed vector for stack.
18601
18602 2008-01-24  Ben Elliston  <bje@au.ibm.com>
18603
18604         PR c++/25701
18605         * doc/gcc.texi (Software development): Add a direntry for g++.
18606
18607 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
18608
18609         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
18610         stale and straggling -fforce-addr comments above.
18611
18612         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
18613         define.
18614         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
18615         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
18616
18617 2008-01-23  Michael Matz  <matz@suse.de>
18618
18619         PR debug/34895
18620         * dwarf2out.c (force_type_die): Use modified_type_die instead of
18621         gen_type_die.
18622
18623 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
18624
18625         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
18626         malloc result type.
18627
18628 2008-01-23 Anatoly Sokolov <aesok@post.ru>
18629
18630         * config/avr/avr.c (avr_current_arch): New variable.
18631         (avr_arch_types): Add 'avr31' and 'avr51' entries.
18632         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
18633         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
18634         (avr_override_options): Init 'avr_current_arch'.
18635         (base_arch_s): Move from here...
18636         * config/avr/avr.h (base_arch_s): ... here. Add new members
18637         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
18638         'mega' to 'have_jmp_call'.
18639         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
18640         "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
18641         macros.
18642         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
18643         architectures.
18644         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
18645         MULTILIB_MATCHES): Ditto.
18646
18647 2008-01-23  Richard Guenther  <rguenther@suse.de>
18648
18649         PR middle-end/31529
18650         * cgraphunit.c (cgraph_reset_node): Always mark the node
18651         not reachable if it is not queued already.
18652
18653 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
18654
18655         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
18656         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
18657         (cputype_selected): New static variable.
18658         (bfin_handle_option): Set it if -mcpu is used.
18659         (override_option): Select default set of workarounds if no cpu type
18660         selected on the command line.
18661         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
18662
18663         From  Michael Frysinger  <michael.frysinger@analog.com>
18664         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
18665         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
18666
18667         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
18668         for bf547, bf523, bf524, and bf526.
18669         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
18670         bf526.
18671         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
18672         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
18673         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
18674         __ADSPBF547__ and __ADSPBF54x__ for bf547.
18675         * doc/invoke.texi (Blackfin Options): Document that
18676         -mcpu now accept bf547, bf523, bf524, and bf526.
18677
18678 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
18679
18680         PR rtl-optimization/34628
18681         * combine.c (try_combine): Stop and undo after the first combination
18682         if an autoincrement side-effect on the first insn has effectively
18683         been lost.
18684
18685 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
18686
18687         PR target/34529
18688         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
18689         Offset addresses are not valid for Altivec or paired float modes.
18690
18691 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
18692
18693         PR c++/34607
18694         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
18695         if DECL_INITIAL (decl) is error_mark_node.
18696
18697         PR c++/34914
18698         * c-common.c (handle_vector_size_attribute): Only allow
18699         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
18700         the same way as pointer, array etc. types.
18701         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
18702
18703         PR c++/34917
18704         * tree.c (build_type_attribute_qual_variant): Call
18705         build_qualified_type if attributes are equal, but quals are not.
18706
18707 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
18708
18709         PR 32102
18710         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
18711         * flags.h (warn_strict_aliasing): Remove.
18712         (warn_strict_overflow): Remove.
18713         * opts.c (warn_strict_aliasing): Remove.
18714         (warn_strict_overflow): Remove.
18715         * c-opts.c (c_common_handle_option): -Wall only sets
18716         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
18717         (c_common_post_options): Give default values to -Wstrict-aliasing
18718         and -Wstrict-overflow if they are uninitialized.
18719         * common.opt (Wstrict-aliasing): Specify Var and Init.
18720         (Wstrict-overflow): Likewise.
18721
18722 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
18723
18724         PR rtl-optimization/26854
18725         PR rtl-optimization/34400
18726         PR rtl-optimization/34884
18727         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
18728         DF_RD->gen.
18729         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
18730         (df_rd_bb_info.expanded_lr_out): Deleted
18731         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
18732         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
18733         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
18734         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
18735         Removed code to allocate, initialize or free expanded_lr_out.
18736         (df_rd_bb_local_compute_process_def): Restructured to make more
18737         understandable.
18738         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
18739         sets if the sets are being trimmed.
18740
18741 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
18742
18743         PR bootstrap/32287
18744         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
18745         (as_vers): Likewise.
18746         * configure: Regenerated.
18747
18748 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
18749
18750         PR middle-end/33092
18751         * tree-pass.h (pass_build_alias): New pass.
18752         * tree-ssa-alias.c (gate_build_alias): New.
18753         (pass_build_alias): New.
18754         * passes.c (init_optimization_passes): Add pass_build_alias after
18755         pass_create_structure_vars.
18756
18757 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
18758
18759         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
18760         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
18761         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
18762         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
18763         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
18764         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
18765         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
18766         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
18767         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
18768         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
18769         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
18770         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
18771         * config/s390/s390.md (FP_ALL): New mode iterator.
18772         (_d): New mode attribute.
18773         ("*signbit<mode>2>"): Changed mode of first operand.
18774         ("isinf<mode>2"): Changed mode of first operand.
18775         ("*TDC_insn"): Adaptation for DFP modes.
18776
18777 2008-01-22  Ben Elliston  <bje@au.ibm.com>
18778
18779         * tree.c (check_qualified_type): Improve function description.
18780
18781 2008-01-21  Jason Merrill  <jason@redhat.com>
18782
18783         PR c++/34196
18784         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
18785         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
18786         if it is set.
18787
18788 2008-01-21  DJ Delorie  <dj@redhat.com>
18789
18790         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
18791         return zero.
18792
18793 2008-01-21  Richard Guenther  <rguenther@suse.de>
18794
18795         PR middle-end/34856
18796         * tree-cfg.c (verify_expr): Allow all invariant expressions
18797         instead of just constant class ones as reference argument.
18798         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
18799         like any other constant.
18800         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
18801
18802 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
18803
18804         * regmove.c (fixup_match_1): Update call crossed frequencies.
18805
18806 2008-01-21  Richard Guenther  <rguenther@suse.de>
18807
18808         PR c/34885
18809         * tree-inline.c (setup_one_parameter): Deal with mismatched
18810         types using a VIEW_CONVERT_EXPR.
18811
18812 2008-01-21  Alon Dayan  <alond@il.ibm.com>
18813             Olga Golovanevsky  <olga@il.ibm.com>
18814
18815         PR tree-optimization/34701
18816         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
18817         when the structure size is not a power of 2.
18818
18819 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
18820
18821         * doc/install.texi: Add doc for --enable-checking=df.
18822
18823 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
18824
18825         PR rtl-optimization/34808
18826         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
18827
18828 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
18829
18830         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
18831         input.
18832
18833 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
18834
18835         PR rtl-optimization/26854
18836         PR rtl-optimization/34400
18837         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
18838         DF_RD->gen.
18839         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
18840         (df_rd_bb_info.expanded_lr_out): New.
18841         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
18842         * loop_iv.c (iv_analysis_loop_init): Ditto.
18843         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
18844         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
18845         Added code to allocate, initialize or free expanded_lr_out.
18846         (df_rd_bb_local_compute_process_def): Restructured to make
18847         more understandable.
18848         (df_rd_confluence_n): Add code to do nothing with fake edges and
18849         code to no apply invalidate_by_call sets if the sets are being trimmed.
18850         (df_lr_local_finalize): Renamed to df_lr_finalize.
18851         (df_live_local_finalize): Renamed to df_live_finalize.
18852
18853 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
18854
18855         PR target/34831
18856         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
18857         deciding whether to use reciprocal instructions.
18858
18859 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
18860
18861         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
18862         dwarf2out_note_section_used if cold_text_section is NULL.
18863
18864 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
18865
18866         PR gcov-profile/34610
18867         * tree-cfg.c (make_edges): Mark both outgoing edges from
18868         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
18869         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
18870         from OMP_FOR and OMP_CONTINUE outgoing edges.
18871
18872         * tree-profile.c (tree_profiling): Return early if
18873         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
18874         at the end.
18875         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
18876         from cfun to child_cfun.
18877         * function.h (struct function): Add after_tree_profile bit.
18878
18879 2008-01-19 Anatoly Sokolov <aesok@post.ru>
18880
18881         * config/avr/avr.S (_exit): Disable interrupt.
18882
18883 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
18884             Steven Bosscher  <stevenb.gcc@gmail.com>
18885
18886         PR rtl-optimization/26854
18887         PR rtl-optimization/34400
18888         * df-problems.c (df_live_scratch): New scratch bitmap.
18889         (df_live_alloc): Allocate df_live_scratch when doing df_live.
18890         (df_live_reset): Clear the proper bitmaps.
18891         (df_live_bb_local_compute): Only process the artificial defs once
18892         since the order is not important.
18893         (df_live_init): Init the df_live sets only with the variables
18894         found live by df_lr.
18895         (df_live_transfer_function): Use the df_lr sets to prune the
18896         df_live sets as they are being computed.
18897         (df_live_free): Free df_live_scratch.
18898
18899 2008-01-18  Ian Lance Taylor  <iant@google.com>
18900
18901         * common.opt: Add fmerge-debug-strings.
18902         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
18903         flag_merge_debug_strings rather than flag_merge_constants.
18904         * doc/invoke.texi (Option Summary): Mention
18905         -fmerge-debug-strings.
18906         (Debugging Options): Document -fmerge-debug-strings.
18907
18908 2008-01-18  Ian Lance Taylor  <iant@google.com>
18909
18910         PR c++/33407
18911         * tree.h (DECL_IS_OPERATOR_NEW): Define.
18912         (struct tree_function_decl): Add new field operator_new_flag.
18913         * tree-inline.c (expand_call_inline): When inlining a call to
18914         operator new, force the return value to go into a variable, and
18915         set DECL_NO_TBAA_P on that variable.
18916         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
18917
18918 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
18919
18920         PR debug/34484
18921         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
18922         DWARF2_DEBUGGING_INFO.
18923         (dwarf2out_note_section_used): Ditto.  Add prototype.
18924         (have_multiple_function_sections, text_section_used,
18925         cold_text_section_used, *cold_text_sections): Move declarations
18926         before their uses.
18927
18928 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
18929
18930         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
18931         field and add signal_ra.
18932         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
18933         assignments to frame state pc.  Move end of stack check after
18934         MD_FALLBACK_FRAME_STATE_FOR.
18935         (uw_update_context_1): Use frame state signal_regs if set, instead
18936         of checking signal_frame flag.
18937         (uw_update_context): Use frame state signal_ra if set.
18938         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
18939         * config/xtensa/linux-unwind.h: New file.
18940
18941 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
18942
18943         * modulo-sched.c (get_sched_window): Fix comment typo.
18944
18945 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
18946
18947         PR tree-optimization/34648
18948         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
18949
18950 2008-01-17  Anatoly Sokolov <aesok@post.ru>
18951
18952         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
18953         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
18954
18955 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
18956
18957         PR rtl-optimization/34400
18958         * df-core.c (df_worklist_dataflow_overeager,
18959         df_worklist_dataflow_doublequeue): New functions.
18960         (df_worklist_dataflow): Two different worklist solvers.
18961         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
18962         New param.
18963
18964 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
18965
18966         PR testsuite/34821
18967         * doc/invoke.texi: Document the dependence on pthread for fopenmp
18968         and ftree-parallelize-loops.
18969
18970 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
18971
18972         PR rtl-optimization/34826
18973         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
18974
18975 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
18976
18977         * global.c (find_reg): Mark the eh regs as used if necessary.
18978         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
18979         * ra.h (struct allocno): no_eh_reg field added.  Changed
18980         no_stack_reg type to bitfield.
18981
18982 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
18983
18984         * tree.c (substitute_in_expr): Add missing 'break'.
18985
18986 2008-01-17  Richard Guenther  <rguenther@suse.de>
18987
18988         PR tree-optimization/34825
18989         * tree-ssa-math-opts.c (is_division_by): Do not recognize
18990         x / x as division to handle.
18991
18992 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18993
18994         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
18995         "-pthread" is specified.
18996         * pa-hpux11.h (LIB_SPEC): Likewise.
18997
18998 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
18999             Peter Bergner  <bergner@vnet.ibm.com>
19000
19001         PR rtl-optimization/33796
19002         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
19003
19004 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19005
19006         PR libgfortran/34699
19007         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
19008         static links.
19009         * pa-hpux10.h (LINK_SPEC): Likewise.
19010         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
19011
19012 2008-01-16  Richard Guenther  <rguenther@suse.de>
19013
19014         PR middle-end/32628
19015         * fold-const.c (fold_convert_const_int_from_int): Do not
19016         set overflow if that occured only because of a sign extension
19017         change when converting from/to a sizetype with the same
19018         precision and signedness.
19019
19020 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
19021
19022         PR debug/34249
19023         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
19024         location address to the correct place.  Update copyright year.
19025
19026 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
19027
19028         * lambda-code.c (lambda_transform_legal_p): Handle the case of
19029         no dependences in the dependence_relations vector.
19030
19031 2008-01-16  Jan Hubicka  <jh@suse.cz>
19032
19033         PR rtl-optimization/31396
19034         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
19035         * cfg.c (dump_reg_info): Print it.
19036         * regs.h (struct reg_info_t): add freq_calls_crossed.
19037         (REG_FREQ_CALLS_CROSSED): New macro.
19038         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
19039         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
19040         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
19041         regmove_optimize): Update call crossed frequencies.
19042         * local-alloc.c (struct qty): Add freq_calls_crossed.
19043         (alloc_qty): Copute freq_calls_crossed.
19044         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
19045         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
19046         * ra.h (struct allocno): Add freq_calls_crossed.
19047
19048 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
19049
19050         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
19051         libgomp when compiling with ftree-parallelize-loops.
19052         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
19053
19054 2008-01-16  Richard Guenther  <rguenther@suse.de>
19055
19056         PR tree-optimization/34769
19057         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
19058         * tree.c (int_cst_value): Instead make this function more
19059         permissive in what it accepts as valid input.  Document this
19060         function always sign-extends the value.
19061
19062 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
19063             Richard Guenther  <rguenther@suse.de>
19064
19065         PR c/34668
19066         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
19067         (gimple_fold_indirect_ref_rhs): ... this.
19068         (gimple_fold_indirect_ref): New function with foldings
19069         that preserve lvalueness.
19070         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
19071         * tree-flow.h (gimple_fold_indirect_ref): Declare.
19072         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
19073         to fold an INDIRECT_REF, fall back to the old use of
19074         fold_indirect_ref_1.
19075
19076 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
19077
19078         * tree-data-ref.c (subscript_dependence_tester_1): Call
19079         free_conflict_function.
19080         (compute_self_dependence): Same.
19081
19082 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
19083
19084         PR debug/34249
19085         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
19086         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
19087         function global.
19088         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
19089         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
19090         for DWARF2_UNWIND_INFO targets.
19091
19092 2008-01-16  Richard Guenther  <rguenther@suse.de>
19093
19094         PR c/34768
19095         * c-typeck.c (common_pointer_type): Do not merge inconsistent
19096         type qualifiers for function types.
19097
19098 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
19099
19100         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
19101         loop_iterator li from previous commit.
19102
19103 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
19104
19105         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
19106
19107 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
19108
19109         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
19110         (parallelize_loops): Don't parallelize irreducible components.
19111
19112 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19113
19114         PR c++/24924
19115         * c-opts (c_common_post_options): Do not enable CPP
19116         flag_pedantic_errors by default.
19117
19118 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
19119
19120         PR rtl-optimization/31944
19121         * cse.c (remove_pseudo_from_table): New function.
19122         (merge_equiv_classes): Use above function to remove pseudo-registers.
19123         (invalidate): Likewise.
19124
19125 2008-01-13  Richard Guenther  <rguenther@suse.de>
19126
19127         PR middle-end/34601
19128         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
19129         instead of TYPE_MODE to deal with calls from expand_one_error_var.
19130
19131 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
19132
19133         * gcse.c (cprop_jump): Call validate_unshare_change instead of
19134         validate_change to unshare the source of the PC set.
19135
19136 2008-01-12  Jan Hubicka  <jh@suse.cz>
19137
19138         PR middle-end/32135
19139         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
19140         references above array bounds.  This might trigger bounds checks for
19141         pointers to arrays.
19142
19143 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
19144
19145         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
19146         new_replaceable_dependencies.
19147
19148 2008-01-12  Doug Kwan  <dougkwan@google.com>
19149
19150         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
19151         instead of OPT_Wreturn_type in warning due to ignored return type
19152         qualifiers.
19153         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
19154         options included in -Wextra.
19155         * c.opt: New option -Wignored_qualifiers.
19156         * doc/invoke.texi (Warning Options, -Wextra): Add new option
19157         -Wignore_qualifiers.
19158         (-Wignored-qualifiers): Document.
19159         (-Wreturn-type): Remove description of functionality now handled
19160         by -Wignored-qualifiers.
19161
19162 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
19163
19164         PR ada/33788
19165         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
19166         NOP_EXPR if it is between integral types with the same precision.
19167
19168 2008-01-12  Jan Hubicka  <jh@suse.cz>
19169
19170         PR other/28023
19171         * invoke.texi (max-inline-recursive-depth): Fix default value.
19172
19173 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
19174
19175         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
19176         correct type.
19177
19178 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
19179
19180         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
19181
19182 2008-01-11  James E. Wilson  <wilson@specifix.com>
19183
19184         PR target/26015
19185         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
19186
19187 2008-01-11  Anatoly Sokolov <aesok@post.ru>
19188
19189         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
19190         save/restore frame pointer register and don't use 'call-prologues'
19191         optimization in function with "OS_task" attribute.
19192
19193 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
19194
19195         PR middle-end/31309
19196         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
19197         when copying to memory.
19198
19199 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
19200
19201         PR rtl-optimization/30905
19202         * cfgcleanup.c: Include dce.h
19203         (crossjumps_occured): New global variable.
19204         (try_crossjump_bb): Exit loop after finding a fallthru edge.
19205         If something changed, set crossjumps_occured to true.
19206         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
19207         Don't add/remove fake edges to exit here...
19208         (cleanup_cfg): ...but do it here, when crossjumping.
19209         Run a fast DCE when successful crossjumps occured in the latest
19210         iteration of try_optimize_cfg.
19211
19212 2008-01-11  Richard Guenther  <rguenther@suse.de>
19213
19214         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
19215         (struct vn_unary_op_s): Likewise.
19216         (vn_reference_insert): Free old reference on hash collision.
19217
19218 2008-01-10  Raksit Ashok  <raksit@google.com>
19219
19220         PR rtl-optimization/27971
19221         * combine.c (find_split_point): Split PLUS expressions which are
19222         inside a MEM rtx, and whose first operand is complex.
19223
19224 2008-01-10  DJ Delorie  <dj@redhat.com>
19225
19226         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
19227         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
19228         (m32c_hard_regno_ok): Call the underlying function.
19229
19230 2008-01-10  Richard Guenther  <rguenther@suse.de>
19231
19232         PR middle-end/34683
19233         * tree-cfg.c (tree_merge_blocks): Do not go through the
19234         full-blown folding and stmt updating path if we just deal
19235         with virtual operands.
19236         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
19237         test for abnormal SSA_NAMEs.
19238
19239 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
19240
19241         PR middle-end/34641
19242         * reload.c (push_reload): Add assertions.  All constants from
19243         reg_equiv_constant should have been used for replacing the respective
19244         pseudo earlier.
19245         (find_reloads_address): Invoke find_reloads_address_part for
19246         constant taken from the reg_equiv_constant array.
19247
19248 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
19249
19250         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
19251         field (valnum) the first in the struct.  Replace bools with
19252         unit bit fields.
19253
19254 2008-01-10  Richard Guenther  <rguenther@suse.de>
19255
19256         PR tree-optimization/34651
19257         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
19258         types and ordering for masking and converting.
19259
19260 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
19261
19262         PR tree-optimization/34017
19263         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
19264         also for PHI_NODE expressions.
19265
19266 2008-01-09  Jan Hubicka  <jh@suse.cz>
19267
19268         PR tree-optimization/34708
19269         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
19270         based on number of case labels.
19271         (init_inline_once): Remove switch_cost.
19272         * tree-inline.h (eni_weights_d): Remove switch_cost.
19273
19274 2008-01-09  Richard Guenther  <rguenther@suse.de>
19275         Andrew Pinski  <andrew_pinski@playstation.sony.com>
19276
19277         PR middle-end/30132
19278         * gimplify.c (gimplify_cond_expr): Do not create an addressable
19279         temporary if an rvalue is ok or an lvalue is not required.
19280
19281 2008-01-09  Richard Guenther  <rguenther@suse.de>
19282
19283         PR middle-end/34458
19284         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
19285         adjust return type.
19286
19287 2008-01-09  Richard Guenther  <rguenther@suse.de>
19288
19289         PR middle-end/34679
19290         * tree.c (host_integerp): Check for sizetype only if the
19291         type is an integer type.
19292
19293 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
19294
19295         PR debug/26364
19296         * opts.c (decode_options): Disable inlining of functions called
19297         once if not in unit-at-a-time mode.
19298
19299 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
19300
19301         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
19302
19303 2008-01-08  Richard Guenther  <rguenther@suse.de>
19304
19305         PR middle-end/31863
19306         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
19307         out early if the result will be unused.
19308
19309 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
19310
19311         PR target/34709
19312         Revert:
19313
19314         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
19315         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
19316         for TARGET_RECIP.
19317
19318 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
19319
19320         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
19321         for vectorization tuned.
19322
19323 2008-01-08  Richard Guenther  <rguenther@suse.de>
19324
19325         PR tree-optimization/34683
19326         * tree-ssa-operands.c (operand_build_cmp): Export.
19327         * tree-ssa-operands.h (operand_build_cmp): Declare.
19328         * tree-vn.c (vuses_compare): Remove.
19329         (sort_vuses): Use operand_build_cmp.
19330         (sort_vuses_heap): Likewise.
19331         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
19332         to re-use old VEC if available.  Do not sort already sorted VUSEs.
19333         (vdefs_to_vec): Do not sort already sorted VDEFs.
19334
19335 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
19336
19337         PR middle-end/34694
19338         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
19339
19340 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
19341
19342         PR target/34702
19343         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
19344         limitations of reciprocal sequences on x86 targets.
19345
19346 2008-01-08  Richard Guenther  <rguenther@suse.de>
19347
19348         PR tree-optimization/34683
19349         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
19350
19351 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
19352
19353         PR target/34622
19354         * config/darwin.c (darwin_mergeable_string_section): Don't use
19355         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
19356
19357 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
19358
19359         PR target/34682
19360         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
19361         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
19362         predicates of op0 and op1 to register_operand.
19363         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
19364         expander using X87MODEF mode iterator.  Change predicates of
19365         op0 and op1 to register_operand.
19366         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
19367         corresponding patterns and macroize using MODEF macro.  Change
19368         predicates of op0 and op1 to register_operand and remove
19369         "m" constraint. Disparage "r" alternative with "!".
19370         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
19371         macroize using X87MODEF macro.  Change predicates of op0 and op1
19372         to register_operand and remove "m" constraint.  Disparage "r"
19373         alternative with "!".
19374         (absneg splitter with memory operands): Remove.
19375         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
19376         patterns and macroize using X87MODEF mode iterator.
19377         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
19378         Change predicate of op1 to register_operand.
19379         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
19380         for memory operands.
19381
19382 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
19383
19384         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
19385
19386 2008-01-07  Richard Guenther  <rguenther@suse.de>
19387
19388         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
19389         fields.
19390
19391 2008-01-07  Richard Guenther  <rguenther@suse.de>
19392
19393         PR tree-optimization/34683
19394         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
19395         VOPs of the needed size to save memory.  Use VEC_quick_push
19396         to save compile-time.
19397         (vdefs_to_vec): Likewise.
19398
19399 2008-01-07  Sa Liu  <saliu@de.ibm.com>
19400
19401         * config/spu/spu.md (divdf3): Genetate inline code for double
19402         division.  The implementation doesn't handle INF or NAN, therefore it
19403         only applies when -ffinite-math-only is given.
19404
19405 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
19406
19407         PR libstdc++/34680
19408         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
19409         * doc/cpp.texi ([Common Predefined Macros]): Document.
19410
19411 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
19412
19413         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
19414         order to use commutative addition instead of subtraction.
19415
19416 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19417             Mircea Namolaru  <namolaru@il.ibm.com>
19418             Vladimir Yanovsky  <yanov@il.ibm.com>
19419             Revital Eres  <eres@il.ibm.com>
19420
19421         PR tree-optimization/34263
19422         * tree-outof-ssa.c (process_single_block_loop_latch,
19423         contains_tree_r): New functions.
19424         (analyze_edges_for_bb): Call process_single_block_loop_latch
19425         function to empty single-basic-block latch block if possible.
19426
19427 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
19428
19429         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
19430         for TARGET_RECIP.
19431         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
19432
19433 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
19434
19435         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
19436
19437 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
19438
19439         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
19440
19441 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
19442
19443         PR tree-optimization/34618
19444         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
19445         flag from T.
19446
19447 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
19448
19449         PR target/34673
19450         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
19451         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
19452         Update copyright year.
19453
19454         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
19455         Update copyright year.
19456         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
19457         using NR fixup.
19458
19459 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
19460
19461         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
19462         edge does not point to current bb before changing need_assert.
19463
19464 2008-01-04  Richard Guenther  <rguenther@suse.de>
19465
19466         PR middle-end/34029
19467         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
19468         for verifying purposes if they are is_gimple_min_invariant.
19469
19470 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
19471
19472         PR tree-optimization/34448
19473         PR tree-optimization/34465
19474         * gimplify.c (gimplify_init_constructor): Add new parameter
19475         notify_temp_creation.  Use it.
19476         (gimplify_modify_expr_rhs): Take volatiles into account when
19477         optimizing constructors.
19478         Do not optimize constructors if gimplify_init_constructor will dump to
19479         memory.
19480         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
19481         * gcc.c-torture/compile/pr34448.c: New.
19482
19483 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
19484
19485         PR gcov-profile/34609
19486         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
19487         return_slot if result is TREE_ADDRESSABLE.
19488
19489 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
19490
19491         * config/mips/mips.md (sqrt_condition): Tweak comment.
19492         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
19493
19494 2008-01-03  Tom Tromey  <tromey@redhat.com>
19495
19496         PR c/34457
19497         * c-common.c (c_type_hash): Handle VLAs.
19498
19499 2008-01-03  Jan Hubicka  <jh@suse.cz>
19500
19501         PR tree-optimization/31081
19502         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
19503         0 when inlining and not inlining to first basic block.
19504         (remap_decl): When var is initialized to 0, don't set default_def.
19505         (expand_call_inline): Set entry_bb.
19506         * tree-inline.h (copy_body_data): Add entry_bb.
19507
19508 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
19509
19510         PR c++/34619
19511         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
19512         before returning.
19513
19514         PR tree-optimization/29484
19515         * tree-inline.c (inline_forbidden_p_2): New function.
19516         (inline_forbidden_p): Disallow inlining if some static var
19517         has an address of a local LABEL_DECL in its initializer.
19518         * doc/extend.texi (Labels as Values): Document &&foo behaviour
19519         vs. inlining.
19520
19521 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
19522
19523         PR tree-optimization/34635
19524         * tree-data-ref.c (add_other_self_distances): Make sure that the
19525         evolution step is constant.
19526
19527 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
19528
19529         PR middle-end/34608
19530         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
19531
19532 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
19533
19534         * tree-sra.c (scalarize_init): Insert the generate_element_init
19535         statements after the generate_element_zero statements.
19536
19537 2008-01-02  Richard Guenther  <rguenther@suse.de>
19538
19539         PR middle-end/34093
19540         PR middle-end/31976
19541         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
19542         for very large number of operands instead of ICEing.
19543
19544 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
19545
19546         PR target/34013
19547         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
19548         while stack probing.
19549
19550 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
19551
19552         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
19553         in C++0x mode.
19554
19555 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
19556
19557         PR libmudflap/26442
19558         * tree-mudflap.c (mx_register_decls): Guard warning by
19559         !DECL_ARTIFICIAL check.
19560
19561 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
19562
19563         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
19564         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
19565         sse5_perm<mode>): Fix constraints.