OSDN Git Service

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