OSDN Git Service

2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
4         attribute to 1 only for insertps alternative.
5
6 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
7
8         * config/bfin/bfin.md (loadbytes): New pattern.
9         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
10         (bfin_init_builtins): Initialize it.
11         (bdesc_1arg): Add it.
12
13 2008-05-15  Sa Liu  <saliu@de.ibm.com>
14
15         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
16         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
17         * testsuite/lib/target-supports.exp: Add
18         check_effective_target_fortran_integer_16.
19
20 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
21
22         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
23         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
24         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
25         (TARGET_RETURN_IN_MEMORY): Define.
26
27 2008-05-15  Richard Guenther  <rguenther@suse.de>
28
29         PR middle-end/36244
30         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
31         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
32         represent unmodifiable vars.
33
34 2008-05-15  Richard Guenther  <rguenther@suse.de>
35
36         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
37         INDIRECT_REF and TARGET_MEM_REF.
38         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
39         TARGET_MEM_REF.
40
41 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
42             H.J. Lu  <hongjiu.lu@intel.com>
43
44         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
45         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
46         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
47         insn alternatives.  Add missing alternatives.
48         (*vec_concatv2di_rex64_sse4_1): Likewise.
49         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
50         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
51         Require TARGET_SSE.
52
53 2008-05-15  Richard Guenther  <rguenther@suse.de>
54
55         PR tree-optimization/36009
56         PR tree-optimization/36204
57         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
58         (determine_invariantness_stmt): Record the loop a store is
59         always executed in.
60         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
61         dependency.
62
63 2008-05-15  Richard Guenther  <rguenther@suse.de>
64
65         PR tree-optimization/34330
66         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
67         through the pointer will alias the SMT.
68
69 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
70
71         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
72
73 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
74
75         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
76
77 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
78             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
79
80         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
81         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
82         (vashl_optab): New optab for vector/vector shifts.
83         (vashr_optab): Ditto.
84         (vlshr_optab): Ditto.
85         (vrotl_optab): Ditto.
86         (vrotr_optab): Ditto.
87         (optab_subtype): New enum for optab_for_tree_code call.
88         (optab_for_tree_code): Add enum optab_subtype argument.
89
90         * optabs.c (optab_for_tree_code): Take an additional argument to
91         distinguish between a vector shift by a scalar and vector shift by
92         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
93         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
94         vector shift by a vector.
95         (expand_widen_pattern_expr): Pass additional argument to
96         optab_for_tree_code.
97
98         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
99         vrotl_optab, vrotr_optab.
100
101         * expr.c (expand_expr_real_1): Update calls to
102         optab_for_tree_code to distinguish between vector shifted by a
103         scalar and vector shifted by a vector.
104         * tree-vectorizer.c (supportable_widening_operation): Ditto.
105         (supportable_narrowing_operation): Ditto.
106         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
107         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
108         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
109         (vect_create_epilog_for_reduction): Ditto.
110         (vectorizable_reduction): Ditto.
111         (vectorizable_operation): Ditto.
112         (vect_strided_store_supported): Ditto.
113         (vect_strided_load_supported): Ditto.
114         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
115         * expmed.c (expand_shift): Ditto.
116
117         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
118         scalar type.
119         (ashr@var{m}3): Ditto.
120         (vashl@var{m}3): Document new vector/vector shift standard name.
121         (vashr@var{m}3): Ditto.
122         (vlshr@var{m}3): Ditto.
123         (vrotl@var{m}3): Ditto.
124         (vrotr@var{m}3): Ditto.
125
126         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
127         (PPERM_INVERT): Ditto.
128         (PPERM_REVERSE): Ditto.
129         (PPERM_REV_INV): Ditto.
130         (PPERM_ZERO): Ditto.
131         (PPERM_ONES): Ditto.
132         (PPERM_SIGN): Ditto.
133         (PPERM_INV_SIGN): Ditto.
134         (PPERM_SRC1): Ditto.
135         (PPERM_SRC2): Ditto.
136
137         * config/i386/sse.md (mulv2di3): Add SSE5 support.
138         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
139         allows a memory operand to be the value being added, and split it
140         to improve vectorization.
141         (sse5_pmacsdqh_mem): Ditto.
142         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
143         (sse5_mulv2div2di3_high): Ditto.
144         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
145         (vec_pack_trunc_v4si): Ditto.
146         (vec_pack_trunc_v2di): Ditto.
147         (sse5_pcmov_<mode>): Remove code that tried to use use
148         andps/andnps instead of pcmov.
149         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
150         pmacsdqh instructions.
151         (vec_widen_smult_lo_v4si): Ditto.
152
153         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
154         (PPERM_INVERT): Ditto.
155         (PPERM_REVERSE): Ditto.
156         (PPERM_REV_INV): Ditto.
157         (PPERM_ZERO): Ditto.
158         (PPERM_ONES): Ditto.
159         (PPERM_SIGN): Ditto.
160         (PPERM_INV_SIGN): Ditto.
161         (PPERM_SRC1): Ditto.
162         (PPERM_SRC2): Ditto.
163         (ix86_expand_sse_movcc): Move the SSE5 test after the if
164         true/false tests.
165         (ix86_expand_int_vcond): If SSE5 generate all possible integer
166         comparisons.
167         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
168         says ignore whether the last reference is a memory operand.
169
170 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
171             Paolo Bonzini <bonzini at gnu dot org>
172
173         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
174         shift patterns.
175
176         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
177         (vlshr<mode>3): Rename from vlshr<mode>3.
178         (vashr<mode>3): Rename from vashr<mode>3.
179         (mulv4sf3): Change the names of vector shift patterns.
180         (mulv4si3): Ditto.
181         (negv4sf2): Ditt.
182
183         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
184         shift insns.
185
186         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
187         (SI_SHLHI): Ditto.
188         (SI_SHL): Ditto.
189         (SI_SHLI): Ditto.
190         (SI_ROTH): Ditto.
191         (SI_ROTHI): Ditto.
192         (SI_ROT): Ditto.
193         (SI_ROTI): Ditto.
194         (SPU_RL_0): Ditto.
195         (SPU_RL_1): Ditto.
196         (SPU_RL_2): Ditto.
197         (SPU_RL_3): Ditto.
198         (SPU_RL_4): Ditto.
199         (SPU_RL_5): Ditto.
200         (SPU_RL_6): Ditto.
201         (SPU_RL_7): Ditto.
202         (SPU_SL_0): Ditto.
203         (SPU_SL_1): Ditto.
204         (SPU_SL_2): Ditto.
205         (SPU_SL_3): Ditto.
206         (SPU_SL_4): Ditto.
207         (SPU_SL_5): Ditto.
208         (SPU_SL_6): Ditto.
209         (SPU_SL_7): Ditto.
210
211         * config/spu/spu.md (v): New iterator macro to add v for vector types.
212         (floatunssidf2_internal): Change vector/vector shift names.
213         (floatunsdidf2_internal): Ditto.
214         (mulv8hi3): Ditto.
215         (ashrdi3): Ditto.
216         (ashrti3): Ditto.
217         (cgt_df): Ditto.
218         (cgt_v2df): Ditto.
219         (dftsv): Ditto.
220         (vashl<mode>3): Rename from ashl<mode>3.
221         (vashr<mode>3): Rename from ashr<mode>3.
222         (vlshr<mode>3): Rename from lshr<mode>3.
223         (vrotl<mode>3): Rename from rotl<mode>3.
224
225 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
226
227         PR target/36224
228         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
229         multiply gives the wrong value when doing widening multiplies.
230         (vec_widen_smult_lo_v4si): Ditto.
231
232 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
233
234         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
235         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
236         emit_library_call_value. 
237         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
238         * tree.h (ECF_LIBCALL_BLOCK): Removed.
239         * calls.c (initialize_argument_information, precompute_arguments, 
240         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
241         (precompute_arguments): Removed flags parameter.
242         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
243         
244 2008-05-14  Richard Guenther  <rguenther@suse.de>
245
246         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
247         Make sure to register the store if the use is a PHI_NODE.
248
249 2008-05-14  Olivier Hainque  <hainque@adacore.com>
250
251         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
252         memory if the component is to be referenced in BLKmode according
253         to get_inner_reference.
254
255 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
256
257         * calls.c (emit_library_call_value_1): Restore code clearing
258         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
259
260 2008-05-14  Olivier Hainque  <hainque@adacore.com>
261             Nicolas Roche  <roche@adacore.com>
262
263         * configure.ac: Add support for a "gcc_subdir" variable in
264         config-lang.in, to denote a subdirectory where the language/GCC
265         integration files are to be found.
266         * configure: Regenerate.
267
268 2008-05-14  Ira Rosen  <irar@il.ibm.com>
269
270         PR tree-optimization/36098
271         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
272         value for the first load in the group in case of a gap.
273         (vect_build_slp_tree): Check that there are no gaps in loads.
274
275 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
276
277         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
278         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
279         expand_copysign_bit, ): Change call to emit_no_conflict_block to
280         emit_insn and remove unneeded code to construct extra args.
281         (emit_no_conflict_block): Removed.
282         * optabls.h: (emit_no_conflict_block): Removed.
283         * cse.c (cse_extended_basic_block): Remove search for
284         REG_NO_CONFLICT note.
285         * global.c: Removed incorrect comment added in revision 117.
286         * expr.c (convert_move): Change call to emit_no_conflict_block to
287         emit_insn.
288         * recog.c: Change comments so that they do not mention
289         REG_NO_CONFLICT.
290         * local_alloc.c (combine_regs): Removed last parameter.
291         (no_conflict_p): Removed.
292         (block_alloc): Removed note, no_conflict_combined_regno and set
293         local vars. Removed all code to process REG_NO_CONFLICT blocks.
294         (combine_regs): Removed already_dead and code to look for
295         REG_NO_CONFLICT notes.
296         * lower_subreg (remove_retval_note): Removed code to look for
297         REG_NO_CONFLICT block.
298         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
299         (resolve_clobber): Remove code to process libcalls that have
300         REG_NO_CONFLICT notes.
301         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
302         case.
303         * combine.c (can_combine_p, distribute_notes):  Removed
304         REG_NO_CONFLICT case.
305         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
306         to emit_insns.
307         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
308         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
309         Ditto.
310         * reg-notes.def (NO_CONFLICT): Removed.
311
312 2008-05-14  David S. Miller  <davem@davemloft.net>
313
314         * config/sparc/sparc.c (sparc_profile_hook): If
315         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
316         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
317         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
318
319 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
320
321         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
322
323 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
324
325         PR target/36222
326         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
327         and op1 expansion before vector concat to have less live pseudos.
328
329 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
330
331         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
332         ix86_expand_vector_set if supported.
333
334 2008-05-13  Diego Novillo  <dnovillo@google.com>
335             Kenneth Zadeck  <zadeck@naturalbridge.com>
336
337         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
338
339         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
340         phinodes_print_statistics, init_ssanames, fini_ssanames,
341         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
342         release_ssa_name, release_defs, replace_ssa_name_symbol,
343         ssanames_print_statistics): Move ...
344         * tree-flow.h: ... here.
345         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
346         Use FN instead of cfun.
347         (make_ssa_name_fn): Rename from make_ssa_name.
348         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
349         * tree-flow-inline.h (make_ssa_name): Move from
350         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
351         * omp-low.c (expand_omp_parallel):
352         * tree-flow-inline.h (redirect_edge_var_map_result):
353         * tree-ssa.c (init_tree_ssa): Add argument FN.
354         Use it instead of cfun.  Update all users.
355
356 2008-05-13  Tom Tromey  <tromey@redhat.com>
357
358         PR preprocessor/22168:
359         * doc/cpp.texi (Top): Update menu.
360         (Alternatives to Wrapper #ifndef): New node.
361         (Other Directives): Document deprecation.
362         (Obsolete Features): Remove menu.
363         (Assertions): Merge node into Obsolete Features.
364         (Obsolete once-only headers): Move earlier; rename to Alternatives
365         to Wrapper #ifndef.
366         * doc/cppopts.texi: Update.
367         * c.opt (Wdeprecated): Enable for C and ObjC.
368         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
369         (C++ Dialect Options): Move -Wno-deprecated from here to...
370         (Warning Options): ... here.
371
372 2008-05-13  Richard Guenther  <rguenther@suse.de>
373
374         PR middle-end/36227
375         * fold-const.c (fold_sign_changed_comparison): Do not allow
376         changes in pointer-ness.
377
378 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
379
380         PR target/24713
381         * config/sh/sh.c (sh_expand_prologue): Don't clear
382         RTX_FRAME_RELATED_P for push insns.
383
384 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
385
386         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
387
388 2008-05-12  Anatoly Sokolov <aesok@post.ru>
389
390         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
391         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
392         Use 'machine->is_leaf' instead of 'leaf_func_p'.
393
394 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
395
396         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
397         (*vec_concatv4sf_sse): This.
398         (*sse2_concatv2si): Renamed to ...
399         (*vec_concatv2si_sse2): This.
400         (*sse1_concatv2si): Renamed to ...
401         (*vec_concatv2si_sse): This.
402         (*vec_concatv2di_rex): Renamed to ...
403         (*vec_concatv2di_rex64): This.
404         (*vec_concatv2si_sse4_1): New.
405         (*vec_concatv2di_rex64_sse4_1): Likewise.
406
407 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
408
409         PR rtl-optimization/36111
410         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
411         that was created for swappable operands.
412
413 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
414
415         PR ada/36001
416         * Makefile.in: Substitute GNATMAKE and GNATBIND.
417         * configure.ac: Add call to ACX_PROG_GNAT.
418
419 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
420
421         * optc-gen.awk: Fix comment typo.
422
423 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
424
425         * pretty-print.c (pp_integer_with_precision): Use
426         HOST_LONG_LONG_FORMAT.
427
428 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
429
430         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
431                 
432 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
433
434         * config/i386/i386.c (bdesc_ptest): Removed.
435         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
436         (bdesc_args): Add __builtin_ia32_ptestz128,
437         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
438         (ix86_init_mmx_sse_builtins): Updated.
439         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
440         (ix86_expand_builtin): Updated.
441
442 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
443
444         * tree-cfg.c (valid_fixed_convert_types_p): New function.
445         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
446
447 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
448
449         * value-prof.c (interesting_stringop_to_profile): Do not
450         return early for BUILT_IN_MEMPCPY.
451
452 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
453
454         * calls.c (expand_call): Don't use callgraph to increase
455         preferred_stack_boundary.
456
457         * cgraph.h (cgraph_rtl_info): Use unsigned on
458         preferred_incoming_stack_boundary.
459
460         * final.c (rest_of_clean_state): Use unsigned on
461         preferred_stack_boundary.
462
463 2008-05-09  Tom Tromey  <tromey@redhat.com>
464
465         PR preprocessor/22231:
466         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
467         proceeding.
468
469 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
470
471         PR tree-optimization/36129
472         * tree-ssa-ccp.c: Include value-prof.h.
473         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
474         built-in function was folded to a constant.
475         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
476
477 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
478             Sebastian Pop  <sebastian.pop@amd.com>
479
480         * tree-scalar-evolution.c: Document instantiate_scev.
481         (instantiate_parameters_1): Renamed instantiate_scev_1.
482         Don't use the same loop for instantiation_loop and evolution_loop.
483         (instantiate_scev): New.
484         (instantiate_parameters): Moved...
485         (resolve_mixers): Update call to instantiate_scev_1 to pass the
486         same loop twice.  Maintains the semantics for this function.
487         * tree-scalar-evolution.h (instantiate_scev): Declare.
488         (instantiate_parameters): ...here.  Now static inline.
489         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
490         instead of resolve_mixers.
491
492 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
493
494         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
495
496 2008-05-09  Tomas Bily  <tbily@suse.cz>
497
498         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
499         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
500         * tree-ssa-structalias.c (get_constraint_for): Likewise.
501         * c-common.c (c_common_truthvalue_conversion): Likewise.
502         * tree-object-size.c (compute_object_offset): Likewise.
503         * tree-inline.c (estimate_num_insns_1): Likewise.
504         * varasm.c (const_hash_1, compare_constant, copy_constant)
505         (compute_reloc_for_constant, output_addressed_constants)
506         (initializer_constant_valid_p): Likewise.
507         * c-omp.c (check_omp_for_incr_expr): Likewise.
508         * gimplify.c (gimplify_expr): Likewise.
509         * c-typeck.c (c_finish_return): Likewise.
510         * tree-vectorizer.c (supportable_widening_operation)
511         (supportable_narrowing_operation): Likewise.
512         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
513         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
514         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
515         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
516         (descr_info_loc): Likewise.
517         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
518         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
519         (fold_unary): Likewise.
520         * builtins.c (get_pointer_alignment): Likewise.
521         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
522         (instantiate_parameters_1): Likewise.
523         * tree.c (expr_align, stabilize_reference): Likewise.
524         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
525         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
526         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
527         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
528         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
529         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
530         Likewise.
531         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
532         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
533         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
534         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
535         (forward_propagate_comparison)
536         (tree_ssa_forward_propagate_single_use_vars): Likewise.
537         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
538         * emit-rtl.c (component_ref_for_mem_expr)
539         (set_mem_attributes_minus_bitpos): Likewise.
540         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
541         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
542         Likewise.
543         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
544         (build_function_call, pointer_diff, build_compound_expr)
545         (c_finish_return): Likewise.
546         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
547         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
548         Likewise.
549         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
550         * expr.c (is_aligning_offset): Likewise.
551         * tree-ssa-alias.c (is_escape_site): Likewise.
552         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
553         (check_all_va_list_escapes): Likewise.
554         * tree-ssa-loop-ivopts.c (determine_base_object)
555         (determine_common_wider_type): Likewise.
556         * dojump.c (do_jump): Likewise.
557         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
558         * tree-gimple.c (is_gimple_cast): Likewise.
559         * fold-const.c (decode_field_reference, )
560         (fold_sign_changed_comparison, fold_unary, fold_comparison)
561         (fold_binary): Likewise.
562         * tree-ssa-alias-warnings.c (find_alias_site_helper)
563         (already_warned_in_frontend_p): Likewise.
564         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
565         * tree.c (really_constant_p, get_unwidened): Likewise.
566         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
567         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
568         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
569         Likewise.
570         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
571         CONVERT_EXPR_P.
572         (CONVERT_EXPR_P): Define.
573         (CASE_CONVERT): Define.
574         
575 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
576
577         PR middle-end/36117
578         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
579         (delete_unmarked_insns): When deleting a call, call
580         delete_unreachable_blocks.
581         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
582         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
583
584 2008-05-08  Richard Guenther  <rguenther@suse.de>
585
586         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
587         (-ftree-salias): Likewise.
588         (salias-max-implicit-fields): Remove param documentation.
589         (salias-max-array-elements): Likewise.
590         * tree-pass.h (pass_create_structure_vars): Remove.
591         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
592         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
593         * tree-ssa-alias.c (create_structure_vars): Remove.
594         (gate_structure_vars): Likewise.
595         (pass_create_structure_vars): Likewise.
596         (gate_build_alias): Likewise.
597         (pass_build_alias): Adjust to run always and dump the function.
598         * common.opt (ftree-salias): Hide.
599         * passes.c (init_optimization_passes): Remove
600         pass_create_structure_vars, adjust comment.
601         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
602         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
603         * opts.c (decode_options): Do not set flag_tree_salias.
604         (common_handle_option): Add OPT_ftree_salias to the backward
605         compatibility section.
606
607 2008-05-08  Richard Guenther  <rguenther@suse.de>
608
609         * tree-flow-inline.h (var_can_have_subvars): Move ...
610         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
611         * tree-flow.h (var_can_have_subvars): Remove.
612         (push_fields_onto_fieldstack): Remove.
613         (sort_fieldstack): Likewise.
614         (struct fieldoff): Move ...
615         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
616         alias_set and base_for_components fields.
617         (sort_fieldstack): Make static.
618         (push_fields_onto_fieldstack): Likewise.  Remove code that
619         handles anything but RECORD_TYPEs.  Remove alias_set and
620         base_for_components handling.
621         (create_variable_info_for): Adjust.
622
623 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
624
625         * common.opt (Wframe-larger-than=): Shorten the help message
626         to one line.
627         * doc/invoke.texi (Wframe-larger-than=): Add more description.
628
629 2008-05-08  Rafael Espindola  <espindola@google.com>
630
631         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
632         trap.
633         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
634         trap and that both operands are gimple values.
635         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
636         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
637         is a fp operation.
638
639 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
640
641         * read-rtl.c (join_c_conditions): Return the first string if the
642         two strings are equal.
643
644 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
645
646         * gensupport.h (pred_data): Add a "num_codes" field.
647         (add_predicate_code): Declare.
648         * gensupport.c (add_predicate_code): New function.
649         (std_pred_table): Add an "allows_const_p" field.
650         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
651         Remove the (incomplete) list of such codes from the codes field.
652         (init_predicate_table): Use add_predicate_code.  Add all
653         RTX_CONST_OBJs if allows_const_p is true.
654         * genrecog.c (process_define_predicate): Use add_predicate_code.
655
656 2008-05-08  David Daney  <ddaney@avtrex.com>
657             Richard Sandiford  <rsandifo@nildram.co.uk>
658         
659         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
660         special case of constant zero operands.
661         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
662         old and new values.  Special case constant zero values.
663         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
664         fails.
665         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
666         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
667
668 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
669
670         PR target/36090
671         * simplify-rtx.c (simplify_plus_minus): Create CONST of
672         similar RTX_CONST_OBJ before CONST_INT.
673
674 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
675
676         * stmt.c (expand_stack_restore): Change sa mode if needed.
677
678 2008-05-08  Richard Guenther  <rguenther@suse.de>
679
680         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
681         return type to bool.
682         (ix86_sol10_return_in_memory): Likewise.
683         (ix86_i386elf_return_in_memory): Likewise.
684         (ix86_i386interix_return_in_memory): Likewise.
685         * config/i386/i386.c (ix86_return_in_memory): Likewise.
686         (ix86_sol10_return_in_memory): Likewise.
687         (ix86_i386elf_return_in_memory): Likewise.
688         (ix86_i386interix_return_in_memory): Likewise.
689
690 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
691
692         PR bootstrap/36180
693         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
694         fndecl argument.
695         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
696         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
697         declared in front.
698
699 2008-05-08  Richard Guenther  <rguenther@suse.de>
700
701         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
702         * tree-data-ref.h (struct dr_alias): Remove subvars field.
703         (DR_SUBVARS): Remove.
704         * tree-dfa.c (dump_subvars_for): Remove.
705         (debug_subvars_for): Likewise.
706         (dump_variable): Do not dump subvars.
707         (remove_referenced_var): Do not remove subvars.
708         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
709         (lookup_subvars_for_var): Remove.
710         (get_subvars_for_var): Likewise.
711         (get_subvars_at): Likewise.
712         (get_first_overlapping_subvar): Likewise.
713         (overlap_subvar): Likewise.
714         * tree-flow.h (subvar_t): Remove.
715         (struct var_ann_d): Remove subvars field.
716         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
717         argument.  Remove special handling of SFTs.
718         (compute_tag_properties): Likewise.
719         (set_initial_properties): Likewise.
720         (compute_call_clobbered): Likewise.
721         (count_mem_refs): Likewise.
722         (compute_memory_partitions): Likewise.
723         (compute_flow_insensitive_aliasing): Likewise.
724         (setup_pointers_and_addressables): Likewise.
725         (new_type_alias): Likewise.
726         (struct used_part): Remove.
727         (used_portions): Likewise.
728         (struct used_part_map): Likewise.
729         (used_part_map_eq): Likewise.
730         (used_part_map_hash): Likewise.
731         (free_used_part_map): Likewise.
732         (up_lookup): Likewise.
733         (up_insert): Likewise.
734         (get_or_create_used_part_for): Likewise.
735         (create_sft): Likewise.
736         (create_overlap_variables_for): Likewise.
737         (find_used_portions): Likewise.
738         (create_structure_vars): Likewise.
739         * tree.def (STRUCT_FIELD_TAG): Remove.
740         * tree.h (MTAG_P): Adjust.
741         (struct tree_memory_tag): Remove base_for_components and
742         unpartitionable flags.
743         (struct tree_struct_field_tag): Remove.
744         (SFT_PARENT_VAR): Likewise.
745         (SFT_OFFSET): Likewise.
746         (SFT_SIZE): Likewise.
747         (SFT_NONADDRESSABLE_P): Likewise.
748         (SFT_ALIAS_SET): Likewise.
749         (SFT_UNPARTITIONABLE_P): Likewise.
750         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
751         (union tree_node): Remove sft field.
752         * alias.c (get_alias_set): Remove special handling of SFTs.
753         * print-tree.c (print_node): Remove handling of SFTs.
754         * tree-dump.c (dequeue_and_dump): Likewise.
755         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
756         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
757         * tree-predcom.c (set_alias_info): Do not set subvars.
758         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
759         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
760         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
761         (add_vars_for_offset): Remove.
762         (add_virtual_operand): Remove special handling of SFTs.
763         (add_call_clobber_ops): Likewise.
764         (add_call_read_ops): Likewise.
765         (get_asm_expr_operands): Likewise.
766         (get_modify_stmt_operands): Likewise.
767         (get_expr_operands): Likewise.
768         (add_to_addressable_set): Likewise.
769         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
770         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
771         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
772         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
773         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
774         (tree_node_structure): Likewise.
775         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
776         handling of SFTs.
777         (find_what_p_points_to): Likewise.
778
779 2008-05-08  Sa Liu  <saliu@de.ibm.com>
780
781         * config/spu/spu.md: Fixed subti3 pattern.
782
783 2008-05-08  Richard Guenther  <rguenther@suse.de>
784
785         PR middle-end/36154
786         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
787         sure to create a representative for trailing arrays for PTA.
788
789 2008-05-08  Richard Guenther  <rguenther@suse.de>
790
791         PR middle-end/36172
792         * fold-const.c (operand_equal_p): Two objects which types
793         differ in pointerness are not equal.
794
795 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
796
797         * calls.c (compute_argument_block_size): Add argument tree fndecl.
798         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
799         (emit_library_call_value_1): Add new variable fndecl initialized by
800         NULL_TREE. It should be the decl type of orgfun, but this information
801         seems not to be available here, so it uses the default calling abi.
802         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
803         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
804         by TARGET_RETURN_IN_MEMORY.
805         * config/i386/i386-interix.h: Likewise.
806         * config/i386/i386.h: Likewise.
807         * config/i386/i386elf.h: Likewise.
808         * config/i386/ptx4-i.h: Likewise.
809         * config/i386/sol2-10.h: Likewise.
810         * config/i386/sysv4.h: Likewise.
811         * config/i386/vx-common.h: Likewise.
812         * config/cris/cris.h: Removed #if 0 clause.
813         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
814         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
815         argument.
816         (ix86_sol10_return_in_memory): Likewise.
817         (ix86_i386elf_return_in_memory): New.
818         (ix86_i386interix_return_in_memory): New.
819         * config/mt/mt-protos.h (mt_return_in_memory): New.
820         * config/mt/mt.c: Likewise.
821         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
822         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
823         * config/bfin/bfin.h: Likewise.
824         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
825         argument.
826         * config/bfin/bfin.c: Likewise.
827         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
828         * config/alpha/unicosmk.h: Likewise.
829         * config/i386/cygming.h: Likewise.
830         * config/iq2000/iq2000.h: Likewise.
831         * config/mips/mips.h: Likewise.
832         * config/mn10300/mn10300.h: Likewise.
833         * config/rs6000/rs6000.h: Likewise.
834         * config/score/score.h: Likewise.
835         * config/spu/spu.h: Likewise.
836         * config/v850/v850.h: Likewise.
837         * defaults.h: Likewise.
838         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
839         * expr.c (emit_block_move): Adjust use of
840         OUTGOING_REG_PARM_STACK_SPACE.
841         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
842         OUTGOING_REG_PARM_STACK_SPACE.
843         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
844
845 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
846
847         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
848         on OMP_RETURN for OMP_FOR.
849
850         PR debug/35896
851         * dwarf2out.c (dw_expand_expr, common_check): Removed.
852         (fortran_common): New function.
853         (gen_variable_die): Call fortran_common instead of common_check,
854         adjust for it returning tree instead of rtx.  Formatting.
855
856 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
857
858         PR rtl/7335
859         PR rtl/33826
860         * see.c (see_copy_insn): Copy new pure const attributes for new call.
861         * c-decl.c (merge_decls): Ditto.
862         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
863         to RTL_CONST_OR_PURE_CALL_P.
864         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
865         Initialized DECL_LOOPING_CONST_PURE.
866         (process_call_operands): Set tree_side_effects properly.
867         * tree.h (TREE_READONLY_DECL_P): Removed.
868         (DECL_IS_PURE): Renamed to DECL_PURE_P.
869         (DECL_LOOPING_OR_CONST_P): New macro.
870         (struct tree_function_decl): Added looping_const_or_pure_p.
871         (ECF_*) Renumbered.
872         (ECF_LOOPING_OR_CONST_P): New macro.
873         * rtlanal.c (pure_const_p): Removed.
874         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
875         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
876         to RTL_CONST_CALL_P.
877         * ipa-pure-const.c (pure_const_state_e): Added looping field.
878         (check_decl, check_tree, check_call, scan_function): Initialize
879         looping.
880         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
881         (static_execute): Set looping true for recursive functions.
882         Undo setting state to IPA_NEITHER for recursive functions.
883         * cse.c (cse_insn): 
884         * ifcvt.c (noce_can_store_speculate_p): Changed
885         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or 
886         RTL_CONST_OR_PURE_CALL_P.
887         * dse.c (scan_insn): Ditto.
888         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
889         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
890         RTL_CONST_OR_PURE_CALL_P.
891         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
892         pure_call_p to RTL_CONST_CALL_P.
893         * gimplify.c (gimplify_call_expr): Clear side effects for
894         non-looping pure and constant calls.
895         * calls.c (emit_call_1): Set rtl flags from ecf flags.
896         (flags_from_decl_or_type): Set ecf flags from decl flags.
897         (initialize_argument_information): Turn off
898         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
899         Change const to pure if callee_copies is true rather than just
900         turning off const.
901         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
902         way of marking pure calls.
903         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
904         Remove hack that was supposed to fix pr7335 and remove old
905         way of marking pure calls.
906         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
907         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
908         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
909         RTL_CONST_OR_PURE_CALL_P.
910         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
911         * loop-invariant.c (find_exits, find_invariant_bb): Changed
912         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
913         * sched-deps.c (schedule_analyze): Ditto.
914         * rtl.h (struct rtx_def): Use call field, unchanging field, and
915         return_val field of calls to represent pure and const function info.
916         (CONST_OR_PURE_CALL_P): Deleted macro.
917         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
918         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
919         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
920         TREE_READONLY.
921         * tree-optimize.c (execute_fixup_cfg): Added test for
922         ECF_LOOPING_CONST_OR_PURE.
923         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
924         DECL_PURE_P.
925         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
926         effects for looping pure or const calls.
927         (verify_gimple_expr): Added verification code. 
928         * config/alpha/alpha.c (alpha_legitimize_address,
929         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
930         RTL_CONST_CALL_P.
931         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
932         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
933         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
934         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
935         RTL_CONST_OR_PURE_CALL_P.
936         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
937         and const calls to be deleted.
938
939 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
940
941         PR target/35714
942         * config/i386/mmx.md (mmx_subv2sf3): New expander.
943         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
944         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
945         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
946         to handle nonimmediate operands.
947         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
948         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
949         to handle nonimmediate operands.
950         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
951         (mmx_pmulhrwv4hi3): New expander.  Use
952         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
953         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
954         (sse2_umulv1siv1di3): New expander.  Use
955         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
956         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
957         (mmx_eq<mode>3): New expander.  Use
958         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
959         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
960         (mmx_uavgv8qi3): New expander.  Use
961         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
962         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
963         (mmx_uavgv4hi3): New expander.  Use
964         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
965
966         * config/i386/sse.md
967         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
968         to handle nonimmediate operands.
969         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
970         to handle nonimmediate operands.
971         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
972         to handle nonimmediate operands.
973         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
974         to handle nonimmediate operands.
975         (sse2_unpckhpd_exp): New expander.  Use
976         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
977         (sse2_unpcklpd_exp): New expander.  Use
978         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
979         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
980         to handle nonimmediate operands.
981         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
982         to handle nonimmediate operands.
983         (*sse2_<plusminus_insn><mode>3): Rename from
984         sse2_<plusminus_insn><mode>3 insn pattern.
985         (sse2_<plusminus_insn><mode>3): New expander.  Use
986         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
987         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
988         (sse2_umulv2siv2di3): New expander.  Use
989         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
990         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
991         (sse4_1_mulv2siv2di3): New expander.  Use
992         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
993         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
994         (sse2_pmaddwd): New expander.  Use
995         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
996         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
997         (sse2_eq<mode>3): New expander.  Use
998         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
999         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
1000         (sse4_1_eqv2di3): New expander.  Use
1001         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1002         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
1003         (sse2_uavgv16qi3): New expander.  Use
1004         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1005         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
1006         (sse2_uavgv16qi3): New expander.  Use
1007         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1008         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
1009         (sse2_uavgv8hi3): New expander.  Use
1010         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1011         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
1012         (ssse3_pmulhrswv8hi3): New expander.  Use
1013         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1014         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
1015         (ssse3_pmulhrswv4hi3): New expander.  Use
1016         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1017
1018         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
1019         (<sse>_vmmul<mode>3): Ditto.
1020         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
1021         (divv2df3): Ditto.
1022         (ssse3_pmaddubsw128): Use register_operand for operand 1.
1023         (ssse3_pmaddubsw): Ditto.
1024
1025         * config/i386/i386.c (struct_builtin_description)
1026         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
1027         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
1028         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
1029         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
1030         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
1031         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
1032         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
1033         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
1034         (ix86_fixup_binary_operands): Assert that src1
1035         and src2 must have the same mode when swapped.
1036         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
1037         and ix86_binary_operator_ok.  Do not force operands in registers
1038         when optimizing.
1039
1040 2008-05-07  Jan Hubicka  <jh@suse.cz>
1041
1042         * cgraph.c (dump_cgraph_node): Update.
1043         * cgraph.h (cgraph_local_info): Break out inline summary.
1044         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
1045         hook.
1046         * ipa-inline (inline_summary): New accestor function.
1047         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
1048         cgraph_decide_inlining, compute_inline_parameters): Update.
1049         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
1050
1051 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
1052
1053         Cleanup ColdFire scheduling support and add V4 pipeline model.
1054
1055         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
1056         (define_attr cpu): Add cfv4 value.
1057         (define_attr type, define_attr type1): Merge into a single 'type'
1058         attribute.  Update all uses.
1059         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
1060         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
1061         Update all uses.
1062         (define_attr opx_mem, define_attr opy_mem): Remove.
1063         (define_attr op_mem): Clean up, update comment.
1064         (define_attr size): Use specific values instead of general int.
1065         (define_attr guess, define_attr split): Remove.  Update all uses.
1066         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
1067         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
1068         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
1069         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
1070         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
1071         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
1072         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
1073         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
1074         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
1075         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
1076         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
1077         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
1078         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
1079         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
1080         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
1081         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
1082         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
1083         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
1084         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
1085         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
1086         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
1087         Update or set attributes.
1088         (stack_tie): New fake instruction.
1089
1090         * config/m68k/m68k.h (TUNE_CFV4): New macro.
1091         (m68k_sched_attr_size): Update declaration.
1092         (m68k_sched_attr_type2): Remove.
1093         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
1094         Declare new bypass predicates.
1095
1096         * config/m68k/m68k.c (m68k_sched_issue_rate,
1097         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
1098         implementations.
1099         (TARGET_SCHED_ISSUE_RATE,
1100         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
1101         (override_options): Handle scheduling for ColdFire V4 core.
1102         (m68k_expand_prologue): Emit stack_tie.
1103         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
1104         'OP_TYPE_FPN'.  Update all uses.
1105         (sched_guess_p): Remove.
1106         (sched_address_type): Handle symbolic addresses.
1107         (sched_get_operand): New static function.
1108         (sched_operand_type): Merge into sched_attr_op_type.
1109         (sched_attr_op_type): Handle FP registers, handle quick constants,
1110         update.
1111         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
1112         (m68k_sched_attr_size): Update.  Move logic to ...
1113         (sched_get_attr_size_int): New static function.
1114         (sched_get_opxy_mem_type): New static function.
1115         (m68k_sched_attr_op_mem): Update.
1116         (m68k_sched_attr_type2): Remove.
1117         (sched_cfv4_bypass_data): New static variable.
1118         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
1119         (m68k_sched_issue_rate): Implement scheduler hook.
1120         (struct _sched_ib: enabled_p): New field.
1121         (m68k_sched_variable_issue): Update.  Handle V4.
1122         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
1123         sched_dump_class_func_t, sched_dump_split_class,
1124         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
1125         sched_dump_dfa_class, m68k_sched_dump): Remove.
1126         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
1127         hook.
1128         (m68k_sched_init_global): Remove statisctics dumping, introduce
1129         sanity check that all instructions have pipeline reservations.  Handle
1130         ColdFire V4 core.
1131         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
1132         Handle ColdFire V4 core.
1133         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
1134         New static functions.
1135         (m68k_sched_address_bypass_p): New bypass predicate.
1136         (sched_get_indexed_address_scale): New static function.
1137         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
1138
1139         * cf.md: Update comments.
1140         (define_attr type2): Remove.  Use 'type' attribute instead.
1141         Update all uses.
1142         (cf_ib): Rename to cfv123_ib.  Update all uses.
1143         (cf_oep): Rename to cfv123_oep.  Update all uses.
1144         (cf_chr): Rename to cfv123_chr.  Update all uses.
1145         (cf_mem): Rename to cfv123_mem.  Update all uses.
1146         (cf_mac): Move to more appropriate place.
1147         (cfv123_guess): New automaton and cpu_unit.
1148         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
1149         Update uses of 'size' attribute.  Handle before reload scheduling.
1150         (cfv123_guess): New dummy reservation for unhandled instructions.
1151         (cfv4_*): Pipeline description of ColdFire V4 core.
1152         (ignore): New reservation to handle 'ignore' type.
1153
1154 2008-05-07  Ian Lance Taylor  <iant@google.com>
1155
1156         PR middle-end/36013
1157         * gimplify.c (find_single_pointer_decl_1): Don't look through
1158         indirections.
1159         (find_single_pointer_decl): Adjust comments.
1160
1161 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
1162
1163         PR middle-end/36137
1164         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
1165         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
1166
1167         PR middle-end/36106
1168         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
1169         integral type rather than floating point, then VIEW_CONVERT_EXPR
1170         to the floating point type.
1171
1172 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
1173
1174         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
1175         TFmode op0 to register.
1176
1177 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
1178
1179         * c-decl.c (grokdeclarator): Comment typo.
1180
1181 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
1182
1183         * tree-flow.h: Remove prototype for computed_goto_p.
1184         * tree-cfg.c (computed_goto_p): Make static.
1185
1186 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
1187
1188         PR target/35657
1189         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
1190         (contains_aligned_value_p): This.  Handle _Decimal128.
1191         (ix86_function_arg_boundary): Only align _Decimal128 to its
1192         natural boundary and handle it properly.
1193
1194 2008-05-06  Martin Jambor  <mjambor@suse.cz>
1195
1196         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
1197         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
1198         (ipcp_method_set_orig_node): Removed.
1199         (ipcp_cval_get_cvalue_type): Removed.
1200         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
1201         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
1202         (ipcp_cval_set_cvalue_type): Removed.
1203         (ipcp_cval_get_cvalue): Removed.
1204         (ipcp_cval_set_cvalue): Removed.
1205         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
1206         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
1207         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
1208         (ipcp_cval_meet): Renamed to ipa_lattice_meet
1209         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
1210         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
1211         (ipcp_get_ith_lattice): Changed parameters.
1212         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
1213         (ipcp_lattice_from_jfunc): Changed parameters.
1214         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
1215         (ipcp_method_cval_print): Added temporary variable info.
1216         (ipcp_redirect): Removed already unused local variable caller.
1217         (ipcp_redirect): New temporary variable orig_callee_info
1218         (ipcp_redirect): Removed newly unused local variable callee.
1219         (ipcp_redirect): Removed (a bit confusing) local variable type.
1220         (ipcp_insert_stage): Added local variable info.
1221         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters 
1222         renamed too
1223         (ipcp_formal_create): Removed.
1224         (ipcp_method_cval_set): Removed.
1225         (ipcp_propagate_stage): Renamed lattice variables.
1226         (ipcp_method_cval_set_cvalue_type): Removed.
1227         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
1228         (ipcp_print_all_lattices): Changed printed strings to refer to 
1229         lattices rather than cvals.
1230         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
1231         (ipcp_propagate_const): Changed formal parameters.
1232         (build_const_val): Changed formal parameters.
1233         (ipcp_insert_stage): Removed useless variable cvalue
1234         (build_const_val): Changed formal parameters.
1235         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
1236         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
1237         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
1238         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
1239         (ipcp_print_func_profile_counts): Changed string from "method" to 
1240         "function"
1241         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
1242         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
1243         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
1244         (ipcp_structures_print): Renamed to ipcp_print_all_structures
1245         (ipcp_profile_print): Renamed to ipcp_print_profile_data
1246         (ipcp_lat_is_const): Changed parameters and made inline.
1247         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
1248         (ipcp_redirect): Renamed to ipcp_need_redirect_p
1249         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using 
1250         the predicate condition directly
1251         (ipcp_propagate_stage): Added local variable args. Removed local
1252         variable callee.  (Both are mere code simplifications.)
1253         (ipcp_method_dont_insert_const): Renamed to
1254         ipcp_node_not_modifiable_p.
1255         (ipcp_node_not_modifiable_p): Made inline.
1256         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
1257         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
1258         (ipcp_print_all_lattices): Removed variable cvalue
1259         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
1260         Updated comments.
1261
1262 2008-05-06  Olivier Hainque  <hainque@adacore.com>
1263
1264         * tree-sra.c (try_instantiate_multiple_fields): Early return
1265         if field has POINTER_TYPE.
1266
1267 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
1268
1269         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
1270         by using 'q' specifier for instruction.
1271         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
1272
1273 2008-05-06  Anatoly Sokolov <aesok@post.ru>
1274
1275         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
1276         Change mode of zero_extract from QImode to HImode.
1277         (sign bit tests peepholes): (Ditto.).
1278
1279 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
1280
1281         * config/i386/mmx.md: Remove double backslashes from asm templates.
1282         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
1283         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
1284         to handle nonimmediate operands.
1285         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
1286         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
1287         to handle nonimmediate operands.
1288         (*mmx_<code>v2sf3_finite): New insn pattern.
1289         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
1290         (mmx_<code>v2sf3): New expander.  Use
1291         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1292         (mmx_<plusminus_insn><mode>3): New expander.  Use
1293         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1294         (*mmx_<plusminus_insn><mode>3): New insn pattern.
1295         (mmx_add<mode>3): Removed.
1296         (mmx_ssadd<mode>3): Ditto.
1297         (mmx_usadd<mode>3): Ditto.
1298         (mmx_sub<mode>3): Ditto.
1299         (mmx_sssub<mode>3): Ditto.
1300         (mmx_ussub<mode>3): Ditto.
1301         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
1302         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
1303         to handle nonimmediate operands.
1304         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
1305         insn pattern.
1306         (mmx_smulv4hi3_highpart): New expander.  Use
1307         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1308         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
1309         insn pattern.
1310         (mmx_umulv4hi3_highpart): New expander.  Use
1311         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1312         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
1313         (mmx_<code>v4hi3): New expander.  Use
1314         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1315         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
1316         (mmx_<code>v8qi3): New expander.  Use
1317         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1318         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
1319         (mmx_<code><mode>3): New expander.  Use
1320         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1321
1322 2008-05-05  Jan Hubicka  <jh@suse.cz>
1323
1324         PR tree-optimization/36118
1325         * passes.c (pass_init_dump_file): Fix dump header.
1326
1327 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1328
1329         PR middle-end/36141
1330         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
1331         VCE for function decls.
1332
1333 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
1334
1335         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
1336
1337 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
1338
1339         * config/i386/i386.md (sat_plusminus): New.
1340         (plusminus_insn): Likewise.
1341         (plusminus_mnemonic): Likewise.
1342         (addsub): Removed.
1343         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
1344         (*<addsub><mode>3_cc_overflow): Renamed to ...
1345         (*<plusminus_insn><mode>3_cc_overflow): This.
1346         (*<addsub>si3_zext_cc_overflow): Renamed to ...
1347         (*<plusminus_insn>si3_zext_cc_overflow): This.
1348
1349         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
1350         (<plusminus_insn><mode>3): This.
1351         (*<addsub><mode>3): Renamed to ...
1352         (*<plusminus_insn><mode>3): This.
1353         (<sse>_vm<addsub><mode>3): Renamed to ...
1354         (<sse>_vm<plusminus_insn><mode>3): This.
1355         (sse3_h<addsub>v4sf3): Renamed to ...
1356         (sse3_h<plusminus_insn>v4sf3): This.
1357         (sse3_h<addsub>v2df3): Renamed to ...
1358         (sse3_h<plusminus_insn>v2df3): This.
1359         (<plusminus_insn><mode>3): New.
1360         (*<plusminus_insn><mode>3): Likewise.
1361         (sse2_<plusminus_insn><mode>3): Likewise.
1362         (add<mode>): Removed.
1363         (*add<mode>3): Likewise.
1364         (sse2_ssadd<mode>3): Likewise.
1365         (sse2_usadd<mode>3): Likewise.
1366         (sub<mode>3): Likewise.
1367         (*sub<mode>3): Likewise.
1368         (sse2_sssub<mode>3): Likewise.
1369         (sse2_ussub<mode>3): Likewise.
1370
1371 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
1372
1373         * gthr-single.h: Add in required interface elements as per gthr.h.
1374         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
1375         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
1376         Generalize UNUSED macro. 
1377         (__gthread_once): Add.
1378         (__gthread_key_create): Add.
1379         (__gthread_key_delete): Add.
1380         (__gthread_getspecific): Add.
1381         (__gthread_setspecific): Add.
1382         
1383 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
1384
1385         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
1386         the same size types for the indirect reference on the rhs, then
1387         create a VCE.
1388
1389 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
1390
1391         * config/i386/i386.md
1392         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
1393         one insn template instead of template series.
1394         (*xordi_1_rex64): Ditto.
1395         (*xordi_2_rex64): Ditto.
1396
1397 2008-05-05  Ira Rosen  <irar@il.ibm.com>
1398
1399         PR tree-optimization/36119
1400         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
1401         in case of SLP.
1402
1403 2008-06-04  Jan Hubicka  <jh@suse.cz>
1404
1405         tree-optimization/36100
1406         * tree-pass.h (pass_O0_always_inline): Declare.
1407         * ipa-inline.c (inline_transform): Remove dead code.
1408         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
1409         pass_O0_always_inline): New.
1410         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
1411
1412 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
1413
1414         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
1415         mnemonic in this_param move for TARGET_64BIT.
1416
1417 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
1418
1419         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
1420         (*strmovsi_rex_1): Ditto.
1421         (*strsetsi_1): Ditto.
1422         (*strsetsi_rex_1): Ditto.
1423
1424         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
1425         adddicc expanders using SWI mode iterator.
1426
1427 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1428
1429         PR target/36121
1430         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
1431         argument handling.
1432
1433 2008-05-04  David S. Miller  <davem@davemloft.net>
1434
1435         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
1436         (sparc*-*-linux*): Use linux.h in tm_file.
1437         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
1438         compiler defaulting to 32-bit.
1439         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
1440         no longer needed.
1441         * config/sparc/linux.h: Remove definitions now obtained
1442         properly from linux.h
1443         * config/sparc/linux64.h: Likewise.
1444         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
1445         don't want this setting for 32-bit builds in a biarch compiler.
1446         * doc/install.texi: Add sparc-linux to list of targets
1447         supporting --enable-targets=all.
1448
1449 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
1450
1451         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
1452
1453 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
1454
1455         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
1456         after V4SI_FTYPE_V8HI.
1457         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
1458         case V4SI_FTYPE_V2DF.
1459
1460 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
1461
1462         * doc/invoke.texi (max-flow-memory-locations): Removed.
1463         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
1464         
1465 2008-05-03  Richard Guenther  <rguenther@suse.de>
1466
1467         PR middle-end/34973
1468         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
1469
1470 2008-05-02  David S. Miller  <davem@davemloft.net>
1471
1472         * config.gcc (need_64bit_hwint): Document libcpp dependency.
1473
1474 2008-05-02  Simon Baldwin <simonb@google.com>
1475
1476         PR bootstrap/36108
1477         * c-common.h (warn_array_subscript_range): Removed.
1478         * c-common.c (warn_array_subscript_range): Ditto.
1479         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
1480         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
1481
1482 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
1483
1484         * config/i386/i386.c (ix86_special_builtin_type): New.
1485         (bdesc_special_args): Likewise.
1486         (ix86_expand_special_args_builtin): Likewise.
1487         (ix86_init_mmx_sse_builtins): Updated.
1488         (ix86_expand_builtin): Updated.
1489         (ix86_expand_store_builtin): Removed.
1490         (ix86_expand_unop_builtin): Likewise.
1491
1492         * config/i386/mm3dnow.h (__v2sf): Moved to ...
1493         * config/i386/mmintrin.h (__v2sf): Here.
1494
1495         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
1496         const __v2sf.
1497         (_mm_loadl_pi): Likewise.
1498         (_mm_storeh_pi): Replace __v2si with __v2sf.
1499         (_mm_storel_pi): Likewise.
1500
1501         * doc/extend.texi: Correct __builtin_ia32_loadhps,
1502         __builtin_ia32_loadlps, __builtin_ia32_storehps,
1503         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
1504         __builtin_ia32_loadlpd.
1505
1506 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
1507
1508         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
1509         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
1510         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
1511         (ix86_init_mmx_sse_builtins): Updated.
1512         (ix86_expand_args_builtin): Likewise.
1513         (ix86_expand_builtin): Likewise.
1514         (ix86_expand_unop1_builtin): Renamed to ...
1515         (ix86_expand_unop_vec_merge_builtin): This.
1516
1517 2008-05-01  Jan Hubicka  <jh@suse.cz>
1518
1519         PR bootstrap/36100
1520         * ipa-inline.c (inline_generate_summary): Make static.
1521         (inline_transform): Do not call inlining at -O0; make static.
1522         * passes.c (execute_todo): Add sanity check.
1523         (execute_one_ipa_transform_pass): Execute proper flags.
1524
1525 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
1526
1527         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
1528         (DECL_NONADDRESSABLE_P): Likewise.
1529         * alias.c (record_component_aliases): Fix comment.
1530
1531 2008-05-01  Simon Baldwin <simonb@google.com>
1532
1533         * c-common.h (warn_array_subscript_range): New function.
1534         * c-common.c (warn_array_subscript_range): Ditto.
1535         * tree-vrp.c (check_array_ref): Corrected code to agree with
1536         comment, ignoring only arrays of size 0 or size 1.
1537         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
1538
1539 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1540
1541         * config/i386/i386.c (ix86_builtin_type): Replace
1542         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
1543         (bdesc_args): Updated.
1544         (ix86_init_mmx_sse_builtins): Likewise.
1545         (ix86_expand_args_builtin): Likewise.
1546
1547         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
1548         with __v1di.
1549
1550         * doc/extend.texi: Correct __builtin_ia32_palignr.
1551
1552 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1553
1554         PR target/36095
1555         * config/i386/i386.c (bdesc_crc32): Removed.
1556         (ix86_expand_crc32): Likewise.
1557         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
1558         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
1559         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
1560         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
1561         UINT_FTYPE_UINT_UCHAR.
1562         (bdesc_args): Updated. Add crc32 builtins.
1563         (ix86_init_mmx_sse_builtins): Updated.
1564         (ix86_expand_args_builtin): Updated to support subreg.
1565
1566         * doc/extend.texi: Correct __builtin_ia32_crc32di.
1567
1568 2008-05-01  Jan Hubicka  <jh@suse.cz>
1569
1570         * tree-pass.h (opt_pass): Add IPA_PASS.
1571         (varpool_node, cgraph_node): Forward declare.
1572         (ipa_opt_pass): Define.
1573         (pass_ipa_inline): Turn into ipa_opt_pass.
1574         (pass_apply_inline): Remove.
1575         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
1576         (apply_inline): Turn into ....
1577         (inline_transform): ... this one.
1578         (inline_generate_summary): New function.
1579         (pass_apply_inline): Remove.
1580         * function.h (ipa_opt_pass): Forward declare structure; typedef;
1581         vector.
1582         (struct function): Add ipa_transforms_to_apply.
1583         * passes.c (register_one_dump_file): Work on IPA_PASS.
1584         (init_optimization_passes): Remove pass_inline_parameters and
1585         pass_apply_inline.
1586         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
1587         (execute_one_pass) ... here; apply transforms when possible.
1588         (add_ipa_transform_pass, execute_ipa_summary_asses,
1589         execute_one_ipa_transform_pass): New.
1590         (execute_ipa_pass_list): Update for IPA_PASS type.
1591
1592 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1593
1594         * config/i386/i386.c (ix86_builtin_type): Add
1595         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
1596         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
1597         (bdesc_args): Add SSE4a builtins.
1598         (ix86_init_mmx_sse_builtins): Updated.
1599         (ix86_expand_args_builtin): Likewise.
1600         (ix86_expand_builtin): Likewise.
1601
1602 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1603
1604         * config/i386/i386.c (ix86_builtin_type): Add
1605         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
1606         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
1607         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
1608         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
1609         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
1610         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
1611         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
1612         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
1613         and DI_FTYPE_DI_DI_INT.
1614         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
1615         (ix86_init_mmx_sse_builtins): Updated.
1616         (ix86_expand_args_builtin): Likewise.
1617         (ix86_expand_builtin): Likewise.
1618         (ix86_expand_binop_imm_builtin): Removed.
1619
1620         * doc/extend.texi: Correct __builtin_ia32_palignr128.
1621
1622 2008-04-30  Richard Guenther  <rguenther@suse.de>
1623
1624         PR tree-optimization/32921
1625         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
1626
1627 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
1628
1629         * config/arm/arm.c (arm_unwind_emit): Use
1630         crtl->all_throwers_are_sibcalls instead of
1631         cfun->all_throwers_are_sibcalls.
1632         (arm_output_fn_unwind): Likewise.
1633         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
1634         instead of cfun->uses_pic_offset_table.
1635         (frv_expand_prologue): Likewise.
1636         (frv_frame_pointer_required): Likewise.
1637         (frv_expand_fdpic_call): Likewise.
1638         (frv_emit_movsi): Likewise.
1639         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
1640         cfun->returns_pcc_struct instead of
1641         current_function_returns_pcc_struct.
1642         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
1643         instead of cfun->calls_eh_return.
1644         (m32c_pushm_popm): Likewise.
1645         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
1646         "extern" declaration.
1647
1648 2008-04-30  Richard Guenther  <rguenther@suse.de>
1649
1650         PR tree-optimization/21636
1651         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
1652         constant address.
1653         (evaluate_stmt): Print the likely value.
1654         (ccp_visit_stmt): Avoid excessive vertical spacing.
1655
1656 2008-04-30  Rafael Espindola  <espindola@google.com>
1657
1658         * builtins.c (fold_call_expr): Return realret.
1659         * tree-ssa-threadedge.c
1660         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
1661         __builtin_object_size.
1662
1663 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
1664
1665         * gcc.c (wrapper_string): New variable.
1666         (insert_wrapper): New function.
1667         (execute): New option -wrapper.
1668         * doc/invoke.texi (Overall Options): New driver option -wrapper.
1669
1670 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
1671
1672         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
1673         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
1674         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
1675         from...
1676         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
1677         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
1678         config/rs6000/e500crtres64gprctr.asm,
1679         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
1680         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
1681         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
1682         config/rs6000/e500crtsav64gprctr.asm,
1683         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
1684         config/rs6000/e500crtsavg64gprctr.asm: New files.
1685         * config/rs6000/t-ppccomm: Add build rules for new files.
1686         (LIB2FUNCS_STATIC_EXTRA): Add new files.
1687         * config/rs6000/t-netbsd: Add build rules for new files.
1688         (LIB2FUNCS_STATIC_EXTRA): New variable.
1689         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
1690         (CRTSAVRES_DEFAULT_SPEC): Likewise.
1691         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
1692
1693 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
1694
1695         * config/i386/i386.c (ix86_builtin_type): Add
1696         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
1697         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
1698         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
1699         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
1700         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
1701         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
1702         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
1703         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
1704         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
1705         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
1706         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
1707         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
1708         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
1709         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
1710         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
1711         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
1712         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
1713         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
1714         V1DI_FTYPE_V2SI_V2SI.
1715         (bdesc_2arg): Moved to ...
1716         (bdesc_args): Here.
1717         (ix86_init_mmx_sse_builtins): Updated.
1718         (ix86_expand_args_builtin): Updated.  Take a pointer
1719         to const struct builtin_description.  Handle comparison
1720         builtin functions.
1721         (ix86_expand_sse_compare): Take a new argument for swapping operands.
1722         (ix86_expand_builtin): Updated.
1723
1724         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
1725         (ssse3_pmaddubsw128): This.
1726         (ssse3_pmaddubswv4hi3): Renamed to ...
1727         (ssse3_pmaddubsw): This.
1728
1729         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
1730         (__builtin_ia32_packssdw128): Likewise.
1731         (__builtin_ia32_packuswb128): Likewise.
1732         (__builtin_ia32_pmaddubsw): Likewise.
1733         (__builtin_ia32_pmaddubsw128): Likewise.
1734
1735 2008-04-30  Richard Guenther  <rguenther@suse.de>
1736
1737         PR tree-optimization/14847
1738         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
1739         (recognize_bits_test): Use it.
1740         (recognize_single_bit_test): Likewise.
1741
1742 2008-04-30  Martin Jambor  <mjambor@suse.cz>
1743
1744         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
1745         instead of setting number of formal parameters to zero.
1746         (ipcp_init_stage): Do not set the number of actual parameters to zero 
1747         either.
1748         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
1749         which are called with variable number of arguments.
1750         (ipcp_insert_stage): Explicitely skipping all nodes which are
1751         called with variable number of arguments.
1752         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible 
1753         number of parameters.
1754
1755         * ipa-prop.h (struct ipa_node_params): Added flag
1756         called_with_var_arguments
1757         (ipa_set_param_count): Added.  Changed sole setter to use it.
1758         (ipa_get_param_count): Added.  All readers of param_count
1759         converted to use it instead.
1760         (ipa_set_called_with_variable_arg): Added.
1761         (ipa_is_called_with_var_arguments): Added.
1762         (ipa_get_ith_param): Added.  All readers of param_decls converted
1763         to use it instead.
1764         (ipa_set_cs_argument_count): Added, sole writer to argument_count 
1765         changed to use it. 
1766         (ipa_get_cs_argument_count): Added, all readers of argument_count
1767         changed to cal it.
1768         (ipa_get_ith_jump_func): Added. Accessors of jump values changed 
1769         to use it.
1770         
1771         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
1772         (struct ipcp_lattice): Renamed cval_type to type
1773         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
1774
1775         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
1776         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
1777         (ipcp_insert_stage): Changed the type of variable cvalue to tree
1778         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
1779         (build_const_val): Changed the type of parameter cvalue to tree
1780         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
1781         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
1782         
1783         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called 
1784         constant 
1785
1786         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
1787         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
1788         (ipa_add_method): Renamed to ipa_push_func_to_list
1789         (ipa_remove_method): Renamed to ipa_pop_func_from_list
1790         (ipa_callsite_param_count): Removed.
1791         (ipa_callsite_param_count_set): Removed.
1792         (ipa_callsite_param): Removed.
1793         (ipa_callsite_callee): Removed.
1794         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
1795         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
1796         (ipa_method_formal_count): Removed.
1797         (ipa_method_formal_count_set): Removed.
1798         (ipa_method_get_tree): Removed.
1799         (ipa_method_tree_map_create): Removed.
1800         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
1801         (ipa_create_param_decls_array): Creates the array itself
1802         (ipa_create_param_decls_array): Temporary variable info instead of 
1803         a few dereferences.
1804         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
1805         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
1806         (get_type): Removed.
1807         (ipa_jf_get_info_type): Removed.
1808         (ipa_node_create): Renamed to ipa_create_node_params
1809         (ipa_free): Renamed to ipa_free_all_node_params
1810         (ipa_nodes_create): Renamed to ipa_create_all_node_params
1811         (ipa_edges_create): Renamed to ipa_create_all_edge_args
1812         (ipa_edges_free): Renamed to ipa_free_all_edge_args
1813         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
1814         (ipa_free_all_node_params): Deallocation to jump_functions moved to 
1815         ipa_free_all_edge_args
1816         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
1817         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
1818         (ipa_create_methodlist_node): Removed.
1819         (ipa_methodlist_method): Removed.
1820         (ipa_methodlist_method_set): Removed.
1821         (ipa_methodlist_next_method): Removed.
1822         (ipa_methodlist_next_method_set): Removed.
1823         (ipa_method_is_modified): Removed.
1824         (ipa_method_modify_create): Removed.
1825         (ipa_method_modify_init): Temporary variable info instead of a few 
1826         dereferences.
1827         (ipa_detect_param_modifications): Temporary variable info instead of 
1828         a few dereferences.
1829         (ipa_compute_jump_functions): Temporary variable info instead of 
1830         a few dereferences.
1831         (ipa_method_modify_set): Removed.
1832         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
1833         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather 
1834         than craph_node as the first parameter.
1835         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
1836         (ipa_method_modify_init): Removed.
1837         (ipa_compute_jump_functions): Added a temp variable instead of 
1838         repeatadly dereferencing the cgraph_edge.aux pointer
1839         (ipa_callsite_param_set_type): Removed.
1840         (ipa_compute_jump_functions): i renamed to index and moved to 
1841         an inner block
1842         (ipa_callsite_param_set_info_type_formal): Removed.
1843         (ipa_callsite_param_set_info_type): Removed.
1844         (ipa_callsite_param_map_create): Removed.
1845         (ipa_callsite_tree): Removed.
1846         (ipa_callsite_caller): Removed.
1847         (ipa_pop_func_from_list): return_method removed to return_func
1848
1849         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
1850         prefixed all values with IPA_. Changed all users.
1851         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN, 
1852         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF 
1853         and FORMAL_IPATYPE IPA_PASS_THROUGH. 
1854         (union parameter_info): Renamed to jump_func_value.
1855         (union jump_func_value): Renamed value to constant
1856         (struct ipa_jump_func): Renamed info_type to value
1857         (struct ipa_node): Renamed to ipa_node_params
1858         (struct ipa_node_params): Renamed ipa_arg_num to param_count
1859         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
1860         (struct ipa_node_params): Renamed ipa_mod to modified_flags
1861         (struct ipa_edge): Renamed to ipa_edge_args
1862         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
1863         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
1864         (struct ipa_methodlist): Renamed to ipa_func_list
1865         (struct ipa_func_list): method_p renamed to node, next_method
1866         renamed to next
1867         (ipa_methodlist_p): Removed, switched all users to struct pointer
1868         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
1869
1870 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
1871
1872         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
1873         (rs6000_emit_epilogue): Use backchain to restore only when we
1874         have a large frame.  Make use of frame pointer to restore if we
1875         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
1876
1877 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
1878
1879         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
1880         Add mode to zero_extract.
1881         (sign bit tests peepholes): (Ditto.).
1882
1883 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
1884
1885         * config/i386/i386.c (ix86_builtins): Replace Prescott New
1886         Instructions in comments with SSE3.
1887         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
1888         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
1889         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
1890         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
1891         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
1892         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
1893         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
1894         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
1895         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
1896         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
1897         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
1898         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
1899         (bdesc_sse_args): Renamed to ...
1900         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
1901         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
1902         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
1903         IX86_BUILTIN_FABSQ.
1904         (bdesc_1arg): Moved to ...
1905         (bdesc_args): Here.
1906         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
1907         Instructions in comments with SSE3.
1908         (ix86_expand_sse_operands_builtin): Renamed to ...
1909         (ix86_expand_args_builtin): This.  Updated.
1910         (ix86_expand_unop1_builtin): Update comments.
1911         (ix86_expand_builtin): Updated.
1912
1913 2008-04-29  Richard Guenther  <rguenther@suse.de>
1914
1915         PR tree-optimization/36078
1916         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
1917         Update virtual SSA form after cleaning up the CFG.
1918
1919 2008-04-29  Richard Guenther  <rguenther@suse.de>
1920
1921         PR middle-end/15255
1922         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
1923
1924 2008-04-29  Richard Guenther  <rguenther@suse.de>
1925
1926         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
1927         (compute_may_aliases): Do not call finalize_ref_all_pointers.
1928         (compute_flow_insensitive_aliasing): Do not treat
1929         PTR_IS_REF_ALL pointers special.
1930         (get_smt_for): Likewise.
1931         (may_alias_p): Re-structure.
1932         (is_escape_site): A ref-all pointer conversion is not an escape site.
1933         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
1934         PTR_IS_REF_ALL pointers special.
1935         * tree-ssa-structalias.h (struct alias_info): Remove
1936         ref_all_symbol_mem_tag field.
1937         (PTR_IS_REF_ALL): Remove.
1938
1939 2008-04-29  Richard Guenther  <rguenther@suse.de>
1940
1941         PR middle-end/36077
1942         * fold-const.c (extract_muldiv_1): In combining division constants
1943         make sure to never overflow.
1944
1945 2008-04-29  Nick Clifton  <nickc@redhat.com>
1946
1947         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
1948
1949 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1950
1951         PR bootstrap/35169
1952         * optc-gen.awk: Work around HP-UX/IA awk bug.
1953
1954 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
1955
1956         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
1957         2008-04-25 commit.
1958
1959 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
1960
1961         PR target/36073
1962         * config/i386/i386.md
1963         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
1964         Change operand 1 predicate to nonimmediate_operand.
1965
1966 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
1967
1968         PR debug/36060
1969         * dwarf2out.c (struct die_struct): Mark as chain_circular through
1970         die_sub field.
1971         * gengtype.c (walk_type, write_func_for_structure): Handle
1972         chain_circular.
1973         * doc/gty.texi: Document chain_circular.
1974
1975 2008-04-28  Richard Guenther  <rguenther@suse.de>
1976
1977         PR tree-optimization/36066
1978         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
1979         SCEV and loop.
1980
1981 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
1982
1983         PR target/36064
1984         * config/i386/i386.md
1985         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
1986         Use match_scratch instead of match_operand for operands 3 and 4.
1987
1988 2008-04-27  Richard Guenther  <rguenther@suse.de>
1989
1990         PR tree-optimization/18754
1991         PR tree-optimization/34223
1992         * tree-pass.h (pass_complete_unrolli): Declare.
1993         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
1994         loop size before and after unconditionally of UL_NO_GROWTH in effect.
1995         Rewrite loop into loop closed SSA form if it is not already.
1996         (tree_unroll_loops_completely): Re-structure to iterate over
1997         innermost loops with intermediate CFG cleanups.
1998         Unroll outermost loops only if requested or the code does not grow
1999         doing so.
2000         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
2001         loops are available.
2002         (tree_vectorize): Instead do so here.
2003         (tree_complete_unroll): Also unroll outermost loops.
2004         (tree_complete_unroll_inner): New function.
2005         (gate_tree_complete_unroll_inner): Likewise.
2006         (pass_complete_unrolli): New pass.
2007         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
2008         uses outside of the loop.
2009         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
2010         form if it is available.  
2011         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
2012         * passes.c (init_optimization_passes): Schedule complete inner
2013         loop unrolling pass before the first CCP pass after final inlining.
2014
2015 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
2016
2017         * targhooks.h (default_emutls_var_fields,
2018         default_emutls_var_init): Declare.
2019         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
2020         * target.h (struct gcc_target): Add struct emutls member.
2021         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
2022         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
2023         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
2024         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
2025         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
2026         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
2027         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
2028         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
2029         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
2030         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
2031         emit debug information.
2032         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
2033         * varasm.c: Include targhooks.h.
2034         (emutls_object_section, emutls_tmpl_section): New.
2035         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
2036         (EMUTLS_SEPARATOR): New.
2037         (prefix_name): New.
2038         (get_emutls_object_name): New.
2039         (default_emutls_var_fields): New, broken out of ...
2040         (get_emutls_object_type): ... here.  Adjust to use target hooks.
2041         (get_emutls_init_templ_addr): Adjust to use target hooks.
2042         (emutls_decl): Adjust to use target hooks.
2043         (emutls_finish): Likewise.
2044         (default_emutls_var_init): New, broken out of ...
2045         (assemble_variable): ... here.  Adjust to use target hooks.
2046         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
2047         SECCAT_EMUTLS_TMPL.
2048         * c-common.c (handle_section_attribute): Prevent overriding
2049         sections for emulated tls with special sections.
2050         * config/i386/i386.c (x86_64_elf_select_section): Add
2051         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
2052         (x86_64_elf_unique_section): Likewise.
2053         * config/vxworks.c: Include tree.h.
2054         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
2055         (vxworks_override_options): Set TLS scheme.
2056         * doc/tm.texi (Emulated TLS): New node.
2057
2058 2008-04-26  Simon Baldwin <simonb@google.com>
2059
2060         PR c/35652
2061         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
2062         with propagated string constants.
2063
2064 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
2065
2066         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
2067         constraint for operand 2 when operand 0 is memory operand.
2068         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
2069         operand 0 is memory operand.
2070         (fix_trunc<mode>_i387_with_temp): Ditto.
2071         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
2072         operand 2 when operand 1 is memory operand.
2073         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
2074         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
2075         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
2076         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
2077         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
2078         operands 2,3 and 4 when operand 1 is memory operand.
2079         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
2080         is memory operand.
2081         (fistdi2_floor_with_temp): Ditto.
2082         (fist<mode>2_floor_with_temp): Ditto.
2083         (fistdi2_ceil_with_temp): Ditto.
2084         (fist<mode>2_ceil_with_temp): Ditto.
2085         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
2086
2087 2008-04-26  David Daney  <ddaney@avtrex.com>
2088
2089         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
2090         unspec_volitile.
2091         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
2092         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
2093         UNSPEC_UPDATE_GOT_VERSION): Renumber.
2094         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
2095         (compare_and_swap_12): New insn.
2096         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
2097         * config/mips/mips.c (mips_force_binary): New function.
2098         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
2099         (mips_expand_compare_and_swap_12): New function.
2100         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
2101
2102 2008-04-25  Jan Hubicka  <jh@suse.cz>
2103
2104         PR testsuite/35843
2105         * cfgexpand.c (pass_expand): Turn into RTL pass.
2106         * passes.c (execute_one_pass): Do pass typechecking after execution.
2107         * tree-pass.h (pass_expand): Turn into RTL pass.
2108
2109         * function.h (struct rtl_data): Move here fields
2110         accesses_prior_frames, calls_eh_return, saves_all_registers,
2111         has_nonlocal_goto, has_asm_statement, is_thunk,
2112         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
2113         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
2114         arg_pointer_save_area_init from struct function; turn into bool.
2115         (struct function): Move
2116         calls_eh_return, saves_all_registers, has_nonlocal_goto,
2117         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
2118         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
2119         tail_call_emit, arg_pointer_save_area_init
2120         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
2121         (current_function_returns_struct, current_function_returns_pcc_struct,
2122         current_function_calls_setjmp, current_function_calls_alloca,
2123         current_function_accesses_prior_frames,
2124         current_function_calls_eh_return, current_function_is_thunk,
2125         current_function_stdarg, current_function_profile,
2126         current_function_limit_stack, current_function_uses_pic_offset_table,
2127         current_function_uses_const_pool, current_function_has_nonlocal_label,
2128         current_function_saves_all_registers,
2129         current_function_has_nonlocal_goto,
2130         current_function_has_asm_statement): Remove accesor macros.
2131         * ra-conflict.c (global_conflicts): Update.
2132         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
2133         (suitable_for_tail_call_opt_p): Update.
2134         * builtins.c (expand_builtin_return_addr): Update.
2135         (expand_builtin_setjmp_setup): Update.
2136         (expand_builtin_nonlocal_goto): Update.
2137         * final.c (final_start_function): Update.
2138         (profile_function): Update.
2139         (leaf_function_p): Update.
2140         (only_leaf_regs_used): Update.
2141         * df-scan.c (df_get_exit_block_use_set): Update.
2142         * dojump.c (clear_pending_stack_adjust): Update.
2143         * tree-stdarg.c (gate_optimize_stdarg): Update.
2144         * gimple-low.c (lower_function_body): Update.
2145         * global.c (compute_regsets): Update.
2146         (global_alloc): Update.
2147         * dwarf2out.c (dwarf2out_begin_prologue): Update.
2148         * expr.c (expand_assignment): Update.
2149         * dse.c (dse_step0): Update.
2150         (dse_step1): Update.
2151         * c-decl.c (store_parm_decls): Update.
2152         * local-alloc.c (combine_regs): Update.
2153         (find_free_reg): Update.
2154         * function.c (assign_parms_augmented_arg_list): Update.
2155         (assign_parm_find_data_types): Update.
2156         (assign_parms): Update.
2157         (allocate_struct_function): Update.
2158         (expand_function_start): Update.
2159         (expand_function_end): Update.
2160         (get_arg_pointer_save_area): Update.
2161         (thread_prologue_and_epilogue_insns): Update.
2162         (rest_of_match_asm_constraints): Update.
2163         * stor-layout.c (variable_size): Update.
2164         * gcse.c (gcse_main): Update.
2165         (bypass_jumps): Update.
2166         * gimplify.c (gimplify_function_tree): Update.
2167         * calls.c (emit_call_1): Update.
2168         (expand_call): Update.
2169         * bt-load.c (compute_defs_uses_and_gen): Update.
2170         * except.c (sjlj_assign_call_site_values): Update.
2171         (sjlj_emit_function_enter): Update.
2172         (can_throw_external): Update.
2173         (set_nothrow_function_flags): Update.
2174         (expand_builtin_unwind_init): Update.
2175         (expand_eh_return): Update.
2176         (convert_to_eh_region_ranges): Update.
2177         (output_function_exception_table): Update.
2178         * emit-rtl.c (gen_tmp_stack_mem): Update.
2179         * cfgexpand.c (expand_used_vars): Update.
2180         (tree_expand_cfg): Update.
2181         * cfgcleanup.c (rest_of_handle_jump): Update.
2182         * explow.c (allocate_dynamic_stack_space): Update.
2183         * varasm.c (assemble_start_function): Update.
2184         (force_const_mem): Update.
2185         (mark_constant_pool): Update.
2186         * tree-optimize.c (tree_rest_of_compilation): Update.
2187         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
2188         * tree-cfg.c (notice_special_calls): Update.
2189         (is_ctrl_altering_stmt): Update.
2190         (tree_can_make_abnormal_goto): Update.
2191         (tree_purge_dead_abnormal_call_edges): Update.
2192         * config/alpha/predicates.md: Update.
2193         * config/alpha/alpha.c (alpha_sa_mask): Update.
2194         (alpha_sa_size): Update.
2195         (alpha_does_function_need_gp): Update.
2196         (alpha_expand_prologue): Update.
2197         (alpha_start_function): Update.
2198         (alpha_output_function_end_prologue): Update.
2199         (alpha_expand_epilogue): Update.
2200         * config/frv/frv.c (frv_stack_info): Update.
2201         (frv_expand_epilogue): Update.
2202         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
2203         (s390_register_info): Update.
2204         (s390_frame_info): Update.
2205         (s390_init_frame_layout): Update.
2206         (s390_can_eliminate): Update.
2207         (save_gprs): Update.
2208         * config/spu/spu.c (spu_split_immediate): Update.
2209         (need_to_save_reg): Update.
2210         (spu_expand_prologue): Update.
2211         (spu_expand_epilogue): Update.
2212         * config/sparc/sparc.md: Update.
2213         * config/sparc/sparc.c (eligible_for_return_delay): Update.
2214         (sparc_tls_got): Update.
2215         (legitimize_pic_address): Update.
2216         (sparc_emit_call_insn): Update.
2217         (sparc_expand_prologue): Update.
2218         (output_return): Update.
2219         (print_operand): Update.
2220         (sparc_function_ok_for_sibcall): Update.
2221         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
2222         * config/m32r/m32r.md: Update.
2223         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
2224         (m32r_compute_frame_size): Update.
2225         (m32r_expand_prologue): Update.
2226         (m32r_expand_epilogue): Update.
2227         (m32r_legitimize_pic_address): Update.
2228         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
2229         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
2230         * config/i386/i386.c (ix86_frame_pointer_required): Update.
2231         (gen_push): Update.
2232         (ix86_save_reg): Update.
2233         (ix86_compute_frame_layout): Update.
2234         (ix86_expand_prologue): Update.
2235         (ix86_expand_epilogue): Update.
2236         * config/sh/sh.c (output_stack_adjust): Update.
2237         (calc_live_regs): Update.
2238         (sh5_schedule_saves): Update.
2239         (sh_expand_prologue): Update.
2240         (sh_expand_epilogue): Update.
2241         (sh_setup_incoming_varargs): Update.
2242         (sh_allocate_initial_value): Update.
2243         (sh_get_pr_initial_val): Update.
2244         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
2245         * config/sh/sh.md (label:): Update.
2246         * config/avr/avr.c (out_movhi_mr_r): Update.
2247         * config/crx/crx.h (enum): Update.
2248         * config/xtensa/xtensa.h (along): Update.
2249         * config/stormy16/stormy16.c Update.
2250         (xstormy16_compute_stack_layout): Update.
2251         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
2252         (fr30_expand_prologue): Update.
2253         * config/cris/cris.c (cris_conditional_register_usage): Update.
2254         (cris_reg_saved_in_regsave_area): Update.
2255         (cris_initial_frame_pointer_offset): Update.
2256         (cris_simple_epilogue): Update.
2257         (cris_expand_prologue): Update.
2258         (cris_expand_epilogue): Update.
2259         (cris_expand_pic_call_address): Update.
2260         (cris_asm_output_symbol_ref): Update.
2261         (cris_asm_output_label_ref): Update.
2262         * config/cris/cris.md Update.
2263         * config/iq2000/iq2000.c (compute_frame_size): Update.
2264         (iq2000_expand_epilogue): Update.
2265         * config/mt/mt.h (save_direction): Update.
2266         * config/mn10300/mn10300.c (mn10300_function_value): Update.
2267         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
2268         (ia64_secondary_reload_class): Update.
2269         * config/m68k/m68k.c (m68k_save_reg): Update.
2270         (m68k_expand_prologue): Update.
2271         (m68k_expand_epilogue): Update.
2272         (legitimize_pic_address): Update.
2273         * config/rs6000/rs6000.c (rs6000_got_register): Update.
2274         (first_reg_to_save): Update.
2275         (first_altivec_reg_to_save): Update.
2276         (compute_vrsave_mask): Update.
2277         (compute_save_world_info): Update.
2278         (rs6000_stack_info): Update.
2279         (spe_func_has_64bit_regs_p): Update.
2280         (rs6000_ra_ever_killed): Update.
2281         (rs6000_emit_eh_reg_restore): Update.
2282         (rs6000_emit_allocate_stack): Update.
2283         (rs6000_emit_prologue): Update.
2284         (rs6000_emit_epilogue): Update.
2285         (rs6000_output_function_epilogue): Update.
2286         (output_profile_hook): Update.
2287         (rs6000_elf_declare_function_name): Update.
2288         * config/rs6000/rs6000.h (rs6000_args): Update.
2289         * config/rs6000/rs6000.md: Update.
2290         * config/mcore/mcore.c (mcore_expand_prolog): Update.
2291         * config/arc/arc.c (arc_output_function_epilogue): Update.
2292         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
2293         * config/darwin.c (machopic_function_base_name): Update.
2294         * config/score/score3.c (score3_compute_frame_size): Update.
2295         (rpush): Update.
2296         (rpop): Update.
2297         (score3_epilogue): Update.
2298         * config/score/score7.c (score7_compute_frame_size): Update.
2299         (score7_prologue): Update.
2300         (score7_epilogue): Update.
2301         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
2302         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
2303         * config/arm/arm.c (use_return_insn): Update.
2304         (require_pic_register): Update.
2305         (arm_load_pic_register): Update.
2306         (arm_compute_save_reg0_reg12_mask): Update.
2307         (arm_compute_save_reg_mask): Update.
2308         (thumb1_compute_save_reg_mask): Update.
2309         (output_return_instruction): Update.
2310         (arm_output_function_prologue): Update.
2311         (arm_output_epilogue): Update.
2312         (arm_get_frame_offsets): Update.
2313         (arm_expand_prologue): Update.
2314         (thumb_pushpop): Update.
2315         (thumb_exit): Update.
2316         (thumb1_expand_prologue): Update.
2317         (thumb1_expand_epilogue): Update.
2318         (arm_unwind_emit): Update.
2319         (arm_output_fn_unwind): Update.
2320         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
2321         * config/arm/arm.md: Update.
2322         * config/pa/pa.md: Update.
2323         * config/pa/pa.c (legitimize_pic_address): Update.
2324         (compute_frame_size): Update.
2325         (hppa_expand_prologue): Update.
2326         (hppa_expand_epilogue): Update.
2327         (borx_reg_operand): Update.
2328         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
2329         (HARD_REGNO_RENAME_OK): Update.
2330         * config/mips/mips.c (mips_global_pointer): Update.
2331         (mips_save_reg_p): Update.
2332         (mips_compute_frame_info): Update.
2333         (mips_frame_pointer_required): Update.
2334         (mips_expand_prologue): Update.
2335         (mips_expand_epilogue): Update.
2336         (mips_can_use_return_insn): Update.
2337         (mips_reorg_process_insns): Update.
2338         * config/v850/v850.c (compute_register_save_size): Update.
2339         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
2340         * config/mmix/mmix.c (along): Update.
2341         (mmix_expand_epilogue): Update.
2342         * config/bfin/bfin.c (legitimize_pic_address): Update.
2343         (must_save_p): Update.
2344         (stack_frame_needed_p): Update.
2345         (add_to_reg): Update.
2346         (bfin_expand_prologue): Update.
2347         * stmt.c (expand_asm_operands): Update.
2348         * reload1.c (reload): Update.
2349         (init_elim_table): Update.
2350
2351 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
2352         
2353         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
2354         
2355 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
2356
2357         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
2358         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
2359         (mov<mode>): Removed.
2360         (*movv4sf_internal): Likewise.
2361         (*movv2df_internal): Likewise.
2362
2363 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
2364
2365         * config.gcc (crx-*-elf): Remove deprecation.
2366
2367 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
2368
2369         * config/i386/cygming-crtend.c (register_frame_ctor): Register
2370         __gcc_deregister_frame with atexit.
2371         (deregister_frame_dtor): Remove.
2372
2373 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
2374             Nathan Sidwell  <nathan@codesourcery.com>
2375
2376         * config/rs6000/rs6000.opt (mspe): Remove Var property.
2377         (misel): Likewise.
2378         * config/rs6000/rs6000.h (rs6000_spe): Declare.
2379         (rs6000_isel): Likewise.
2380         * config/rs6000/rs6000.c (rs6000_spe): New variable.
2381         (rs6000_isel): New variable.
2382         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
2383
2384 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
2385
2386         PR c++/35758
2387         * c-common.c (handle_vector_size_attribute): Call
2388         lang_hooks.types.reconstruct_complex_type instead of
2389         reconstruct_complex_type.
2390         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
2391         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
2392         * langhooks.h (struct lang_hooks_for_types): Add
2393         reconstruct_complex_type hook.
2394         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
2395         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
2396
2397 2008-04-24  Richard Guenther  <rguenther@suse.de>
2398
2399         * c-common.h (check_builtin_function_arguments): Declare.
2400         * c-common.c (validate_nargs): New function.
2401         (check_builtin_function_arguments): Likewise.
2402         * c-typeck.c (build_function_call): Call
2403         check_builtin_function_arguments.
2404         * builtins.c (fold_builtin_classify): Remove error reporting code.
2405         (fold_builtin_unordered_cmp): Likewise.
2406         (fold_builtin_1): Likewise.
2407         (fold_builtin_n): Likewise.
2408
2409 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
2410
2411         PR tree-optimization/36008
2412         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
2413         the original op1, rather than delta by step.
2414
2415 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
2416             Sebastian Pop  <sebastian.pop@amd.com>
2417
2418         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
2419         eliminate_local_variables_stmt, eliminate_local_variables,
2420         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
2421         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
2422         of code delimited by two edges in the CFG.
2423         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
2424         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
2425         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
2426         the case of parallelisation of reductions.
2427         (expr_invariant_in_region_p): New.
2428
2429         * tree-flow.h (gather_blocks_in_sese_region): Declared.
2430         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
2431
2432 2008-04-24  Ira Rosen  <irar@il.ibm.com>
2433             Richard Guenther  <rguenther@suse.de>
2434
2435         PR tree-optimization/36034
2436         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
2437         incapable of dealing with loads with gaps.
2438
2439 2008-04-24  Rafael Espindola  <espindola@google.com>
2440
2441         * tree-flow.h (vrp_evaluate_conditional): Change signature.
2442         * tree-ssa-propagate.c (fold_predicate_in): Update call to
2443         vrp_evaluate_conditional.
2444         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
2445         (vrp_evaluate_conditional): Split the cond argument.
2446         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
2447         (simplify_stmt_for_jump_threading): Update call to
2448         vrp_evaluate_conditional.
2449
2450 2008-04-24  Ira Rosen  <irar@il.ibm.com>
2451
2452         PR tree-optimization/35982
2453         * tree-vect-analyze.c (vect_check_interleaving): Check that the
2454         interleaved data-refs are of the same type.
2455
2456 2008-04-24  Danny Smith  <dannysmith@users.net>
2457
2458         * c-format.c (check_format_info_main): Use strncmp rather than a
2459         magic prefix to handle multichar length specs.
2460         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
2461         Don't prefix "I64" and "I32" with '\0'.
2462
2463 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
2464
2465         PR target/36015
2466         * config/i386/i386.c (init_cumulative_args): Don't pass anything
2467         in registers for -m32 only if stdarg_p (fntype).
2468
2469 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
2470
2471         PR rtl-optimization/36006
2472         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
2473         temp to op0 in order to avoid invalid rtx sharing.
2474
2475 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
2476
2477         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
2478         check TREE_INVARIANT.
2479         * tree-gimple.c (is_gimple_address): New.
2480         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
2481         * tree-gimple.h (is_gimple_address): New.
2482         * tree.h (decl_address_invariant_p): New.
2483         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
2484         (build_string): Likewise.
2485         (decl_address_invariant_p): New, from is_gimple_invariant_address.
2486         (tree_invariant_p_1): Likewise.
2487         (save_expr): Use it.
2488         (tree_invariant_p): New.
2489         (skip_simple_arithmetic): Use it.
2490         (stabilize_reference_1): Use it.
2491         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
2492         simplify.
2493         (build1_stat): Drop code to compute TREE_INVARIANT.
2494         (build2_stat): Drop code to compute TREE_INVARIANT.
2495         (build3_stat): Drop code to compute TREE_INVARIANT.
2496         (build4_stat): Drop code to compute TREE_INVARIANT.
2497         (build5_stat): Drop code to compute TREE_INVARIANT.
2498         (build7_stat): Drop code to compute TREE_INVARIANT.
2499         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
2500         * tree.h (struct tree_base): Remove invariant_flag.
2501         (TREE_INVARIANT): Remove.
2502         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
2503         (fold_builtin_expect): Check TREE_CONSTANT.
2504         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
2505         * c-tree.h (c_expr_to_decl): Drop third parameter.
2506         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
2507         (build_c_cast): Don't set TREE_INVARIANT.
2508         (pop_init_level): Don't set TREE_INVARIANT.
2509         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
2510         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
2511         TREE_CONSTANT.
2512         (gimplify_init_constructor): Don't set TREE_INVARIANT.
2513         (gimplify_addr_expr): Adjust comment.
2514         * tree-mudflap.c (mf_build_string):
2515         * print-tree.c (print_node): Don't print TREE_INVARIANT.
2516         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
2517         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
2518         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
2519         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
2520         * langhooks.h (struct lang_hooks): Drop third parameter from
2521         expr_to_decl.
2522
2523 2008-04-23  Richard Guenther  <rguenther@suse.de>
2524
2525         PR tree-optimization/27799
2526         PR tree-optimization/32921
2527         PR tree-optimization/32624
2528         * tree-ssa-structalias.c (merge_smts_into): Only merge the
2529         SMTs aliases and the tag itself into the solution.
2530         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
2531         merge the points-to solution back into the SMT aliases.
2532         (may_alias_p): Use alias_set_subset_of instead of
2533         aliases_conflict_p.  A pointer which points to
2534         memory with alias set zero may access any variable.
2535
2536 2008-04-23  Richard Guenther  <rguenther@suse.de>
2537
2538         * alias.c (alias_set_subset_of): Correctly handle asking
2539         if zero is a subset of an alias set with zero child.
2540         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
2541         (compute_flow_insensitive_aliasing): Correctly walk all
2542         pointers.  Do not unnecessarily union sets.
2543
2544 2008-04-23  Richard Guenther  <rguenther@suse.de>
2545
2546         PR middle-end/36021
2547         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
2548
2549 2008-04-22  Tomas Bily  <tbily@suse.cz>
2550
2551         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
2552         unreachable case.
2553         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
2554         NON_LVALUE_EXPR.
2555         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
2556         * tree-ssa-structalias.c (get_constraint_for): Likewise.
2557         * tree-inline.c (estimate_num_insns_1): Likewise.
2558         * varasm.c (const_hash_1, compare_constant, copy_constant)
2559         (compute_reloc_for_constant, output_addressed_constants): Likewise.
2560         * emit-rtl.c (component_ref_for_mem_expr)
2561         (set_mem_attributes_minus_bitpos): Likewise.
2562         * expr.c (highest_pow2_factor, expand_expr_real_1, )
2563         (is_aligning_offset): Likewise.
2564         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
2565         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
2566         * dojump.c (do_jump): Likewise.
2567         * builtins.c (get_pointer_alignment, get_memory_rtx)
2568         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
2569         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
2570
2571 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
2572
2573         PR rtl-optimization/36017
2574         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
2575         expanding the library call.
2576
2577 2008-04-22  Ian Lance Taylor  <iant@google.com>
2578
2579         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
2580         than size_in_bytes.
2581
2582 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
2583
2584         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
2585         of LR/CTR moves for Power6.
2586
2587 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
2588
2589         PR middle-end/36003
2590         * passes.c (init_optimization_passes): Remove
2591         pass_fast_rtl_byte_dce.
2592         
2593 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
2594
2595         PR target/29096
2596         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
2597         builtin functions to generate faster code.
2598         (_mm_cvtpu16_ps): Ditto.
2599         (_mm_cvtpi32x2_ps): Ditto.
2600
2601 2008-04-22  Nick Clifton  <nickc@redhat.com>
2602
2603         * common.opt (ftree-loop-distribution): Add Optimization
2604         attribute.
2605
2606         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
2607         (frv_expand_builtin_va_start): Likewise.
2608
2609         * config/arm/arm.c (thumb_find_work_register): Fix location of
2610         argument register count.
2611
2612 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
2613
2614         Support scheduling for ColdFire V1 and V3 microarchitecture.
2615         Improve scheduling of multiplication instructions.
2616
2617         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
2618         (mac): New instruction attribute.
2619         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
2620         (m68k_sched_mac): New variable.
2621         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
2622         Handle cfv1 and cfv3.
2623         (max_insn_size): New static variable.
2624         (struct _sched_ib): New type.
2625         (sched_ib): New static variable.
2626         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
2627         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
2628         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
2629         Update.
2630         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
2631         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
2632         new variables.  Update.
2633         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
2634         Add modeling of cfv3 instruction buffer.  Update.
2635         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
2636         * config/m68k/m68k.h (TUNE_CFV3): New macro.
2637         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
2638         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
2639         a particular reservation applies to.
2640         (type2): Reorganize attribute values.  Rename alu to alu_reg,
2641         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
2642         to mul_l and mul_w.
2643         (cf_ib_*): Simplify description of instruction buffer.
2644         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
2645         (cf_mem): Split into cf_mem1 and cf_mem2.
2646         (cf_v2_move_??): Rename to cfv12_alu_??.
2647         (cf_v2_move_l_??): Rename to cfv12_omove_??.
2648         (cf_v2_mul_??): Remove reservations.
2649         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
2650         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
2651         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
2652         appropriate place.
2653         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
2654         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
2655         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
2656         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
2657         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
2658         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
2659         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
2660         expansions of the above reservations for instructions of sizes
2661         1, 2 and 3 words.
2662
2663 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
2664
2665         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
2666
2667 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
2668
2669         * coverage.c: Include tree-pass.h.
2670         (coverage_counter_alloc): Print da_file_name to the dump file.
2671
2672 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
2673
2674         * sbitmap.c (sbitmap_range_empty_p): New function.
2675         * sbitmap.h (sbitmap_range_empty_p): New function.
2676         * bitmap.h: Now includes obstack.h.
2677
2678 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
2679             Kenneth Zadeck  <zadeck@naturalbridge.com>
2680
2681         * dbgcnt.def (ra_byte_scan): Added.
2682         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
2683         when the last hit happens for a counter.  
2684         * timevar.def (TV_DF_BYTE_LR): New variable.
2685         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
2686         * passes.c (pass_fast_rtl_byte_dce): New pass.
2687         * fwprop.c (update_df): Added mode to call df_ref_create.
2688         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
2689         DF_REF_EXTRACT_OFFSET.
2690         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
2691         DF_BYTE_LR_OUT, df_byte_lr): New macro.
2692         (df_mm): New enum.
2693         (df_ref_extract): Added mode field.
2694         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
2695         DF_REF_EXTRACT_OFFSET.
2696         (DF_REF_EXTRACT_MODE): New macro.
2697         (df_byte_lr_bb_info): New structure.
2698         (df_print_byte_regset, df_compute_accessed_bytes, 
2699         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
2700         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
2701         df_byte_lr_simulate_uses,
2702         df_byte_lr_simulate_artificial_refs_at_top,
2703         df_byte_lr_simulate_artificial_refs_at_end,
2704         df_compute_accessed_bytes): New function.
2705         (df_ref_create): Add parameter.
2706         (df_byte_lr_get_bb_info): New inline function.
2707         * df-scan.c (df_ref_record, df_uses_record,
2708         df_ref_create_structure): Added mode parameter.
2709         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
2710         df_defs_record, df_uses_record, df_get_conditional_uses,
2711         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
2712         df_entry_block_defs_collect, df_exit_block_uses_collect):
2713         Added mode parameter to calls to df_ref_record, df_uses_record,
2714         df_ref_create_structure.
2715         (df_ref_equal_p, df_ref_compare): Added test for modes.
2716         (df_ref_create_structure): Added code to set mode.  Renamed
2717         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
2718         DF_REF_EXTRACT_OFFSET.
2719         * df-core.c (df_print_byte_regset): New function.
2720         * df-byte-scan.c: New file.
2721         * df-problems.c (df_rd_transfer_function): Removed unnecessary
2722         calls to BITMAP_FREE.  
2723         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
2724         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
2725         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
2726         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
2727         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
2728         df_byte_lr_local_compute, df_byte_lr_init,
2729         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
2730         df_byte_lr_transfer_function, df_byte_lr_free, 
2731         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
2732         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
2733         df_byte_lr_simulate_uses,
2734         df_byte_lr_simulate_artificial_refs_at_top,
2735         df_byte_lr_simulate_artificial_refs_at_end): New function.
2736         * dce.c (byte_dce_process_block): New function.
2737         (dce_process_block): au is now passed in rather than computed
2738         locally.  Changed loops that look at artificial defs to not look
2739         for conditional or partial ones, because there never are any.  
2740         (fast_dce): Now is able to drive byte_dce_process_block or 
2741         dce_process_block depending on the kind of dce being done.
2742         (rest_of_handle_fast_dce): Add parameter to fast_dce.
2743         (rest_of_handle_fast_byte_dce): New function.
2744         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
2745         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
2746
2747 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
2748
2749         PR fortran/35019
2750         * gcc.h: Added fortran options that take arguments to
2751         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
2752         macros.
2753
2754 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
2755
2756         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
2757         scalarization if on the LHS and not a full access.
2758
2759 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2760
2761         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
2762
2763 2008-04-18  Rafael Espindola  <espindola@google.com>
2764
2765         * tree-vrp.c (find_case_label_index): Fix the binary search.
2766         (find_case_label_range): New.
2767         (vrp_visit_switch_stmt): Use find_case_label_range.
2768         (simplify_switch_using_ranges): Use find_case_label_range.
2769
2770 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
2771
2772         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
2773         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
2774
2775 2008-04-18  Tom Tromey  <tromey@redhat.com>
2776
2777         PR libcpp/15500:
2778         * doc/cpp.texi (Implementation-defined behavior): Mention
2779         -finput-charset.
2780
2781 2008-04-18  Ian Lance Taylor  <iant@google.com>
2782
2783         * fold-const.c (pointer_may_wrap_p): New static function.
2784         (fold_comparison): Add another test for pointer overflow.  Use
2785         pointer_may_wrap_p to disable some false positives.
2786
2787 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
2788           
2789         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
2790         (fname_as_string): Match updated cpp_interpret_string prototype.
2791         (fix_string_type): Support char16_t* and char32_t*.
2792         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
2793         derivative) nodes.  Register as builtin if C++0x.
2794         (c_parse_error): Support CPP_CHAR{16,32}.
2795         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
2796         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
2797         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
2798         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
2799         CTI_CHAR32_ARRAY_TYPE>: New elements.
2800         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
2801         char32_type_node, signed_char32_type_node, char16_array_type_node,
2802         char32_array_type_node): New defines.
2803         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
2804         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
2805         (lex_string): Support CPP_STRING{16,32}, match updated
2806         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
2807         (lex_charconst): Support CPP_CHAR{16,32}.
2808         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
2809         and CPP_STRING{16,32}.
2810
2811 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
2812
2813         PR bootstrap/35457
2814         * aclocal.m4: Regenerate.
2815         * configure: Regenerate.
2816
2817 2008-04-18  Jan Hubicka  <jh@suse.cz>
2818
2819         * except.c (dw2_size_of_call_site_table,
2820         sjlj_size_of_call_site_table): Use vector API for call_site_record.
2821
2822         * cgraphbuild.c (build_cgraph_edges): Update.
2823         * tree-pass.h: Update comment.
2824         * final.c (leaf_function_p): Update.
2825         (leaf_renumber_regs): Update.
2826         (rest_of_clean_state): Update.
2827         * omp-low.c (expand_omp_parallel): Update.
2828         * ipa-reference.c (analyze_function): Update.
2829         * reorg.c (find_end_label): Update.
2830         (optimize_skip): Update.
2831         (fill_simple_delay_slots): Update.
2832         (fill_simple_delay_slots): Update.
2833         (make_return_insns): Update.
2834         (dbr_schedule): Update.
2835         * gimple-low.c (record_vars_into): Update.
2836         * cfgbuild.c (make_edges): Update.
2837         * function.c (assign_stack_local): Update.
2838         (assign_parm_adjust_stack_rtl): Update.
2839         (locate_and_pad_parm): Update.
2840         (allocate_struct_function): Do not initialize stack_alignment_needed
2841         and preferred_stack_boundary here.
2842         (stack_protect_prologue): Update.
2843         (stack_protect_epilogue): Update.
2844         (expand_function_start): Initialize stack_alignment_needed,
2845         preferred_stack_boundary and max_jumptable_ents.
2846         (expand_function_end): Update.
2847         (free_after_compilation): Do not NULLify epilogue_delay_list.
2848         * function.h (struct rtl_data): Add stack_protect_guard,
2849         stack_alignment_needed,
2850         preferred_stack_boundary, epilogue_delay_list.
2851         (struct function): Remove value_histograms, stack_alignment_needed,
2852         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
2853         last_label_uid,
2854         unexpanded_var_list, stack_protect_guard.
2855         (current_function_epilogue_delay_list): Remove.
2856         * ipa-type-escape.c (analyze_function): Update.
2857         * gimplify.c (pop_gimplify_context): Update comment.
2858         * calls.c (expand_call): Update.
2859         (emit_library_call_value_1): Update.
2860         * except.c (set_nothrow_function_flags): Update.
2861         * cfgexpand.c (get_decl_align_unit): Update.
2862         (create_stack_guard): Update.
2863         (estimated_stack_frame_size): Update.
2864         (expand_used_vars): Update.
2865         (tree_expand_cfg): Free histogram earliers, init expansion variables.
2866         * explow.c (allocate_dynamic_stack_space): Update.
2867         * tree-ssa-live.c (remove_unused_locals): Update.
2868         * varasm.c (mark_constant_pool): Update.
2869         * tree-inline.c (remap_decls): Update.
2870         (initialize_cfun): Update.
2871         (declare_return_variable): Update.
2872         (inline_forbidden_p): Update.
2873         (expand_call_inline): Update.
2874         (declare_inline_vars): Update.
2875         (tree_function_versioning): Update.
2876         * tree-flow.h (value_histograms): New.
2877         (VALUE_HISTOGRAMS): New macro.
2878         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
2879         last_label_uid.
2880         * tree-cfg.c (set_bb_for_stmt): Update.
2881         (replace_by_duplicate_decl): Update.
2882         (move_block_to_fn): Update.
2883         (new_label_mapper): Update.
2884         (dump_function_to_file): Update.
2885         * ipa-struct-reorg.c (build_data_structure): Update.
2886         * cfgrtl.c (print_rtl_with_bb): Update.
2887         * reload1.c (reload): Update.
2888         (reload): Update.
2889         * config/i386/i386.c (setup_incoming_varargs_64,
2890         ix86_compute_frame_layout): Update.
2891         * config/arc/arc.c (arc_output_function_epilogue): Update.
2892
2893 2008-04-18  Marius Strobl <marius@FreeBSD.org>
2894
2895         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
2896         for FreeBSD as well.
2897         * gthr-posix95.h: Likewise.
2898
2899 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
2900
2901         PR rtl-optimization/35838
2902         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
2903         out the byte offset of the first subreg.
2904
2905 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
2906
2907         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
2908         to split_ti instead of three separate calls with single member arrays.
2909         (subti3 splitter): Ditto.
2910         (adddi3 splitter): Ditto with split_di.
2911         (subdi3 splitter): Ditto.
2912         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
2913         two separate calls with single member arrays.  Swap match_dup
2914         operands 1 and 2 to better fit into the array.
2915         (negdi2 splitter): Ditto with split_di.
2916         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
2917         two separate calls with single member arrays.  Swap match_dup operands
2918         6 and 7 to better fit into the array.
2919
2920 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
2921
2922         * config/i386/i386.c (sse_builtin_type): New.
2923         (bdesc_sse_args): Likewise.
2924         (bdesc_sse_3arg): Removed.
2925         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
2926         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
2927         IX86_BUILTIN_ROUNDPS.
2928         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
2929         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
2930         IX86_BUILTIN_ROUNDPS.
2931         (ix86_expand_sse_4_operands_builtin): Removed.
2932         (ix86_expand_sse_operands_builtin): New.
2933         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
2934         and CODE_FOR_sse4_1_roundps.
2935         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
2936         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
2937
2938 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
2939
2940         PR target/35907
2941         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
2942         regs before frame pop when needed.  If use_backchain_to_restore_sp
2943         then load backchain into a temp reg to restore vr and vrsave.  Add
2944         code to restore vr after frame pop if possible.
2945
2946 2008-04-17  Richard Guenther  <rguenther@suse.de>
2947
2948         * tree-vn.c (expressions_equal_p): Do not check type
2949         equality or compatibility before calling operand_equal_p.
2950         * fold-const.c (operand_equal_p): Check equivalence of
2951         integer constants before bailing out due to signedness or
2952         precision differences.
2953         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
2954         spurious differences in type qualification.  Ignore types
2955         for COMPONENT_REFs at all.
2956
2957 2008-04-17  Christian Bruel  <christian.bruel@st.com>
2958
2959         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
2960         msw_skip comparison.
2961         
2962 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
2963
2964         PR c/35739
2965         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
2966         reg type.
2967
2968         PR tree-optimization/35899
2969         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
2970         rather than TREE_OPERAND.
2971
2972 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
2973
2974         PR target/35944
2975         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
2976         temporary registers.  Change operand predicate to general_operand.
2977         (remainderxf3): Ditto.
2978
2979 2008-04-16  Richard Guenther  <rguenther@suse.de>
2980
2981         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
2982         * tree-affine.c (aff_combination_expand): Look through some
2983         conversions.
2984
2985 2008-04-15  Doug Kwan  <dougkwan@google.com>
2986
2987         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
2988         for hex printing.
2989         * tree-pretty-print.c (dump_generic_node): Ditto.
2990         * final.c (output_addr_const): Ditto.
2991         * dwarf2out.c (output_cfi): Ditto.
2992         * c-pretty-print.c (pp_c_integer_constant): Ditto.
2993         * print-rtl.c (print_rtx): Ditto.
2994         * print-tree.c (print_node_brief, print_node): Ditto.
2995         * c-common.c (match_case_to_enum_1): Ditto.
2996         * sched-vis.c (print_value): Ditto.
2997         * config/i386/i386.c (print_operand): Cast to long unsigned int
2998         for hex printing.
2999
3000 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
3001         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
3002         MS Windows VirtualProtect function.
3003
3004 2008-04-15  Jan Hubicka  <jh@suse.cz>
3005
3006         * gengtype.c (write_root): Param_is argument is OK.
3007         * expr.c (expand_expr_real_1): Update call of get_exception_*.
3008         * function.h: Include varray.h
3009         (rtl_eh): New stucture based on except.c one.
3010         (call_site_record): New forward declaration and vector type.
3011         * calls.c (emit_call_1): Do not call
3012         note_current_region_may_contain_throw.
3013         * except.c (eh_status): Remove cur_region, try_region since they are
3014         unused.
3015         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
3016         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
3017         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
3018         Remove call_site_data_used, call_site_data_size.
3019         Turn call_site_record into vector in function.h.
3020         (note_current_region_may_contain_throw): Remove.
3021         (get_exception_pointer, get_exception_filter): Do not take struct
3022         function argument; update.
3023         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
3024         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
3025         build_post_landing_pads, dw2_build_landing_pads,
3026         sjlj_assign_call_site_values, sjlj_mark_call_sites,
3027         sjlj_emit_function_enter, sjlj_emit_function_enter, 
3028         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
3029         sjlj_build_landing_pads, finish_eh_generation,
3030         remove_exception_handler_label, remove_eh_handler,
3031         maybe_remove_eh_handler, add_reachable_handler,
3032         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
3033         add_action_record, collect_one_action_chain, add_call_site,
3034         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
3035         sjlj_output_call_site_table, output_function_exception_table,
3036         * except.h (note_current_region_may_contain_throw): Remove
3037         (get_exception_pointer, get_exception_filter): Do not take struct
3038         function argument.
3039         * Makefile.in (GTFILES): Put varargs before struct function.
3040
3041 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3042
3043         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
3044         punt for STRING_CST.
3045         (get_constraint_for): Deal with STRING_CST here instead.
3046
3047 2008-04-15  Richard Guenther  <rguenther@suse.de>
3048
3049         * tree-ssa-propagate.c (substitute_and_fold): Substitute
3050         statements in a basic-block with a backward walk.  Do not
3051         substitute into dead statements but instead remove those.
3052
3053 2008-04-15  Richard Guenther  <rguenther@suse.de>
3054
3055         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
3056         to zero, thus disable creation of SFTs.
3057
3058 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3059
3060         * tree-predcom.c (suitable_reference_p): Return false if the
3061         reference can throw.
3062
3063 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
3064
3065         PR c/35751
3066         * c-decl.c (finish_decl): If extern or static var has variable
3067         size, set TREE_TYPE (decl) to error_mark_node.
3068
3069 2008-04-15  Rafael Espindola  <espindola@google.com>
3070
3071         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
3072         variable arg1.
3073
3074 2008-04-15  Richard Guenther  <rguenther@suse.de>
3075
3076         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
3077         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
3078         (visit_reference_op_load): Do walk vuse-vdef chains on
3079         vn_reference_lookup.
3080         (visit_reference_op_store): But do not here.
3081         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
3082         vn_reference_lookup.
3083         (vn_lookup_with_vuses): But do so here.
3084
3085 2008-04-14  Ian Lance Taylor  <iant@google.com>
3086
3087         * fold-const.c (fold_overflow_warning): Remove assertion.
3088
3089 2008-04-15  Ben Elliston  <bje@au.ibm.com>
3090
3091         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
3092         temp1 local variables.
3093
3094 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
3095
3096         PR target/35661
3097         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
3098         ".text.unlikely" section as executable.
3099
3100 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
3101
3102         * config/ia64/ia64.c (rtx_needs_barrier): Handle
3103         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
3104         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
3105         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
3106         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
3107         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
3108         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
3109
3110 2008-04-14  Ian Lance Taylor  <iant@google.com>
3111
3112         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
3113         * fold-const.c (fold_comparison): If appropriate, test
3114         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
3115         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
3116         reassociating a pointer type.
3117         * doc/invoke.texi (Optimize Options): Document that
3118         -fstrict-overflow applies to pointer wraparound.
3119
3120 2008-04-13  Jan Hubicka  <jh@suse.cz>
3121
3122         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
3123
3124 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
3125
3126         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
3127         we are going to "save the world".
3128
3129 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
3130
3131         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
3132         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
3133         operand 0 constraint, not "=".
3134
3135 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
3136
3137         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
3138
3139 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
3140
3141         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
3142         of size of positions_needed * CHAR_BIT.
3143
3144 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
3145
3146         PR middle-end/35897
3147         * dse.c (store_info): Change positions_needed to unsigned
3148         HOST_WIDE_INT.
3149         (lowpart_bitmask): New.
3150         (record_store): Cast to unsigned HOST_WIDE_INT for
3151         positions_needed.  Assert width <= size of positions_needed *
3152         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
3153         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
3154         lowpart_bitmask to set mask.
3155
3156 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
3157
3158         * config/bfin/constraints.md: New file.
3159         * config/bfin/bfin.md: Include it.
3160         (adddi3): Use satisfies_constraint functions instead of the old macros.
3161         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
3162         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
3163         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
3164         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
3165         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
3166         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
3167         EXTRA_CONSTRAINT): Delete.
3168         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
3169         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
3170         of the old macros.
3171         * config/bfin/bfin.c: Include "tm-constrs.h".
3172         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
3173         Use satisfies_constraint functions instead of the old macros.
3174         * doc/md.texi (Blackfin Constraints): Update file name reference.
3175
3176 2008-04-11  Richard Guenther  <rguenther@suse.de>
3177
3178         PR tree-optimization/35869
3179         * tree-vrp.c (execute_vrp): Move switch statement update after
3180         jump threading.  Schedule another cfg cleanup run.
3181
3182 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
3183
3184         PR c/35744
3185         * attribs.c (decl_attributes): Return early on errorneous node.
3186
3187 2008-04-10  Oleg Ryjkov  <olegr@google.com>
3188
3189         * tree.h (struct tree_base): Added a new flag default_def_flag.
3190         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
3191
3192 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
3193
3194         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
3195
3196 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3197
3198         PR target/35768
3199         * pa.md: Define mode iterator P.  Define mode attribute dwc.
3200         (dcacheflush): Update pattern to use iterator P and attribute dwc.
3201         (icacheflush): Likewise.
3202         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
3203         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
3204
3205 2008-04-11  Ben Elliston  <bje@au.ibm.com>
3206
3207         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
3208
3209 2008-04-10  Rafael Espindola  <espindola@google.com>
3210
3211         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
3212         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
3213         (extract_range_from_expr): The same.
3214
3215 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
3216
3217         * config/mips/mips.md (GPR2): New mode iterator.
3218         (seq): Add comment.
3219         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
3220         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
3221         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
3222         Rewrite these to take two modes, the mode of comparison and the
3223         mode of the destination.
3224         * config/mips/mips.c (mips_expand_scc): Instead of having
3225         paradoxical subreg as destination, expand "narrowing" scc if mode
3226         of comparison is SI and target is requested in DI mode.
3227         (mips_emit_int_order_test): Update comment.  Make mode of
3228         comparison match CMP0 rather than TARGET.  When creating inverse
3229         target use mode of TARGET.
3230
3231 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
3232
3233         * gcov-dump.c (tag_summary): Only print summaries for the first
3234         GCOV_COUNTERS_SUMMABLE counters.
3235
3236 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
3237
3238         * config/i386/i386.md (absneg): New code iterator.
3239         (absnegprefix): New code attribute.
3240         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
3241         patterns using absneg code iterator.
3242         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
3243         using absneg code iterator.
3244         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
3245         *neg<mode>2 patterns using absneg code iterator.
3246         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
3247         *negextendsfdf2 patterns using absneg code iterator.
3248         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
3249         *negextendsfxf2 patterns using absneg code iterator.
3250         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
3251         *negextendsfdf2 patterns using absneg code iterator.
3252         * config/i386/sse.md (<code><mode>2): Macroize expander from
3253         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
3254
3255 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
3256
3257         * config/s390/s390.h: Remove the remains of the recent search
3258         & replace action of current_function_outgoing_args_size.
3259
3260 2008-04-10  Ira Rosen  <irar@il.ibm.com>
3261
3262         PR tree-optimization/35821
3263         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
3264         NEW_STMT_LIST is not NULL.
3265
3266 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
3267
3268         PR libstdc++/35597
3269         * toplev.c (process_options): Remove -ffunction-sections debugging
3270         warning.
3271
3272 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
3273
3274         PR middle-end/PR28690
3275         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
3276         than gen_rtx_fmt_ee to perform more canonicalizations.
3277
3278 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3279
3280         PR driver/35665
3281         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
3282
3283 2008-04-09  Richard Guenther  <rguenther@suse.de>
3284
3285         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
3286         (dump_function_to_file): Dump function arguments with types.
3287
3288 2008-04-08  Richard Guenther  <rguenther@suse.de>
3289
3290         * fold-const.c (fold_widened_comparison): Do not allow
3291         sign-changes that change the result.
3292
3293 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
3294
3295         PR target/35839
3296         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
3297         kinds of indirect references.
3298
3299 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
3300
3301         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
3302         GNU Fortran language string.
3303
3304 2008-04-08  Rafael Espindola  <espindola@google.com>
3305
3306         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
3307         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
3308         * tree.h (tree_call_nonnegative_warnv_p): New.
3309
3310 2008-04-08  Jan Hubicka  <jh@suse.cz>
3311
3312         * function.c (free_after_compilation): Clear out regno_reg_rtx
3313         pointer.
3314
3315 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
3316
3317         Revert
3318         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
3319
3320         PR middle-end/PR28690
3321         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
3322         same precedence as REG_POINTER and MEM_POINTER operands.
3323
3324 2008-04-08  Richard Guenther  <rguenther@suse.de>
3325
3326         PR middle-end/35834
3327         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
3328         for adding index to base.
3329
3330 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
3331
3332         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
3333         (MINGW_ENABLE_EXECUTE_STACK): New.
3334         (IN_LIBGCC2): For libgcc include windows.h file for
3335         function declarations.
3336
3337 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
3338
3339         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
3340         and tem2 if tem1 is not a REG or MULT.
3341
3342 2008-04-08  Jan Hubicka  <jh@suse.cz>
3343
3344         * function.h (incomming_args): Break out of struct function.
3345         (function_subsections): Break out of struct function.
3346         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
3347         return_rtx and hard_reg_initial_vals from struct function.
3348         Kill inl_max_label_num.
3349         (current_function_pops_args, current_function_args_info,
3350         current_function_args_size, current_function_args_size,
3351         current_function_pretend_args_size,
3352         current_function_outgoing_args_size,
3353         current_function_internal_arg_pointer, current_function_return_rtx):
3354         Kill compatibility accestor macros.
3355         * builtins.c (expand_builtin_apply_args_1): Update.
3356         (expand_builtin_next_arg): Update.
3357         * df-scan.c (df_get_call_refs): Update.
3358         * dbxout.c (dbxout_function_end): Update.
3359         * dwarf2out.c (dwarf2out_switch_text_section): Update.
3360         (output_line_info): Update.
3361         (secname_for_decl): Update.
3362         (dwarf2out_var_location): Update.
3363         * function.c (free_after_compilation): Update.
3364         (assign_parm_find_stack_rtl): Update.
3365         (assign_parms): Update.
3366         (expand_dummy_function_end): Update.
3367         (expand_function_end): Update.
3368         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
3369         (expand_call): Update.
3370         (emit_library_call_value_1): Update.
3371         (store_one_arg): Update.
3372         * varasm.c (initialize_cold_section_name): Update.
3373         (unlikely_text_section): Update.
3374         (unlikely_text_section_p): Update.
3375         (assemble_start_function): Update.
3376         (assemble_end_function): Update.
3377         (default_section_type_flags): Update.