OSDN Git Service

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