OSDN Git Service

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