OSDN Git Service

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