OSDN Git Service

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