OSDN Git Service

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