OSDN Git Service

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